Greasy Fork is available in English.

SaveFrom.net helper

Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free

// ==UserScript==
// @name        SaveFrom.net helper
// @namespace   http://savefrom.net/
// @version     10.21.2
// @date        2024-06-04
// @author      Itproductdev Ltd
// @description Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @homepage    https://savefrom.net/user.php?helper=userjs
// @icon        https://sf-helper.com/img/icon_16.png
// @icon64      https://sf-helper.com/img/icon_64.png
// @include     http://*
// @include     https://*
// @run-at      document-end
// @grant       GM_listValues
// @grant       GM_setValue
// @grant       GM_getValue
// @grant       GM_deleteValue
// @grant       GM_xmlhttpRequest
// @grant       GM_info
// @grant       GM_openInTab
// @grant       GM_setClipboard
// @grant       GM_registerMenuCommand
// @grant       GM_unregisterMenuCommand
// @grant       GM_notification
// @grant       GM_evalFunction
// @grant       GM_download
// @grant       GM.info
// @grant       GM.listValues
// @grant       GM.setValue
// @grant       GM.getValue
// @grant       GM.deleteValue
// @grant       GM.openInTab
// @grant       GM.setClipboard
// @grant       GM.xmlHttpRequest
// @connect     vk.com
// @connect     vk.me
// @connect     userapi.com
// @connect     vkuseraudio.net
// @connect     vkuservideo.net
// @connect     vk-cdn.net
// @connect     youtube.com
// @connect     youtube-nocookie.com
// @connect     ytimg.com
// @connect     googlevideo.com
// @connect     video.google.com
// @connect     google-analytics.com
// @connect     api.amplitude.com
// @connect     dailymotion.com
// @connect     vimeo.com
// @connect     vimeocdn.com
// @connect     akamaized.net
// @connect     odnoklassniki.ru
// @connect     ok.ru
// @connect     cdn-ok.com
// @connect     mycdn.me
// @connect     storage.mds.yandex.net
// @connect     twitch.tv
// @connect     sf-helper.net
// @connect     televzr.com
// @connect     127.0.0.1
// @connect     pladform.ru
// @connect     clipyou.ru
// @connect     soundcloud.com
// @connect     sndcdn.com
// @connect     mail.ru
// @connect     176.9.38.116
// @connect     cdninstagram.com
// @connect     fbcdn.net
// @connect     facebook.com
// @connect     sf-helper.com
// @connect     savefr.com
// @connect     travelbar.tools
// @connect     promobar.tools
// @connect     savefrom.net
// @connect     self
// @connect     *
// ==/UserScript==
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=187)}([function(e,t,n){var r=n(87)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var s=e[a](i),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function s(e){r(i,o,a,s,u,"next",e)}function u(e){r(i,o,a,s,u,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(56);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Object(r.a)(o.key),o)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(52);var o=n(40),a=n(53);function i(e,t){return Object(r.a)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],u=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||Object(o.a)(e,t)||Object(a.a)()}},function(e,t,n){"use strict";n.r(t),n.d(t,"igPageTypeMap",(function(){return r})),n.d(t,"ytPageTypeMap",(function(){return o})),n.d(t,"fbPageTypeMap",(function(){return a})),n.d(t,"soPageTypeMap",(function(){return i})),n.d(t,"viPageTypeMap",(function(){return s})),n.d(t,"twPageTypeMap",(function(){return u})),n.d(t,"daPageTypeMap",(function(){return l})),n.d(t,"ttPageTypeMap",(function(){return c})),n.d(t,"vkPageTypeMap",(function(){return d})),n.d(t,"maPageTypeMap",(function(){return p})),n.d(t,"yaPageTypeMap",(function(){return f})),n.d(t,"okPageTypeMap",(function(){return m}));var r={igFeed:"ig-feed",igPost:"ig-post",igCarouselFromProfile:"ig-post-carousel_from_profile",igPostCarousel:"ig-post-carousel",igPostVideoFromProfile:"ig-post-video_from_profile",igPostVideo:"ig-post-video",igPostPhotoFromProfile:"ig-post-photo_from_profile",igPostPhoto:"ig-post-photo",igProfile:"ig-profile",igReel:"ig-reel",igReelFromProfile:"ig-reel-from_profile",igHighlights:"ig-highlights",igStory:"ig-story",igStoryVideo:"ig-story-video",igStoryPhoto:"ig-story-photo"},o={ytVideo:"yt-video",ytHomepage:"yt-homepage",ytShort:"yt-short",ytFeedHistory:"yt-feed_history",ytFeedLibrary:"yt-feed_library",ytFeedSubscriptions:"yt-feed_subscriptions",ytFeedTrending:"yt-feed_trending",ytWatchLater:"yt-watch_later",ytLikedVideos:"yt-liked_videos",ytPlaylistVideos:"yt-playlist-videos",ytChannel:"yt-channel",ytGaming:"yt-gaming"},a={fbFeed:"fb-feed",fbWatch:"fb-watch",fbReel:"fb-reel",fbVideo:"fb-video",fbProfileVideo:"fb-profile_video",fbPhoto:"fb-photo",fbProfilePhoto:"fb-profile_photo",fbProfileFeed:"fb-profile_feed",fbStory:"fb-story"},i={soAudio:"so-audio"},s={viBlogVideo:"vi-blog_video",viVideo:"vi-video",viProfileFeed:"vi-profile_feed"},u={twFeed:"tw-feed",twPost:"tw-post",twPhoto:"tw-photo"},l={daVideo:"da-video"},c={ttFeed:"tt-feed",ttVideo:"tt-video",ttFollowing:"tt-following",ttExplore:"tt-explore",ttProfile:"tt-profile"},d={vkClips:"vk-clips",vkClip:"vk-clip",vkVideos:"vk-videos",vkVideo:"vk-video",vkFeed:"vk-feed",vkPhoto:"vk-photo",vkStory:"vk-story",vkAudios:"vk-audios",vkAudio:"vk-audio",vkAlbums:"vk-albums",vkAlbum:"vk-album"},p={maCommunity:"ma-community",maCommunityMultipost:"ma-community_multipost",maCommunityPhoto:"ma-community_photo",maCommunityShare:"ma-community_share",maMusic:"ma-music",maVideo:"ma-video",maPlaylist:"ma-playlist"},f={yaArtist:"ya-artist",yaAlbum:"ya-album",yaTrack:"ya-track",yaPlaylist:"ya-playlist"},m={okVideo:"ok-video",okMusic:"ok-music",okProfile:"ok-profile",okProfileMusic:"ok-profile_music",okHobby:"ok-hobby",okDiscovery:"ok-discovery"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(23);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(r.a)(e,t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"Component",(function(){return w})),n.d(t,"Fragment",(function(){return A})),n.d(t,"cloneElement",(function(){return H})),n.d(t,"createContext",(function(){return G})),n.d(t,"createElement",(function(){return b})),n.d(t,"createRef",(function(){return k})),n.d(t,"h",(function(){return b})),n.d(t,"hydrate",(function(){return V})),n.d(t,"isValidElement",(function(){return i})),n.d(t,"options",(function(){return o})),n.d(t,"render",(function(){return U})),n.d(t,"toChildArray",(function(){return D}));var r,o,a,i,s,u,l,c,d,p={},f=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function h(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var o,a,i,s={};for(i in t)"key"==i?o=t[i]:"ref"==i?a=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return y(e,s,o,a,null)}function y(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++a:i,__i:-1,__u:0};return null==i&&null!=o.vnode&&o.vnode(s),s}function k(){return{current:null}}function A(e){return e.children}function w(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?x(e):null}function C(e,t,n){var r,a=e.__v,i=a.__e,s=e.__P;if(s)return(r=h({},a)).__v=a.__v+1,o.vnode&&o.vnode(r),F(s,r,a,e.__n,void 0!==s.ownerSVGElement,32&a.__u?[i]:null,t,null==i?x(a):i,!!(32&a.__u),n),r.__v=a.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r),r}function _(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!S.__r++||u!==o.debounceRendering)&&((u=o.debounceRendering)||l)(S)}function S(){var e,t,n,r=[],a=[];for(s.sort(c);e=s.shift();)e.__d&&(n=s.length,t=C(e,r,a)||t,0===n||s.length>n?(N(r,t,a),a.length=r.length=0,t=void 0,s.sort(c)):t&&o.__c&&o.__c(t,f));t&&N(r,t,a),S.__r=0}function O(e,t,n,r,o,a,i,s,u,l,c){var d,m,g,h,v,b=r&&r.__k||f,y=t.length;for(n.__d=u,M(n,t,b),u=n.__d,d=0;d<y;d++)null!=(g=n.__k[d])&&"boolean"!=typeof g&&"function"!=typeof g&&(m=-1===g.__i?p:b[g.__i]||p,g.__i=d,F(e,g,m,o,a,i,s,u,l,c),h=g.__e,g.ref&&m.ref!=g.ref&&(m.ref&&R(m.ref,null,g),c.push(g.ref,g.__c||h,g)),null==v&&null!=h&&(v=h),65536&g.__u||m.__k===g.__k?u=E(g,u,e):"function"==typeof g.type&&void 0!==g.__d?u=g.__d:h&&(u=h.nextSibling),g.__d=void 0,g.__u&=-196609);n.__d=u,n.__e=v}function M(e,t,n){var r,o,a,i,s,u=t.length,l=n.length,c=l,d=0;for(e.__k=[],r=0;r<u;r++)i=r+d,null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?y(null,o,null,null,null):g(o)?y(A,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?y(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=I(o,n,i,c),o.__i=s,a=null,-1!==s&&(c--,(a=n[s])&&(a.__u|=131072)),null==a||null===a.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==i&&(s===i+1?d++:s>i?c>u-i?d+=s-i:d--:s<i?s==i-1&&(d=s-i):d=0,s!==r+d&&(o.__u|=65536))):(a=n[i])&&null==a.key&&a.__e&&0==(131072&a.__u)&&(a.__e==e.__d&&(e.__d=x(a)),z(a,a,!1),n[i]=null,c--);if(c)for(r=0;r<l;r++)null!=(a=n[r])&&0==(131072&a.__u)&&(a.__e==e.__d&&(e.__d=x(a)),z(a,a))}function E(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=E(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function D(e,t){return t=t||[],null==e||"boolean"==typeof e||(g(e)?e.some((function(e){D(e,t)})):t.push(e)),t}function I(e,t,n,r){var o=e.key,a=e.type,i=n-1,s=n+1,u=t[n];if(null===u||u&&o==u.key&&a===u.type&&0==(131072&u.__u))return n;if(r>(null!=u&&0==(131072&u.__u)?1:0))for(;i>=0||s<t.length;){if(i>=0){if((u=t[i])&&0==(131072&u.__u)&&o==u.key&&a===u.type)return i;i--}if(s<t.length){if((u=t[s])&&0==(131072&u.__u)&&o==u.key&&a===u.type)return s;s++}}return-1}function L(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||m.test(t)?n:n+"px"}function T(e,t,n,r,o){var a;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||L(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||L(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,a?P:j,a)):e.removeEventListener(t,a?P:j,a);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function j(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(o.event?o.event(e):e)}}function P(e){if(this.l)return this.l[e.type+!0](o.event?o.event(e):e)}function F(e,t,n,r,a,i,s,u,l,c){var d,p,f,m,v,b,y,k,x,C,_,S,M,E,D,I=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),i=[u=t.__e=n.__e]),(d=o.__b)&&d(t);e:if("function"==typeof I)try{if(k=t.props,x=(d=I.contextType)&&r[d.__c],C=d?x?x.props.value:d.__:r,n.__c?y=(p=t.__c=n.__c).__=p.__E:("prototype"in I&&I.prototype.render?t.__c=p=new I(k,C):(t.__c=p=new w(k,C),p.constructor=I,p.render=q),x&&x.sub(p),p.props=k,p.state||(p.state={}),p.context=C,p.__n=r,f=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=I.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=h({},p.__s)),h(p.__s,I.getDerivedStateFromProps(k,p.__s))),m=p.props,v=p.state,p.__v=t,f)null==I.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==I.getDerivedStateFromProps&&k!==m&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(k,C),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(k,p.__s,C)||t.__v===n.__v)){for(t.__v!==n.__v&&(p.props=k,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),_=0;_<p._sb.length;_++)p.__h.push(p._sb[_]);p._sb=[],p.__h.length&&s.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(k,p.__s,C),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(m,v,b)}))}if(p.context=C,p.props=k,p.__P=e,p.__e=!1,S=o.__r,M=0,"prototype"in I&&I.prototype.render){for(p.state=p.__s,p.__d=!1,S&&S(t),d=p.render(p.props,p.state,p.context),E=0;E<p._sb.length;E++)p.__h.push(p._sb[E]);p._sb=[]}else do{p.__d=!1,S&&S(t),d=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++M<25);p.state=p.__s,null!=p.getChildContext&&(r=h(h({},r),p.getChildContext())),f||null==p.getSnapshotBeforeUpdate||(b=p.getSnapshotBeforeUpdate(m,v)),O(e,g(D=null!=d&&d.type===A&&null==d.key?d.props.children:d)?D:[D],t,n,r,a,i,s,u,l,c),p.base=t.__e,t.__u&=-161,p.__h.length&&s.push(p),y&&(p.__E=p.__=null)}catch(e){t.__v=null,l||null!=i?(t.__e=u,t.__u|=l?160:32,i[i.indexOf(u)]=null):(t.__e=n.__e,t.__k=n.__k),o.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=B(n.__e,t,n,r,a,i,s,l,c);(d=o.diffed)&&d(t)}function N(e,t,n){for(var r=0;r<n.length;r++)R(n[r],n[++r],n[++r]);o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function B(e,t,n,o,a,i,s,u,l){var c,d,f,m,h,b,y,k=n.props,A=t.props,w=t.type;if("svg"===w&&(a=!0),null!=i)for(c=0;c<i.length;c++)if((h=i[c])&&"setAttribute"in h==!!w&&(w?h.localName===w:3===h.nodeType)){e=h,i[c]=null;break}if(null==e){if(null===w)return document.createTextNode(A);e=a?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,A.is&&A),i=null,u=!1}if(null===w)k===A||u&&e.data===A||(e.data=A);else{if(i=i&&r.call(e.childNodes),k=n.props||p,!u&&null!=i)for(k={},c=0;c<e.attributes.length;c++)k[(h=e.attributes[c]).name]=h.value;for(c in k)h=k[c],"children"==c||("dangerouslySetInnerHTML"==c?f=h:"key"===c||c in A||T(e,c,null,h,a));for(c in A)h=A[c],"children"==c?m=h:"dangerouslySetInnerHTML"==c?d=h:"value"==c?b=h:"checked"==c?y=h:"key"===c||u&&"function"!=typeof h||k[c]===h||T(e,c,h,k[c],a);if(d)u||f&&(d.__html===f.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=""),O(e,g(m)?m:[m],t,n,o,a&&"foreignObject"!==w,i,s,i?i[0]:n.__k&&x(n,0),u,l),null!=i)for(c=i.length;c--;)null!=i[c]&&v(i[c]);u||(c="value",void 0!==b&&(b!==e[c]||"progress"===w&&!b||"option"===w&&b!==k[c])&&T(e,c,b,k[c],!1),c="checked",void 0!==y&&y!==e[c]&&T(e,c,y,k[c],!1))}return e}function R(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function z(e,t,n){var r,a;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||R(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&z(r[a],t,n||"function"!=typeof e.type);n||null==e.__e||v(e.__e),e.__=e.__e=e.__d=void 0}function q(e,t,n){return this.constructor(e,n)}function U(e,t,n){var a,i,s,u;o.__&&o.__(e,t),i=(a="function"==typeof n)?null:n&&n.__k||t.__k,s=[],u=[],F(t,e=(!a&&n||t).__k=b(A,null,[e]),i||p,p,void 0!==t.ownerSVGElement,!a&&n?[n]:i?null:t.firstChild?r.call(t.childNodes):null,s,!a&&n?n:i?i.__e:t.firstChild,a,u),e.__d=void 0,N(s,e,u)}function V(e,t){U(e,t,V)}function H(e,t,n){var o,a,i,s,u=h({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==i?o=t[i]:"ref"==i?a=t[i]:u[i]=void 0===t[i]&&void 0!==s?s[i]:t[i];return arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),y(e.type,u,o||e.key,a||e.ref,null)}function G(e,t){var n={__c:t="__cC"+d++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,_(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,o={__e:function(e,t,n,r){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&null!=a.getDerivedStateFromError&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},a=0,i=function(e){return null!=e&&null==e.constructor},w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),_(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},w.prototype.render=A,s=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,d=0},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(33),o=n(19);function a(e,t){if(t&&("object"===Object(r.a)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(o.a)(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(48);var o=n(51),a=n(40);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.r(t);var r=n(15);t.default=function(e){return new Promise((function(t,n){Object(r.default)(e,(function(e,r){e?n(e):t(r)}))}))}},function(e,t,n){"use strict";n.r(t);t.default=function(e){var t=null;return(t=function(){}).t=t.log=t.info=t.warn=t.error=t.debug=t,t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(56);function o(e,t,n){return(t=Object(r.a)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.r(t),n.d(t,"Component",(function(){return s.Component})),n.d(t,"Fragment",(function(){return s.Fragment})),n.d(t,"createContext",(function(){return s.createContext})),n.d(t,"createElement",(function(){return s.createElement})),n.d(t,"createRef",(function(){return s.createRef})),n.d(t,"useCallback",(function(){return S})),n.d(t,"useContext",(function(){return O})),n.d(t,"useDebugValue",(function(){return M})),n.d(t,"useEffect",(function(){return A})),n.d(t,"useErrorBoundary",(function(){return E})),n.d(t,"useId",(function(){return D})),n.d(t,"useImperativeHandle",(function(){return C})),n.d(t,"useLayoutEffect",(function(){return w})),n.d(t,"useMemo",(function(){return _})),n.d(t,"useReducer",(function(){return k})),n.d(t,"useRef",(function(){return x})),n.d(t,"useState",(function(){return y})),n.d(t,"Children",(function(){return W})),n.d(t,"PureComponent",(function(){return z})),n.d(t,"StrictMode",(function(){return De})),n.d(t,"Suspense",(function(){return J})),n.d(t,"SuspenseList",(function(){return X})),n.d(t,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return ke})),n.d(t,"cloneElement",(function(){return _e})),n.d(t,"createFactory",(function(){return we})),n.d(t,"createPortal",(function(){return ne})),n.d(t,"default",(function(){return Be})),n.d(t,"findDOMNode",(function(){return Oe})),n.d(t,"flushSync",(function(){return Ee})),n.d(t,"forwardRef",(function(){return H})),n.d(t,"hydrate",(function(){return ce})),n.d(t,"isElement",(function(){return Pe})),n.d(t,"isFragment",(function(){return Ce})),n.d(t,"isValidElement",(function(){return xe})),n.d(t,"lazy",(function(){return Z})),n.d(t,"memo",(function(){return q})),n.d(t,"render",(function(){return le})),n.d(t,"startTransition",(function(){return Ie})),n.d(t,"unmountComponentAtNode",(function(){return Se})),n.d(t,"unstable_batchedUpdates",(function(){return Me})),n.d(t,"useDeferredValue",(function(){return Le})),n.d(t,"useInsertionEffect",(function(){return je})),n.d(t,"useSyncExternalStore",(function(){return Fe})),n.d(t,"useTransition",(function(){return Te})),n.d(t,"version",(function(){return Ae}));var r,o,a,i,s=n(8),u=0,l=[],c=[],d=s.options,p=d.__b,f=d.__r,m=d.diffed,g=d.__c,h=d.unmount,v=d.__;function b(e,t){d.__h&&d.__h(o,e,u||t),u=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:c}),n.__[e]}function y(e){return u=1,k(N,e)}function k(e,t,n){var a=b(r++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):N(void 0,t),function(e){var t=a.__N?a.__N[0]:a.__[0],n=a.t(t,e);t!==n&&(a.__N=[n,a.__[1]],a.__c.setState({}))}],a.__c=o,!o.u)){var i=function(e,t,n){if(!a.__c.__H)return!0;var r=a.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&a.__c.props===e)&&(!s||s.call(this,e,t,n))};o.u=!0;var s=o.shouldComponentUpdate,u=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,i(e,t,n),s=r}u&&u.call(this,e,t,n)},o.shouldComponentUpdate=i}return a.__N||a.__}function A(e,t){var n=b(r++,3);!d.__s&&F(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function w(e,t){var n=b(r++,4);!d.__s&&F(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function x(e){return u=5,_((function(){return{current:e}}),[])}function C(e,t,n){u=6,w((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function _(e,t){var n=b(r++,7);return F(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function S(e,t){return u=8,_((function(){return e}),t)}function O(e){var t=o.context[e.__c],n=b(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function M(e,t){d.useDebugValue&&d.useDebugValue(t?t(e):e)}function E(e){var t=b(r++,10),n=y();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function D(){var e=b(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function I(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(j),e.__H.__h.forEach(P),e.__H.__h=[]}catch(t){e.__H.__h=[],d.__e(t,e.__v)}}d.__b=function(e){o=null,p&&p(e)},d.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),v&&v(e,t)},d.__r=function(e){f&&f(e),r=0;var t=(o=e.__c).__H;t&&(a===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=c,e.__N=e.i=void 0}))):(t.__h.forEach(j),t.__h.forEach(P),t.__h=[],r=0)),a=o},d.diffed=function(e){m&&m(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&i===d.requestAnimationFrame||((i=d.requestAnimationFrame)||T)(I)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==c&&(e.__=e.__V),e.i=void 0,e.__V=c}))),a=o=null},d.__c=function(e,t){t.some((function(e){try{e.__h.forEach(j),e.__h=e.__h.filter((function(e){return!e.__||P(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],d.__e(n,e.__v)}})),g&&g(e,t)},d.unmount=function(e){h&&h(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{j(e)}catch(e){t=e}})),n.__H=void 0,t&&d.__e(t,n.__v))};var L="function"==typeof requestAnimationFrame;function T(e){var t,n=function(){clearTimeout(r),L&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);L&&(t=requestAnimationFrame(n))}function j(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function P(e){var t=o;e.__c=e.__(),o=t}function F(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function N(e,t){return"function"==typeof t?t(e):t}function B(e,t){for(var n in t)e[n]=t[n];return e}function R(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function z(e,t){this.props=e,this.context=t}function q(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:R(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Object(s.createElement)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(z.prototype=new s.Component).isPureReactComponent=!0,z.prototype.shouldComponentUpdate=function(e,t){return R(this.props,e)||R(this.state,t)};var U=s.options.__b;s.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),U&&U(e)};var V="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function H(e){function t(t){var n=B({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=V,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var G=function(e,t){return null==e?null:Object(s.toChildArray)(Object(s.toChildArray)(e).map(t))},W={map:G,forEach:G,count:function(e){return e?Object(s.toChildArray)(e).length:0},only:function(e){var t=Object(s.toChildArray)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:s.toChildArray},Q=s.options.__e;s.options.__e=function(e,t,n,r){if(e.then)for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Q(e,t,n,r)};var Y=s.options.unmount;function J(){this.__u=0,this.t=null,this.__b=null}function K(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Z(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return Object(s.createElement)(n,o)}return o.displayName="Lazy",o.__f=!0,o}function X(){this.u=null,this.o=null}s.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Y&&Y(e)},(J.prototype=new s.Component).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=K(r.__v),a=!1,i=function(){a||(a=!0,n.__R=null,o?o(s):s())};n.__R=i;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},J.prototype.componentWillUnmount=function(){this.t=[]},J.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=B({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&Object(s.createElement)(s.Fragment,null,e.fallback);return o&&(o.__u&=-33),[Object(s.createElement)(s.Fragment,null,t.__a?null:e.children),o]};var $=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ee(e){return this.getChildContext=function(){return e.context},e.children}function te(e){var t=this,n=e.i;t.componentWillUnmount=function(){Object(s.render)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Object(s.render)(Object(s.createElement)(ee,{context:t.context},e.__v),t.l)}function ne(e,t){var n=Object(s.createElement)(te,{__v:e,i:t});return n.containerInfo=t,n}(X.prototype=new s.Component).__a=function(e){var t=this,n=K(t.__v),r=t.o.get(e);return r[0]++,function(o){var a=function(){t.props.revealOrder?(r.push(o),$(t,e,r)):o()};n?n(a):a()}},X.prototype.render=function(e){this.u=null,this.o=new Map;var t=Object(s.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},X.prototype.componentDidUpdate=X.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){$(e,n,t)}))};var re="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,oe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ae=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ie=/[A-Z0-9]/g,se="undefined"!=typeof document,ue=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function le(e,t,n){return null==t.__k&&(t.textContent=""),Object(s.render)(e,t),"function"==typeof n&&n(),e?e.__c:null}function ce(e,t,n){return Object(s.hydrate)(e,t),"function"==typeof n&&n(),e?e.__c:null}s.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(s.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var de=s.options.event;function pe(){}function fe(){return this.cancelBubble}function me(){return this.defaultPrevented}s.options.event=function(e){return de&&(e=de(e)),e.persist=pe,e.isPropagationStopped=fe,e.isDefaultPrevented=me,e.nativeEvent=e};var ge,he={enumerable:!1,configurable:!0,get:function(){return this.class}},ve=s.options.vnode;s.options.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||se&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var i=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===a?a="":"translate"===i&&"no"===a?a=!1:"ondoubleclick"===i?o="ondblclick":"onchange"!==i||"input"!==n&&"textarea"!==n||ue(t.type)?"onfocus"===i?o="onfocusin":"onblur"===i?o="onfocusout":ae.test(o)?o=i:-1===n.indexOf("-")&&oe.test(o)?o=o.replace(ie,"-$&").toLowerCase():null===a&&(a=void 0):i=o="oninput","oninput"===i&&r[o=i]&&(o="oninputCapture"),r[o]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=Object(s.toChildArray)(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Object(s.toChildArray)(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",he)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=re,ve&&ve(e)};var be=s.options.__r;s.options.__r=function(e){be&&be(e),ge=e.__c};var ye=s.options.diffed;s.options.diffed=function(e){ye&&ye(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),ge=null};var ke={ReactCurrentDispatcher:{current:{readContext:function(e){return ge.__n[e.__c].props.value}}}},Ae="17.0.2";function we(e){return s.createElement.bind(null,e)}function xe(e){return!!e&&e.$$typeof===re}function Ce(e){return xe(e)&&e.type===s.Fragment}function _e(e){return xe(e)?s.cloneElement.apply(null,arguments):e}function Se(e){return!!e.__k&&(Object(s.render)(null,e),!0)}function Oe(e){return e&&(e.base||1===e.nodeType&&e)||null}var Me=function(e,t){return e(t)},Ee=function(e,t){return e(t)},De=s.Fragment;function Ie(e){e()}function Le(e){return e}function Te(){return[!1,Ie]}var je=w,Pe=xe;function Fe(e,t){var n=t(),r=y({h:{__:n,v:t}}),o=r[0].h,a=r[1];return w((function(){o.__=n,o.v=t,Ne(o)&&a({h:o})}),[e,n,t]),A((function(){return Ne(o)&&a({h:o}),e((function(){Ne(o)&&a({h:o})}))}),[e]),n}function Ne(e){var t,n,r=e.v,o=e.__;try{var a=r();return!((t=o)===(n=a)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Be={useState:y,useId:D,useReducer:k,useEffect:A,useLayoutEffect:w,useInsertionEffect:je,useTransition:Te,useDeferredValue:Le,useSyncExternalStore:Fe,startTransition:Ie,useRef:x,useImperativeHandle:C,useMemo:_,useCallback:S,useContext:O,useDebugValue:M,version:"17.0.2",Children:W,render:le,hydrate:ce,unmountComponentAtNode:Se,createPortal:ne,createElement:s.createElement,createContext:s.createContext,createFactory:we,cloneElement:_e,createRef:s.createRef,Fragment:s.Fragment,isValidElement:xe,isElement:Pe,isFragment:Ce,findDOMNode:Oe,Component:s.Component,PureComponent:z,memo:q,forwardRef:H,flushSync:Ee,unstable_batchedUpdates:Me,StrictMode:De,Suspense:J,SuspenseList:X,lazy:Z,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ke}},function(e,t,n){"use strict";n.r(t);var r=n(12),o=(Object(r.default)("webRequest"),!1),a=n(18),i=function(e){e=e.split(/\r?\n/);var t={};return e.forEach((function(e){var n=e.indexOf(":");if(-1!==n){var r=e.substr(0,n).trim().toLowerCase(),o=e.substr(n+1).trim();t[r]=o}})),t},s=function(){var e=this,t=null,n=function(t,n){e.readyState=n.readyState,e.status=n.status,e.statusText=n.statusText,"string"==typeof n.response&&(e.responseText=n.response),n.responseText&&(e.responseText=n.responseText),n.finalUrl&&(e.responseURL=n.finalUrl),e._responseHeaders=n.responseHeaders,e.onreadystatechange&&e.onreadystatechange(),e[t]&&e[t]()},r={headers:{},responseType:"text",onload:n.bind(null,"onload"),onerror:n.bind(null,"onerror"),onabort:n.bind(null,"onabort"),ontimeout:n.bind(null,"ontimeout")};this._responseHeaders="",this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.response="",this.responseType="",this.responseURL="",this.open=function(e,t){r.method=e,r.url=t},this.overrideMimeType=function(e){r.overrideMimeType=e},this.setRequestHeader=function(e,t){"cookie"===e.toLowerCase()&&""===t&&(r.anonymous=!0),r.headers[e]=t},this.getResponseHeader=function(e){return this._responseHeaders?(e=e.toLowerCase(),this.headers||(this.headers=i(this._responseHeaders)),this.headers.hasOwnProperty(e)?this.headers[e]:null):null},this.getAllResponseHeaders=function(){return this._responseHeaders},this.abort=function(){t&&t.abort()},this.send=function(e){r.data=e,t="function"==typeof GM_xmlhttpRequest?GM_xmlhttpRequest(r):GM.xmlHttpRequest(r)},this.onabort=null,this.onerror=null,this.onload=null,this.onreadystatechange=null,this.ontimeout=null};t.default=function(e,t){var n={},r=function(e,n){r=null,p.timeoutTimer&&clearTimeout(p.timeoutTimer);var o=null;e&&(o=String(e.message||e)||"ERROR"),t&&t(o,u(n),n)},u=function(e){var t={};t.statusCode=m.status,t.statusText=m.statusText;var n=null,r=m.getAllResponseHeaders();return"string"==typeof r&&(n=i(r)),t.headers=n||{},t.body=e,t.responseURL=m.responseURL,t};"object"!=typeof e&&(e={url:e});var l=e.url,c=e.method||e.type||"GET";c=c.toUpperCase();var d=e.data;"string"!=typeof d&&(d=a.stringify(d)),d&&"GET"===c&&(l+=(/\?/.test(l)?"&":"?")+d,d=void 0),!1===e.cache&&-1!==["GET","HEAD"].indexOf(c)&&(l+=(/\?/.test(l)?"&":"?")+"_="+Date.now()),e.headers=e.headers||{},d&&(e.headers["Content-Type"]=e.contentType||e.headers["Content-Type"]||"application/x-www-form-urlencoded; charset=UTF-8");var p={};p.url=l,p.method=c,d&&(p.data=d),e.json&&(p.json=!0),e.xml&&(p.xml=!0),e.timeout&&(p.timeout=e.timeout),e.mimeType&&(p.mimeType=e.mimeType),e.withCredentials&&(p.withCredentials=!0),Object.keys(e.headers).length&&(p.headers=e.headers),p.timeout>0&&(p.timeoutTimer=setTimeout((function(){r&&r(new Error("ETIMEDOUT")),m.abort()}),p.timeout));var f={0:200,1223:204},m=e.localXHR?new XMLHttpRequest:new s;m.open(p.method,p.url,!0),p.mimeType&&m.overrideMimeType(p.mimeType),p.withCredentials&&(m.withCredentials=!0);var g=[];for(var h in p.headers)o&&o.isSpecialHeader(h)&&g.push({key:h,value:p.headers[h]}),m.setRequestHeader(h,p.headers[h]);m.onload=function(){var e=f[m.status]||m.status;try{if(e>=200&&e<300||304===e){var t=m.responseText;if(p.json)t=JSON.parse(t);else if(p.xml)t=(new DOMParser).parseFromString(t,"text/xml");else if("string"!=typeof t)throw console.error("Response is not string!",t),new Error("Response is not string!");return r&&r(null,t)}throw new Error(m.status+" "+m.statusText)}catch(e){return r&&r(e)}};var v=m.onerror=function(){r&&r(new Error(m.status+" "+m.statusText))},b=null;void 0!==m.onabort?m.onabort=v:b=function(){4===m.readyState&&r&&setTimeout((function(){return v()}))},b&&(m.onreadystatechange=b);var y=function(){try{m.send(p.data||null)}catch(e){setTimeout((function(){r&&r(e)}))}};if(o&&g.length){o.requestPermission((function(e){e&&function(){for(var e,t=0;e=g[t];t++)m.setRequestHeader(o.wrapHeaderKey(e.key,e.value),e.value)}(),r&&y()}))}else y();return n.abort=function(){r=null,m.abort()},n}},function(e,t,n){"use strict";n.r(t);var r=n(41),o={maxLength:80,rtrim:/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,illegalRe:/[\/?<>\\:*|"~\u202B]/g,controlRe:/[\x00-\x1f\x80-\x9f]/g,zeroWidthJoinerRe:/\u200D/g,reservedRe:/^\.+/,trim:function(e){return e.replace(this.rtrim,"")},partsRe:/^(.+)\.([a-z0-9]{1,4})$/i,getParts:function(e){return e.match(this.partsRe)},specialChars:"nbsp,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,times,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,divide,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml".split(","),specialCharsList:[["amp","quot","lt","gt"],[38,34,60,62]],specialCharsRe:/&([^;]{2,6});/g,decodeSpecialChars:function(e){var t=this;return e.replace(this.specialCharsRe,(function(e,n){var r=null;if("#"===n[0])return r=parseInt(n.substr(1)),isNaN(r)?"":String.fromCharCode(r);var o=t.specialCharsList[0].indexOf(n);return-1!==o?(r=t.specialCharsList[1][o],String.fromCharCode(r)):-1!==(o=t.specialChars.indexOf(n))?(r=o+160,String.fromCharCode(r)):""}))},decodeHexChars:function(e){return e.replace(/(\\x[a-zA-Z0-9]{2})/g,(function(e,t){var n=t;try{n=String.fromCharCode(parseInt("0x"+n.substr(2),16))}catch(e){}return n}))},rnRe:/\r?\n/g,re1:/[*?"]/g,re2:/</g,re3:/>/g,spaceRe:/[\s\t\uFEFF\xA0]+/g,dblRe:/(\.|!|\?|_|,|-|:|\+){2,}/g,re4:/[.,:;\/\-_+=']$/g,modify:function(e){if(!e)return"";e=Object(r.a)(e);try{e=decodeURIComponent(e)}catch(t){e=unescape(e)}if(e=(e=this.decodeSpecialChars(e)).replace(this.rnRe," "),(e=(e=this.trim(e)).replace(this.zeroWidthJoinerRe,"").replace(this.re1,"").replace(this.re2,"(").replace(this.re2,"(").replace(this.re3,")").replace(this.spaceRe," ").replace(this.dblRe,"$1").replace(this.illegalRe,"_").replace(this.controlRe,"").replace(this.reservedRe,"").replace(this.re4,"")).length>this.maxLength){var t=this.getParts(e);t&&3==t.length&&(t[1]=t[1].substr(0,this.maxLength),e=t[1]+"."+t[2])}return this.trim(e)}};t.default=o},function(e,t,n){"use strict";n.r(t);var r=n(27),o={create:function(e,t){var n,r;for(var o in n="object"!=typeof e?document.createElement(e):e,t){var i=t[o];(r=a[o])?r(n,i):n[o]=i}return n}},a={text:function(e,t){e.textContent=t},data:function(e,t){for(var n in t)e.dataset[n]=t[n]},class:function(e,t){if(Array.isArray(t))for(var n=0,r=t.length;n<r;n++)e.classList.add(t[n]);else e.setAttribute("class",t)},style:function(e,t){if("object"==typeof t)for(var n in t){var r=n;"float"===r&&(r="cssFloat");var o=t[n];if(Array.isArray(o))for(var a=0,i=o.length;a<i;a++)e.style[r]=o[a];else e.style[r]=o}else e.setAttribute("style",t)},append:function(e,t){Array.isArray(t)||(t=[t]);for(var n=0,r=t.length;n<r;n++){var o=t[n];(o||0===o)&&("object"!=typeof o&&(o=document.createTextNode(o)),e.appendChild(o))}},on:function(e,t){"object"!=typeof t[0]&&(t=[t]);for(var n=0,o=t.length;n<o;n++){var a=t[n];Array.isArray(a)&&r.default.on.apply(r.default,[e].concat(a))}},one:function(e,t){"object"!=typeof t[0]&&(t=[t]);for(var n=0,o=t.length;n<o;n++){var a=t[n];Array.isArray(a)&&r.default.one.apply(r.default,[e].concat(a))}},onCreate:function(e,t){t.call(e,e)},attr:function(e,t){var n,r;for(n in t)r=t[n],e.setAttribute(n,r)}};t.default=o},function(e,t,n){"use strict";t.decode=t.parse=n(92),t.encode=t.stringify=n(93)},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t);t.default=function(e){return new Promise((function(t){return t(e())}))}},function(e,t,n){"use strict";n.r(t);t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t&&!Array.isArray(t)&&(t=[t]);for(var n,r=[],o={"{":0,"[":0},a={"}":"{","]":"["},i=/[{}\]\[":0-9.,-]/,s=/[\r\n\s\t]/,u="",l=0;n=e[l];l++)if('"'!==n)i.test(n)?(u+=n,"{"===n||"["===n?(o["{"]||o["["]||(u=n),o[n]++):"}"!==n&&"]"!==n||(o[a[n]]--,o["{"]||o["["]||r.push(u))):"t"===n&&"true"===e.substr(l,4)?(u+="true",l+=3):"f"===n&&"false"===e.substr(l,5)?(u+="false",l+=4):"n"===n&&"null"===e.substr(l,4)?(u+="null",l+=3):s.test(n)||(o["{"]=0,o["["]=0,u="");else{for(var c=l;-1!==c&&(c===l||"\\"===e[c-1]);)c=e.indexOf('"',c+1);-1===c&&(c=e.length-1),u+=e.substr(l,c-l+1),l=c,o["{"]||o["["]||r.push(u)}for(var d=[],p=function(){var e=r[f];if("{}"===e||"[]"===e)return 1;try{t.every((function(t){return t.test(e)}))&&d.push(JSON.parse(e))}catch(e){}},f=0,m=r.length;f<m;f++)p();return d}},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n(2),a=n(9),i=n(4),s=n(7),u=n(42);function l(e,t,n){return t=Object(i.a)(t),Object(a.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(i.a)(e).constructor):t.apply(e,n))}var c=function(e){function t(e,n){var r;return Object(o.a)(this,t),(r=l(this,t,[e])).code=n,r}return Object(s.a)(t,e),Object(r.a)(t)}(Object(u.a)(Error));t.default=c},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=!0;if(t){if(!Array.isArray(e)){var r=e;e=r.args||[],r.disableJson&&(n=!1)}}else t=e,e=[];var o="sf-bridge-"+parseInt(1e3*Math.random(),10)+"-"+Date.now();return new Promise((function(r){window.addEventListener(o,(function e(t){window.removeEventListener(o,e),r(t.detail)}));var a="(function(fn,args,id,useJson){var scriptNode=document.getElementById(id);if(scriptNode){scriptNode.parentNode.removeChild(scriptNode)}return new Promise(function(r){return r(fn.apply(null,args))}).then(function(result){return{result:result}},function(err){return{err:serializeError(err)}}).then(function(result){if(useJson){try{result=JSON.stringify(result)}catch(err){result=JSON.stringify({err:serializeError(err)})}}var e=new CustomEvent(id,{detail:result});window.dispatchEvent(e)});function serializeError(err){return{name:err.name,message:err.message,code:err.code,stack:err.stack}}})("+[t].concat([e,o,n].map((function(e){return JSON.stringify(e)}))).join(",")+")";if(GM_info&&GM_info.version.startsWith("2")){var i=document.createElement("button");i.setAttribute("onclick",a),document.body.appendChild(i),i.click(),i.remove()}else{var s=document.createElement("script");s.id=o,s.textContent=a,document.body.appendChild(s)}})).then((function(e){n&&(e=JSON.parse(e));var t=e,r=t.err,o=t.result;if(r)throw Object.assign(new Error,r);return o}))}},function(e,t,n){"use strict";function r(e,t){for(var n,r=[];null!==(n=t.exec(e));)n.index===t.lastIndex&&t.lastIndex++,r.push(n);return r}n.r(t),n.d(t,"matchAll",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t);var r={on:function(e,t,n,r){e.addEventListener(t,n,r)},off:function(e,t,n,r){e.removeEventListener(t,n,r)},one:function(e,t,n,o){var a=["oneFn",t,!!o].join("_"),i=n[a];i||(n[a]=i=function(e){r.off(this,t,i,o),n.apply(this,arguments)}),r.on(e,t,i,o),e=null}},o="sf-removed-"+Math.floor(1e6*Math.random()),a="sf-notify-on-remove-"+Math.floor(1e6*Math.random());r.onRemoveEventName=o,r.onRemoveClassName=a,r.onRemoveListener=function(e){r.trigger(e,o,{cancelable:!0,bubbles:!1})},r.onRemoveEvent=function(e,t){e.classList.add(a),e.addEventListener(o,t)},r.offRemoveEvent=function(e,t){e.removeEventListener(r.onRemoveEventName,t)},r.trigger=function(e,t,n){void 0===n&&(n={}),void 0===n.bubbles&&(n.bubbles=!1),void 0===n.cancelable&&(n.cancelable=!1);var r=null;r="function"==typeof MouseEvent&&-1!==["click"].indexOf(t)?new MouseEvent(t,n):new CustomEvent(t,n),e.dispatchEvent(r)},t.default=r},function(e,t,n){"use strict";n.r(t);t.default=function(){switch(window.location.hostname){case"www.youtube.com":return"101";case"ok.ru":return"ok";case"vk.com":return"vk";case"music.yandex.ru":return"ya";case"www.facebook.com":case"web.facebook.com":return"fa";case"twitch.com":return"tw";case"www.instagram.com":return"in";case"my.mail.ru":return"ma";case"vimeo.com":return"vi";case"soundcloud.com":return"so";case"tiktok.com":return"ti";case"www.dailymotion.com":return"da";default:return""}}},function(e,t,n){"use strict";n.r(t);var r=function(e,t){var n=document.createElement("div");return r="function"==typeof n.matches?function(e,t){return e.matches(t)}:"function"==typeof n.matchesSelector?function(e,t){return e.matchesSelector(t)}:"function"==typeof n.webkitMatchesSelector?function(e,t){return e.webkitMatchesSelector(t)}:"function"==typeof n.mozMatchesSelector?function(e,t){return e.mozMatchesSelector(t)}:"function"==typeof n.oMatchesSelector?function(e,t){return e.oMatchesSelector(t)}:"function"==typeof n.msMatchesSelector?function(e,t){return e.msMatchesSelector(t)}:function(e,t){return!1},n=null,r(e,t)};t.default=function(e,t){return r(e,t)}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(i=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([o]).join("\n")}var i,s,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){t&&!Array.isArray(t)&&(t=[t]);var n=[];return e.replace(/<script(?:\s*|\s[^>]+[^\/])>/g,(function(r,o){o+=r.length;var a=e.indexOf("<\/script>",o);if(-1!==a){var i=e.substr(o,a-o);t?t.every((function(e){return e.test(i)}))&&n.push(i):n.push(i)}})),n}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t);t.default=function(){return"undefined"!=typeof MutationObserver?MutationObserver:"undefined"!=typeof WebKitMutationObserver?WebKitMutationObserver:"undefined"!=typeof MozMutationObserver?MozMutationObserver:n(91).default}},function(e,t,n){"use strict";var r=n(167),o=n(168),a=n(169),i=n(170),s=n(84),u=n(45),l=n(171),c=Function,d=function(e){try{return c('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var f=function(){throw new u},m=p?function(){try{return f}catch(e){try{return p(arguments,"callee").get}catch(e){return f}}}():f,g=n(172)(),h=n(174)(),v=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),b={},y="undefined"!=typeof Uint8Array&&v?v(Uint8Array):void 0,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":g&&v?v([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&v?v(v([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&v?v((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":a,"%ReferenceError%":i,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&v?v((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&v?v(""[Symbol.iterator]()):void 0,"%Symbol%":g?Symbol:void 0,"%SyntaxError%":s,"%ThrowTypeError%":m,"%TypedArray%":y,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(v)try{null.error}catch(e){var A=v(v(e));k["%Error.prototype%"]=A}var w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=n(60),C=n(176),_=x.call(Function.call,Array.prototype.concat),S=x.call(Function.apply,Array.prototype.splice),O=x.call(Function.call,String.prototype.replace),M=x.call(Function.call,String.prototype.slice),E=x.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,L=function(e){var t=M(e,0,1),n=M(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return O(e,D,(function(e,t,n,o){r[r.length]=n?O(o,I,"$1"):t||e})),r},T=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===b&&(o=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&v&&(n=v(o.prototype))}return k[t]=n,n}(r)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=L(e),r=n.length>0?n[0]:"",o=T("%"+r+"%",t),a=o.name,i=o.value,l=!1,c=o.alias;c&&(r=c[0],S(n,_([0,1],c)));for(var d=1,f=!0;d<n.length;d+=1){var m=n[d],g=M(m,0,1),h=M(m,-1);if(('"'===g||"'"===g||"`"===g||'"'===h||"'"===h||"`"===h)&&g!==h)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&f||(l=!0),C(k,a="%"+(r+="."+m)+"%"))i=k[a];else if(null!=i){if(!(m in i)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&d+1>=n.length){var v=p(i,m);i=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:i[m]}else f=C(i,m),i=i[m];f&&!l&&(k[a]=i)}}return i}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=null;n=!(t=t||{}).params&&/\?/.test(e)?e.match(/[^?]*\?(.*)/)[1]:e;for(var r=t.sep||"&",o=n.split(r),a={},i=0,s=o.length;i<s;i++){var u=o[i].split("="),l=u[0],c=u[1]||"";if(t.noDecode)a[l]=c;else{try{l=decodeURIComponent(l)}catch(e){l=unescape(l)}try{a[l]=decodeURIComponent(c)}catch(e){a[l]=unescape(c)}}}return a}},function(e,t,n){"use strict";n.r(t);var r=n(20);t.default=function(e){return[function(t){return Object(r.default)(e).then((function(){return t}))},function(t){return Object(r.default)(e).then((function(){throw t}))}]}},function(e,t,n){"use strict";n.r(t);t.default=function(e){return new Promise((function(t){return setTimeout(t,e)}))}},function(e,t,n){"use strict";n.r(t);var r=n(5),o=n(2),a=n(3),i=n(20),s=function(){function e(t,n){var a=this;Object(o.a)(this,e),this.finishQueue=function(){if(a.activeCount--,a.queue.length>0){var e=a.queue.shift(),t=Object(r.a)(e,2),n=t[0],o=t[1];a.runQueue(n,o)}},this.limit=t,this.maxQueue=n,this.queue=[],this.activeCount=0}return Object(a.a)(e,[{key:"add",value:function(e){var t=null,n=new Promise((function(e){t=e}));if(this.activeCount<this.limit)this.runQueue(e,t);else{var r=[e,t],o=this.queue.push(r);this.maxQueue&&o>this.maxQueue&&this.queue.splice(0,o-this.maxQueue)}return n}},{key:"runQueue",value:function(e,t){this.activeCount++;var n=Object(i.default)(e);t(n),n.then(this.finishQueue,this.finishQueue)}}]),e}();t.default=function(e,t){var n=new s(e,t);return function(e){return n.add(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(48);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";var r=/\\(\\u[0-9a-f]{4})/g;t.a=function(e){try{return JSON.parse(JSON.stringify(e).replace(r,"$1"))}catch(t){return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(4),o=n(23);function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function i(e,t,n){if(a())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Object(o.a)(i,n.prototype),i}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return i(e,arguments,Object(r.a)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Object(o.a)(n,e)})(e)}},function(e,t,n){var r=n(44),o=n(128);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={injectType:"singletonStyleTag",insert:"head",singleton:!0};r(o,a);e.exports=o.locals||{}},function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function s(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var a=e[o],u=t.base?a[0]+t.base:a[0],l=n[u]||0,c="".concat(u," ").concat(l);n[u]=l+1;var d=s(c),p={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(i[d].references++,i[d].updater(p)):i.push({identifier:c,updater:h(p,t),references:1}),r.push(c)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var c,d=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function f(e,t,n){var r=n.css,o=n.media,a=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var m=null,g=0;function h(e,t){var n,r,o;if(t.singleton){var a=g++;n=m||(m=l(t)),r=p.bind(null,n,a,!1),o=p.bind(null,n,a,!0)}else n=l(t),r=f.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);i[o].references--}for(var a=u(e,t),l=0;l<n.length;l++){var c=s(n[l]);0===i[c].references&&(i[c].updater(),i.splice(c,1))}n=a}}}},function(e,t,n){"use strict";e.exports=TypeError},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=(new DOMParser).parseFromString("<html><body>"+e+"</body></html>","text/html");if(t){var r=n.head.querySelector("base");r||((r=n.createElement("base")).href=t,n.head.appendChild(r))}return n}},function(e,t,n){"use strict";n.r(t);t.default=function(e){var t=function(e){for(var t=e[0],n=0;;){if(-1===(n=e.indexOf(t,n+1))){n=e.length;break}if("\\"!==e[n-1])break}var r="";try{r='"'===t?JSON.parse('"'+e.substr(1,n-1)+'"'):JSON.parse('"'+e.substr(1,n-1).replace(/\\'/g,"'").replace(/"/g,'\\"')+'"')}catch(e){}return{data:r,i:n}},n={"[":function(e){var t,r,o,a,i,s=[],u="";for(a=1;o=e[a];a++)if(r=n[o])t=r(e.substr(a)),u=JSON.stringify(t.data),a+=t.i;else{if("]"===o)break;","===o?(u&&s.push(u),u=""):u+=o}u&&s.push(u);try{i=JSON.parse("["+s.join(",")+"]")}catch(e){}return{data:i||[],i:a}},"{":function(e){var t,r,o,a,i,s=[],u=["",""],l=0;for(a=1;o=e[a];a++)if(r=n[o])t=r(e.substr(a)),u[l]=0===l?t.data:JSON.stringify(t.data),a+=t.i;else{if("}"===o)break;":"===o?l=1:","===o?(s.push(JSON.stringify(u[0])+":"+u[1]),u=["",""],l=0):u[l]=(u[l]+o).trim()}u[1]&&s.push(JSON.stringify(u[0])+":"+u[1]);try{i=JSON.parse("{"+s.join(",")+"}")}catch(e){}return{data:i||{},i:a}},'"':t,"'":t};return{some:function(t){return function(e,t){for(var r,o,a=0;o=e[a];a++)if(("["===o||"{"===o)&&(a+=(r=n[o](e.substr(a))).i,t(r.data)))return!0}(e,t)}}}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t);t.default=function(){return parseInt(Date.now()/1e3,10)}},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n(2),a=n(9),i=n(4),s=n(7),u=n(42);function l(e,t,n){return t=Object(i.a)(t),Object(a.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(i.a)(e).constructor):t.apply(e,n))}var c=function(e){function t(e){var n;return Object(o.a)(this,t),(n=l(this,t,["Response is not ok ".concat(e.status," (").concat(e.statusText,")")])).name="ErrorFetchResponse",void 0!==e.url&&(n.url=e.url),n.status=e.status,n}return Object(s.a)(t,e),Object(r.a)(t)}(Object(u.a)(Error));t.default=c},function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t);var r=null;t.default=function(e,t){if(!r){var n=document.createElement("div");"function"==typeof n.matches?r=function(e,t){return e.matches(t)}:"function"==typeof n.matchesSelector?r=function(e,t){return e.matchesSelector(t)}:"function"==typeof n.webkitMatchesSelector?r=function(e,t){return e.webkitMatchesSelector(t)}:"function"==typeof n.mozMatchesSelector&&(r=function(e,t){return e.mozMatchesSelector(t)}),n=null}return r(e,t)}},function(e,t,n){"use strict";n.r(t);var r=n(28);t.default=function(e){switch(Object(r.default)()){case"101":return"video";case"ya":return"track";case"in":if(e.el.className.includes("story"))return"story";if(e.el.download.includes("mp4"))return"video";case"ma":if(0===Object.keys(e).length)return"track";if(e.el.download.includes("mp4"))return"video";case"vk":return 0===Object.keys(e).length?"track":e.el.download.includes("jpg")||e.el.download.includes("png")?"photo":"video";case"fa":return 0===Object.keys(e).length?"photo":"video";case"vi":return"video";case"sc":case"ok":return"track";case"da":return"video";default:return""}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(33);function o(e){var t=function(e,t){if("object"!=Object(r.a)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Object(r.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(r.a)(t)?t:String(t)}},function(e,t,n){var r=n(44),o=n(126);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={injectType:"singletonStyleTag",insert:"head",singleton:!0};r(o,a);e.exports=o.locals||{}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},function(e,t,n){"use strict";var r=n(175);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=n(35)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,a="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:a,RFC3986:i}},function(e,t,n){"use strict";n.r(t);t.default=function e(t,n){var r=[];Array.isArray(t)||(t=[t]),n&&!Array.isArray(n)&&(n=[n]);var o=function(e,t){var n=[];for(var r in t){var o=t[r];"cssFloat"===r&&(r="float");var a=r.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()}));n.push(a+":"+o)}return n.length?[e.join(","),"{",n.join(";"),"}"].join(""):""},a=function(e,t){if(Array.isArray(t)||(t=[t]),n){var r=[],o=e.join||""===e.join?e.join:" ";n.forEach((function(e){t.forEach((function(t){r.push(e+o+t)}))})),t=r}return t};return t.forEach((function(t){var i=null,s=t.media,u=t.selector,l=t.style,c=t.append;if(s&&c)r.push([s,"{",e(c,n),"}"].join(""));else if(u||l)i=a(t,u),r.push(o(i,l)),c&&r.push(e(c,i));else for(var d in t)-1===["append","join"].indexOf(d)&&(u=d,(c=(l=t[d]).append)&&delete l.append,i=a(t,u),r.push(o(i,l)),c&&r.push(e(c,i)))})),r.join("")}},function(e,t,n){"use strict";n.r(t);var r=n(12),o=Object(r.default)("extensionMarker"),a="savefrom-helper-extension",i={getItem:function(e){var t=null;try{t=window.sessionStorage.getItem(e)}catch(t){o.error("getItem error",e,t)}return t},setItem:function(e,t){try{window.sessionStorage.setItem(e,t)}catch(n){o.error("setMarker error",e,t,n)}},hash:function(e){var t=e.length,n=0,r=0;if(t>0)for(;r<t;)n=(n<<5)-n+e.charCodeAt(r++)|0;return""+n},getMarker:function(){var e=null;return"undefined"!=typeof GM_info&&(e=GM_info.script&&GM_info.script.uuid),e||"undefined"!=typeof GM&&(e=GM.info&&GM.info.script&&GM.info.script.uuid),e||(e="userscript"),this.hash(""+e)},getCurrentMarker:function(){return this.getItem(a)},setMarker:function(e){return this.setItem(a,e)},getFallbackMarker:function(){return this.getItem("".concat(a,"-fallback"))},setFallbackMarker:function(){return this.setItem("".concat(a,"-fallback"),"1")},isSingle:function(){var e=this.getMarker(),t=this.getCurrentMarker();return"1"===t&&null===this.getFallbackMarker()&&(this.setFallbackMarker(),t=null),null===t&&this.setMarker(t=e),t===e}};t.default=i},function(e,t,n){"use strict";n.r(t),t.default=function(e){e=e?e+"_":"";var t=Date.now();return e+Math.floor(1e12*(t-Math.floor(t))).toString(36)+Math.floor(1e12*Math.random()).toString(36)}},function(e,t,n){"use strict";n.r(t),t.default=function(e){for(var t=[];e.parentElement&&1===e.parentElement.nodeType;){var n="",r=[].slice.call(e.parentElement.children);r.length>1&&(n=":nth-child(".concat(r.indexOf(e)+1,")")),t.unshift("".concat(e.tagName).concat(n)),e=e.parentElement}return t.join(">")}},function(e,t,n){"use strict";n.r(t);t.default=function(){return"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"}},function(e,t,n){"use strict";n.r(t),n.d(t,"decodeUnavailableUrl",(function(){return o})),n.d(t,"m3u8ToMp3",(function(){return i})),n.d(t,"isUrlM3u8",(function(){return a}));var r=n(10);function o(e,t){var n=t.split("?extra=")[1].split("#"),o=n[0],a=n[1],i=a?u(a):"",l=u(o),c=(i?i.split(String.fromCharCode(9)):[])[0].split(String.fromCharCode(11)),d=c.splice(0,1,l)[0];return!!s[d]&&(t=s[d].apply(null,[].concat(Object(r.a)(c),[e])))}function a(e){return/\.m3u8\?/.test(e)}function i(e){if(a(e)){var t=(e=e.replace("/index.m3u8",".mp3")).split("/"),n=-1!==e.indexOf("audios")?1:0;return t.splice(t.length-(2+n),1),t.join("/")}return null}var s={s:function(e,t){var n=e.length;if(n){var r=function(e,t){var n=e.length,r=[];if(n){var o=n;for(t=Math.abs(t);o--;)t=(n*(o+1)^t+o)%n,r[o]=t}return r}(e,t),o=0;for(e=e.split("");++o<n;)e[o]=e.splice(r[n-1-o],1,e[o])[0];e=e.join("")}return e},i:function(e,t,n){return s.s(e,t^n)}};function u(e){if(!e||e.length%4==1)return!1;for(var t,n,r=0,o=0,a="";n=e.charAt(o++);)~(n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN0PQRSTUVWXYZO123456789+/=".indexOf(n))&&(t=r%4?64*t+n:n,r++%4)&&(a+=String.fromCharCode(255&t>>(-2*r&6)));return a}},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none"><path fill="#fff" d="M1 3.5a.5.5 0 0 0 0 1v-1Zm20.354.854a.5.5 0 0 0 0-.708L18.172.464a.5.5 0 1 0-.707.708L20.293 4l-2.828 2.828a.5.5 0 1 0 .707.708l3.182-3.182ZM1 4.5h20v-1H1v1Z"></path></svg>'},function(e,t,n){"use strict";n.r(t);var r=n(8),o=n(14);t.default=function(e,t){var n=document.createElement("div");if("string"==typeof t)if(document.getElementById(t))t=document.getElementById(t);else{var a=document.createElement("div");a.setAttribute("id",t),(t=a).style.position="fixed",t.style.bottom="20px",t.style.right="30px",t.style.display="flex",t.style.flexDirection="column-reverse",t.style.overflowX="hidden",t.style.overflowY="scroll",t.style.zIndex="100000",t.style.maxHeight="95%",document.body.appendChild(t)}function i(){n&&(Object(o.unmountComponentAtNode)(n),n=null)}return Object(r.render)(Object(o.createPortal)(Object(o.cloneElement)(e,{unmountLayer:i}),t),n),i}},function(e,t,n){"use strict";n.r(t);var r=n(14);t.default=function(e){var t=e.locals,n=e.use,o=e.unuse;return r.default.useMemo(n,[]),r.default.useEffect((function(){return o}),[]),t}},function(e,t,n){"use strict";n.r(t);t.default=function(){return window.top!==window.self}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=null;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(r,o)}),t)}}},function(e,t,n){var r;e.exports=(r=n(107),function(e){var t=r,n=t.lib,o=n.WordArray,a=n.Hasher,i=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=i.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a=this._hash.words,i=e[t+0],u=e[t+1],f=e[t+2],m=e[t+3],g=e[t+4],h=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],k=e[t+9],A=e[t+10],w=e[t+11],x=e[t+12],C=e[t+13],_=e[t+14],S=e[t+15],O=a[0],M=a[1],E=a[2],D=a[3];O=l(O,M,E,D,i,7,s[0]),D=l(D,O,M,E,u,12,s[1]),E=l(E,D,O,M,f,17,s[2]),M=l(M,E,D,O,m,22,s[3]),O=l(O,M,E,D,g,7,s[4]),D=l(D,O,M,E,h,12,s[5]),E=l(E,D,O,M,v,17,s[6]),M=l(M,E,D,O,b,22,s[7]),O=l(O,M,E,D,y,7,s[8]),D=l(D,O,M,E,k,12,s[9]),E=l(E,D,O,M,A,17,s[10]),M=l(M,E,D,O,w,22,s[11]),O=l(O,M,E,D,x,7,s[12]),D=l(D,O,M,E,C,12,s[13]),E=l(E,D,O,M,_,17,s[14]),O=c(O,M=l(M,E,D,O,S,22,s[15]),E,D,u,5,s[16]),D=c(D,O,M,E,v,9,s[17]),E=c(E,D,O,M,w,14,s[18]),M=c(M,E,D,O,i,20,s[19]),O=c(O,M,E,D,h,5,s[20]),D=c(D,O,M,E,A,9,s[21]),E=c(E,D,O,M,S,14,s[22]),M=c(M,E,D,O,g,20,s[23]),O=c(O,M,E,D,k,5,s[24]),D=c(D,O,M,E,_,9,s[25]),E=c(E,D,O,M,m,14,s[26]),M=c(M,E,D,O,y,20,s[27]),O=c(O,M,E,D,C,5,s[28]),D=c(D,O,M,E,f,9,s[29]),E=c(E,D,O,M,b,14,s[30]),O=d(O,M=c(M,E,D,O,x,20,s[31]),E,D,h,4,s[32]),D=d(D,O,M,E,y,11,s[33]),E=d(E,D,O,M,w,16,s[34]),M=d(M,E,D,O,_,23,s[35]),O=d(O,M,E,D,u,4,s[36]),D=d(D,O,M,E,g,11,s[37]),E=d(E,D,O,M,b,16,s[38]),M=d(M,E,D,O,A,23,s[39]),O=d(O,M,E,D,C,4,s[40]),D=d(D,O,M,E,i,11,s[41]),E=d(E,D,O,M,m,16,s[42]),M=d(M,E,D,O,v,23,s[43]),O=d(O,M,E,D,k,4,s[44]),D=d(D,O,M,E,x,11,s[45]),E=d(E,D,O,M,S,16,s[46]),O=p(O,M=d(M,E,D,O,f,23,s[47]),E,D,i,6,s[48]),D=p(D,O,M,E,b,10,s[49]),E=p(E,D,O,M,_,15,s[50]),M=p(M,E,D,O,h,21,s[51]),O=p(O,M,E,D,x,6,s[52]),D=p(D,O,M,E,m,10,s[53]),E=p(E,D,O,M,A,15,s[54]),M=p(M,E,D,O,u,21,s[55]),O=p(O,M,E,D,y,6,s[56]),D=p(D,O,M,E,S,10,s[57]),E=p(E,D,O,M,v,15,s[58]),M=p(M,E,D,O,C,21,s[59]),O=p(O,M,E,D,g,6,s[60]),D=p(D,O,M,E,w,10,s[61]),E=p(E,D,O,M,f,15,s[62]),M=p(M,E,D,O,k,21,s[63]),a[0]=a[0]+O|0,a[1]=a[1]+M|0,a[2]=a[2]+E|0,a[3]=a[3]+D|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var a=e.floor(r/4294967296),i=r;n[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,l=0;l<4;l++){var c=u[l];u[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,o,a,i){var s=e+(t&n|~t&r)+o+i;return(s<<a|s>>>32-a)+t}function c(e,t,n,r,o,a,i){var s=e+(t&r|n&~r)+o+i;return(s<<a|s>>>32-a)+t}function d(e,t,n,r,o,a,i){var s=e+(t^n^r)+o+i;return(s<<a|s>>>32-a)+t}function p(e,t,n,r,o,a,i){var s=e+(n^(t|~r))+o+i;return(s<<a|s>>>32-a)+t}t.MD5=a._createHelper(u),t.HmacMD5=a._createHmacHelper(u)}(Math),r.MD5)},function(e,t,n){"use strict";n.r(t);var r=n(38),o=n(12),a=Object(o.default)("retryFn");t.default=function e(t,n){return n().catch((function(o){if(t.retries<=1)throw a.error("The number of attempts has been exhausted",o.message),o;return Object(r.default)(t.timeout).then((function(){return a.warn("retry",o.message),e({timeout:t.timeout,retries:--t.retries},n)}))}))}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e?function e(t,n){var r;r=Array.isArray(t)?[]:{};n.push(t),Object.keys(t).forEach((function(o){var a=t[o];"function"!=typeof a&&(a&&"object"==typeof a?-1!==n.indexOf(t[o])?r[o]="[Circular]":r[o]=e(t[o],n.slice(0)):r[o]=a)})),"string"==typeof t.name&&(r.name=t.name);"string"==typeof t.message&&(r.message=t.message);"string"==typeof t.stack&&(r.stack=t.stack);return r}(e,[]):"function"==typeof e?"[Function: "+(e.name||"anonymous")+"]":e}},function(e,t,n){var r=n(114).default;e.exports=r},function(e,t,n){"use strict";n.r(t);function r(e){return"function"==typeof GM_xmlhttpRequest?GM_xmlhttpRequest(e):GM.xmlHttpRequest(e)}function o(e){var t=e.split(/\r?\n/),n=new Headers;return t.forEach((function(e){var t=e.indexOf(":");if(-1!==t){var r=e.substr(0,t).trim(),o=e.substr(t+1).trim();n.append(r,o)}})),n}function a(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.signal;return new Promise((function(i,s){if(n.aborted)return s(new DOMException("Aborted","AbortError"));var u=null,l=null,c=new Promise((function(e,t){l=e,u=function(e){(d||"AbortError"!==e.name)&&t(e)}})),d=!1,p={arrayBuffer:function(){return d=!0,c},text:function(){return p.arrayBuffer().then(a)},json:function(){return p.text().then(JSON.parse)},blob:function(){return p.arrayBuffer().then((function(e){return new Blob([e])}))}},f=r({method:t.method||"GET",url:e,headers:t.headers,data:t.body,responseType:"arraybuffer",onload:function(e){GM_info&&GM_info.version.startsWith("2")&&(p.url=e.finalUrl,p.status=e.status,p.ok=p.status>=200&&p.status<300,p.statusText=e.statusText,p.headers=o(e.responseHeaders),s=u,i(p)),l(e.response)},onerror:function(){s(new TypeError("Network request failed"))},ontimeout:function(){s(new TypeError("Network request failed"))},onabort:function(){s(new DOMException("Aborted","AbortError"))},onreadystatechange:function(e){2!==e.readyState||GM_info&&GM_info.version.startsWith("2")||(p.url=e.finalUrl,p.status=e.status,p.ok=p.status>=200&&p.status<300,p.statusText=e.statusText,p.headers=o(e.responseHeaders),s=u,i(p))}});n.addEventListener("abort",(function(){f.abort()}))}))}},function(e,t,n){"use strict";n.r(t);var r=n(12),o=Object(r.default)("focusSwitcher");t.default=function(){var e,t={waitFocus:null,removeListeners:null},n=function(){o.info("focus out"),t.isFocus=!1};return window.addEventListener("blur",n,{once:!0}),t.waitFocus=new Promise((function(t){e=function(){o.info("focus in"),t()},window.addEventListener("focus",e,{once:!0})})),t.removeListeners=function(){window.removeEventListener("focus",e),window.removeEventListener("blur",n)},t}},function(e,t,n){"use strict";n.r(t);var r=n(10),o=n(129),a=n(130),i=function(e){return new RegExp(e,"i")};t.default=function(e){return e.map((function(e){var t,n,s,u;return{matches:i((t=[]).concat.apply(t,Object(r.a)(e.matches.map((function(e){return o(e)})))).join("|")),exclude_matches:e.exclude_matches&&i((n=[]).concat.apply(n,Object(r.a)(e.exclude_matches.map((function(e){return o(e)})))).join("|")),include_globs:e.include_globs&&i((s=[]).concat.apply(s,Object(r.a)(e.include_globs.map((function(e){return a(e)})))).join("|")),exclude_globs:e.exclude_globs&&i((u=[]).concat.apply(u,Object(r.a)(e.exclude_globs.map((function(e){return a(e)})))).join("|"))}}))}},function(e,t,n){"use strict";n.r(t);t.default=function(e){return function(t){return e.some((function(e){return function(e,t){var n=e.matches.test(t);return n&&e.exclude_matches&&(n=!e.exclude_matches.test(t)),n&&e.include_globs&&(n=e.include_globs.test(t)),n&&e.exclude_globs&&(n=!e.exclude_globs.test(t)),n}(e,t)}))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"getRandomInteger",(function(){return r}));var r=function(e,t){return Math.floor(Math.random()*(t-e+1))+e}},function(e,t,n){"use strict";n.r(t),n.d(t,"Api",(function(){return l}));var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=n(11),l=function(){function e(){Object(o.a)(this,e)}var t,n,i;return Object(a.a)(e,null,[{key:"requestConfig",value:(i=Object(r.a)(s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u.default)("".concat(this.API_URL,"/config"));case 3:return t=e.sent,e.abrupt("return",JSON.parse(t.body));case 7:throw e.prev=7,e.t0=e.catch(0),e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return i.apply(this,arguments)})},{key:"requestCityByAirportCode",value:(n=Object(r.a)(s.a.mark((function e(t){var n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u.default)("".concat(this.API_URL,"/getCityByAirportCode?code=").concat(t));case 3:if(n=e.sent,r=JSON.parse(n.body)){e.next=7;break}throw new Error("city by airport code ".concat(t," is not found"));case 7:return e.abrupt("return",r);case 10:throw e.prev=10,e.t0=e.catch(0),e.t0;case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(e){return n.apply(this,arguments)})},{key:"requestModuleOptions",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u.default)("".concat(this.API_URL,"/moduleOptions/").concat(t));case 3:if(n=e.sent,r=JSON.parse(n.body)){e.next=7;break}throw new Error("module ".concat(t," is not found"));case 7:return e.abrupt("return",r);case 10:throw e.prev=10,e.t0=e.catch(0),e.t0;case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(e){return t.apply(this,arguments)})}]),e}();l.API_URL="https://travelbar.tools/v1/aviaBar"},function(e,t,n){"use strict";e.exports=SyntaxError},function(e,t,n){"use strict";var r=n(35)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},function(e,t,n){"use strict";var r=n(62),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],s=Object.keys(i),u=0;u<s.length;++u){var l=s[u],c=i[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:i,prop:l}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,a){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",l=0;l<s.length;++l){var c=s.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||a===r.RFC1738&&(40===c||41===c)?u+=s.charAt(l):c<128?u+=i[c]:c<2048?u+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?u+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(l)),u+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(a(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var i=t;return a(t)&&!a(n)&&(i=s(t,r)),a(t)&&a(n)?(n.forEach((function(n,a){if(o.call(t,a)){var i=t[a];i&&"object"==typeof i&&n&&"object"==typeof n?t[a]=e(i,n,r):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var i=n[a];return o.call(t,a)?t[a]=e(t[a],i,r):t[a]=i,t}),i)}}},function(e,t,n){var r=n(88).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},a=Object.prototype,i=a.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",d=u.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),i=new L(r||[]);return s(a,"_invoke",{value:M(e,n,i)}),a}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var g="suspendedStart",h="executing",v="completed",b={};function y(){}function k(){}function A(){}var w={};p(w,l,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(T([])));C&&C!==a&&i.call(C,l)&&(w=C);var _=A.prototype=y.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,a,s,u){var l=m(e[o],e,a);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,u)}))}u(l.arg)}var o;s(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}})}function M(e,n,r){var o=g;return function(a,i){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var u=E(s,r);if(u){if(u===b)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===g)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=m(e,n,r);if("normal"===l.type){if(o=r.done?v:"suspendedYield",l.arg===b)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function E(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var a=m(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,b;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return k.prototype=A,s(_,"constructor",{value:A,configurable:!0}),s(A,"constructor",{value:k,configurable:!0}),k.displayName=p(A,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,p(e,d,"GeneratorFunction")),e.prototype=Object.create(_),e},n.awrap=function(e){return{__await:e}},S(O.prototype),p(O.prototype,c,(function(){return this})),n.AsyncIterator=O,n.async=function(e,t,r,o,a){void 0===a&&(a=Promise);var i=new O(f(e,t,r,o),a);return n.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(_),p(_,d,"Generator"),p(_,l,(function(){return this})),p(_,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=T,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=i,e.exports.preferredLanguages=i;var r=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function o(e,t){var n=r.exec(e);if(!n)return null;var o=n[1],a=n[2],i=o;a&&(i+="-"+a);var s=1;if(n[3])for(var u=n[3].split(";"),l=0;l<u.length;l++){var c=u[l].split("=");"q"===c[0]&&(s=parseFloat(c[1]))}return{prefix:o,suffix:a,q:s,i:t,full:i}}function a(e,t,n){var r=o(e);if(!r)return null;var a=0;if(t.full.toLowerCase()===r.full.toLowerCase())a|=4;else if(t.prefix.toLowerCase()===r.full.toLowerCase())a|=2;else if(t.full.toLowerCase()===r.prefix.toLowerCase())a|=1;else if("*"!==t.full)return null;return{i:n,o:t.i,q:t.q,s:a}}function i(e,t){var n=function(e){for(var t=e.split(","),n=0,r=0;n<t.length;n++){var a=o(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}(void 0===e?"*":e||"");if(!t)return n.filter(l).sort(s).map(u);var r=t.map((function(e,t){return function(e,t,n){for(var r={o:-1,q:0,s:0},o=0;o<t.length;o++){var i=a(e,t[o],n);i&&(r.s-i.s||r.q-i.q||r.o-i.o)<0&&(r=i)}return r}(e,n,t)}));return r.filter(l).sort(s).map((function(e){return t[r.indexOf(e)]}))}function s(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function u(e){return e.full}function l(e){return e.q>0}},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(3),a=n(34),i=n(54),s={addedNodes:"added",removedNodes:"removed"},u=Object.keys(s),l=function(){function e(t){Object(r.a)(this,e),this.target=t.target||document.body,this.options=t.options||{childList:!0,subtree:!0},this.filterTarget=t.filterTarget||[],this.queries=t.queries,this.observer=null,this.init()}return Object(o.a)(e,[{key:"init",value:function(){var e=this,t=Object(a.default)(),n=document.location.href;this.observer=new t((function(t){var r=document.location.href;n!==r&&(n=r,document.dispatchEvent(new CustomEvent("mutationwatcher:hrefchange")));for(var o=null;o=t.shift();)e._isAvailableTarget(o.target)&&e._match(o)})),this.start()}},{key:"start",value:function(){this._disconnect(),this._connect(),this.trigger(this.target)}},{key:"trigger",value:function(e){this._match({addedNodes:[e],removedNodes:[]})}},{key:"stop",value:function(){this._disconnect()}},{key:"_match",value:function(e){for(var t,n=this.queries,r=0;t=n[r];r++){for(var o,a={target:e.target,added:[],removed:[]},l=0;o=u[l];l++){var c=s[o];if(void 0===t.is||t.is===c)for(var d,p=a[c],f=e[o],m=0;d=f[m];m++)1===d.nodeType&&(Object(i.default)(d,t.css)?p.push(d):p.push.apply(p,d.querySelectorAll(t.css)))}(a.added.length||a.removed.length)&&t.callback(a,t.css)}}},{key:"_isAvailableTarget",value:function(e){for(var t,n=this.filterTarget,r=0;t=n[r];r++)if(Object(i.default)(e,t.css))return!1;return!0}},{key:"_connect",value:function(){this.observer.observe(this.target,this.options)}},{key:"_disconnect",value:function(){this.observer.disconnect()}}],[{key:"isAvailable",value:function(){return!!Object(a.default)()}}]),e}();t.default=l},function(e,t,n){"use strict";n.r(t);
// @url https://github.com/webcomponents/webcomponentsjs
// @version 0.7.15
var r,o,a=void 0!==a?a:void 0;void 0===a&&(r=Object.defineProperty,o=Date.now()%1e9,(a=function(){this.name="__st"+(1e9*Math.random()>>>0)+o+++"__"}).prototype={set:function(e,t){var n=e[this.name];return n&&n[0]===e?n[1]=t:r(e,this.name,{value:[e,t],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];return!(!t||t[0]!==e||(t[0]=t[1]=void 0,0))},has:function(e){var t=e[this.name];return!!t&&t[0]===e}});var i=void 0!==i?i:void 0;!function(){if(void 0===i){var e,t=new a;if("undefined"!=typeof navigator&&/Trident|Edge/.test(navigator.userAgent))e=setTimeout;else if(window.setImmediate)e=window.setImmediate;else{var n=[],r=String(Math.random());window.addEventListener("message",(function(e){if(e.data===r){var t=n;n=[],t.forEach((function(e){e()}))}})),e=function(e){n.push(e),window.postMessage(r,"*")}}var o,s,u=!1,l=[],c=0;(i=function(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++c}).prototype={observe:function(e,n){var r;if(r=e,e=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(r)||r,!n.childList&&!n.attributes&&!n.characterData||n.attributeOldValue&&!n.attributes||n.attributeFilter&&n.attributeFilter.length&&!n.attributes||n.characterDataOldValue&&!n.characterData)throw new SyntaxError;var o,a=t.get(e);a||t.set(e,a=[]);for(var i=0;i<a.length;i++)if(a[i].observer===this){(o=a[i]).removeListeners(),o.options=n;break}o||(o=new v(this,e,n),a.push(o),this.nodes_.push(e)),o.addListeners()},disconnect:function(){this.nodes_.forEach((function(e){for(var n=t.get(e),r=0;r<n.length;r++){var o=n[r];if(o.observer===this){o.removeListeners(),n.splice(r,1);break}}}),this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},v.prototype={enqueue:function(t){var n,r=this.observer.records_,o=r.length;if(r.length>0){var a=h(r[o-1],t);if(a)return void(r[o-1]=a)}else n=this.observer,l.push(n),u||(u=!0,e(d));r[o]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var n=t.get(e);n||t.set(e,n=[]),n.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach((function(e){this.removeListeners_(e);for(var n=t.get(e),r=0;r<n.length;r++)if(n[r]===this){n.splice(r,1);break}}),this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.namespaceURI,r=e.target;(i=new m("attributes",r)).attributeName=t,i.attributeNamespace=n;var a=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;p(r,(function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(n)))return e.attributeOldValue?g(a):i}));break;case"DOMCharacterDataModified":var i=m("characterData",r=e.target);a=e.prevValue;p(r,(function(e){if(e.characterData)return e.characterDataOldValue?g(a):i}));break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var u,l,c=e.target;"DOMNodeInserted"===e.type?(u=[c],l=[]):(u=[],l=[c]);var d=c.previousSibling,f=c.nextSibling;(i=m("childList",e.target.parentNode)).addedNodes=u,i.removedNodes=l,i.previousSibling=d,i.nextSibling=f,p(e.relatedNode,(function(e){if(e.childList)return i}))}o=s=void 0}}}function d(){u=!1;var e=l;l=[],e.sort((function(e,t){return e.uid_-t.uid_}));var n=!1;e.forEach((function(e){var r=e.takeRecords();!function(e){e.nodes_.forEach((function(n){var r=t.get(n);r&&r.forEach((function(t){t.observer===e&&t.removeTransientObservers()}))}))}(e),r.length&&(e.callback_(r,e),n=!0)})),n&&d()}function p(e,n){for(var r=e;r;r=r.parentNode){var o=t.get(r);if(o)for(var a=0;a<o.length;a++){var i=o[a],s=i.options;if(r===e||s.subtree){var u=n(s);u&&i.enqueue(u)}}}}function f(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function m(e,t){return o=new f(e,t)}function g(e){return s||((n=new f((t=o).type,t.target)).addedNodes=t.addedNodes.slice(),n.removedNodes=t.removedNodes.slice(),n.previousSibling=t.previousSibling,n.nextSibling=t.nextSibling,n.attributeName=t.attributeName,n.attributeNamespace=t.attributeNamespace,n.oldValue=t.oldValue,(s=n).oldValue=e,s);var t,n}function h(e,t){return e===t?e:s&&((n=e)===s||n===o)?s:null;var n}function v(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNodes=[]}}(),t.default=i},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var s=/\+/g;e=e.split(t);var u=1e3;a&&"number"==typeof a.maxKeys&&(u=a.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var c=0;c<l;++c){var d,p,f,m,g=e[c].replace(s,"%20"),h=g.indexOf(n);h>=0?(d=g.substr(0,h),p=g.substr(h+1)):(d=g,p=""),f=decodeURIComponent(d),m=decodeURIComponent(p),r(i,f)?o(i[f])?i[f].push(m):i[f]=[i[f],m]:i[f]=m}return i};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?a(i(e),(function(i){var s=encodeURIComponent(r(i))+n;return o(e[i])?a(e[i],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[i]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";n.r(t);var r=n(29);t.default=function(e,t){if(!e||1!==e.nodeType)return null;if(e.closest)return e.closest(t);if(Object(r.default)(e,t))return e;if(!Object(r.default)(e,t+" "+e.tagName))return null;for(var n=e=e.parentNode;n;n=n.parentNode){if(1!==n.nodeType)return null;if(Object(r.default)(n,t))return n}return null}},function(e,t,n){"use strict";n.r(t),n.d(t,"showTooltip",(function(){return m})),n.d(t,"hideTooltip",(function(){return g}));var r=n(13),o=n(2),a=n(3),i=n(17),s=n(27),u=n(63),l=n(28),c=n(55);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(o.a)(this,e),this.target=t,this.options=Object.assign({content:"",defaultWidth:0,defaultHeight:0},n),this.handleMouseleave=this.handleMouseleave.bind(this),this.isVisible=!1,this.timeout=null}return Object(a.a)(e,[{key:"handleMouseleave",value:function(){this.hide()}},{key:"show",value:function(e){if(this.isVisible)this.startHideTimeout();else{this.node||(this.node=this.createTooltip(e)),this.isVisible=!0;var t=document.body;t&&(this.node.classList.add("hidden"),t.appendChild(this.node),this.setPos(),this.node.classList.remove("hidden")),this.target.addEventListener("mouseleave",this.handleMouseleave),this.startHideTimeout()}}},{key:"hide",value:function(){var e=this;this.isVisible&&(this.isVisible=!1,this.stopHideTimeout(),this.node.classList.add("hidden"),this.target.removeEventListener("mouseleave",this.handleMouseleave),setTimeout((function(){if(!e.isVisible&&e.node){var t=e.node.parentNode;t&&t.removeChild(e.node),e.node=null}}),250))}},{key:"startHideTimeout",value:function(){var e=this;this.stopHideTimeout(),this.timeout=setTimeout((function(){e.hide()}),3e3)}},{key:"stopHideTimeout",value:function(){clearTimeout(this.timeout)}},{key:"createTooltip",value:function(e){return i.default.create("div",{class:["sf-paper-tooltip-ctr"],append:[i.default.create("div",{class:"sf-paper-tooltip",style:p({display:"flex",align:"center"},"in"==Object(l.default)()?{flexDirection:"row"}:""),append:[i.default.create("span",{style:p({paddingTop:"6px"},"in"==Object(l.default)()?{width:"30px",height:"20px"}:""),text:"Hold"}),i.default.create("div",{style:{margin:"4px 4px 0 4px",width:"27px",height:"18px",backgroundColor:"black",borderRadius:"5px",border:"1px solid black",borderBottom:"3px solid black"},append:[i.default.create("div",{style:{fontWeight:"bold",fontSize:"8px",textAlign:"center",zIndex:1,position:"relative",width:"27px",height:"18px",backgroundColor:"white",color:"black",borderRadius:"5px"},append:[i.default.create("span",{style:p({display:"inline-block"},"in"!=Object(l.default)()?{marginTop:"5px"}:""),text:"option"})]})]}),i.default.create("span",{style:p({paddingTop:"6px"},"in"==Object(l.default)()?{width:"60px"}:""),text:"and click"})]}),i.default.create("style",{text:Object(u.default)({".sf-paper-tooltip-ctr":{display:"block",outline:"none",userSelect:"none",cursor:"default",position:"absolute",zIndex:1e4,transition:"opacity 0.25s",width:"180px"},".sf-paper-tooltip-ctr.hidden":{opacity:0},".sf-paper-tooltip":{display:"block",outline:"none",fontFamily:"Arial",fontSize:"14px",fontWeight:"bold",backgroundColor:"#4D4D4D",borderRadius:"8px",color:"white",padding:"8px",margin:"8px",marginBottom:"0"}})}),"photo"!==Object(c.default)(e)&&"story"!=Object(c.default)(e)?i.default.create("div",{style:{position:"relative",left:"15px",width:"0",height:"0",borderColor:"#4D4D4D transparent transparent transparent",borderStyle:"solid",borderWidth:"8px 8px 0 8px"}}):""]})}},{key:"setPos",value:function(){var e=window,t=e.pageXOffset,n=e.pageYOffset,r=e.innerWidth,o=e.innerHeight,a=o+n,i=r+t,s=this.node.getBoundingClientRect();s.width||s.height||(s.width=this.options.defaultWidth,s.height=this.options.defaultHeight);var u=this.target.getBoundingClientRect(),c={},d=["top","bottom","left","right"].map((function(e){var l=null,d=null,p=0;if(-1!==["left","right"].indexOf(e)){var f=(u.height-s.height)/2;if(l=Math.round(u.top+n+f),s.height<o){var m=l+s.height;m>a&&(l-=m-a,p=1),l<0&&(l=0,p=1)}}else"top"===e?l=Math.round(u.top+n)-s.height:"bottom"===e&&(l=Math.round(u.top+n)+u.height);if(-1!==["top","bottom"].indexOf(e)){var g=(u.width-s.width)/2;if(d=Math.round(u.left+t+g),s.width<r){var h=d+s.width;h>i&&(d-=h-i,p=1),d<0&&(d=0,p=1)}}else"left"===e?d=Math.round(u.left+t-s.width):"right"===e&&(d=Math.round(u.left+t+u.width));var v=d+s.width,b=l+s.height,y=s.width,k=s.height,A=y;l<0&&(k-=-1*l),b>a&&(k-=b-a),d<0&&(A-=-1*d),v>i&&(A-=v-i);var w=100/(s.width*s.height)*(A*k)-p;return c[e]={top:l,left:d,quality:w}}));d.sort((function(e,t){var n=e.quality,r=t.quality;return n===r?0:n>r?-1:1}));var p=d[0],f=65;"101"==Object(l.default)()&&window.innerWidth>=1293&&window.innerHeight>=768&&(f=35),this.node.style.top=p.top+"px",this.node.style.left=p.left+f+"px"}}]),e}(),m=function(e,t,n){if(!(e.dataset.sfTitleTooltip>0)){e.dataset.sfTitleTooltip=1;var r=new f(e,t);e.addEventListener("show_tooltip",(function(){r.show(n)})),e.addEventListener("hide_tooltip",(function(){r.hide()}))}s.default.trigger(e,"show_tooltip")},g=function(e){e.dataset.sfTitleTooltip>0&&s.default.trigger(e,"hide_tooltip")}},function(e,t,n){"use strict";n.r(t);t.default=function(e){return"data-"+e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){Array.isArray(t)||(t=[t]);for(var n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;for(var r,o=0;r=t[o];o++)if(n.classList.contains(r))return n}return null}},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(3),a=n(34),i=function(){function e(t){Object(r.a)(this,e),this.target=t.target,this.options=t.options||{attributes:!0,childList:!1,attributeOldValue:!0,attributeFilter:[]},this.attrs=t.attrs,this.observer=null,this.init()}return Object(o.a)(e,[{key:"init",value:function(){var e=this;this.attrs.forEach((function(t){e.options.attributeFilter.push(t.name)}));var t=Object(a.default)();this.observer=new t((function(t){for(var n;n=t.shift();)e._match(n)})),this.start()}},{key:"trigger",value:function(){for(var e,t=this.attrs,n=0;e=t[n];n++){var r=this.target.getAttribute(e.name);null!==r&&e.callback({value:r,oldValue:null})}}},{key:"start",value:function(){this._disconnect(),this._connect()}},{key:"stop",value:function(){this._disconnect()}},{key:"_match",value:function(e){for(var t,n=this.attrs,r=0;t=n[r];r++)t.name===e.attributeName&&t.callback({value:e.target.getAttribute(e.attributeName),oldValue:e.oldValue})}},{key:"_connect",value:function(){this.observer.observe(this.target,this.options)}},{key:"_disconnect",value:function(){this.observer.disconnect()}}],[{key:"isAvailable",value:function(){return!!Object(a.default)()}}]),e}();t.default=i},function(e,t,n){"use strict";n.r(t);var r=n(14).default.createContext({});t.default=r},function(e,t,n){"use strict";n.r(t),n.d(t,"srcIcons",(function(){return a}));var r=n(14),o=r.default.memo((function(e){var t=e.className,n=e.name;return r.default.createElement("img",{className:t,src:a[n]})})),a={televzr:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABN2lDQ1BBZG9iZSBSR0IgKDE5OTgpAAAokZWPv0rDUBSHvxtFxaFWCOLgcCdRUGzVwYxJW4ogWKtDkq1JQ5ViEm6uf/oQjm4dXNx9AidHwUHxCXwDxamDQ4QMBYvf9J3fORzOAaNi152GUYbzWKt205Gu58vZF2aYAoBOmKV2q3UAECdxxBjf7wiA10277jTG+38yH6ZKAyNguxtlIYgK0L/SqQYxBMygn2oQD4CpTto1EE9AqZf7G1AKcv8ASsr1fBBfgNlzPR+MOcAMcl8BTB1da4Bakg7UWe9Uy6plWdLuJkEkjweZjs4zuR+HiUoT1dFRF8jvA2AxH2w3HblWtay99X/+PRHX82Vun0cIQCw9F1lBeKEuf1UYO5PrYsdwGQ7vYXpUZLs3cLcBC7dFtlqF8hY8Dn8AwMZP/fNTP8gAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAXRaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0NSA3OS4xNjM0OTksIDIwMTgvMDgvMTMtMTY6NDA6MjIgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjAtMDMtMTBUMTQ6MDc6MzQrMDM6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIwLTAzLTEwVDE0OjE5OjIwKzAzOjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIwLTAzLTEwVDE0OjE5OjIwKzAzOjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo4YmRjOTI1Yy0yZjM0LTYzNDEtYmYwYi00MzViNTYwMTQ3ODEiIHhtcE1NOkRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo1ZGExNzMyZi1kYjdkLWYxNGYtYjI5Mi1kYzY1M2Y0OTA2M2QiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0Njc5MTViOC1jYWVlLWIxNDgtODdhZi00NTJhMTNiZTMyNjAiPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjQ2NzkxNWI4LWNhZWUtYjE0OC04N2FmLTQ1MmExM2JlMzI2MCIgc3RFdnQ6d2hlbj0iMjAyMC0wMy0xMFQxNDowNzozNCswMzowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo4YmRjOTI1Yy0yZjM0LTYzNDEtYmYwYi00MzViNTYwMTQ3ODEiIHN0RXZ0OndoZW49IjIwMjAtMDMtMTBUMTQ6MTk6MjArMDM6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5pQ7PdAAAHUUlEQVRYhcWXXYxdVRXHf2vvc869dz7uzNy2Q0lbamkppZRQLZYa0BCE1JSPGjAtEH0Bow9GDQbKkw8+NYqJaKLE+KCJlWgiUj6SGlpIlBaYSi3wUCHWh0I7nc709s505s49956z9/LhnPsx01af0H2zc/a5+5y91/6v//qvdURV+X+2YNG9AQQotP9QVVFVVUVU1YF2bG6PRFAQLwIgKiKIQHYVgHK+dgOIgc6pew2wqvq0c/5x7x3eK6rgvUfVA4JXhR7E2iNpXyUbGzHdCRGMGMQI1poz1tpbRWQSSAGV/BBr0jS9u9lKfqnek6aOOG5Srzfo6y9hrSFNXG6Morkhcw7enIG6g9AIRSuUrDAQGsqhYSgylCNDX2AoGCEwYIxNwij8KIrC7cC/RFWjJEl3xHH8wtzcPEeOHOPo0fc5ffostQszbLrpeh555H5WrLgqg8kajDEdeN++CL8/p8ROwSt4j6jDeEeonpJ4yhYqkbB+MGTLkoihyFIoFs4WCtE1kqbplvp842i1Om1+8fN9HDp4mLjZQuj6ccuWTTz+vUfZvHnjJSRyCi9X4aXz2f5d/2RIqfd45/BJAvE814UJD68usbwU0N9futXu2fPUh81mq/i7fS/y/B8P4L3HGoMx0jnl6dPneOut4/T1lVi7bjVBYGkz0QCrizCdwqm4y4eME4IYiwkCbBRhiiUmY890PWZj2WJUHzNJkg5OTEzx2qEjqGqbtQuatYazZyfZu/dZfvz0r5g8dx4RQVXxqhRFeWCpcmOf4ton73SP+qwjQjg4yAcNw6l6SpK0jHHeMzExRbVa6yx6uS4iNJtNnnvuJfbs+SHHj58AJIsUVUassntUWRVpN1oWd+8RI7RsyETsQRXjVWm1Epzzl5wc71HnekIvc8nY2Hs8+cRe/vT8n2m1WgCkXlkZKbuXKcM2M+Kyh/GKipD47BmTTfRGdt5V6b/+BipfuBM7MIB615mzVhgfP8fevc/yzDO/plqdzoxwnhv6PDuXeCK60Kv3oB6875ITUK8EGZk0+2kuHgoSWEbve4DhLduYOf43Jl74A/WTH3YUR4wQxzH7fruf8fFzPPnkN7jqqqV459k2AB/Nw+u1TJzyoMgH0nGJV8W0xSWTtbbSKWIMJsoUufzpW1jz3acY3fFlbF//Ircohw4e5mc//Q2zs3WcV4x67hzyjAYe5xYiod51Eei6IEeh59obw5qkBEMjXL3rq1zzze/Qt/Y6tMddIsLrr7/Ju8dPoKqkqadiPeuLHu88urj77h6mlyy03UCGSNti7xw+TUGV8s238KlvPUH5ps9ki+dAzM83+OCDkzjnSJ1DnWPUOmi/n/cMPZ+7wGcc6LCgvXmbE/kLmkeIAmIUOzCILZc7hCKHM262SNM8ZwA4ULcwsBQyFHLyB93kQh7vdMbqPT7NTgECRojPnGHywItMjx2m/bAqhKFl5crlOOdwziHAVAw+BbNA2yTnQRYUwYIMt8AFmkGWptl8mjDz96NMHdhPY/zjXDEFFJxzbNq0kRtvXE+rlaCqzDv452xu+2J5cR5VWYhA5gLfjUOfJRBVpTkxztTBV5g+egTfjEFMx1DvPWuuXcWjj+1icLCfVitBgLEZOFXPl1pkgDqHqs0M8NoVnm55pmjSojb2BvHZM9Te+gvx6VM55NIJVYDNmzfy2NcfYu3a1TSbLYwIJ+fhtSlI04XJqYtAinqDX4CA5nog7XoLamOHqY0dzjY00iWoVwqFiC/edTu7dt1LpTJCs9nK/J7Ay5NQi7NXLldx+jRFNUDVEHjfzYBdFyxqQq5e4NWzbGmFB79yD3fc8TmiKKTZbCLAnINXpjIVNFwKfa8LRD3qITAGRirDDA7202g0EHM50GhLAxs2rOPhh3Zy/Ya1GT+aWTJKPByswT8uZo9fhnudFqJUQsGpEhQLRZYuq/DZrTfz8kuvYrCXgKBeiaKQ2z9/Kzt3bqeyZIQ4bnXBAd6+CO/UrnzqdnPec12lxIoihGFIMDJU3jo/3zj64K57GB+f4Ng773fyv0hWCVdGhrnn3ru47batRFFI3Ig7Cwpwog5vXMhQ6K1nekQ1u1dYWY740soSRQMjw0M7RFVt9cL0TybOV79dq9Y49OpfOfbOe0xNVpmdq3P18lHuu38769at6VHK7uYfN+FAFWZ6GJ+V54I1QmQNpdAyXAy4drjItuUllhWEyshQffnosmFRVauqvjZ98QdT1QvfbyUJcdxkdnaOizOzDJXLDAz0k7SSTGad75TnsVPenIHzqRAaIbJCKbRZWV4IGC5YhgqWwcjQZ4WCUYLAsmRkWJcuqWy1xrwrqto2fFWz1dp9ca7+o0ajQZKkpM6RpmmWUlUX4CtkVXCi+fcHWdiZPGKMCMYIxhpCGxCEIaViUcuD/V8rFor7RfBAfMUa8D/10+MT0h6f+viM9M6dmzov5y/URFWpzzfkv63V/jL6pNvi2O4UmYs/Tj+pdqVTqvkfGXDF9m/pUjcFDUhV2wAAAABJRU5ErkJggg==",check:"data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill='green' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M497.36,69.995c-7.532-7.545-19.753-7.558-27.285-0.032L238.582,300.845l-83.522-90.713c-7.217-7.834-19.419-8.342-27.266-1.126c-7.841,7.217-8.343,19.425-1.126,27.266l97.126,105.481c3.557,3.866,8.535,6.111,13.784,6.22c0.141,0.006,0.277,0.006,0.412,0.006c5.101,0,10.008-2.026,13.623-5.628L497.322,97.286C504.873,89.761,504.886,77.54,497.36,69.995z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M492.703,236.703c-10.658,0-19.296,8.638-19.296,19.297c0,119.883-97.524,217.407-217.407,217.407c-119.876,0-217.407-97.524-217.407-217.407c0-119.876,97.531-217.407,217.407-217.407c10.658,0,19.297-8.638,19.297-19.296C275.297,8.638,266.658,0,256,0C114.84,0,0,114.84,0,256c0,141.154,114.84,256,256,256c141.154,0,256-114.846,256-256C512,245.342,503.362,236.703,492.703,236.703z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3C/svg%3E",warning:"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M256,0C114.497,0,0,114.507,0,256c0,141.503,114.507,256,256,256c141.503,0,256-114.507,256-256C512,114.497,397.493,0,256,0z M256,472c-119.393,0-216-96.615-216-216c0-119.393,96.615-216,216-216c119.393,0,216,96.615,216,216C472,375.393,375.385,472,256,472z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M256,128.877c-11.046,0-20,8.954-20,20V277.67c0,11.046,8.954,20,20,20s20-8.954,20-20V148.877C276,137.831,267.046,128.877,256,128.877z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Ccircle cx='256' cy='349.16' r='27'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",circleLoading:"data:image/svg+xml,%3Csvg enable-background='new 0 0 497 497' viewBox='0 0 497 497' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Ccircle cx='98' cy='376' fill='%23909ba6' r='53'/%3E%3Ccircle cx='439' cy='336' fill='%23c8d2dc' r='46'/%3E%3Ccircle cx='397' cy='112' fill='%23e9edf1' r='38'/%3E%3Cellipse cx='56.245' cy='244.754' fill='%237e8b96' rx='56.245' ry='54.874'/%3E%3Cellipse cx='217.821' cy='447.175' fill='%23a2abb8' rx='51.132' ry='49.825'/%3E%3Cellipse cx='349.229' cy='427.873' fill='%23b9c3cd' rx='48.575' ry='47.297'/%3E%3Cellipse cx='117.092' cy='114.794' fill='%235f6c75' rx='58.801' ry='57.397'/%3E%3Cellipse cx='453.538' cy='216.477' fill='%23dce6eb' rx='43.462' ry='42.656'/%3E%3Ccircle cx='263' cy='62' fill='%234e5a61' r='62'/%3E%3C/g%3E%3C/svg%3E"};t.default=o},function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=[],a=function(t){!o.find((function(r){return n.every((function(n){return r[n]===e[t][n]}))}))&&o.push(e[t])},i=0;i<e.length;i++)a(i);return o}n.r(t),n.d(t,"uniqArrayObject",(function(){return r}))},function(e,t,n){"use strict";n.r(t);var r=n(14).default.createContext({});t.default=r},function(e,t,n){"use strict";n.r(t);var r=n(17);t.default=function e(t,n){if(n=n||{},"string"==typeof t){if("["!==t[0])return document.createTextNode(t);try{t=t.replace(/"/g,"\\u0022").replace(/\\'/g,"\\u0027").replace(/'/g,'"').replace(/([{,])\s*([a-zA-Z0-9]+):/g,'$1"$2":'),t=JSON.parse(t)}catch(e){return document.createTextNode(t)}}if(!Array.isArray(t))return document.createTextNode(t);for(var o=n.fragment||document.createDocumentFragment(),a=0,i=t.length;a<i;a++){var s=t[a];if("object"==typeof s)for(var u in s){var l=s[u],c=l.append;delete l.append;var d;o.appendChild(d=r.default.create(u,l)),void 0!==c&&e(c,{fragment:d})}else o.appendChild(document.createTextNode(s))}return o}},function(e,t,n){"use strict";n.r(t);var r=/^[^{]+\{\s*\[native \w/,o=function(e,t){return(o=r.test(document.compareDocumentPosition)||r.test(document.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1}).apply(this,arguments)};t.default=function(e,t){return o(e,t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"instanceCreate",(function(){return l})),n.d(t,"instanceInit",(function(){return c})),n.d(t,"instanceCallFn",(function(){return d})),n.d(t,"instanceDestroy",(function(){return p})),n.d(t,"buildInstance",(function(){return f}));var r=n(10),o=n(20),a=n(22),i=n(37),s=new Map,u=0,l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];u>1e5&&(u=0);for(var n,r=0;0===r||s.has(r);)r=++u;var o=new Promise((function(e){n=e}));return s.set(r,{initFn:e,onInit:n,whenInit:o}),{id:r,methods:t}},c=function(e){var t,n=g(e),s=null;try{n.init=n.initFn(),n.onInit()}catch(e){s=e,n.onInit(Promise.reject(new a.default("call initFn error","CALL_INIT_FN_ERROR")))}if(n.initFn=n.onInit=void 0,(t=Object(o.default)((function(){return n.init}))).then.apply(t,Object(r.a)(Object(i.default)((function(){p(e)})))),s)throw s;return n.init},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=g(e);return r.whenInit.then((function(){var e=h(r.init,t),o=e.scope;return o[e.endPoint].apply(o,n)}))},p=function(e){s.delete(e)},f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];e.instanceInit=e.instanceInit||"instanceInit",e.instanceCallFn=e.instanceCallFn||"instanceCallFn";var r=null,i={id:null,whenInit:new Promise((function(e){r=e}))};return i.resultPromise=Object(o.default)(t).then((function(t){var n=t.id,o=t.methods;i.id=n;var a=e.apiCall(e.instanceInit,{id:n});return a.then((function(){i.id=null}),(function(e){i.id=null})),m(i,o,e),r(),a}),(function(e){throw r(Promise.reject(new a.default("Init remote instance error","INIT_REMOTE_INSTANCE_ERROR"))),e})),m(i,n,e),i.resultPromise};function m(e,t,n){for(var r,o=function(t){if(e.resultPromise.hasOwnProperty(t))return 1;e.resultPromise[t]=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e.whenInit.then((function(){if(!e.id)throw new a.default("Instance is done","INSTANCE_DONE");return n.apiCall(n.instanceCallFn,{id:e.id,path:t,args:o})}))}},i=0;r=t[i];i++)o(r)}function g(e){var t=s.get(e);if(!t)throw new a.default("Instance is not found","INSTANCE_IS_NOT_FOUND");return t}function h(e,t){for(var n=t.split("."),r=n.pop(),o=e;n.length;)o=o[n.shift()];return{scope:o,endPoint:r}}},function(e,t,n){"use strict";n.r(t),t.default=function(e){return e()||function(){}}},function(e,t,n){(function(t){var r;e.exports=(r=r||function(e,r){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==t&&t.crypto&&(o=t.crypto),!o)try{o=n(!function(){var e=new Error("Cannot find module 'crypto'");throw e.code="MODULE_NOT_FOUND",e}())}catch(e){}var a=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},u=s.lib={},l=u.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=u.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<o;a++){var i=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=i<<24-(r+a)%4*8}else for(a=0;a<o;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(a());return new c.init(t,e)}}),d=s.enc={},p=d.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},f=d.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},m=d.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},g=u.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=m.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,a=r.sigBytes,i=this.blockSize,s=a/(4*i),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,l=e.min(4*u,a);if(u){for(var d=0;d<u;d+=i)this._doProcessBlock(o,d);n=o.splice(0,u),r.sigBytes-=l}return new c.init(n,l)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),h=(u.Hasher=g.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}}),s.algo={});return s}(Math),r)}).call(this,n(58))},function(e,t,n){"use strict";n.r(t),t.default=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},function(e,t,n){"use strict";n.r(t),n.d(t,"PostPhotoLinkExtractor",(function(){return l}));var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=n(16),l=function(){function e(){Object(o.a)(this,e)}var t;return Object(a.a)(e,[{key:"extractLinks",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,o,a,i,l,c;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.element){e.next=3;break}throw new Error("element is not defined");case 3:if(n instanceof HTMLImageElement){e.next=5;break}throw new Error("element is not supported");case 5:if(r=null,"string"==typeof(o=n.getAttribute("srcset"))&&(a=[],o.split(",").map((function(e){var t=e.split(" ");a.push({url:t[0],size:t[1]})})),a.sort((function(e,t){return e.size>t.size?-1:1})),(i=a.shift())&&(r=i.url)),r||(r=n.src),"string"==typeof r){e.next=11;break}throw new Error("src is not found");case 11:return l="jpeg",-1!==r.indexOf(".png")&&(l="png"),c=(c=u.default.modify(this.getContentMakerName(n)))?c+"_":"",e.abrupt("return",[{url:r,filename:c+Date.now()+"."+l}]);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getContentMakerName",value:function(e){var t=e.closest("article");if(t){var n=t.querySelector("header span a");return n?n.textContent:""}return""}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"PostVideoLinkExtractor",(function(){return p}));var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=n(11),l=n(12),c=n(16),d=Object(l.default)("IgPostVideoLinkExtractor"),p=function(){function e(){Object(o.a)(this,e),this.queryHash=void 0,this.queryHash=window.localStorage.getItem("_sf_query_hash")||"a9441f24ac73000fa17fe6e6da11d59d"}var t,n;return Object(a.a)(e,[{key:"extractLinks",value:(n=Object(r.a)(s.a.mark((function e(t){var n,r,o,a,i,u,l,d,p,f,m,g,h,v,b;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.element){e.next=3;break}throw new Error("element is not defined");case 3:if(n instanceof HTMLVideoElement){e.next=5;break}throw new Error("element is not supported");case 5:if("string"==typeof(r=n.getAttribute("src"))&&-1===r.indexOf("blob:")){e.next=23;break}if((o=this.getArticleIdFromURL(location.href))||(a=n.closest(".sf-root-media-container"))&&(o=this.getArticleIdFromContainer(a)),o&&-1===o.indexOf("/")||(i=n.closest("article"),u=n.closest("section"),l=i&&i.querySelector('a[href*="/liked_by"]'),!i&&u&&(l=u.querySelector('a[href*="/liked_by"]')),l&&(d=l.href.match(/\/p\/(.*?)\/liked_by/))&&d[1]&&(o=d[1])),!o||-1!==o.indexOf("/")){e.next=22;break}return e.prev=11,e.next=14,this.requestApiEntity(o);case 14:return p=e.sent,f=this.prepVideoFromResponseApi(n,p),m=f.filename,g=f.url,e.abrupt("return",[{filename:m,url:g}]);case 19:throw e.prev=19,e.t0=e.catch(11),new Error("Get Video from api error: "+e.t0);case 22:throw new Error("idArticle not found");case 23:return h="mp4",-1!==r.indexOf(".flv")&&(h="flv"),(v=(v=r.match(/\/([^\/?]+)(?:$|\?)/))&&v[1])||(v="noname."+h),b=(b=c.default.modify(this.getContentMakerName(n)))?b+"_":"",e.abrupt("return",[{url:r,filename:b+v}]);case 31:case"end":return e.stop()}}),e,this,[[11,19]])}))),function(e){return n.apply(this,arguments)})},{key:"getArticleIdFromURL",value:function(e){var t=e.split("?")[0].match(/(?:\/p|\/tv|\/reels?)\/(.*)/);if(t&&t[1])return t[1].replace("/","")}},{key:"getArticleIdFromContainer",value:function(e){var t=e.closest("article");if(t){var n=t.querySelector('a[href*="/p/"], a[href*="/tv/"]');if(n)return this.getArticleIdFromURL(n.href)}}},{key:"requestApiEntity",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="https://www.instagram.com/graphql/query/?",o=new URLSearchParams({query_hash:this.queryHash,variables:JSON.stringify({shortcode:e})});return Object(u.default)({url:r+o.toString(),json:!0}).then((function(e){if(!e.body||!e.body.data||!e.body.data.shortcode_media)throw new Error("Request video from api failed. Empty body");return e.body.data.shortcode_media}),(function(r){if(400==r&&0===n)return t.refreshQueryHash().then((function(){return t.requestApiEntity(e,1)}))}))}},{key:"refreshQueryHash",value:(t=Object(r.a)(s.a.mark((function e(){var t,n=this;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=document.querySelector('link[href*="Consumer.js/"]'))||!t.href){e.next=5;break}return e.abrupt("return",Object(u.default)(t.href).then((function(e){var t=e.body.match(/s="(\w+)",l=/);t&&t[1]&&(n.queryHash=t[1],window.localStorage.setItem("_sf_query_hash",t[1]),d&&d.info("new query hash",n.queryHash))})));case 5:d&&d.error("Consumer.js not found. refreshQueryHash error");case 6:return e.abrupt("return",Promise.resolve());case 7:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"prepVideoFromResponseApi",value:function(e,t){var n;if("GraphVideo"===t.__typename&&t.video_url){var r=t.title||t.id||"video_instagram";return{filename:c.default.modify("".concat(r,".mp4")),url:t.video_url}}var o=t.edge_sidecar_to_children.edges.shift().node;if("GraphSidecar"===t.__typename&&"GraphImage"!==(null==o?void 0:o.__typename)){var a=t.title||o.id||"video_instagram";return{filename:c.default.modify("".concat(a,".mp4")),url:o.video_url}}if("GraphSidecar"===t.__typename&&null!==(n=t.edge_sidecar_to_children)&&void 0!==n&&n.edges){var i=t.edge_sidecar_to_children.edges;if(!i.length)return;var s=e.getAttribute("poster");if(!s)return;var u=i.find((function(e){return e.node.display_url.split("?")[0]===s.split("?")[0]}));if(u&&"GraphVideo"===u.node.__typename)return this.prepVideoFromResponseApi(e,u.node)}}},{key:"getContentMakerName",value:function(e){var t=e.closest("article");if(t){var n=t.querySelector("header span a");return n?n.textContent:""}return""}}]),e}()},function(e,t,n){"use strict";n.r(t);t.default=function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++){var r=arguments[t];for(var o in r)void 0!==r[o]&&(delete e[o],e[o]=r[o])}return e}},function(e,t,n){"use strict";n.r(t);t.default={animation:"none 0s ease 0s 1 normal none running",backfaceVisibility:"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor",borderCollapse:"separate",borderImage:"none",borderRadius:"0",borderSpacing:"0",bottom:"auto",boxShadow:"none",boxSizing:"content-box",captionSide:"top",clear:"none",clip:"auto",color:"inherit",columns:"auto",columnCount:"auto",columnFill:"balance",columnGap:"normal",columnRule:"medium none currentColor",columnSpan:"1",columnWidth:"auto",content:"normal",counterIncrement:"none",counterReset:"none",cursor:"auto",direction:"ltr",display:"inline",emptyCells:"show",float:"none",font:"normal normal normal normal medium/normal inherit",height:"auto",hyphens:"none",left:"auto",letterSpacing:"normal",listStyle:"disc outside none",margin:"0",maxHeight:"none",maxWidth:"none",minHeight:"0",minWidth:"0",opacity:"1",orphans:"0",outline:"medium none invert",overflow:"visible",overflowX:"visible",overflowY:"visible",padding:"0",pageBreakAfter:"auto",pageBreakBefore:"auto",pageBreakInside:"auto",perspective:"none",perspectiveOrigin:"50% 50%",position:"static",right:"auto",tabSize:"8",tableLayout:"auto",textAlign:"inherit",textAlignLast:"auto",textDecoration:"none solid currentColor",textIndent:"0",textShadow:"none",textTransform:"none",top:"auto",transform:"none",transformOrigin:"50% 50% 0",transformStyle:"flat",transition:"none 0s ease 0s",unicodeBidi:"normal",verticalAlign:"baseline",visibility:"visible",whiteSpace:"normal",widows:"0",width:"auto",wordSpacing:"normal",zIndex:"auto",all:"initial"}},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(3),a=n(20),i=n(12),s=n(76),u=n(77),l=Object(i.default)("mediaMuxer:transport"),c=function(){},d=new WeakMap,p=function(){function e(t,n){var o=this;Object(r.a)(this,e),this.listener=function(e,t,n){switch(e.action){case"callFn":return o.responseFn(e,n),!0}},this.callFn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=o;return n.waitPromise({action:"callFn",fn:e,args:t})},this.scope=n,this.pageId=parseInt(1e3*Math.random(),10),this.callbackId=0,this.callbackIdCallback={},this.listeners=[],this.transport=t,this.onMessage(this.listener)}return Object(o.a)(e,[{key:"onMessage",value:function(e){var t=this,n=this.listeners,r=this.callbackIdCallback;!n.length&&this.transport.onMessage((function(e,o){if(o.responseId){var a=r[o.responseId];a?a(o.message):l.error("Callback is not found",o)}else{var i;i=o.callbackId?function(e){var t=!1;return function(){t||(t=!0,e.apply(null,arguments))}}((function(e){t.transport.sendMessage({responseId:o.callbackId,message:e})})):c;var s=null;n.forEach((function(t){try{var n=t(o.message,{event:e},i);!0===n&&(s=n)}catch(e){l.error("Call listener error",e)}})),!0!==s&&i()}})),n.push(e)}},{key:"sendMessage",value:function(e,t){var n=this.callbackIdCallback,r={message:e};if(t){r.callbackId=this.pageId+ ++this.callbackId;var o=function(e){delete n[r.callbackId],t(e)};d.has(t)&&(d.delete(t),d.set(o,!0)),n[r.callbackId]=o}try{this.transport.sendMessage(r)}catch(e){throw delete n[r.callbackId],e}}},{key:"waitPromise",value:function(e){var t=this;return new Promise((function(n,r){var o=function(e){return e.err?r(u(e.err)):n(e.result)};d.set(o,!0),t.sendMessage(e,o)}))}},{key:"responsePromise",value:function(e,t){return e.then((function(e){t({result:e})}),(function(e){t({err:s(e)})})).catch((function(e){console.error("responsePromise error",e)})),!0}},{key:"resolvePath",value:function(e){for(var t=e.split("."),n=t.pop(),r=this.scope;t.length;)r=r[t.shift()];return{scope:r,endPoint:n}}},{key:"responseFn",value:function(e,t){var n=this,r=Object(a.default)((function(){var t=n.resolvePath(e.fn),r=t.scope;return r[t.endPoint].apply(r,e.args)}));return this.responsePromise(r,t)}}]),e}();t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function o(e){return e&&"object"===(void 0===e?"undefined":r(e))&&"string"==typeof e.name&&"string"==typeof e.message}t.default=function(e){return o(e)?Object.assign(new Error,{stack:void 0},e):e},t.isSerializedError=o},function(e,t,n){"use strict";n.r(t);var r=0;function o(e){return e.returnValue=!0}t.default=function(){1===++r&&window.addEventListener("beforeunload",o);var e=!1;return function(){e||(e=!0,0==--r&&window.removeEventListener("beforeunload",o))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"StoryPhotoLinkExtractor",(function(){return u}));var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=function(){function e(){Object(o.a)(this,e)}var t;return Object(a.a)(e,[{key:"extractLinks",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,o,a,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.element){e.next=3;break}throw new Error("element is not defined");case 3:if(n instanceof HTMLImageElement){e.next=5;break}throw new Error("element is not supported");case 5:if(n.srcset&&(o=n.srcset.split(",")[0])&&(r=o.split(" ")[0]),r||(r=n.src),r){e.next=9;break}throw new Error("url is not found");case 9:return a=location.href.match(/stories\/(.*?)\/(\d+)/),i="instagram_photo_story_".concat(Date.now(),".jpg"),a&&a[1]&&a[2]&&(i=[a[1],a[2]].join(" - ")+".jpg"),e.abrupt("return",Promise.resolve([{url:r,filename:i}]));case 13:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"AlbumLinkExtractor",(function(){return f}));var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=n(16),l=n(11),c=n(41),d=n(29),p=n(17),f=function(){function e(t){Object(o.a)(this,e),this.cache=void 0,this.cache=t}var t;return Object(a.a)(e,[{key:"extractLinks",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,o,a,i,u,l,c;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.mediaId,r=t.details,!n){e.next=20;break}return e.prev=2,e.next=5,this._getAlbumLinks(n,r);case 5:return o=e.sent,a=o.list,e.abrupt("return",this.listToLinks(a));case 10:return e.prev=10,e.t0=e.catch(2),"Album is empty"!==e.t0.message&&"Abort"!==e.t0.message&&console.error("findAlbumLinks error",e.t0),e.next=15,this._getAlbumLinksViaDom(document,r);case 15:return i=e.sent,u=i.list,e.abrupt("return",this.listToLinks(u));case 18:e.next=26;break;case 20:return console.error("id is not defined"),e.next=23,this._getAlbumLinksViaDom(document,r);case 23:return l=e.sent,c=l.list,e.abrupt("return",this.listToLinks(c));case 26:case"end":return e.stop()}}),e,this,[[2,10]])}))),function(e){return t.apply(this,arguments)})},{key:"_getAlbumLinks",value:function(e,t){var n=this,r=this,o=this.cache,a="";/albums|tags|photos/.test(location.href)&&(a=this.getFolderName());var i={},s=[],d=0,p=0,f=0,m=0;return function g(){return function(a){if(t.abort)return Promise.reject(new Error("Abort"));var s={act:"show",al:1,list:e,offset:null};return a&&(s.offset=a),Object(l.default)({type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},url:"/al_photos.php",data:s,localXHR:!0,timeout:6e4}).then((function(e){var t=n.parseVkResponse(e.body),a=t[6],s=t[8];d||(d=s.length),p=a,f||(f=Math.ceil(a/d));var l=[],m="";return s.forEach((function(e){if(!i[e.id]){i[e.id]=1;var t=r.getMaxPhotoSize(e);t&&(!m&&e.album&&(m=u.default.decodeSpecialChars(Object(c.a)(e.album.replace(/<[^>]+>/g,"")))),t.id=e.id,o[e.id]=t,l.push(t))}})),new Promise((function(e){setTimeout(e,250)})).then((function(){return{title:m,list:l}}))}))}(m*d).then((function(e){if(f--,m++,s.push.apply(s,e.list),t.onProgress&&t.onProgress(s.length,p),a||(a=e.title),f>0)return g()}))}().then((function(){if(Object.keys(o).slice(1e3).forEach((function(e){delete o[e]})),!s.length)throw new Error("Album is empty");return a||(a=n.getFolderName()),{title:a,list:s}}),(function(e){throw"Abort"!==e.message&&console.error("Get photo page error!",e),e}))}},{key:"getFolderName",value:function(){if(null!==document.querySelector('.page_block_header_inner._header_inner a.ui_crumb[href="/audio"]')){var e=document.querySelector(".page_block_header_inner._header_inner div.ui_crumb");if(e&&e.textContent)return u.default.modify(e.textContent)}var t=document.title,n=t.indexOf("|");return-1!==n&&(t=t.substr(0,n-1)),u.default.modify(t)}},{key:"parseVkResponse",value:function(e){try{var t=JSON.parse(e).payload[1];return[null,null,null,null,null,t[0],t[1],null,t[3]]}catch(e){}for(var n=function(e){return!0===e?1:parseInt(e)||0},r=function(e){return!0===e?1:parseFloat(e)||0},o=e.split("<!>"),a=o.length-1;a>=0;--a){var i=o[a];if("<!"==i.substr(0,2)){var s=i.indexOf(">"),u=i.substr(2,s-2);switch(i=i.substr(s+1),u){case"json":var l=null;try{l=JSON.parse(i)}catch(e){}o[a]=l;break;case"int":o[a]=n(i);break;case"float":o[a]=r(i);break;case"bool":o[a]=!!n(i);break;case"null":o[a]=null;break;case"pageview_candidate":o.pop();break;case"debug":o.pop()}}}return o}},{key:"getMaxPhotoSize",value:function(e){var t=null,n=null;["w","z","y","x"].some((function(r){return!!(t=e[r+"_"])||(!!(n=e[r+"_src"])||void 0)})),t||(t=[n]);var r,o;return t[0]?{url:(r=e.base,o=t[0],o.match(/https?:\/\//i)?((o=new URL(o)).pathname.match(/\.[a-z]{3}$/i)||(o+=".jpg"),o.toString()):(o.match(/\.[a-z]{3}$/i)||(o+=".jpg"),(r||"").replace(/\/[a-z0-9_:\.]*$/i,"")+"/"+o)),width:t[2]&&t[1],height:t[1]&&t[2]}:null}},{key:"_getAlbumLinksViaDom",value:function(e,t){var n=this,r=this,o=this.cache;if(t.abort)return Promise.reject(new Error("Abort"));var a=/showPhoto\s*\(\s*["']([-\d_]+)["']\s*,\s*["']([\w\-]+)["']/i,i=/\{["']?temp["']?\s*:\s*(\{.+?\})/i,s=/(\{|,)\s*(\w+)\s*:/gi,u={},l=[],c=function(e){if(!n.isReply(e)&&!n.elIsHidden(e)){var t=e.getAttribute("onclick"),o=a.exec(t);if(o){var c=o[1];if(!u[c]){u[c]=1;var d=o[2],p=null,f=i.exec(t);if(f){f=f[1].replace(s,'$1"$2":');var m=null;try{m=JSON.parse(f)}catch(e){}p=m&&r.getMaxPhotoSize(m)}p||(p={}),p.id=c,p.listId=d,l.push(p)}}}};if([].slice.call(e.querySelectorAll("a[onclick]")).forEach(c),0===l.length&&e!==document){var d=this.getWallPostContent();d&&[].slice.call(d.querySelectorAll("a[onclick]")).forEach(c)}return function(e){var r=Promise.resolve(),a=[],i=e.filter((function(e){var t=o[e.id];return!t||(a.push(t),!1)}));return t.onProgress&&t.onProgress(a.length,e.length),i.forEach((function(i){r=r.then((function(){return n._getPhotoLinks(i.id,i.listId,t).then((function(n){o[i.id]=n,a.push(n),t.onProgress&&t.onProgress(a.length,e.length)}),(function(n){if("Abort"===n.message)throw n;i.url&&(a.push(i),t.onProgress&&t.onProgress(a.length,e.length),console.error("Photo link from dom",n))}))}))})),r=r.then((function(){if(Object.keys(o).slice(1e3).forEach((function(e){delete o[e]})),!a.length)throw new Error("Photos is not found");return{list:a}}))}(l)}},{key:"_getPhotoLinks",value:function(e,t,n){var r=this;return this._getModuleName().then((function(o){return function(o){if(n.abort)return Promise.reject(new Error("Abort"));var a={act:"show",al:1,list:t,module:o,photo:e};return Object(l.default)({type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},url:"/al_photos.php",data:a,localXHR:!0,timeout:6e4}).then((function(t){var n=r.parseVkResponse(t.body)[8],o=null;if(n.some((function(t){if(t.id===e)return o=r.getMaxPhotoSize(t),!0})),!o)throw new Error("Photo is is not found!");return new Promise((function(e){setTimeout(e,250)})).then((function(){return o}))}))}(o)})).catch((function(e){throw"Abort"!==e.message&&console.error("Get photo error!",e),e}))}},{key:"isReply",value:function(e){return Object(d.default)(e,".replies "+e.tagName)||Object(d.default)(e,".wl_replies "+e.tagName)}},{key:"elIsHidden",value:function(e){return null===e.offsetParent}},{key:"getWallPostContent",value:function(){var e=location.href.match(/wall(-?\d+_\d+)/);if(e=e&&e[1])return document.getElementById("post"+e)||document.getElementById("wpt"+e)}},{key:"_getModuleName",value:function(){return new Promise((function(e,t){var n=p.default.create("script",{text:'(function(dataArg){if(window.cur&&window.cur.module&&typeof window.cur.module==="string"){document.body.dataset[dataArg]=window.cur.module}})('+JSON.stringify("sfModule")+");"});document.body.appendChild(n),setTimeout((function(){n.parentNode.removeChild(n),e(document.body.dataset.sfModule)}),0)}))}},{key:"listToLinks",value:function(e){var t=this,n=[];e.forEach((function(e){var r=e.url,o=t.getFilenameFromUrl(r);o||(o="unknown.jpg"),n.push({filename:o,url:r})}));var r=String(n.length).length;return n.forEach((function(e,t){for(var n=String(t+1);n.length<r;)n="0"+n;e.filename=n+"-"+e.filename})),n}},{key:"getFilenameFromUrl",value:function(e){var t=/\/([\w\-]+\.[a-z0-9]{3,4})(?:\?|$)/i.exec(e);return t=t&&t[1]||""}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"PhotoLinkExtractor",(function(){return c}));var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=n(24),l=n(16),c=function(){function e(t){Object(o.a)(this,e),this.cache=void 0,this.cache=t}var t;return Object(a.a)(e,[{key:"extractLinks",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r=this;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.mediaId){e.next=3;break}throw new Error("ID is empty!");case 3:if(!this.cache[n]){e.next=5;break}return e.abrupt("return",this.cache[n]);case 5:return e.abrupt("return",Object(u.default)([n],(function(e){var t={};return void 0!==window.cur&&cur.pvCurPhoto&&cur.pvCurPhoto.id===e&&(t=cur.pvCurPhoto),t})).then((function(e){if(!e||!e.id)throw new Error("ID is not found");var t=r.getMaxPhotoSize(e);if(!t)throw new Error("URL is not found!");var o=l.default.modify(r.getFilenameFromUrl(t.url)),a=o.lastIndexOf("."),i=o.substr(a+1),s=o.substr(0,a);return r.cache[n]=[{url:t.url,filename:s,ext:i}],r.cache[n]})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getMaxPhotoSize",value:function(e){var t=null,n=null;["w","z","y","x"].some((function(r){return!!(t=e[r+"_"])||(!!(n=e[r+"_src"])||void 0)})),t||(t=[n]);var r,o;return t[0]?{url:(r=e.base,o=t[0],o.match(/https?:\/\//i)?((o=new URL(o)).pathname.match(/\.[a-z]{3}$/i)||(o+=".jpg"),o.toString()):(o.match(/\.[a-z]{3}$/i)||(o+=".jpg"),(r||"").replace(/\/[a-z0-9_:\.]*$/i,"")+"/"+o)),width:t[2]&&t[1],height:t[1]&&t[2]}:null}},{key:"getFilenameFromUrl",value:function(e){var t=/\/([\w\-]+\.[a-z0-9]{3,4})(?:\?|$)/i.exec(e);return t=t&&t[1]||""}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"StoryLinkExtractor",(function(){return u}));var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=function(){function e(t){Object(o.a)(this,e),this.cache=void 0,this.cache=t}var t;return Object(a.a)(e,[{key:"extractLinks",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,o;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.element){e.next=3;break}throw new Error("element is not defined");case 3:if((r=n.querySelector("video"))||(r=n.querySelector(".stories_photo")),r||(r=n.querySelector(".stories_preview")),r){e.next=8;break}throw new Error("mediaNode is not defined");case 8:if(o=r.src,"stories_photo"===r.className||"stories_preview"===r.className){e.next=11;break}return e.abrupt("return",[{url:o,filename:"".concat(Date.now(),".mp4")}]);case 11:return o=r.style.backgroundImage.substring(5,r.style.backgroundImage.length-2),e.abrupt("return",[{url:o,filename:"".concat(Date.now(),".jpg")}]);case 13:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"AudioLinkExtractor",(function(){return v}));var r=n(13),o=n(1),a=n(2),i=n(3),s=n(0),u=n.n(s),l=n(16),c=n(24),d=n(68),p=n(11),f=n(39);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=n(18),v=function(){function e(t){Object(a.a)(this,e),this.cache=void 0,this.lastValidRequest=void 0,this.cache=t,this.lastValidRequest=null}var t,n;return Object(i.a)(e,[{key:"extractLinks",value:(n=Object(o.a)(u.a.mark((function e(t){var n,r,a,i,s=this;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.element){e.next=3;break}throw new Error("element is not defined");case 3:if(!n.classList.contains("top_audio_player_title")&&!n.classList.contains("audio_page_player_title_performer")){e.next=7;break}return e.abrupt("return",Object(c.default)((function(){var e=null;if("undefined"!=typeof ap&&ap._currentAudio&&(e=ap._currentAudio),!e&&"undefined"!=typeof cur&&cur.audioPage&&cur.audioPage._readyAudio&&(e=cur.audioPage._readyAudio),!e)try{e=JSON.parse(localStorage.audio_v9_track)}catch(e){}return e})).then(function(){var e=Object(o.a)(u.a.mark((function e(t){var n,r,o;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t||(n=document.querySelector("._audio_page_player[data-audio]"),t=n&&s.readNewDataAudio(n.dataset.audio)),(r=s.getNewTrackInfo(t))&&r.fullId){e.next=4;break}throw new Error("Track info is not found");case 4:return o=l.default.modify(s.getNewAudioFilename(r)),e.next=7,s._preloadNewTrackUrl(r);case 7:return r.url=e.sent,e.abrupt("return",[g(g({},r),{},{filename:o})]);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 7:if(r=this.readNewDataAudio(n.dataset.audio),(a=this.getNewTrackInfo(r))&&a.fullId){e.next=11;break}throw new Error("Track info is not found");case 11:if(!a.url){e.next=13;break}return e.abrupt("return",this.unmaskUrlViaUtil([[null,null,a.url]]).then((function(e){return a.url=e[0][2],a})));case 13:return i=l.default.modify(this.getNewAudioFilename(a)),e.next=16,this._preloadNewTrackUrl(a);case 16:return a.url=e.sent,e.abrupt("return",[g(g({},a),{},{filename:i})]);case 18:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"readNewDataAudio",value:function(e){try{return JSON.parse(e)}catch(e){return null}}},{key:"getNewTrackInfo",value:function(e){if(!e)return null;var t={};return"string"==typeof e[2]&&(t.url=e[2]),t.title=e[3],t.title&&(t.title=l.default.decodeSpecialChars(this.rmEmTags(t.title))),t.performer=e[4],t.performer&&(t.performer=l.default.decodeSpecialChars(this.rmEmTags(t.performer))),t.duration=parseInt(e[5]),t.actionHash=this.getTrackActionHash(e),t.urlHash=this.getTrackUrlHash(e),e[1]&&e[0]&&(t.fullId=e[1]+"_"+e[0]),t.id=e[0],t.ownerId=e[1],t}},{key:"rmEmTags",value:function(e){return/<em>.*<\/em>/.test(e)&&(e=e.replace(/<\/?em>/g,"")),e}},{key:"getTrackActionHash",value:function(e){return(e[13]||"").split("/")[2]||""}},{key:"getTrackUrlHash",value:function(e){return(e[13]||"").split("/")[5]||""}},{key:"unmaskUrlViaUtil",value:function(e){return this.needUnmask(e)?Object(c.default)([],"function(){return vk.id}").then((function(t){var n=e.map((function(e){try{return Array.isArray(e)&&e[2]?(e[2]=d.decodeUnavailableUrl(t,e[2]),e):null}catch(e){return console.error("track decode error: ",e),null}}));return Promise.all(n).then((function(e){return e.filter((function(e){return null!==e}))}))})):Promise.resolve(e)}},{key:"needUnmask",value:function(e){var t=/audio_api_unavailable/;return e.some((function(e){if(t.test(e[2]))return!0}))}},{key:"getNewAudioFilename",value:function(e){var t=this.getNewAudioFullTitle(e);return t&&(t+=".mp3"),t}},{key:"getNewAudioFullTitle",value:function(e){var t=[];return e.title&&t.push(e.title),e.performer&&(t.length&&t.unshift(" - "),t.unshift(e.performer)),t.join("")}},{key:"_preloadNewTrackUrl",value:function(e){var t=this,n={},r=e.fullId,o=e.actionHash,a=e.urlHash,i=n[r];return i||(i=n[r]=this._getNewTrackListByIdsWithActionHash([{fullId:r,actionHash:o,urlHash:a}],{withoutUnblock:!0}).then((function(e){delete n[r];var o=null;e.some((function(e){if(e[1]+"_"+e[0]===r)return o=e,!0}));var a=o&&t.getNewTrackInfo(o);if(!a||!a.url)throw new Error("Track is not found");return a.url}),(function(e){throw delete n[r],e})).then((function(e){return t.unmaskUrl([e])})).then((function(e){return e[0]}))),i}},{key:"_getNewTrackListByIdsWithActionHash",value:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=9,o=0,a={},i=this.cache,s=e.filter((function(e){var t=e.fullId;return!i[t]||(a[t]=i[t],o++,!1)})),u=[];s.length;)u.push(s.splice(0,r));var l=e.length,c=Promise.resolve();u.forEach((function(e){c=c.then((function(){var r=function(){if(n.abort)throw new Error("Abort");var r=e.filter((function(e){return e.fullId&&e.actionHash&&e.urlHash})).map((function(e){return e.fullId+"_"+e.actionHash+"_"+e.urlHash})),s={type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},data:h.stringify({act:"reload_audio",al:1,ids:r.join(",")}),url:"/al_audio.php",localXHR:!0};return Object(p.default)(s).then((function(e){var r=t.parseVkResponse(e.body)[5];if(!r||!Array.isArray(r))throw new Error("Track list is not found!");return t.lastValidRequest=s,r.forEach((function(e){var t=e[1]+"_"+e[0];i[t]=e,a[t]=e,o++})),n.onProgress&&n.onProgress(o,l),new Promise((function(e){setTimeout(e,250)}))}))},s=2;return function e(){return r().catch((function(o){if("Track list is not found!"===o.message&&!n.withoutUnblock){if(t.lastValidRequest)return t.waitUntilUnblock(n).then(r);if(s-- >0)return new Promise((function(e){return setTimeout(e,15e3)})).then((function(){return e()}))}throw o}))}().catch((function(e){"Abort"!==e.message&&console.error("requestIds error!",e)}))}))})),c=c.then((function(){Object.keys(i).slice(1e3).forEach((function(e){delete i[e]}));var t=[];return e.forEach((function(e){var n=e.fullId,r=a[n];r&&t.push(r)})),t}));var d=function(e){if(t.isHlsLink(e)){var n=(e=e.replace("/index.m3u8",".mp3")).split("/"),r=-1!==e.indexOf("audios")?1:0;return n.splice(n.length-(2+r),1),n.join("/")}return e};return c=c.then((function(e){return t.unmaskUrlViaUtil(e)})).then((function(e){var n=Object(f.default)(5),r=e.map((function(e){return n((function(){var n=e[2],r=d(n);return t.isHlsLink(n)?Object(p.default)({method:"HEAD",url:r}).then((function(){return e[2]=r,e}),(function(t){return console.warn("getNewTrackListByIdsWithActionHash: mp3 file not available. ",t),e})):e}))}));return Promise.all(r)}))}},{key:"parseVkResponse",value:function(e){try{var t=JSON.parse(e).payload[1];return[null,null,null,null,null,t[0],t[1],null,t[3]]}catch(e){}for(var n=function(e){return!0===e?1:parseInt(e)||0},r=function(e){return!0===e?1:parseFloat(e)||0},o=e.split("<!>"),a=o.length-1;a>=0;--a){var i=o[a];if("<!"==i.substr(0,2)){var s=i.indexOf(">"),u=i.substr(2,s-2);switch(i=i.substr(s+1),u){case"json":var l=null;try{l=JSON.parse(i)}catch(e){}o[a]=l;break;case"int":o[a]=n(i);break;case"float":o[a]=r(i);break;case"bool":o[a]=!!n(i);break;case"null":o[a]=null;break;case"pageview_candidate":o.pop();break;case"debug":o.pop()}}}return o}},{key:"waitUntilUnblock",value:(t=Object(o.a)(u.a.mark((function e(t){var n,r,o,a=this;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=10,r=15e3,this.lastValidRequest){e.next=4;break}return e.abrupt("return",Promise.reject(new Error("Last valid request is empty!")));case 4:return o=function e(){return new Promise((function(e){setTimeout(e,r)})).then((function(){if(t.abort)throw new Error("Abort");return Object(p.default)(a.lastValidRequest).then((function(t){if(n--,!a.parseVkResponse(t.body)[5]){if(n>0)return e();throw new Error("Can't request data")}}))}))},e.abrupt("return",o().then((function(){return new Promise((function(e){setTimeout(e,250)}))})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"isHlsLink",value:function(e){return/\.m3u8(\?|$)/.test(e)}},{key:"unmaskUrl",value:function(e){return this.needUnmask(e)?Object(c.default)([e],'function(idsArr){var aFail=false;var bFail=false;var cFail=false;var unmaskUrl=function unmaskUrl(url){var _url="";if(!aFail&&window.sfUnmaskUrl){try{_url=window.sfUnmaskUrl(url)}catch(err){aFail=true}}if(!cFail&&!_url&&window.AudioPlayerHTML5){try{var res=null;var r={_isHlsUrl:function _isHlsUrl(url){res=url;return true},_initHls:function _initHls(){}};window.AudioPlayerHTML5.prototype._setAudioNodeUrl.apply(r,[null,url]);_url=res}catch(err){cFail=true}}if(!bFail&&!_url&&window.AudioPlayerFlash){try{var r={};window.AudioPlayerFlash.prototype.setUrl.apply(r,[url]);_url=r._url}catch(err){bFail=true}}if(typeof _url!=="string"){_url=""}return _url};idsArr.forEach(function(item){var url=unmaskUrl(item[2]);if(url){item[2]=url}});return idsArr}').then((function(t){return t||e})):Promise.resolve(e)}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"MusicLinkExtractor",(function(){return h}));var r=n(10),o=n(1),a=n(2),i=n(3),s=n(0),u=n.n(s),l=n(18),c=n.n(l),d=n(16),p=n(15),f=n(24),m=n(66),g=n(37),h=function(){function e(t){Object(a.a)(this,e),this.cache=void 0,this.cache=t}var t,s,l,h;return Object(i.a)(e,[{key:"extractLinks",value:(h=Object(o.a)(u.a.mark((function e(t){var n,r,o,a;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.element){e.next=3;break}throw new Error("element is not defined");case 3:return r=Object(m.default)(n),e.next=6,this.getNodeTrack(r);case 6:return o=e.sent,e.next=9,this.prepareTrackForDownload(o.id);case 9:return a=e.sent,e.abrupt("return",[{url:a.downloadUrl,filename:a.filename,size:a.size,duration:a.duration}]);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"getNodeTrack",value:(l=Object(o.a)(u.a.mark((function e(t){return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(f.default)([t],'function(nodePath){var el=document.querySelector(nodePath);if(el&&el.props&&el.props.track){return el.props.track}if(el&&el.model&&el.model._data.get("track")){return el.model._data.get("track")}throw new Error("Track information not found")}'));case 1:case"end":return e.stop()}}),e)}))),function(e){return l.apply(this,arguments)})},{key:"prepareTrackForDownload",value:(s=Object(o.a)(u.a.mark((function e(t){var n,r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.cache.jsessionId){e.next=3;break}return e.next=3,this.getJsSessionId();case 3:return e.next=5,this.getTrackUrlById(t);case 5:if((n=e.sent).track){e.next=8;break}throw new Error("Track is not found");case 8:if(n.play){e.next=10;break}throw new Error("Track url is not found");case 10:return e.next=12,this.getClientHash(n.play);case 12:return r=e.sent,e.abrupt("return",{filename:d.default.modify("".concat(n.track.ensemble," – ").concat(n.track.name,".mp3")),downloadUrl:"".concat(n.play,"&").concat(c.a.stringify({clientHash:r})),duration:n.track.duration,size:n.track.size||-1});case 14:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"getJsSessionId",value:function(){var e=this;return("m.ok.ru"===location.host?function(){for(var e=Array.from(document.querySelectorAll("script")),t=0;t<e.length;t++)if(e[t].textContent){var n=e[t].textContent.match(/"jsid":"(.*?)"/);if(n&&n[1])return Promise.resolve(n[1])}return Promise.resolve(void 0)}:function(){return new Promise((function(e,t){var n=location.protocol+"//"+location.host+"/web-api/music/conf";Object(p.default)({type:"POST",url:n,data:"_",json:!0,localXHR:!0},(function(n,r,o){!n&&o&&o.sid?e(o.sid):t(new Error("Get jsSessionId error!"))}))}))})().then((function(t){e.cache.jsessionId=t})).catch((function(e){throw new Error("getJsSessionId error ",e)}))}},{key:"getClientHash",value:function(e){var t;return Promise.resolve((t=n(74),function(e,t){for(var n,r=[4,3,5,6,1,2,8,7,2,9,3,5,7,1,4,8,8,3,4,3,1,7,3,5,9,8,1,4,3,7,2,8],o=t(/md5=(\w*)/g.exec(e)[1]+"secret"),a=o.length,i="",s=0,u=0;u<a;u++)s+=parseInt(o[u],16);for(var l=0;l<a;l++){var c=parseInt(o[l],16);n=l===a-1?c:parseInt(o[l+1],16),i+=Math.abs(s-c*n*r[l])}return i}(e,(function(e){return t(e).toString()}))))}},{key:"getTrackUrlById",value:(t=Object(o.a)(u.a.mark((function e(t){var n,o,a=this;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.cache.trackIdPromise={},this.cache.payloadTracks={},!this.cache.trackIdPromise[t]){e.next=4;break}return e.abrupt("return",this.cache.trackIdPromise[t]);case 4:if(!this.cache.payloadTracks[t]){e.next=6;break}return e.abrupt("return",this.cache.payloadTracks[t]);case 6:return o="https://wmf.ok.ru/play;jsessionid=".concat(this.cache.jsessionId,"?")+c.a.stringify({tid:t}),e.abrupt("return",this.cache.trackIdPromise[t]=(n=Object(f.default)([o],"function(url){return fetch(url).then(function(response){return response.json()})}").then((function(e){var n=Object.keys(a.cache.payloadTracks);return n.length>20&&delete a.cache.payloadTracks[n[0]],a.cache.payloadTracks[t]=e,e}))).then.apply(n,Object(r.a)(Object(g.default)((function(){delete a.cache.trackIdPromise[t]})))));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ICON_DOWNLOAD",(function(){return r})),n.d(t,"ICON_DOWNLOAD_DISABLE",(function(){return o})),n.d(t,"ICON_PLAYLIST",(function(){return a})),n.d(t,"ICON_LOADING",(function(){return i})),n.d(t,"styles",(function(){return s}));var r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAPklEQVR42mNgGHTgvw/DfxgexJqBiuYja8CD55NrwHxyXTCfWP/OJ0sjFgPmkxvXCWRFDy6MT3MDITw40j8Ak46HYQ4gDfUAAAAASUVORK5CYII=",o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAVklEQVQoz2P4//8/A7mYgSqa0UF9ff1/GEaXG0SagYrmI2vAg+djtZkIA+bjdTYeA+YT5WcsBswnNcDmY9NIlGaoAQnYxHEFGMHQxqe5gRDGqpnuGQMALmDKhkjc9oYAAAAASUVORK5CYII=",a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAMUlEQVR42mL8//8/A7mAiYECwILC82Uk7IzN/xmpYjPjqJ9H/UxTP1OkGQAAAP//AwDcahUV6UvyJwAAAABJRU5ErkJggg==",i="data:image/gif;base64,R0lGODlhHgAeAKUAAAQCBISGhMzKzERCROTm5CQiJKSmpGRmZNza3PT29DQyNLS2tBQWFJyanFRSVHx6fNTS1Ozu7CwqLKyurGxubOTi5Pz+/Dw6PLy+vBweHKSipFxaXAQGBIyKjMzOzExKTCQmJKyqrGxqbNze3Pz6/DQ2NBwaHJyenHx+fNTW1PTy9MTCxFxeXP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCQAtACwAAAAAHgAeAAAGtMCWcEgcegoZT3HJFCYIpOEBADg0r84S5zHUADgaIiKKFXqoIMsQAiEmCquykORgNMoJOZGsb5IQan1lFh8ALIJFJAZ5QioMABmIRBUMSkMnAxOSRCqbnp+ggionKaFFIgAmjKAGEhUUkHyfISUECRMjprq7vKAYLAKfJAudQwoAA58nAAFEHQwnnwQUCL3WfSEb1VcqAZZyIABcVwYADn0aH6VzBwd8ESjBniMcHBW9ISF9QQAh+QQJCQAzACwAAAAAHgAeAIUEAgSEgoTEwsRMTkzk4uQkIiSkoqRsamzU0tT08vQ0MjQUEhRcWly0trSUkpR0dnQMCgzMyszs6uzc2tz8+vw8OjyMioxUVlQsKiysqqxkYmS8vrx8fnwEBgSEhoTExsRUUlTk5uR0cnTU1tT09vQ0NjQcGhxcXly8urycnpx8enwMDgzMzszs7uzc3tz8/vw8PjwsLiysrqz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGt8CZcEgcumCVSXHJFL4SRA4A8BhSJq1m8TVYOIaoTqcxPAAKEu2Q0AGUiCHCkGSaktXCgymjVnVKUHiCQxIUaoGDgwcdKolMAoZOBQAxjkUJBS5EDSAollufoaKjohQbIaRLHgAYkaQsJyQWlK6jCCcUFAKoqb2+v74jD0qiLyy1AwAMoygAKUQGBTKjLQFywNiOHwFZWhQpmoMVAF9aGwAaiRkX4TMvKiIvcxYjowkrEN2/ER+JQQAh+QQJCQAuACwAAAAAHgAeAIUEAgSEgoTExsREQkSkoqTs6uxkZmQcHhyUkpTU1tS0trT09vQUEhRUUlR0dnSMiozMzsysqqw0NjQMCgxMSkz08vQsKiycnpzk4uS8vrz8/vx8fnyEhoTMysxERkSkpqTs7uxsbmwkIiSUlpTc2ty8urz8+vwcGhxUVlR8enyMjozU0tSsrqwMDgz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGtkCXcEgcglCNQnHJHGqIIwDgQSwsmsvQITLstFqCYWAiuWKFiwmAQgSBhiaLtHMWSzLnUYtirvvRf4FLFQpKQw8tI4JEJhIAIm9CjgOLQwVqAAlDAgYQlUMbDAYmn1h9paipGiuRqUQXAAOkrhgOJrADT64kKaQJFa7BwsPDGCOtn8BEKAAbqBgMYUMREtKfJiynxNt+CQ/ISxoK4FjMF2cJACmBHQ7ICCqMBBioJgcns8Mkmn9BACH5BAkJADEALAAAAAAeAB4AhQQCBIyKjERGRMTGxCQiJOTm5GRiZKyqrNTW1BQSFDQyNJyanPT29HR2dFxaXMzOzGxqbMTCxNze3BwaHDw6PKSipAwKDExOTCwqLOzu7LS2tPz+/AQGBJSSlMzKzCQmJGRmZKyurNza3BQWFDQ2NJyenPz6/Hx6fFxeXNTS1GxubOTi5BweHDw+PKSmpFRSVPTy9P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa1wJhwSBwyVCpYcclsHgCACpFhai4DpMhQwpoghqXEq2odjgAooolBbEFF5WFH4Cm7WKhNfM/vx00PbEMVHyF+RS8AJGQxFwAOh0YJABwFQykNcJFCHQQneptNoKGkpUIFjKUHECkHHBCmMQ9QLC4AILGzACwxK6mkJSAPscTFpBkHSqSjQicAAccfEkQDFymlEb/G23EFFYJWBcxlEAAaZTAJLn0IAcpCIetEHuCbChjcK5Z8QQAh+QQJCQAzACwAAAAAHgAeAIUEAgSEgoTEwsRMTkzk4uQkIiSkoqRsamz08vTU0tQ0NjS0srQUEhSUkpRcWlx8enwMCgyMiozs6uwsKiz8+vzc2ty8urzMysysqqx0cnQ8PjxkYmQEBgSEhoTExsRUUlTk5uQkJiSkpqRsbmz09vTU1tQ8Ojy0trQcHhycmpxcXlx8fnwMDgyMjozs7uwsLiz8/vzc3ty8vrz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGuMCZcEgcUjodSnHJbMoAAEtzOjQMSkPQJAQaLkIjKjEEyBBhyuEAwEGIhRhHhWp5md/4vL4JghExGhd7RAcAH35CHwArg0MoACxuQjENLo1CIgoNl5ydnmIkn0IyHQQeDA+fMRAAJgIsd50xHAAKMy6IngsPc6K+v1RpQyQCwoMrKAe5LQAplxKsAFhCCRsxlxQKACiSoi4nEsBvCBa5TaF5KwAJwQUCeQQp6NTsRCXmgyoO4iTGVEEAIfkECQkAMQAsAAAAAB4AHgCFBAIEhIaExMbEREJE5ObkpKakJCIkZGJklJaU1NbU9Pb0FBIUtLa0NDI0VFJUdHJ0zM7M7O7snJ6cvL68PDo8fHp8DAoMjI6MTEpM5OLk/P78HB4cjIqMzMrMREZE7OrsrKqsLC4snJqc3Nrc/Pr8FBYUvLq8NDY0XFpcdHZ01NLU9PL0pKKkxMLEPD48fH58DA4M////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABrrAmHBIHGpYLE1xyWxCAABVczoEoQjDlcu1GrYoFyqxAUAQNSTiAbAQeysRasdldtvv+Gaa2HGM8kQBAClEDwAcgEMhABtKQgQSXYkxDBggk5iZmpt3ECIRCRt1mREwAA4qJWGaHxanMXubLRxYnLa3eSQJjokIIYhDLAAmkysLABa1MSMpcYkaAwAnsZsKAgqbEdRUGspNFTAU2G4FJZJMCiVQxG4rHUUj3msbzokpFUQKKueJJNtTQQAAIfkECQkANAAsAAAAAB4AHgCFBAIEhIKExMLEREJE5OLkZGJkpKKkJCIk1NLUVFJUdHJ0tLK0lJKU9PL0NDY0FBYUzMrMbGpsrKqsLCos3NrcXFpc/Pr8DAoMjI6MTEpMfH58vL68nJqcBAYEhIaExMbE5ObkZGZkpKakJCYk1NbUVFZUdHZ0tLa09Pb0PDo8HBoczM7MbG5srK6sLC4s3N7cXF5c/P78TE5MnJ6c////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABrRAmnBIJEpaxaRySXsBOiCmlPbRNIaoEMsyRMhE02EGIJEqAJOwcBW4MkklpHpOr0tJrKhdyHlgiAEAYHs0AwAORA0LKIQ0EDACjZKTlJVMLy0oIA4LlCgqAAoEI2WTDQ8ALJZCCDNuq7CxUq97IgMGRB8PenYxoA+MQg0SMY0VADLFlhYUXJPOc8FMDA8l0FIbB8prCEMWBwAAJGrMRDNPpTRnDtJ1BeERQzEg7XUfKiPdYUEAIfkECQkAMQAsAAAAAB4AHgCFBAIEhIKExMLEVFJU5OLkJCIkpKakbG5s9PL0FBIUlJKU1NbUNDI0vLq8fHp8DAoMjIqMzMrMXFpc7Ors/Pr8LCostLK0dHZ0HB4cnJ6c3N7cPD48BAYEhIaExMbEVFZU5ObkJCYkrKqsdHJ09Pb0FBYUlJaU3NrcNDY0vL68fH58DA4MjI6MzM7MXF5c7O7s/P78////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABrXAmHBIJHpaxaRyGXs9SiSmNLZQRIWUg4N4+limQxdAIGUBNmChJkORvlSRtHxOnxICr/pQVDEQTQApekIfAANEFBEwg1QXC4yQkZKTTBMCFCQuj5EUFQAsJBKbkBQhABCUQiApbamur1OLjA0fDVwFV3qeIYhkjCMcI695TBTElC8MKwFSBgUHaRYAABitMRoERJ4cIGAgGADQQiIcD4JCLAkDslMIC+wj08xDL+x1Cygb2WBBACH5BAkJADEALAAAAAAeAB4AhQQCBISChMTCxERGROTi5KSipCQiJNTS1GRmZPTy9BQSFJSWlLS2tDQyNIyKjMzKzFRWVOzq7KyqrNza3HRydPz6/BwaHAwKDJyenDw+PHx6fISGhMTGxExOTOTm5KSmpCwuLNTW1PT29BQWFJyanLy6vDQ2NIyOjMzOzFxeXOzu7KyurNze3HR2dPz+/BweHAwODP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAazwJhwSCSGJsWkchkTjQzMqJDwqRA3C2KkhZIOKYBQlARIeYURhiua2CDP8Lg8KpKs50JBY0UUjCJ4Qi1lRQmBaAsEh4uMjY5MCWIVLYqMLhkABZOVixWYBY9CKgehpVIipRUpFhqHKAgPQygAABcqgZgZQyovABl3cycwJ1olhqZDLqihIgMKJFEMDRtnArQgRCq3QwO1VlIqDQDUeRcKXUIfLxRwIoBDG7TQyYseHRDbUkEAIfkECQkAMAAsAAAAAB4AHgCFBAIEhIKExMLEREZE5OLkZGZkpKKkHB4c1NLUVFZU9PL0dHZ0tLK0FBYUlJKUNDY0zMrMTE5MbG5srKqsJCYk3Nrc/Pr8DAoMZGJknJ6cBAYEhIaExMbETEpM5ObkbGpspKakJCIk1NbUXFpc9Pb0fH58vL68HBoclJaUzM7MVFJUdHJ0rK6sLCos3N7c/P78////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABrVAmHBIJBI8xaRyKQw9mFAhCVIEMYiKTSU6NDQUUBZAwhW+CFGSAVluu99QiwBOTKmoQxGFRBcGACVFL31CCiBghImKi0UQGCCMFi4wJwAACIsjGhMHliKLBRcsKR+QixZsjKplg6svCxQohBULn0IElg0WfSoAKkMkDwAJhBMUE0QkCLurzUovIwcsUBwdGWUilgPJzEIjACdlFh0NpjAIDQeTQiYPDm0viEIZlleqChILfFxBACH5BAkJAC8ALAAAAAAeAB4AhQQCBISGhMTGxExOTOTm5CQmJKyqrNTW1GxqbPT29DQ2NLy6vBQWFJSSlAwKDMzOzFxaXOzu7CwuLLSytNze3IyOjHx6fPz+/Dw+PMTCxAQGBIyKjMzKzFRWVOzq7CwqLKyurNza3HRydPz6/Dw6PLy+vBweHJyanAwODNTS1GRiZPTy9DQyNLS2tOTi5P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa3wJdwSCQmRsWkcinsqJhQ4YhSTKWMJ0J0WCogmRxAYDtMREeLCHm9JbRW7GjEBFB84y+K6jBMAQAOangvJwANQyMIDGODLwklZkR3jZSVli8hFi2XLxdqLAAaLpcIKBwKgFqWIgwcLgElnI6ytLVsFQoGlBENVEIRKAAFlBYAEEMXAwAilAIkIEQXqrbURCISsUwHENBbERoAHZKTIgASawgFC0MuBSweQw8Duo0tfxm0IwEBk0xBACH5BAkJADMALAAAAAAeAB4AhQQCBISChMTGxERCROTm5CQiJKSipGRiZBQSFJSSlNTW1PT29DQyNLS2tHR2dAwKDIyKjMzOzFRSVOzu7BwaHJyanNze3Dw6PKyurGxqbPz+/AQGBISGhMzKzExKTOzq7CwuLKSmpBQWFJSWlNza3Pz6/DQ2NLy6vHx6fAwODIyOjNTS1FxaXPTy9BweHJyenOTi5Dw+PGxubP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa6wJlwSCSWSsWkcjhZIYcO1HI6/LgAB6IFVhS0qMMGAEBZTCcIDFjYMqWkVIJmLSxN6NSWwIwHLxgAHn1FBA5cQgQbAAh8gzNiIUQcIBWOQyUkT5abnJ1rBBACnpczHgApd54QIgoSi6mdCQUWExUro7i5up0hHiecEy8fl1cmnBwADkQZDxycCiwdRY271UUqAxFUHyiiaxopWEQac0MJAMZ0EBfeMy0xA19CFixqmxFjCroaLwblYEEAADs=",s="\n  .sf--sc-btn {\n    background-image: url(".concat(r,");\n    background-repeat: no-repeat;\n    background-position: 50%;\n  }\n  .sf--sc-playlist {\n    background-image: url(").concat(a,");\n    background-size: 50%;\n  }\n  .sf--sc-loading {\n    background-image: url(").concat(i,");\n    background-size: 50%;\n  }\n  .sf--sc-error {\n    background-image: url(").concat(o,");\n  }\n")},function(e,t,n){"use strict";n.r(t),n.d(t,"STYLE",(function(){return r}));var r="\n      .theme-white .sf-download { background: white;  box-shadow: 0 0 7px 7px white; }\n      .theme_dark .sf-download { background: #181818; box-shadow: 0 0 7px 7px #181818; } \n      \n      .theme-white .sf-download:hover path { fill: black; }\n      .theme_dark .sf-download:hover path { fill: white; }\n        \n      .theme-white .sf-download path { fill: #a7a7a7; }  \n      \n      .sf-download {\n            margin-top: 3px;\n            margin-right: 6px;\n            padding-right: 10px;\n            padding-left: 10px;\n            float:left;\n      }\n      \n      .sf-download-in-control {\n            margin: 12px;\n            width: 11px;\n            height: 22px;\n            margin-top: 9px;\n      }\n      \n      .theme_dark .sf-download-in-control path { fill: white; }\n      .theme-white .sf-download-in-control path { fill: #3c3b3b; }\n      \n      .sf-icon-error path, .sf-icon-error:hover path { fill: #ff33334a!important; }\n"},function(e,t,n){"use strict";n.r(t);var r=n(11),o=n(25);t.default=function(e){return function(e){var t={operationName:"PlaybackAccessToken_Template",variables:{vodID:e,login:"",isLive:!1,isVod:!0,playerType:"site"},query:'query PlaybackAccessToken_Template($login: String!, $isLive: Boolean!, $vodID: ID!, $isVod: Boolean!, $playerType: String!) {\n  streamPlaybackAccessToken(\n    channelName: $login\n    params: {platform: "web", playerBackend: "mediaplayer", playerType: $playerType}\n  ) @include(if: $isLive) {\n    value\n    signature\n    __typename\n  }\n  videoPlaybackAccessToken(\n    id: $vodID\n    params: {platform: "web", playerBackend: "mediaplayer", playerType: $playerType}\n  ) @include(if: $isVod) {\n    value\n    signature\n    __typename\n  }\n}\n'};return Object(r.default)({url:"https://gql.twitch.tv/gql",method:"POST",headers:{"client-id":"kimne78kx3ncx6brgo4mv6wki5h1ko"},json:!0,data:JSON.stringify(t)}).then((function(t){if(!t.body||!t.body.data||!t.body.data.videoPlaybackAccessToken)throw new Error("Response not valid");var n=t.body.data.videoPlaybackAccessToken;if(!n.signature||!n.value)throw new Error("Signature or Value not found for video "+e);return n}))}(e).then((function(t){var n=t.signature,o=t.value,a="https://usher.ttvnw.net/vod/".concat(e,".m3u8?sig=").concat(n,"&supported_codecs=avc1&token=").concat(o,"&cdm=wv&player_version=0.9.80");return Object(r.default)(a)})).then((function(e){var t=new RegExp('(https.*?)\\n#EXT-X-MEDIA.*?NAME="(.*?)"',"g");return Object(o.matchAll)(e.body,t).map((function(e){return{url:e[1],quality:parseInt(e[2])}}))}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"Ticker",(function(){return i}));var r=n(14),o=n(57),a=n.n(o),i=function(){return r.default.createElement("div",{className:a.a.ticker},r.default.createElement("div",{className:a.a.tickerInner},new Array(30).fill(null).map((function(){return r.default.createElement("span",{className:a.a.tickerContent},"🔥 Found a better price")}))))}},function(e,t,n){"use strict";n.r(t);var r=n(30),o=n.n(r)()(!1);o.push([e.i,".jkTNN--ticker{display:block;width:100%;white-space:nowrap;overflow:hidden;background-color:#ffbf46}.FOPX0--tickerInner{display:inline-block;padding:2px 0 2px 100%;-webkit-animation:zXHLe--scroll 20s linear infinite running;animation:zXHLe--scroll 20s linear infinite running}.NNQPN--tickerContent{display:inline-block;margin-right:10px;font-size:1rem;line-height:1.2;font-weight:500;text-transform:uppercase;color:#232222}@-webkit-keyframes zXHLe--scroll{0%{transform:translate3d(-25%,0,0)}to{transform:translate3d(-50%,0,0)}}@keyframes zXHLe--scroll{0%{transform:translate3d(-25%,0,0)}to{transform:translate3d(-50%,0,0)}}",""]),o.locals={ticker:"jkTNN--ticker",tickerInner:"FOPX0--tickerInner",scroll:"zXHLe--scroll",tickerContent:"NNQPN--tickerContent"},t.default=o},function(e,t,n){"use strict";n.r(t),n.d(t,"Arrows",(function(){return c}));var r=n(14),o=n(43),a=n.n(o),i=n(31),s=n.n(i),u=n(69),l=n.n(u),c=function(e){var t=e.dateTo;return r.default.createElement("div",{className:a.a.arrows},r.default.createElement("span",{className:s()(a.a.arrow,t&&a.a["arrow--to"]),dangerouslySetInnerHTML:{__html:l.a}}),t&&r.default.createElement("span",{className:s()(a.a.arrow,a.a["arrow--back"]),dangerouslySetInnerHTML:{__html:l.a}}))}},function(e,t,n){"use strict";n.r(t);var r=n(30),o=n.n(r)()(!1);o.push([e.i,".P1oG7--arrows{display:flex;flex-direction:column;height:20px}@media screen and (max-width:1080px){.P1oG7--arrows{height:16px}}.Ij7vz--arrow{position:relative}.QIWed--arrow--to{top:-20%}@media screen and (max-width:1080px){.QIWed--arrow--to{top:-25%}}.FguNC--arrow--back{top:-70%;transform:scale(-1)}@media screen and (max-width:1080px){.FguNC--arrow--back{top:-85%}}.Ij7vz--arrow svg{width:22px;height:8px}",""]),o.locals={arrows:"P1oG7--arrows",arrow:"Ij7vz--arrow","arrow--to":"QIWed--arrow--to",arrowTo:"QIWed--arrow--to","arrow--back":"FguNC--arrow--back",arrowBack:"FguNC--arrow--back"},t.default=o},function(e,t,n){var r=n(59),o=function(e,t,n){return"^"+function(e){return e&&"*:"!==e?r(e.toLowerCase())+"//":"(?:https?|file|ftp)://"}(e)+r(t.toLowerCase()).replace(/\\\*/g,"[^\\/]*")+function(e){return e?r(e.toLowerCase()).replace(/\\\*/g,".*"):"/.*"}(n)+"$"};e.exports=function(e){var t=[];"<all_urls>"===e&&(e="*://*/*");var n=/^(?:([^:\/]+:)\/\/)?([^\/]*)(?:(\/[^?#]*))?/.exec(e);if(n){var r=n[1],a=n[2],i=n[3],s=[a];return/^\*\./.test(a)&&s.push(a.substr(2)),s.forEach((function(e){t.push(o(r,e,i))})),t}throw new Error("Match pattern error")}},function(e,t,n){var r=n(59),o=function(e,t,n){return"^"+function(e){return r(e.toLowerCase()).replace(/\\\*/g,"[^:]*")+"//"}(e)+r(t.toLowerCase()).replace(/\\\*/g,"[^\\/]*")+function(e){return r(e.toLowerCase()).replace(/\\\*/g,".*")}(n)+"$"};e.exports=function(e){var t=/^([^:\/]+:)\/\/([^\/]*)(\/.*)/.exec(e);if(t){var n=t[1],a=t[2],i=t[3];return[o(n,a,i).replace(/\\\?/g,".{1}")]}var s=r(e);return["^"+(s=(s=s.replace(/\\\*/g,".*")).replace(/\\\?/g,".{1}"))+"$"]}},function(e,t,n){"use strict";n.r(t),n.d(t,"initHrefChangeEvent",(function(){return r}));var r=function(){var e=document.location.href;new MutationObserver((function(){var t=document.location.href;e!==t&&(e=t,document.dispatchEvent(new CustomEvent("hrefchange")))})).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}},function(e,t,n){"use strict";n.r(t),n.d(t,"convertStringToRegex",(function(){return r}));var r=function(e){var t,n=(null===(t=e.match(/\/([gimuys]*)$/))||void 0===t?void 0:t[1])||"",r=e.replace(new RegExp("^/(.*?)/".concat(n,"$")),"$1");return new RegExp(r,n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"getSearchParams",(function(){return r}));var r=function(e){try{var t=new URL(e).searchParams,n={};return t.forEach((function(e,t){n[t]=e})),n}catch(e){throw e}}},function(e,t,n){"use strict";n.r(t);var r=n(5),o=n(26),a=n(14),i=n(31),s=n.n(i),u=["hoverText","children"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c={position:"relative"},d=a.default.memo((function(e){var t=e.hoverText,n=e.children,i=Object(o.a)(e,u),d=a.default.useRef(),p=a.default.useState(!1),f=Object(r.a)(p,2),m=f[0],g=f[1],h=a.default.useCallback((function(){return g(!0)}),[]),v=a.default.useCallback((function(){return g(!1)}),[]);return a.default.createElement("div",l({onmouseenter:h,onmouseout:v,style:c},i),a.default.createElement("div",{ref:d,className:s()("div-hover",m?"show":"hide")},t),n)}));t.default=d},function(e,t,n){"use strict";n.r(t);t.default=function(e){return e.charAt(0).toUpperCase()+e.substr(1)}},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}v(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,n)}(e,o,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var o,a,i,s;if(l(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),i=a[t]),void 0===i)i=a[t]=n,++e._eventsCount;else if("function"==typeof i?i=a[t]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),(o=c(e))>0&&i.length>o&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,s=u,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function m(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(a){r.once&&e.removeEventListener(t,o),n(a)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)a(u,this,t);else{var l=u.length,c=h(u,l);for(n=0;n<l;++n)a(c[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,a,i;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){i=n[a].listener,o=a;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,i||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(o=a[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";n.r(t);t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(t)||(t=[t]);var n=new DOMParser,r=n.parseFromString(e,"text/html");return[].slice.call(r.querySelectorAll("script")).map((function(e){return e.textContent})).filter((function(e){return t.every((function(t){return t.test(e)}))}))}},function(e,t,n){"use strict";n.r(t);t.default={youtube:"moduleYoutube",dailymotion:"moduleDailymotion",vimeo:"moduleVimeo",facebook:"moduleFacebook",soundcloud:"moduleSoundcloud",vk:"moduleVkontakte",odnoklassniki:"moduleOdnoklassniki",mailru:"moduleMailru",instagram:"moduleInstagram",rutube:"moduleRutube",tiktok:"moduleTiktok",yandexMusic:"moduleYandexMusic",matchTv:"moduleMatchTv"}},function(e,t,n){"use strict";n.r(t),n.d(t,"checkForcedFirstRun",(function(){return r})),n.d(t,"checkForcedCacheRemove",(function(){return o})),n.d(t,"getLandingPageConfigFromConfig",(function(){return a}));var r=function(e,t){return!!i({preferences:e,user:t,config:e.generalConfig.forcedFirstRun.config})},o=function(e,t){return!!i({preferences:e,user:t,config:e.generalConfig.forcedCacheRemove.config})},a=function(e,t){var n=i({preferences:e,user:t,config:e.generalConfig.landingPage.config});return n?{url:n.url,cooldownInSeconds:n.cooldownInSeconds,clicksBeforeOpen:n.clicksBeforeOpen}:null},i=function(e){for(var t=e.preferences,n=e.user,r=e.config.filter((function(e){return e.enabled&&(e.countries.includes(t.country)||e.countries.includes("all"))&&(e.languages.includes(n.getLanguage())||e.languages.includes("all"))&&(e.browsers.includes(n.browser)||e.browsers.includes("all"))&&(e.platforms.includes(n.getPlatform())||e.platforms.includes("all"))})),o=0;o<r.length;o++)if(r[o].sample>Math.random())return r[o];return null}},function(e,t,n){"use strict";n.r(t);var r=n(141);t.default=function(e,t){var n=new r({min:1e3,max:6e4,jitter:.5}),o=0;return function r(){return e().catch((function(e){if(++o<t){var a=n.duration();return new Promise((function(e){return setTimeout(e,a)})).then(r)}throw e}))}()}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(3),a=n(32),i=n(21),s=n(15),u=n(12),l=Object(u.default)("VimeoComEmbed"),c=function(){function e(t){Object(r.a)(this,e),this.engine=t}return Object(o.a)(e,[{key:"getVimeoLinks",value:function(e,t){return this._getVimeoLinks(e.extVideoId,e.url,(function(n,r,o){var a={action:e.action,extVideoId:e.extVideoId,links:n,title:r,thumb:o};t(a)})),!0}},{key:"_getVimeoLinks",value:function(e,t,n){var r=this;this.getVimeoNoEmbedLinks(e,t,(function(t,o,a){if(t)return n(t,o,a);r.getVimeoEmbedLinks(e,n)}))}},{key:"getVimeoEmbedLinks",value:function(e,t){var n=this,r=function(){return t(null,"","")};if(!e)return r();Object(s.default)({url:"https://player.vimeo.com/video/"+e},(function(e,o,a){if(e||!a)return r();var s=Object(i.default)(a,[/"files":/]),u=null;return s.some((function(e){if(e.video&&e.request&&e.request.files)return u=e,!0})),(a=n.getLinksFromConfig(u))?t(a.links,a.title,a.thumb):r()}))}},{key:"getVimeoConfig",value:function(e,t){var n=this,r=function(){return t(null,"","")};Object(s.default)({url:e},(function(e,o,a){return e||!a?r():(a=n.getVimeoDataFromConfig(a))?t(a.links,a.title,a.thumb):r()}))}},{key:"getVimeoLinksFromConfigAction",value:function(e,t){var n=this;return new Promise((function(t,r){var o=n.getLinksFromConfig(e.config);o?t(o):r(new Error("Get links from config error"))})).then(t,(function(e){l.error("getVimeoLinksFromConfigAction error",e),t(null)})),!0}},{key:"getClipPageConfig",value:function(e,t){var n=null;return Object(a.default)(e,/['"]config_url['"]\s*:\s*/).some((function(e){return Object(i.default)(e,/['"]config_url['"]\s*:\s*/).some((function(e){if(e.player&&(n=e.player.config_url))return!0}))})),n?this.getVimeoConfig(n,t):t(null,"","")}},{key:"getVimeoNoEmbedLinks",value:function(e,t,n){var r=this;if(e&&t){var o=/vimeo\.com\/[^\/]+\/review\/\d+/i.test(t),a=/vimeo\.com\/\d+\/\w+/i.test(t);o||a||(t=null)}Object(s.default)({url:t||"https://vimeo.com/"+e},(function(e,t,o){if(e||!o)return n(null,"","");var a=o.match(/data-config-url=["']([^\s"'<>]+)/i);return(a=a&&a[1].replace(/&amp;/gi,"&"))?r.getVimeoConfig(a,n):r.getClipPageConfig(o,n)}))}},{key:"getVimeoLinksFromConfig",value:function(e,t){var n=this.getLinksFromConfig(e.config);return t(n||null)}},{key:"getLinksFromConfig",value:function(e){if(!(e&&e.video&&e.request&&e.request.files))return null;var t=e.video,n=e.request.files,r={};r.title=t.title||"";var o=null;for(var a in t.thumbs)(null===o||o<a)&&(o=a,r.thumb=t.thumbs[a]);for(var i in r.links=[],n)Array.isArray(n[i])&&n[i].forEach((function(e){if(e&&e.url&&e.mime){var t=e.mime.split("/")[1];t||(t=(t=e.url.match(/\.(\w{2,4})(?:\?|#|$)/i))&&t[1]||"mp4");var n=t.toUpperCase(),o=e.quality;/^\d+p$/.test(o)&&(o=o.replace(/p$/,""));var a=n+" "+o;r.links.push({url:e.url,name:a,height:o,type:n,format:n,ext:t})}}));return r.links.length||(r=null),r}},{key:"getVimeoDataFromConfig",value:function(e){e=e.replace(/(\{|,)\s*(\w+)\s*:/gi,'$1"$2":').replace(/(:\s+)\'/g,'$1"').replace(/\'([,\]\}])/g,'"$1');try{e=JSON.parse(e)}catch(e){return null}return this.getLinksFromConfig(e)}}]),e}();t.default=c},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=n(36),l=n(15),c=n(16),d=n(11),p=n(67),f=n(18),m=function(){function e(t){Object(o.a)(this,e),this.engine=t}var t;return Object(a.a)(e,[{key:"getOkVideoUrlFromMobile",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,o,a,i,u,l;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.videoUrl,r=t.videoId,n=n.replace("/ok.ru","/m.ok.ru"),e.next=4,Object(d.default)(n);case 4:if(o=e.sent,a=o.body,i=a.match(/data-video=".*?"/g),Array.isArray(i)){e.next=9;break}return e.abrupt("return");case 9:return u=i.map((function(e){try{var t=e.replace(/data-video="(.*?)"/,"$1").replace(/&quot;/g,'"');return JSON.parse(t)}catch(e){return!1}})).filter(Boolean),l=u.find((function(e){return parseInt(e.movieId)===parseInt(r)})),e.abrupt("return",l&&l.videoSrc);case 12:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"getOdnoklassnikiLinks",value:function(e,t){return this._getOdnoklassnikiLinks(e.extVideoId,(function(n){var r={action:e.action,extVideoId:e.extVideoId,links:n,title:e.title};t(r)})),!0}},{key:"getOdnoklassnikiAudioLinks",value:function(e,t){return this._getOdnoklassnikiAudioLinks(e.url,e.trackId,e.jsessionId,(function(n){var r={action:e.action,trackId:e.trackId,jsessionId:e.jsessionId,data:n};t(r)})),!0}},{key:"_getOdnoklassnikiLinks",value:function(e,t){if(e){var n="http://in.video.mail.ru/cgi-bin/video/oklite?eid="+e;Object(l.default)({url:n},(function(n,r,o){if(n||!o)return t(null);var a="http://www.okcontent.video.mail.ru/media/",i=o.match(/\$vcontentHost=([^\s"'<>]+)/i);i&&i.length>1&&(a="http://"+i[1]+"/media/"),a+=e;var s=[],u="",l=o.match(/\$height=([0-9]+)/);l&&l.length>1&&(u=l[1]),s.push({url:a+"-v.mp4",name:"SD",ext:"FLV",subname:u}),o.search(/\$HDexist=1/i)>-1&&(u="",(l=o.match(/\$HDheight=([0-9]+)/))&&l.length>1&&(u=l[1]),s.push({url:a+"-hv.mp4",name:"HD",ext:"MP4",subname:u})),s&&t(s)}))}else t(null)}},{key:"_getOdnoklassnikiAudioLinks",value:function(e,t,n,r){if(!t||!n)return r(null);Object(l.default)({url:"http://wmf1.ok.ru/play;jsessionid="+n+"?tid="+t,json:!0},(function(e,t,n){if(e||!n)return r(null);r(n)}))}},{key:"getOkAudioListLinks",value:function(e,t){var n=[],r=e.trackIdArr,o=e.jsessionId;if(!Array.isArray(r)||"string"!=typeof o||!r.length)return t(n);for(var a,i=r.length,s=0,u=function(e){e&&n.push(e),function(){if(++s===i)t(n)}()},l=0;a=r[l];l++)this._getOdnoklassnikiAudioLinks(void 0,a,o,u);return!0}},{key:"getClipyouLinks",value:function(e,t,n,r,o){Object(l.default)({url:"http://media.clipyou.ru/api/player/secure_link?record_id="+e+"&type=mp4&resource_hash="+t,json:!0},(function(e,t,a){if(e||!a||!Array.isArray(a.data)||!a.data.length)return o();var i=[];a.data.forEach((function(e){i.push({quality:n,url:e,title:r})})),o(i)}))}},{key:"getClipyouHash",value:function(e,t){Object(l.default)({url:"http://media.clipyou.ru/api/player_data.json?id="+e},(function(e,n,r){if(e||!r)return t();if(!(r=r.match('resource_hash".?:.?"([^"]*)"'))||r.length<2)return t();var o=r[1];t(o)}))}},{key:"getPladformVideo",value:function(e,t){var n=this,r={action:e.action,extVideoId:e.extVideoId,links:[],title:e.title},o=function(){t(r)},a=e.extVideoId.playerId,i=e.extVideoId.videoId;return Object(l.default)({url:"http://out.pladform.ru/getVideo?pl="+a+"&videoid="+i,xml:!0},(function(e,t,a){if(e||!a)return o();var i=a.querySelectorAll("src");if(0===i.length)return o();var s=a.querySelector("cover")||void 0;s&&(s=s.textContent)&&"//"===s.substr(0,2)&&(s="http:"+s);var u=a.querySelector("time")||void 0;u=u&&u.textContent;var l=a.querySelector("title");(l=l&&l.textContent)&&(r.title=l);var c=i[0],d=c.getAttribute("type"),p=c.textContent||"",f=c.getAttribute("quality");if(c){if("clipyou"===d)return n.getClipyouHash(p,(function(e){if(!e)return o();n.getClipyouLinks(p,e,f,l,(function(e){r.links=e,o()}))}));if("rutube"===d){var m=a.querySelector("external_embed");return(m=m&&m.textContent)&&(r.action="getRutubeLinks",r.links=[m]),o()}}for(var g,h=["ld","sd"],v=["360","720"],b=0;g=i[b];b++){p=g.textContent||"",f=g.getAttribute("quality"),/^\d+p$/.test(f)&&(f=f.match(/^(\d+)p$/)[1]);var y=h.indexOf(f);-1!==y&&(f=v[y]),"video"===(d=g.getAttribute("type"))&&r.links.push({url:p,quality:f,title:l,cover:s,duration:u})}return o()})),!0}},{key:"getOkMetadata",value:function(e,t){var n=e.url;return n?(Object(l.default)({method:"POST",url:n,json:!0},(function(e,n,r){if(e||!r)return t();t(r)})),!0):t()}},{key:"getOkViaMobile",value:function(e,t){var n=e.metadata,r={"st.cmd":"movieLayer","st.mvId":e.mvId},o="http://m.ok.ru/dk?"+f.stringify(r),a={action:e.action,links:null,title:n.movie.title};return Object(l.default)({url:o},(function(r,o,i){if(r||!i)return t();var s=new RegExp('href="([^"]+st\\.cmd=moviePlaybackRedirect[^"]+st\\.mvid='+e.mvId+'[^"]+)"'),l=i.match(s);if(!(l=l&&l[1]))return t();if(l=c.default.decodeSpecialChars(l),a.links=[{url:l}],!/st.mq=\d+/.test(l))return t(a);var d=n.videos;if(!d||!d.length)return t(a);d.forEach((function(e){if(e.url){var t=Object(u.default)(e.url);t.type&&(e.url=l.replace(/(st.mq=)\d+/,"$1"+t.type))}})),a.links=d,t(a)})),!0}},{key:"okDirectOrMobile",value:function(e,t){var n=this,r=e.metadata,o=null;r.videos&&r.videos.some((function(e){if(e.url)return o=e.url,!0}));var a=function(){e.action="getOkViaMobile",n.getOkViaMobile(e,t)};return o?(Object(l.default)({url:o,type:"HEAD"},(function(n){return n?a():(e.action="getOkViaMobileNoWrap",e.links=r.videos,t(e))})),!0):(a(),!0)}},{key:"okRequestVideoPage",value:function(e){var t=e.videoId,n="https://ok.ru/video/".concat(t);return Object(d.default)({url:n,headers:{"user-agent":Object(p.default)()}}).then((function(e){return e.body}))}}]),e}();t.default=m},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(3),a=n(32),i=n(47),s=n(15),u=function(){function e(t){Object(r.a)(this,e),this.engine=t}return Object(o.a)(e,[{key:"getFacebookLinks",value:function(e,t){return this._getFacebookLinks(e.extVideoId,(function(n,r,o,a){var i={action:e.action,extVideoId:e.extVideoId,links:n||null,title:r||"",thumb:o||"",duration:a||""};t(i)})),!0}},{key:"getFacebookLinksFromData",value:function(e,t){var n=e.data,r=e.extVideoId;return this.getLinksFromData2(n,r,!0,(function(n,r,o,a){var i={action:"getFacebookLinksFromData",extVideoId:e.extVideoId,links:n||null,title:r||"",thumb:o||"",duration:a||""};t(i)}))}},{key:"_getFacebookLinks",value:function(e,t){var n=this;Object(s.default)({type:"GET",url:"https://www.facebook.com/video.php?v="+e,headers:{Cookie:""}},(function(r,o,a){if(r||!a)return t();n.getLinksFromData(a,e,t)}))}},{key:"getLinksFromData",value:function(e,t,n){var r=this,o=e.match(/\["params","([^"]*)"\]/im);if(!o)return this.getLinksFromData2(e,t,!1,n);var a=null;try{if((a=JSON.parse(decodeURIComponent(JSON.parse('"'+o[1]+'"'))).video_data).progressive&&(a=a.progressive),!a)return n()}catch(e){return n()}var i=null,s=null,u=[],l={sd_src:"SD",hd_src:"HD"};Array.isArray(a)||(a=[a]);for(var c,d=0;c=a[d];d++)["sd_src","hd_src"].forEach((function(e){if(c.thumbnail_src&&(i=c.thumbnail_src),c.video_duration&&(s=c.video_duration),c[e]){var t=r.getFileExtension(c[e],"mp4");u.push({url:c[e],name:l[e],type:t,ext:t.toUpperCase()})}}));n(u,"",i,s)}},{key:"getLinksFromData2",value:function(e,t,n,r){var o=null,s=function(e){return e.split(/"?videoData"?:\[/).some((function(e){return Object(i.default)(e).some((function(e){if((e.sd_src||e.hd_src)&&String(e.video_id)===String(t))return o=e,!0}))}))};if(n?s(e):Object(a.default)(e,[/"?videoData"?:\[/]).some(s),!o)return r();var u,l=[];return o.sd_src&&(u=this.getFileExtension(o.sd_src,"mp4"),l.push({url:o.sd_src,name:"SD",type:u,ext:u.toUpperCase()})),o.hd_src&&(u=this.getFileExtension(o.hd_src,"mp4"),l.push({url:o.hd_src,name:"HD",type:u,ext:u.toUpperCase()})),r(l,"",o.thumbnail_src,o.video_duration)}},{key:"getFileExtension",value:function(e,t){var n=e.match(/\.([a-z0-9]{3,4})(\?|$)/i);return n?(n=n[1]).toLowerCase():t||""}},{key:"getFacebookPhotoUrl",value:function(e,t){return e.fbid?(Object(s.default)({url:"https://www.facebook.com/photo.php?fbid="+e.fbid},(function(e,n,r){if(e||!r)return t();if(a=r.match(/<a[^>]+fbPhotosPhotoActionsItem[^>]+href="([^">]+dl=1)"[^>]+>/i)){var o=a[1].replace(/&amp;/g,"&");return t([o])}var a,i=[],s={};return(a=r.match(/(<a[^>]+rel="theater"[^>]+>)/gi))&&a.forEach((function(e){var t=e.match(/data-pl[os]i="[^"]+"/gi);t&&t.forEach((function(e){var t=e.indexOf("=");if(-1!==t){var n=e.substr(0,t),r=e.substr(t+1);r=r.substr(1,r.length-2).replace(/&amp;/g,"&"),s[n]=r,i.push(r)}}))})),s["data-ploi"]?t([s["data-ploi"]]):t(i)})),!0):t()}}]),e}();t.default=u},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=function(){function e(t){Object(o.a)(this,e),this.engine=t}var t;return Object(a.a)(e,[{key:"ffInstagramDownloadMedia",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,o,a,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.downloadFileUrl,r=t.filename,e.next=3,fetch(n,{headers:{"User-Agent":"curl/7.64.1"}});case 3:return o=e.sent,e.next=6,o.blob();case 6:a=e.sent,i=URL.createObjectURL(a),this.engine.utils.downloadFile({options:{filename:r,url:i}});case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();t.default=u},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return d}));var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=n(11),l=n(12),c=Object(l.default)("match_tv_embed"),d=function(){function e(t){Object(o.a)(this,e),this.engine=t}var t;return Object(a.a)(e,[{key:"matchTvFetchVideoSources",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,o,a,i,l,d,p,f,m,g;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.iframeVideoURL,e.prev=1,r=n.match(/\d+/),o=r&&r[0]){e.next=6;break}return e.abrupt("return",[]);case 6:return a="https://matchtv.ru/vdl/playlist/".concat(encodeURIComponent(o),"/1.json"),e.next=9,Object(u.default)({url:a,json:!0});case 9:i=e.sent,l=i.body,d=[],p=0;case 13:if(!(p<l.length)){e.next=23;break}return f=l[p],e.next=17,Object(u.default)(f.src);case 17:m=e.sent,(g=m.body.match(/^http.*?$/m))&&d.push({endpoint:g[0],title:f.label});case 20:p++,e.next=13;break;case 23:return e.abrupt("return",d);case 26:return e.prev=26,e.t0=e.catch(1),c.error("get videos error",e.t0),e.abrupt("return",[]);case 30:case"end":return e.stop()}}),e,null,[[1,26]])}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return p}));var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=n(25),l=n(11),c=n(47),d=n(46),p=function(){function e(t){Object(o.a)(this,e),this.engine=t}var t;return Object(a.a)(e,[{key:"showjetFetchMovie",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,o,a,i,p,f,m;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.iframeVideoURL,e.next=3,Object(l.default)(n);case 3:if(r=e.sent,o=Object(d.default)(r.body),Object(c.default)(r.body).some((function(e){if(e.hls)return a=e.hls,!0})),a){e.next=8;break}return e.abrupt("return",[]);case 8:return e.next=10,Object(l.default)(a);case 10:return i=e.sent,p=i.body,f=a.split("/").slice(0,-1).join("/"),m=(m=Object(u.matchAll)(p,/RESOLUTION=(.*?),.*\n(.*?\.m3u8$)/gm)).map((function(e){return{filename:o.title,title:e[1],endpoint:f+"/"+e[2]}})),e.abrupt("return",m);case 16:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(3),a=n(32),i=n(21),s=n(15),u=function(){function e(t){Object(r.a)(this,e),this.engine=t}return Object(o.a)(e,[{key:"getMailruLinks",value:function(e,t){return this._getMailruLinks(e.extVideoId,(function(n,r,o,a,i){var s={action:e.action,extVideoId:a||e.extVideoId,links:n,title:r,thumb:o,duration:i};t(s)})),!0}},{key:"_getMailruLinks",value:function(e,t){var n,r=this,o=e,u=e.match(/\/([^\/]+)\/([^\/]+)\/video\/(.+).html/);if(u||(u=e.match(/embed\/([^\/]+)\/([^\/]+)\/(.+).html/)),u&&(n="http://api.video.mail.ru/videos/"+u[1]+"/"+u[2]+"/"+u[3]+".json",o=u[1]+"/"+u[2]+"/video/"+u[3]+".html"),n)return this.onGetMailruMetadataUrl(n,o,t);Object(s.default)({url:"http://my.mail.ru/"+e},(function(e,s,u){if(e||!u)return t();var l=/"metaUrl":/,c=null;if(Object(a.default)(u,l).some((function(e){return Object(i.default)(e,l).some((function(e){if(e.metaUrl)return c=e,!0}))})),c)return n=c.metaUrl,void r.onGetMailruMetadataUrl(n,o,t);if(!(u=u.match(/<meta\s+content="[^"]+(videoapi\.my\.mail[^&]+)&[^"]+"[^>]+\/>/)))return t();var d=(u=decodeURIComponent(u[1])).substr(u.lastIndexOf("/")+1);n="http://videoapi.my.mail.ru/videos/"+d+".json",r.onGetMailruMetadataUrl(n,o,t)}))}},{key:"onGetMailruMetadataUrl",value:function(e,t,n){var r=this;this.getMailruMetadata(e,(function(e){if(!e||"string"==typeof e)return n();r.readMailruMetadata(e,(function(e,o,a,i){n(r.prepMailruLinks(e),o,a,t,i)}))}))}},{key:"prepMailruLinks",value:function(e){if(e){for(var t,n=[],r=0;t=e[r];r++){var o=t.url,a="FLV";-1!==o.indexOf(".mp4")&&(a="MP4"),-1!==o.indexOf(".mov")&&(a="MOV"),-1!==o.indexOf(".mpg")&&(a="MPG"),t.quality||(t.quality="-?-");var i=t.quality.toUpperCase(),s=["1080P","720P","480P","360P","272P"].indexOf(i);-1!==s&&(i=["1080","720","480","360","272"][s]);var u=a.toLowerCase();n.push({url:o,subname:i,name:a,ext:u})}return n.sort((function(e,t){return"HD"===e.subname?1:e.subname>t.subname})),n}}},{key:"getMailruMetadata",value:function(e,t){if(!e)return t();Object(s.default)({url:e,json:!0},(function(e,n,r){if(e||!r)return t();t(r)}))}},{key:"readMailruMetadata",value:function(e,t){var n,r=[],o=void 0,a=void 0;if(e.meta&&(a=e.meta.poster,o=e.meta.duration),"UPLOADED"===e.provider){if(n=e.movie?e.movie.title:void 0,!e.videos)return t();e.videos.forEach((function(e){r.push({quality:e.name,url:e.url,title:n})}))}else if("ugc"===e.provider){if(n=e.meta?e.meta.title:void 0,!e.videos)return t();e.videos.forEach((function(e){r.push({quality:e.key,url:e.url,title:n})}))}else if("pladform"===e.provider){return n=e.meta?e.meta.title:void 0,void this.engine.modules.odnoklassniki.getPladformVideo({extVideoId:{playerId:e.meta.playerId,videoId:e.meta.videoId}},(function(e){if(!e)return t();"getRutubeLinks"===e.action&&(e.links=null);var r=e.links;if(!r)return t();r.forEach((function(e){void 0===e.title&&(e.title=n)})),t(r,n,a,o)}))}return 0===r.length?t():t(r,n,a,o)}}]),e}();t.default=u},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return g}));var r=n(10),o=n(13),a=n(1),i=n(2),s=n(3),u=n(0),l=n.n(u),c=n(11);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e,t,n){return"https://".concat(e,"/api/v2.1/handlers/track/").concat(t,":").concat(n,"/web-home_new-chart-track-saved/download/m?hq=0&external-domain=music.yandex.ru&overembed=no&__t=").concat(Date.now())},m=function(e,t,n,r,o){return"https://".concat(e,"/get-mp3/").concat(t,"/").concat(n,"/").concat(r,"?track-id=").concat(o,"&play=false")},g=function(){function e(t){Object(i.a)(this,e)}var t;return Object(s.a)(e,[{key:"yandexGetTrack",value:(t=Object(a.a)(l.a.mark((function e(t){var n,o,a,i,s,u,d,g,h,v,b,y,k,A,w,x,C,_;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.album,o=t.trackId,a=t.uid,i=t.currentPage,i=new URL(i),s={headers:{accept:"application/json","X-Current-UID":a,"X-Retpath-Y":i.toString()},json:!0,withCredentials:!0},e.next=5,Object(c.default)(p({url:f(i.host,o,n)},s));case 5:return u=e.sent,d=u.body,g=d.src,h=d.codec,v=d.bitrate,b=-1===g.indexOf("https:")?"https:"+g:g,y=new URL(b),[["track_id",o],["format","json"]].forEach((function(e){var t;return(t=y.searchParams).append.apply(t,Object(r.a)(e))})),e.next=12,Object(c.default)(p({url:y.toString()},s));case 12:return k=e.sent,A=k.body,w=A.host,x=A.ts,C=A.path,_=A.s,e.abrupt("return",{bitrate:v,codec:h,downloadURL:m(w,_,x,C,o)});case 15:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=function(){function e(t){Object(o.a)(this,e),this.engine=t}var t;return Object(a.a)(e,[{key:"ffTiktokDownloadMedia",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,o,a,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.downloadFileUrl,r=t.filename,e.next=3,fetch(n,{headers:{"User-Agent":"curl/7.64.1"}});case 3:return o=e.sent,e.next=6,o.blob();case 6:a=e.sent,i=URL.createObjectURL(a),this.engine.utils.downloadFile({options:{filename:r,url:i}});case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();t.default=u},function(e,t,n){"use strict";n.r(t);var r=n(59);t.default=function(e){if("<all_urls>"===e)return"^https?:\\/\\/.+$";var t=e.match(/(\*|http|https|file|ftp):\/\/([^\/]+)(?:\/(.*))?/);if(!t)throw new Error("Invalid url-pattern");var n=t[1];"*"===n&&(n="https?");var o=t[2],a=["^",n,":\\/\\/",o="*"===o?".+":(o=(o=r(o)).replace(/^\\\*\\\./,"(?:[^/]+\\.)?")).replace(/\\\.\\\*$/g,"\\.[a-z\\.]{2,}")],i=t[3];return i?"*"===i?(i="(?:|/.*)",a.push(i),a.push("$")):i&&(i=(i=r(i="/"+i)).replace(/\\\*/g,".*"),a.push(i),a.push("$")):a.push("$"),a.join("")}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=/:\/\/(?:[^\/?#]*@)?([^:\/?#]+)/.exec(e);return(n=n&&n[1])&&t&&(n=n.replace(/^www\./,"")),n}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=/^[\d.]+$/;if(!n.test(e)||!n.test(t))throw new Error("Incorrect version");for(var r=function(e,t){for(;e.length<t;)e="0"+e;return e},o=e.split("."),a=t.split("."),i=0;i<a.length;i++){var s=o[i]||"",u=a[i]||"",l=Math.max(s.length,u.length);if(s=parseInt(r(s,l)),(u=parseInt(r(u,l)))!==s)return u>s}return!1}},function(e,t,n){"use strict";n.r(t);var r=n(11),o=n(12),a=n(18),i=Object(o.default)("amplitude");t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bc3c8ed7b305f692ec048b0425b002df";return i.debug("send",e),Object(r.default)({url:"https://api.amplitude.com/httpapi",method:"POST",contentType:"application/x-www-form-urlencoded",data:a.stringify({api_key:t,event:JSON.stringify(e)})}).catch((function(e){i.error("amplitude error",e)}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"countryPresets",(function(){return u})),n.d(t,"isAllowedExperiment",(function(){return l}));var r=n(13);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var i={enabled:!1,percent:10,countries:["all"],browsers:["all"],languages:["all"],platforms:["all"]},s=["az","am","by","kg","kz","md","ru","tj","ua","uz"],u={presetOnlyCIS:function(e){return s.includes(e)},presetNotAllowCIS:function(e){return!s.includes(e)}};function l(e,t){var n,r=a(a({},i),e),o=r.browsers,s=void 0===o?[]:o,l=r.countries,c=void 0===l?[]:l,d=r.languages,p=void 0===d?[]:d,f=r.platforms,m=void 0===f?[]:f,g=r.percent,h=function(e){return e.toLowerCase()},v=s.map(h).includes(t.browser)||s.includes("all");if(c.every((function(e){return Object.keys(u).includes(e)}))){var b=c[0];n=u[b](t.country)}else n=c.map(h).includes(t.country)||c.includes("all");var y=p.map(h).find((function(e){return-1!==t.getLanguage().indexOf(e)}))||p.includes("all"),k=m.map(h).includes(t.getPlatform().toLowerCase())||m.includes("all");return!!(r.enabled&&v&&n&&y&&k)&&function(e){return 100*Math.random()<=e}(g)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(65),o=new Map;function a(){return{createRequest:i,sendRequest:s,readRequestBodyChunk:u,clearRequest:c,clearRequestByPrefix:l}}function i(e){var t=Object(r.default)(e);return o.set(t,{id:t,xhr:new XMLHttpRequest}),t}function s(e){return new Promise((function(t,n){var r=o.get(e.id),a=e.fetchOptions,i=r.xhr;for(var s in i.onload=function(){t({id:r.id,numChunks:Math.ceil(i.response.byteLength/16e6)||1,response:{ok:i.status>=200&&i.status<300,status:i.status,statusText:i.statusText,headers:d(i.getAllResponseHeaders()||""),url:i.responseURL}})},i.onerror=i.ontimeout=function(){n(new TypeError("Network request failed"))},i.onabort=function(){n(new DOMException("Aborted","AbortError"))},i.responseType="arraybuffer",i.open(a.method||"GET",e.url,!0),a.headers)i.setRequestHeader(s,a.headers[s]);i.send()}))}function u(e){return function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e99,r=8192,o=[],a=Math.min(e.byteLength,t+n);t<a;t+=r)o.push(String.fromCharCode.apply(null,new Uint8Array(e,t,Math.min(r,a-t))));return o.join("")}(o.get(e.id).xhr.response,16e6*e.chunkIndex,16e6)}function l(e){Array.from(o.keys()).filter((function(t){return-1!==t.indexOf(e)})).map((function(e){return c(e)}))}function c(e){var t=o.get(e);t&&(t.xhr&&t.xhr.abort(),o.delete(e))}function d(e){var t=e.split(/\r?\n/),n=[];return t.forEach((function(e){var t=e.indexOf(":");if(-1!==t){var r=e.substr(0,t).trim(),o=e.substr(t+1).trim();n.push([r,o])}})),n}},function(e,t,n){"use strict";n.r(t);var r=n(11),o=n(12),a=n(22),i=n(38),s=Object(o.default)("televzrRemoteFn"),u="http://127.0.0.1:34138";t.default=function(e){return{infoRequest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return Object(r.default)({url:u+"/info",json:!0,timeout:e}).then((function(e){if(e.body.error)throw new a.default(e.body.error.message,e.body.error.code);return e.body.result}))},openUrl:function(e){return Object(r.default)({url:u+"/open-url",method:"POST",headers:{"Content-Type":"application/json"},data:JSON.stringify({url:e}),json:!0}).then((function(e){if(e.body.error)throw new a.default(e.body.error.message,e.body.error.code);return e.body.result}))},startDownloadRequest:function(e,t,n){var o={url:u+"/download",method:"POST",json:!0,headers:{"Content-Type":"application/json"},data:JSON.stringify({url:e,type:t,height:n})};return Object(r.default)(o).then((function(e){var t=e.body.error;if(t)throw new a.default(t.message,t.code);return e.body.result}),(function(e){throw s.error("Download Request error",e),e}))},appAuth:function(){var t=this;return e.authService.getQuickCodeRequest().then((function(e){return t.sendQuickCodeRequest(e)})).then((function(){return Object(i.default)(1e3)})).then((function(){s.log("Televzr is authorized")}))},sendQuickCodeRequest:function(e){return Object(r.default)({url:u+"/auth/quick-code",headers:{"Content-Type":"application/json"},method:"POST",json:!0,data:JSON.stringify({code:e})}).catch((function(e){throw s.error("sendQuickCodeRequest",e),e}))}}}},function(e,t,n){var r,o=n(159).Buffer,a=n(18),i=n(160);r="function"==typeof o?function(e){return o.from(e).toString("base64")}:window.btoa.bind(window),e.exports=h;var s={Accept:"application/json, application/x-www-form-urlencoded","Content-Type":"application/x-www-form-urlencoded"},u={invalid_request:["The request is missing a required parameter, includes an","invalid parameter value, includes a parameter more than","once, or is otherwise malformed."].join(" "),invalid_client:["Client authentication failed (e.g., unknown client, no","client authentication included, or unsupported","authentication method)."].join(" "),invalid_grant:["The provided authorization grant (e.g., authorization","code, resource owner credentials) or refresh token is","invalid, expired, revoked, does not match the redirection","URI used in the authorization request, or was issued to","another client."].join(" "),unauthorized_client:["The client is not authorized to request an authorization","code using this method."].join(" "),unsupported_grant_type:["The authorization grant type is not supported by the","authorization server."].join(" "),access_denied:["The resource owner or authorization server denied the request."].join(" "),unsupported_response_type:["The authorization server does not support obtaining","an authorization code using this method."].join(" "),invalid_scope:["The requested scope is invalid, unknown, or malformed."].join(" "),server_error:["The authorization server encountered an unexpected","condition that prevented it from fulfilling the request.","(This error code is needed because a 500 Internal Server","Error HTTP status code cannot be returned to the client","via an HTTP redirect.)"].join(" "),temporarily_unavailable:["The authorization server is currently unable to handle","the request due to a temporary overloading or maintenance","of the server."].join(" ")};function l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null==e[n])throw new TypeError('Expected "'+n+'" to exist')}}function c(e){var t=u[e.error]||e.error_description||e.error;if(t){var n=new Error(t);return n.body=e,n.code="EAUTH",n}}function d(e){return Array.isArray(e)?e.join(" "):m(e)}function p(e,t){l(e,"clientId","authorizationUri");var n={client_id:e.clientId,redirect_uri:e.redirectUri,response_type:t,state:e.state};void 0!==e.scopes&&(n.scope=d(e.scopes));var r=e.authorizationUri.includes("?")?"&":"?";return e.authorizationUri+r+a.stringify(Object.assign(n,e.query))}function f(e,t){return"Basic "+r(m(e)+":"+m(t))}function m(e){return null==e?"":String(e)}function g(e,t){return{url:e.url,method:e.method,body:Object.assign({},e.body,t.body),query:Object.assign({},e.query,t.query),headers:Object.assign({},e.headers,t.headers)}}function h(e,t){this.options=e,this.request=t||i,this.code=new A(this),this.token=new y(this),this.owner=new b(this),this.credentials=new k(this),this.jwt=new w(this)}function v(e,t){this.client=e,this.data=t,this.tokenType=t.token_type&&t.token_type.toLowerCase(),this.accessToken=t.access_token,this.refreshToken=t.refresh_token,this.expiresIn(Number(t.expires_in))}function b(e){this.client=e}function y(e){this.client=e}function k(e){this.client=e}function A(e){this.client=e}function w(e){this.client=e}h.Token=v,h.prototype.createToken=function(e,t,n,r){var o=Object.assign({},r,"string"==typeof e?{access_token:e}:e,"string"==typeof t?{refresh_token:t}:t,"string"==typeof n?{token_type:n}:n);return new h.Token(this,o)},h.prototype._request=function(e){var t=e.url,n=a.stringify(e.body),r=a.stringify(e.query);return r&&(t+=(-1===t.indexOf("?")?"?":"&")+r),this.request(e.method,t,n,e.headers).then((function(e){var t=function(e){try{return JSON.parse(e)}catch(t){return a.parse(e)}}(e.body),n=c(t);if(n)return Promise.reject(n);if(e.status<200||e.status>=399){var r=new Error("HTTP status "+e.status);return r.status=e.status,r.body=e.body,r.code="ESTATUS",Promise.reject(r)}return t}))},v.prototype.expiresIn=function(e){if("number"==typeof e)this.expires=new Date,this.expires.setSeconds(this.expires.getSeconds()+e);else{if(!(e instanceof Date))throw new TypeError("Unknown duration: "+e);this.expires=new Date(e.getTime())}return this.expires},v.prototype.sign=function(e){if(!this.accessToken)throw new Error("Unable to sign without access token");if(e.headers=e.headers||{},"bearer"===this.tokenType)e.headers.Authorization="Bearer "+this.accessToken;else{var t=e.url.split("#"),n="access_token="+this.accessToken,r=t[0].replace(/[?&]access_token=[^&#]/,""),o=t[1]?"#"+t[1]:"";e.url=r+(r.indexOf("?")>-1?"&":"?")+n+o,e.headers.Pragma="no-store",e.headers["Cache-Control"]="no-store"}return e},v.prototype.refresh=function(e){var t=this,n=Object.assign({},this.client.options,e);return this.refreshToken?this.client._request(g({url:n.accessTokenUri,method:"POST",headers:Object.assign({},s,{Authorization:f(n.clientId,n.clientSecret)}),body:{refresh_token:this.refreshToken,grant_type:"refresh_token"}},n)).then((function(e){return t.client.createToken(Object.assign({},t.data,e))})):Promise.reject(new Error("No refresh token"))},v.prototype.expired=function(){return Date.now()>this.expires.getTime()},b.prototype.getToken=function(e,t,n){var r=this,o=Object.assign({},this.client.options,n),a={username:e,password:t,grant_type:"password"};return void 0!==o.scopes&&(a.scope=d(o.scopes)),this.client._request(g({url:o.accessTokenUri,method:"POST",headers:Object.assign({},s,{Authorization:f(o.clientId,o.clientSecret)}),body:a},o)).then((function(e){return r.client.createToken(e)}))},y.prototype.getUri=function(e){return p(Object.assign({},this.client.options,e),"token")},y.prototype.getToken=function(e,t){var n=Object.assign({},this.client.options,t),r="object"==typeof e?e:new URL(e,"https://example.org/"),o=new URL(n.redirectUri,"https://example.org/");if("string"==typeof r.pathname&&r.pathname!==o.pathname)return Promise.reject(new TypeError("Redirected path should match configured path, but got: "+r.pathname));if(!r.hash&&!r.search)return Promise.reject(new TypeError("Unable to process uri: "+e));var i=Object.assign({},"string"==typeof r.search?a.parse(r.search.substr(1)):r.search||{},"string"==typeof r.hash?a.parse(r.hash.substr(1)):r.hash||{}),s=c(i);return s?Promise.reject(s):null!=n.state&&i.state!==n.state?Promise.reject(new TypeError("Invalid state: "+i.state)):Promise.resolve(this.client.createToken(i))},k.prototype.getToken=function(e){var t=this,n=Object.assign({},this.client.options,e);l(n,"clientId","clientSecret","accessTokenUri");var r={grant_type:"client_credentials"};return void 0!==n.scopes&&(r.scope=d(n.scopes)),this.client._request(g({url:n.accessTokenUri,method:"POST",headers:Object.assign({},s,{Authorization:f(n.clientId,n.clientSecret)}),body:r},n)).then((function(e){return t.client.createToken(e)}))},A.prototype.getUri=function(e){return p(Object.assign({},this.client.options,e),"code")},A.prototype.getToken=function(e,t){var n=this,r=Object.assign({},this.client.options,t);l(r,"clientId","accessTokenUri");var o="object"==typeof e?e:new URL(e,"https://example.org/");if("string"==typeof r.redirectUri&&"string"==typeof o.pathname&&o.pathname!==new URL(r.redirectUri,"https://example.org/").pathname)return Promise.reject(new TypeError("Redirected path should match configured path, but got: "+o.pathname));if(!o.search||!o.search.substr(1))return Promise.reject(new TypeError("Unable to process uri: "+e));var i="string"==typeof o.search?a.parse(o.search.substr(1)):o.search||{},u=c(i);if(u)return Promise.reject(u);if(null!=r.state&&i.state!==r.state)return Promise.reject(new TypeError("Invalid state: "+i.state));if(!i.code)return Promise.reject(new TypeError("Missing code, unable to request token"));var d=Object.assign({},s),p={code:i.code,grant_type:"authorization_code",redirect_uri:r.redirectUri};return r.clientSecret?d.Authorization=f(r.clientId,r.clientSecret):p.client_id=r.clientId,this.client._request(g({url:r.accessTokenUri,method:"POST",headers:d,body:p},r)).then((function(e){return n.client.createToken(e)}))},w.prototype.getToken=function(e,t){var n=this,r=Object.assign({},this.client.options,t),o=Object.assign({},s);l(r,"accessTokenUri"),r.clientId&&(o.Authorization=f(r.clientId,r.clientSecret));var a={grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:e};return void 0!==r.scopes&&(a.scope=d(r.scopes)),this.client._request(g({url:r.accessTokenUri,method:"POST",headers:o,body:a},r)).then((function(e){return n.client.createToken(e)}))}},function(e,t){},function(e,t){e.exports=function(e,t,n,r){return new Promise((function(o,a){var i=new window.XMLHttpRequest;i.open(e,t),i.onload=function(){return o({status:i.status,body:i.responseText})},i.onerror=i.onabort=function(){return a(new Error(i.statusText||"XHR aborted: "+t))},Object.keys(r).forEach((function(e){i.setRequestHeader(e,r[e])})),i.send(n)}))}},function(e,t,n){"use strict";var r=n(162);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var a=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),c=["%","/","?",";","#"].concat(l),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(164);function b(e,t,n){if(e&&"object"==typeof e&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),i=-1!==o&&o<e.indexOf("#")?"?":"#",u=e.split(i);u[0]=u[0].replace(/\\/g,"/");var b=e=u.join(i);if(b=b.trim(),!n&&1===e.split("#").length){var y=s.exec(b);if(y)return this.path=b,this.href=b,this.pathname=y[1],y[2]?(this.search=y[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var k=a.exec(b);if(k){var A=(k=k[0]).toLowerCase();this.protocol=A,b=b.substr(k.length)}if(n||k||b.match(/^\/\/[^@/]+@[^@/]+/)){var w="//"===b.substr(0,2);!w||k&&g[k]||(b=b.substr(2),this.slashes=!0)}if(!g[k]&&(w||k&&!h[k])){for(var x,C,_=-1,S=0;S<d.length;S++){-1!==(O=b.indexOf(d[S]))&&(-1===_||O<_)&&(_=O)}-1!==(C=-1===_?b.lastIndexOf("@"):b.lastIndexOf("@",_))&&(x=b.slice(0,C),b=b.slice(C+1),this.auth=decodeURIComponent(x)),_=-1;for(S=0;S<c.length;S++){var O;-1!==(O=b.indexOf(c[S]))&&(-1===_||O<_)&&(_=O)}-1===_&&(_=b.length),this.host=b.slice(0,_),b=b.slice(_),this.parseHost(),this.hostname=this.hostname||"";var M="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!M)for(var E=this.hostname.split(/\./),D=(S=0,E.length);S<D;S++){var I=E[S];if(I&&!I.match(p)){for(var L="",T=0,j=I.length;T<j;T++)I.charCodeAt(T)>127?L+="x":L+=I[T];if(!L.match(p)){var P=E.slice(0,S),F=E.slice(S+1),N=I.match(f);N&&(P.push(N[1]),F.unshift(N[2])),F.length&&(b="/"+F.join(".")+b),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",R=this.hostname||"";this.host=R+B,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[A])for(S=0,D=l.length;S<D;S++){var z=l[S];if(-1!==b.indexOf(z)){var q=encodeURIComponent(z);q===z&&(q=escape(z)),b=b.split(z).join(q)}}var U=b.indexOf("#");-1!==U&&(this.hash=b.substr(U),b=b.slice(0,U));var V=b.indexOf("?");if(-1!==V?(this.search=b.substr(V),this.query=b.substr(V+1),t&&(this.query=v.parse(this.query)),b=b.slice(0,V)):t&&(this.search="",this.query={}),b&&(this.pathname=b),h[A]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var H=this.search||"";this.path=B+H}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(a=v.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var i=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||h[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),i&&"?"!==i.charAt(0)&&(i="?"+i),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(i=i.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if("string"==typeof e){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var i=r[a];n[i]=this[i]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var l=s[u];"protocol"!==l&&(n[l]=e[l])}return h[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!h[e.protocol]){for(var c=Object.keys(e),d=0;d<c.length;d++){var p=c[d];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",v=n.search||"";n.path=m+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),k=y||b||n.host&&e.pathname,A=k,w=n.pathname&&n.pathname.split("/")||[],x=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!h[n.protocol]);if(x&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),k=k&&(""===f[0]||""===w[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,w=f;else if(f.length)w||(w=[]),w.pop(),w=w.concat(f),n.search=e.search,n.query=e.query;else if(null!=e.search){if(x)n.host=w.shift(),n.hostname=n.host,(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.hostname=M.shift(),n.host=n.hostname);return n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=w.slice(-1)[0],_=(n.host||e.host||w.length>1)&&("."===C||".."===C)||""===C,S=0,O=w.length;O>=0;O--)"."===(C=w[O])?w.splice(O,1):".."===C?(w.splice(O,1),S++):S&&(w.splice(O,1),S--);if(!k&&!A)for(;S--;S)w.unshift("..");!k||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),_&&"/"!==w.join("/").substr(-1)&&w.push("");var M,E=""===w[0]||w[0]&&"/"===w[0].charAt(0);x&&(n.hostname=E?"":w.length?w.shift():"",n.host=n.hostname,(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.hostname=M.shift(),n.host=n.hostname));return(k=k||n.host&&w.length)&&!E&&w.unshift(""),w.length>0?n.pathname=w.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=b(e)),e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o},function(e,t,n){(function(e,r){var o;!function(a){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r&&r;i.global!==i&&i.window!==i&&i.self;var s,u=2147483647,l=/^xn--/,c=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,m=String.fromCharCode;function g(e){throw new RangeError(p[e])}function h(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+h((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t,n,r=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function y(e){return h(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function k(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?f(e/700):e>>1,e+=f(e/t);e>455;r+=36)e=f(e/35);return f(r+36*e/(e+38))}function w(e){var t,n,r,o,a,i,s,l,c,d,p,m=[],h=e.length,v=0,b=128,k=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&g("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<h;){for(a=v,i=1,s=36;o>=h&&g("invalid-input"),((l=(p=e.charCodeAt(o++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:36)>=36||l>f((u-v)/i))&&g("overflow"),v+=l*i,!(l<(c=s<=k?1:s>=k+26?26:s-k));s+=36)i>f(u/(d=36-c))&&g("overflow"),i*=d;k=A(v-a,t=m.length+1,0==a),f(v/t)>u-b&&g("overflow"),b+=f(v/t),v%=t,m.splice(v++,0,b)}return y(m)}function x(e){var t,n,r,o,a,i,s,l,c,d,p,h,v,y,w,x=[];for(h=(e=b(e)).length,t=128,n=0,a=72,i=0;i<h;++i)(p=e[i])<128&&x.push(m(p));for(r=o=x.length,o&&x.push("-");r<h;){for(s=u,i=0;i<h;++i)(p=e[i])>=t&&p<s&&(s=p);for(s-t>f((u-n)/(v=r+1))&&g("overflow"),n+=(s-t)*v,t=s,i=0;i<h;++i)if((p=e[i])<t&&++n>u&&g("overflow"),p==t){for(l=n,c=36;!(l<(d=c<=a?1:c>=a+26?26:c-a));c+=36)w=l-d,y=36-d,x.push(m(k(d+w%y,0))),l=f(w/y);x.push(m(k(l,0))),a=A(n,v,r==o),n=0,++r}++n,++t}return x.join("")}s={version:"1.4.1",ucs2:{decode:b,encode:y},decode:w,encode:x,toASCII:function(e){return v(e,(function(e){return c.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return v(e,(function(e){return l.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(163)(e),n(58))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(165),o=n(184),a=n(62);e.exports={formats:a,parse:o,stringify:r}},function(e,t,n){"use strict";var r=n(166),o=n(86),a=n(62),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,u(t)?t:[t])},d=Date.prototype.toISOString,p=a.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m={},g=function e(t,n,a,i,s,l,d,p,g,h,v,b,y,k,A,w){for(var x,C=t,_=w,S=0,O=!1;void 0!==(_=_.get(m))&&!O;){var M=_.get(t);if(S+=1,void 0!==M){if(M===S)throw new RangeError("Cyclic object value");O=!0}void 0===_.get(m)&&(S=0)}if("function"==typeof p?C=p(n,C):C instanceof Date?C=v(C):"comma"===a&&u(C)&&(C=o.maybeMap(C,(function(e){return e instanceof Date?v(e):e}))),null===C){if(s)return d&&!k?d(n,f.encoder,A,"key",b):n;C=""}if("string"==typeof(x=C)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||o.isBuffer(C))return d?[y(k?n:d(n,f.encoder,A,"key",b))+"="+y(d(C,f.encoder,A,"value",b))]:[y(n)+"="+y(String(C))];var E,D=[];if(void 0===C)return D;if("comma"===a&&u(C))k&&d&&(C=o.maybeMap(C,d)),E=[{value:C.length>0?C.join(",")||null:void 0}];else if(u(p))E=p;else{var I=Object.keys(C);E=g?I.sort(g):I}for(var L=i&&u(C)&&1===C.length?n+"[]":n,T=0;T<E.length;++T){var j=E[T],P="object"==typeof j&&void 0!==j.value?j.value:C[j];if(!l||null!==P){var F=u(C)?"function"==typeof a?a(L,j):L:L+(h?"."+j:"["+j+"]");w.set(t,S);var N=r();N.set(m,w),c(D,e(P,F,a,i,s,l,"comma"===a&&k&&u(C)?null:d,p,g,h,v,b,y,k,A,N))}}return D};e.exports=function(e,t){var n,o=e,l=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=a.formatters[n],o=f.filter;return("function"==typeof e.filter||u(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):u(l.filter)&&(n=l.filter);var d,p=[];if("object"!=typeof o||null===o)return"";d=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=s[d];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h="comma"===m&&t&&t.commaRoundTrip;n||(n=Object.keys(o)),l.sort&&n.sort(l.sort);for(var v=r(),b=0;b<n.length;++b){var y=n[b];l.skipNulls&&null===o[y]||c(p,g(o[y],y,m,h,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,v))}var k=p.join(l.delimiter),A=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?A+="utf8=%26%2310003%3B&":A+="utf8=%E2%9C%93&"),k.length>0?A+k:""}},function(e,t,n){"use strict";var r=n(35),o=n(177),a=n(182),i=n(45),s=r("%WeakMap%",!0),u=r("%Map%",!0),l=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),m=o("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new i("Side channel does not contain "+a(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(u){if(t)return p(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(u){if(t)return m(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,o){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),c(e,r,o)):u?(t||(t=new u),f(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},function(e,t,n){"use strict";e.exports=Error},function(e,t,n){"use strict";e.exports=EvalError},function(e,t,n){"use strict";e.exports=RangeError},function(e,t,n){"use strict";e.exports=ReferenceError},function(e,t,n){"use strict";e.exports=URIError},function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(173);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r={__proto__:null,foo:{}},o=Object;e.exports=function(){
// @ts-expect-error: TS errors on an inherited property for some reason
return{__proto__:r}.foo===r.foo&&!(r instanceof o)}},function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Object.prototype.toString,a=Math.max,i=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},s=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},u=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.apply(t))throw new TypeError(r+t);for(var n,l=s(arguments,1),c=function(){if(this instanceof n){var r=t.apply(this,i(l,arguments));return Object(r)===r?r:this}return t.apply(e,i(l,arguments))},d=a(0,t.length-l.length),p=[],f=0;f<d;f++)p[f]="$"+f;if(n=Function("binder","return function ("+u(p,",")+"){ return binder.apply(this,arguments); }")(c),t.prototype){var m=function(){};m.prototype=t.prototype,n.prototype=new m,m.prototype=null}return n}},function(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=n(60);e.exports=a.call(r,o)},function(e,t,n){"use strict";var r=n(35),o=n(178),a=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?o(n):n}},function(e,t,n){"use strict";var r=n(60),o=n(35),a=n(179),i=n(45),s=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(u,s),c=n(61),d=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new i("a function is required");var t=l(r,u,arguments);return a(t,1+d(0,e.length-(arguments.length-1)),!0)};var p=function(){return l(r,s,arguments)};c?c(e.exports,"apply",{value:p}):e.exports.apply=p},function(e,t,n){"use strict";var r=n(35),o=n(180),a=n(181)(),i=n(85),s=n(45),u=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&i){var c=i(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(l=!1)}return(r||l||!n)&&(a?o(e,"length",t,!0,!0):o(e,"length",t)),e}},function(e,t,n){"use strict";var r=n(61),o=n(84),a=n(45),i=n(85);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!i&&i(e,t);if(r)r(e,t,{configurable:null===l&&d?d.configurable:!l,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===u&&d?d.writable:!u});else{if(!c&&(s||u||l))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},function(e,t,n){"use strict";var r=n(61),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},function(e,t,n){(function(t){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&o&&"function"==typeof o.get?o.get:null,i=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&u&&"function"==typeof u.get?u.get:null,c=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,g=Object.prototype.toString,h=Function.prototype.toString,v=String.prototype.match,b=String.prototype.slice,y=String.prototype.replace,k=String.prototype.toUpperCase,A=String.prototype.toLowerCase,w=RegExp.prototype.test,x=Array.prototype.concat,C=Array.prototype.join,_=Array.prototype.slice,S=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,M=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||"symbol")?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function j(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-S(-e):S(e);if(r!==e){var o=String(r),a=b.call(t,o.length+1);return y.call(o,n,"$&_")+"."+y.call(y.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(t,n,"$&_")}var P=n(183),F=P.custom,N=U(F)?F:null;function B(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function R(e){return y.call(String(e),/"/g,"&quot;")}function z(e){return!("[object Array]"!==G(e)||I&&"object"==typeof e&&I in e)}function q(e){return!("[object RegExp]"!==G(e)||I&&"object"==typeof e&&I in e)}function U(e){if(D)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}e.exports=function e(n,r,o,s){var u=r||{};if(H(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!H(u,"customInspect")||u.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var k=u.numericSeparator;if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return e(b.call(t,0,n.maxStringLength),n)+o}return B(y.call(y.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Q),"single",n)}(n,u);if("number"==typeof n){if(0===n)return 1/0/n>0?"0":"-0";var w=String(n);return k?j(n,w):w}if("bigint"==typeof n){var S=String(n)+"n";return k?j(n,S):S}var M=void 0===u.depth?5:u.depth;if(void 0===o&&(o=0),o>=M&&M>0&&"object"==typeof n)return z(n)?"[Array]":"[Object]";var F=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=C.call(Array(e.indent+1)," ")}return{base:n,prev:C.call(Array(t+1),n)}}(u,o);if(void 0===s)s=[];else if(W(s,n)>=0)return"[Circular]";function V(t,n,r){if(n&&(s=_.call(s)).push(n),r){var a={depth:u.depth};return H(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),e(t,a,o+1,s)}return e(t,u,o+1,s)}if("function"==typeof n&&!q(n)){var $=function(e){if(e.name)return e.name;var t=v.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(n),ee=X(n,V);return"[Function"+($?": "+$:" (anonymous)")+"]"+(ee.length>0?" { "+C.call(ee,", ")+" }":"")}if(U(n)){var te=D?y.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(n);return"object"!=typeof n||D?te:Y(te)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(n)){for(var ne="<"+A.call(String(n.nodeName)),re=n.attributes||[],oe=0;oe<re.length;oe++)ne+=" "+re[oe].name+"="+B(R(re[oe].value),"double",u);return ne+=">",n.childNodes&&n.childNodes.length&&(ne+="..."),ne+="</"+A.call(String(n.nodeName))+">"}if(z(n)){if(0===n.length)return"[]";var ae=X(n,V);return F&&!function(e){for(var t=0;t<e.length;t++)if(W(e[t],"\n")>=0)return!1;return!0}(ae)?"["+Z(ae,F)+"]":"[ "+C.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==G(e)||I&&"object"==typeof e&&I in e)}(n)){var ie=X(n,V);return"cause"in Error.prototype||!("cause"in n)||L.call(n,"cause")?0===ie.length?"["+String(n)+"]":"{ ["+String(n)+"] "+C.call(ie,", ")+" }":"{ ["+String(n)+"] "+C.call(x.call("[cause]: "+V(n.cause),ie),", ")+" }"}if("object"==typeof n&&g){if(N&&"function"==typeof n[N]&&P)return P(n,{depth:M-o});if("symbol"!==g&&"function"==typeof n.inspect)return n.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(n)){var se=[];return i&&i.call(n,(function(e,t){se.push(V(t,n,!0)+" => "+V(e,n))})),K("Map",a.call(n),se,F)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(n)){var ue=[];return c&&c.call(n,(function(e){ue.push(V(e,n))})),K("Set",l.call(n),ue,F)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(n))return J("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(n))return J("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(n))return J("WeakRef");if(function(e){return!("[object Number]"!==G(e)||I&&"object"==typeof e&&I in e)}(n))return Y(V(Number(n)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(n))return Y(V(O.call(n)));if(function(e){return!("[object Boolean]"!==G(e)||I&&"object"==typeof e&&I in e)}(n))return Y(m.call(n));if(function(e){return!("[object String]"!==G(e)||I&&"object"==typeof e&&I in e)}(n))return Y(V(String(n)));if("undefined"!=typeof window&&n===window)return"{ [object Window] }";if(n===t)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==G(e)||I&&"object"==typeof e&&I in e)}(n)&&!q(n)){var le=X(n,V),ce=T?T(n)===Object.prototype:n instanceof Object||n.constructor===Object,de=n instanceof Object?"":"null prototype",pe=!ce&&I&&Object(n)===n&&I in n?b.call(G(n),8,-1):de?"Object":"",fe=(ce||"function"!=typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"")+(pe||de?"["+C.call(x.call([],pe||[],de||[]),": ")+"] ":"");return 0===le.length?fe+"{}":F?fe+"{"+Z(le,F)+"}":fe+"{ "+C.call(le,", ")+" }"}return String(n)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return V.call(e,t)}function G(e){return g.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+k.call(t.toString(16))}function Y(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function K(e,t,n,r){return e+" ("+t+") {"+(r?Z(n,r):C.call(n,", "))+"}"}function Z(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+C.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=H(e,o)?t(e[o],e):""}var a,i="function"==typeof M?M(e):[];if(D){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var u in e)H(e,u)&&(n&&String(Number(u))===u&&u<e.length||D&&a["$"+u]instanceof Symbol||(w.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"==typeof M)for(var l=0;l<i.length;l++)L.call(e,i[l])&&r.push("["+t(i[l])+"]: "+t(e[i[l]],e));return r}}).call(this,n(58))},function(e,t){},function(e,t,n){"use strict";var r=n(86),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),l=s?a.slice(0,s.index):a,c=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+a.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:u(t,n),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=o:"__proto__"!==l&&(i[l]=o):i={0:o}}o=i}return o}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,l={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,p=c.split(t.delimiter,d),f=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?m="utf-8":"utf8=%26%2310003%3B"===p[n]&&(m="iso-8859-1"),f=n,n=p.length);for(n=0;n<p.length;++n)if(n!==f){var g,h,v=p[n],b=v.indexOf("]="),y=-1===b?v.indexOf("="):b+1;-1===y?(g=t.decoder(v,i.decoder,m,"key"),h=t.strictNullHandling?null:""):(g=t.decoder(v.slice(0,y),i.decoder,m,"key"),h=r.maybeMap(u(v.slice(y+1),t),(function(e){return t.decoder(e,i.decoder,m,"value")}))),h&&t.interpretNumericEntities&&"iso-8859-1"===m&&(h=s(h)),v.indexOf("[]=")>-1&&(h=a(h)?[h]:h),o.call(l,g)?l[g]=r.combine(l[g],h):l[g]=h}return l}(e,n):e,d=n.plainObjects?Object.create(null):{},p=Object.keys(c),f=0;f<p.length;++f){var m=p[f],g=l(m,c[m],n,"string"==typeof e);d=r.merge(d,g,n)}return!0===n.allowSparse?d:r.compact(d)}},function(e,t,n){"use strict";n.r(t);var r=n(26),o=n(50),a=["responseStatus","responseOk","responseType"];t.default=function(e,t){var n=t||{},i=n.responseStatus,s=n.responseOk,u=void 0===s||s,l=n.responseType,c=void 0===l?"text":l,d=Object(r.a)(n,a);return fetch(e,d).then((function(e){if(u&&!e.ok||i&&i!==e.status)throw new o.default(e);var t={};["ok","redirected","status","statusText","type","url"].forEach((function(n){t[n]=e[n]}));var n={};return e.headers.forEach((function(e,t){n[t]=e})),t.headers=n,e[c]().then((function(e){return{response:t,body:e}}))}))}},function(e,t,n){"use strict";n.r(t);var r=function(e){e.track({t:"event",tid:"UA-181742122-4",ec:"search-engine",el:window.location.host,ea:"open"})};t.default=function(e){e.loader.when("init",(function(){var t=[/^(www\.)?google.com/,/^(www\.)?bing.com/,/^search.yahoo.com/,/^(www\.)?baidu.com/,/^(www\.)?yandex.ru/,/^(www\.)?yandex.com/,/^(www\.)?duckduckgo.com/].some((function(e){return e.test(window.location.host)})),n=window.location.search,o=new URLSearchParams(n),a=o.get("q"),i=o.get("text"),s=o.get("wd"),u=o.get("p");if(t&&(a||i||s||u)&&r(e),/^(www\.)?baidu.com/.test(window.location.host)){var l=window.location.href;setInterval((function(){l!==window.location.href&&(l=window.location.href,o.get("wd")&&r(e))}),100)}}))}},function(e,t,n){"use strict";n.r(t);var r=n(10),o=n(26),a=n(1),i=n(13),s=n(2),u=n(3),l=n(9),c=n(4);function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(c.a)(e)););return e}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}var f=n(7),m=n(0),g=n.n(m),h=n(5),v=function(){var e=[];return Array.isArray(navigator.languages)?e=navigator.languages:navigator.language&&(e=[navigator.language]),e};function b(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var y=n(89).preferredLanguages,k=function(e){return function(e){function t(){var e;return Object(s.a)(this,t),(e=b(this,t)).defaultLocale="en",e.localeMap={de:{extName:{message:"SaveFrom.net Helfer"},extDescription:{message:"Laden Sie von YouTube, Facebook, VK.com und mehr als 40 anderen Seiten mit einem Klick herunter."},extNameLite:{message:"SaveFrom.net Helfer Lite"},extDescriptionLite:{message:"Herunterladen von Facebook, VK.com und mehr als 40 weiteren Seiten mit einem Klick herunter."},lang:{message:"de"},titleDefault:{message:"SaveFrom.net Helfer"},titleDesabled:{message:"SaveFrom.net Helfer deaktiviert"},menuEnable:{message:"Aktivieren"},menuDisable:{message:"Deaktivieren"},showButton:{message:"Erweiterungs Knopf anzeigen"},copy:{message:"Kopie"},download:{message:"Herunterladen"},downloadTitle:{message:"Klicke Sie den Link während Sie die Alt/Einstellung oder Ctrl/Strg Taste drücken zum Herunterladen der Dateien."},noLinksFound:{message:"Keine Links wurden gefunden"},partnersLinksOnly:{message:"Keine Links gefunden, verwende Affiliate-Produkte"},more:{message:"Mehr"},close:{message:"Schließen"},kbps:{message:"kbps"},withoutAudio:{message:"without audio"},size:{message:"größe"},subtitles:{message:"Untertitel"},playlist:{message:"Wiedergabliste"},filelist:{message:"List of files"},downloadWholePlaylist:{message:"Die komplette Wiedergabliste herunterladen"},getFileSizeTitle:{message:"Dateigröße bestimmen"},getFileSizeFailTitle:{message:"Fehler bei bestimmung der Dateigröße. Bitte versuchen Sie es erneut."},lmButtonTitle:{message:"Holen Sie sich einen direkten Link."},downloadFromCurrentPage:{message:"Zu SaveFrom.net"},updateLinks:{message:"Links aktualisieren"},updateLinksNotification:{message:"Links aktualisiert"},downloadMP3Files:{message:"Download Audiodateien"},downloadPlaylist:{message:"Download Playlist"},downloadPhotos:{message:"Download Bilder"},installFullVersion:{message:"Install full version"},disable:{message:"Deaktivieren"},showOptions:{message:"Einstellungen"},reportBug:{message:"Fehler melden"},openPoll:{message:"Become better"},disableModule:{message:"Auf dieser Webseite deaktivieren"},enableModule:{message:"Auf dieser Webseite aktivieren"},enableDisableModule:{message:"Ein/Aus auf dieser Webseite"},showHideButton:{message:"Erweitern Ein-/Ausblenden"},updateTo:{message:"Update auf %d"},aboutPage:{message:"Über"},aboutTitle:{message:"SaveFrom.net Helfer"},aboutVersion:{message:"Version"},aboutDescription:{message:"Hilft den Nutzern direkte Links zu Herunterladen von mehr als 40 Webseiten, inklusive Dailymotion.com, YouTube.com, VK.com und weiteren zu bekommen."},aboutDescriptionLite:{message:"Hilft den Nutzern direkte Links zu Herunterladen von mehr als 40 Webseiten, inklusive Dailymotion.com, VK.com und weiteren zu bekommen."},aboutSupported:{message:"Unterstützte Ressourcen"},homePage:{message:"Homepage"},optionsTitle:{message:"SaveFrom.net Helfer - Einstellungen"},optionsHandleLinks:{message:"Links handhaben"},optionsFfmpegEnabled:{message:"Konverter für ffmpeg (Alpha-Version)"},optionsMediaHostings:{message:"Zu Medienhoster"},optionsModules:{message:"Module"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Links ausblenden"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Bitrate sofort zeigen"},optionsSovetnikEnabled:{message:"Advisor"},optionsShowUmmyInfo:{message:"Tipps für UVD einblenden"},optionsGmNativeDownload:{message:"Erweiterter Download-Modus"},optionsShowUmmyBtn:{message:"Schaltfläche Ummy anzeigen"},optionsAviaBarEnabled:{message:"Suche nach günstigen Flügen"},optionsSaveAsDialog:{message:"Jedes Mal nachfragen, wo eine Datei gespeichert werden soll"},optionsDirectory:{message:"Der Name des Verzeichnisses, in das Dateien eines der aufgelisteten Formate gespeichert werden"},optionsFormats:{message:"Geben Sie durch Leerzeichen getrennt die Dateiformate an, die in das angegebene Verzeichnis gespeichert werden sollen"},menuDownloadFromCurrentPage:{message:"Laden Sie die Dateien mit SaveFrom.net von der aktuellen Seite"},menuUpdateLinks:{message:"Hier klicke, wenn die Download-Taste nicht erscheint"},menuDownloadMP3Files:{message:"Alle auf dieser Seite gefundenen Audiodateien herunterladen"},menuDownloadPlaylist:{message:"Playliste mit den Links zu den Audiodateien generieren und downloaden"},menuDownloadPhotos:{message:"Alle auf der aktuellen Seite gefundenen Bilder herunterladen"},menuReportBug:{message:"Schreiben Sie uns, wenn Probleme auftreten"},menuShowOptions:{message:"AN/AUS unterstützte Ressourcen und Helperoptionen"},menuEnableExtension:{message:""},menuOpenPoll:{message:""},quality:{message:"Qualität"},qualityNote:{message:"Wenn es nicht um Qualität geht, wird das nächste verfügbare Video heruntergeladen."},filelistTitle:{message:"Die Liste der gefundenen dateien"},filelistInstruction:{message:"['Zum Herunterladen aller datien kopieren Sie die liste der Links in Ihren ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'Download Manager'}},'. Wenn Sie noch keinen Download Manager haben we empfehlen wir Ihnen die Installation des ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Wiedergabliste"},playlistInstruction:{message:"Zur Wiedergabe Ihrer gespeicherten Wiedergabliste kann es nun mit einem Musik-Player geöffnet werden."},ummySfTitle:{message:"HD oder MP3"},ummyMenuItem:{message:"[{span:{}},' mithilfe von Ummy herunterladen']"},ummyMenuInfo:{message:"[{p:{text:'Schnell und einfach HD Videos und MP3 über Ummy Video Downloader herunterladen!'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Jetzt installieren'}}]}},{p:{append:['Nach der Installation startet jederzeit ein Download, wenn Sie auf ',{img:{src:'#'}},' klicke']}}]"},warningPopupTitle:{message:"Überprüfen Sie die Browsereinstellungen"},warningPopupDesc:{message:'Die Option "Jedes Mal nachfragen, wo eine Datei gespeichert werden soll" muss deaktiviert sein.'},readMore:{message:"Mehr"},noWarning:{message:"Nicht benachrichtigen"},cancel:{message:"Abbrechen"},continue:{message:"Fortsetzen"},beforeDownloadPopupWarn:{message:"Achtung! Der Download kann nicht abgebrochen oder angehalten werden."},vkInfo:{message:"Info"},vkInfoTitle:{message:"Dateigröße und Bitrate"},vkMp3LinksNotFound:{message:"Links zu MP3 Dateien wurden nicht gefunden"},vkPhotoLinksNotFound:{message:"Photos are not found"},vkDownloadPhotoAlbum:{message:"Album herunterladen"},vkDownloadAllPhotoAlbums:{message:"Alle Alben herunterladen"},vkFoundPhotos:{message:"Gefundene Fotos"},vkNotAvailablePhotos:{message:"%d Foto(s) vorübergehend nicht verfügbar"},vkFoundLinks:{message:"Gefundene Links"},vkFoundOf:{message:"von"},vkShowAs:{message:"Zeigen als"},vkListOfLinks:{message:"Liste der Links"},vkListOfLinksInstruction:{message:"['Um alle Fotos herunterzuladen, kopieren Sie die Links aus der Liste und fügen Sie diese in Ihren ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'Download Manager'}},' ein. Wenn Sie noch keinen Download Manager haben we empfehlen wir Ihnen die Installation des ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Tabelle der Thumbnails"},vkListOfPhotos:{message:"Liste der Fotos"},vkListOfPhotosInstruction:{message:"klicke Sie auf ein Foto um es herunterzuladen."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['Herunterladen: Öffnen Sie ',{a:{href:'{url}',text:'die Video Seite'}},' und drücken Sie den \"Herunterladen\" Knopf über dem Video-Spieler']"},vkFoundFiles:{message:"Dateien gefunden: %d"},shareIn:{message:"In %w teilen"},socialDesc:{message:"Der SaveFrom.net Helper ermöglicht es Ihnen Dateien YouTube.com, Facebook.com, VK.com und mehr als 40 andere Seiten mit einem Klick herunterzuladen"},ummyTooltipConfirm:{message:"['Hatten Sie ',{img:{}},' Ummy Video Downloader bereits zuvor installiert?']"},yes:{message:"Ja"},no:{message:"Nein"},tooltipHide:{message:"Diese Meldung nicht wieder anzeigen"},sendToButton:{message:"Zum Telefon"},sendToLinkGoBack:{message:"Zurück zum Herunterladen von Videos."},sendToTextOr:{message:"oder"},sendToLoginTitle:{message:"Übertragen Sie das video direkt auf Ihr mobilgerät!"},sendToLoginText:{message:"Bitte melden Sie sich mit Google an, um das ausgewählte video zu übertragen"},sendToLoginButton:{message:"Einloggen"},sendToEmailTitle:{message:"Vielen Dank für Ihr Interesse!"},sendToEmailText:{message:"Die Arbeit an der Funktion ist derzeit im Gange. Bitte geben Sie uns Ihre E-Mail-Adresse, und wir werden Ihnen eine Einladung zusenden, sobald die Funktion einsatzbereit ist."},sendToEmailButton:{message:"Bitte senden sie eine E-Mail"},sendToEmailTextComplete:{message:"Danke!"},sendToEmailInputError:{message:"Fehler"},sendToEmailInputPlaceholder:{message:"Geben sie hier Ihre e-mail-adresse ein"},aliwizTopbarTitle:{message:"Aliexpress Assistant wird angezeigt <b>bester preis</b> & <b>gute verkäufer!</b>"},aliwizTopbarButton:{message:"kostenlos erhalten"},doNotClosePage:{message:"Schließen sie die seite nicht, bis die datei heruntergeladen wurde."},completed:{message:"Abgeschlossen"},somethingWentWrong:{message:"Etwas ist schiefgegangen. Versuchen Sie es später erneut."},downloadInfo:{message:"Download-Informationen"},prepareDownload:{message:"Vorbereitung zum Herunterladen"},videoDownloading:{message:"Video wird heruntergeladen"},videoDownloaded:{message:"Videos erfolgreich hochgeladen"},minimize:{message:"Minimieren"},minimizeDownloadPanel:{message:"Minimieren sie das download-fenster. Wir werden sie benachrichtigen, wenn das video heruntergeladen wurde."},done:{message:"Erledigt"},cancelDownload:{message:"Download abbrechen"},conversionCompleted:{message:"Konvertierung abgeschlossen"},someFilesNeedConverted:{message:"Einige Dateien müssen konvertiert werden. Schließen Sie das Fenster nicht, bis die Konvertierung abgeschlossen ist."},errors:{message:"Fehler"},files:{message:"Dateien"},login:{message:"Melden sie sich bei Helper Pro an"},loginIfPro:{message:"Melden Sie sich an, wenn Sie Pro haben"},activate:{message:"Aktivieren"},activatePro:{message:"Aktivieren PRO"},logout:{message:"Abmelden"},instruction:{message:"Anleitung zur Verwendung"},success:{message:"Erfolgreich"},televzrNotFound:{message:"Televzr nicht gefunden"},televzrNotFoundSubMessage:{message:"Versuchen sie, Televzr herunterzuladen und zu öffnen"},authCheck:{message:"Überprüfung der anmeldedaten"},tzSearchApp:{message:"Televzr suchen"},tzPreparingToDownload:{message:"Vorbereitung zum herunterladen"},tzDownloadStarted:{message:"Zum Download hinzugefügt"},msg_no_premium:{message:"Sie haben Pro nicht aktiviert"},msg_not_authorized:{message:"Um Pro zu nutzen, müssen sie sich anmelden"},msg_quality_not_found:{message:"Die angegebene qualität konnte nicht gefunden werden"},msg_video_not_found:{message:"Das angegebene video konnte nicht gefunden werden"},msg_data_invalid:{message:"Ungültige daten wurden gesendet, bitte versuchen Sie es erneut"},msg_video_exists:{message:"Das video wird bereits heruntergeladen"},loginGmMessage:{message:"Gehen sie zur anmeldeseite"},loginAlreadyGmMessage:{message:"Sie sind bereits angemeldet, bitte aktualisieren sie die seite"},logoutGmMessage:{message:"Sie haben sich erfolgreich abgemeldet"},logoutAlreadyGmMessage:{message:"Sie sind bereits abgemeldet, aktualisieren sie die seite"},howActivateHelperPro:{message:"Wie aktiviert man Helper Pro"},video_coming_soon:{message:"Video wird bald verfügbar sein beginnt mit dem herunterladen"},dont_close_page:{message:"Schließen sie die seite nicht, <br/> es wird ein paar minuten dauern"},video_coming_ok:{message:"Weitermachen"},are_you_sure_interrupt_download:{message:"Möchten sie den download wirklich unterbrechen?"},try_pro_button:{message:"PROBE PRO"},download_button_hold:{message:"Halten"},download_button_and_click:{message:"und klicken"},options_management:{message:"Speicherverwaltung (Dateien nach Verzeichnissen sortieren)"},options_Directory_title:{message:"Verzeichnis"},options_Formats_title:{message:"Formate"},options_Actions_title:{message:"Aktionen"},options_button_add:{message:"Hinzufügen"},options_button_reset:{message:"Zurücksetzen"},options_button_edit:{message:"Bearbeiten"},options_button_delete:{message:"Löschen"},options_button_cancel:{message:"Abbrechen"},options_button_save:{message:"Speichern"},options_no_type_msg:{message:"Keine Typen zugewiesen"},downloadingBox_description:{message:"Wenn der Download nicht gestartet wurde, klicken Sie auf die Schaltfläche Herunterladen"},downloadingBox_fileName:{message:"Dateiname"},downloadingBox_button:{message:"Herunterladen"},downloadingBox_status_complete:{message:"Abgeschlossen"},downloadingBox_status_loading:{message:"Laden..."},tutorialTooltipText:{message:"Um herunterzuladen, klicken Sie einfach auf die Schaltfläche"}},en:{extName:{message:"SaveFrom.net helper"},extDescription:{message:"Download YouTube, Facebook, VK.com and 40+ sites in one click."},lang:{message:"en"},showButton:{message:"Show extension button"},copy:{message:"Copy"},download:{message:"Download"},downloadTitle:{message:"Click the link while holding Alt/Option or Ctrl key to download the file."},noLinksFound:{message:"No links were found"},partnersLinksOnly:{message:"No links found, use affiliate products"},more:{message:"More"},close:{message:"Close"},kbps:{message:"kbps"},withoutAudio:{message:"without audio"},size:{message:"size"},subtitles:{message:"Subtitles"},playlist:{message:"Playlist"},filelist:{message:"List of files"},getFileSizeTitle:{message:"Get file size"},getFileSizeFailTitle:{message:"Unable to get the file size. Please try again."},lmButtonTitle:{message:"Get a direct link"},downloadFromCurrentPage:{message:"Go to SaveFrom.net"},updateLinks:{message:"Refresh links"},downloadMP3Files:{message:"Download audio files"},downloadPlaylist:{message:"Download a playlist"},downloadPhotos:{message:"Download pictures"},disable:{message:"Disable"},showOptions:{message:"Settings"},reportBug:{message:"Report a bug"},openPoll:{message:"Become better"},disableModule:{message:"Disable on this website"},enableModule:{message:"Enable on this website"},updateTo:{message:"Update to %d"},aboutTitle:{message:"SaveFrom.net Helper"},aboutVersion:{message:"Version"},aboutDescription:{message:"Helps users to get direct links to download from more than 40 websites, including Dailymotion.com, YouTube.com, VK.com and others."},aboutDescriptionLite:{message:"Helps users to get direct links to download from more than 40 websites, including Dailymotion.com, VK.com and others."},aboutSupported:{message:"Supported resources"},homePage:{message:"Home page"},optionsTitle:{message:"SaveFrom.net Helper - Preferences"},optionsHandleLinks:{message:"Handle links"},optionsFfmpegEnabled:{message:"Converter for ffmpeg (alpha version)"},optionsMediaHostings:{message:"To mediahostings"},optionsModules:{message:"Modules"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Hide links"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Show bitrate instantly"},optionsSovetnikEnabled:{message:"Advisor"},optionsShowUmmyInfo:{message:"Show tips for Ummy Video Downloader"},optionsGmNativeDownload:{message:"Advanced download mode"},optionsShowUmmyBtn:{message:"Show the Ummy button"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Always ask me where to save files"},optionsDirectory:{message:"The name of the directory into which files of one of the listed formats will be saved."},optionsFormats:{message:"Specify, separated by a space, the file formats that will be saved to the specified directory"},quality:{message:"Quality"},qualityNote:{message:"The best available video will be downloaded If there is no chosen quality."},filelistTitle:{message:"The list of the found files"},filelistInstruction:{message:"['To download all files copy the list of links and paste it into the ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'download manager'}},'. If you do not have a download manager installed we recommend installing ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Playlist"},playlistInstruction:{message:"To playback the saved playlist it may be now opened in the music player."},warningPopupTitle:{message:"Check browser settings"},warningPopupDesc:{message:'The option "Always ask me where to save files" must be turned off.'},readMore:{message:"More"},noWarning:{message:"Don't notify"},cancel:{message:"Cancel"},continue:{message:"Continue"},beforeDownloadPopupWarn:{message:"Warning! Downloading cannot be canceled or suspended."},vkMp3LinksNotFound:{message:"Links to MP3 files are not found"},vkDownloadPhotoAlbum:{message:"Download album"},vkFoundOf:{message:"of"},vkListOfLinks:{message:"List of links"},vkListOfLinksInstruction:{message:"['To download all photos copy the list of links and paste it into the ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'download manager'}},'. If you do not have a download manager installed we recommend installing ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkListOfPhotos:{message:"List of photos"},vkListOfPhotosInstruction:{message:"Click on the photo to download it."},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkFoundFiles:{message:"Files found: %d"},shareIn:{message:"Share on %w"},socialDesc:{message:"SaveFrom.net helper enables you to download files from YouTube.com, Facebook.com, VK.com and more than 40 other just in one click for free"},ummyTooltipConfirm:{message:"['Have you already installed',{br:{}},{img:{}},' Ummy Video Downloader earlier?']"},yes:{message:"Yes"},no:{message:"No"},tooltipHide:{message:"Do not show this message again"},sendToButton:{message:"To phone"},sendToLinkGoBack:{message:"Go back to downloading video"},sendToTextOr:{message:"or"},sendToLoginTitle:{message:"Transfer video directly to your mobile!"},sendToLoginText:{message:"Please, Sign In with Google to transfer chosen video"},sendToLoginButton:{message:"Sign in"},sendToEmailTitle:{message:"Thanks for your interest!"},sendToEmailText:{message:"The work under the feature is in progress now. Please, send us your email and we will send you an invite as far as feature would be ready."},sendToEmailButton:{message:"Send email"},sendToEmailTextComplete:{message:"Thank you!"},sendToEmailInputPlaceholder:{message:"Type your email here"},somethingWentWrong:{message:"Something went wrong. Try later."},prepareDownload:{message:"Preparing to download"},videoDownloading:{message:"Video downloading"},videoDownloaded:{message:"Videos uploaded successfully"},minimize:{message:"Minimize"},minimizeDownloadPanel:{message:"Minimize the download window, we'll let you know when the video has been downloaded"},done:{message:"Done"},cancelDownload:{message:"Cancel download"},conversionCompleted:{message:"Conversion completed"},someFilesNeedConverted:{message:"Some files need to be converted, do not close the window until the conversion is complete."},errors:{message:"Errors"},files:{message:"Files"},login:{message:"Login to Helper Pro"},loginIfPro:{message:"Login if you have Pro"},activate:{message:"Activate"},activatePro:{message:"Activate PRO"},logout:{message:"Logout"},instruction:{message:"Instructions for use"},success:{message:"Успешно"},televzrNotFound:{message:"Televzr not found"},televzrNotFoundSubMessage:{message:"Try to download and open Televzr"},authCheck:{message:"Credentials checking"},tzSearchApp:{message:"Search Televzr"},tzPreparingToDownload:{message:"Preparing to download"},tzDownloadStarted:{message:"Added to the download"},msg_no_premium:{message:"You have not activated Pro"},msg_not_authorized:{message:"To use pro you need to login"},msg_quality_not_found:{message:"Could not find the specified quality"},msg_video_not_found:{message:"Could not find the specified video"},msg_data_invalid:{message:"Invalid data was sent, please try again"},msg_video_exists:{message:"The video is already downloading"},loginGmMessage:{message:"Go to the login page"},loginAlreadyGmMessage:{message:"You are already logged in, please refresh the page"},logoutGmMessage:{message:"You have successfully logged out"},logoutAlreadyGmMessage:{message:"You are already logged out, refresh the page"},howActivateHelperPro:{message:"How to activate Helper Pro"},video_coming_soon:{message:"Video coming soon starts downloading"},dont_close_page:{message:"Don't close the page, <br/> it will take a few minutes"},video_coming_ok:{message:"Continue"},are_you_sure_interrupt_download:{message:"Are you sure you want to interrupt the download?"},try_pro_button:{message:"TRY PRO"},download_button_hold:{message:"Hold"},download_button_and_click:{message:"and click"},options_management:{message:"Save Management (Sort files by directories)"},options_Directory_title:{message:"Directory"},options_Formats_title:{message:"Formats"},options_Actions_title:{message:"Actions"},options_button_add:{message:"Add"},options_button_reset:{message:"Reset"},options_button_edit:{message:"Edit"},options_button_delete:{message:"Delete"},options_button_cancel:{message:"Cancel"},options_button_save:{message:"Save"},options_no_type_msg:{message:"No types assigned"},downloadingBox_description:{message:"If the download did not start, click the Download button"},downloadingBox_fileName:{message:"Filename"},downloadingBox_button:{message:"Download"},downloadingBox_status_complete:{message:"Completed"},downloadingBox_status_loading:{message:"Loading..."},tutorialTooltipText:{message:"To download, simply click the button"}},es:{extName:{message:"SaveFrom.net helper"},extDescription:{message:"Descargas desde YouTube, Facebook, VK.com y 40+ sitios en un sólo clic."},extNameLite:{message:"SaveFrom.net helper lite"},extDescriptionLite:{message:"Descargas desde Facebook, VK.com y 40+ sitios en un sólo clic."},lang:{message:"es"},titleDefault:{message:"SaveFrom.net helper"},titleDesabled:{message:"SaveFrom.net helper deshabilitado"},menuEnable:{message:"Habilitar"},menuDisable:{message:"Deshabilitar"},showButton:{message:"Mostrar botón de extensión"},copy:{message:"Copiar"},download:{message:"Descargar"},downloadTitle:{message:"Haga clic en el enlace mientras presiona la tecla Alt/Opción o Ctrl para descargar el archivo."},noLinksFound:{message:"No se han encontrado enlaces"},partnersLinksOnly:{message:"No se encontraron enlaces, utiliza productos de afiliados"},more:{message:"Más"},close:{message:"Cerrar"},kbps:{message:"kbps"},withoutAudio:{message:"sin audio"},size:{message:"tamaño"},subtitles:{message:"Subtítulos"},playlist:{message:"Lista de reproducción"},filelist:{message:"Lista de archivos"},downloadWholePlaylist:{message:"Descargar toda la lista de reproducción"},getFileSizeTitle:{message:"Obtener tamaño de archivo"},getFileSizeFailTitle:{message:"No se pudo obtener el tamaño del archivo. Por favor, inténtelo de nuevo."},lmButtonTitle:{message:"Obtener un enlace directo"},downloadFromCurrentPage:{message:"Ir a SaveFrom.net"},updateLinks:{message:"Actualizar enlaces"},updateLinksNotification:{message:"Enlaces actualizados"},downloadMP3Files:{message:"Descargar archivos de audio"},downloadPlaylist:{message:"Descargar una lista de reproducción"},downloadPhotos:{message:"Descargar imágenes"},installFullVersion:{message:"Instalar la versión completa"},disable:{message:"Deshabilitar"},showOptions:{message:"Ajustes"},reportBug:{message:"Informar sobre un problema"},openPoll:{message:"Mejorar"},disableModule:{message:"Desactivar en este sitio web"},enableModule:{message:"Activar en este sitio web"},enableDisableModule:{message:"Activ./Desactiv. en esta web"},showHideButton:{message:"Mostrar/ocultar botón extens"},updateTo:{message:"Actualizar a la %d"},aboutPage:{message:"Acerca de"},aboutTitle:{message:"SaveFrom.net Helper"},aboutVersion:{message:"Versión"},aboutDescription:{message:"Ayuda a los usuarios a obtener enlaces directos para descargar desde más de 40 sitios web, incluidos Dailymotion.com, YouTube.com, VK.com y otros."},aboutDescriptionLite:{message:"Ayuda a los usuarios a obtener enlaces directos para descargar desde más de 40 sitios web, incluidos Dailymotion.com, VK.com y otros."},aboutSupported:{message:"Recursos admitidos"},homePage:{message:"Página de inicio"},optionsTitle:{message:"SaveFrom.net Helper - Preferencias"},optionsHandleLinks:{message:"Manejar enlaces"},optionsFfmpegEnabled:{message:"Conversor para ffmpeg (Alpha version)"},optionsMediaHostings:{message:"A servidores multimedia"},optionsModules:{message:"Módulos"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Ocultar enlaces"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Mostrar velocidad de bits instantáneamente"},optionsSovetnikEnabled:{message:"Consejero"},optionsShowUmmyInfo:{message:"Muestra consejos para Ummy Video Downloader"},optionsGmNativeDownload:{message:"Móudlo de descarga avanzada"},optionsShowUmmyBtn:{message:"Mostrar el botón Ummy"},optionsAviaBarEnabled:{message:"Búsqueda de vuelos baratos"},optionsSaveAsDialog:{message:"Preguntarme siempre dónde guardar los archivos"},optionsDirectory:{message:"El nombre del directorio en el cual se guardarán los archivos de uno de los formatos enumerados."},optionsFormats:{message:"Especifica, separados por un espacio, los formatos de archivo que se guardarán en el directorio especificado"},menuDownloadFromCurrentPage:{message:"Descargar archivos de la página actual usando SaveFrom.net"},menuUpdateLinks:{message:"Pulse si no aparece el botón Descargar"},menuDownloadMP3Files:{message:"Descargar todos los archivos de audio de la página actual"},menuDownloadPlaylist:{message:"Genera y descarga la lista de reproducción que consiste en enlaces a archivos de audio"},menuDownloadPhotos:{message:"Descargar todas las imágenes encontradas en la página actual"},menuReportBug:{message:"Háganos saber si tiene algún problema"},menuShowOptions:{message:"ACTIVAR/DESACTIVAR recursos admitidos y opciones del Helper"},menuEnableExtension:{message:""},menuOpenPoll:{message:"Trabajamos duro para mejorar. ¡Échenos una mano!"},quality:{message:"Calidad"},qualityNote:{message:"Si no se elige ninguna calidad, se descargará el mejor vídeo disponible."},filelistTitle:{message:"La lista de los archivos encontrados"},filelistInstruction:{message:"['Para descargar todos los archivos, copie la lista de enlaces y péguela en el ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'gestor de descargas'}},'. Si no tiene instalado un gestor de descargas, le recomendamos que instale ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Lista de reproducción"},playlistInstruction:{message:"Para reproducir la lista de reproducción guardada, puede abrirla ahora en el reproductor de música."},ummySfTitle:{message:"HD o MP3"},ummyMenuItem:{message:"[{span:{}},' via Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Instale Ummy Video Downloader y descargue sus vídeos favoritos en HD o MP3.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Descargar'}}]}},{p:{append:['Después de la instalación, se iniciará una descarga automáticamente siempre que haga clic en ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Compruebe la configuración de su navegador"},warningPopupDesc:{message:'La opción "Preguntarme siempre dónde guardar los archivos" debe estar desactivada.'},readMore:{message:"Más"},noWarning:{message:"No notificar"},cancel:{message:"Cancelar"},continue:{message:"Continuar"},beforeDownloadPopupWarn:{message:"¡Advertencia! La descarga no se puede cancelar o suspender."},vkInfo:{message:"Información"},vkInfoTitle:{message:"Tamaño de archivo y velocidad de bits"},vkMp3LinksNotFound:{message:"No se han encontrado enlaces a archivos MP3"},vkPhotoLinksNotFound:{message:"No se han encontrado imágenes"},vkDownloadPhotoAlbum:{message:"Descargar álbum"},vkDownloadAllPhotoAlbums:{message:"Descargar todos los álbums"},vkFoundPhotos:{message:"Imágenes encontradas"},vkNotAvailablePhotos:{message:"%d imágenes están temporalmente no disponibles"},vkFoundLinks:{message:"Enlaces encontrados"},vkFoundOf:{message:"de"},vkShowAs:{message:"Mostrar como"},vkListOfLinks:{message:"Lista de enlaces"},vkListOfLinksInstruction:{message:"['Para descargar todas las imágenes, copie la lista de enlaces y péguela en el ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'gestor de descargas'}},'. Si no tiene instalado un gestor de descargas, le recomendamos que instale ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Tabla de miniaturas"},vkListOfPhotos:{message:"Lista de imágenes"},vkListOfPhotosInstruction:{message:"Haga clic en la imagen para descargarla."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['Descargar: abra ',{a:{href:'{url}',text:'la página del vídeo'}},' y pulse el botón \"Descargar\" sobre el reproductor']"},vkFoundFiles:{message:"Archivos encontrados: %d"},shareIn:{message:"Compartir en %w"},socialDesc:{message:"SaveFrom.net helper le permite descargar archivos desde YouTube.com, Facebook.com, VK.com y más de 40 sitios distintos con tan sólo un clic y gratis"},ummyTooltipConfirm:{message:"['¿Ya has instalado',{br:{}},{img:{}},' Ummy Video Downloader antes?']"},yes:{message:"Sí"},no:{message:"No"},tooltipHide:{message:"No mostrar de nuevo este mensaje"},sendToButton:{message:"Al teléfono"},sendToLinkGoBack:{message:"Volver a la descarga del video"},sendToTextOr:{message:"o"},sendToLoginTitle:{message:"¡Transfiere el video directamente a tu móvil!"},sendToLoginText:{message:"Por favor, inicia sesión con Google para transferir el video seleccionado"},sendToLoginButton:{message:"Iniciar sesión"},sendToEmailTitle:{message:"¡Gracias por tu interés!"},sendToEmailText:{message:"El trabajo en la función está en progreso. Por favor, envíanos tu correo electrónico y te enviaremos una invitación tan pronto como la función esté lista."},sendToEmailButton:{message:"Enviar correo electrónico"},sendToEmailTextComplete:{message:"¡Gracias!"},sendToEmailInputError:{message:"Error"},sendToEmailInputPlaceholder:{message:"Escribe tu correo electrónico aquí"},aliwizTopbarTitle:{message:"El asistente de Aliexpress muestra <b>mejor precio</b> y <b>mejores vendedores</b>"},aliwizTopbarButton:{message:"Obtener gratis"},doNotClosePage:{message:"No cierres la página hasta que se haya descargado el archivo"},completed:{message:"Completado"},somethingWentWrong:{message:"Algo salió mal. Inténtalo más tarde."},downloadInfo:{message:"Información de descarga"},prepareDownload:{message:"Preparando para descargar"},videoDownloading:{message:"Descargando video"},videoDownloaded:{message:"Videos subidos exitosamente"},minimize:{message:"Minimizar"},minimizeDownloadPanel:{message:"Minimiza la ventana de descarga, te informaremos cuando el video se haya descargado"},done:{message:"Hecho"},cancelDownload:{message:"Cancelar descarga"},conversionCompleted:{message:"Conversión completada"},someFilesNeedConverted:{message:"Algunos archivos necesitan ser convertidos, no cierres la ventana hasta que la conversión esté completa."},errors:{message:"Errores"},files:{message:"Archivos"},login:{message:"Iniciar sesión en Helper Pro"},loginIfPro:{message:"Inicia sesión si tienes Pro"},activate:{message:"Activar"},activatePro:{message:"Activar PRO"},logout:{message:"Cerrar sesión"},instruction:{message:"Instrucciones de uso"},success:{message:"Éxito"},televzrNotFound:{message:"Televzr no encontrado"},televzrNotFoundSubMessage:{message:"Intenta descargar y abrir Televzr"},authCheck:{message:"Verificación de credenciales"},tzSearchApp:{message:"Buscar Televzr"},tzPreparingToDownload:{message:"Preparándose para descargar"},tzDownloadStarted:{message:"Añadido a la descarga"},msg_no_premium:{message:"No has activado Pro"},msg_not_authorized:{message:"Para usar Pro necesitas iniciar sesión"},msg_quality_not_found:{message:"No se pudo encontrar la calidad especificada"},msg_video_not_found:{message:"No se pudo encontrar el video especificado"},msg_data_invalid:{message:"Se ha enviado información inválida, por favor inténtalo de nuevo"},msg_video_exists:{message:"El video ya se está descargando"},loginGmMessage:{message:"Ir a la página de inicio de sesión"},loginAlreadyGmMessage:{message:"Ya has iniciado sesión, por favor actualiza la página"},logoutGmMessage:{message:"Has cerrado sesión exitosamente"},logoutAlreadyGmMessage:{message:"Ya has cerrado sesión, actualiza la página"},howActivateHelperPro:{message:"Cómo activar Helper Pro"},video_coming_soon:{message:"El video estará disponible pronto, empieza la descarga"},dont_close_page:{message:"No cierres la página, <br/> tomará unos minutos"},video_coming_ok:{message:"Continuar"},are_you_sure_interrupt_download:{message:"¿Estás seguro de que quieres interrumpir la descarga?"},try_pro_button:{message:"PRUEBA PRO"},download_button_hold:{message:"Mantener"},download_button_and_click:{message:"y hacer clic"},options_management:{message:"Gestión de almacenamiento (Ordenar archivos por directorios)"},options_Directory_title:{message:"Directorio"},options_Formats_title:{message:"Formatos"},options_Actions_title:{message:"Acciones"},options_button_add:{message:"Agregar"},options_button_reset:{message:"Restablecer"},options_button_edit:{message:"Editar"},options_button_delete:{message:"Eliminar"},options_button_cancel:{message:"Cancelar"},options_button_save:{message:"Guardar"},options_no_type_msg:{message:"Ningún tipo asignado"},downloadingBox_description:{message:"Si la descarga no ha comenzado, haz clic en el botón Descargar"},downloadingBox_fileName:{message:"Nombre de archivo"},downloadingBox_button:{message:"Descargar"},downloadingBox_status_complete:{message:"Completado"},downloadingBox_status_loading:{message:"Cargando..."},tutorialTooltipText:{message:"Para descargar, simplemente haga clic en el botón"}},fr:{extName:{message:"SaveFrom.net Helper"},extDescription:{message:"Téléchargez YouTube, Facebook, VK.com et 40+ sites en un seul clic."},extNameLite:{message:"SaveFrom.net Helper lite"},extDescriptionLite:{message:"Téléchargez Facebook, VK.com et 40+ sites en un seul clic."},lang:{message:"fr"},titleDefault:{message:"SaveFrom.net Helper"},titleDesabled:{message:"Assistant SaveFrom.net désactivé"},menuEnable:{message:"Activer"},menuDisable:{message:"Désactiver"},showButton:{message:"Afficher le bouton d'extension"},copy:{message:"Copier"},download:{message:"Télécharger"},downloadTitle:{message:"Cliquer sur le lien tout en maintenant la touche Alt/Option ou Ctrl pour télécharger le fichier."},noLinksFound:{message:"Aucun lien n'a été trouvé"},partnersLinksOnly:{message:"Aucun lien trouvé, utilisez des produits affiliés"},more:{message:"Plus"},close:{message:"Fermer"},kbps:{message:"kbps"},withoutAudio:{message:"sans audio"},size:{message:"taille"},subtitles:{message:"Sous-titres"},playlist:{message:"Playlist"},filelist:{message:"Liste de fichiers"},downloadWholePlaylist:{message:"Télécharger toute la playlist"},getFileSizeTitle:{message:"Obtenir la taille du fichier"},getFileSizeFailTitle:{message:"Impossible d'obtenir la taille du fichier. Veuillez réessayer."},lmButtonTitle:{message:"Obtenir un lien direct"},downloadFromCurrentPage:{message:"Aller à SaveFrom.net"},updateLinks:{message:"Rafraîchir les liens"},updateLinksNotification:{message:"Liens mis à jour"},downloadMP3Files:{message:"Télécharger les fichiers audio"},downloadPlaylist:{message:"Télécharger une playlist"},downloadPhotos:{message:"Télécharger les images"},installFullVersion:{message:"Installer la version complète"},disable:{message:"Désactiver"},showOptions:{message:"Paramètres"},reportBug:{message:"Signaler un bug"},openPoll:{message:"Améliorer"},disableModule:{message:"Désactiver sur ce site"},enableModule:{message:"Activer sur ce site"},enableDisableModule:{message:"Activer On/Off sur ce site web"},showHideButton:{message:"Afficher/masquer le bouton d'extension"},updateTo:{message:"Passer à la version %d"},aboutPage:{message:"À propos"},aboutTitle:{message:"SaveFrom.net Helper"},aboutVersion:{message:"Version"},aboutDescription:{message:"Aide les utilisateurs à obtenir des liens directs pour télécharger depuis plus de 40 sites web, y compris Dailymotion.com, YouTube.com, VK.com et d'autres."},aboutDescriptionLite:{message:"Aide les utilisateurs à obtenir des liens directs pour télécharger depuis plus de 40 sites web, y compris Dailymotion.com, VK.com et d'autres."},aboutSupported:{message:"Ressources prises en charge"},homePage:{message:"Page d'accueil"},optionsTitle:{message:"SaveFrom.net Helper - Préférences"},optionsHandleLinks:{message:"manipuler les liens"},optionsFfmpegEnabled:{message:"Convertisseur pour ffmpeg (version alpha)"},optionsMediaHostings:{message:"Vers l'hébergement de médias"},optionsModules:{message:"Modules"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Masquer les liens"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Afficher instantanément le bitrate"},optionsSovetnikEnabled:{message:"Advisor"},optionsShowUmmyInfo:{message:"Afficher les astuces pour Ummy Video Downloader"},optionsGmNativeDownload:{message:"Mode de téléchargement avancé"},optionsShowUmmyBtn:{message:"Montrer le bouton Ummy"},optionsAviaBarEnabled:{message:"Recherche de vols bon marché"},optionsSaveAsDialog:{message:"Toujours demander où enregistrer les fichiers"},optionsDirectory:{message:"Le nom du répertoire dans lequel les fichiers de l'un des formats mentionnés seront enregistrés"},optionsFormats:{message:"Précisez, séparés par un espace, les formats de fichiers qui seront enregistrés dans le répertoire spécifié"},menuDownloadFromCurrentPage:{message:"Téléchargement des fichiers depuis la page actuelle en utilisant SaveFrom.net"},menuUpdateLinks:{message:"Appuyez si le bouton Télécharger n'apparaît pas"},menuDownloadMP3Files:{message:"Télécharger tous les fichiers audio trouvés sur la page actuelle"},menuDownloadPlaylist:{message:"Génère et télécharge la playlist consistant en liens vers les fichiers audio"},menuDownloadPhotos:{message:"Télécharger toutes les images trouvées sur la page actuelle"},menuReportBug:{message:"Prévenez-nous si vous avez des problèmes"},menuShowOptions:{message:"ON/OFF ressources prises en charge et options Helper"},menuEnableExtension:{message:""},menuOpenPoll:{message:"Nous faisons tout pour nous améliorer. N'hésitez pas à nous aider !"},quality:{message:"Qualité"},qualityNote:{message:"La meilleure vidéo disponible sera téléchargée s'il n'y a pas de qualité choisie."},filelistTitle:{message:"La liste des fichiers trouvés"},filelistInstruction:{message:"['Pour télécharger tous les fichiers copiez la liste des liens et collez-la dans ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'download manager'}},'. Si vous n\\'avez pas installé de gestionnaire de téléchargement, nous vous recommandons d\\'installer ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Playlist"},playlistInstruction:{message:"Pour lire la playlist sauvegardée, ouvrez-la dans le lecteur musical."},ummySfTitle:{message:"HD ou MP3"},ummyMenuItem:{message:"[{span:{}},' via Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Installez Ummy Video Downloader et téléchargez vos vidéos favorites en HD ou MP3.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Download'}}]}},{p:{append:['Après l\\'installation, un téléchargement démarrera automatiquement dès que vous cliquez sur ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Vérifier les paramètres du navigateur"},warningPopupDesc:{message:'L\'option "Toujours me demander où sauvegarder les fichiers" doit être désactivée.'},readMore:{message:"Plus"},noWarning:{message:"ne pas notifier'"},cancel:{message:"Annuler"},continue:{message:"Continuer"},beforeDownloadPopupWarn:{message:"Attention! Le téléchargement ne peut pas être annulé ou suspendu."},vkInfo:{message:"Info"},vkInfoTitle:{message:"Taille de fichier et bitrate"},vkMp3LinksNotFound:{message:"Les liens vers les fichiers MP3 sont introuvables"},vkPhotoLinksNotFound:{message:"Photos introuvables"},vkDownloadPhotoAlbum:{message:"Télécharger l'album"},vkDownloadAllPhotoAlbums:{message:"Télécharger tous les albums"},vkFoundPhotos:{message:"Photos trouvées"},vkNotAvailablePhotos:{message:"%d photos sont temporairement indisponibles"},vkFoundLinks:{message:"Liens trouvés"},vkFoundOf:{message:"de"},vkShowAs:{message:"Afficher comme"},vkListOfLinks:{message:"Liste des liens"},vkListOfLinksInstruction:{message:"['Pour télécharger toutes les photos copiez la liste des liens et collez-la dans ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'download manager'}},'. Si vous n\\'avez pas installé de gestionnaire de téléchargement nous vous recommandons d\\'installer ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Tableau des vignettes"},vkListOfPhotos:{message:"Liste des photos"},vkListOfPhotosInstruction:{message:"Cliquez sur la photo pour la télécharger."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"O"},vkFileSizeKByte:{message:"ko"},vkFileSizeMByte:{message:"Mo"},vkFileSizeGByte:{message:"Go"},vkFileSizeTByte:{message:"To"},vkDownloadFromYoutube:{message:"['Download: open ',{a:{href:'{url}',text:'the video page'}},' et appuyez sur le bouton \"Télécharger\" au-dessus du lecteur']"},vkFoundFiles:{message:"Fichiers trouvés : %d"},shareIn:{message:"Partager sur %w"},socialDesc:{message:"SaveFrom.net helper vous permet de télécharger des fichiers de YouTube.com, Facebook.com, VK.com et plus de 40 autres gratuitement et en un seul clic"},ummyTooltipConfirm:{message:"['Avez-vous déjà installé',{br:{}},{img:{}},' Ummy Video Downloader avant ?']"},yes:{message:"Oui"},no:{message:"Non"},tooltipHide:{message:"Ne plus afficher ce message"},sendToButton:{message:"Envoyer au téléphone"},sendToLinkGoBack:{message:"Retourner au téléchargement de la vidéo"},sendToTextOr:{message:"ou"},sendToLoginTitle:{message:"Transférer la vidéo directement sur votre téléphone !"},sendToLoginText:{message:"Veuillez vous connecter avec Google pour transférer la vidéo choisie"},sendToLoginButton:{message:"Se connecter"},sendToEmailTitle:{message:"Merci pour votre intérêt !"},sendToEmailText:{message:"Le travail sur cette fonctionnalité est en cours. Veuillez nous envoyer votre adresse e-mail et nous vous enverrons une invitation dès que la fonctionnalité sera prête."},sendToEmailButton:{message:"Envoyer un e-mail"},sendToEmailTextComplete:{message:"Merci !"},sendToEmailInputError:{message:"Erreur"},sendToEmailInputPlaceholder:{message:"Saisissez votre adresse e-mail ici"},aliwizTopbarTitle:{message:"L'assistant Aliexpress affiche le <b>meilleur prix</b> et les <b>bons vendeurs !</b>"},aliwizTopbarButton:{message:"Obtenir gratuitement"},doNotClosePage:{message:"Ne fermez pas la page tant que le fichier n'a pas été téléchargé"},completed:{message:"Terminé"},somethingWentWrong:{message:"Quelque chose s'est mal passé. Réessayez ultérieurement."},downloadInfo:{message:"Informations de téléchargement"},prepareDownload:{message:"Préparation au téléchargement"},videoDownloading:{message:"Téléchargement de la vidéo"},videoDownloaded:{message:"Vidéos téléchargées avec succès"},minimize:{message:"Minimiser"},minimizeDownloadPanel:{message:"Réduisez la fenêtre de téléchargement, nous vous informerons lorsque la vidéo aura été téléchargée"},done:{message:"Terminé"},cancelDownload:{message:"Annuler le téléchargement"},conversionCompleted:{message:"Conversion terminée"},someFilesNeedConverted:{message:"Certaines fichiers doivent être convertis, ne fermez pas la fenêtre tant que la conversion n'est pas terminée."},errors:{message:"Erreurs"},files:{message:"Fichiers"},login:{message:"Se connecter à Helper Pro"},loginIfPro:{message:"Connectez-vous si vous avez Pro"},activate:{message:"Activer"},activatePro:{message:"Activer PRO"},logout:{message:"Se déconnecter"},instruction:{message:"Instructions d'utilisation"},success:{message:"Succès"},televzrNotFound:{message:"Televzr introuvable"},televzrNotFoundSubMessage:{message:"Essayez de télécharger et d'ouvrir Televzr"},authCheck:{message:"Vérification des identifiants"},tzSearchApp:{message:"Rechercher Televzr"},tzPreparingToDownload:{message:"Préparation au téléchargement"},tzDownloadStarted:{message:"Ajouté au téléchargement"},msg_no_premium:{message:"Vous n'avez pas activé Pro"},msg_not_authorized:{message:"Pour utiliser Pro, vous devez vous connecter"},msg_quality_not_found:{message:"Impossible de trouver la qualité spécifiée"},msg_video_not_found:{message:"Impossible de trouver la vidéo spécifiée"},msg_data_invalid:{message:"Des données invalides ont été envoyées, veuillez réessayer"},msg_video_exists:{message:"La vidéo est déjà en train d'être téléchargée"},loginGmMessage:{message:"Accéder à la page de connexion"},loginAlreadyGmMessage:{message:"Vous êtes déjà connecté, veuillez rafraîchir la page"},logoutGmMessage:{message:"Vous vous êtes déconnecté avec succès"},logoutAlreadyGmMessage:{message:"Vous êtes déjà déconnecté, rafraîchissez la page"},howActivateHelperPro:{message:"Comment activer Helper Pro"},video_coming_soon:{message:"La vidéo arrive bientôt, le téléchargement va commencer"},dont_close_page:{message:"Ne fermez pas la page, <br/> cela prendra quelques minutes"},video_coming_ok:{message:"Continuer"},are_you_sure_interrupt_download:{message:"Êtes-vous sûr de vouloir interrompre le téléchargement ?"},try_pro_button:{message:"ESSAYER PRO"},download_button_hold:{message:"Maintenez"},download_button_and_click:{message:"et cliquez"},options_management:{message:"Gestion des enregistrements (Trier les fichiers par répertoires)"},options_Directory_title:{message:"Répertoire"},options_Formats_title:{message:"Formats"},options_Actions_title:{message:"Actions"},options_button_add:{message:"Ajouter"},options_button_reset:{message:"Réinitialiser"},options_button_edit:{message:"Modifier"},options_button_delete:{message:"Supprimer"},options_button_cancel:{message:"Annuler"},options_button_save:{message:"Enregistrer"},options_no_type_msg:{message:"Aucun type attribué"},downloadingBox_description:{message:"Si le téléchargement ne démarre pas, cliquez sur le bouton Télécharger"},downloadingBox_fileName:{message:"Nom du fichier"},downloadingBox_button:{message:"Télécharger"},downloadingBox_status_complete:{message:"Terminé"},downloadingBox_status_loading:{message:"Chargement en cours..."},tutorialTooltipText:{message:"Pour télécharger, cliquez simplement sur le bouton"}},id:{extName:{message:"Bantuan SaveFrom.net"},extDescription:{message:"Unduh YouTube, Facebook, VK.com, dan 40+ situs dengan satu klik."},extNameLite:{message:"Bantuan SaveFrom.net lite"},extDescriptionLite:{message:"Unduh Facebook, VK.com, dan 40+ situs dengan satu klik."},lang:{message:"id"},titleDefault:{message:"Bantuan SaveFrom.net"},titleDesabled:{message:"Bantuan SaveFrom.net nonaktif"},menuEnable:{message:"Aktifkan"},menuDisable:{message:"Nonaktifkan"},showButton:{message:"Tampilkan tombol ekstensi"},copy:{message:"Salin"},download:{message:"Unduh"},downloadTitle:{message:"Klik tautan sambil menahan tombol Alt/Option atau Ctrl untuk mengunduh file."},noLinksFound:{message:"Tautan tidak ditemukan"},partnersLinksOnly:{message:"Tidak ditemukan tautan, gunakan produk afiliasi"},more:{message:"Lainnya"},close:{message:"Tutup"},kbps:{message:"kbps"},withoutAudio:{message:"tanpa audio"},size:{message:"ukuran"},subtitles:{message:"Subtitel"},playlist:{message:"Daftar putar"},filelist:{message:"Daftar file"},downloadWholePlaylist:{message:"Unduh seluruh daftar putar"},getFileSizeTitle:{message:"Dapatkan ukuran file"},getFileSizeFailTitle:{message:"Gagal mendapatkan ukuran file. Mohon coba lagi."},lmButtonTitle:{message:"Dapatkan tautan langsung"},downloadFromCurrentPage:{message:"Buka SaveFrom.net"},updateLinks:{message:"Segarkan tautan"},updateLinksNotification:{message:"Tautan diperbarui"},downloadMP3Files:{message:"Unduh file audio"},downloadPlaylist:{message:"Unduh daftar putar"},downloadPhotos:{message:"Unduh gambar"},installFullVersion:{message:"Pasang versi lengkap"},disable:{message:"Nonaktifkan"},showOptions:{message:"Setelan"},reportBug:{message:"Laporkan bug"},openPoll:{message:"Jadikan lebih baik"},disableModule:{message:"Nonaktifkan di situs web ini"},enableModule:{message:"Aktifkan di situs web ini"},enableDisableModule:{message:"Nyalakan/Matikan di situs ini"},showHideButton:{message:"Tampilkan/tutup tbl ekstensi"},updateTo:{message:"Perbarui ke %d"},aboutPage:{message:"Tentang"},aboutTitle:{message:"Bantuan SaveFrom.net"},aboutVersion:{message:"Versi"},aboutDescription:{message:"Membantu pengguna mendapatkan tautan langsung dari 40+ situs web, termasuk Dailymotion.com, YouTube.com, VK.com dan lain-lain."},aboutDescriptionLite:{message:"Membantu pengguna mendapatkan tautan langsung untuk mengunduh dari 40+ situs web, termasuk Dailymotion.com, VK.com dan lain-lain."},aboutSupported:{message:"Sumber daya yang didukung"},homePage:{message:"Laman beranda"},optionsTitle:{message:"Bantuan SaveFrom.net - Preferensi"},optionsHandleLinks:{message:"Tangani tautan"},optionsFfmpegEnabled:{message:"Konverter untuk ffmpeg (versi alpha)"},optionsMediaHostings:{message:"Ke mediahosting"},optionsModules:{message:"Modul"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Sembunyikan tautan"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Langsung tampilkan bitrate"},optionsSovetnikEnabled:{message:"Penasihat"},optionsShowUmmyInfo:{message:"Tampilkan tips untuk Ummy Video Downloader"},optionsGmNativeDownload:{message:"Mode unduh lanjutan"},optionsShowUmmyBtn:{message:"Perlihatkan tombol Ummy"},optionsAviaBarEnabled:{message:"Pencarian tiket pesawat murah"},optionsSaveAsDialog:{message:"Selalu tanyakan lokasi penyimpanan berkas"},optionsDirectory:{message:"Nama direktori tempat file dari salah satu format yang terdaftar akan disimpan"},optionsFormats:{message:"Tentukan, dipisahkan oleh spasi, format-file yang akan disimpan dalam direktori yang telah ditentukan"},menuDownloadFromCurrentPage:{message:"Unduh file dari laman saat ini dengan SaveFrom.net"},menuUpdateLinks:{message:"Tekan jika tombol Unduh tidak muncul"},menuDownloadMP3Files:{message:"Unduh semua file audio yang ada di laman saat ini"},menuDownloadPlaylist:{message:"Buat dan unduh daftar putar berisi tautan ke file audio"},menuDownloadPhotos:{message:"Unduh semua gambar yang ada di laman saat ini"},menuReportBug:{message:"Beri tahu kami jika Anda mengalami masalah"},menuShowOptions:{message:"AKTIFKAN/NONAKTIFKAN sumber daya yang didukung dan opsi Bantuan"},menuEnableExtension:{message:""},menuOpenPoll:{message:"Kami bekerja keras untuk jadi lebih baik. Tolong, bantu kami!"},quality:{message:"Kualitas"},qualityNote:{message:"Video terbaik yang tersedia akan diunduh jika tidak ada kualitas yang dipilih."},filelistTitle:{message:"Daftar file yang ditemukan"},filelistInstruction:{message:"['Untuk mengunduh semua file, salin daftar tautan dan tempelkan ke ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'pengelola unduhan'}},'. Jika Anda tidak memiliki pengelola unduhan, kami menyarankan ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Daftar putar"},playlistInstruction:{message:"Untuk memutar daftar putar yang disimpan, sekarang bisa dibuka di pemutar musik."},ummySfTitle:{message:"HD atau MP3"},ummyMenuItem:{message:"[{span:{}},' via Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Pasang Ummy Video Downloader  dan unduh video favorit Anda dalam format HD atau MP3.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Unduh'}}]}},{p:{append:['Setelah pemasangan, unduhan akan otomatis dimulai setiap kali Anda mengeklik ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Periksa setelan browser"},warningPopupDesc:{message:'Opsi "Selalu tanya saya di mana menyimpan file" harus dinonaktifkan.'},readMore:{message:"Lainnya"},noWarning:{message:"Jangan beri tahu"},cancel:{message:"Batal"},continue:{message:"Lanjutkan"},beforeDownloadPopupWarn:{message:"Perhatian! Pengunduhan tidak dapat dibatalkan atau ditunda."},vkInfo:{message:"Info"},vkInfoTitle:{message:"Ukuran file dan bitrate"},vkMp3LinksNotFound:{message:"Tautan atau file MP3 tidak ditemukan"},vkPhotoLinksNotFound:{message:"Foto tidak ditemukan"},vkDownloadPhotoAlbum:{message:"Unduh album"},vkDownloadAllPhotoAlbums:{message:"Unduh semua album"},vkFoundPhotos:{message:"Foto ditemukan"},vkNotAvailablePhotos:{message:"%d foto sementara ini tidak tersedia"},vkFoundLinks:{message:"Tautan ditemukan"},vkFoundOf:{message:"dari"},vkShowAs:{message:"Tampilkan sebagai"},vkListOfLinks:{message:"Daftar tautan"},vkListOfLinksInstruction:{message:"['Untuk mengunduh semua foto, salin daftar tautan dan tempelkan ke ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'pengelola unduhan'}},'. Jika Anda tidak memiliki pengelola unduhan, kami menyarankan ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Tabel gambar mini"},vkListOfPhotos:{message:"Daftar foto"},vkListOfPhotosInstruction:{message:"Klik foto untuk mengunduhnya."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['Mengunduh: buka ',{a:{href:'{url}',text:'laman video'}},' dan tekan tombol \"Unduh\" di atas pemutar']"},vkFoundFiles:{message:"File ditemukan: %d"},shareIn:{message:"Bagikan di %w"},socialDesc:{message:"Dengan bantuan SaveFrom.net, Anda dapat mengunduh file dari YouTube.com, Facebook.com, VK.com, dan lebih dari 40 lainnya hanya dengan satu klik gratis"},ummyTooltipConfirm:{message:"['Apakah Anda sudah menginstal',{br:{}},{img:{}},' Ummy Video Downloader sebelumnya?']"},yes:{message:"Ya"},no:{message:"Tidak"},tooltipHide:{message:"Jangan perlihatkan pesan ini lagi"},sendToButton:{message:"Kirim ke ponsel"},sendToLinkGoBack:{message:"Kembali ke halaman unduhan video"},sendToTextOr:{message:"atau"},sendToLoginTitle:{message:"Transfer video langsung ke ponsel Anda!"},sendToLoginText:{message:"Silakan Masuk dengan Akun Google untuk mentransfer video yang dipilih"},sendToLoginButton:{message:"Masuk"},sendToEmailTitle:{message:"Terima kasih atas minat Anda!"},sendToEmailText:{message:"Pekerjaan untuk fitur ini sedang berlangsung. Silakan kirimkan kami email Anda dan kami akan mengirimkan undangan saat fitur sudah siap."},sendToEmailButton:{message:"Kirim email"},sendToEmailTextComplete:{message:"Terima kasih!"},sendToEmailInputError:{message:"Galat"},sendToEmailInputPlaceholder:{message:"Ketik email Anda di sini"},aliwizTopbarTitle:{message:"Asisten Aliexpress menampilkan <b>harga terbaik</b> & <b>penjual terpercaya!</b>"},aliwizTopbarButton:{message:"Dapatkan gratis"},doNotClosePage:{message:"Jangan tutup halaman sampai file selesai diunduh"},completed:{message:"Selesai"},somethingWentWrong:{message:"Ada yang salah. Coba lagi nanti."},downloadInfo:{message:"Informasi unduhan"},prepareDownload:{message:"Persiapan untuk mengunduh"},videoDownloading:{message:"Mengunduh video"},videoDownloaded:{message:"Video berhasil diunggah"},minimize:{message:"Minimalkan"},minimizeDownloadPanel:{message:"Minimalkan jendela unduhan, kami akan memberi tahu Anda ketika video telah diunduh"},done:{message:"Selesai"},cancelDownload:{message:"Batalkan unduhan"},conversionCompleted:{message:"Konversi selesai"},someFilesNeedConverted:{message:"Beberapa file perlu dikonversi, jangan tutup jendela sampai konversi selesai."},errors:{message:"Galat"},files:{message:"File"},login:{message:"Masuk ke Helper Pro"},loginIfPro:{message:"Masuk jika Anda memiliki Pro"},activate:{message:"Aktifkan"},activatePro:{message:"Aktifkan PRO"},logout:{message:"Keluar"},instruction:{message:"Instruksi penggunaan"},success:{message:"Berhasil"},televzrNotFound:{message:"Televzr tidak ditemukan"},televzrNotFoundSubMessage:{message:"Coba unduh dan buka Televzr"},authCheck:{message:"Memeriksa kredensial"},tzSearchApp:{message:"Cari Televzr"},tzPreparingToDownload:{message:"Persiapan untuk mengunduh"},tzDownloadStarted:{message:"Ditambahkan ke unduhan"},msg_no_premium:{message:"Anda belum mengaktifkan Pro"},msg_not_authorized:{message:"Untuk menggunakan Pro, Anda perlu masuk"},msg_quality_not_found:{message:"Tidak dapat menemukan kualitas yang ditentukan"},msg_video_not_found:{message:"Tidak dapat menemukan video yang ditentukan"},msg_data_invalid:{message:"Data yang tidak valid telah dikirim, harap coba lagi"},msg_video_exists:{message:"Video sedang diunduh"},loginGmMessage:{message:"Buka halaman masuk"},loginAlreadyGmMessage:{message:"Anda sudah masuk, harap segarkan halaman"},logoutGmMessage:{message:"Anda telah berhasil keluar"},logoutAlreadyGmMessage:{message:"Anda sudah keluar, segarkan halaman"},howActivateHelperPro:{message:"Cara mengaktifkan Helper Pro"},video_coming_soon:{message:"Video segera dimulai diunduh"},dont_close_page:{message:"Jangan tutup halaman, <br/> ini akan memerlukan beberapa menit"},video_coming_ok:{message:"Lanjutkan"},are_you_sure_interrupt_download:{message:"Apakah Anda yakin ingin menghentikan unduhan?"},try_pro_button:{message:"COBA PRO"},download_button_hold:{message:"Tahan"},download_button_and_click:{message:"dan klik"},options_management:{message:"Manajemen Simpan (Urutkan file berdasarkan direktori)"},options_Directory_title:{message:"Direktori"},options_Formats_title:{message:"Format"},options_Actions_title:{message:"Aksi"},options_button_add:{message:"Tambahkan"},options_button_reset:{message:"Atur ulang"},options_button_edit:{message:"Edit"},options_button_delete:{message:"Hapus"},options_button_cancel:{message:"Batal"},options_button_save:{message:"Simpan"},options_no_type_msg:{message:"Tidak ada tipe yang ditetapkan"},downloadingBox_description:{message:"Jika unduhan tidak dimulai, klik tombol Unduh"},downloadingBox_fileName:{message:"Nama file"},downloadingBox_button:{message:"Unduh"},downloadingBox_status_complete:{message:"Selesai"},downloadingBox_status_loading:{message:"Sedang memuat..."},tutorialTooltipText:{message:"Untuk mengunduh, cukup klik tombolnya"}},ko:{extName:{message:"SaveFrom.net 도우미"},extDescription:{message:"1 클릭으로 VKontakte, YouTube, Odnoklassniki 및 40 개 이상의 사이트에서 다운로드하십시오."},extNameLite:{message:"SaveFrom.net 도우미 Lite"},extDescriptionLite:{message:"1 클릭으로 VKontakte, Odnoklassniki 및 40 개 이상의 사이트에서 다운로드하십시오."},lang:{message:"ko"},titleDefault:{message:"SaveFrom.net 도우미"},titleDesabled:{message:"SaveFrom.net 도우미 비활성화"},menuEnable:{message:"활성화"},menuDisable:{message:"비활성화"},showButton:{message:"확장 프로그램 버튼 표시"},copy:{message:"복사"},download:{message:"다운로드"},downloadTitle:{message:"파일을 저장하려면 Alt 또는 Ctrl 키를 누른 채로 링크를 클릭하십시오."},noLinksFound:{message:"링크를 찾을 수 없습니다."},partnersLinksOnly:{message:"링크를 찾을 수 없습니다. 제휴 제품을 사용하십시오."},more:{message:"더보기"},close:{message:"닫기"},kbps:{message:"kbps"},withoutAudio:{message:"오디오 없음"},size:{message:"크기"},subtitles:{message:"자막"},playlist:{message:"재생 목록"},filelist:{message:"파일 목록"},downloadWholePlaylist:{message:"전체 재생 목록 다운로드"},getFileSizeTitle:{message:"파일 크기 확인"},getFileSizeFailTitle:{message:"파일 크기를 확인할 수 없습니다. 다시 시도하십시오."},lmButtonTitle:{message:"직접 링크 얻기"},downloadFromCurrentPage:{message:"SaveFrom.net으로 이동"},updateLinks:{message:"링크 업데이트"},updateLinksNotification:{message:"링크가 업데이트되었습니다."},downloadMP3Files:{message:"MP3 파일 다운로드"},downloadPlaylist:{message:"재생 목록 다운로드"},downloadPhotos:{message:"사진 다운로드"},installFullVersion:{message:"전체 버전 설치"},disable:{message:"비활성화"},showOptions:{message:"옵션"},reportBug:{message:"버그 신고"},openPoll:{message:"더 나아지기"},disableModule:{message:"이 사이트에서 비활성화"},enableModule:{message:"이 사이트에서 활성화"},enableDisableModule:{message:"이 사이트에서 활성화/비활성화"},showHideButton:{message:"확장 프로그램 버튼 표시/숨기기"},updateTo:{message:"%d로 업데이트"},aboutPage:{message:"확장 프로그램 정보"},aboutTitle:{message:"SaveFrom.net 도우미"},aboutVersion:{message:"버전"},aboutDescription:{message:"VK.com, YouTube.com 및 기타 40 개 이상의 사이트에서 다운로드 링크를 직접 받을 수 있습니다."},aboutDescriptionLite:{message:"VK.com, Vimeo 및 기타 40 개 이상의 사이트에서 다운로드 링크를 직접 받을 수 있습니다."},aboutSupported:{message:"지원되는 사이트"},homePage:{message:"홈페이지"},optionsTitle:{message:"SaveFrom.net 도우미 - 설정"},optionsHandleLinks:{message:"링크 처리"},optionsFfmpegEnabled:{message:"ffmpeg 변환기 (알파 버전)"},optionsMediaHostings:{message:"미디어 호스팅"},optionsModules:{message:"모듈"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"링크 숨기기"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VKontakte"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Mail.ru"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"비트율 표시"},optionsSovetnikEnabled:{message:"어시스턴트"},optionsShowUmmyInfo:{message:"Ummy Video Downloader에 대한 정보 표시"},optionsGmNativeDownload:{message:"고급 다운로드 모드"},optionsShowUmmyBtn:{message:"Ummy 버튼 표시"},optionsAviaBarEnabled:{message:"싼 항공권 검색"},optionsSaveAsDialog:{message:"파일 저장 요청 항상 표시"},optionsDirectory:{message:"지정된 형식의 파일을 저장할 디렉토리 이름"},optionsFormats:{message:"지정된 디렉토리에 저장할 파일 형식을 공백으로 구분하여 입력하십시오"},menuDownloadFromCurrentPage:{message:"현재 페이지에서 SaveFrom.net을 사용하여 파일 다운로드"},menuUpdateLinks:{message:"다운로드 링크가 표시되지 않는 경우 클릭"},menuDownloadMP3Files:{message:"페이지에서 찾은 모든 오디오 파일 다운로드"},menuDownloadPlaylist:{message:"링크가 있는 재생 목록 생성 및 다운로드"},menuDownloadPhotos:{message:"페이지에서 찾은 모든 사진 다운로드"},menuReportBug:{message:"문제가 발생한 경우 알려주십시오"},menuShowOptions:{message:"지원되는 사이트 및 도우미 기능 활성화/비활성화"},menuEnableExtension:{message:""},menuOpenPoll:{message:"SaveFrom.net 도우미 확장 프로그램의 품질을 평가해 주세요"},quality:{message:"품질"},qualityNote:{message:"원하는 품질의 비디오가 없으면 가능한 최상의 품질로 다운로드됩니다."},filelistTitle:{message:"찾은 파일 목록"},filelistInstruction:{message:"['모든 파일을 다운로드하려면 링크 목록을 복사하고 ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'다운로드 관리자'}},'에 붙여 넣으십시오. 다운로드 관리자를 설치하지 않았다면 ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'를 설치하는 것이 좋습니다.']"},playlistTitle:{message:"재생 목록"},playlistInstruction:{message:"저장한 재생 목록은 재생을 위해 플레이어에서 열 수 있습니다."},ummySfTitle:{message:"HD 또는 MP3"},ummyMenuItem:{message:"[{span:{}},'를 사용하여 다운로드']"},ummyMenuInfo:{message:"[{p:{append:['무료 프로그램', {br:{}}, 'Ummy Video Downloader를 사용하여 HD 및 MP3를 다운로드하십시오.']}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'설치'}}]}},{p:{append:['설치 후에는 ',{img:{src:'#'}},'을 클릭하면 다운로드가 자동으로 시작됩니다.']}}]"},warningPopupTitle:{message:"브라우저 설정 확인"},warningPopupDesc:{message:"다운로드 할 때 폴더 선택이 비활성화되어야 합니다."},readMore:{message:"자세히 알아보기..."},noWarning:{message:"경고하지 않음"},cancel:{message:"취소"},continue:{message:"계속"},beforeDownloadPopupWarn:{message:"주의: 다운로드를 취소하거나 일시 중지할 수 없습니다."},vkInfo:{message:"설정"},vkInfoTitle:{message:"파일 크기 및 비트레이트"},vkMp3LinksNotFound:{message:"MP3 링크를 찾을 수 없습니다."},vkPhotoLinksNotFound:{message:"사진 링크를 찾을 수 없습니다."},vkDownloadPhotoAlbum:{message:"앨범 다운로드"},vkDownloadAllPhotoAlbums:{message:"모든 앨범 다운로드"},vkFoundPhotos:{message:"사진 찾음"},vkNotAvailablePhotos:{message:"일시적으로 사용 불가능한 사진 %d 장"},vkFoundLinks:{message:"링크 찾음"},vkFoundOf:{message:"중"},vkShowAs:{message:"다음과 같이 표시"},vkListOfLinks:{message:"링크 목록"},vkListOfLinksInstruction:{message:"['모든 사진을 다운로드하려면 링크 목록을 복사하고 ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'다운로드 관리자'}},'에 붙여 넣으십시오. 다운로드 관리자를 설치하지 않았다면 ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'를 설치하는 것이 좋습니다.']"},vkTableOfThumbnails:{message:"썸네일 테이블"},vkListOfPhotos:{message:"사진 목록"},vkListOfPhotosInstruction:{message:"사진을 다운로드하려면 마우스 왼쪽 버튼을 클릭하십시오."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"KB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['다운로드: ',{a:{href:'{url}',text:'비디오 페이지'}},'에서 비디오 위에 있는 \"다운로드\" 버튼을 클릭하십시오.']"},vkFoundFiles:{message:"파일 찾음: %d"},shareIn:{message:"%w에서 공유"},socialDesc:{message:"SaveFrom.net 도우미는 VK.com, YouTube.com, Odnoklassniki.ru 및 기타 40 개 이상의 사이트에서 무료로 다운로드 할 수 있도록 도와줍니다."},ummyTooltipConfirm:{message:"['이미',{br:{}},{img:{}},' Ummy Video Downloader를 설치했습니까?']"},yes:{message:"예"},no:{message:"아니요"},tooltipHide:{message:"이 메시지를 더 이상 표시하지 않습니다."},sendToButton:{message:"휴대폰으로 보내기"},sendToLinkGoBack:{message:"비디오 다운로드로 돌아가기"},sendToTextOr:{message:"또는"},sendToLoginTitle:{message:"당신의 휴대폰으로 비디오를 즉시 다운로드하세요!"},sendToLoginText:{message:"선택한 비디오를 보내려면 Google을 통해 로그인하세요."},sendToLoginButton:{message:"로그인"},sendToEmailTitle:{message:"우리 서비스에 관심을 가져 주셔서 감사합니다!"},sendToEmailText:{message:"이 기능은 아직 개발 중입니다. 이 서비스가 시작되면 독점 초대장을 보내 드립니다!"},sendToEmailButton:{message:"이메일 남기기"},sendToEmailTextComplete:{message:"감사합니다!"},sendToEmailInputError:{message:"오류"},sendToEmailInputPlaceholder:{message:"이메일을 입력하세요"},aliwizTopbarTitle:{message:"<b>믿을 수 있는 판매자</b>와 <b>최고의 가격</b>을 Aliexpress에서 보여드립니다!"},aliwizTopbarButton:{message:"보이기"},doNotClosePage:{message:"파일이 다운로드될 때까지 페이지를 닫지 마십시오!"},completed:{message:"완료"},somethingWentWrong:{message:"문제가 발생했습니다. 나중에 다시 시도하십시오."},downloadInfo:{message:"다운로드 정보"},prepareDownload:{message:"다운로드 준비 중"},videoDownloading:{message:"비디오 다운로드 중"},videoDownloaded:{message:"비디오 다운로드 성공"},minimize:{message:"최소화"},minimizeDownloadPanel:{message:"비디오가 다운로드될 때 알려 드릴 때까지 다운로드 패널을 최소화하십시오."},done:{message:"완료"},cancelDownload:{message:"다운로드 취소"},conversionCompleted:{message:"변환 완료"},someFilesNeedConverted:{message:"일부 파일을 변환해야 합니다. 작업이 완료될 때까지 창을 닫지 마십시오."},errors:{message:"오류"},files:{message:"파일"},login:{message:"Helper Pro에 로그인"},loginIfPro:{message:"Pro 회원이라면 로그인하세요"},activate:{message:"활성화"},activatePro:{message:"PRO 활성화"},logout:{message:"로그아웃"},instruction:{message:"사용 설명서"},success:{message:"성공"},televzrNotFound:{message:"Televzr를 찾을 수 없음"},televzrNotFoundSubMessage:{message:"Televzr을 다운로드하고 열어보세요."},authCheck:{message:"인증 정보 확인"},tzSearchApp:{message:"Televzr 검색"},tzPreparingToDownload:{message:"다운로드 준비 중"},tzDownloadStarted:{message:"다운로드에 추가됨"},msg_no_premium:{message:"Pro를 활성화하지 않았습니다"},msg_not_authorized:{message:"Pro를 사용하려면 로그인해야 합니다"},msg_quality_not_found:{message:"지정된 품질을 찾을 수 없습니다"},msg_video_not_found:{message:"지정된 비디오를 찾을 수 없습니다"},msg_data_invalid:{message:"잘못된 데이터가 전송되었습니다. 다시 시도하십시오"},msg_video_exists:{message:"비디오가 이미 다운로드 중입니다"},loginGmMessage:{message:"로그인 페이지로 이동"},loginAlreadyGmMessage:{message:"이미 로그인되어 있습니다. 페이지를 새로 고칩니다."},logoutGmMessage:{message:"로그아웃 성공적으로 완료되었습니다"},logoutAlreadyGmMessage:{message:"이미 로그아웃되어 있습니다. 페이지를 새로 고칩니다."},howActivateHelperPro:{message:"Helper Pro를 활성화하는 방법"},video_coming_soon:{message:"비디오 다운로드가 곧 시작됩니다"},dont_close_page:{message:"페이지를 닫지 마십시오. <br/>이 몇 분 정도 소요됩니다"},video_coming_ok:{message:"확인"},are_you_sure_interrupt_download:{message:"다운로드를 중단하시겠습니까?"},try_pro_button:{message:"PRO 사용해 보기"},download_button_hold:{message:"누르고 유지하세요"},download_button_and_click:{message:"그리고 클릭하세요"},options_management:{message:"저장 관리 (파일을 디렉토리별로 정렬)"},options_Directory_title:{message:"디렉토리"},options_Formats_title:{message:"형식"},options_Actions_title:{message:"동작"},options_button_add:{message:"추가"},options_button_reset:{message:"재설정"},options_button_edit:{message:"편집"},options_button_delete:{message:"삭제"},options_button_cancel:{message:"취소"},options_button_save:{message:"저장"},options_no_type_msg:{message:"유형이 정의되지 않았습니다"},downloadingBox_description:{message:"다운로드가 시작되지 않으면 다운로드 버튼을 클릭하세요"},downloadingBox_fileName:{message:"파일 이름"},downloadingBox_button:{message:"다운로드"},downloadingBox_status_complete:{message:"완료"},downloadingBox_status_loading:{message:"로딩 중"},tutorialTooltipText:{message:"다운로드하려면 단순히 버튼을 클릭하세요"}},pt:{extName:{message:"Assistente SaveFrom.net"},extDescription:{message:"Baixe do VKontakte, YouTube, Odnoklassniki e mais 40 sites com apenas 1 clique."},extNameLite:{message:"Assistente SaveFrom.net Lite"},extDescriptionLite:{message:"Baixe do VKontakte, Odnoklassniki e mais 40 sites com apenas 1 clique."},lang:{message:"pt"},titleDefault:{message:"Assistente SaveFrom.net"},titleDesabled:{message:"Assistente SaveFrom.net desativado"},menuEnable:{message:"Ativar"},menuDisable:{message:"Desativar"},showButton:{message:"Mostrar botão da extensão"},copy:{message:"Copiar"},download:{message:"Baixar"},downloadTitle:{message:"Clique no link enquanto mantém pressionada a tecla Alt ou Ctrl para salvar o arquivo."},noLinksFound:{message:"Não foram encontrados links"},partnersLinksOnly:{message:"Links não encontrados, utilize produtos parceiros"},more:{message:"Mais"},close:{message:"Fechar"},kbps:{message:"kbps"},withoutAudio:{message:"sem áudio"},size:{message:"tamanho"},subtitles:{message:"Legendas"},playlist:{message:"Lista de reprodução"},filelist:{message:"Lista de arquivos"},downloadWholePlaylist:{message:"Baixar a lista de reprodução inteira"},getFileSizeTitle:{message:"Determinar o tamanho do arquivo"},getFileSizeFailTitle:{message:"Não foi possível determinar o tamanho do arquivo. Tente novamente."},lmButtonTitle:{message:"Obter link direto"},downloadFromCurrentPage:{message:"Ir para o SaveFrom.net"},updateLinks:{message:"Atualizar links"},updateLinksNotification:{message:"Links atualizados"},downloadMP3Files:{message:"Baixar arquivos de áudio"},downloadPlaylist:{message:"Baixar lista de reprodução"},downloadPhotos:{message:"Baixar fotos"},installFullVersion:{message:"Instalar a versão completa"},disable:{message:"Desativar"},showOptions:{message:"Opções"},reportBug:{message:"Reportar um erro"},openPoll:{message:"Torne-se melhor"},disableModule:{message:"Desativar neste site"},enableModule:{message:"Ativar neste site"},enableDisableModule:{message:"Ativar/Desativar neste site"},showHideButton:{message:"Mostrar/Ocultar botão da extensão"},updateTo:{message:"Atualizar para %d"},aboutPage:{message:"Sobre a extensão"},aboutTitle:{message:"Assistente SaveFrom.net"},aboutVersion:{message:"Versão"},aboutDescription:{message:"Permite obter links diretos para download de mais de 40 sites, incluindo VK.com, YouTube.com e outros."},aboutDescriptionLite:{message:"Permite obter links diretos para download de mais de 40 sites, incluindo VK.com, Vimeo e outros."},aboutSupported:{message:"Recursos suportados"},homePage:{message:"Página inicial"},optionsTitle:{message:"Assistente SaveFrom.net - Opções"},optionsHandleLinks:{message:"Manipular links"},optionsFfmpegEnabled:{message:"Conversor para ffmpeg (versão Alpha)"},optionsMediaHostings:{message:"Em hospedagens de mídia"},optionsModules:{message:"Módulos"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Ocultar links"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VKontakte"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moi Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Mostrar taxa de bits imediatamente"},optionsSovetnikEnabled:{message:"Conselheiro"},optionsShowUmmyInfo:{message:"Mostrar dicas para o Ummy Video Downloader"},optionsGmNativeDownload:{message:"Modo de download avançado"},optionsShowUmmyBtn:{message:"Exibir botão Ummy"},optionsAviaBarEnabled:{message:"Pesquisa de passagens aéreas baratas"},optionsSaveAsDialog:{message:"Sempre perguntar onde salvar os arquivos"},optionsDirectory:{message:"Nome do diretório onde os arquivos serão salvos em um dos formatos listados"},optionsFormats:{message:"Especifique os formatos de arquivo separados por espaço que serão salvos no diretório especificado"},menuDownloadFromCurrentPage:{message:"Baixar arquivos da página atual usando o serviço SaveFrom.net"},menuUpdateLinks:{message:"Clique se o link de download não aparecer"},menuDownloadMP3Files:{message:"Baixar todos os arquivos de áudio encontrados na página"},menuDownloadPlaylist:{message:"Cria e baixa uma lista de reprodução com links para arquivos de áudio"},menuDownloadPhotos:{message:"Baixar todas as fotos encontradas na página"},menuReportBug:{message:"Informe-nos se você encontrar problemas"},menuShowOptions:{message:"Ativar/Desativar recursos e opções de assistência"},menuEnableExtension:{message:""},menuOpenPoll:{message:"Avalie a qualidade da extensão SaveFrom.net"},quality:{message:"Qualidade"},qualityNote:{message:"Se o vídeo na qualidade desejada não estiver disponível, o melhor disponível será baixado."},filelistTitle:{message:"Lista de arquivos encontrados"},filelistInstruction:{message:"['Para baixar todos os arquivos, copie a lista de links e cole-a em um ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'gerenciador de downloads'}},'. Se você não tiver um gerenciador de downloads instalado, recomendamos instalar o ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},playlistTitle:{message:"Lista de reprodução"},playlistInstruction:{message:"A lista de reprodução salva pode ser aberta em um player para reprodução."},ummySfTitle:{message:"HD ou MP3"},ummyMenuItem:{message:"[{span:{}},' com o Ummy']"},ummyMenuInfo:{message:"[{p:{append:['Baixe HD e MP3 gratuitamente com o programa gratuito', {br:{}}, 'Ummy Video Downloader!']}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Instalar'}}]}},{p:{append:['Após a instalação, o download começará automaticamente ao clicar em ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Verifique as configurações do navegador"},warningPopupDesc:{message:"A opção de escolher a pasta durante o download deve estar desativada."},readMore:{message:"Leia mais..."},noWarning:{message:"Não avisar"},cancel:{message:"Cancelar"},continue:{message:"Continuar"},beforeDownloadPopupWarn:{message:"Atenção: não será possível cancelar ou pausar o download."},vkInfo:{message:"Configurações"},vkInfoTitle:{message:"Tamanho do arquivo e taxa de bits"},vkMp3LinksNotFound:{message:"Links para arquivos MP3 não encontrados"},vkPhotoLinksNotFound:{message:"Links para fotos não encontrados"},vkDownloadPhotoAlbum:{message:"Baixar álbum"},vkDownloadAllPhotoAlbums:{message:"Baixar todos os álbuns"},vkFoundPhotos:{message:"Fotos encontradas"},vkNotAvailablePhotos:{message:"%d fotos temporariamente indisponíveis"},vkFoundLinks:{message:"Links encontrados"},vkFoundOf:{message:"de"},vkShowAs:{message:"Mostrar como"},vkListOfLinks:{message:"Lista de links"},vkListOfLinksInstruction:{message:"['Para baixar todas as fotos, copie a lista de links e cole-a em um ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'gerenciador de downloads'}},'. Se você não tiver um gerenciador de downloads instalado, recomendamos instalar o ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},vkTableOfThumbnails:{message:"Tabela de miniaturas"},vkListOfPhotos:{message:"Lista de fotos"},vkListOfPhotosInstruction:{message:"Para baixar uma foto, clique nela com o botão esquerdo do mouse."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['Baixar: abra a ',{a:{href:'{url}',text:'página do vídeo'}},' e clique no botão \"Baixar\" acima do player']"},vkFoundFiles:{message:"Arquivos encontrados: %d"},shareIn:{message:"Compartilhar no %w"},socialDesc:{message:"O Assistente SaveFrom.net ajuda a baixar gratuitamente de VK.com, YouTube.com, Odnoklassniki.ru e mais de 40 outros sites com apenas 1 clique"},ummyTooltipConfirm:{message:"['Você já instalou o',{br:{}},{img:{}},' Ummy Video Downloader?']"},yes:{message:"Sim"},no:{message:"Não"},tooltipHide:{message:"Não mostrar mais esta mensagem"},sendToButton:{message:"Enviar para o telefone"},sendToLinkGoBack:{message:"Voltar para o download do vídeo"},sendToTextOr:{message:"ou"},sendToLoginTitle:{message:"Baixe vídeos diretamente para o seu telefone!"},sendToLoginText:{message:"Por favor, faça login com o Google para enviar o vídeo selecionado"},sendToLoginButton:{message:"Entrar"},sendToEmailTitle:{message:"Obrigado pelo seu interesse em nossos serviços!"},sendToEmailText:{message:"Estamos trabalhando duro nessa funcionalidade. Deixe seu email e enviaremos um convite exclusivo assim que o serviço for lançado!"},sendToEmailButton:{message:"Deixar email"},sendToEmailTextComplete:{message:"Obrigado!"},sendToEmailInputError:{message:"Erro"},sendToEmailInputPlaceholder:{message:"Digite seu email"},aliwizTopbarTitle:{message:"Mostraremos <b>vendedores confiáveis</b> e <b>melhores preços</b> no Aliexpress!"},aliwizTopbarButton:{message:"Mostrar"},doNotClosePage:{message:"Não feche a página até que o arquivo seja baixado!"},completed:{message:"Concluído"},somethingWentWrong:{message:"Algo deu errado. Tente novamente mais tarde"},downloadInfo:{message:"Informações de download"},prepareDownload:{message:"Preparando para download"},videoDownloading:{message:"Baixando vídeo"},videoDownloaded:{message:"Vídeo baixado com sucesso"},minimize:{message:"Minimizar"},minimizeDownloadPanel:{message:"Minimize a janela de download, notificaremos você quando o vídeo estiver baixado"},done:{message:"Concluído"},cancelDownload:{message:"Cancelar download"},conversionCompleted:{message:"Conversão concluída"},someFilesNeedConverted:{message:"Alguns arquivos precisam ser convertidos, não feche a janela até que a operação esteja concluída"},errors:{message:"Erros"},files:{message:"Arquivos"},login:{message:"Entrar no Helper Pro"},loginIfPro:{message:"Faça login se você for Pro"},activate:{message:"Ativar"},activatePro:{message:"Ativar PRO"},logout:{message:"Sair"},instruction:{message:"Instrução"},success:{message:"Sucesso"},televzrNotFound:{message:"Televzr não encontrado"},televzrNotFoundSubMessage:{message:"Tente baixar e abrir o Televzr"},authCheck:{message:"Verificação de autenticação"},tzSearchApp:{message:"Procurando Televzr"},tzPreparingToDownload:{message:"Preparando para download"},tzDownloadStarted:{message:"Adicionado aos Downloads"},msg_no_premium:{message:"Você não ativou o Pro"},msg_not_authorized:{message:"Para usar o Pro, você precisa fazer login no sistema"},msg_quality_not_found:{message:"Não foi possível encontrar a qualidade especificada"},msg_video_not_found:{message:"Não foi possível encontrar o vídeo especificado"},msg_data_invalid:{message:"Dados inválidos enviados, tente novamente"},msg_video_exists:{message:"O vídeo já está sendo baixado"},loginGmMessage:{message:"Ir para a página de login"},loginAlreadyGmMessage:{message:"Você já está logado, atualize a página"},logoutGmMessage:{message:"Você saiu do sistema com sucesso"},logoutAlreadyGmMessage:{message:"Você já saiu do sistema, atualize a página"},howActivateHelperPro:{message:"Como ativar o Helper Pro"},video_coming_soon:{message:"O vídeo começará em breve a ser baixado"},dont_close_page:{message:"Não feche a página, <br/>isso levará alguns minutos"},video_coming_ok:{message:"Entendi"},are_you_sure_interrupt_download:{message:"Tem certeza de que deseja interromper o download?"},try_pro_button:{message:"TENTAR PRO"},download_button_hold:{message:"Pressione"},download_button_and_click:{message:"e clique"},options_management:{message:"Gerenciamento de download (classificação de arquivos em pastas)"},options_Directory_title:{message:"Diretório"},options_Formats_title:{message:"Formatos"},options_Actions_title:{message:"Ações"},options_button_add:{message:"Adicionar"},options_button_reset:{message:"Redefinir"},options_button_edit:{message:"Editar"},options_button_delete:{message:"Excluir"},options_button_cancel:{message:"Cancelar"},options_button_save:{message:"Salvar"},options_no_type_msg:{message:"Tipos não definidos"},downloadingBox_description:{message:"Se o download não iniciar, clique no botão de download"},downloadingBox_fileName:{message:"Nome do arquivo"},downloadingBox_button:{message:"Download"},downloadingBox_status_complete:{message:"Concluído"},downloadingBox_status_loading:{message:"Carregando..."},tutorialTooltipText:{message:"Para baixar, basta clicar no botão"}},ru:{extName:{message:"SaveFrom.net помощник"},extDescription:{message:"Скачивайте с Вконтакте, YouTube, Одноклассники и еще 40 сайтов за 1 клик."},extNameLite:{message:"SaveFrom.net помощник lite"},extDescriptionLite:{message:"Скачивайте с Вконтакте, Одноклассники и еще 40 сайтов за 1 клик."},lang:{message:"ru"},titleDefault:{message:"SaveFrom.net помощник"},titleDesabled:{message:"SaveFrom.net помощник выключен"},menuEnable:{message:"Включить"},menuDisable:{message:"Выключить"},showButton:{message:"Показывать кнопку расширения"},copy:{message:"Копировать"},download:{message:"Скачать"},downloadTitle:{message:"Нажмите на ссылку, удерживая клавишу Alt или Ctrl, чтобы сохранить файл."},noLinksFound:{message:"Не удалось найти ссылки"},partnersLinksOnly:{message:"Ссылки не найдены, воспользуйтесь партнерскими продуктами"},more:{message:"Ещё"},close:{message:"Закрыть"},kbps:{message:"кб/с"},withoutAudio:{message:"без аудио"},size:{message:"размер"},subtitles:{message:"Субтитры"},playlist:{message:"Плейлист"},filelist:{message:"Список файлов"},downloadWholePlaylist:{message:"Скачать весь плейлист"},getFileSizeTitle:{message:"Определить размер файла"},getFileSizeFailTitle:{message:"Не удалось определить размер файла. Попробуйте повторить попытку."},lmButtonTitle:{message:"Получи прямую ссылку"},downloadFromCurrentPage:{message:"Перейти на SaveFrom.net"},updateLinks:{message:"Обновить ссылки"},updateLinksNotification:{message:"Ссылки обновлены"},downloadMP3Files:{message:"Скачать аудио файлы"},downloadPlaylist:{message:"Скачать плейлист"},downloadPhotos:{message:"Скачать фотографии"},installFullVersion:{message:"Установить полную версию"},disable:{message:"Выключить"},showOptions:{message:"Настройки"},reportBug:{message:"Сообщить об ошибке"},openPoll:{message:"Стать лучше"},disableModule:{message:"Отключить на этом сайте"},enableModule:{message:"Включить на этом сайте"},enableDisableModule:{message:"Вкл/Выкл на этом сайте"},showHideButton:{message:"Показ./скр. кнопку расширения"},updateTo:{message:"Обновить до %d"},aboutPage:{message:"О расширении"},aboutTitle:{message:"SaveFrom.net помощник"},aboutVersion:{message:"Версия"},aboutDescription:{message:"Позволяет получать прямые ссылки для скачивания с более чем 40 сайтов, среди которых  VK.com, YouTube.com и другие."},aboutDescriptionLite:{message:"Позволяет получать прямые ссылки для скачивания с более чем 40 сайтов, среди которых  VK.com, Vimeo и другие."},aboutSupported:{message:"Поддерживаемые ресурсы"},homePage:{message:"Домашняя страница"},optionsTitle:{message:"SaveFrom.net помощник - Настройки"},optionsHandleLinks:{message:"Обрабатывать ссылки"},optionsFfmpegEnabled:{message:"Конвертер для ffmpeg (Alpha version)"},optionsMediaHostings:{message:"На медиахостинги"},optionsModules:{message:"Модули"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Скрывать ссылки"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"Вконтакте"},optionsOdnoklassniki:{message:"Одноклассники"},optionsMailru:{message:"Мой мир"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Показывать битрейт сразу"},optionsSovetnikEnabled:{message:"Советник"},optionsShowUmmyInfo:{message:"Показывать подсказки для Ummy Video Downloader"},optionsGmNativeDownload:{message:"Расширенный режим закачки"},optionsShowUmmyBtn:{message:"Отображать кнопку Ummy"},optionsAviaBarEnabled:{message:"Советник Дешевых Авиабилетов"},optionsSaveAsDialog:{message:"Всегда выдавать запрос на сохранение файлов"},optionsDirectory:{message:"Имя директории, в которую будут сохранены файлы в одном из перечисленных форматов"},optionsFormats:{message:"Укажите через пробел форматы файлов, которые будут сохранены в указанной директории"},menuDownloadFromCurrentPage:{message:"Скачать файлы с текущей страницы с помощью сервиса SaveFrom.net"},menuUpdateLinks:{message:"Нажмите, если ссылка для скачивания не появляется"},menuDownloadMP3Files:{message:"Скачать все найденные на странице аудиофайлы"},menuDownloadPlaylist:{message:"Формирует и скачивает плейлист с ссылками на аудиофайлы"},menuDownloadPhotos:{message:"Скачать все найденные на странице фотографии"},menuReportBug:{message:"Дайте нам знать, если возникли проблемы"},menuShowOptions:{message:"Вкл./откл. поддерживаемые ресурсы и возможности помощника"},menuEnableExtension:{message:""},menuOpenPoll:{message:'Пожалуйста, оцените качество расширения "SaveFrom.net помощник"'},quality:{message:"Качество"},qualityNote:{message:"Если видео в нужном качестве нет, скачается лучшее из возможного."},filelistTitle:{message:"Список найденных файлов"},filelistInstruction:{message:"['Чтобы скачать все файлы, скопируйте список ссылок и вставьте его в ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'менеджер закачек'}},'. Если у вас не установлен менеджер закачек, рекомендуем установить ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},playlistTitle:{message:"Плейлист"},playlistInstruction:{message:"Сохраненный плейлист можно открыть в плеере для  воспроизведения."},ummySfTitle:{message:"HD или MP3"},ummyMenuItem:{message:"[{span:{}},' с помощью Ummy']"},ummyMenuInfo:{message:"[{p:{append:['Скачивайте HD и MP3 с помощью бесплатной программы', {br:{}}, 'Ummy Video Downloader!']}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Установить'}}]}},{p:{append:['После установки скачивание будет начинаться автоматически', {br:{}}, 'при клике на ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Проверьте настройки браузера"},warningPopupDesc:{message:"Выбор папки при скачивании должен быть отключен."},readMore:{message:"Подробнее..."},noWarning:{message:"Не предупреждать"},cancel:{message:"Отмена"},continue:{message:"Продолжить"},beforeDownloadPopupWarn:{message:"Внимание: отменить или приостановить закачку будет невозможно."},vkInfo:{message:"Параметры"},vkInfoTitle:{message:"Размер файла и битрейт"},vkMp3LinksNotFound:{message:"Не найдены ссылки на MP3 файлы"},vkPhotoLinksNotFound:{message:"Не найдены ссылки на фотографии"},vkDownloadPhotoAlbum:{message:"Скачать альбом"},vkDownloadAllPhotoAlbums:{message:"Скачать все альбомы"},vkFoundPhotos:{message:"Найдено фотографий"},vkNotAvailablePhotos:{message:"%d фото временно не доступно"},vkFoundLinks:{message:"Найдено ссылок"},vkFoundOf:{message:"из"},vkShowAs:{message:"Показать как"},vkListOfLinks:{message:"Список ссылок"},vkListOfLinksInstruction:{message:"['Чтобы скачать все фотографии, скопируйте список ссылок и вставьте его в ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'менеджер закачек'}},'. Если у вас не установлен менеджер закачек, рекомендуем установить ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},vkTableOfThumbnails:{message:"Таблицу эскизов"},vkListOfPhotos:{message:"Список фотографий"},vkListOfPhotosInstruction:{message:"Чтобы скачать фотографию, щелкните на ней левой кнопкой мыши."},vkKbps:{message:"кб/с"},vkFileSizeByte:{message:"Б"},vkFileSizeKByte:{message:"кБ"},vkFileSizeMByte:{message:"МБ"},vkFileSizeGByte:{message:"ГБ"},vkFileSizeTByte:{message:"ТБ"},vkDownloadFromYoutube:{message:"['Скачать: откройте ',{a:{href:'{url}',text:'страницу видео ролика'}},' и нажмите кнопку \"Скачать\" над плеером']"},vkFoundFiles:{message:"Найдено файлов: %d"},shareIn:{message:"Поделиться в %w"},socialDesc:{message:"SaveFrom.net помощник помогает бесплатно скачивать с VK.com, YouTube.com, Odnoklassniki.ru и более 40 других сайтов в 1 клик"},ummyTooltipConfirm:{message:"['Вы уже установили',{br:{}},{img:{}},' Ummy Video Downloader?']"},yes:{message:"Да"},no:{message:"Нет"},tooltipHide:{message:"Больше не показывать это сообщение"},sendToButton:{message:"На телефон"},sendToLinkGoBack:{message:"Вернуться к скачиванию видео"},sendToTextOr:{message:"или"},sendToLoginTitle:{message:"Скачайте видео сразу в ваш телефон!"},sendToLoginText:{message:"Пожалуйста, авторизуйтесь через Google, чтобы отправить выбранное видео"},sendToLoginButton:{message:"Войти"},sendToEmailTitle:{message:"Благодарим за интерес к нашим сервисам!"},sendToEmailText:{message:"Работа над этой функцией все еще кипит. Оставьте, пожалуйста, ваш email и мы вышлем эксклюзивное приглашение, как только запустим сервис!"},sendToEmailButton:{message:"Оставить емейл"},sendToEmailTextComplete:{message:"Спасибо!"},sendToEmailInputError:{message:"Ошибка"},sendToEmailInputPlaceholder:{message:"Введите ваш емейл"},aliwizTopbarTitle:{message:"Покажем <b>надежных продавцов</b> и <b>лучшие цены</b> на Aliexpress!"},aliwizTopbarButton:{message:"Показать"},doNotClosePage:{message:"Не закрывайте страницу, пока файл не будет загружен!"},completed:{message:"Завершено"},somethingWentWrong:{message:"Что-то пошло не так. Попробуйте позже"},downloadInfo:{message:"Информация о скачивании"},prepareDownload:{message:"Подготовка к загрузке"},videoDownloading:{message:"Загрузка видео"},videoDownloaded:{message:"Видео успешно загружено"},minimize:{message:"Свернуть"},minimizeDownloadPanel:{message:"Сверните окно загрузки, мы сообщим вам, когда видео будет загружено"},done:{message:"Готово"},cancelDownload:{message:"Отменить загрузку"},conversionCompleted:{message:"Конвертация завершена"},someFilesNeedConverted:{message:"Некоторые файлы необходимо конвертировать, не закрывайте окно до завершения операции"},errors:{message:"Ошибки"},files:{message:"Файлы"},login:{message:"Войти в Helper Pro"},loginIfPro:{message:"Войдите, если у вас Pro"},activate:{message:"Активировать"},activatePro:{message:"Активировать PRO"},logout:{message:"Выйти"},instruction:{message:"Инструкция"},success:{message:"Успешно"},televzrNotFound:{message:"Televzr не найден"},televzrNotFoundSubMessage:{message:"Попробуйте скачать и открыть Televzr"},authCheck:{message:"Проверка учетных данных"},tzSearchApp:{message:"Поиск Televzr"},tzPreparingToDownload:{message:"Подготовка к загрузке"},tzDownloadStarted:{message:"Добавлено в Загрузки"},msg_no_premium:{message:"Вы не активировали Pro"},msg_not_authorized:{message:"Чтобы использовать pro, вам необходимо войти в систему"},msg_quality_not_found:{message:"Не удалось найти указанное качество"},msg_video_not_found:{message:"Не удалось найти указанное видео"},msg_data_invalid:{message:"Отправлены неверные данные, попробуйте еще раз"},msg_video_exists:{message:"Видео уже скачивается"},loginGmMessage:{message:"Перейти на страницу входа"},loginAlreadyGmMessage:{message:"Вы уже вошли в систему, обновите страницу"},logoutGmMessage:{message:"Вы успешно вышли из системы"},logoutAlreadyGmMessage:{message:"Вы уже вышли из системы, обновите страницу"},howActivateHelperPro:{message:"Как активировать Helper Pro"},video_coming_soon:{message:"Видео скоро начнет скачиваться"},dont_close_page:{message:"Не закрывайте страницу, <br/>это займет несколько минут"},video_coming_ok:{message:"Понятно"},are_you_sure_interrupt_download:{message:"Вы уверены, что хотите прервать загрузку?"},try_pro_button:{message:"ПОПРОБОВАТЬ PRO"},download_button_hold:{message:"Зажмите"},download_button_and_click:{message:"и кликните"},options_management:{message:"Управление сохранением (сортировка файлов по каталогам)"},options_Directory_title:{message:"Директория"},options_Formats_title:{message:"Форматы"},options_Actions_title:{message:"Действия"},options_button_add:{message:"Добавить"},options_button_reset:{message:"Сбросить"},options_button_edit:{message:"Изменить"},options_button_delete:{message:"Удалить"},options_button_cancel:{message:"Отменить"},options_button_save:{message:"Сохранить"},options_no_type_msg:{message:"Типы не определены"},downloadingBox_description:{message:"Если загрузка не началась, нажмите на кнопку скачать"},downloadingBox_fileName:{message:"Название файла"},downloadingBox_button:{message:"Скачать"},downloadingBox_status_complete:{message:"Завершено"},downloadingBox_status_loading:{message:"Загрузка..."},tutorialTooltipText:{message:"Чтобы скачать просто кликните по кнопке"}},tr:{extName:{message:"SaveFrom.net asistan"},extDescription:{message:"Sadece bir tıklama ile YouTube, Facebook, VK.com ve 40'dan fazla siteden dosya indirin."},extNameLite:{message:"SaveFrom.net asistan lite"},extDescriptionLite:{message:"Sadece bir tıklama ile Facebook, VK.com ve 40'dan fazla siteden dosya indirin"},lang:{message:"tr"},titleDefault:{message:"SaveFrom.net asistan"},titleDesabled:{message:"SaveFrom.net asistan devre dışı"},menuEnable:{message:"Etkin"},menuDisable:{message:"Devre dışı"},showButton:{message:"Eklenti düğmesini göster"},copy:{message:"Kopyala"},download:{message:"İndir"},downloadTitle:{message:"Dosyayı indirmek için Alt/Option veya Ctrl tuşuna basılı tutarak bağlantıyı tıklayın."},noLinksFound:{message:"Hiçbir bağlantı bulunamadı"},partnersLinksOnly:{message:"Bağlantı bulunamadı, bağlı kuruluş ürünlerini kullanın"},more:{message:"Daha fazla"},close:{message:"Kapat"},kbps:{message:"kbps"},withoutAudio:{message:"without audio"},size:{message:"boyut"},subtitles:{message:"Alt yazı"},playlist:{message:"Çalma listesi"},filelist:{message:"Dosya listesi"},downloadWholePlaylist:{message:"Tüm çalma listesini indir"},getFileSizeTitle:{message:"Dosya boyutunu al"},getFileSizeFailTitle:{message:"Dosya boyutu alınamadı. Lütfen tekrar deneyiniz."},lmButtonTitle:{message:"Doğrudan bağlantı al"},downloadFromCurrentPage:{message:"SaveFrom.net'e git"},updateLinks:{message:"Bağlantıları yenile"},updateLinksNotification:{message:"Bağlantılar güncellendi"},downloadMP3Files:{message:"Ses dosyalarını indir"},downloadPlaylist:{message:"Çalma listesini indir"},downloadPhotos:{message:"Resimleri indir"},installFullVersion:{message:"Tam versiyonu kur"},disable:{message:"Devre dışı"},showOptions:{message:"Ayarlar"},reportBug:{message:"Hata bildir"},openPoll:{message:"Become better"},disableModule:{message:"Bu web sitesinde devre dışı bırak"},enableModule:{message:"Bu web sitesinde etkinleştir"},enableDisableModule:{message:"Bu sitede etkin/devre dışı"},showHideButton:{message:"Eklenti butonunu göster/gizle"},updateTo:{message:"%d sürümüne güncelle"},aboutPage:{message:"Hakkında"},aboutTitle:{message:"SaveFrom.net Asistan"},aboutVersion:{message:"Versiyon"},aboutDescription:{message:"Kullanıcıların, Dailymotion.com, YouTube.com, VK.com ve diğerleri de dahil olmak üzere 40'dan fazla web sitesinden dosya indirmek için doğrudan bağlantılar almalarını sağlar."},aboutDescriptionLite:{message:"Kullanıcıların, Dailymotion.com, VK.com ve diğerleri de dahil olmak üzere 40'dan fazla web sitesinden dosya indirmek için doğrudan bağlantılar almalarını sağlar."},aboutSupported:{message:"Desteklenen kaynaklar"},homePage:{message:"Ana Sayfa"},optionsTitle:{message:"SaveFrom.net Asistan - Tercihler"},optionsHandleLinks:{message:"Linkleri taşı"},optionsFfmpegEnabled:{message:"ffmpeg için dönüştürücü (Alpha version)"},optionsMediaHostings:{message:"Medya paylaşıma"},optionsModules:{message:"Modüller"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Bağlantıları gizle"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Bit hızını anlık olarak göster"},optionsSovetnikEnabled:{message:"Advisor"},optionsShowUmmyInfo:{message:"UVD için ipuçlarını göster"},optionsGmNativeDownload:{message:"Gelişmiş indirme modu"},optionsShowUmmyBtn:{message:"Ummy düğmesini göster"},optionsAviaBarEnabled:{message:"Ucuz uçak bileti arama"},optionsSaveAsDialog:{message:"Dosyaların nereye kaydedileceğini her seferinde sor"},optionsDirectory:{message:"Listelenen formatlardan birinin dosyalarının kaydedileceği dizinin adı."},optionsFormats:{message:"Belirtilen dizine kaydedilecek dosya formatlarını boşlukla ayırarak belirtiniz"},menuDownloadFromCurrentPage:{message:"SaveFrom.net'i kullanarak geçerli sayfadan dosya indirin"},menuUpdateLinks:{message:"Download düğmesi görünmüyorsa tıklayın"},menuDownloadMP3Files:{message:"Geçerli sayfada bulunan tüm ses dosyalarını indirin"},menuDownloadPlaylist:{message:"Ses dosyalarından oluşan bir çalma listesi oluşturur ve indirir"},menuDownloadPhotos:{message:"Geçerli sayfada bulunan tüm resimleri indirin"},menuReportBug:{message:"Herhangi bir sorun olması durumunda bize bildirin"},menuShowOptions:{message:"Desteklenen kaynakları ve Helper seçeneklerini AÇ/KAPAT"},menuEnableExtension:{message:""},menuOpenPoll:{message:""},quality:{message:"Kalite"},qualityNote:{message:"Herhangi bir seçilebilir kalitenin olmaması durumunda mevcut olan en iyi video indirilecektir."},filelistTitle:{message:"Bulunan dosyalarını listesi"},filelistInstruction:{message:"['Tüm dosyalarını indirmek için bağlantı listesini kopyalayın ve ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'indirme yöneticisine'}},' yapıştırın. Kurulu bir indirme yöneticiniz yoksa ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},' yüklemenizi tavsiye ederiz.']"},playlistTitle:{message:"Çalma Listesi"},playlistInstruction:{message:"Artık kaydedilen çalma listenizi yürütmek için müzik çalarınızda açabilirsiniz."},ummySfTitle:{message:"HD veya MP3"},ummyMenuItem:{message:"['Ummy ile ',{span:{}}]"},ummyMenuInfo:{message:"[{p:{text:'Ummy Video İndirici\\'yi yükleyin ve en sevdiğiniz HD videoları ya da MP3\\'leri hemen indirin.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'İndir'}}]}},{p:{append:['Kurulumdan sonra ',{img:{src:'#'}},' simgesine tıklayarak dosya indirme işlemini otomatik olarak başlatabilirsiniz.']}}]"},warningPopupTitle:{message:"Tarayıcı ayarlarını kontrol edin"},warningPopupDesc:{message:'"Dosyaların nereye kaydedileceğini her seferinde sor" seçeneği kapalı olmalıdır.'},readMore:{message:"Daha fazla"},noWarning:{message:"Bildirme"},cancel:{message:"İptal"},continue:{message:"Devam"},beforeDownloadPopupWarn:{message:"Uyarı! İndirme işlemi iptal edilemez ya da ertelenemez."},vkInfo:{message:"Bilgi"},vkInfoTitle:{message:"Dosya boyutu ve bit hızı"},vkMp3LinksNotFound:{message:"MP3 dosyaları için bağlantılar bulunamıyor"},vkPhotoLinksNotFound:{message:"Fotoğraflar bulunamadı"},vkDownloadPhotoAlbum:{message:"Albümü indir"},vkDownloadAllPhotoAlbums:{message:"Tüm albümleri indir"},vkFoundPhotos:{message:"Bulunan fotoğraflar"},vkNotAvailablePhotos:{message:"%d resim geçici olarak kullanılamıyor"},vkFoundLinks:{message:"Bulunan bağlantılar"},vkFoundOf:{message:"den"},vkShowAs:{message:"Olarak göster"},vkListOfLinks:{message:"Bağlantı listesi"},vkListOfLinksInstruction:{message:"['Tüm fotoğrafları indirmek için bağlantı listesini kopyalayın ve ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'indirme yöneticisine'}},' yapıştırın. Kurulu bir indirme yöneticiniz yoksa ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},' yüklemenizi tavsiye ederiz.']"},vkTableOfThumbnails:{message:"Küçükk resimler tablosu"},vkListOfPhotos:{message:"Fotoğraf listesi"},vkListOfPhotosInstruction:{message:"İndirmek için fotoğrafın üzerine tıklayın."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['İndirme: ',{a:{href:'{url}',text:'video sayfasını'}},' açın ve oynatıcı üzerindeki \"İndir\" dümesine basın']"},vkFoundFiles:{message:"Bulunan dosyalar: %d"},shareIn:{message:"%w üzerinden paylaş"},socialDesc:{message:"SaveFrom.net Helper, sadece bir tıklama ile YouTube.com, Facebook.com, VK.com ve 40'dan fazla siteden ücretsiz olarak dosya indirmenizi sağlar."},ummyTooltipConfirm:{message:"[{img:{}},' Ummy Video Downloader programını daha önce yüklediniz mi?']"},yes:{message:"Evet"},no:{message:"Hayır"},tooltipHide:{message:"Bu mesajı tekrar gösterme"},sendToButton:{message:"Kirim ke ponsel"},sendToLinkGoBack:{message:"Kembali ke pengunduhan video"},sendToTextOr:{message:"atau"},sendToLoginTitle:{message:"Transfer video langsung ke ponsel Anda!"},sendToLoginText:{message:"Silakan Masuk dengan Google untuk mentransfer video yang dipilih"},sendToLoginButton:{message:"Masuk"},sendToEmailTitle:{message:"Terima kasih atas minat Anda!"},sendToEmailText:{message:"Pekerjaan pada fitur ini sedang berlangsung. Kirimkan email kami dan kami akan mengirimkan undangan begitu fitur siap."},sendToEmailButton:{message:"Kirim email"},sendToEmailTextComplete:{message:"Terima kasih!"},sendToEmailInputError:{message:"Kesalahan"},sendToEmailInputPlaceholder:{message:"Ketik email Anda di sini"},aliwizTopbarTitle:{message:"Asisten Aliexpress menampilkan <b>harga terbaik</b> & <b>penjual terpercaya!</b>"},aliwizTopbarButton:{message:"Dapatkan secara gratis"},doNotClosePage:{message:"Jangan tutup halaman ini sampai file selesai diunduh"},completed:{message:"Selesai"},somethingWentWrong:{message:"Terjadi kesalahan. Coba lagi nanti."},downloadInfo:{message:"Informasi Unduhan"},prepareDownload:{message:"Menyiapkan untuk mengunduh"},videoDownloading:{message:"Mengunduh video"},videoDownloaded:{message:"Video berhasil diunggah"},minimize:{message:"Kecilkan"},minimizeDownloadPanel:{message:"Kecilkan jendela unduhan, kami akan memberi tahu Anda ketika video telah diunduh"},done:{message:"Selesai"},cancelDownload:{message:"Batalkan unduhan"},conversionCompleted:{message:"Konversi selesai"},someFilesNeedConverted:{message:"Beberapa file perlu dikonversi, jangan tutup jendela sampai konversi selesai."},errors:{message:"Kesalahan"},files:{message:"File"},login:{message:"Masuk ke Helper Pro"},loginIfPro:{message:"Masuk jika Anda memiliki Pro"},activate:{message:"Aktifkan"},activatePro:{message:"Aktifkan PRO"},logout:{message:"Keluar"},instruction:{message:"Instruksi penggunaan"},success:{message:"Berhasil"},televzrNotFound:{message:"Televzr tidak ditemukan"},televzrNotFoundSubMessage:{message:"Coba unduh dan buka Televzr"},authCheck:{message:"Memeriksa kredensial"},tzSearchApp:{message:"Cari Televzr"},tzPreparingToDownload:{message:"Menyiapkan untuk mengunduh"},tzDownloadStarted:{message:"Ditambahkan ke unduhan"},msg_no_premium:{message:"Anda belum mengaktifkan Pro"},msg_not_authorized:{message:"Untuk menggunakan pro, Anda perlu masuk"},msg_quality_not_found:{message:"Tidak dapat menemukan kualitas yang ditentukan"},msg_video_not_found:{message:"Tidak dapat menemukan video yang ditentukan"},msg_data_invalid:{message:"Data yang tidak valid dikirimkan, silakan coba lagi"},msg_video_exists:{message:"Video sudah sedang diunduh"},loginGmMessage:{message:"Pergi ke halaman masuk"},loginAlreadyGmMessage:{message:"Anda sudah masuk, harap segarkan halaman"},logoutGmMessage:{message:"Anda telah berhasil keluar"},logoutAlreadyGmMessage:{message:"Anda sudah keluar, segarkan halaman"},howActivateHelperPro:{message:"Cara mengaktifkan Helper Pro"},video_coming_soon:{message:"Video segera mulai diunduh"},dont_close_page:{message:"Jangan tutup halaman ini, <br/> ini akan memakan beberapa menit"},video_coming_ok:{message:"Lanjutkan"},are_you_sure_interrupt_download:{message:"Apakah Anda yakin ingin menghentikan unduhan?"},try_pro_button:{message:"PRO'YU DENEYİN"},download_button_hold:{message:"Basılı Tutun"},download_button_and_click:{message:"ve tıklayın"},options_management:{message:"Depo Yönetimi (Dosyaları dizinlere göre sıralama)"},options_Directory_title:{message:"Dizin"},options_Formats_title:{message:"Formatlar"},options_Actions_title:{message:"Hareketler"},options_button_add:{message:"Ekle"},options_button_reset:{message:"Sıfırla"},options_button_edit:{message:"Düzenle"},options_button_delete:{message:"Sil"},options_button_cancel:{message:"İptal"},options_button_save:{message:"Kaydet"},options_no_type_msg:{message:"Herhangi bir tür atanmamış"},downloadingBox_description:{message:"İndirme başlamadıysa İndir düğmesine tıklayın"},downloadingBox_fileName:{message:"Dosya adı"},downloadingBox_button:{message:"İndir"},downloadingBox_status_complete:{message:"Tamamlandı"},downloadingBox_status_loading:{message:"Yükleniyor..."},tutorialTooltipText:{message:"İndirmek için sadece düğmeye tıklayın"}},uk:{extName:{message:"SaveFrom.net помічник"},extDescription:{message:"Завантажуйте з «ВКонтакте», YouTube, Facebook і ще 40 сайтів за 1 клік."},extNameLite:{message:"SaveFrom.net помічник lite"},extDescriptionLite:{message:"Завантажуйте з «ВКонтакте», YouTube, Facebook і ще 40 сайтів за 1 клік."},lang:{message:"uk"},titleDefault:{message:"SaveFrom.net помічник"},titleDesabled:{message:"SaveFrom.net помічник вимкнений"},menuEnable:{message:"Увімкнути"},menuDisable:{message:"Вимкнути"},showButton:{message:"Показувати кнопку розширення"},copy:{message:"Копіювати"},download:{message:"Завантажити"},downloadTitle:{message:"Натисніть на посилання, утримуючи клавішу Alt чи Ctrl, щоб зберегти файл."},noLinksFound:{message:"Не вдалося знайти посилання"},partnersLinksOnly:{message:"Посилання не знайдено, використовуйте партнерські продукти"},more:{message:"Ще"},close:{message:"Закрити"},kbps:{message:"кб/с"},withoutAudio:{message:"без аудіо"},size:{message:"розмір"},subtitles:{message:"Субтитри"},playlist:{message:"Плейліст"},filelist:{message:"Список файлів"},downloadWholePlaylist:{message:"Завантажити весь плейліст"},getFileSizeTitle:{message:"Визначити розмір файлу"},getFileSizeFailTitle:{message:"Не вдалося визначити розмір файлу. Спробуйте ще раз."},lmButtonTitle:{message:"Отримай пряме посилання"},downloadFromCurrentPage:{message:"Перейти на SaveFrom.net"},updateLinks:{message:"Відновити посилання"},updateLinksNotification:{message:"Посилання оновлені"},downloadMP3Files:{message:"Скачати аудіо файли"},downloadPlaylist:{message:"Скачати плейлист"},downloadPhotos:{message:"Скачати фотографії"},installFullVersion:{message:"Встановити повну версію"},disable:{message:"Вимкнути"},showOptions:{message:"Налаштування"},reportBug:{message:"Повідомити про помилку"},openPoll:{message:"Стати краще"},disableModule:{message:"Вимкнути на цьому сайті"},enableModule:{message:"Увімкнути на цьому сайті"},enableDisableModule:{message:"Вкл./вимк. на цьому сайті"},showHideButton:{message:"Показ./скр. кнопку розширення"},updateTo:{message:"Оновити до %d"},aboutPage:{message:"Про розширення"},aboutTitle:{message:"SaveFrom.net помічник"},aboutVersion:{message:"Версія"},aboutDescription:{message:"Дозволяє отримувати прямі посилання для завантаження з понад 40 сайтів, серед яких VK.com, YouTube.com та інші."},aboutDescriptionLite:{message:"Дозволяє отримувати прямі посилання для завантаження з понад 40 сайтів, серед яких VK.com та інші."},aboutSupported:{message:"Ресурси, які підтримуються"},homePage:{message:"Домашня сторінка"},optionsTitle:{message:"SaveFrom.net помічник - Налаштування"},optionsHandleLinks:{message:"Обробляти посилання"},optionsFfmpegEnabled:{message:"Конвертер для ffmpeg (Alpha version)"},optionsMediaHostings:{message:"На медіахостинги"},optionsModules:{message:"Модулі"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Сховати посилання"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"ВКонтакте"},optionsOdnoklassniki:{message:"Одноклассники"},optionsMailru:{message:"Мой мир"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Показувати бітрейт одразу"},optionsSovetnikEnabled:{message:"Порадник"},optionsShowUmmyInfo:{message:"Показувати підказки для Ummy Video Downloader"},optionsGmNativeDownload:{message:"Розширений режим закачування"},optionsShowUmmyBtn:{message:"Відображати кнопку Ummy"},optionsAviaBarEnabled:{message:"Пошук дешевих авіабілетів"},optionsSaveAsDialog:{message:"Завжди запитувати де зберегти файли"},optionsDirectory:{message:"Назва каталогу, в який будуть збережені файли в одному з перерахованих форматів."},optionsFormats:{message:"Вкажіть, розділені пробілом, формати файлів, які будуть збережені у вказану директорію"},menuDownloadFromCurrentPage:{message:"Завантажити файли з поточної сторінки за допомогою сервісу SaveFrom.net"},menuUpdateLinks:{message:"Натисніть, якщо посилання для скачування не з'являється"},menuDownloadMP3Files:{message:"Завантажити всі знайдені на сторінці аудіофайли"},menuDownloadPlaylist:{message:"Формує та завантажує плейлист з посиланнями на аудіофайли"},menuDownloadPhotos:{message:"Завантажити всі знайдені на сторінці фотографії"},menuReportBug:{message:"Дайте нам знати, якщо виникли проблеми"},menuShowOptions:{message:"Вкл. / Вимк. підтримувані ресурси і можливості помічника"},menuEnableExtension:{message:""},menuOpenPoll:{message:'Будь ласка, оцініть якість розширення "SaveFrom.net помічник"'},quality:{message:"Якість"},qualityNote:{message:"Якщо відео в потрібній якості немає, скачається найкраще з можливого."},filelistTitle:{message:"Список знайдених файлів"},filelistInstruction:{message:"['Щоб завантажити усі файли, скопіюйте список посилань і вставте його у ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'менеджер завантажень'}},'. Якщо у вас не встановлений менеджер завантажень, рекомендуємо встановити ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},playlistTitle:{message:"Плейліст"},playlistInstruction:{message:"Збережений плейліст можна відкрити у плеєрі для відтворення."},ummySfTitle:{message:"HD або MP3"},ummyMenuItem:{message:"[{span:{}},' з домомогою Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Встановіть безкоштовний Ummy Video Downloader і завантажуйте свої улюблені відео в HD або в MP3.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'СКАЧАТИ'}}]}},{p:{append:['Після встановлення при кліці на ',{img:{src:'#'}},' закачка буде починатися автоматично.']}}]"},warningPopupTitle:{message:"Перевірте налаштування браузера"},warningPopupDesc:{message:"Вибір папки при скачуванні повинен бути відключений."},readMore:{message:"Детальніше..."},noWarning:{message:"Не попереджати"},cancel:{message:"Скасування"},continue:{message:"Продовжити"},beforeDownloadPopupWarn:{message:"Увага: скасувати або призупинити завантаження буде неможливо."},vkInfo:{message:"Параметри"},vkInfoTitle:{message:"Розмір файлу і бітрейт"},vkMp3LinksNotFound:{message:"Не знайдено посилань на MP3-файли"},vkPhotoLinksNotFound:{message:"Не знайдено посилань на фотографії"},vkDownloadPhotoAlbum:{message:"Завантажити альбом"},vkDownloadAllPhotoAlbums:{message:"Завантажити усі альбоми"},vkFoundPhotos:{message:"Знайдено фотографій"},vkNotAvailablePhotos:{message:"%d фото тимчасово недоступно"},vkFoundLinks:{message:"Знайдено посилань"},vkFoundOf:{message:"з"},vkShowAs:{message:"Показати як"},vkListOfLinks:{message:"Список посилань"},vkListOfLinksInstruction:{message:"['Щоб завантажити усі фотографії, скопіюйте список посилань і вставте його у ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'менеджер завантажень'}},'. Якщо у вас не встановлений менеджер завантажень, рекомендуємо встановити ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},vkTableOfThumbnails:{message:"Таблицю ескізів"},vkListOfPhotos:{message:"Список фотографій"},vkListOfPhotosInstruction:{message:"Щоб завантажити фотографію, натисніть на неї лівою кнопкою миші."},vkKbps:{message:"кб/с"},vkFileSizeByte:{message:"Б"},vkFileSizeKByte:{message:"кБ"},vkFileSizeMByte:{message:"МБ"},vkFileSizeGByte:{message:"ГБ"},vkFileSizeTByte:{message:"ТБ"},vkDownloadFromYoutube:{message:"['Завантажити: відкрийте ',{a:{href:'{url}',text:'сторінку відео-ролика'}},' і натисніть кнопку \"Завантажити\" над плеєром']"},vkFoundFiles:{message:"Знайдено файлів: %d"},shareIn:{message:"Поділитися в %w"},socialDesc:{message:"SaveFrom.net помічник дає вам можливість безкоштовно завантажувати файли з YouTube.com, Facebook.com, VK.com та більше 40 інших сайтів лише одним кліком"},ummyTooltipConfirm:{message:"['Ви вже встановили',{br:{}},{img:{}},' Ummy Video Downloader?']"},yes:{message:"Так"},no:{message:"Ні"},tooltipHide:{message:"Більше не показувати це повідомлення"},sendToButton:{message:"На телефон"},sendToLinkGoBack:{message:"Повернутися до завантаження відео"},sendToTextOr:{message:"або"},sendToLoginTitle:{message:"Передача відео безпосередньо на ваш мобільний пристрій!"},sendToLoginText:{message:"Будь ласка, увійдіть за допомогою Google, щоб передати обране відео"},sendToLoginButton:{message:"Увійти"},sendToEmailTitle:{message:"Дякуємо за ваш інтерес!"},sendToEmailText:{message:"Робота над цією функцією вже триває. Будь ласка, надішліть нам свою електронну адресу, і ми надішлемо вам запрошення, як тільки функція буде готова."},sendToEmailButton:{message:"Надіслати електронний лист"},sendToEmailTextComplete:{message:"Дякуємо!"},sendToEmailInputError:{message:"Помилка"},sendToEmailInputPlaceholder:{message:"Введіть свою електронну адресу тут"},aliwizTopbarTitle:{message:"Асистент Aliexpress показує <b>найкращу ціну</b> та <b>добрих продавців!</b>"},aliwizTopbarButton:{message:"Отримати безкоштовно"},doNotClosePage:{message:"Не закривайте сторінку, поки файл не завантажиться"},completed:{message:"Завершено"},somethingWentWrong:{message:"Виникла помилка. Спробуйте пізніше."},downloadInfo:{message:"Інформація про завантаження"},prepareDownload:{message:"Підготовка до завантаження"},videoDownloading:{message:"Завантаження відео"},videoDownloaded:{message:"Відео успішно завантажено"},minimize:{message:"Згорнути"},minimizeDownloadPanel:{message:"Зменшити вікно завантаження, ми повідомимо вас, коли відео буде завантажено"},done:{message:"Готово"},cancelDownload:{message:"Скасувати завантаження"},conversionCompleted:{message:"Конвертація завершена"},someFilesNeedConverted:{message:"Деякі файли потребують конвертації, не закривайте вікно до завершення конвертації."},errors:{message:"Помилки"},files:{message:"Файли"},login:{message:"Увійдіть до Helper Pro"},loginIfPro:{message:"Увійдіть, якщо у вас є Pro"},activate:{message:"Активувати"},activatePro:{message:"Активувати PRO"},logout:{message:"Вийти"},instruction:{message:"Інструкції щодо використання"},success:{message:"Успішно"},televzrNotFound:{message:"Televzr не знайдено"},televzrNotFoundSubMessage:{message:"Спробуйте завантажити та відкрити Televzr"},authCheck:{message:"Перевірка облікових даних"},tzSearchApp:{message:"Пошук Televzr"},tzPreparingToDownload:{message:"Підготовка до завантаження"},tzDownloadStarted:{message:"Додано до завантаження"},msg_no_premium:{message:"Ви не активували Pro"},msg_not_authorized:{message:"Для використання Pro потрібно увійти"},msg_quality_not_found:{message:"Не вдалося знайти зазначену якість"},msg_video_not_found:{message:"Не вдалося знайти зазначене відео"},msg_data_invalid:{message:"Відправлені недійсні дані, спробуйте знову"},msg_video_exists:{message:"Відео вже завантажується"},loginGmMessage:{message:"Перейти на сторінку входу"},loginAlreadyGmMessage:{message:"Ви вже увійшли, оновіть сторінку"},logoutGmMessage:{message:"Ви успішно вийшли"},logoutAlreadyGmMessage:{message:"Ви вже вийшли, оновіть сторінку"},howActivateHelperPro:{message:"Як активувати Helper Pro"},video_coming_soon:{message:"Відео скоро почнеться завантажуватися"},dont_close_page:{message:"Не закривайте сторінку, <br/> це займе кілька хвилин"},video_coming_ok:{message:"Продовжити"},are_you_sure_interrupt_download:{message:"Ви впевнені, що хочете перервати завантаження?"},try_pro_button:{message:"СПРОБУВАТИ PRO"},download_button_hold:{message:"Тримати"},download_button_and_click:{message:"та клікнути"},options_management:{message:"Керування збереженням (Сортування файлів за каталогами)"},options_Directory_title:{message:"Каталог"},options_Formats_title:{message:"Формати"},options_Actions_title:{message:"Дії"},options_button_add:{message:"Додати"},options_button_reset:{message:"Скинути"},options_button_edit:{message:"Редагувати"},options_button_delete:{message:"Видалити"},options_button_cancel:{message:"Скасувати"},options_button_save:{message:"Зберегти"},options_no_type_msg:{message:"Не призначено жодного типу"},downloadingBox_description:{message:"Якщо завантаження не розпочалося, натисніть кнопку Завантажити"},downloadingBox_fileName:{message:"Ім'я файлу"},downloadingBox_button:{message:"Завантажити"},downloadingBox_status_complete:{message:"Завершено"},downloadingBox_status_loading:{message:"Завантаження..."},tutorialTooltipText:{message:"Для завантаження просто клацніть на кнопці"}},zh:{extName:{message:"SaveFrom.net助手"},extDescription:{message:"一键下载来自VKontakte、YouTube、Odnoklassniki等40多个网站的内容。"},extNameLite:{message:"SaveFrom.net助手 Lite"},extDescriptionLite:{message:"一键下载来自VKontakte、Odnoklassniki等40多个网站的内容。"},lang:{message:"zh"},titleDefault:{message:"SaveFrom.net助手"},titleDesabled:{message:"已停用SaveFrom.net助手"},menuEnable:{message:"启用"},menuDisable:{message:"停用"},showButton:{message:"显示扩展按钮"},copy:{message:"复制"},download:{message:"下载"},downloadTitle:{message:"按住Alt或Ctrl键点击链接以保存文件。"},noLinksFound:{message:"未找到链接"},partnersLinksOnly:{message:"未找到链接,请使用合作产品"},more:{message:"更多"},close:{message:"关闭"},kbps:{message:"千比特/秒"},withoutAudio:{message:"无音频"},size:{message:"大小"},subtitles:{message:"字幕"},playlist:{message:"播放列表"},filelist:{message:"文件列表"},downloadWholePlaylist:{message:"下载整个播放列表"},getFileSizeTitle:{message:"获取文件大小"},getFileSizeFailTitle:{message:"无法获取文件大小,请重试。"},lmButtonTitle:{message:"获取直链"},downloadFromCurrentPage:{message:"前往SaveFrom.net下载"},updateLinks:{message:"更新链接"},updateLinksNotification:{message:"链接已更新"},downloadMP3Files:{message:"下载音频文件"},downloadPlaylist:{message:"下载播放列表"},downloadPhotos:{message:"下载照片"},installFullVersion:{message:"安装完整版"},disable:{message:"停用"},showOptions:{message:"选项"},reportBug:{message:"报告问题"},openPoll:{message:"改进扩展"},disableModule:{message:"在此网站上停用"},enableModule:{message:"在此网站上启用"},enableDisableModule:{message:"在此网站上启用/停用"},showHideButton:{message:"显示/隐藏扩展按钮"},updateTo:{message:"升级至%d"},aboutPage:{message:"关于扩展"},aboutTitle:{message:"SaveFrom.net助手"},aboutVersion:{message:"版本"},aboutDescription:{message:"允许您从VK.com、YouTube.com等40多个网站下载直链。"},aboutDescriptionLite:{message:"允许您从VK.com、Vimeo等40多个网站下载直链。"},aboutSupported:{message:"支持的资源"},homePage:{message:"主页"},optionsTitle:{message:"SaveFrom.net助手 - 选项"},optionsHandleLinks:{message:"处理链接"},optionsFfmpegEnabled:{message:"启用ffmpeg转换器(Alpha版本)"},optionsMediaHostings:{message:"媒体托管"},optionsModules:{message:"模块"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"隐藏链接"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VKontakte"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"立即显示比特率"},optionsSovetnikEnabled:{message:"助手"},optionsShowUmmyInfo:{message:"显示Ummy Video Downloader提示"},optionsGmNativeDownload:{message:"高级下载模式"},optionsShowUmmyBtn:{message:"显示Ummy按钮"},optionsAviaBarEnabled:{message:"搜索廉价机票"},optionsSaveAsDialog:{message:"始终提示文件保存请求"},optionsDirectory:{message:"保存文件的目录名称,支持的格式:"},optionsFormats:{message:"通过空格分隔的要在指定目录中保存的文件格式"},menuDownloadFromCurrentPage:{message:"使用SaveFrom.net服务下载当前页面的文件"},menuUpdateLinks:{message:"如果下载链接未显示,请点击此处"},menuDownloadMP3Files:{message:"下载页面上的所有音频文件"},menuDownloadPlaylist:{message:"生成并下载包含音频文件链接的播放列表"},menuDownloadPhotos:{message:"下载页面上的所有照片"},menuReportBug:{message:"如果遇到问题,请告诉我们"},menuShowOptions:{message:"启用/禁用支持的资源和助手功能"},menuEnableExtension:{message:""},menuOpenPoll:{message:"请评价“SaveFrom.net助手”的质量"},quality:{message:"质量"},qualityNote:{message:"如果没有所需质量的视频,将下载最佳质量的视频。"},filelistTitle:{message:"已找到文件列表"},filelistInstruction:{message:"['要下载所有文件,请复制链接列表并粘贴到',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'下载管理器'}},'中。如果您没有安装下载管理器,建议安装',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'。']"},playlistTitle:{message:"播放列表"},playlistInstruction:{message:"保存的播放列表可以在播放器中打开进行播放。"},ummySfTitle:{message:"高清或MP3"},ummyMenuItem:{message:"[{span:{}},' 使用Ummy下载']"},ummyMenuInfo:{message:"[{p:{append:['使用免费的',{br:{}},'Ummy Video Downloader软件下载高清和MP3。']}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'安装'}}]}},{p:{append:['安装后,单击',{img:{src:'#'}},'将自动开始下载']}}]"},warningPopupTitle:{message:"检查浏览器设置"},warningPopupDesc:{message:"下载时必须禁用文件夹选择。"},readMore:{message:"了解更多..."},noWarning:{message:"不再警告"},cancel:{message:"取消"},continue:{message:"继续"},beforeDownloadPopupWarn:{message:"注意:无法取消或暂停下载。"},vkInfo:{message:"参数"},vkInfoTitle:{message:"文件大小和比特率"},vkMp3LinksNotFound:{message:"未找到MP3链接"},vkPhotoLinksNotFound:{message:"未找到照片链接"},vkDownloadPhotoAlbum:{message:"下载相册"},vkDownloadAllPhotoAlbums:{message:"下载所有相册"},vkFoundPhotos:{message:"找到照片"},vkNotAvailablePhotos:{message:"%d张照片当前不可用"},vkFoundLinks:{message:"找到链接"},vkFoundOf:{message:"的链接"},vkShowAs:{message:"显示为"},vkListOfLinks:{message:"链接列表"},vkListOfLinksInstruction:{message:"['要下载所有照片,请复制链接列表并粘贴到',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'下载管理器'}},'中。如果您没有安装下载管理器,建议安装',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'。']"},vkTableOfThumbnails:{message:"缩略图表格"},vkListOfPhotos:{message:"照片列表"},vkListOfPhotosInstruction:{message:"要下载照片,请单击照片以打开它。"},vkKbps:{message:"千比特/秒"},vkFileSizeByte:{message:"字节"},vkFileSizeKByte:{message:"千字节"},vkFileSizeMByte:{message:"兆字节"},vkFileSizeGByte:{message:"千兆字节"},vkFileSizeTByte:{message:"太字节"},vkDownloadFromYoutube:{message:"['要下载视频,请打开',{a:{href:'{url}',text:'视频页面'}},'并点击播放器上方的“下载”按钮。']"},vkFoundFiles:{message:"找到%d个文件"},shareIn:{message:"分享到%w"},socialDesc:{message:"SaveFrom.net助手免费帮助您从VK.com、YouTube.com、Odnoklassniki.ru等40多个网站下载内容。"},ummyTooltipConfirm:{message:"['您是否已安装',{br:{}},{img:{}},'Ummy Video Downloader?']"},yes:{message:"是"},no:{message:"否"},tooltipHide:{message:"不再显示此消息"},sendToButton:{message:"发送到手机"},sendToLinkGoBack:{message:"返回视频下载"},sendToTextOr:{message:"或"},sendToLoginTitle:{message:"立即下载到您的手机!"},sendToLoginText:{message:"请通过Google登录以发送所选视频"},sendToLoginButton:{message:"登录"},sendToEmailTitle:{message:"感谢您对我们服务的关注!"},sendToEmailText:{message:"我们正在积极开发此功能。请留下您的电子邮件地址,我们将在服务推出时发送独家邀请!"},sendToEmailButton:{message:"留下邮箱"},sendToEmailTextComplete:{message:"谢谢!"},sendToEmailInputError:{message:"错误"},sendToEmailInputPlaceholder:{message:"请输入您的邮箱"},aliwizTopbarTitle:{message:"显示 <b>可靠的卖家</b> 和 <b>最佳价格</b> 在Aliexpress上!"},aliwizTopbarButton:{message:"显示"},doNotClosePage:{message:"在文件下载完成之前,请不要关闭页面!"},completed:{message:"已完成"},somethingWentWrong:{message:"出了点问题,请稍后再试"},downloadInfo:{message:"下载信息"},prepareDownload:{message:"准备下载"},videoDownloading:{message:"视频下载中"},videoDownloaded:{message:"视频下载成功"},minimize:{message:"最小化"},minimizeDownloadPanel:{message:"最小化下载面板,我们将通知您下载完成时"},done:{message:"完成"},cancelDownload:{message:"取消下载"},conversionCompleted:{message:"转换完成"},someFilesNeedConverted:{message:"一些文件需要进行转换,请在操作完成前不要关闭窗口"},errors:{message:"错误"},files:{message:"文件"},login:{message:"登录 Helper Pro"},loginIfPro:{message:"如果您是Pro用户,请登录"},activate:{message:"激活"},activatePro:{message:"激活 PRO"},logout:{message:"登出"},instruction:{message:"使用说明"},success:{message:"成功"},televzrNotFound:{message:"Televzr 未找到"},televzrNotFoundSubMessage:{message:"尝试下载并打开 Televzr"},authCheck:{message:"身份验证检查"},tzSearchApp:{message:"搜索 Televzr"},tzPreparingToDownload:{message:"准备下载"},tzDownloadStarted:{message:"已添加到下载"},msg_no_premium:{message:"您尚未激活 Pro 版"},msg_not_authorized:{message:"要使用 Pro 功能,请登录系统"},msg_quality_not_found:{message:"未找到指定的质量"},msg_video_not_found:{message:"未找到指定的视频"},msg_data_invalid:{message:"发送的数据无效,请重试"},msg_video_exists:{message:"视频已在下载中"},loginGmMessage:{message:"前往登录页面"},loginAlreadyGmMessage:{message:"您已登录,请刷新页面"},logoutGmMessage:{message:"您已成功登出"},logoutAlreadyGmMessage:{message:"您已登出,请刷新页面"},howActivateHelperPro:{message:"如何激活 Helper Pro"},video_coming_soon:{message:"视频即将开始下载"},dont_close_page:{message:"请勿关闭页面,这将需要一些时间"},video_coming_ok:{message:"知道了"},are_you_sure_interrupt_download:{message:"您确定要中断下载吗?"},try_pro_button:{message:"尝试 Pro 版"},download_button_hold:{message:"按住"},download_button_and_click:{message:"然后点击"},options_management:{message:"管理保存方式(按目录排序文件)"},options_Directory_title:{message:"目录"},options_Formats_title:{message:"格式"},options_Actions_title:{message:"操作"},options_button_add:{message:"添加"},options_button_reset:{message:"重置"},options_button_edit:{message:"编辑"},options_button_delete:{message:"删除"},options_button_cancel:{message:"取消"},options_button_save:{message:"保存"},options_no_type_msg:{message:"未定义类型"},downloadingBox_description:{message:"如果下载未开始,请点击下载按钮"},downloadingBox_fileName:{message:"文件名"},downloadingBox_button:{message:"下载"},downloadingBox_status_complete:{message:"已完成"},downloadingBox_status_loading:{message:"正在下载..."},tutorialTooltipText:{message:"要下载,请简单点击按钮"}}},e}return Object(f.a)(t,e),Object(u.a)(t,[{key:"getLocale",value:function(){var e=v(),t=y(e.join(","),Object.keys(this.localeMap)),n=this.localeMap[this.defaultLocale];return t&&(n=Object.assign({},n,this.localeMap[t[0]])),n}}]),t}(e)},A=n(12),w=["responseStatus","responseOk","responseType","requestPrefix"];function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var M=Object(A.default)("mono:router"),E=function(e){function t(){var e;return Object(s.a)(this,t),(e=O(this,t)).monoInstances=[],e.contentScripts=[{matches:"^(?:https?|file|ftp)://[^\\/]*\\.vimeo\\.com/.*$|^(?:https?|file|ftp)://vimeo\\.com/.*$",run_at:"document_end",all_frames:!0,js:[0,1]},{matches:"^(?:https?|file|ftp)://[^\\/]*/.*$",include_globs:"^http://dailymotion\\.[^\\/]*/.*$|^http://[^\\/]*\\.dailymotion\\.[^\\/]*/.*$|^https://dailymotion\\.[^\\/]*/.*$|^https://[^\\/]*\\.dailymotion\\.[^\\/]*/.*$",run_at:"document_end",all_frames:!0,js:[0,2]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.youtube\\.com/.*$|^(?:https?|file|ftp)://youtube\\.com/.*$",exclude_matches:"^(?:https?|file|ftp)://accounts\\.youtube\\.com/.*$",run_at:"document_end",all_frames:!0,js:[0,3]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.soundcloud\\.com/.*$|^(?:https?|file|ftp)://soundcloud\\.com/.*$",run_at:"document_end",js:[0,4]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.vk\\.com/.*$|^(?:https?|file|ftp)://vk\\.com/.*$|^(?:https?|file|ftp)://[^\\/]*\\.vkontakte\\.ru/.*$|^(?:https?|file|ftp)://vkontakte\\.ru/.*$",exclude_matches:"^(?:https?|file|ftp)://queuev4\\.vk\\.com/.*$|^(?:https?|file|ftp)://queuev4\\.vkontakte\\.ru/.*$",run_at:"document_end",all_frames:!0,js:[0,5]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.ok\\.ru/.*$|^(?:https?|file|ftp)://ok\\.ru/.*$|^(?:https?|file|ftp)://[^\\/]*\\.odnoklassniki\\.ru/.*$|^(?:https?|file|ftp)://odnoklassniki\\.ru/.*$",run_at:"document_end",js:[0,6]},{matches:"^(?:https?|file|ftp)://my\\.mail\\.ru/.*$",run_at:"document_end",js:[0,7]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.facebook\\.com/.*$|^(?:https?|file|ftp)://facebook\\.com/.*$",run_at:"document_end",js:[0,8]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.savefrom\\.net/.*$|^(?:https?|file|ftp)://savefrom\\.net/.*$",run_at:"document_end",js:[0,9]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.instagram\\.com/.*$|^(?:https?|file|ftp)://instagram\\.com/.*$",run_at:"document_end",all_frames:!0,js:[0,10]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.rutube\\.ru/.*$|^(?:https?|file|ftp)://rutube\\.ru/.*$",run_at:"document_end",all_frames:!0,js:[0,11]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.tiktok\\.com/.*$|^(?:https?|file|ftp)://tiktok\\.com/.*$",run_at:"document_end",all_frames:!0,js:[0,12]},{matches:"^(?:https?|file|ftp)://music\\.yandex\\.ru/.*$|^(?:https?|file|ftp)://music\\.yandex\\.by/.*$",run_at:"document_end",all_frames:!0,js:[0,13]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.twitch\\.tv/.*$|^(?:https?|file|ftp)://twitch\\.tv/.*$",run_at:"document_end",all_frames:!0,js:[0,14]},{matches:"^(?:https?|file|ftp)://matchtv\\.ru/.*$",run_at:"document_end",all_frames:!0,js:[0,15]},{matches:"^(?:https?|file|ftp)://sf-helper\\.net/.*$|^(?:https?|file|ftp)://oauth2\\.televzr\\.com/.*$",js:[0,16]},{matches:"^(?:https?|file|ftp)://[^\\/]*/.*$",run_at:"document_end",js:[17]}],e.contentScriptMap={"includes/commons.js":0,"includes/vimeo_com.js":1,"includes/dailymotion_com.js":2,"includes/youtube_com.js":3,"includes/soundcloud_com.js":4,"includes/vkontakte_ru.js":5,"includes/odnoklassniki_ru.js":6,"includes/mail_ru.js":7,"includes/facebook_com.js":8,"includes/savefrom_net.js":9,"includes/instagram_com.js":10,"includes/rutube_ru.js":11,"includes/tiktok_com.js":12,"includes/yandex_music.js":13,"includes/twitch_tv.js":14,"includes/match_tv.js":15,"includes/oauth_helper_net.js":16,"includes/tab.js":17,"includes/aviaBar.js":18,"includes/link_modifier.js":19,"includes/migrateTM.js":20},e.contentScriptIndex=[function(e){!window.savefromContentScriptWebpackJsonp&&(window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[]).push([[0],[function(t,n,r){var o=e;n.a=o},function(e,t){e.exports=n(14)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(27)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(12)},function(e,t,n){var r=n(0);t.a=function(e){return new Promise((function(t){r.a.sendMessage(e,t)}))}},function(e,t,n){n.d(t,"a",(function(){return Oe}));var o=n(4),i=n(11),l=n(6),c=n.n(l),d=function(){function e(t){Object(s.a)(this,e),this.cache=void 0,this.initData=void 0,this.cache=t}var t;return Object(u.a)(e,[{key:"extractLinks",value:(t=Object(a.a)(g.a.mark((function e(t){var n,r,o;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.element,r=t.initData,n){e.next=3;break}throw new Error("element is not defined");case 3:if(r){e.next=5;break}throw new Error("initData is not defined");case 5:return this.initData=r,o=this.getFilenameFromUrl(n.src),e.abrupt("return",(o&&!/\.php$/.test(o)||(o=c.a.modify(document.title+".jpg")),[{url:n.src,filename:o}]));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getFilenameFromUrl",value:function(e){return Object(i.a)(this.initData).getMatchFirst(e,/\/([^\/]+\.[a-z0-9]{3,4})(?:\?|$)/i)}}]),e}(),p=n(0),f=n(42),m=function(){function e(t){Object(s.a)(this,e),this.cache=void 0,this.initData=void 0,this.cache=t}var t,n,r,o;return Object(u.a)(e,[{key:"extractLinks",value:(o=Object(a.a)(g.a.mark((function e(t){var n,r,o,a;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.mediaId,r=t.initData,n){e.next=3;break}throw new Error("videoId is not defined");case 3:if(!this.cache[n]){e.next=5;break}return e.abrupt("return",this.cache[n]);case 5:if(r){e.next=7;break}throw new Error("initData is not defined");case 7:return this.initData=r,e.next=10,this.requestVideoLinksById(n);case 10:return o=e.sent,a=Object(i.a)(this.initData).popupMenu.prepareLinks.facebook(o.links,o.title),e.abrupt("return",(this.cache[n]=this.transformLinks(a),this.cache[n]));case 13:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"requestVideoLinksById",value:(r=Object(a.a)(g.a.mark((function e(t){var n=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){return n.requestLocalVideoLinks(t)})).catch((function(){return n.requestBgVideoLinks(t)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"requestLocalVideoLinks",value:(n=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,t){var n=document.body.innerHTML.match(/"DTSGInitialData"\s*,\s*\[\]\s*,\s*{\s*"token"\s*:\s*"([^"]+)"/);return n&&n[1]?e(n[1]):t(new Error("No Token Found On Page"))})).then((function(e){var n="https://www.facebook.com/video/tahoe/async/".concat(t,"/?").concat(f.stringify({payloadtype:"primary"})),r=f.stringify({__a:1,fb_dtsg:e});return fetch(n,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:r}).then((function(e){return e.text()}))})).then((function(e){return new Promise((function(n,r){p.a.sendMessage({action:"getFacebookLinksFromData",extVideoId:t,data:e},(function(e){e&&e.links?n(e):r(new Error("Get links from data error"))}))}))})).catch((function(e){throw console.error("get local links error",e),e})));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"requestBgVideoLinks",value:(t=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){p.a.sendMessage({action:"getFacebookLinks",extVideoId:t},(function(t){t&&t.links?e(t):n(new Error("Get links error"))}))})).catch((function(e){throw console.error("get links error",e),e})));case 1:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"transformLinks",value:function(e){return JSON.parse(JSON.stringify(e)).map((function(e){return e.url=e.href,e.filename=e.title,delete e.href,delete e.title,e}))}}]),e}(),v=function(){function e(t,n){Object(s.a)(this,e),this.pageType=void 0,this.cache=void 0,this.pageType=t,this.cache=n}var t;return Object(u.a)(e,[{key:"extractLinks",value:(t=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.pageType,e.next=e.t0===o.fbPageTypeMap.fbVideo||e.t0===o.fbPageTypeMap.fbFeed||e.t0===o.fbPageTypeMap.fbProfileVideo||e.t0===o.fbPageTypeMap.fbProfileFeed||e.t0===o.fbPageTypeMap.fbReel||e.t0===o.fbPageTypeMap.fbStory||e.t0===o.fbPageTypeMap.fbWatch?3:e.t0===o.fbPageTypeMap.fbPhoto||e.t0===o.fbPageTypeMap.fbProfilePhoto?4:5;break;case 3:return e.abrupt("return",new m(this.cache).extractLinks(t));case 4:return e.abrupt("return",new d(this.cache).extractLinks(t));case 5:throw new Error("ytPageType ".concat(this.pageType," is not supported"));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),b=n(78),y=n(79),k=n(100),A=n(56),w=function(){function e(){Object(s.a)(this,e),this.requestHeaders=void 0,this.requestHeaders={"x-asbd-id":"198387","x-ig-app-id":"936619743392459","x-ig-www-claim":"0"}}var t,n,r,o,i,l,c,d,p;return Object(u.a)(e,[{key:"extractLinks",value:(p=Object(a.a)(g.a.mark((function e(t){var n,r,o,a,i;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(n=t.element)&&n.previousElementSibling){e.next=3;break}throw new Error("element is not defined");case 3:return r=0,n.previousElementSibling.childNodes.forEach((function(e,t){e.querySelector("div[style]")&&(r=t)})),e.next=7,this.getStory(r);case 7:return o=e.sent,a=location.href.match(/stories\/(.*?)\/(\d+)/),i="instagram_video_story_".concat(Date.now(),".mp4"),e.abrupt("return",(a&&a[1]&&a[2]&&(i=[a[1],a[2]].join(" - ")+".mp4"),[{url:o,filename:i}]));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"getStory",value:(d=Object(a.a)(g.a.mark((function e(t){var n,r,o;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getStoriesFromApi(location.href);case 2:if(e.t5=t,e.t6=n=e.sent[e.t5],e.t4=null===e.t6,e.t4){e.next=7;break}e.t4=void 0===n;case 7:if(e.t3=e.t4,e.t3){e.next=10;break}e.t3=null===(r=n.video_versions);case 10:if(e.t2=e.t3,e.t2){e.next=13;break}e.t2=void 0===r;case 13:if(e.t1=e.t2,e.t1){e.next=16;break}e.t1=null===(o=r[0]);case 16:if(e.t0=e.t1,e.t0){e.next=19;break}e.t0=void 0===o;case 19:if(!e.t0){e.next=23;break}e.t7=void 0,e.next=24;break;case 23:e.t7=o.url;case 24:return e.abrupt("return",e.t7);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"getStoriesFromApi",value:(c=Object(a.a)(g.a.mark((function e(t){var n,r,o,a;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getInfoAboutStoryUrl(t);case 2:return n=e.sent,r=n.username,o=n.storyId,a=n.isImplicitHighlightUrl,e.abrupt("return","highlights"===r||a?this.getHighlightStories(o):this.getStoriesByUsername(r));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"getInfoAboutStoryUrl",value:(l=Object(a.a)(g.a.mark((function e(t){var n,r,o,a,i;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseStoryUrl(t),r=n.username,o=n.storyId,a=n.isImplicitHighlightUrl){e.next=3;break}return e.abrupt("return",{username:r,storyId:o,isImplicitHighlightUrl:a});case 3:return e.next=5,this.getRedirectedUrl(t);case 5:if(i=e.sent,t!==i){e.next=8;break}throw new Error("Url was not redirected");case 8:return e.abrupt("return",this.parseStoryUrl(i));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"parseStoryUrl",value:function(e){var t=!1,n=/instagram.com\/stories\/([^\/?]+)(?:\/(\d+))?(?:\/|\?|$)/.exec(e);if(n||(n=/instagram.com\/s\/[^\/?]+\?story_media_id=(\d+)_(\d+)/.exec(e),t=!0),n){var r=n,o=Object(h.a)(r,3);return{username:o[1],storyId:o[2],isImplicitHighlightUrl:t}}throw new Error("Failed to parse story url: "+e)}},{key:"getRedirectedUrl",value:(i=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(A.a)(t,{headers:this.requestHeaders});case 2:return e.abrupt("return",e.sent.responseURL);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"getHighlightStories",value:(o=Object(a.a)(g.a.mark((function e(t){var n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestStoriesById("highlight:"+t);case 2:return n=e.sent,e.abrupt("return",this.parseStoriesResponse(n));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"requestStoriesById",value:(r=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(A.a)("https://www.instagram.com/api/v1/feed/reels_media/?reel_ids="+encodeURIComponent(t),{headers:this.requestHeaders});case 2:return e.abrupt("return",e.sent.body);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"parseStoriesResponse",value:function(e){var t,n,r;return e?((null===(t=JSON.parse(e))||void 0===t||null===(n=t.reels_media)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.items)||[]).map((function(e){return e})):[]}},{key:"getStoriesByUsername",value:(n=Object(a.a)(g.a.mark((function e(t){var n,r;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getUserIdByUserName(t);case 2:return n=e.sent,e.next=5,this.requestStoriesById(n);case 5:return r=e.sent,e.abrupt("return",this.parseStoriesResponse(r));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getUserIdByUserName",value:(t=Object(a.a)(g.a.mark((function e(t){var n,r,o,a,i;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(A.a)("https://www.instagram.com/api/v1/users/web_profile_info/?username="+t,{headers:this.requestHeaders});case 2:if(a=e.sent,i=null===(n=JSON.parse(a.body))||void 0===n||null===(r=n.data)||void 0===r||null===(o=r.user)||void 0===o?void 0:o.id){e.next=6;break}throw new Error("Failed to get user id by username: "+t);case 6:return e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),C=function(){function e(t,n){Object(s.a)(this,e),this.pageType=void 0,this.cache=void 0,this.pageType=t,this.cache=n}var t;return Object(u.a)(e,[{key:"extractLinks",value:(t=Object(a.a)(g.a.mark((function e(t){var n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.pageType,e.next=e.t0===o.igPageTypeMap.igFeed?3:e.t0===o.igPageTypeMap.igPostVideo?11:e.t0===o.igPageTypeMap.igPostPhoto?12:e.t0===o.igPageTypeMap.igStoryVideo?13:e.t0===o.igPageTypeMap.igStoryPhoto?14:15;break;case 3:if(n=t.element){e.next=6;break}throw new Error("element is not defined");case 6:if(!(n instanceof HTMLVideoElement)){e.next=8;break}return e.abrupt("return",(new y.PostVideoLinkExtractor).extractLinks(t));case 8:if(!(n instanceof HTMLImageElement)){e.next=10;break}return e.abrupt("return",(new b.PostPhotoLinkExtractor).extractLinks(t));case 10:throw new Error("element is not supported");case 11:return e.abrupt("return",(new y.PostVideoLinkExtractor).extractLinks(t));case 12:return e.abrupt("return",(new b.PostPhotoLinkExtractor).extractLinks(t));case 13:return e.abrupt("return",(new w).extractLinks(t));case 14:return e.abrupt("return",(new k.StoryPhotoLinkExtractor).extractLinks(t));case 15:throw new Error("igPageType ".concat(this.pageType," is not supported"));case 16:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),_=n(15),O=n.n(_),M=n(8),E=n(7),D=n.n(E),I=D()("SoAudioLinkExtractor"),L=function(){function e(){Object(s.a)(this,e)}var t,n,r;return Object(u.a)(e,[{key:"extractLinks",value:(r=Object(a.a)(g.a.mark((function e(t){var n,r,o,i,s,u,l,c,d,p,f,m,h,v,b,y,k,A=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.element,r=this.get("client_id"),e.t0=r,e.t0){e.next=7;break}return e.next=6,this.getClientId();case 6:r=e.sent;case 7:if(n){e.next=19;break}return e.next=10,this.getTrack(r,location.href);case 10:if(o=e.sent){e.next=18;break}return e.next=14,this.getPageInfo(r,location.href);case 14:return i=e.sent,e.next=17,this.fetchSongsOfPlaylist(r,i);case 17:return e.abrupt("return",e.sent.map(function(){var e=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=A.fmtSongFilename(t),e.next=3,A.getDownloadURL(r,t);case 3:return e.t1=e.sent,e.abrupt("return",{filename:e.t0,url:e.t1});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 18:return e.abrupt("return",[{url:null==o?void 0:o.url,filename:null==o?void 0:o.filename}]);case 19:if(!n.closest(".sc-type-small, .chartTrack")){e.next=27;break}if(s=n.closest(".sc-type-small, .chartTrack"),u=null==s?void 0:s.querySelector(".trackItem__trackTitle[href], .chartTrack__title [href]")){e.next=23;break}throw new Error("song element is not defined");case 23:return e.next=25,this.getTrack(r,u.href);case 25:return l=e.sent,e.abrupt("return",[{url:null==l?void 0:l.url,filename:null==l?void 0:l.filename}]);case 27:if(!n.closest(".sc-media")){e.next=36;break}if(c=n.closest(".sc-media"),(p=null==c?void 0:c.querySelector(".soundTitle__title[href]"))&&(d=p.href),!p&&document.querySelector(".l-about-row .sound__soundActions .sc-button-group:nth-child(1)")&&(d=location.href),d){e.next=32;break}throw new Error("song url is not defined");case 32:return e.next=34,this.getTrack(r,d);case 34:return f=e.sent,e.abrupt("return",[{url:null==f?void 0:f.url,filename:null==f?void 0:f.filename}]);case 36:if(!n.closest('[role="group"].sound.streamContext:not(.playlist)')){e.next=44;break}if(m=n.closest('[role="group"].sound.streamContext:not(.playlist)'),h=null==m?void 0:m.querySelector("a.soundTitle__title[href]")){e.next=40;break}throw new Error("song element is not defined");case 40:return e.next=42,this.getTrack(r,h.href);case 42:return v=e.sent,e.abrupt("return",[{url:null==v?void 0:v.url,filename:null==v?void 0:v.filename}]);case 44:if(!n.closest('[role="group"].sound.playlist.streamContext')){e.next=55;break}return b=n.closest('[role="group"].sound.playlist.streamContext'),y=null==b?void 0:b.querySelector('a[href*="sets/"]'),e.next=49,this.getPageInfo(r,y.href);case 49:if("playlist"===(k=e.sent).kind){e.next=52;break}throw I&&I.error("It's not playlist",y),new Error("playlist is not defined");case 52:return e.next=54,this.fetchSongsOfPlaylist(r,k);case 54:return e.abrupt("return",e.sent.map(function(){var e=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=A.fmtSongFilename(t),e.next=3,A.getDownloadURL(r,t);case 3:return e.t1=e.sent,e.abrupt("return",{filename:e.t0,url:e.t1});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 55:return e.abrupt("return",[{url:"",filename:""}]);case 56:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"get",value:function(e){var t=localStorage.getItem(e);if(!t)return"";var n=JSON.parse(t),r=n.val,o=n.expires;return r&&-1===o||o>Date.now()?r:""}},{key:"getClientId",value:(n=Object(a.a)(g.a.mark((function e(){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",O()('function(){// @ts-ignore\nvar wpchunk=window.webpackChunk||window.webpackJsonp;if(typeof wpchunk==="undefined"){return}var _result;// @ts-ignore\nvar sections=wpchunk.filter(function(v,k){return k!=="push"});// check fn\nfor(var id in wpchunk){var chunk=wpchunk[id];if(chunk[1]&&chunk[1][41021]){var matches=chunk[1][41021].toString().match(/\\?client_id=(.+?)&/);if(Array.isArray(matches)&&matches[1]){return matches[1]}}}// @ts-ignore\nsections.some(function(section){var obj=section[1];return Object.keys(obj).some(function(fnIdx){var result=obj[fnIdx].toString().match(/\\"client_id=\\w+\\"/);if(result&&result[0]){return _result=result[0].split("=")[1].replace(/\\"/,"")}})});return _result}'));case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"getPageInfo",value:function(e,t){return Object(M.a)({action:"soundcloudFetchPageInfo",clientId:e,songEndpoint:t})}},{key:"getTrack",value:(t=Object(a.a)(g.a.mark((function e(t,n){var r,o,a;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getPageInfo(t,n);case 2:if((r=e.sent)&&"track"===r.kind){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this.getDownloadURL(t,r);case 7:return o=e.sent,a=this.fmtSongFilename(r),e.abrupt("return",S(S({},r),{},{url:o,filename:a}));case 10:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"getDownloadURL",value:function(e,t){return Object(M.a)({action:"soundcloudSearchBestDownloadURL",clientID:e,song:t})}},{key:"fetchSongsOfPlaylist",value:function(e,t){return Object(M.a)({action:"soundcloudFetchSongsOfPlaylist",clientID:e,playlist:t})}},{key:"prepareFilename",value:function(e){try{var t=e.replace(/[^A-Za-zА-Яа-яЁё0-9\s\.\-\(\)\[\]]/g,"").trim();if(""===t||t.length<3||t.test(/\.$/))throw new Error("filename not valid");return t}catch(e){return Date.now()+"_track"}}},{key:"fmtSongFilename",value:function(e){return this.prepareFilename(""+e.title)+".mp3"}}]),e}(),T=function(){function e(t,n){Object(s.a)(this,e),this.pageType=void 0,this.cache=void 0,this.pageType=t,this.cache=n}var t;return Object(u.a)(e,[{key:"extractLinks",value:(t=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.pageType,e.next=e.t0===o.soPageTypeMap.soAudio?3:4;break;case 3:return e.abrupt("return",(new L).extractLinks(t));case 4:throw new Error("soPageType ".concat(this.pageType," is not supported"));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),j=n(101),P=n(102),F=n(25),N=n.n(F),B=n(2),R=n.n(B),z=n(16),q=n.n(z),U=n(33),V=n.n(U),H=n(57),G=n(46),W=function(){function e(t){Object(s.a)(this,e),this.cache=void 0,this.initData=void 0,this.cache=t}var t,n;return Object(u.a)(e,[{key:"extractLinks",value:(n=Object(a.a)(g.a.mark((function e(t){var n,r,o,i,s,u=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.element,o=t.initData,r){e.next=3;break}throw new Error("element is not defined");case 3:if(o){e.next=5;break}throw new Error("initData is not defined");case 5:if(this.initData=o,i=null===(n=r.parentNode)||void 0===n?void 0:n.id,!(s=i&&i.match(/video_box_wrap(-?\d+)_(-?\d+)/))&&document.location.href.includes("clips")&&(s=document.location.href.match(/clip=(-?\d+)_(-?\d+)/)),!s){e.next=9;break}return e.abrupt("return",(s.shift(),s=s.map((function(e){return parseInt(e)})),O()(s,(function(e,t){var n=window.mvcur,r="video"+e+"_"+t;return n&&n.listId&&(r=""+r),{path:r}})).then(function(){var e=Object(a.a)(g.a.mark((function e(t){var n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,u.prepareVideoLinks({hosting:"vk",action:"getVKLinks",extVideoId:t.path,oidVid:s});case 4:return n=e.sent,e.abrupt("return",(n=n.map((function(e){return"MP4"===e.format&&(e.forceDownload=!0),e})),u.transformLinks(n)));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 9:throw new Error("oidVid is not defined");case 10:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"prepareVideoLinks",value:(t=Object(a.a)(g.a.mark((function e(t){var n,o,a,s,u,l,c,d,p,f,m,v,b,y,k,A,w,x,C,_,O,E,D,I,L,T,j,P,F;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=[],!t||!t.oidVid){e.next=7;break}return u=Object(h.a)(t.oidVid,2),l=u[0],c=u[1],e.next=5,this.getLinksFromMv(l,c);case 5:(d=e.sent)&&(s=a).push.apply(s,Object(r.a)(this.prepareLinks(d)));case 7:return e.next=9,Object(M.a)(t);case 9:if(p=e.sent,f=Object(i.a)(this.initData),p&&("getPladformVideo"===t.action?this.initData.preferences.showUmmyItem&&"getRutubeLinks"===p.action?(n=a).push.apply(n,Object(r.a)(f.popupMenu.prepareLinks.rutube(p.links))):(o=a).push.apply(o,Object(r.a)(this.prepareLinks(this.preparePladformLinks(p)))):p.links&&(v=f.embedDownloader.reMapHosting(p.action))&&(m=a).push.apply(m,Object(r.a)(f.popupMenu.prepareLinks[v](p.links,p.title)))),a.length||"getVKLinks"!==t.action){e.next=19;break}return e.next=15,this.getVideoLinksAsAjax(t.extVideoId);case 15:k=e.sent,A=k.hosting,(w=k.response)&&w.links&&(w.isUmmy?(b=a).push.apply(b,Object(r.a)(w.links)):(y=a).push.apply(y,Object(r.a)(f.popupMenu.prepareLinks[A](w.links,w.title))));case 19:if(x=a.filter((function(e){return-1!==e.href.indexOf("mycdn.me/")})),C=a.filter((function(e){return-1!==e.href.indexOf("vkuser")})),!(x.length||C||a.length<=2)||!t.extVideoId){e.next=37;break}return O={},(E=document.querySelector('a[href*="'+t.extVideoId+'"]'))&&E.dataset.length&&((D=E.closest('[id*="post"]'))&&(O.post_id=D.dataset.postId),O.list=E.dataset.list,O.paylist_id="wall_"+E.dataset.video.split("_")[0]),O.video=t.extVideoId.split("?")[0].replace("video",""),(I=location.href.match(/pl_(wall_.\d+)/))&&I[1]&&(O.playlist_id=I[1]),(L=document.querySelector('a[data-video="'.concat(O.video,'"]')))&&L.dataset.list&&(O.list=L.dataset.list),e.next=30,q()({type:"POST",url:"https://vk.com/al_video.php?act=show",data:S({act:"show",al:1,autoplay:1,module:"groups"},O)});case 30:return T=e.sent,e.next=33,H.a(p,T.body);case 33:j=e.sent,P=j.hls,F=j.mp4,(_=a).push.apply(_,Object(r.a)(F).concat(Object(r.a)(P))),a=Object(G.uniqArrayObject)(a,"href");case 37:return e.next=39,H.b(Object(G.uniqArrayObject)(a,"quality","itag"),(function(e){return 22==e.itag}));case 39:return a=(a=e.sent).map((function(e){return e.title="."===e.title?"video-"+e.quality:e.title,e})),e.abrupt("return",a);case 42:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getLinksFromMv",value:function(e,t,n){var r=this;return O()([t,e],(function(e,t){var r=window.mvcur;if(r&&r.player&&r.player.vars){var o=r.player.vars;return o.vid!==e||o.oid!==t?n():{vars:r.player.vars}}})).then((function(e){return e?r.getLinksFromHtml5MetaData(e.vars):null}))}},{key:"getLinksFromHtml5MetaData",value:function(e){if(e){var t=e.md_title;if(void 0!==t){var n=Object.keys(e).some((function(e){return e.match(/cache([0-9]+)/)}))?/cache([0-9]+)/:/url([0-9]+)/,r={},o=!1;for(var a in e){var i=null;if("extra_data"!==a||"52"!==e.extra){if(null!==(i=a.match(n))){var s=e[a],u=s.indexOf("?");-1!==u&&(s=s.substr(0,u)),o=!0,r[i[1]]=s}}else r[i=e.hd?"HD":"SD"]=e[a],o=!0}return o?{title:t,links:r}:void 0}}}},{key:"prepareLinks",value:function(e){var t=e.title,n=[];for(var r in e.links){var o=e.links[r],a=o.match(/[\w]+\.(mp4|flv)(?:\?|$)/i),i=(a=a?a[1]:"flv").toUpperCase();n.push({href:o,quality:r,title:t,ext:a,format:i,forceDownload:!0})}return n}},{key:"preparePladformLinks",value:function(e){e&&"getRutubeLinks"===e.action&&(e.links=null);var t=e&&e.links,n="noname",r={};if(t)for(var o,a=0;o=t[a];a++)n=o.title,r[o.quality]&&(o.quality=0),r[o.quality.toUpperCase()]=o.url;return{title:n,links:r}}},{key:"getVideoLinksAsAjax",value:function(e){var t=this,n=/video(-?\d+_-?\d+)/.exec(e);n=n&&n[1];var r=N()(e).list;return this._getModuleName().then((function(e){return new Promise((function(o){t.getLinkAsAjax([n,r],(function(e,t){o({hosting:t,response:e})}),e)}))}))}},{key:"_getModuleName",value:function(){return new Promise((function(e,t){var n=R.a.create("script",{text:'(function(dataArg){if(window.cur&&window.cur.module&&typeof window.cur.module==="string"){document.body.dataset[dataArg]=window.cur.module}})('+JSON.stringify("sfModule")+");"});document.body.appendChild(n),setTimeout((function(){n.parentNode.removeChild(n),e(document.body.dataset.sfModule)}),0)}))}},{key:"getLinkAsAjax",value:function(e,t,n){var r=this;this.getLinkAsAjaxRequest({localXHR:1,type:"POST",url:"/al_video.php",data:{list:e[1],video:e[0],act:"show_inline",module:n,al:1},success:function(e){if(!e)return t();var n=e.match(/<iframe[^>]+src=['"]{1}([^'">]+)['"]{1}[^>]+>/i);if(n||(n=e.match(/var\s+opts\s+=\s+({[^}]*})/im))&&(n=n[1].match(/url:\s+['"]{1}([^'"]+)['"]{1}/i))&&0!==n[1].indexOf("//")&&0!==n[1].indexOf("http")&&(n=null),n){var o=n[1];if(r.initData.preferences.showUmmyItem&&r.isRutubeLink(o))return t(r.getRutubeLinks(o));if(0===o.indexOf("//")&&(o="http:"+o),0!==o.indexOf("http"))return t();var a=Object(i.a)(r.initData),s=a.embedDownloader.checkUrl(o);if(!s)return t();var u={action:s.action,extVideoId:s.extVideoId};p.a.sendMessage(u,(function(e){var n=s.hosting;return e.action!==u.action&&(n=a.embedDownloader.reMapHosting(e.action)),t(e,n)}))}else Object(M.a)({action:"getVkLinksFromData",data:e}).then((function(e){return t(e,"vk")})).catch((function(){return t({},"vk")}))},error:function(){t()}})}},{key:"getLinkAsAjaxRequest",value:function(e,t){var n=this;t=t||0;var r=Object.assign({},e),o=function(){if(t<1)return n.getLinkAsAjaxRequest(e,++t);e.error&&e.error()},a=r.data;0===t?a.act="show_inline":1===t&&(a.act="show"),V()(r,(function(t,n,r){return t||!r||-1!==r.indexOf('href="/join"')?o():void e.success(r)}))}},{key:"isRutubeLink",value:function(e){return/\/\/.*rutube\..*/.test(e)}},{key:"getRutubeLinks",value:function(e){if(/rutube[^\/]+\/(?:play|video)\/embed\/(\d+)/.test(e)||/video\.rutube\./.test(e))return{isUmmy:!0,links:Object(i.a)(this.initData).popupMenu.prepareLinks.rutube(e)}}},{key:"transformLinks",value:function(e){return e.map((function(e){return e.url=e.href,e.filename=e.title,delete e.href,delete e.title,e}))}}]),e}(),Q=n(103),Y=n(104),J=n(105),K=function(){function e(t,n){Object(s.a)(this,e),this.pageType=void 0,this.cache=void 0,this.pageType=t,this.cache=n}var t;return Object(u.a)(e,[{key:"extractLinks",value:(t=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.pageType,e.next=e.t0===o.vkPageTypeMap.vkPhoto?3:e.t0===o.vkPageTypeMap.vkAlbum||e.t0===o.vkPageTypeMap.vkAlbums?4:e.t0===o.vkPageTypeMap.vkClip||e.t0===o.vkPageTypeMap.vkClips||e.t0===o.vkPageTypeMap.vkVideo?5:e.t0===o.vkPageTypeMap.vkStory?6:e.t0===o.vkPageTypeMap.vkAudio||e.t0===o.vkPageTypeMap.vkAudios?7:8;break;case 3:return e.abrupt("return",new Q.PhotoLinkExtractor(this.cache).extractLinks(t));case 4:return e.abrupt("return",new P.AlbumLinkExtractor(this.cache).extractLinks(t));case 5:return e.abrupt("return",new W(this.cache).extractLinks(t));case 6:return e.abrupt("return",new Y.StoryLinkExtractor(this.cache).extractLinks(t));case 7:return e.abrupt("return",new J.AudioLinkExtractor(this.cache).extractLinks(t));case 8:throw new Error("vkPageType ".concat(this.pageType," is not supported"));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),Z=n(39),X=n.n(Z),$=n(27),ee=n.n($),te=n(42),ne=D()("YtShortLinkExtractor"),re=function(){function e(t){Object(s.a)(this,e),this.cache=void 0,this.needsFirefoxFallback=!1,this.cache=t}var t,n,r,o;return Object(u.a)(e,[{key:"extractLinks",value:(o=Object(a.a)(g.a.mark((function e(t){var n,r,o,i,s,u,l,c,d,f=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.mediaId,r=t.mediaUrl,o=t.noDash,i=t.checkSubtitles,n){e.next=3;break}throw new Error("videoId is not defined");case 3:if(!this.cache[n]){e.next=5;break}return e.abrupt("return",this.cache[n]);case 5:if(r){e.next=7;break}throw new Error("videoUrl is not defined");case 7:if(void 0!==o){e.next=9;break}throw new Error("noDash is not defined");case 9:if(void 0!==i){e.next=11;break}throw new Error("checkSubtitles is not defined");case 11:if(!p.a.isFirefox||this.needsFirefoxFallback){e.next=23;break}return e.prev=12,e.next=15,this.getYoutubeLinksForFirefox(t);case 15:s=e.sent,e.next=21;break;case 18:return e.prev=18,e.t0=e.catch(12),e.abrupt("return",(this.needsFirefoxFallback=!0,this.extractLinks(t)));case 21:e.next=26;break;case 23:return e.next=25,this.getYoutubeLinksFromBackground(n,r,o).catch(function(){var e=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(ne&&ne.error("getVideoLinks error",t),f.getVideoInfoFromPlayerApi(n).then((function(e){var t=e.videoInfo;return Object(M.a)({action:"ytPrepareVideoInfo",videoId:n,checkSubtitles:i,noDash:o,config:t})}))));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then((function(e){if(!e.links)throw new Error("Links not found");return e}));case 25:s=e.sent;case 26:if(u=0,s.links&&(u=Object.keys(s.links).length,s.links.meta&&u--),s.links&&u){e.next=29;break}throw new Error("Links not found");case 29:if(t.initData){e.next=31;break}throw new Error("initData is not defined");case 31:return l=this.prepMenuLinks(s.links,s.title||this.getTitleModify(),s.subtitles,t.initData),c=l.menuLinks,d=l.multiLang,e.abrupt("return",(this.cache[n]={menuLinks:this.transformLinks(c),multiLang:d},this.cache[n]));case 33:case"end":return e.stop()}}),e,this,[[12,18]])}))),function(e){return o.apply(this,arguments)})},{key:"getYoutubeLinksFromBackground",value:(r=Object(a.a)(g.a.mark((function e(t,n,r){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(M.a)({action:"getYoutubeLinksFromConfig",extVideoId:t,url:n,noDash:r,config:{args:{video_id:t}}}).then((function(e){if(!e.links)throw new Error("getYoutubeLinksFromBackground. Links not found");return e})));case 1:case"end":return e.stop()}}),e)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"getVideoInfoFromPlayerApi",value:(n=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.requestInnertubeContext(t).then((function(e){var n="https://www.youtube.com/youtubei/v1/player?"+te.stringify({key:e.INNERTUBE_API_KEY});return q()({url:n,method:"POST",localXHR:p.a.isGM,json:!0,data:JSON.stringify({context:e.INNERTUBE_CONTEXT,videoId:t}),headers:{"Content-Type":"application/json","X-Youtube-Client-Name":e.INNERTUBE_CONTEXT_CLIENT_NAME||"55","X-Youtube-Client-Version":e.INNERTUBE_CONTEXT_CLIENT_VERSION||"1.20210331.1.0"}})})).then((function(e){return{videoInfo:{player_response:e.body}}})));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"requestInnertubeContext",value:(t=Object(a.a)(g.a.mark((function e(t){var n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://www.youtube.com/embed/"+encodeURIComponent(t),e.abrupt("return",q()({url:n,localXHR:p.a.isGM}).then((function(e){var t=X()(e.body,/INNERTUBE_CONTEXT":(.*?),/);if(!t.length||!t[0].INNERTUBE_CONTEXT||!t[0].INNERTUBE_API_KEY)throw Error("INNERTUBE_CONTEXT not found");return t[0]})));case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"prepMenuLinks",value:function(e,t,n,r){for(var o,a=Object(i.a)(r),s=a.popupMenu.prepareLinks.youtube(e,t,n),u=s.menuLinks,l=s.multiLang,c=[],d=0;o=u[d];d++)c.push({prop:o});return{menuLinks:u=a.popupMenu.sortMenuItems(c),multiLang:l}}},{key:"getTitleModify",value:function(){var e=this.getTitle();return e&&(e=this.modifyTitle(e)),e}},{key:"getTitle",value:function(){var e=document.getElementById("watch-headline-title");if(e)return e.textContent;for(var t=document.getElementsByTagName("meta"),n=0;n<t.length;n++){var r=t[n].getAttribute("name");if(r&&"title"==r.toLowerCase())return t[n].getAttribute("content")}var o=0===location.host.indexOf("m.");return ee()()||o?document.title.replace(/ - YouTube$/,""):""}},{key:"modifyTitle",value:function(e){return(e=(e=(e=(e=(e=e.replace(/[\x2F\x5C\x3A\x7C]/g,"-")).replace(/[\x2A\x3F]/g,"")).replace(/\x22/g,"'")).replace(/\x3C/g,"(")).replace(/\x3E/g,")")).replace(/(?:^\s+)|(?:\s+$)/g,"")}},{key:"transformLinks",value:function(e){return JSON.parse(JSON.stringify(e)).map((function(t,n){return t.prop.url=t.prop.href,t.prop.filename=t.prop.title,t.prop.func=e[n].prop.func,delete t.prop.href,delete t.prop.title,t.prop}))}},{key:"getYoutubeLinksForFirefox",value:function(e){var t=this,n=e.mediaId,r=e.checkSubtitles,o=e.noDash;return fetch("https://www.youtube.com/youtubei/v1/player?key=AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w&prettyPrint=false",{body:'{"context": {"client": {"clientName": "ANDROID", "clientVersion": "19.09.37", "androidSdkVersion": 30, "hl": "en", "timeZone": "UTC", "utcOffsetMinutes": 0}}, "videoId": "'.concat(n,'", "params": "CgIIAQ==", "playbackContext": {"contentPlaybackContext": {"html5Preference": "HTML5_PREF_WANTS"}}, "contentCheckOk": true, "racyCheckOk": true}'),headers:{"Content-Type":"application/json","X-Youtube-Client-Name":"3","X-Youtube-Client-Version":"19.09.37","User-Agent":"com.google.android.youtube/19.09.37 (Linux; U; Android 11) gzip"},method:"POST"}).then((function(e){return e.json()})).then((function(e){if(e&&e.playabilityStatus&&"This video is unavailable"===e.playabilityStatus.reason)throw new Error("This video is unavailable");if(e&&e.videoDetails&&e.videoDetails.videoId!==n)throw new Error("TRY_FIREFOX_IOS");if(e&&e.playabilityStatus&&"LOGIN_REQUIRED"===e.playabilityStatus.status)throw new Error("LOGIN_REQUIRED");var t={player_response:e};return Object(M.a)({action:"ytPrepareVideoInfo",videoId:n,checkSubtitles:r,noDash:o,config:t})})).catch((function(n){if(console.log("err",n.message),"TRY_FIREFOX_IOS"===n.message)return t.getYoutubeLinksForFirefoxIos(e);throw n}))}},{key:"getYoutubeLinksForFirefoxIos",value:function(e){var t=e.mediaId,n=e.checkSubtitles,r=e.noDash;return fetch("https://www.youtube.com/youtubei/v1/player?key=AIzaSyB-63vPrdThhKuerbB2N_l7Kwwcxj6yUAc&prettyPrint=false",{body:'{"context": {"client": {"clientName": "IOS", "clientVersion": "19.09.3", "deviceModel": "iPhone14,3", "hl": "en", "timeZone": "UTC", "utcOffsetMinutes": 0}}, "videoId": "'.concat(t,'", "params": "CgIQBg==", "playbackContext": {"contentPlaybackContext": {"html5Preference": "HTML5_PREF_WANTS"}}, "contentCheckOk": true, "racyCheckOk": true}'),headers:{"Content-Type":"application/json","X-Youtube-Client-Name":"5","X-Youtube-Client-Version":"19.09.3","User-Agent":"com.google.ios.youtube/19.09.3 (iPhone14,3; U; CPU iOS 15_6 like Mac OS X)"},method:"POST"}).then((function(e){return e.json()})).then((function(e){if(e&&e.playabilityStatus&&"LOGIN_REQUIRED"===e.playabilityStatus.status)throw new Error("LOGIN_REQUIRED");var o={player_response:e};return Object(M.a)({action:"ytPrepareVideoInfo",videoId:t,checkSubtitles:n,noDash:r,config:o})})).catch((function(e){throw e}))}}]),e}(),oe=function(){function e(t,n){Object(s.a)(this,e),this.pageType=void 0,this.cache=void 0,this.pageType=t,this.cache=n}var t;return Object(u.a)(e,[{key:"extractLinks",value:(t=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.pageType,e.next=e.t0===o.ytPageTypeMap.ytShort||e.t0===o.ytPageTypeMap.ytVideo||e.t0===o.ytPageTypeMap.ytFeedHistory||e.t0===o.ytPageTypeMap.ytFeedLibrary||e.t0===o.ytPageTypeMap.ytFeedSubscriptions||e.t0===o.ytPageTypeMap.ytFeedTrending||e.t0===o.ytPageTypeMap.ytLikedVideos||e.t0===o.ytPageTypeMap.ytWatchLater||e.t0===o.ytPageTypeMap.ytPlaylistVideos||e.t0===o.ytPageTypeMap.ytChannel||e.t0===o.ytPageTypeMap.ytGaming?3:4;break;case 3:return e.abrupt("return",new re(this.cache).extractLinks(t));case 4:throw new Error("ytPageType ".concat(this.pageType," is not supported"));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),ae=n(68),ie=n.n(ae),se=D()("ViShortLinkExtractor"),ue=function(){function e(t){Object(s.a)(this,e),this.cache=void 0,this.cache=t}var t,n,r;return Object(u.a)(e,[{key:"extractLinks",value:(r=Object(a.a)(g.a.mark((function e(t){var n,r,o,i,s=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.mediaId){e.next=3;break}throw new Error("mediaId is not defined");case 3:if(!this.cache[n]){e.next=5;break}return e.abrupt("return",this.cache[n]);case 5:if(t.initData){e.next=7;break}throw new Error("initData is not defined");case 7:return e.next=9,this.getVimeoLinks(n).catch(function(){var e=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(se&&se.error("getVideoLinks error",t),s.getVimeoLinksFromBackground(n)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then((function(e){if(!e.links)throw new Error("getVimeoLinksFromBackground. Links not found");return e}));case 9:return r=e.sent,o=this.prepMenuLinks(r.links,r.title,t.initData),i=o.menuLinks,e.abrupt("return",(this.cache[n]=this.transformLinks(i),this.cache[n]));case 13:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getVimeoLinksFromBackground",value:(n=Object(a.a)(g.a.mark((function e(t){var n,r,o;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[/"video":{/,/"request":{/,/"files":/],r=ie()(document.body.innerHTML,n),o=null,e.next=4,r.some((function(e){return X()(e,n).some((function(e){if(e.video&&e.request&&e.request.files)return o=e,!0}))}));case 4:return e.abrupt("return",Object(M.a)({action:"getVimeoLinksFromConfig",extVideoId:t,config:o}).then((function(e){if(null===e||!e.links)throw new Error("getVimeoLinksFromConfig. Links not found in config");return e})));case 5:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"getVimeoLinks",value:(t=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(M.a)({action:"getVimeoLinks",extVideoId:t}).then((function(e){if(!e.links)throw new Error("getVimeoLinks. Links not found");return e})));case 1:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"transformLinks",value:function(e){return e.map((function(e){return e.url=e.href,e.filename=e.title,delete e.href,delete e.title,e}))}},{key:"prepMenuLinks",value:function(e,t,n){return{menuLinks:Object(i.a)(n).popupMenu.prepareLinks.vimeo(e,t)}}}]),e}(),le=function(){function e(t,n){Object(s.a)(this,e),this.pageType=void 0,this.cache=void 0,this.pageType=t,this.cache=n}var t;return Object(u.a)(e,[{key:"extractLinks",value:(t=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.pageType,e.next=e.t0===o.viPageTypeMap.viVideo||e.t0===o.viPageTypeMap.viProfileFeed||e.t0===o.viPageTypeMap.viBlogVideo?3:4;break;case 3:return e.abrupt("return",new ue(this.cache).extractLinks(t));case 4:throw new Error("viPageType ".concat(this.pageType," is not supported"));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),ce=function(){function e(t){Object(s.a)(this,e),this.cache=void 0,this.cache=t}var t;return Object(u.a)(e,[{key:"extractLinks",value:(t=Object(a.a)(g.a.mark((function e(t){var n,r=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t&&t.initData){e.next=2;break}throw new Error("initData is not found");case 2:return n=Object(i.a)(t.initData),e.abrupt("return",Promise.resolve().then((function(){var e=r.newGetVideoId();if(!e)throw new Error("Video is not found");return r.cache[e]?r.cache[e]:Object(M.a)({action:"getDailymotionLinks",extVideoId:e}).then((function(t){if(!t||!t.links)throw new Error("Links is not found");var o=r.transformLinksFromLegacy(n.popupMenu.prepareLinks.dailymotion(t.links,t.title));return r.cache[e]=o,o}))})));case 4:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"newGetVideoId",value:function(){var e="",t=/\/video\/([^\/?#]+)/.exec(location.href);return t&&(e=t[1]),e}},{key:"transformLinksFromLegacy",value:function(e){return e.map((function(e){return{ext:e.ext,forceDownload:e.forceDownload,format:e.format,url:e.href,quality:e.quality,filename:e.title}}))}}]),e}(),de=function(){function e(t,n){Object(s.a)(this,e),this.pageType=void 0,this.cache=void 0,this.pageType=t,this.cache=n}var t;return Object(u.a)(e,[{key:"extractLinks",value:(t=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.pageType,e.next=e.t0===o.daPageTypeMap.daVideo?3:4;break;case 3:return e.abrupt("return",new ce(this.cache).extractLinks(t));case 4:throw new Error("daPageType ".concat(this.pageType," is not supported"));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),pe=function(){function e(){Object(s.a)(this,e),this.CACHE_UID_KEY="yandex_uid"}var t,n;return Object(u.a)(e,[{key:"extractLinks",value:(n=Object(a.a)(g.a.mark((function e(t){var n,r,o,a;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.element){e.next=3;break}throw new Error("Element is not defined");case 3:return r=this.getInfo(n),e.next=6,this.fetchTrack(r.albumId,r.trackId,this.prepareUID());case 6:return o=e.sent,a=c.a.modify("".concat(r.artist?r.artist+" -":""," ").concat(r.trackName,".").concat(o.codec)),e.abrupt("return",[{url:o.downloadURL,filename:a}]);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"fetchTrack",value:(t=Object(a.a)(g.a.mark((function e(t,n,r){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(M.a)({action:"yandexGetTrack",currentPage:location.href,album:t,uid:r,trackId:n}).then((function(e){return{codec:e.codec,downloadURL:e.downloadURL}})));case 1:case"end":return e.stop()}}),e)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"getInfo",value:function(e){var t=this.getArtist(e),n=this.getTrackName(e),r=this.getCompositionId(e);return{artist:t,trackName:n,albumId:r.albumId,trackId:r.trackId}}},{key:"getArtist",value:function(e){var t="";function n(e){null==e||e.childNodes.forEach((function(e){t+=e?e.textContent:""}))}var r=e.querySelector(".d-track__artists, .d-artists"),o=document.querySelector(".sidebar-album .d-artists"),a=document.querySelector(".d-artists, .page-artist__title");return r&&0!==(null==r?void 0:r.childNodes.length)?n(r):""==t&&o&&0!==(null==o?void 0:o.childNodes.length)?n(o):""===t&&a&&n(a),t.trim()}},{key:"getTrackName",value:function(e){var t="",n=e.querySelector(".track__name-innerwrap, .d-track__name");return null==n||n.childNodes.forEach((function(e){t+=e?e.textContent+" ":""})),t.trim()}},{key:"getCompositionId",value:function(e){var t,n=null===(t=e.querySelector(".d-track__name a, .track__name-innerwrap a"))||void 0===t?void 0:t.getAttribute("href");if(void 0===typeof n)throw new Error("Can't find album element");if(null!=n&&""!=n){var r=/album\/([0-9]+)\/track\/([0-9]+)/.exec(n),o=Object(h.a)(r,3),a=(o[0],o[1]),i=o[2];if(null===a||null===i)throw new Error("albumId or trackId is not defined");return{albumId:a,trackId:i}}throw new Error("Album links are empty")}},{key:"prepareUID",value:function(){var e=this.get(this.CACHE_UID_KEY);return e||(e=this.getUidFromHTML(),this.set(this.CACHE_UID_KEY,e,720)),e}},{key:"getUidFromHTML",value:function(){var e,t=0,n=x(document.querySelectorAll("script[nonce]"));try{for(n.s();!(e=n.n()).done;){var r=e.value.innerText.match(/"uid":"([0-9]+)"/);if(r){t=Number(r[1]);break}}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"set",value:function(e,t,n){localStorage.setItem(e,JSON.stringify({val:t,expires:n?Date.now()+60*n*1e3:-1}))}},{key:"get",value:function(e){var t=localStorage.getItem(e);if(!t)return null;var n=JSON.parse(t),r=n.val,o=n.expires;return r&&-1===o||o>Date.now()?r:null}}]),e}(),fe=function(){function e(t,n){Object(s.a)(this,e),this.pageType=void 0,this.cache=void 0,this.pageType=t,this.cache=n}var t;return Object(u.a)(e,[{key:"extractLinks",value:(t=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.pageType,e.next=e.t0===o.yaPageTypeMap.yaArtist||e.t0===o.yaPageTypeMap.yaAlbum||e.t0===o.yaPageTypeMap.yaTrack||e.t0===o.yaPageTypeMap.yaPlaylist?3:4;break;case 3:return e.abrupt("return",new pe(this.cache).extractLinks(t));case 4:throw new Error("viPageType ".concat(this.pageType," is not supported"));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),me=n(5),ge=n(18),he=n.n(ge),ve=n(31),be=n(45),ye=n(19),ke=n.n(ye),Ae=n(69),we=n.n(Ae),xe=function(){function e(){Object(s.a)(this,e)}var t,n,r;return Object(u.a)(e,[{key:"extractLinks",value:(r=Object(a.a)(g.a.mark((function e(t){var n,r,o,a,s;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.element,r=t.initData){e.next=3;break}throw new Error("initData is not defined");case 3:if(n){e.next=5;break}throw new Error("element is not defined");case 5:if(o=Object(i.a)(r),"m.ok.ru"!==location.host){e.next=12;break}return e.next=9,this.getMobilePlayerOptions(n,o);case 9:e.t0=e.sent,e.next=15;break;case 12:return e.next=14,this.getPlayerOptions(n,o);case 14:e.t0=e.sent;case 15:if(a=e.t0){e.next=18;break}throw new Error("Info not defined");case 18:if(!a.metadata){e.next=22;break}return e.next=21,this.prepareHlsLinks(a.metadata);case 21:return e.abrupt("return",e.sent);case 22:if(!a.request){e.next=29;break}return e.next=25,Object(M.a)(a.request);case 25:return s=e.sent,e.next=28,this.prepareHlsLinks(s);case 28:return e.abrupt("return",e.sent);case 29:throw new Error("Metadata or Request not defined");case 30:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getPlayerOptions",value:(n=Object(a.a)(g.a.mark((function e(t,n){var r,o,a,i,s,u;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=ke()(t,"[data-player-element-id][data-options]"),!(o=r&&r.dataset.options)){e.next=19;break}try{o=JSON.parse(o)}catch(e){}if(!(a=o.flashvars)){e.next=19;break}if(!a.metadata){e.next=10;break}i=null;try{i=JSON.parse(a.metadata)}catch(e){}if(!i){e.next=10;break}return e.abrupt("return",{metadata:i});case 10:if(!a.metadataUrl){e.next=12;break}return e.abrupt("return",{request:{action:"getOkMetadata",url:decodeURIComponent(a.metadataUrl)}});case 12:if(!(s=o.url)){e.next=19;break}if(!(u=n.embedDownloader.checkUrl(s))){e.next=17;break}return e.abrupt("return",{request:u});case 17:if(-1===s.indexOf("rutube.")){e.next=19;break}return e.abrupt("return",{request:{action:"getRutubeLinks",links:[s]}});case 19:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"prepareHlsLinks",value:function(e){var t=this,n=e.movie,r=(n&&n.title?n.title:e.compilationTitle)||document.title,o=new RegExp("RESOLUTION=\\d+x(\\d+)\\n((?:https?)?.*?)\\n","g");return q()(e.hlsManifestUrl).then((function(e){return Object(be.matchAll)(e.body,o)})).then((function(n){return n.map((function(n){var o=new URL(n[2],"https://"+t.getCdnHostname(e)).href;return{title:r,ext:"mp4",format:"MP4",quality:parseInt(n[1]),href:"#mux",forceDownload:!1,noSize:!0,func:function(e){e.preventDefault(),p.a.sendMessage({action:"checkAndOpenProLanding",ok:"ok-ext"}),he()(Object(me.createElement)(ve.a,{filename:c.a.modify(r)+".mp4",format:"mp4",sources:[{url:o,format:"mp4"}],convertType:"hls"}),"sf-muxer-parent")}}}))}))}},{key:"getMobilePlayerOptions",value:(t=Object(a.a)(g.a.mark((function e(t,n){var r,o,a,i,s;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r=JSON.parse(t.dataset.video)}catch(e){}if(r&&r.movieId?(o=r.movieId).indexOf("_")&&(o=o.split("_")[0]):o=new URLSearchParams(location.search).get("st.discId"),o){e.next=4;break}throw new Error("getMobilePlayerOptions. video id not found");case 4:return e.next=6,Object(M.a)({action:"okRequestVideoPage",videoId:o});case 6:if(a=e.sent){e.next=9;break}throw new Error("getMobilePlayerOptions. videoPage fetch failed");case 9:if(i=we()(a,"").querySelector(".vp_video .vid-card_cnt")){e.next=12;break}throw new Error("getMobilePlayerOptions. Video dataset not found");case 12:return s=this.getPlayerOptions(i,n),e.abrupt("return",(s.metadata?s.metadata.dataMobile=r:s.metadata={dataMobile:r},s));case 14:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"getCdnHostname",value:function(e){if(e.hlsManifestUrl)try{return new URL(e.hlsManifestUrl).hostname}catch(e){throw e}if(e.failoverHosts&&e.failoverHosts.length)return e.failoverHosts[0];throw new Error("CDN hostname not found")}}]),e}(),Ce=n(106),_e=function(){function e(t){Object(s.a)(this,e),this.cache=void 0,this.cache=t}var t;return Object(u.a)(e,[{key:"extractLinks",value:(t=Object(a.a)(g.a.mark((function e(t){var n,r,o,a,i,s,u,l,d,p,f,m,h,v;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.element){e.next=3;break}throw new Error("Element is not defined");case 3:if(i instanceof HTMLElement){e.next=5;break}throw new Error("Element is not supported");case 5:if(s=i.closest(".track-with-cover"),u=s.dataset.trackId,e.t0=this.cache.jsessionId,e.t0){e.next=10;break}return e.next=10,this.getJsSessionId();case 10:return e.next=12,this.sendMonoRequest(u);case 12:return l=e.sent,e.next=15,this.getClientHash(l.play);case 15:return d=e.sent,p=l.play+(d?"&clientHash="+d:""),f=l.track,m=Math.floor(f.size/f.duration/125),h=null!==(n=null===(r=s.querySelector('[data-l="t,artist"]'))||void 0===r?void 0:r.textContent)&&void 0!==n?n:"",v=null!==(o=null===(a=s.querySelector('[data-l="t,title"]'))||void 0===a?void 0:a.textContent)&&void 0!==o?o:"",e.abrupt("return",[{url:p,filename:c.a.modify("".concat(h," - ").concat(v)),bitrate:m,size:f.size}]);case 22:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"sendMonoRequest",value:function(e){var t=this;return new Promise((function(n,r){p.a.sendMessage({action:"getOdnoklassnikiAudioLinks",url:location.href,trackId:e,jsessionId:t.cache.jsessionId},(function(e){e.data?n(e.data):r(new Error("Get links from data error"))}))}))}},{key:"getClientHash",value:function(e){return Promise.resolve(function(){var t=n(74);return function(e,t){for(var n,r=[4,3,5,6,1,2,8,7,2,9,3,5,7,1,4,8,8,3,4,3,1,7,3,5,9,8,1,4,3,7,2,8],o=t(/md5=(\w*)/g.exec(e)[1]+"secret"),a=o.length,i="",s=0,u=0;u<a;u++)s+=parseInt(o[u],16);for(var l=0;l<a;l++){var c=parseInt(o[l],16);n=l===a-1?c:parseInt(o[l+1],16),i+=Math.abs(s-c*n*r[l])}return i}(e,(function(e){return t(e).toString()}))}())}},{key:"getJsSessionId",value:function(){var e=this;return new Promise((function(e,t){var n=location.protocol+"//"+location.host+"/web-api/music/conf";V()({type:"POST",url:n,data:"_",json:!0,localXHR:!0},(function(n,r,o){!n&&o&&o.sid?e(o.sid):t(new Error("Get jsSessionId error!"))}))})).then((function(t){e.cache.jsessionId=t})).catch((function(e){throw new Error("getJsSessionId error ",e)}))}}]),e}(),Se=function(){function e(t,n){Object(s.a)(this,e),this.pageType=void 0,this.cache=void 0,this.pageType=t,this.cache=n}var t;return Object(u.a)(e,[{key:"extractLinks",value:(t=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.pageType,e.next=e.t0===o.okPageTypeMap.okMusic?3:e.t0===o.okPageTypeMap.okVideo?4:e.t0===o.okPageTypeMap.okProfileMusic?5:6;break;case 3:return e.abrupt("return",new Ce.MusicLinkExtractor(this.cache).extractLinks(t));case 4:return e.abrupt("return",(new xe).extractLinks(t));case 5:return e.abrupt("return",new _e(this.cache).extractLinks(t));case 6:throw new Error("igPageType ".concat(this.pageType," is not supported"));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),Oe=function(){function e(){Object(s.a)(this,e)}return Object(u.a)(e,null,[{key:"createLinkExtractor",value:function(e){switch(!0){case Object.values(o.igPageTypeMap).some((function(t){return t===e})):return new C(e,this.cache);case Object.values(o.ttPageTypeMap).some((function(t){return t===e})):return new j.TtLinkExtractor(e,this.cache);case Object.values(o.ytPageTypeMap).some((function(t){return t===e})):return new oe(e,this.cache);case Object.values(o.viPageTypeMap).some((function(t){return t===e})):return new le(e,this.cache);case Object.values(o.daPageTypeMap).some((function(t){return t===e})):return new de(e,this.cache);case Object.values(o.fbPageTypeMap).some((function(t){return t===e})):return new v(e,this.cache);case Object.values(o.vkPageTypeMap).some((function(t){return t===e})):return new K(e,this.cache);case Object.values(o.yaPageTypeMap).some((function(t){return t===e})):return new fe(e,this.cache);case Object.values(o.soPageTypeMap).some((function(t){return t===e})):return new T(e,this.cache);case Object.values(o.okPageTypeMap).some((function(t){return t===e})):return new Se(e,this.cache);default:throw new Error("pageType ".concat(e," is not supported"))}}}]),e}();Oe.cache={}},function(e,t,n){var r=n(0);t.a=function(e){r.a.sendMessage({action:"sendMonitoring",obj:{category:e.category,event:e.event,subcategory:e.subcategory}})}},function(e,t,n){var o=n(0),a=n(83),l=n.n(a),c=n(66),d=n.n(c),p=n(13),f=n.n(p),m=n(22),g=n.n(m),v=n(19),b=n.n(v),y=n(54),k=n.n(y),A=n(3),w=n.n(A),x=n(84),C=n.n(x),_=n(2),O=n.n(_),M=n(58),E=n.n(M),D=n(6),I=n.n(D),L=n(8),T=n(7),j=n.n(T),P=n(20),F=n(40),N=n.n(F),B=n(55),R=n.n(B),z=n(5),q=n(31),U=n(18),V=n.n(U),H=n(1),G=n.n(H),W=n(26),Q=n.n(W),Y=n(93),J=n.n(Y),K=n(67),Z=n(37),X=n.n(Z),$=n(41),ee=n.n($),te=j()("queueMuxer"),ne=new ee.a("Queue destroyed","DESTROYED"),re=function(){function e(t,n){Object(s.a)(this,e),this.onStartTask=function(e){},this.onStatus=function(e,t){},this.onProgress=function(e,t){},this.onProgressStatus=function(e){},this.onError=function(e){},this.container=t,this.tasks=Object.assign([],n),this._mediaMuxer=null,this.destroyed=!1}return Object(u.a)(e,[{key:"start",value:function(){var e,t=this,n=this.tasks.shift();if(n&&!this.destroyed)return(e=this._runTask(n)).then.apply(e,Object(r.a)(X()((function(){return t.start()}))));if(this.destroyed)for(var o=0;o<=this.tasks.length;o++)this.onError(ne);return te.log("queue finished"),Promise.resolve()}},{key:"destroy",value:function(){this.destroyed=!0,te.log("queue destroy"),this._muxerDestroy(),this.tasks=[]}},{key:"_muxerDestroy",value:function(){this.destroyed||(this._mediaMuxer&&this._mediaMuxer.destroy(),this._mediaMuxer=null)}},{key:"_runTask",value:function(e){var t,n=this;return te.log("run task: ",e),this.onStartTask(e),this._mediaMuxer=new K.a(this.container),this._mediaMuxer.onStatus=this.onStatus,this._mediaMuxer.onProgress=this.onProgress,this._mediaMuxer.onProgressStatus=this.onProgressStatus,(t=this._mediaMuxer.init().then((function(){if(n.destroyed)throw ne;return"hls"===e.format?n._mediaMuxer.hlsToMp3(e.sources,e.filename):n._mediaMuxer.join(e.sources,e.filename)})).then((function(){if(n.destroyed)throw ne;return n._mediaMuxer.download()}))).then.apply(t,Object(r.a)(X()((function(){n._muxerDestroy(),te.log("mediaMuxer destroy: ",e)})))).catch((function(e){te.error("Download error: ",e),n.onError(e)}))}}]),e}(),oe=j()("ConverterPopup"),ae=G.a.memo((function(e){var t=e.files,n=e.onDone,a=G.a.useRef(),i=Q()(J.a),s=G.a.useState(0),u=Object(h.a)(s,2),l=u[0],c=u[1],d=G.a.useState(0),p=Object(h.a)(d,2),f=p[0],m=p[1],g=G.a.useState(0),v=Object(h.a)(g,2),b=v[0],y=v[1],k=G.a.useState("Prepare"),A=Object(h.a)(k,2),w=A[0],x=A[1],C=G.a.useState(null),_=Object(h.a)(C,2),S=_[0],O=_[1],M=G.a.useState(!1),E=Object(h.a)(M,2),D=E[0],I=E[1];return G.a.useEffect((function(){var e,o=!0,i=new re(a.current,t);return i.onStartTask=function(e){o&&(y(0),x("Prepare"),O(e),c((function(e){return++e})))},i.onProgress=function(e){o&&y(Math.trunc(100*e))},i.onError=function(e){oe.error("item download error: ",e),o&&m((function(e){return++e}))},i.onProgressStatus=function(e){o&&x(e)},(e=i.start()).then.apply(e,Object(r.a)(X()((function(){o&&(I(!0),n&&n())})))).catch((function(e){oe.error("queue error: ",e)})),function(){o=!1,i.destroy()}}),[]),G.a.createElement("div",{ref:a},S&&!D&&G.a.createElement("div",null,G.a.createElement("div",{className:i.information},o.a.i18n.getMessage("someFilesNeedConverted")),G.a.createElement("div",{className:i.filesCount},o.a.i18n.getMessage("files"),": (",l," / ",t.length,")"),G.a.createElement(ie,{styles:i,title:S.filename,status:w,progress:b})),D&&G.a.createElement("div",null,G.a.createElement("div",{className:i.information},o.a.i18n.getMessage("conversionCompleted")),G.a.createElement("div",null,o.a.i18n.getMessage("success"),": ",t.length-f,". ",o.a.i18n.getMessage("errors"),": ",f,".")))})),ie=G.a.memo((function(e){var t=e.styles,n=e.title,r=e.status,o={width:e.progress+"%"};return G.a.createElement("div",{className:t.progress},G.a.createElement("div",{className:t.line,style:o}),G.a.createElement("div",{className:t.text},G.a.createElement("div",{className:t.filename},n),G.a.createElement("div",null,r)))})),se=ae,ue=n(94),le=n.n(ue),ce=n(51),de=n.n(ce),pe=n(77),fe=n.n(pe),me=n(95),ge=n.n(me),he=n(30),ve=j()("televzrBridge");function be(){ve.log("Init Tz Bridge Server");var e=ge()(),t=document.createElement("iframe");return t.src="televzr://bridgeInit",document.body.appendChild(t),de()(1e3).then((function(){return!1===document.hasFocus()?e.waitFocus:null})).then((function(){e.removeListeners(),t.remove()}))}function ye(e){return o.a.callFn("televzr.infoRequest",[e]).then((function(e){var t=e.app,n=e.user;return ve.log("Televzr Found",t,n),{app:t,user:n}})).catch((function(e){if(ve.error("Fetch televzr info error",e),e.code)throw e;throw new ee.a("Televzr not found","televzr_not_found")}))}var ke=function(){var e={timeout:1e3,retries:3},t=function(e){var t=e.user;return Object(he.a)(["userInfo"]).then((function(e){var n=e.userInfo;if(!n)throw new ee.a("Helper not auth","code_not_authorized");if(!t.isAuth||!t.isPremium&&n.isPremium)return o.a.callFn("televzr.appAuth")}))};return ye(2e3).then(t,(function(n){if("televzr_not_found"===n.code)return be().then((function(){return fe()(e,(function(){return ye(2e3)}))})).then(t);throw n}))},Ae=function(e,t,n){return o.a.callFn("televzr.startDownloadRequest",[e,t,n])},we=function(){var e={timeout:1e3,retries:2};return ye(1e3).catch((function(t){if("televzr_not_found"===t.code)return be().then((function(){return fe()(e,(function(){return ye(1e3)}))}));throw t}))},xe=n(14),Ce=n.n(xe),_e=function(e,t){G.a.useEffect((function(){var n=e.current;return n&&n.addEventListener("scroll",t),function(){return n&&n.removeEventListener("scroll",t)}}),[e])},Se=function(e,t){return G.a.useCallback((function(n){var r=n.label,a=n.action;o.a.sendMessage({action:"track",t:"event",tid:e,ec:t,el:r||"",ea:a})}),[])},Oe=n(44),Me=n.n(Oe),Ee=j()("TzDownload"),De="STATE_AUTH_CHECK",Ie="STATE_TELEVZR_SEARCH",Le="STATE_DOWNLOAD_PREPARING",Te="STATE_DOWNLOAD_STARTED",je="STATE_ERROR",Pe="https://sf-helper.net/helper-pro",Fe=G.a.memo((function(e){var t=e.unmountLayer,n=e.link,r=e.positionStyle,a=G.a.useRef(),s=Q()(le.a),u=G.a.useState(null),l=Object(h.a)(u,2),c=l[0],d=l[1],p=G.a.useState(null),f=Object(h.a)(p,2),m=f[0],g=f[1],v=G.a.useState(null),b=Object(h.a)(v,2),y=b[0],k=b[1],A=Se("UA-67738130-20","helper-try-pro"),w=Se("UA-181742122-2","download"),x=G.a.useCallback((function(e){var t=e.code||e.message;g(t),d(je),"EEXIST"===t&&w({label:"download",action:"video-is-already"}),"televzr_not_found"===t&&w({label:"download",action:"televzr_not_found"}),"quality_not_found"===t&&w({label:"download",action:"quality_not_found"}),"data_invalid"===t&&w({label:"download",action:"data_invalid"})}),[]),C=G.a.useMemo((function(){return Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)({},De,o.a.i18n.getMessage("authCheck")),Ie,o.a.i18n.getMessage("tzSearchApp")),Le,o.a.i18n.getMessage("tzPreparingToDownload")),Te,o.a.i18n.getMessage("tzDownloadStarted"))[c]||c}),[c]),_=G.a.useMemo((function(){return{code_not_authorized:o.a.i18n.getMessage("msg_not_authorized"),quality_not_found:o.a.i18n.getMessage("msg_quality_not_found"),video_not_found:o.a.i18n.getMessage("msg_video_not_found"),televzr_not_found:o.a.i18n.getMessage("televzrNotFound"),data_invalid:o.a.i18n.getMessage("msg_data_invalid"),code_no_premium:o.a.i18n.getMessage("msg_no_premium"),EEXIST:o.a.i18n.getMessage("msg_video_exists")}[m]||m}),[m]),S=G.a.useCallback((function(){return t()}),[]),O=G.a.useCallback((function(){if(A({label:"button",action:"button-click"+n.quality}),o.a.isFirefox)location.href=Pe;else{var e=document.createElement("a");e.href=Pe,e.target="_blank",document.body.appendChild(e),e.click(),setTimeout((function(){return e.remove()}))}t()}),[n]),M=G.a.useCallback((function(){return t()}),[]),E=G.a.useCallback((function(){w({label:"download",action:"instructions-for-use"})}),[]);return G.a.useEffect((function(){var e=function(e){a&&!a.current.contains(e.target)&&[je,Te].includes(c)&&M()};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[c]),G.a.useEffect((function(){var e;c===Ie?e={label:"download",action:"search-televzr"}:c===Le?e={label:"download",action:"preparing-to-download"}:c===Te&&(e={label:"download",action:"add-to-download"}),e&&w(e)}),[c]),G.a.useEffect((function(){w({label:"download",action:"click-button"}),o.a.callFn("auth.getLoginUrl").then((function(e){return k(e)})).then((function(){return o.a.callFn("auth.isAuth")})).then((function(e){if(!e)throw new ee.a("User not authorized","code_not_authorized");d(Ie)})).then((function(){return ke()})).then((function(){return d(Le)})).then((function(){return Ae(n.url,n.type,n.height)})).then((function(e){Ee.info("added download",e),d(Te)})).catch((function(e){if("code_not_authorized"===e.code)return O();Ee.error("Download error",e),x(e)}))}),[]),G.a.createElement("div",{ref:a,className:Ce()(s.popupContainer,s.flexColumn,!c&&s.hidden),style:r},G.a.createElement("button",{className:s.close,onClick:M},"✖"),G.a.createElement("div",{className:s.popupBody},G.a.createElement(Ne,{styles:s,state:c}),G.a.createElement("div",{className:s.textContainer},_||C),"code_not_authorized"===m&&G.a.createElement("a",{href:y,target:"_blank",onClick:S,className:s.btn},o.a.i18n.getMessage("login")),"code_no_premium"===m&&G.a.createElement("a",{href:Pe,target:"_blank",className:s.btn},o.a.i18n.getMessage("activate")),"televzr_not_found"===m&&G.a.createElement("div",null,G.a.createElement("div",{className:s.subTextContainer},o.a.i18n.getMessage("televzrNotFoundSubMessage")),G.a.createElement("a",{onClick:E,href:"https://sf-helper.net/helper-pro-manual.php",target:"_blank",className:s.btn},o.a.i18n.getMessage("instruction")))))})),Ne=G.a.memo((function(e){var t=e.styles,n=e.state;return G.a.createElement("div",{className:t.flexColumn},n===je&&G.a.createElement(Me.a,{className:Ce()(t.icon),name:"loading"}),[Ie,Le,De].includes(n)&&G.a.createElement(Me.a,{className:Ce()(t.icon,t.circleLoaderIcon),name:"circleLoading"}),n===Te&&G.a.createElement(Me.a,{className:Ce()(t.icon),name:"check"}))})),Be=Fe,Re=n(96),ze=n.n(Re),qe=n(43),Ue=n.n(qe),Ve=function(e){return Object(L.a)({action:"getFileSize",url:e}).then((function(e){if(e.error)throw new Error("Get file size error");return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e,r=0,a="",i=[o.a.i18n.getMessage("vkFileSizeByte"),o.a.i18n.getMessage("vkFileSizeKByte"),o.a.i18n.getMessage("vkFileSizeMByte"),o.a.i18n.getMessage("vkFileSizeGByte"),o.a.i18n.getMessage("vkFileSizeTByte")];for(n<0&&(a="-",n=Math.abs(n));n>=1e3;)r++,n/=1024;if(t>=0){var s=10*t;n=Math.round(n*s)/s}return r<i.length?a+n+" "+i[r]:e}(e.fileSize)}))},He=G.a.memo((function(e){var t=e.item,n=G.a.useContext(Ue.a),r=n.SaveFrom_Utils,a=n.styles,i=G.a.useMemo((function(){return!o.a.isGM&&!o.a.isSafari||t.extra?"":o.a.i18n.getMessage("downloadTitle")}),[t]),s=G.a.useMemo((function(){var e=(t.ext||t.format||"").toLowerCase(),n=t.title?[t.title,e].filter(Boolean).join("."):"";return I.a.modify(n)}),[t]),u=G.a.useCallback((function(e){if(t.func)return t.func(e,t);t.forceDownload&&!t.forceConverter&&r.downloadOnClick(e,null,{el:e.target})}),[t]);return G.a.createElement("a",{href:t.href,download:s,className:a.dropdownItem,onClick:u,title:i,target:t.isBlank?"_blank":""},"SRT"===t.quality?G.a.createElement(We,{text:t.itemText}):G.a.createElement(Ge,{item:t}))})),Ge=G.a.memo((function(e){var t=e.item,n=G.a.useContext(Ue.a),r=n.styles,a=n.SaveFrom_Utils;return G.a.createElement("div",{className:r.dropdownContainer},G.a.createElement("div",{className:r.dropdownFormat},t.format||"???"),"SRT"!==t.quality&&G.a.createElement("div",{className:r.dropdownQuality},G.a.createElement("div",null,t.quality),G.a.createElement(Qe,{quality:t.quality})),"SRT"===t.quality&&G.a.createElement("div",{className:Ce()(r.dropdownQuality,r.subtitles)},t.itemText),G.a.createElement("div",{className:r.dropdownAction},t.noAudio&&G.a.createElement("img",{src:a.svg.getSrc("noSound","#ff0000"),title:o.a.i18n.getMessage("withoutAudio")}),!t.noSize&&G.a.createElement(Ye,{src:a.svg.getSrc("info"),url:t.href})))})),We=G.a.memo((function(e){var t=e.text,n=G.a.useContext(Ue.a).styles;return G.a.createElement("div",{className:n.dropdownContainer},G.a.createElement("div",null,t))})),Qe=G.a.memo((function(e){var t=e.quality,n=G.a.useContext(Ue.a).styles,r=G.a.useMemo((function(){var e=String(t);return["1080","720","1440"].includes(e)?"HD":{2160:"4K",4320:"8K",hls:"HLS",1440:"QHD"}[e]}),[t]);return G.a.createElement("div",null,r&&G.a.createElement("div",{className:n.qualityBadge},r))})),Ye=G.a.memo((function(e){var t=e.url,n=e.src,r=G.a.useContext(Ue.a).styles,o=G.a.useState(null),a=Object(h.a)(o,2),i=a[0],s=a[1],u=G.a.useCallback((function(e){return e.stopPropagation(),e.preventDefault(),Ve(t).then((function(e){return s(e)}))}),[t]);return i?G.a.createElement("div",{className:r.sizeIcon},i):G.a.createElement("img",{src:n,onClick:u})})),Je=He,Ke="PRO_SECTION_LOGIN",Ze="PRO_SECTION_LANDING",Xe=G.a.memo((function(e){var t=e.hiddenItems,n=e.SaveFrom_Utils,r=Q()(ze.a),a=G.a.useState(!1),i=Object(h.a)(a,2),s=i[0],u=i[1],l=G.a.useState(null),c=Object(h.a)(l,2),d=c[0],p=c[1],f=G.a.useState(null),m=Object(h.a)(f,2),g=m[0],v=m[1],b=G.a.useState(!1),y=Object(h.a)(b,2),k=y[0],A=y[1],x=G.a.useMemo((function(){return t.length>0}),[t]),C=G.a.useCallback((function(){return u((function(e){return!e}))}),[]),_=Se("UA-181742122-2","download");G.a.useEffect((function(){o.a.callFn("getPreferences").then((function(e){return A(e.proEnabled)}))}),[]),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];G.a.useEffect((function(){var t=o.a.callFn("auth.isAuth"),n=Object(he.a)(["userInfo"]).then((function(e){return Boolean(e.userInfo&&e.userInfo.isPremium)})),r=o.a.callFn("auth.getLoginUrl");Promise.all([t,n,r]).then((function(t){var n=Object(h.a)(t,3),r=n[0],o=n[1],a=n[2];return e(r,o,a)}))}),t)}((function(e,t,n){if(k){var r=e&&t?"PRO_SECTION_INFO":e?Ze:Ke;p(n),v(r)}else v(null)}),[k]);var S=G.a.useCallback((function(){_({label:"download",action:"login-to-helperpro-button"}),w.a.trigger(document,"mousedown")}),[]),O=G.a.useCallback((function(){_({label:"download",action:"activated-pro-button"})}),[]);return G.a.createElement(Ue.a.Provider,{value:{SaveFrom_Utils:n,styles:r}},G.a.createElement("div",null,s&&G.a.createElement($e,{list:t}),[Ze,Ke,null].includes(g)&&G.a.createElement(tt,null),g===Ze&&G.a.createElement("a",{className:r.loginBtn,onClick:O,href:"https://sf-helper.net/helper-pro",target:"_blank"},o.a.i18n.getMessage("activatePro")),g===Ke&&G.a.createElement("a",{className:r.loginBtn,onClick:S,href:d,target:"_blank"},o.a.i18n.getMessage("loginIfPro")),"PRO_SECTION_INFO"===g&&G.a.createElement("div",null,G.a.createElement(tt,null),G.a.createElement("div",{className:r.proInformation},G.a.createElement("div",{className:r.info},G.a.createElement("img",{src:n.svg.getSrc("rocket","#46aa4b")}),G.a.createElement("div",{className:r.proLabel},"You are PRO")),x&&G.a.createElement(et,{onClick:C}))),null===g&&x&&G.a.createElement(et,{onClick:C}),[Ke,Ze].includes(g)&&x&&G.a.createElement("div",null,G.a.createElement(tt,null),G.a.createElement(et,{onClick:C}))))})),$e=G.a.memo((function(e){var t=e.list,n=G.a.useRef(),r=G.a.useContext(Ue.a).styles;return _e(n,(function(e){var t=r.hiddenShadow,n=e.target;n&&n.scrollTop>0?!n.classList.contains(t)&&n.classList.add(t):n.classList.contains(t)&&n.classList.remove(t)})),G.a.createElement("div",{ref:n,className:Ce()(t.length>8&&r.hiddenViewer)},t.map((function(e){return G.a.createElement(Je,{item:e})})))})),et=G.a.memo((function(e){var t=e.onClick,n=G.a.useContext(Ue.a).styles,r=G.a.useState(!1),a=Object(h.a)(r,2),i=a[0],s=a[1],u=G.a.useCallback((function(e){e.preventDefault(),t(e),s((function(e){return!e}))}));return G.a.createElement("a",{href:"#",className:Ce()(n.dropdownItem,n.moreBtn),onClick:u},i?o.a.i18n.getMessage("more")+" "+String.fromCharCode(171):o.a.i18n.getMessage("more")+" "+String.fromCharCode(187))})),tt=G.a.memo((function(){var e=G.a.useContext(Ue.a).styles;return G.a.createElement("div",{className:e.separator})})),nt=Xe,rt=n(97),ot=n.n(rt),at=n(49),it=n.n(at),st=G.a.memo((function(e){var t=e.item,n=G.a.useContext(it.a),r=n.styles,a=n.dropdownToggle,i=G.a.useMemo((function(){return!o.a.isGM&&!o.a.isSafari||t.extra?"":o.a.i18n.getMessage("selectLanguage")}),[t]),s=G.a.useCallback((function(e){if(a(),t.func)return t.func(e,t)}),[t]);return G.a.createElement("a",{className:r.dropdownItem,onClick:s,title:i,key:t.key},t.langName)}));function ut(){return(ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var lt=G.a.memo((function(e){var t=e.hiddenItems,n=e.selectedLanguage,r=e.SaveFrom_Utils,o=Q()(ot.a),a=G.a.useState(!1),i=Object(h.a)(a,2),s=i[0],u=i[1],l=G.a.useCallback((function(){return u((function(e){return!e}))}),[]);return G.a.createElement(it.a.Provider,{value:{SaveFrom_Utils:r,styles:o,dropdownToggle:l}},G.a.createElement("div",null,G.a.createElement(dt,{onClick:l,selectedLanguage:n,isExpanded:s}),s&&G.a.createElement(ct,{list:t}),G.a.createElement(ft,null)))})),ct=G.a.memo((function(e){var t=e.list,n=G.a.useRef(),r=G.a.useContext(it.a).styles;return _e(n,(function(e){var t=r.hiddenShadow,n=e.target;n&&n.scrollTop>0?!n.classList.contains(t)&&n.classList.add(t):n.classList.contains(t)&&n.classList.remove(t)})),G.a.createElement("div",{ref:n,className:Ce()(t.length>8&&r.hiddenViewer)},t.map((function(e){return G.a.createElement(st,{item:e})})))})),dt=G.a.memo((function(e){var t=e.onClick,n=e.isExpanded,r=e.selectedLanguage,o=G.a.useContext(it.a).styles,a=G.a.useCallback((function(e){e.preventDefault(),t(e)}));return G.a.createElement("a",{href:"#",className:Ce()(o.dropdownItem,o.dropdownItemChevron),onClick:a},r,G.a.createElement(pt,{className:Ce()(o.chevron,n&&o.chevronOpen)}))})),pt=function(e){return G.a.createElement("svg",ut({xmlns:"http://www.w3.org/2000/svg",width:"18px",height:"18px",viewBox:"0 0 24 24",fill:"none"},e),G.a.createElement("path",{d:"M6 15L12 9L18 15",stroke:"#000000",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},ft=G.a.memo((function(){var e=G.a.useContext(it.a).styles;return G.a.createElement("div",{className:e.separator})})),mt=lt,gt=n(98),ht=n.n(gt),vt=j()("TryProButtonExp"),bt=G.a.memo((function(e){var t=e.unmountLayer,n=Q()(ht.a),r=Se("UA-67738130-20","helper-try-pro"),a=G.a.useCallback((function(){return r({label:"button",action:"button-click"})}),[]),i=G.a.useState(!1),s=Object(h.a)(i,2),u=s[0],l=s[1];return G.a.useEffect((function(){o.a.callFn("getPreferences").then((function(e){if(!e.proEnabled)throw new Error("Helper pro exp is disabled");return Object(he.a)(["userInfo"])})).then((function(e){e.userInfo&&e.userInfo.isPremium?t():l(!0)})).catch((function(e){vt.warn("Experiment error",e),t()}))}),[]),G.a.createElement("div",null,u&&G.a.createElement("a",{href:"https://sf-helper.net/helper-pro",className:n.button,onClick:a,target:"_blank"},o.a.i18n.getMessage("try_pro_button")))})),yt=n(99),kt=n.n(yt),At=G.a.memo((function(e){var t=e.state,n=e.installUrl,r=e.styles,a=Se(wt,"install"),i=G.a.useCallback((function(){return a({action:"televzr",label:"televzr"})}),[]);return G.a.createElement("div",{className:r.televzrPopup},G.a.createElement("div",{className:r.televzrPopupHeader}),t===Ct&&G.a.createElement("div",null,G.a.createElement(Me.a,{name:"circleLoading",className:[r.icon,r.circleLoaderIcon].join(" ")}),G.a.createElement("div",null,o.a.i18n.getMessage("tzSearchApp"))),t===St&&G.a.createElement("div",null,G.a.createElement("div",{className:r.televzrPopupBody},G.a.createElement("a",{className:[r.televzrPopupBtn,r.btnInvert].join(" "),href:n,target:"_blank",onClick:i},G.a.createElement("span",{className:r.btnOuter},G.a.createElement("span",{className:r.btnInner},"Install Now")))),G.a.createElement("div",{className:r.televzrPopupFooter},'Allows to download HD/MP3 by "Televzr" button')),t===_t&&G.a.createElement("div",null,G.a.createElement(Me.a,{name:"check",className:[r.icon].join(" ")}),G.a.createElement("div",null,"Televzr launched")))})),wt="G-L0GP1RQSBJ",xt=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("a");n.href=e,t&&(n.target="_blank"),document.body.appendChild(n),n.click(),setTimeout((function(){return n.remove()}))},Ct="pending",_t="installed",St="tz_not_installed",Ot=j()("tz-hd-btn"),Mt=G.a.memo((function(e){var t=e.openUrl,n=Se(wt,"download"),r=Q()(kt.a),a=G.a.useRef(),i=G.a.useState("idle"),s=Object(h.a)(i,2),u=s[0],l=s[1],c=G.a.useState(!1),p=Object(h.a)(c,2),f=p[0],m=p[1],g=G.a.useState(!1),v=Object(h.a)(g,2),b=v[0],y=v[1],k=G.a.useState(),A=Object(h.a)(k,2),w=A[0],x=A[1],C=G.a.useState((function(){return t.match(/v=(.*?)$/)[1]})),_=Object(h.a)(C,1)[0],S=G.a.useMemo((function(){return"https://desktop.televzr.com/download-in-hd.html?vid=693&video_id=yt-".concat(_,"&utm_source=helper&utm_medium=hd-mp3-button&utm_campaign=televzr&utm_content=televzr_integration")}),[_]);G.a.useEffect((function(){var e=function(e){w&&!w.contains(e.target)&&[_t,St].includes(u)&&m(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[u,w]),G.a.useEffect((function(){var e,t,n,o;return f&&(e=function(e,t,n){var r=document.body.querySelector(":not(.ytd-browse[hidden]) #savefrom__yt_btn"),o=document.querySelector(".sf-televzr-popup-container");o&&o.remove(),r&&(o=O.a.create("div",{class:"sf-televzr-popup-container",style:{zIndex:99999,position:"absolute",top:"33px",right:"9%",width:"206px"}}),r.appendChild(o));var a=Boolean(document.body.querySelector("#sfYtFrameBtn")),i={position:"absolute"};return!o&&a&&(i.right="0",o=document.body.querySelector(".sf-btn-ctr")),o||(i.position="relative",o=O.a.create("div",{style:{position:"fixed",zIndex:999999,bottom:"30px",right:"0",width:"268px"}}),document.body.appendChild(o)),[V()(Object(z.createElement)(At,{state:e,installUrl:t,styles:n}),o),o]}(u,S,r),t=Object(h.a)(e,2),n=t[0],o=t[1],x(o)),function(){return n&&n()}}),[u,f,S]),G.a.useEffect((function(){var e=!1,t=d()((function(){return e&&m(!1)}),300),n=function(){e=!0,t()},r=function(){e=!1},o=function(){a.current&&a.current.removeEventListener("mouseleave",n),a.current&&a.current.removeEventListener("mouseenter",r),w&&w.removeEventListener("mouseleave",n),w&&w.removeEventListener("mouseenter",r)};return b&&w?(a.current&&a.current.addEventListener("mouseleave",n),a.current&&a.current.addEventListener("mouseenter",r),w.addEventListener("mouseleave",n),w.addEventListener("mouseenter",r)):o(),function(){return o()}}),[w,b]);var M=G.a.useCallback((function(e){if(e.preventDefault(),e.stopPropagation(),y(!1),n({action:"click_televzr",label:"download"}),"idle"===u)return m(!0),l(Ct),we().then((function(){l(_t),localStorage.setItem("televzr_installed","1"),o.a.callFn("televzr.openUrl",[t.replace("televzr://","https://")]).catch((function(e){Ot.error("televzr.openUrl: ",e),xt(t)}))}),(function(e){l(St),localStorage.removeItem("televzr_installed"),xt(S,!0),Ot.error(e)}));[St,_t].includes(u)&&m(!0)}),[S]),E=G.a.useCallback((function(){localStorage.getItem("televzr_installed")||f||(m(!0),y(!0),l(St))}),[f]);return G.a.createElement("div",{ref:a},G.a.createElement("a",{href:"#",onClick:M,className:[r.itemAnchor,"sf-menu-item"].join(" "),onMouseEnter:E},G.a.createElement("div",{className:r.itemContainer},G.a.createElement("span",null,"HD/MP3 Televzr"),G.a.createElement(Me.a,{name:"televzr",className:r.logo}))))})),Et=n(10),Dt=n(38),It=n.n(Dt),Lt=n(59),Tt=n.n(Lt),jt=j()("components"),Pt=null,Ft=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"),Nt={downloadParam:"sfh--download",setStyle:function(e,t){if(e&&t)for(var n in t)e.style[n]=t[n]},getStyle:function(e,t){return e&&window.getComputedStyle&&window.getComputedStyle(e,null).getPropertyValue(t)},addStyleRules:function(e,t,n){var r=n?document.querySelector("#savefrom-styles."+n):document.getElementById("savefrom-styles");if(!r){(r=document.createElement("style")).id="savefrom-styles",n&&r.classList.add(n);var o=document.querySelector("head style");o?o.parentNode.insertBefore(r,o):document.querySelector("head").appendChild(r)}if("object"==typeof t){var a=[];for(var i in t)a.push(i+":"+t[i]);t=a.join(";")}r.textContent+=e+"{"+t+"}"},getPosition:function(e,t){var n=e.getBoundingClientRect();if(t){var r=t.getBoundingClientRect();return{top:Math.round(n.top-r.top),left:Math.round(n.left-r.left),width:n.width,height:n.height}}return{top:Math.round(n.top+window.pageYOffset),left:Math.round(n.left+window.pageXOffset),width:n.width,height:n.height}},getSize:function(e){return{width:e.offsetWidth,height:e.offsetHeight}},getMatchFirst:function(e,t){var n=e.match(t);return n&&n.length>1?n[1]:""},getElementByIds:function(e){for(var t=0;t<e.length;t++){var n=document.getElementById(e[t]);if(n)return n}return null},getParentByClass:function(e,t){if(!e||""==t)return!1;var n;if("object"==typeof t&&t.length>0)for(n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;for(var r=0;r<t.length;r++)if(n.classList.contains(t[r]))return n}else for(n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;if(n.classList.contains(t))return n}return null},getParentByTagName:function(e,t){if(!e||!t)return!1;for(var n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;if(n.tagName===t)return n}return null},getParentById:function(e,t){for(var n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;if(n.id===t)return n}return null},hasChildrenTagName:function(e,t){for(var n,r=0;n=e.childNodes[r];r++)if(1===n.nodeType&&n.tagName===t)return!0;return!1},isParent:function(e,t){return!(!t||-1===[1,9,11].indexOf(t.nodeType))&&t.contains(e)},emptyNode:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},download:function(e,t,n,r){if(!t)return!1;if(!(e=e||this.getFileName(t)))return!1;if(!Pt.preferences.downloads)return!1;var a=n||{};return a.url=t,a.filename=e.trim(),r=r||void 0,o.a.sendMessage({action:"downloadFile",options:a},r),o.a.sendMessage({action:"checkAndOpenProLanding",id:"cmp-1"}),!0},downloadList:{showDownloadWarningPopup:function(e,t){var n=Nt.playlist.getInfoPopupTemplate();o.a.sendMessage({action:"getWarningIcon",type:t},(function(e){n.icon.style.backgroundImage="url("+e+")"})),O.a.create(n.textContainer,{append:[O.a.create("p",{text:o.a.i18n.getMessage("warningPopupTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),O.a.create("p",{text:o.a.i18n.getMessage("warningPopupDesc")+" ",style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"},append:O.a.create("a",{href:"ru"===o.a.i18n.getMessage("lang")||"uk"===o.a.i18n.getMessage("lang")?"http://vk.com/page-55689929_49003549":"http://vk.com/page-55689929_49004259",text:o.a.i18n.getMessage("readMore"),target:"_blank",style:{color:"#4A90E2"}})}),O.a.create("p",{style:{marginBottom:"13px"},append:[O.a.create("label",{style:{color:"#868686",cursor:"pointer",fontSize:"14px",lineHeight:"19px"},append:[O.a.create("input",{type:"checkbox",style:{cssFloat:"left",marginLeft:"0px"},on:["click",function(){o.a.sendMessage({action:"hideDownloadWarning",set:this.checked?1:0})}]}),o.a.i18n.getMessage("noWarning")]})]})]});var r=void 0,a=void 0;O.a.create(n.buttonContainer,{append:[r=O.a.create("button",{text:o.a.i18n.getMessage("cancel"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",color:"#000000",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"4px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}}),a=O.a.create("button",{text:o.a.i18n.getMessage("continue"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",color:"#000000",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"8px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}})]}),r.addEventListener("click",(function(e){var t=n.body.parentNode;w.a.trigger(t.lastChild,"click")})),a.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e(),w.a.trigger(r,"click")})),Nt.popupDiv(n.body,"dl_warning_box_popup")},startChromeDownloadList:function(e){var t=e.folderName,n=e.list;return t&&(t+="/"),o.a.sendMessage({action:"downloadList",fileList:n,folder:t})},startOldChromeDownloadList:function(e,t){var n=e.folderName,r=e.list,a=e.type;n&&(n+="/");var i=0,s=!1,u=500,l=document.body;l.focus(),t||(l.onblur=function(){s=!0});!function e(){var t=r[i];if(i++,void 0!==t)if(Pt.preferences.downloads?Nt.download(n+t.filename,t.url):w.a.trigger(O.a.create("a",{download:t.filename,href:t.url,on:["click",function(e){Nt.downloadOnClick(e)}]}),"click",{cancelable:!0,altKey:!0}),s)Nt.downloadList.showDownloadWarningPopup((function(){s=!1,l.focus(),e()}),a);else{if(i>5&&u&&(u=void 0,l.onblur=void 0,s=!1,Pt.preferences.downloads))return void o.a.sendMessage({action:"downloadList",fileList:r.slice(i),folder:n});setTimeout((function(){e()}),u)}}()},startDownload:function(e){e.list.forEach((function(e){e.filename=I.a.modify(e.filename)})),e.folderName=I.a.modify(e.folderName);var t=Pt.preferences.sortDownloads;if(t&&t.isEnabled){var n=e.list[0].filename,r=n.slice(n.lastIndexOf(".")+1),a=t.groups.find((function(e){return e.formats.some((function(e){return-1!==e.indexOf(r)}))}));a&&a.dir&&(e.folderName="".concat(I.a.modify(a.dir),"/").concat(e.folderName))}return o.a.isGM&&"undefined"!=typeof GM_download||o.a.isChrome&&Pt.preferences.downloads||o.a.isFirefox?Nt.downloadList.startChromeDownloadList(e):o.a.isSafari?o.a.sendMessage({action:"hideDownloadWarning"},(function(t){Nt.downloadList.startOldChromeDownloadList(e,t)})):void 0},showBeforeDownloadPopup:function(e,t){t&&!t.count&&(t.count=e.length),t.list=e.filter((function(e){return!e.useConverter})),t.listConverter=e.filter((function(e){return e.useConverter}));var n=t.type,r=t.folderName,a=t.onContinue||Nt.downloadList.startDownload,i=t.onShowList||Nt.playlist.popupFilelist,s=t.count||e.length,u=Nt.playlist.getInfoPopupTemplate();o.a.sendMessage({action:"getWarningIcon",color:"#00CCFF",type:n},(function(e){u.icon.style.backgroundImage="url("+e+")"}));var l=[];i&&(l=[" (",O.a.create("a",{href:"#",text:o.a.i18n.getMessage("vkListOfLinks").toLowerCase()}),")"])[1].addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),i(t.list),w.a.trigger(d,"click")})),O.a.create(u.textContainer,{append:[O.a.create("p",{text:r||o.a.i18n.getMessage("playlistTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),O.a.create("p",{text:o.a.i18n.getMessage("vkFoundFiles").replace("%d",s),style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"},append:l}),O.a.create("p",{text:o.a.i18n.getMessage("beforeDownloadPopupWarn"),style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"}})]});var c,d=void 0,p=void 0;O.a.create(u.buttonContainer,{append:[d=O.a.create("button",{text:o.a.i18n.getMessage("cancel"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",color:"#000000",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"4px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}}),p=O.a.create("button",{text:o.a.i18n.getMessage("continue"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",color:"#000000",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"8px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}})]}),d.addEventListener("click",(function(e){var t=u.body.parentNode;w.a.trigger(t.lastChild,"click")})),p.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),a(t),t.listConverter.length?(c=V()(Object(z.createElement)(se,{files:t.listConverter,onDone:function(){d.textContent=o.a.i18n.getMessage("close"),p.style.display="none",u.buttonContainer.style.display="block"}}),u.textContainer),u.buttonContainer.style.display="none"):w.a.trigger(d,"click")})),Nt.popupDiv(u.body,"dl_confirm_box_popup",void 0,void 0,(function(){c&&c()}),{docCloseEnable:!t.listConverter.length})}},downloadLink:function(e,t){if(!e.href)return!1;var n=e.getAttribute("download");return this.download(n,e.href,null,t)},safariDlLink:function(e){if(!(e.button||e.ctrlKey||e.altKey||e.shitfKey)){var t=null;try{if("function"!=typeof MouseEvent)throw"legacy";t=new MouseEvent("click",{bubbles:!0,cancelable:e.cancelable,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY,ctrlKey:!1,altKey:!0,shiftKey:!1,metaKey:e.metaKey,button:e.button,relatedTarget:e.relatedTarget})}catch(n){t=function(e){var t=document.createEvent("MouseEvents");return t.initMouseEvent("click",!0,e.cancelable,window,0,e.screenX,e.screenY,e.clientX,e.clientY,!1,!0,!1,e.metaKey,e.button,e.relatedTarget),t}(e)}e.preventDefault(),e.stopPropagation(),this.dispatchEvent(t)}},downloadOnClick:function(e,t,n){var r=Nt,a=(n=n||{}).el||e.target;if("A"!==a.tagName&&(a=b()(a,"A")),a){var i=o.a.isGM&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"),s=!(!o.a.isGM||"undefined"==typeof GM_info||"Tampermonkey"!==GM_info.scriptHandler||Pt.preferences.downloads);if(o.a.isSafari||i||s){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(P.showTooltip)(a,{defaultWidth:400,defaultHeight:60},n);Object(P.hideTooltip)(a)}if(o.a.isSafari)return r.safariDlLink.call(a,e);Pt.preferences.downloads&&((o.a.isFirefox||o.a.isGM)&&/^blob:|^data:/.test(a.href)||2!==e.button&&(e.preventDefault(),!n.withoutPropagation&&e.stopPropagation(),Object(Et.a)({category:"download",subcategory:It()(),event:Tt()(n)}),r.downloadLink(a,t)))}},getQueryString:function(e,t,n){if(!e||"object"!=typeof e)return"";void 0===t&&(t=""),void 0===n&&(n="");var r="";for(var o in e)r.length&&(r+="&"),e[o]instanceof Object?(t||(t=""),n||(n=""),r+=Nt.getQueryString(e[o],t+o+"[","]"+n)):r+=t+escape(o)+n+"="+escape(e[o]);return r},decodeUnicodeEscapeSequence:function(e){return e.replace(/\\u([0-9a-f]{4})/g,(function(e,t){if(t=parseInt(t,16),!isNaN(t))return String.fromCharCode(t)}))},getFileExtension:function(e,t){var n=this.getMatchFirst(e,/\.([a-z0-9]{3,4})(\?|$)/i);return n?n.toLowerCase():t||""},getFileName:function(e){var t=this.getMatchFirst(e,/\/([^\?#\/]+\.[a-z\d]{2,6})(?:\?|#|$)/i);return t?I.a.modify(t):t},getTopLevelDomain:function(e){if(!e)return"";if(!e.match(/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}/))return e;var t=e.split("."),n=t.length;return 2==n?e:t[n-2]+"."+t[n-1]},dateToObj:function(e,t){var n=null==e?new Date:new Date(e);void 0===t&&(t=!0);var r={year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:n.getHours(),min:n.getMinutes(),sec:n.getSeconds()};if(t)for(var o in r)1==r[o].toString().length&&(r[o]="0"+r[o]);return r},utf8Encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},sizeHuman:function(e,t){null!=t&&null!=t||(t=2);var n=e,r=0,a="",i=[o.a.i18n.getMessage("vkFileSizeByte"),o.a.i18n.getMessage("vkFileSizeKByte"),o.a.i18n.getMessage("vkFileSizeMByte"),o.a.i18n.getMessage("vkFileSizeGByte"),o.a.i18n.getMessage("vkFileSizeTByte")];for(n<0&&(a="-",n=Math.abs(n));n>=1e3;)r++,n/=1024;if(t>=0){var s=10*t;n=Math.round(n*s)/s}return r<i.length?a+n+" "+i[r]:e},secondsToDuration:function(e){if(!e||isNaN(e))return"";function t(e){return e<10?"0"+e:e.toString()}var n=Math.floor(e/3600);e%=3600;var r=Math.floor(e/60);return e%=60,n>0?n+":"+t(r)+":"+t(e):r+":"+t(e)},svg:{icon:{download:"M 4,0 4,8 0,8 8,16 16,8 12,8 12,0 4,0 z",info:"M 8,1.55 C 11.6,1.55 14.4,4.44 14.4,8 14.4,11.6 11.6,14.4 8,14.4 4.44,14.4 1.55,11.6 1.55,8 1.55,4.44 4.44,1.55 8,1.55 M 8,0 C 3.58,0 0,3.58 0,8 0,12.4 3.58,16 8,16 12.4,16 16,12.4 16,8 16,3.58 12.4,0 8,0 L 8,0 z M 9.16,12.3 H 6.92 V 7.01 H 9.16 V 12.3 z M 8.04,5.91 C 7.36,5.91 6.81,5.36 6.81,4.68 6.81,4 7.36,3.45 8.04,3.45 8.72,3.45 9.27,4 9.27,4.68 9.27,5.36 8.72,5.91 8.04,5.91 z",noSound:"M 11.4,5.05 13,6.65 14.6,5.05 16,6.35 14.4,7.95 16,9.55 14.6,11 13,9.35 11.4,11 10,9.55 11.6,7.95 10,6.35 z M 8,1.75 8,14.3 4,10.5 l -4,0 0,-4.75 4,0 z",rocket:"M 11.371094 7.625 C 13.507812 5.074219 14.054688 1.523438 13.996094 0.445312 C 13.996094 0.328125 13.9375 0.226562 13.863281 0.136719 C 13.789062 0.0625 13.6875 0.00390625 13.554688 0.00390625 C 12.476562 -0.0546875 8.925781 0.476562 6.390625 2.613281 L 5.800781 2.390625 C 4.769531 2.007812 3.605469 2.320312 2.894531 3.160156 L 1.261719 5.089844 C 1.023438 5.355469 1.140625 5.78125 1.480469 5.898438 L 3.234375 6.550781 C 2.851562 7.199219 2.585938 7.742188 2.410156 8.125 C 2.261719 8.4375 2.335938 8.804688 2.585938 9.054688 L 4.945312 11.429688 C 5.179688 11.664062 5.550781 11.738281 5.875 11.589844 C 6.257812 11.414062 6.800781 11.148438 7.449219 10.765625 L 8.085938 12.519531 C 8.203125 12.859375 8.628906 12.960938 8.894531 12.738281 L 10.8125 11.105469 C 11.652344 10.394531 11.960938 9.230469 11.578125 8.199219 Z M 10.265625 5.78125 C 9.707031 6.34375 8.792969 6.34375 8.21875 5.78125 C 7.65625 5.222656 7.65625 4.308594 8.21875 3.734375 C 8.777344 3.171875 9.691406 3.171875 10.265625 3.734375 C 10.828125 4.308594 10.828125 5.222656 10.265625 5.78125 Z M 10.265625 5.78125 M 3.929688 12.03125 L 2.867188 13.078125 C 2.660156 13.285156 2.660156 13.640625 2.867188 13.84375 C 3.074219 14.050781 3.425781 14.050781 3.632812 13.84375 L 4.695312 12.785156 C 4.902344 12.578125 4.902344 12.222656 4.695312 12.015625 C 4.472656 11.8125 4.136719 11.8125 3.929688 12.03125 Z M 3.929688 12.03125 M 3.324219 10.675781 C 3.117188 10.46875 2.765625 10.46875 2.558594 10.675781 L 0.878906 12.371094 C 0.671875 12.578125 0.671875 12.929688 0.878906 13.136719 C 1.082031 13.34375 1.4375 13.34375 1.644531 13.136719 L 3.324219 11.429688 C 3.546875 11.222656 3.546875 10.882812 3.324219 10.675781 Z M 3.324219 10.675781 M 1.984375 10.085938 C 2.1875 9.878906 2.1875 9.527344 1.984375 9.320312 C 1.777344 9.113281 1.421875 9.113281 1.214844 9.320312 L 0.15625 10.382812 C -0.0507812 10.585938 -0.0507812 10.941406 0.15625 11.148438 C 0.359375 11.355469 0.714844 11.355469 0.921875 11.148438 Z M 1.984375 10.085938"},cache:{},getSrc:function(e,t){return this.icon[e]?(this.cache[e]||(this.cache[e]={}),this.cache[e][t]||(this.cache[e][t]=btoa('<?xml version="1.0" encoding="UTF-8"?><svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="16" height="16" viewBox="0 0 16 16" id="svg2" xml:space="preserve"><path d="'+this.icon[e]+'" fill="'+t+'" /></svg>')),this.cache[e][t]?"data:image/svg+xml;base64,"+this.cache[e][t]:""):""},getSvg:function(e,t,n,r){var o=document.createElementNS("http://www.w3.org/2000/svg","svg"),a=o.namespaceURI;o.setAttribute("width",n||"16"),o.setAttribute("height",r||n||"16"),o.setAttribute("viewBox","0 0 16 16");var i=document.createElementNS(a,"path");return o.appendChild(i),i.setAttribute("d",this.icon[e]),t&&i.setAttribute("fill",t),o}},appendDownloadInfo:function(e,t,n,r){t||(t="#a0a0a0");var a=document.createElement("span");a.appendChild(document.createTextNode(o.a.i18n.getMessage("downloadTitle"))),this.setStyle(a,{display:"inline-block",position:"relative",border:"1px solid "+t,borderRadius:"5px",fontSize:"13px",lineHeight:"17px",padding:"2px 19px 2px 5px",marginTop:"5px",opacity:.9}),n&&this.setStyle(a,n);var i=document.createElement("span");i.textContent=String.fromCharCode(215),this.setStyle(i,{color:t,width:"14px",height:"14px",fontSize:"14px",fontWeight:"bold",lineHeight:"14px",position:"absolute",top:0,right:0,overflow:"hidden",cursor:"pointer"}),r&&this.setStyle(i,r),i.addEventListener("click",(function(){a.parentNode.removeChild(a),o.a.sendMessage({action:"updateOption",key:"moduleShowDownloadInfo",value:0})}),!1),a.appendChild(i),e.appendChild(a)},getFileSizeIcon:function(e,t,n,r){var a=this;r=r||{},e=e||{},t=t||{},n=n||{};var i=function(e){return O.a.create("div",{style:t,append:[O.a.create(Nt.svg.getSvg("info",e),{style:n})]})},s=O.a.create("div",{style:e,append:[O.a.create(i("#333333"),{title:o.a.i18n.getMessage("getFileSizeTitle"),on:["click",function e(t){t.stopPropagation(),t.preventDefault(),s.textContent="...";var n=r.url;n||(n=r.link&&r.link.href),Object(L.a)({action:"getFileSize",url:n}).then((function(e){if(e.error||!e.fileSize)throw new Error(JSON.stringify(e));var t=e.fileType||"",n=a.sizeHuman(e.fileSize,2),i="";if(r.link&&/^audio\//i.test(t)){var u=parseInt(r.link.dataset.savefromHelperDuration);u>0&&(i+=Math.floor(e.fileSize/u/125),i+=" "+o.a.i18n.getMessage("kbps"))}var l="";l+=i?n+" ~ "+i:n,r.brackets&&(l="("+l+")"),s.textContent=l,s.title=t})).catch((function(t){var n;jt.error(t),"ZERO"===t.message?(n=i("#ffac00")).title=o.a.i18n.getMessage("getFileSizeTitle"):(n=i("#ff0000")).title=o.a.i18n.getMessage("getFileSizeFailTitle"),n.addEventListener("click",e),s.textContent="",s.appendChild(n)}))}]})]});return{node:s}},appendFileSizeIcon:function(e,t,n,r,a,i){t=t||{},n=n||{};var s="#333333";"0"===r?s="#ffac00":r?s="#ff0000":t.color&&(s=t.color);var u={width:"14px",height:"14px",marginLeft:"3px",verticalAlign:"middle",position:"relative",top:"-1px",cursor:"pointer"};Object.assign(u,t);var l={fontSize:"75%",fontWeight:"normal",marginLeft:"3px",whiteSpace:"nowrap"};Object.assign(l,n);var c=O.a.create("img",{src:Nt.svg.getSrc("info",s),title:r?o.a.i18n.getMessage("getFileSizeFailTitle"):o.a.i18n.getMessage("getFileSizeTitle"),style:u}),d=this;return i?i.appendChild(c):e.nextSibling?e.parentNode.insertBefore(c,e.nextSibling):e.parentNode.appendChild(c),c.addEventListener("click",(function(r){r.preventDefault(),r.stopPropagation();var i=O.a.create("span",{text:"...",style:l});c.parentNode.replaceChild(i,c);var s=function(r){if(r.fileSize>0){var s=r.fileType||"",u=d.sizeHuman(r.fileSize,2),l="";if(/^audio\//i.test(s)){var c=e.getAttribute("data-savefrom-helper-duration");(c=c&&parseInt(c))>0&&(l=Math.floor(r.fileSize/c/125),l+=" "+o.a.i18n.getMessage("kbps"))}var p="";p=l?u+" ~ "+l:u,a||(p="("+p+")"),i.textContent=p,i.title=s}else if(r.error){var f=d.appendFileSizeIcon(e,t,n,!0,a,document.createDocumentFragment());i.parentNode.replaceChild(f,i)}else{var m=d.appendFileSizeIcon(e,t,n,"0",a,document.createDocumentFragment());i.parentNode.replaceChild(m,i)}};return"ok.ru"===location.host?fetch(e.href,{method:"HEAD"}).then((function(e){return{fileSize:e.headers.get("content-length"),contentType:e.headers.get("content-type"),status:e.status,error:200!==e.status}})).then(s).catch((function(){return s({fileSize:0,error:!0})})):o.a.sendMessage({action:"getFileSize",url:e.href},s)}),!1),c},appendNoSoundIcon:function(e,t){var n="#ff0000";(t=t||{}).color&&(n=t.color);var r={width:"14px",height:"14px",marginLeft:"3px",verticalAlign:"middle",position:"relative",top:"-1px",cursor:"pointer"};Object.assign(r,t);var a=O.a.create("img",{src:Nt.svg.getSrc("noSound",n),title:o.a.i18n.getMessage("withoutAudio"),style:r});e.nextSibling?e.parentNode.insertBefore(a,e.nextSibling):e.parentNode?e.parentNode.appendChild(a):e.appendChild(a)},video:{dataAttr:"data-savefrom-video-visible",yt:{inited:!1,show3D:!1,showMP4NoAudio:!1,showFormat:{FLV:!0,MP4:!0,WebM:!1,"3GP":!1,"Audio AAC":!1,"Audio Vorbis":!1,"Audio Opus":!1},format:{FLV:{5:{quality:"240"},6:{quality:"270"},34:{quality:"360"},35:{quality:"480"}},MP4:{18:{quality:"360"},22:{quality:"720"},37:{quality:"1080"},38:{quality:"8K"},59:{quality:"480"},78:{quality:"480"},82:{quality:"360","3d":!0},83:{quality:"240","3d":!0},84:{quality:"720","3d":!0},85:{quality:"1080","3d":!0},160:{quality:"144",noAudio:!0},133:{quality:"240",noAudio:!0},134:{quality:"360",noAudio:!0},135:{quality:"480",noAudio:!0},136:{quality:"720",noAudio:!0},137:{quality:"1080",noAudio:!0},212:{quality:"480",noAudio:!0},213:{quality:"480",noAudio:!0},214:{quality:"720",noAudio:!0},215:{quality:"720",noAudio:!0},264:{quality:"1440",noAudio:!0},138:{quality:"8K",noAudio:!0},298:{quality:"720",noAudio:!0,sFps:!0},299:{quality:"1080",noAudio:!0,sFps:!0},266:{quality:"4K",noAudio:!0}},WebM:{43:{quality:"360"},44:{quality:"480"},45:{quality:"720"},46:{quality:"1080"},167:{quality:"360",noAudio:!0},168:{quality:"480",noAudio:!0},169:{quality:"720",noAudio:!0},170:{quality:"1080",noAudio:!0},218:{quality:"480",noAudio:!0},219:{quality:"480",noAudio:!0},242:{quality:"240",noAudio:!0},243:{quality:"360",noAudio:!0},244:{quality:"480",noAudio:!0},245:{quality:"480",noAudio:!0},246:{quality:"480",noAudio:!0},247:{quality:"720",noAudio:!0},248:{quality:"1080",noAudio:!0},271:{quality:"1440",noAudio:!0},272:{quality:"8K",noAudio:!0},278:{quality:"144",noAudio:!0},100:{quality:"360","3d":!0},101:{quality:"480","3d":!0},102:{quality:"720","3d":!0},302:{quality:"720",noAudio:!0,sFps:!0},303:{quality:"1080",noAudio:!0,sFps:!0},308:{quality:"1440",noAudio:!0,sFps:!0},313:{quality:"4K",noAudio:!0},315:{quality:"4K",noAudio:!0,sFps:!0},330:{quality:"144",noAudio:!0,sFps:!0},331:{quality:"240",noAudio:!0,sFps:!0},332:{quality:"360",noAudio:!0,sFps:!0},333:{quality:"480",noAudio:!0,sFps:!0},334:{quality:"720",noAudio:!0,sFps:!0},335:{quality:"1080",noAudio:!0,sFps:!0},336:{quality:"1440",noAudio:!0,sFps:!0},337:{quality:"2160",noAudio:!0,sFps:!0},398:{quality:"720",noAudio:!0},397:{quality:"480",noAudio:!0},396:{quality:"360",noAudio:!0},395:{quality:"240",noAudio:!0},394:{quality:"144",noAudio:!0}},"3GP":{17:{quality:"144"},36:{quality:"240"}},"Audio AAC":{139:{quality:"48",ext:"m4a",noVideo:!0},140:{quality:"128",ext:"m4a",noVideo:!0},141:{quality:"256",ext:"m4a",noVideo:!0},256:{quality:"192",ext:"m4a",noVideo:!0},258:{quality:"384",ext:"m4a",noVideo:!0},325:{quality:"384",ext:"m4a",noVideo:!0},328:{quality:"384",ext:"m4a",noVideo:!0},380:{quality:"384",ext:"m4a",noVideo:!0}},"Audio Vorbis":{171:{quality:"128",ext:"webm",noVideo:!0},172:{quality:"192",ext:"webm",noVideo:!0}},"Audio Opus":{249:{quality:"48",ext:"opus",noVideo:!0},250:{quality:"128",ext:"opus",noVideo:!0},251:{quality:"256",ext:"opus",noVideo:!0}}},init:function(){if(!Nt.video.yt.inited){["Audio AAC","Audio Vorbis","Audio Opus"].forEach((function(e){var t=Nt.video.yt.format[e];for(var n in t)t[n].quality+=" "+o.a.i18n.getMessage("kbps")})),Nt.video.yt.show3D="0"==Pt.preferences.ytHide3D,Nt.video.yt.showMP4NoAudio="0"==Pt.preferences.ytHideMP4NoAudio;var e=!1,t=!1;for(var n in Nt.video.yt.showFormat){var r="ytHide"+n.replace(" ","_");"ytHideAudio_AAC"===r&&(r="ytHideAudio_MP4");var a="0"==Pt.preferences[r];"Audio AAC"===n&&(t=a),Nt.video.yt.showFormat[n]=a,a&&(e=!0)}Nt.video.yt.showFormat["Audio Vorbis"]=t,Nt.video.yt.showFormat["Audio Opus"]=t,e||(Nt.video.yt.showFormat.FLV=!0),Nt.video.yt.inited=!0}},show:function(e,t,n,r,a){r=r||{};var i=document.createElement("div");Nt.setStyle(i,{display:"inline-block",margin:"0 auto"}),t.appendChild(i);var s=document.createElement("div");Nt.setStyle(s,{display:"inline-block",padding:"0 90px 0 0",position:"relative"}),i.appendChild(s);var u=document.createElement("table");Nt.setStyle(u,{emptyCells:"show",borderCollapse:"collapse",margin:"0 auto",padding:"0",width:"auto"}),s.appendChild(u);var l=!1;for(var c in Nt.video.yt.format)Nt.video.yt.append(e,c,Nt.video.yt.format[c],u,r,a)&&(l=!0);for(var c in e)if("ummy"!==c&&"ummyAudio"!==c&&"meta"!==c){Nt.video.yt.append(e,"",null,u,r,a)&&(l=!0);break}if(u.firstChild){if(l){var d=document.createElement("span");d.textContent=o.a.i18n.getMessage("more")+" "+String.fromCharCode(187),Nt.setStyle(d,{color:"#555",border:"1px solid #a0a0a0",borderRadius:"3px",display:"block",fontFamily:"Arial",fontSize:"15px",lineHeight:"17px",padding:"1px 5px",position:"absolute",bottom:"3px",right:"0",cursor:"pointer"}),r.btn&&"object"==typeof r.btn&&Nt.setStyle(d,r.btn),s.appendChild(d),d.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();for(var n=t.querySelectorAll("*["+Nt.video.dataAttr+"]"),r=0;r<n.length;r++){var a=n[r].getAttribute(Nt.video.dataAttr),i="none",s=String.fromCharCode(187);"0"==a?(a="1",i="",s=String.fromCharCode(171)):a="0",n[r].style.display=i,n[r].setAttribute(Nt.video.dataAttr,a),this.textContent=o.a.i18n.getMessage("more")+" "+s}return!1}),!1),1===n&&(u.querySelector("td a"),i.appendChild(document.createElement("br")),Nt.appendDownloadInfo(i,"#a0a0a0",null,{width:"16px",height:"16px",fontSize:"16px",lineHeight:"16px"}))}}else t.textContent=o.a.i18n.getMessage("noLinksFound")},append:function(e,t,n,r,a,i){var s=!1,u={whiteSpace:"nowrap"},l={fontSize:"75%",fontWeight:"normal",marginLeft:"3px",whiteSpace:"nowrap"},c=document.createElement("tr"),d=document.createElement("td");d.appendChild(document.createTextNode(t||"???")),t&&Nt.video.yt.showFormat[t]||(c.setAttribute(Nt.video.dataAttr,"0"),c.style.display="none",s=!0),Nt.setStyle(d,{border:"none",padding:"3px 15px 3px 0",textAlign:"left",verticalAlign:"middle"}),c.appendChild(d),d=document.createElement("td"),Nt.setStyle(d,{border:"none",padding:"3px 0",textAlign:"left",verticalAlign:"middle",lineHeight:"17px"}),c.appendChild(d);var p=e.meta||{},f=!1;if(n){for(var m in n)if(e[m]){var g=n[m].quality;f&&(d.lastChild.style.marginRight="15px",d.appendChild(document.createTextNode(" ")));var h=document.createElement("span");h.style.whiteSpace="nowrap";var v=document.createElement("a");if(v.href=e[m],v.title=o.a.i18n.getMessage("downloadTitle"),p[m]&&(p[m].quality&&(g=p[m].quality),n[m].sFps&&(g+=" "+(p[m].fps||60))),n[m]["3d"]?v.textContent="3D":v.textContent=g,i){var b=n[m].ext;b||(b=t.toLowerCase()),v.setAttribute("download",I.a.modify(i+"."+b)),v.addEventListener("click",(function(e){Nt.downloadOnClick(e)}),!1)}if(Nt.setStyle(v,u),a.link&&"object"==typeof a.link&&Nt.setStyle(v,a.link),h.appendChild(v),Nt.appendFileSizeIcon(v,a.fsIcon,a.fsText),n[m]["3d"]){Nt.video.yt.show3D||(s=!0,h.setAttribute(Nt.video.dataAttr,"0"),h.style.display="none");var y=document.createElement("span");y.textContent=g,Nt.setStyle(y,l),a.text&&"object"==typeof a.text&&Nt.setStyle(y,a.text),v.appendChild(y)}n[m].noAudio&&(Nt.video.yt.showMP4NoAudio||(s=!0,h.setAttribute(Nt.video.dataAttr,"0"),h.style.display="none"),Nt.appendNoSoundIcon(v,!!a&&a.noSoundIcon)),d.appendChild(h),f=!0,delete e[m]}}else for(var m in e){f&&(d.lastChild.style.marginRight="15px",d.appendChild(document.createTextNode(" ")));var k=document.createElement("span");k.style.whiteSpace="nowrap";var A=document.createElement("a");A.href=e[m],A.title=o.a.i18n.getMessage("downloadTitle"),A.textContent=m,Nt.setStyle(A,u),a.link&&"object"==typeof a.link&&Nt.setStyle(A,a.link),k.appendChild(A),Nt.appendFileSizeIcon(A,a.fsIcon,a.fsText),d.appendChild(k),f=!0,delete e[m]}if(!1!==f)return r.appendChild(c),s}}},playlist:{btnStyle:{display:"block",fontWeight:"bold",border:"none",textDecoration:"underline"},getFilelistHtml:function(e){if(e&&0!=e.length){for(var t,n=0,r="",a=0;a<e.length;a++)e[a].url&&(r+=e[a].url+"\r\n",n++);if(r)return n<5?n=5:n>14&&(n=14),O.a.create(document.createDocumentFragment(),{append:[O.a.create("p",{text:o.a.i18n.getMessage("filelistTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"5px"}}),O.a.create("p",{style:{marginBottom:"11px"},append:E()(o.a.i18n.getMessage("filelistInstruction"))}),O.a.create("p",{text:o.a.i18n.getMessage("vkFoundFiles").replace("%d",e.length),style:{color:"#000",marginBottom:"11px"},append:O.a.create("a",{text:o.a.i18n.getMessage("playlist"),href:"#",class:"sf__playlist",style:{display:"none",cssFloat:"right"}})}),t=O.a.create("textarea",{text:r,rows:n,cols:60,style:{width:"100%",whiteSpace:o.a.isFirefox||o.a.isGM&&!o.a.isTM?"normal":"nowrap"}}),o.a.isChrome||o.a.isFirefox?O.a.create("button",{text:o.a.i18n.getMessage("copy"),style:{height:"27px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",marginTop:"6px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"5px",fontSize:"14px",cursor:"pointer",cssFloat:"right"},on:["click",function(e){var n=this;n.disabled=!0,o.a.isFirefox?(t.select(),document.execCommand("copy")):o.a.sendMessage({action:"addToClipboard",text:r}),setTimeout((function(){n.disabled=!1}),1e3)}],append:O.a.create("style",{text:f()({"#savefrom_popup_box":{append:{"button:hover:not(:disabled)":{backgroundColor:"#597A9E !important",borderColor:"#597A9E !important",color:"#fff"},"button:active":{opacity:.9}}}})})}):void 0]})}},popupFilelist:function(e,t,n,r){var o=Nt.playlist.getFilelistHtml(e);if(o){var a=Nt.popupDiv(o,r);if(n){var i=a.querySelector("a.sf__playlist");i&&(i.addEventListener("click",(function(n){return setTimeout((function(){Nt.playlist.popupPlaylist(e,t,!0,r)}),100),n.preventDefault(),!1}),!1),Nt.setStyle(i,Nt.playlist.btnStyle))}}},getInfoPopupTemplate:function(){var e=O.a.create("div",{class:"sf-infoPopupTemplate",style:{width:"400px",minHeight:"40px"}}),t=O.a.create("div",{style:{backgroundSize:"48px",backgroundRepeat:"no-repeat",backgroundPosition:"center top",display:"inline-block",width:"60px",height:"60px",cssFloat:"left",marginTop:"16px",marginRight:"10px"}}),n=O.a.create("div",{style:{display:"inline-block",width:"330px"}}),r=O.a.create("div",{style:{textAlign:"right"},append:O.a.create("style",{text:f()({".sf-infoPopupTemplate":{append:[{"a.sf-button":{padding:"1px 6px",display:"inline-block",textAlign:"center",height:"23px",lineHeight:"23px",textDecoration:"none"}},{selector:["button:hover","a.sf-button:hover"],style:{backgroundColor:"#597A9E !important",borderColor:"#597A9E !important",color:"#fff"}}]}})})});return e.appendChild(t),e.appendChild(n),e.appendChild(r),{icon:t,buttonContainer:r,textContainer:n,body:e}},getM3U:function(e){for(var t="#EXTM3U\r\n",n=0;n<e.length;n++)e[n].duration||(e[n].duration="-1"),(e[n].title||e[n].duration)&&(t+="#EXTINF:"+e[n].duration+","+e[n].title+"\r\n"),t+=e[n].url+"\r\n";return t},getPlaylistHtml:function(e,t){if(e&&0!=e.length){var n=e.length,r=Nt.dateToObj(),a=r.year+"-"+r.month+"-"+r.day+" "+r.hour+"-"+r.min,i=Nt.playlist.getM3U(e);i=i.replace(/\r\n/g,"\n");var s=k()(i,"audio/x-mpegurl"),u=Nt.playlist.getInfoPopupTemplate();return o.a.sendMessage({action:"getWarningIcon",color:"#00CCFF",type:"playlist"},(function(e){u.icon.style.backgroundImage="url("+e+")"})),O.a.create(u.textContainer,{append:[O.a.create("p",{text:t||o.a.i18n.getMessage("playlistTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),O.a.create("p",{text:o.a.i18n.getMessage("playlistInstruction"),style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"}}),O.a.create("a",{text:o.a.i18n.getMessage("filelist")+" ("+n+")",href:"#",class:"sf__playlist",style:{display:"none",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"}})]}),t||(t="playlist"),t+=" "+a,O.a.create(u.buttonContainer,{append:[O.a.create("a",{text:o.a.i18n.getMessage("download"),href:s,download:I.a.modify(t+".m3u"),class:"sf-button",style:{width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"8px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}})]}),u.body}},popupPlaylist:function(e,t,n,r){var o=Nt.playlist.getPlaylistHtml(e,t);if(o){var a=Nt.popupDiv(o,r);if(n){var i=a.querySelector("a.sf__playlist");i&&(i.addEventListener("click",(function(n){return setTimeout((function(){Nt.playlist.popupFilelist(e,t,!0,r)}),100),n.preventDefault(),!1}),!1),i.style.display="inline",i=null)}for(var s,u=a.querySelectorAll("a[download]"),l=0;s=u[l];l++)s.addEventListener("click",Nt.downloadOnClick,!1)}}},popupCloseBtn:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAWUlEQVQ4y2NgGHHAH4j1sYjrQ+WIAvFA/B+I36MZpg8V+w9VQ9Al/5EwzDBkQ2AYr8uwaXiPQ0yfkKuwGUayIYQMI8kQqhlEFa9RLbCpFv1US5BUzSLDBAAARN9OlWGGF8kAAAAASUVORK5CYII=",popupDiv:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{docCloseEnable:!0};t||(t="savefrom_popup_box"),n||(n=580),r||(r=520);var i=document.getElementById(t);i&&i.parentNode.removeChild(i),i=O.a.create("div",{id:t,style:{zIndex:"9999",display:"block",cssFloat:"none",position:"fixed",margin:"0",padding:"0",visibility:"hidden",color:"#000",background:"#fff",border:"3px solid #c0cad5",borderRadius:"7px",overflow:"auto"}});var s=O.a.create("div",{style:{display:"block",cssFloat:"none",position:"relative",overflow:"auto",margin:"0",padding:"10px 15px"}});"function"==typeof e?e(s):s.appendChild(e);var u=O.a.create("img",{src:Nt.popupCloseBtn,alt:"x",width:18,height:18,style:{position:"absolute",top:"10px",right:"15px",opacity:"0.5",cursor:"pointer"},on:[["mouseenter",function(){this.style.opacity="0.9"}],["mouseleave",function(){this.style.opacity="0.5"}],["click",function(){return i.parentNode&&i.parentNode.removeChild(i),o&&o(),!1}]]});s.appendChild(u),i.appendChild(s),document.body.appendChild(i),i.offsetWidth>n&&(i.style.width=n+"px"),i.offsetHeight>r&&(i.style.height=r+"px",i.style.width=n+20+"px"),setTimeout((function(){var e=Math.floor((window.innerWidth-i.offsetWidth)/2),t=Math.floor((window.innerHeight-i.offsetHeight)/2);t<0&&(t=0),-1!==location.host.indexOf("youtu")&&t<92&&(t=92,i.style.height=i.offsetHeight-t-10+"px"),e<0&&(e=0),Nt.setStyle(i,{top:t+"px",left:e+"px",visibility:"visible"})}));var l=function e(t){if(a&&!a.docCloseEnable)return!1;var n=t.target;n===i||Nt.isParent(n,i)||(i.parentNode&&i.parentNode.removeChild(i),document.removeEventListener("click",e,!1),o&&o())};return setTimeout((function(){document.addEventListener("click",l,!1)}),100),i.addEventListener("close",(function(){i.parentNode&&i.parentNode.removeChild(i),document.removeEventListener("click",l,!1),o&&o()})),i.addEventListener("kill",(function(){i.parentNode&&i.parentNode.removeChild(i),document.removeEventListener("click",l,!1)})),i},popupDiv2:function(e){var t={id:"savefrom_popup_box",containerStyle:null,bodyStyle:null,content:null,container:null,body:null,_onClose:function(){document.removeEventListener("click",t._onClose),n.parentNode&&n.parentNode.removeChild(n),t.onClose&&t.onClose()}};Object.assign(t,e);var n=t.container=O.a.create("div",{id:t.id,style:{zIndex:9999,display:"block",position:"fixed",background:"#fff",border:"3px solid #c0cad5",borderRadius:"7px"},append:[O.a.create("style",{text:f()({selector:"#"+t.id,style:C.a})})],on:[["click",function(e){e.stopPropagation()}]]}),r=O.a.create("img",{src:Nt.popupCloseBtn,alt:"x",width:18,height:18,style:{position:"absolute",top:"10px",right:"15px",opacity:"0.5",cursor:"pointer"},on:[["mouseenter",function(){this.style.opacity="0.9"}],["mouseleave",function(){this.style.opacity="0.5"}],["click",t._onClose]]});n.appendChild(r);var o=t.body=O.a.create("div",{style:l()({display:"block",position:"relative",padding:"10px 15px",overflow:"auto"},t.bodyStyle)});return"function"==typeof t.content?t.content(o):o.appendChild(t.content),n.appendChild(o),document.body.appendChild(n),document.addEventListener("click",t._onClose),t},showTooltip:function(e,t,n,r){if(e){var o=document.querySelector(".savefrom-tooltip");o||((o=document.createElement("div")).className="savefrom-tooltip",Nt.setStyle(o,{position:"absolute",opacity:0,zIndex:-1}),r&&Nt.setStyle(o,r)),o.textContent=t,o.lastNode&&o.lastNode===e||(o.lastNode&&(w.a.off(o.lastNode,"mouseleave",i),w.a.off(o.lastNode,"mousemove",a),o.lastRow&&w.a.off(o.lastRow,"mouseleave",i)),o.lastNode=e,n&&(o.lastRow=n),w.a.on(e,"mouseleave",i),w.a.on(e,"mousemove",a,!1),n&&w.a.on(n,"mouseleave",i),document.body.appendChild(o)),a()}function a(t){void 0!==t&&t.stopPropagation();var n=Nt.getPosition(e),r=Nt.getSize(o);0==n.top&&0==n.left||(n.top=n.top-r.height-10,n.left=n.left-r.width/2+Nt.getSize(e).width/2,n.left=Math.min(n.left,document.body.clientWidth+document.body.scrollLeft-r.width),n.top<document.body.scrollTop&&(n.top=n.top+r.height+Nt.getSize(e).height+20),n.top+="px",n.left+="px",n.zIndex=9999,n.opacity=1,Nt.setStyle(o,n))}function i(){o.parentNode&&document.body.removeChild(o),o.lastNode=null,o.lastRow=null,Nt.setStyle(o,{zIndex:-1,opacity:0}),w.a.off(e,"mouseleave",i),w.a.off(e,"mousemove",a),n&&w.a.off(n,"mouseleave",i)}},embedDownloader:{dataAttr:"data-savefrom-get-links",dataIdAttr:"data-savefrom-container-id",containerClass:"savefrom-links-container",linkClass:"savefrom-link",panel:null,lastLink:null,style:null,hostings:{youtube:{re:[/^https?:\/\/(?:[a-z]+\.)?youtube\.com\/(?:#!?\/)?watch\?.*v=([\w\-]+)/i,/^https?:\/\/(?:[a-z0-9]+\.)?youtube\.com\/(?:embed|v)\/([\w\-]+)/i,/^https?:\/\/(?:[a-z]+\.)?youtu\.be\/([\w\-]+)/i],action:"getYoutubeLinks",prepareLinks:function(e){var t=[],n=Nt.video.yt.format,r=e.meta||{};for(var o in n)for(var a in n[o]){var i=r[a]||{};if(e[a]){var s=o;n[o][a].ext&&(s=n[o][a].ext);var u=n[o][a].quality;i.quality&&(u=i.quality),n[o][a].sFps&&(u+=" "+(i.fps||60)),n[o][a]["3d"]&&(u+=" (3d)"),t.push({name:o+" "+u,type:s,url:e[a],noSound:n[o][a].noAudio})}}return t}},vimeo:{re:[/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/(?:\w+\#)?(\d+)/i,/^https?:\/\/player\.vimeo\.com\/video\/(\d+)/i,/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/channels\/(?:[^\/]+)\/(\d+)$/i,/^https?:\/\/vimeo\.com\/(?:.+)clip_id=(\d+)/i],action:"getVimeoLinks",prepareLinks:function(e){return e.map((function(e){var t=e.ext;return t||(t="MP4",-1!=e.url.search(/\.flv($|\?)/i)&&(t="FLV")),e.name=e.name?e.name:t,e.type=e.type?e.type:t,e.ext=t,e}))}},vk:{re:[/^https?:\/\/(?:[\w\-]+\.)?(?:vk\.com|vkontakte\.ru)\/(?:[^\/]+\/)*(?:[\w\-\.]+\?.*z=)?(video-?\d+_-?\d+\?list=[0-9a-z]+|video-?\d+_-?\d+)/i,/^https?:\/\/(?:[\w\-]+\.)?(?:vk\.com|vkontakte\.ru)\/video_ext\.php\?(.+)/i],action:"getVKLinks"},dailymotion:{re:[/^http:\/\/(?:www\.)?dai\.ly\/([a-z0-9]+)_?/i,/^https?:\/\/(?:[\w]+\.)?dailymotion\.com(?:\/embed|\/swf)?\/video\/([a-z0-9]+)_?/i],action:"getDailymotionLinks"},facebook:{re:[/^https?:\/\/(?:[\w]+\.)?facebook\.com(?:\/video)?\/video.php.*[?&]{1}v=([0-9]+).*/i,/^https?:\/\/(?:[\w]+\.)?facebook\.com\/.+\/videos(?:\/\w[^\/]+)?\/(\d+)/i],action:"getFacebookLinks"}},init:function(e){this.style=e,this.panel&&Nt.popupMenu.removePanel(),this.panel=null,this.lastLink=null;var t,n=document.querySelectorAll("a["+this.dataAttr+"]"),r=n.length;for(t=0;t<r;t++)["savefrom.net","sf-addon.com"].indexOf(Nt.getTopLevelDomain(n[t].hostname))>-1&&(n[t].removeEventListener("click",this.onClick,!1),n[t].addEventListener("click",this.onClick,!1));document.body&&(document.body.removeEventListener("click",this.onBodyClick,!0),document.body.addEventListener("click",this.onBodyClick,!0))},checkUrl:function(e){for(var t in this.hostings)for(var n=this.hostings[t],r=0,o=n.re.length;r<o;r++){var a=e.match(n.re[r]);if(a)return{hosting:t,action:n.action,extVideoId:a[1]}}return null},reMapHosting:function(e){return{getYoutubeLinks:"youtube",getVimeoLinks:"vimeo",getDailymotionLinks:"dailymotion",getFacebookLinks:"facebook",getVKLinks:"vk"}[e]},onClick:function(e,t){var n=Nt.embedDownloader;if(!t){for(t=e.target;t.parentNode&&"A"!==t.nodeName;)t=t.parentNode;if(!t)return}var r=t.getAttribute("data-savefrom-get-links");if(r&&0===e.button&&!e.ctrlKey&&!e.shiftKey){if(n.lastLink===t&&n.panel&&"none"!=n.panel.style.display)return n.lastLink=null,n.panel.style.display="none",e.preventDefault(),void e.stopPropagation();n.lastLink=t;var a=n.checkUrl(r);if(a){e.preventDefault(),e.stopPropagation();var i={action:a.action,extVideoId:a.extVideoId};return n.showLinks(o.a.i18n.getMessage("download")+" ...",null,t),o.a.sendMessage(i,(function(e){var r=a.hosting;e.action!=i.action&&(r=n.reMapHosting(e.action)),e.links?n.showLinks(e.links,e.title,t,r,!0):n.showLinks(o.a.i18n.getMessage("noLinksFound"),null,t,void 0,!0)})),!1}}},onBodyClick:function(e){var t=Nt.embedDownloader,n=e.target;if(!t.panel||"none"==t.panel.style.display){if("A"!==n.tagName&&g()(n,"A "+n.tagName))for(;n.parentNode&&"A"!==n.tagName;)n=n.parentNode;if("A"!==n.nodeName)return;return n.hasAttribute(t.dataAttr)&&["savefrom.net","sf-addon.com"].indexOf(Nt.getTopLevelDomain(n.hostname))>-1?t.onClick(e,n):void 0}t.panel===n||t.panel.contains(n)||(t.lastLink=null,t.panel.style.display="none",e.preventDefault(),e.stopPropagation())},hidePanel:function(){this.panel&&(this.panel.style.display="none")},createMenu:function(e,t,n,r,a){var i=o.a.i18n.getMessage("noLinksFound");"string"==typeof e?i=e:void 0!==Nt.popupMenu.prepareLinks[r]&&e&&(i=Nt.popupMenu.prepareLinks[r](e,t));var s={links:i,button:n,popupId:void 0,showFileSize:!0,containerClass:this.containerClass,linkClass:this.linkClass,style:{popup:this.style?this.style.container:void 0,item:this.style?this.style.link:void 0},isUpdate:a};a&&this.panel?Nt.popupMenu.update(this.panel,s):this.panel=Nt.popupMenu.create(s)},showLinks:function(e,t,n,r,a){var i,s=n.getAttribute(this.dataIdAttr);if(s&&(i=document.getElementById(s)),i)if(this.panel&&(this.panel.style.display="none"),"string"==typeof e)i.textContent=e;else if(e&&0!=e.length){r&&this.hostings[r]&&this.hostings[r].prepareLinks&&(e=this.hostings[r].prepareLinks(e)),i.textContent="";for(var u=0;u<e.length;u++)if(e[u].url&&e[u].name){(n=document.createElement("a")).href=e[u].url,n.title=o.a.i18n.getMessage("downloadTitle"),n.appendChild(document.createTextNode(e[u].name));var l=document.createElement("span");l.className=this.linkClass,l.appendChild(n),i.appendChild(l),Nt.appendFileSizeIcon(n),e[u].noSound&&Nt.appendNoSoundIcon(n),t&&!e[u].noTitle&&e[u].type&&(n.setAttribute("download",I.a.modify(t+"."+e[u].type.toLowerCase())),n.addEventListener("click",Nt.downloadOnClick,!1))}}else i.textContent=o.a.i18n.getMessage("noLinksFound");else this.createMenu(e,t,n,r,a)}},popupMenu:{popupId:"sf_popupMenu",popup:void 0,popupStyle:void 0,dataArrtVisible:"data-isVisible",extStyleCache:void 0,ummyIcon:null,badgeQualityList:["8K","4K","2160","1440","1080","720","ummy","mp3","4320"],createProBadge:function(e){var t=this;return Object(he.a)(["userInfo"]).then((function(e){return e.userInfo&&e.userInfo.isPremium})).then((function(n){var r=O.a.create("div",{style:{display:"inline-block"}}),o={display:"inline-block",backgroundColor:"#505050",lineHeight:"18px",color:"#fff",fontSize:"12px",fontFamily:"'Roboto', sans-serif",borderRadius:"2px",verticalAlign:"middle",textAlign:"center",paddingRight:"2px",paddingLeft:"2px",fontWeight:"bold",marginLeft:"3px",borderBottomRightRadius:n?"2px":0,borderTopRightRadius:n?"2px":0},a=O.a.create("div",{text:t.prepareQualityLabel(e),style:o});if(r.appendChild(a),!n){var i=O.a.create("div",{text:"PRO",style:S(S({},o),{},{width:"auto",backgroundColor:"#54B85B",marginLeft:0,borderBottomRightRadius:"3px",borderTopRightRadius:"3px"})});r.appendChild(i)}return r}))},prepareQualityLabel:function(e){var t=String(e);return["1080","720","1440"].includes(t)?"HD":{2160:"4K",4320:"8K",hls:"HLS",1440:"QHD"}[t]||t.toUpperCase()},createBadge:function(e,t){t=t||{};var n={display:"inline-block",lineHeight:"18px",width:"19px",height:"17px",color:"#fff",fontSize:"12px",borderRadius:"2px",verticalAlign:"middle",textAlign:"center",paddingRight:"2px",fontWeight:"bold",marginLeft:"3px"};for(var r in t.containerStyle)n[r]=t.containerStyle[r];var o=O.a.create("div",{style:n});return"HLS"===e?(o.textContent="HLS",o.style.width="26px",o.style.paddingRight="1px",o.style.backgroundColor="#505050"):"1080"===e||"2160"===e||"1440"===e||"720"===e?(o.textContent="HD",o.style.backgroundColor="#505050",o.style.paddingRight="1px"):"8K"===e||"4K"===e?(o.textContent="HD",o.style.paddingRight="1px",o.style.backgroundColor="rgb(247, 180, 6)"):"mp3"!==e&&"MP3"!==e||(o.textContent="MP3",o.style.width="26px",o.style.paddingRight="1px",o.style.backgroundColor="#505050"),o},getTitleNode:function(e){var t=Nt.popupMenu,n=O.a.create("span",{style:{cssFloat:"left"}});if("converter"===e.extra){var r=document.createDocumentFragment();-1!==["MP3","8K","4K","1440","1080","720"].indexOf(e.format)?r.appendChild(t.createBadge(e.format,{containerStyle:{marginLeft:0}})):r.appendChild(document.createTextNode(e.format)),O.a.create(n,{append:[r," ",e.quality]}),r=null}else if(e.itemText)n.textContent=e.itemText;else{var o=e.quality?" "+e.quality:"";"mp3"===e.quality&&"pro"===e.itag&&(o="");var a=e.format?e.format:"???",i=e["3d"]?"3D ":"",s="";e.sFps&&(s+=" "+(e.fps||60)),n.textContent=i+a+o+s}return"pro"===e.itag?t.createProBadge(String(e.quality)).then((function(e){e&&n.appendChild(e)})):-1!==t.badgeQualityList.indexOf(String(e.quality))&&n.appendChild(t.createBadge(String(e.quality))),n},createPopupItem:function(e,t){var n,r=Nt.popupMenu;if("-"===(n="string"==typeof e?e:e.href))return{el:O.a.create("div",{style:{display:"block",margin:"1px 0",borderTop:"1px solid rgb(214, 214, 214)"}})};var a=document.createElement("-text-"===n?"div":"a");t.linkClass&&a.classList.add(t.linkClass);var i={display:"block",padding:"0 5px",textDecoration:"none",whiteSpace:"nowrap",overflow:"hidden"};if(e.isHidden&&(a.setAttribute(r.dataArrtVisible,"0"),i.display="none"),Nt.setStyle(a,i),"televzr"===e.itag){var s=document.createElement("div");return V()(Object(z.createElement)(Mt,{openUrl:e.href}),s),{el:s,prop:e}}if("-text-"===n)return a.style.lineHeight="22px",{el:a};if(a.href=n,"#"===n)return{el:a};if((o.a.isGM||o.a.isSafari)&&(e.extra||(a.title=o.a.i18n.getMessage("downloadTitle"))),e.forceDownload&&!e.forceConverter){var u="";if(e.title){var l=(e.ext||e.format||"").toLowerCase();l&&(l="."+l),u=e.title+l}a.setAttribute("download",I.a.modify(u)),a.addEventListener("click",(function(e){Nt.downloadOnClick(e,null,{el:this})}),!1)}var c=[];e.func&&(Array.isArray(e.func)?c.push.apply(c,e.func):c.push(e.func)),t.onItemClick&&-1===c.indexOf(t.onItemClick)&&c.push(t.onItemClick),c.length&&a.addEventListener("click",(function(t){var n=this;c.forEach((function(r){return r.call(n,t,e)}))}),!1),e.isBlank&&a.setAttribute("target","_blank"),a.appendChild(r.getTitleNode(e));var d=O.a.create("span",{style:{cssFloat:"right",lineHeight:"22px",height:"22px"}}),p={top:"5px",verticalAlign:"top"};for(var f in t.sizeIconStyle)p[f]=t.sizeIconStyle[f];e.noAudio&&Nt.appendNoSoundIcon(d,p);var m=null;return e.noSize||(d.addEventListener("click",(function e(t){"IMG"===d.firstChild.tagName&&(t.preventDefault(),t.stopPropagation(),w.a.trigger(d.firstChild,"click",{cancelable:!0})),this.removeEventListener("click",e)})),m=Nt.appendFileSizeIcon(a,p,{marginLeft:0},void 0,!0,d,e)),a.appendChild(d),{el:a,sizeIcon:m,prop:e}},sortMenuItems:function(e,t){void 0===t&&(t={});var n=["HLS","Audio Opus","Audio Vorbis","Audio AAC","3GP","WebM","FLV","MP4"],r={Mobile:280,LD:280,SD:360,HD:720,ummy:1};t.strQualityExtend&&Object.assign(r,t.strQualityExtend);var o={},a=[],i=[],s=[],u=[],l=[],c=[],d=[],p=[];e.forEach((function(e){var n=e.prop;t.noProp&&(n=e);var f=n.sort||{};if(!n.format)return p.push(e),1;if(n.isOther)p.push(e);else if(n.isSubtitle)u.push(e);else if(n.noVideo)a[n.quality]=parseInt(n.quality),s.push(e);else{var m=f.size||r[n.quality]||-1;if(-1===m&&(m="K"===String(n.quality).substr(-1)?1e3*parseInt(n.quality):parseInt(n.quality)),t.maxSize&&m>t.maxSize)return 1;if(t.minSize&&m<t.minSize)return 1;o[n.quality]=m,n.noAudio?n.sFps?l.push(e):c.push(e):n["3d"]?d.push(e):i.push(e)}}));var f=function(e,t){return e.noVideo&&t.noVideo?function(e,t){return a[e.quality]>a[t.quality]?-1:a[e.quality]===a[t.quality]?0:1}(e,t):e.noVideo?1:t.noVideo||n.indexOf(e.format)>n.indexOf(t.format)?-1:n.indexOf(e.format)===n.indexOf(t.format)?0:1},m=function(e,n){var r=e.prop,a=n.prop;t.noProp&&(r=e,a=n);var i=function(e,t){var n=o[e.quality],r=o[t.quality];return isNaN(n)&&isNaN(r)?0:isNaN(n)?-1:isNaN(r)?1:n>r?-1:n===r?0:1}(r,a);return 0!==i?i:f(r,a)};i.sort(m),d.sort(m),s.sort(m),l.sort(m),c.sort(m);var g=null;return t.typeList?(g=[],-1!==t.typeList.indexOf("video")&&(g=g.concat(i)),-1!==t.typeList.indexOf("3d")&&(g=g.concat(d)),-1!==t.typeList.indexOf("audio")&&(g=g.concat(s)),-1!==t.typeList.indexOf("mute")&&(g=g.concat(c)),-1!==t.typeList.indexOf("mute60")&&(g=g.concat(l)),-1!==t.typeList.indexOf("subtitles")&&(g=g.concat(u)),-1!==t.typeList.indexOf("other")&&(g=g.concat(p))):g=i.concat(d,s,u,l,c,p),t.groupCompare&&g.sort(m),g.sort((function(e,t){var n=e.itag||e.prop&&e.prop.itag,r=t.itag||t.prop&&t.prop.itag;return"pro"!==n&&"pro"!==r||n===r?0:"pro"===n?-1:1})),g},removePanel:function(){null!==this.popup.parentNode&&this.popup.parentNode.removeChild(this.popup),void 0!==this.popupStyle&&null!==this.popupStyle.parentNode&&this.popupStyle.parentNode.removeChild(this.popupStyle),this.popup=void 0,this.popupStyle=void 0},getContent:function(e){var t=this,n=e.links,r=document.createDocumentFragment(),a=[];if(e.title){var i=t.createPopupItem("-text-",e).el;i.textContent=e.title,i.style.color="rgb(109, 104, 104)",i.fontStyle="italic",r.appendChild(i)}if("string"==typeof n){var s=t.createPopupItem("-text-",e).el;s.textContent=n,r.appendChild(s)}else if(0===n.length){var u=t.createPopupItem("-text-",e).el;u.textContent=o.a.i18n.getMessage("noLinksFound"),r.appendChild(u)}else{var l=[];n.forEach((function(n){l.push(t.createPopupItem(n,e))})),l=t.sortMenuItems(l,e.sortDetails),V()(Object(z.createElement)(bt),r);var c=[];l.forEach((function(t){if(t.prop.isHidden)return c.push(t.el),1;r.appendChild(t.el),e.showFileSize&&t.sizeIcon&&a.push(t.sizeIcon)})),e.visibleCount=l.length-c.length,c.length>0&&(e.getHiddenListFunc?r.appendChild(e.getHiddenListFunc(c,e)):V()(Object(z.createElement)(nt,{SaveFrom_Utils:Nt,hiddenItems:l.filter((function(e){return e.prop.isHidden})).map((function(e){return e.prop}))}),r))}return{sizeIconList:a,content:r}},selectedAudioLanguage:null,updateSelectedAudioLanguage:function(e){var t=Nt.popupMenu;return t.selectedAudioLanguage=e,t.selectedAudioLanguage},changeSelectedAudioLanguage:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Nt.popupMenu;n.updateSelectedAudioLanguage(e),t&&n.update(n.popup,t)},getLanguageList:function(e){if(e.multiLang){var t,n,o,a=document.createDocumentFragment(),i=Nt.popupMenu,s=e.multiLang,u=s.variants,l=s.audioDefault,c=function(t,n){var o=e;n.key!==l.audioTrack.id?o.links=o.links.map((function(e){if(!1===e.isHidden&&(e.isHidden=!0,e.wasShown=!0),"muxer"===e.itag){var t=e.mmProps.sources.filter((function(e){return"m4a"!==e.format}));e.func=function(o){o.preventDefault(),V()(Object(z.createElement)(q.a,S(S({},e.mmProps),{},{sources:[].concat(Object(r.a)(t),[{url:u[n.key].url,format:"m4a"}])})),"sf-muxer-parent")}}return e})):o.links=o.links.map((function(e){return e.wasShown&&(e.isHidden=!1),"muxer"===e.itag&&(e.func=function(t){t.preventDefault(),V()(Object(z.createElement)(q.a,e.mmProps),"sf-muxer-parent")}),e})),i.changeSelectedAudioLanguage(u[n.key],o)},d=Object.values(u).map((function(e){return{langName:e.audioTrack.displayName,func:c,key:e.audioTrack.id}})),p=d.filter((function(e){return e.langName===l.audioTrack.displayName})).pop(),f=d.indexOf(p);return-1!==f&&(d.splice(f,1),p.langName+="(default)",d.unshift(p)),V()(Object(z.createElement)(mt,{SaveFrom_Utils:Nt,hiddenItems:d,defaultLang:l,selectedLanguage:null!==(t=null===(n=i.selectedAudioLanguage)||void 0===n||null===(o=n.audioTrack)||void 0===o?void 0:o.displayName)&&void 0!==t?t:l.audioTrack.displayName}),a),a}return null},create:function(e){var t=e.button,n=Nt.popupMenu;if(e.linkClass=e.linkClass||"sf-menu-item",e.offsetRight=e.offsetRight||0,e.offsetTop=e.offsetTop||0,e.parent=e.parent||document.body,!e.isUpdate||void 0!==n.popup&&"none"!==n.popup.style.display){n.popup&&n.removePanel();var r=n.popup=document.createElement("div"),o="#"+n.popupId;e.popupId?(o="#"+e.popupId,r.id=e.popupId):e.containerClass?(o="."+e.containerClass,r.classList.add(e.containerClass)):r.id=n.popupId;var a={display:"block",position:"absolute",minHeight:"24px",cursor:"default",textAlign:"left",whiteSpace:"nowrap",fontFamily:"arial, sans-serif"};e.extStyle&&delete a.display;var i=Nt.getPosition(t,e.parent),s=Nt.getSize(t);a.top=i.top+e.offsetTop+s.height+"px",a.left=i.left+e.offsetRight+"px",Nt.setStyle(r,a);var u={"background-color":"#fff","z-index":"9999","box-shadow":"0 2px 10px 0 rgba(0,0,0,0.2)",border:"1px solid #ccc","border-radius":"3px","font-size":"12px","font-weight":"bold","min-width":"190px"};if(e.style&&e.style.popup)for(var l in e.style.popup){var c=e.style.popup[l];u[l]=c}Nt.addStyleRules(o,u);var d={"line-height":"24px",color:"#3D3D3D"};if(e.style&&e.style.item)for(var l in e.style.item)c=e.style.item[l],d[l]=c;Nt.addStyleRules(o+" ."+e.linkClass,d);var p=function(e){e.stopPropagation()};for(O.a.create(r,{on:[["click",p],["mouseover",p],["mouseup",p],["mousedown",p],["mouseout",p]]});null!==r.firstChild;)r.removeChild(r.firstChild);var m=n.getContent.call(n,e),g=m.sizeIconList;m=m.content,r.appendChild(m);var h="#2F8AFF",v="#fff";e.style&&e.style.hover&&(h=e.style.hover.backgroundColor||h,v=e.style.hover.color||v);var b=n.popupStyle=document.createElement("style");if(b.textContent=f()({selector:o,append:{"a:hover":{backgroundColor:h,color:v},"> a:first-child":{borderTopLeftRadius:"3px",borderTopRightRadius:"3px"},"> a:last-child":{borderBottomLeftRadius:"3px",borderBottomRightRadius:"3px"}}}),e.parent.appendChild(b),e.parent.appendChild(r),e.extStyle){void 0!==Nt.popupMenu.extStyleCache&&null!==Nt.popupMenu.extStyleCache.parentNode&&Nt.popupMenu.extStyleCache.parentNode.removeChild(Nt.popupMenu.extStyleCache);var y="sf-extElStyle_"+o.substr(1),k="sf-extBodyStyle_"+o.substr(1);null===document.querySelector("style."+k)&&document.body.appendChild(O.a.create("style",{class:k,text:f()({selector:o,style:{display:"none"}})})),Nt.popupMenu.extStyleCache=e.extStyle.appendChild(O.a.create("style",{class:y,text:f()({selector:"body "+o,style:{display:"block"}})}))}return setTimeout((function(){g.forEach((function(e){w.a.trigger(e,"click",{bubbles:!1,cancelable:!0})}))})),r}},update:function(e,t){for(var n=Nt.popupMenu;null!==e.firstChild;)e.removeChild(e.firstChild);if(t.multiLang){var r=n.getLanguageList(t);n.selectedAudioLanguage||n.updateSelectedAudioLanguage(t.multiLang.audioDefault),r&&e.appendChild(r)}var o=n.getContent.call(n,t),a=o.sizeIconList;o=o.content,e.appendChild(o),setTimeout((function(){a.forEach((function(e){w.a.trigger(e,"click",{bubbles:!1,cancelable:!0})}))}))},preprocessItem:{srt2url:function(e,t){var n=e.srt,r=k()(n,"text/plain");t.ext="srt",t.format="SRT",t.href=r,t.noSize=!0}},prepareLinks:{youtube:function(e,t,n,r){r=r||{},n=n||[],e=Object.assign({},e);var a=Nt.video.yt;a.init();var i=[],s=null,u=e.meta||{};Object.keys(a.format).forEach((function(n){var r=a.format[n];return Object.keys(r).forEach((function(o){var l=e[o];if(l){var c=!1;a.showFormat[n]||(c=!0);var d=r[o];d["3d"]&&!a.show3D&&(c=!0),d.noAudio&&!a.showMP4NoAudio&&(c=!0),s={href:l,isHidden:c,title:t,format:n,itag:o,forceDownload:!0},Object.assign(s,d);var p=u[o];p&&(p.quality&&(s.quality=p.quality),p.fps&&(s.fps=p.fps)),i.push(s),delete e[o]}}))})),e.televzr&&(i.push({itag:"televzr",format:"televzr",quality:"televzr",href:e.televzr,noSize:!0}),delete e.televzr),Pt.preferences.ffmpegEnabled&&u.muxer&&(s={href:"#muxer",fps:u.muxer.fps,quality:u.muxer.quality,format:u.muxer.format,itag:"muxer",uQuality:u.muxer.quality,noSize:!0,mmProps:u.muxer.mmProps,func:function(e){e.preventDefault(),e.stopPropagation(),o.a.sendMessage({action:"checkAndOpenProLanding",id:"muxer"}),V()(Object(z.createElement)(q.a,u.muxer.mmProps),"sf-muxer-parent"),o.a.sendMessage({action:"track",t:"event",tid:"G-L0GP1RQSBJ",el:"mp4_".concat(u.muxer.quality,"_conv"),ec:"download",ea:"mp4_".concat(u.muxer.quality,"_conv")})}},i.push(s)),Object.keys(e).forEach((function(n){"meta"!==n&&"multiLang"!==n&&(s={href:e[n],isHidden:!0,title:t,quality:n,itag:n,forceDownload:!0},i.push(s),delete e[n])})),Object.keys(e.meta).forEach((function(t){if(-1!==t.indexOf("pro")){var n=e.meta[t];i.push({href:"#pro",isHidden:!1,noSize:!0,format:n.format,noVideo:n.noVideo,itag:"pro",func:function(e){e.preventDefault(),w.a.trigger(document,"mousedown");var t=document.body.querySelector("#savefrom__yt_btn"),r=Boolean(document.body.querySelector("#sfYtFrameBtn")),o={position:"absolute"};!t&&r&&(o.right="0",t=document.body.querySelector(".sf-btn-ctr")),t||(o.position="relative",t=O.a.create("div",{style:{position:"fixed",zIndex:999999,bottom:"30px",right:"0"}}),document.body.appendChild(t)),V()(Object(z.createElement)(Be,{link:n,positionStyle:o}),t)},quality:String(n.quality)})}})),n.forEach((function(e){s={href:e.url,isHidden:!0,quality:"SRT"+(e.isAuto?"A":""),itemText:o.a.i18n.getMessage("subtitles")+" ("+e.lang+")",title:t+"-"+e.langCode,ext:"vtt",format:"VTT",isSubtitle:!0,langCode:e.langCode,forceDownload:!0},"srt2url"===e.preprocess&&Nt.popupMenu.preprocessItem.srt2url(e,s),i.push(s)})),u.extra&&u.extra.forEach((function(e){s={href:"#"+e.extra,noSize:!0,isHidden:!1},Object.assign(s,e),e.itag&&Object.keys(a.format).some((function(t){var n=a.format[t][e.itag];if(n)return Object.assign(s,n),!0})),e.request&&(s.func=function(t){return t.preventDefault(),o.a.sendMessage(e.request)}),s.noAudio=!1,i.push(s)}));var l={menuLinks:i};return e.multiLang&&(l.multiLang=e.multiLang),l},vimeo:function(e,t){var n,r=[];return e.forEach((function(e){var o=e.ext;o||(o="mp4",-1!=e.url.search(/\.flv($|\?)/i)&&(o="flv"));var a=e.height||"",i=e.type;n={href:e.url,title:t,ext:o,format:i,quality:a,forceDownload:!0},r.push(n)})),r},vk:function(e,t){var n,r=[];return e.forEach((function(e){var o=e.name||e.ext;o&&(o=o.toLowerCase());var a=o&&o.toUpperCase()||"",i=e.subname||"";n={href:e.url,title:t,ext:o,format:a,quality:i,forceDownload:!0},r.push(n)})),r},dailymotion:function(e,t){var n=[];return e.forEach((function(e){var r=null;"ummy"===e.extra?(r={href:e.url,quality:"ummy",noSize:!0,format:"ummy",videoId:e.videoId,sort:{size:480}},"ummyAudio"===e.type&&(r.uQuality="mp3",r.uIsAudio=!0)):r={href:e.url,title:t,ext:e.ext,format:e.ext,quality:e.height||"",forceDownload:!0},n.push(r)})),n},facebook:function(e,t){var n,r=[];return e.forEach((function(e){var o=e.ext,a=o?o.toUpperCase():"",i=e.name;n={href:e.url,title:t,ext:o,format:a,quality:i,forceDownload:!0},r.push(n)})),r},rutube:function(e){if(Array.isArray(e)&&(e=e[0]),"string"==typeof e){var t=e.match(/\/embed\/(\d+)/);return(t=t&&t[1]||void 0)||(t=(t=e.match(/\/video\/([0-9a-z]+)/))&&t[1]||void 0),/\/\/video\./.test(e)&&(e=e.replace(/\/\/video\./,"//"),t||(t=(t=e.match(/\/(\d+)$/))&&t[1]||void 0)),t&&(t="rt-"+t),[]}},mailru:function(e,t){var n,r=[];return e.forEach((function(e){var o=e.ext,a=e.name,i=e.subname;n={href:e.url,title:t,ext:o,format:a,quality:i,forceDownload:!0},r.push(n)})),r}},quickInsert:function(e,t,n,r){r=r||{};var o={},a=function t(n){n&&(n.target===e||e.contains(n.target))||o.isShow&&(s.style.display="none",w.a.off(document,"mousedown",t),o.isShow=!1,r.onHide&&r.onHide(s))},i={links:t,button:e,popupId:n,showFileSize:!0};Object.assign(i,r);var s=Nt.popupMenu.create(i);return r.onShow&&r.onShow(s),w.a.off(document,"mousedown",a),w.a.on(document,"mousedown",a),Object.assign(o,{button:e,isShow:!0,el:s,hide:a,update:function(e,t,n){t&&(i.title=t),i.links=e,i.multiLang=n,Nt.popupMenu.update(s,i)}})}},frameMenu:{getBtn:function(e){var t={verticalAlign:"middle",position:"absolute",zIndex:999,fontFamily:"arial, sans-serif"};for(var n in e.containerStyle)t[n]=e.containerStyle[n];var r=e.quickBtnStyleObj||{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid rgba(255, 255, 255, 0.4)",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingRight:0,paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff"};e.singleBtn&&!e.quickBtnStyleObj&&(delete r.borderTopRightRadius,delete r.borderBottomRightRadius);var o={position:"relative",display:"inline-block",fontSize:"inherit",height:"24px",padding:0,paddingRight:"21px",border:"1px solid rgba(255, 255, 255, 0.4)",borderLeft:0,borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#fff",zIndex:0,verticalAlign:"middle",marginLeft:0,boxSizing:"border-box",lineHeight:"22px"};for(var n in e.selectBtnStyle)o[n]=e.selectBtnStyle[n];var a,i=e.quickBtnIcon||O.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+Nt.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}}),s=e.selectBtnIcon||O.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #FFF",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}}),u=O.a.create("div",{id:e.btnId,style:t,on:e.on,append:[a=O.a.create("a",{class:"sf-quick-btn",style:r,href:"#",append:[i]}),O.a.create("style",{text:f()({selector:"#"+e.btnId,style:e.nodeCssStyle||{opacity:.8,display:"none"},append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-btn":e.quickBtnCssStyle||{backgroundColor:"rgba(28,28,28,0.1)"},".sf-select-btn":{backgroundColor:"rgba(28,28,28,0.1)"}},{selector:[":hover",".sf-over"],join:"",style:{opacity:1},append:{".sf-quick-btn":e.quickBtnOverCssStyle||{backgroundColor:"rgba(0, 163, 80, 0.5)"},".sf-select-btn":{backgroundColor:"rgba(60, 60, 60, 0.5)"}}},{join:"",".sf-over":{append:{".sf-select-btn":{backgroundColor:"rgba(28,28,28,0.8)"}}},".sf-show":{display:"block"}}]})})]}),l=null,c=null;return e.singleBtn||(c=function(e){var t="object"==typeof e?e:document.createTextNode(e),n=l.firstChild;n===s?l.insertBefore(t,n):l.replaceChild(t,n)},l=O.a.create("button",{class:"sf-select-btn",style:o,on:e.onSelectBtn,append:[s]}),u.appendChild(l)),{node:u,setQuality:c,setLoadingState:function(){c(O.a.create("img",{src:Nt.svg.getSrc("info","#ffffff"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:"-1px",position:"relative"}}))},selectBtn:l,quickBtn:a}},getHiddenList:function(e,t){var n=Nt.popupMenu,r=n.createPopupItem("-text-",t).el;O.a.create(r,{text:o.a.i18n.getMessage("more")+" "+String.fromCharCode(187),style:{cursor:"pointer"},on:["click",function(){for(var e,t=this.parentNode.querySelectorAll("*["+n.dataArrtVisible+"]"),r=0;e=t[r];r++)e.style.display="block",e.setAttribute(n.dataArrtVisible,1);this.parentNode.removeChild(this)}]});var a=document.createDocumentFragment();return a.appendChild(r),O.a.create(a,{append:e}),0===t.visibleCount&&w.a.trigger(r,"click",{cancelable:!0}),a},getMenuContainer:function(e){var t=Nt.popupMenu,n=e.button,r=e.popupId,o=O.a.create("div",{style:{position:"absolute",minHeight:"24px",cursor:"default",textAlign:"left",whiteSpace:"nowrap",overflow:"auto"}});"#"===r[0]?o.id=r.substr(1):o.classList.add(r);var a=t.getContent(e);o.appendChild(a.content),setTimeout((function(){a.sizeIconList.forEach((function(e){w.a.trigger(e,"click",{bubbles:!1,cancelable:!0})}))}));var i=Nt.getPosition(n,e.parent),s=Nt.getSize(n),u=function(e){e.stopPropagation()},l=i.top+s.height,c={top:l+"px",maxHeight:document.body.offsetHeight-l-40+"px"};return e.leftMenuPos?c.left=i.left+"px":c.right=document.body.offsetWidth-i.left-s.width+"px",O.a.create(o,{style:c,on:[["click",u],["mouseover",u],["mouseup",u],["mousedown",u],["mouseout",u],["wheel",function(e){(e.wheelDeltaY>0&&0===this.scrollTop||e.wheelDeltaY<0&&this.scrollHeight-(this.offsetHeight+this.scrollTop)<=0)&&e.preventDefault()}]],append:[O.a.create("style",{text:f()({selector:("#"===r[0]?"":".")+r,style:{display:"none",fontFamily:"arial, sans-serif",backgroundColor:"rgba(28,28,28,0.8)",zIndex:9999,borderRadius:"4px",fontSize:"12px",fontWeight:"bold",minWidth:"190px",color:"#fff"},append:[{join:"",".sf-show":{display:"block"},"::-webkit-scrollbar-track":{backgroundColor:"#424242"},"::-webkit-scrollbar":{width:"10px",backgroundColor:"#424242"},"::-webkit-scrollbar-thumb":{backgroundColor:"#8e8e8e"}},{".sf-menu-item":{lineHeight:"24px",color:"#fff"},".sf-menu-item:hover":{backgroundColor:"#1c1c1c"}}]})})]}),o},getMenu:function(e,t,n,r){var o={links:t,button:e,popupId:n||"#sf-frame-menu",showFileSize:!0,sizeIconStyle:{color:"#fff"},linkClass:"sf-menu-item",bindUmmyInfoDetails:{posLeft:!0,widthLimit:480,container:r.container,createUmmyInfoDetails:{posLeft:!0,darkTheme:!0}},getHiddenListFunc:this.getHiddenList.bind(this)};for(var a in r)o[a]=r[a];var i=this.getMenuContainer(o);(o.container||document.body).appendChild(i);var s=function(){i.parentNode&&i.parentNode.removeChild(i),u.isShow=!1,o.onHide&&o.onHide()};o.onShow&&o.onShow(i),w.a.off(document,"mousedown",s),w.a.on(document,"mousedown",s);var u={isShow:!0,el:i,hide:s,update:function(e){var t=Nt.popupMenu,n=i.lastChild;i.textContent="",o.links=e;var r=t.getContent(o);setTimeout((function(){r.sizeIconList.forEach((function(e){w.a.trigger(e,"click",{bubbles:!1,cancelable:!0})}))})),i.appendChild(r.content),i.appendChild(n)}};return u}},mobileLightBox:{id:"sf-lightbox",clear:function(){var e=document.getElementById(Nt.mobileLightBox.id);null!==e&&e.parentNode.removeChild(e)},getTitle:function(e){var t=[];if(t.push(e.format||"???"),e.quality){var n=e.quality;e.sFps&&(n+=" "+(e.fps||60)),t.push(n)}return e["3d"]&&t.push("3D"),e.noAudio&&t.push(o.a.i18n.getMessage("withoutAudio")),t.join(" ")},createItem:function(e){var t=Nt.mobileLightBox,n=O.a.create("a",{style:{display:"block",marginBottom:"6px",border:"solid 1px #d3d3d3",lineHeight:"36px",minHeight:"36px",background:"#f8f8f8",verticalAlign:"middle",fontSize:"15px",textAlign:"center",color:"#333",borderRadius:"2px",overflow:"hidden",position:"relative"}}),r="";if(e.title){var o=(e.ext||e.format||"").toLowerCase();o&&(o="."+o),r=I.a.modify(e.title+o)}if("string"==typeof e)return n.textContent=e,n;if(n.href=e.href,n.download=r,n.textContent=t.getTitle(e),n.addEventListener("click",(function(t){e.func&&e.func(t),"muxer"!==e.itag&&e.forceDownload&&Nt.downloadOnClick(t,null,{el:this})})),e.isHidden&&(n.classList.add("isOptional"),n.style.display="none"),!e.noSize){var a=Nt.getFileSizeIcon({cssFloat:"right",lineHeight:"36px",fontSize:"75%",marginRight:"10px"},{padding:"10px",verticalAlign:"middle",lineHeight:0},{width:"16px",height:"16px"},{url:e.href});n.appendChild(a.node)}return n},getItems:function(e){var t=Nt.mobileLightBox;if("string"==typeof e)return{list:[t.createItem(e)],hiddenCount:0};for(var n,r=[],o=0;n=e[o];o++)["ummy","televzr"].includes(n.quality)||n.extra||r.push({el:t.createItem(n),prop:n});r=Nt.popupMenu.sortMenuItems(r);var a=[],i=[];for(o=0;n=r[o];o++)n.prop.isHidden?i.push(n.el):a.push(n.el);return{list:a.concat(i),hiddenCount:i.length}},show:function(e){var t,n=Nt.mobileLightBox,r=window.pageYOffset,a=window.innerHeight,i=parseInt(a/100*15),s=void 0,u=function(e){return a-46*(e?2:1)-2*i},l=function(e){e.hiddenCount>0?(s.style.height=u(1)+"px",t.style.display="block"):(t.style.display="none",s.style.height=u(0)+"px"),e.hiddenCount===e.list.length&&c(t)},c=function(e){var t="none",n=e.parentNode.querySelectorAll(".isOptional");"open"!==e.dataset.state?(e.dataset.state="open",e.textContent=o.a.i18n.getMessage("more")+" "+String.fromCharCode(171),t="block"):(e.dataset.state="close",e.textContent=o.a.i18n.getMessage("more")+" "+String.fromCharCode(187));for(var r,a=0;r=n[a];a++)r.style.display=t},d=document.getElementById(n.id);null!==d&&d.parentNode.removeChild(d);var p=window.innerWidth;p=p<=250?"90%":"70%",e&&0!==e.length||(e=o.a.i18n.getMessage("noLinksFound"));var f=n.getItems(e),m=O.a.create("div",{id:n.id,style:{position:"absolute",top:0,left:0,width:"100%",zIndex:9e3,height:document.body.scrollHeight+"px",background:"rgba(0,0,0,0.85)",textAlign:"center",boxSizing:"content-box"},on:[["click",function(e){e.preventDefault(),v()}]],append:O.a.create("div",{style:{display:"inline-block",width:p,backgroundColor:"#eee",height:a-2*i+"px",marginTop:i+r+"px",borderRadius:"4px",padding:"8px",position:"relative",boxSizing:"content-box"},append:[s=O.a.create("div",{style:{overflowY:"auto",marginBottom:"6px"},append:f.list,on:["touchmove",function(e){e.stopPropagation()}]}),t=O.a.create(n.createItem(o.a.i18n.getMessage("more")+" "+String.fromCharCode(187)),{href:"#",on:["click",function(e){e.preventDefault(),c(this)}]}),O.a.create(n.createItem(o.a.i18n.getMessage("close")),{style:{marginBottom:0},on:["click",function(e){e.preventDefault(),v()}]})],on:["click",function(e){e.stopPropagation()}]})});l(f),document.body.appendChild(m);var g=document.body.scrollTop,h={},v=function(){h.isShow&&(document.body.scrollTop=g,h.hide())};return Object.assign(h,{isShow:!0,el:m,hide:function(){m.parentNode&&m.parentNode.removeChild(m),h.isShow=!1},close:v,update:function(e){if(null!==m.parentNode){e&&0!==e.length||(e=o.a.i18n.getMessage("noLinksFound")),s.textContent="";var t=n.getItems(e);O.a.create(s,{append:t.list}),l(t)}}})}},bridge:function(e){e.args=e.args||[],void 0===e.timeout&&(e.timeout=300);var t="sf-bridge-"+parseInt(1e3*Math.random())+"-"+Date.now();window.addEventListener("sf-bridge-"+t,(function n(r){var o;window.removeEventListener("sf-bridge-"+t,n),o=r.detail?JSON.parse(r.detail):void 0,e.cb(o)}));var n='(function(func,args,scriptId,timeout){/* fix */var node=document.getElementById(scriptId);if(node){node.parentNode.removeChild(node)}var fired=false;var done=function done(data){if(fired){return}fired=true;var event=new CustomEvent("sf-bridge-"+scriptId,{detail:JSON.stringify(data)});window.dispatchEvent(event)};timeout&&setTimeout(function(){done()},timeout);args.push(done);func.apply(null,args)})('+[e.func.toString(),JSON.stringify(e.args),JSON.stringify(t),parseInt(e.timeout)].join(",")+");";o.a.isSafari&&(n=n.replace("/* fix */",'(function(){"undefined"==typeof CustomEvent&&(CustomEvent=function CustomEvent(e,t){t=t||{bubbles:!1,cancelable:!1};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n},CustomEvent.prototype=window.Event.prototype)})();'));var r=O.a.create("script",{id:t,text:n});document.body.appendChild(r)},openMediaOnSaveFrom:function(e){window.open("https://ru.savefrom.net/#url="+e,"_blank")},TutorialTooltip:function(e){var t=this;this.details={btnTopOffset:-3,btnLeftOffset:0},Object.assign(this.details,e),this.onResize=this.onResize.bind(this),this.onResizeDebouce=d()(this.onResize,250),this.onClose=this.onClose.bind(this),this.target=e.target,"1"!==this.target.dataset.sfHasTooltip&&(this.target.dataset.sfHasTooltip="1",this.tooltipNode=this.getNode(),this.target.addEventListener("mouseup",this.onClose),this.target.addEventListener(w.a.onRemoveEventName,(function(){t.onClose&&t.onClose(1)})),window.addEventListener("resize",this.onResizeDebouce),this.onResize(),this.tooltipNode&&(e.parent||document.body).appendChild(this.tooltipNode))}};Nt.TutorialTooltip.prototype.getNode=function(){var e=this,t=function(){var e=1e3,t=document.getElementById("masthead-positioner"),n=t&&window.getComputedStyle(t,null);return n&&(e=parseInt(n.getPropertyValue("z-index"))+1),e}();if(Ft)var n=O.a.create("div",{class:"sf-tooltip",style:{top:"-70px",display:"flex"},on:["mouseup",function(e){e.stopPropagation()}],append:[O.a.create("div",{style:{height:"40px",backgroundColor:"#4D4D4D",paddingBottom:"10px",maxWidth:"220px",minWidth:"220px",lineHeight:"16px",fontSize:"14px",fontFamily:"font-family: arial, sans-serif",color:"#fff",display:"flex"},append:[O.a.create("div",{style:{width:"60%",margin:"0 0 5px 10px"},append:[O.a.create("span",{style:{color:"white",fontSize:"14px",fontWeight:"bold",display:"inline-block"},text:"Just hold"}),O.a.create("div",{style:{display:"inline-block",position:"relative",margin:"4px 4px 0 4px",width:"27px",height:"18px",backgroundColor:"black",borderRadius:"5px",border:"1px solid black",borderBottom:"3px solid black"},append:[O.a.create("div",{style:{fontWeight:"bold",fontSize:"8px",textAlign:"center",zIndex:1,position:"relative",width:"27px",height:"18px",backgroundColor:"white",color:"black",borderRadius:"5px"},append:[O.a.create("span",{style:{display:"inline-block",marginTop:"2px"},text:"option"})]})]}),O.a.create("span",{style:{color:"white",fontSize:"14px",fontWeight:"bold"},text:"and click on Download"})]}),O.a.create("a",{class:"sf-button",text:"OK",style:{height:"18px",width:"50px",display:"inline-block",textAlign:"center",textDecoration:"none",padding:"0 10px",cssFloat:"right",marginTop:"25px",lineHeight:"20px",borderRadius:"3px",fontSize:"12px",color:"#fff",fontWeight:"bolder",backgroundColor:"#167AC6",cursor:"pointer"},on:["click",function(t){t.preventDefault(),e.onClose&&e.onClose()}]}),O.a.create("style",{text:f()({".sf-tooltip":{position:"absolute",zIndex:t+2,append:{".sf-button:hover":{backgroundColor:"#126db3 !important"},".sf-button:active":{opacity:.9}}}})})]})]});else n=O.a.create("div",{class:"sf-tooltip",on:["mouseup",function(e){e.stopPropagation()}],style:{top:"25px",left:"-50%",transform:"translate(-25%)"},append:[O.a.create("span",{style:{display:"inline-block",border:"8px solid transparent",borderRight:"10px solid #4D4D4D",borderLeft:0,width:0,position:"absolute",top:"-12px",left:"50%",transform:"rotateZ(90deg) translateY(-50%)"}}),O.a.create("span",{style:{display:"inline-block",backgroundColor:"#4D4D4D",marginLeft:"10px",padding:"10px 10px",maxWidth:"220px",minWidth:"220px",lineHeight:"16px",fontSize:"14px",fontFamily:"font-family: arial, sans-serif",color:"#fff"},append:[O.a.create("p",{style:{margin:0},append:E()(o.a.i18n.getMessage("tutorialTooltipText"))}),O.a.create("a",{class:"sf-button",text:"OK",style:{display:"inline-block",textAlign:"center",textDecoration:"none",padding:"0 10px",cssFloat:"right",marginTop:"5px",lineHeight:"20px",borderRadius:"3px",fontSize:"12px",color:"#fff",fontWeight:"bolder",backgroundColor:"#167AC6",cursor:"pointer"},on:["click",function(t){t.preventDefault(),e.onClose&&e.onClose()}]}),O.a.create("style",{text:f()({".sf-tooltip":{position:"absolute",zIndex:t+2,append:{".sf-button:hover":{backgroundColor:"#126db3 !important"},".sf-button:active":{opacity:.9}}}})})]})]});return n},Nt.TutorialTooltip.prototype.onClose=function(e){e&&"mouseup"===e.type&&(e=null),this.tooltipNode&&(this.tooltipNode.parentNode&&this.tooltipNode.parentNode.removeChild(this.tooltipNode),this.tooltipNode=null),window.removeEventListener("resize",this.onResizeDebouce),this.target.removeEventListener("mouseup",this.onClose),this.onClose=null,e||this.details.onClose&&this.details.onClose()},Nt.TutorialTooltip.prototype.onResize=function(){var e=this.target;if(!e.offsetParent||!e.parentNode)return this.onClose&&this.onClose(1);var t=Nt.getPosition(e,this.details.parent);t.top,this.details.btnTopOffset,t.left,t.width,this.details.btnLeftOffset},Nt.mutationWatcher={getMutationObserver:function(){return N()()},isAvailable:function(){return!!this.getMutationObserver()},disconnect:function(e){e.observer.disconnect()},connect:function(e){e.observer.observe(e.target,e.config)},joinMutations:function(e){for(var t,n,r,o,a,i,s=[],u=[],l={};r=e.shift();){for(-1===(i=u.indexOf(r.target))&&(l[i=u.push(r.target)-1]={target:r.target,added:[],removed:[]}),t=l[i],n=void 0,o=0;a=r.addedNodes[o];o++)1===a.nodeType&&(t.added.push(a),n=!0);for(o=0;a=r.removedNodes[o];o++)1===a.nodeType&&(t.removed.push(a),n=!0);void 0!==n&&void 0===t.inList&&(t.inList=!0,s.push(t))}return s},isMatched:R.a,match:function(e,t,n){var r,o,a,i,s=this,u=e.queries,l=!1;return["added","removed"].forEach((function(e){var c=n[e];for(i=0;r=c[i];i++)for(o=0;a=u[o];o++)if(void 0===a.is||a.is===e){var d=t[o][e];!0===s.isMatched(r,a.css)?d.push(r):d.push.apply(d,r.querySelectorAll(a.css)),!1===l&&(l=void 0!==d[0])}})),l},filterTarget:function(e,t){var n,r;for(n=0;r=e[n];n++)if(!0===this.isMatched(t,r.css))return!0;return!1},run:function(e){var t=this,n={config:{childList:!0,subtree:!0},target:document.body,filterTarget:[]};Object.assign(n,e),n._disconnect=this.disconnect.bind(this,n),n._connect=this.connect.bind(this,n),n._match=this.match.bind(this,n);for(var r=[],o=0;o<n.queries.length;o++)r.push({added:[],removed:[]});r=JSON.stringify(r);var a=this.getMutationObserver();return n.observer=new a((function(e){var o=t.joinMutations(e);if(0!==o.length){for(var a,i=!1,s=JSON.parse(r);a=o.shift();)!1===t.filterTarget(n.filterTarget,a.target)&&!0===n._match(s,a)&&(i=!0);!0===i&&n.callback(s)}})),n.trigger=function(e){var t=!1,o=JSON.parse(r),a={added:[e],removed:[]};n._match(o,a)&&(t=!0),!0===t&&n.callback(o)},n.start=function(){n._disconnect(),n._connect(),n.trigger(n.target)},n.stop=function(){n._disconnect()},n.start(),n}},Nt.mutationAttrWatcher={isAvailable:function(){return!!Nt.mutationWatcher.getMutationObserver()},disconnect:function(e){e.observer.disconnect()},connect:function(e){e.observer.observe(e.target,e.config)},run:function(e){var t={config:{attributes:!0,childList:!1,attributeOldValue:!0},target:document.body};Object.assign(t,e),Array.isArray(t.attr)||(t.attr=[t.attr]),t.config.attributeFilter=t.attr,t._disconnect=this.disconnect.bind(this,t),t._connect=this.connect.bind(this,t);for(var n=[],r=0;r<t.attr.length;r++)n.push({});n=JSON.stringify(n);var o=Nt.mutationWatcher.getMutationObserver();return t.observer=new o((function(e){for(var r,o=!1,a=JSON.parse(n);r=e.shift();){var i=t.attr.indexOf(r.attributeName);if(-1!==i){var s=r.target.getAttribute(r.attributeName);s!==r.oldValue&&(a[i]={value:s,oldValue:r.oldValue},o=!0)}}!0===o&&t.callback(a)})),t.start=function(){t._disconnect(),t._connect();for(var e,r=!1,o=JSON.parse(n),a=0;e=t.attr[a];a++){var i=t.target.getAttribute(e);null!==i&&(o[a]={value:i,oldValue:null},r=!0)}!0===r&&t.callback(o)},t.stop=function(){t._disconnect()},setTimeout((function(){t.start()})),t}},Nt.waitNodesBySelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1,r=null,o=Promise.resolve().then((function(){var o=t.target||document.body,a=Nt.mutationWatcher.getMutationObserver(),i=null,s=null,u=new Promise((function(e,t){i=e,s=t})),l=null;t.timeout>0&&(l=setTimeout((function(){r&&r()}),t.timeout));var c=[],d=new a((function(t){var n,r;for(n=0;n<t.length;n++){var o=t[n];for(r=0;r<o.addedNodes.length;r++){var a=o.addedNodes[r];1===a.nodeType&&(R()(a,e)?c.push(a):c.push.apply(c,a.querySelectorAll(e)))}}c.length&&i(c)}));return d.observe(o,{childList:!0,subtree:!0}),r=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){r=null,s(new Error("ABORTED"))})),c.push.apply(c,o.querySelectorAll(e)),c.length&&i(c),n&&r&&r(),u.then((function(e){return d.disconnect(),clearTimeout(l),e}),(function(e){throw d.disconnect(),clearTimeout(l),e}))}));return o.abort=function(){n=!0,r&&r()},o},t.a=function(e){return Pt=e,Nt}},function(e,t){e.exports=n(90)},function(e,t){e.exports=n(63)},function(e,t){e.exports=n(31)},function(e,t){e.exports=n(24)},function(e,t){e.exports=n(11)},function(e,t,n){n.d(t,"b",(function(){return i}));var r=n(0),o=[],a=function(e,t,n){return Promise.resolve().then((function(){return!n||n()})).then((function(n){n&&(-1===o.indexOf(e)&&o.push(e),t())}))},i=function(e,t,n){return a(e,(function(){return r.a.callFn("getPreferences").then((function(n){t(e,{preferences:n})}))}),n)};t.a=a},function(e,t){e.exports=n(70)},function(e,t){e.exports=n(94)},function(e,t){e.exports=n(95)},function(e,t){e.exports=n(64)},function(e,t){e.exports=n(29)},function(e,t){e.exports=n(96)},function(e,t){e.exports=n(30)},function(e,t){e.exports=n(36)},function(e,t){e.exports=n(71)},function(e,t){e.exports=n(72)},function(e,t){e.exports=n(97)},,function(e,t,n){var r=n(0);t.a=function(e){return new Promise((function(t){return r.a.storage.get(e,t)}))}},function(e,t,n){var o=n(0),i=n(7),s=n.n(i),u=n(37),l=n.n(u),c=n(67),d=n(1),p=n.n(d),f=n(3),m=n.n(f),v=s()("downloader:providers"),b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t?t+"-converter":"unknown-converter",r={ec:n};e.on("run",(function(e){v.info(n,"Send analytics run downloader."),o.a.sendMessage({action:"trackConverterStat",params:S({ea:"init-converter",el:"true"},r)})})),e.on("completed",(function(e){v.info(n,"Send analytics downloader completed."),o.a.sendMessage({action:"trackConverterStat",params:S({ea:"completed-converter",el:"true"},r)})})),e.on("error",(function(t){e.sendError||(v.info(n,"Send analytics error downloader - "+t.message),o.a.sendMessage({action:"trackConverterStat",params:S({ea:"error-converter",el:t.message,location:location.href},r)}),e.sendError=!0)}))},y=n(5),k=n(89),A=n.n(k),w=n(90),x=n.n(w),C=n(14),_=n.n(C),O=n(91),M=n.n(O),E=n(26),D=n.n(E),I={margin:"0 12px"},L=function(e){var t=e.title,n=e.status,r=e.progress,o=e.progressStatus,a=e.onClickCancel,i=e.error,s=D()(M.a),u=p.a.useMemo((function(){return{width:r+"%"}}),[r]);return p.a.createElement("div",{className:_()(s.ffDownloader)},p.a.createElement("div",{className:s.container},p.a.createElement("div",{onClick:a,className:s.closeBtn,style:{backgroundImage:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgb3BhY2l0eT0iMC42Ij4KPHBhdGggZD0iTTEzLjY4IDE0LjIyQzEzLjUzNjggMTQuMjE5OSAxMy4zOTk2IDE0LjE2MjkgMTMuMjk4NCAxNC4wNjE2TDMuOTM4MzkgNC43MDE2MkMzLjg0MyA0LjU5OTI1IDMuNzkxMDcgNC40NjM4NiAzLjc5MzU0IDQuMzIzOTZDMy43OTYwMSA0LjE4NDA2IDMuODUyNjggNC4wNTA1OSAzLjk1MTYyIDMuOTUxNjVDNC4wNTA1NiAzLjg1MjcxIDQuMTg0MDMgMy43OTYwNCA0LjMyMzkzIDMuNzkzNTdDNC40NjM4MyAzLjc5MTEgNC41OTkyMiAzLjg0MzAzIDQuNzAxNTkgMy45Mzg0MkwxNC4wNjE2IDEzLjI5ODRDMTQuMTM3IDEzLjM3MzkgMTQuMTg4NCAxMy40NzAxIDE0LjIwOTIgMTMuNTc0OEMxNC4yMyAxMy42Nzk1IDE0LjIxOTMgMTMuNzg4IDE0LjE3ODQgMTMuODg2NkMxNC4xMzc2IDEzLjk4NTIgMTQuMDY4NSAxNC4wNjk1IDEzLjk3OTcgMTQuMTI4OUMxMy44OTEgMTQuMTg4MiAxMy43ODY3IDE0LjIxOTkgMTMuNjggMTQuMjJaIiBmaWxsPSIjNDM0MzQzIi8+CjxwYXRoIGQ9Ik00LjMyMDI5IDE0LjIyQzQuMjEzNTUgMTQuMjE5OSA0LjEwOTI0IDE0LjE4ODIgNC4wMjA1MyAxNC4xMjg5QzMuOTMxODEgMTQuMDY5NSAzLjg2MjY3IDEzLjk4NTIgMy44MjE4NCAxMy44ODY2QzMuNzgxMDEgMTMuNzg4IDMuNzcwMzIgMTMuNjc5NSAzLjc5MTExIDEzLjU3NDhDMy44MTE5MSAxMy40NzAxIDMuODYzMjYgMTMuMzczOSAzLjkzODY5IDEzLjI5ODRMMTMuMjk4NyAzLjkzODQyQzEzLjQwMTEgMy44NDMwMyAxMy41MzY0IDMuNzkxMSAxMy42NzYzIDMuNzkzNTdDMTMuODE2MiAzLjc5NjA0IDEzLjk0OTcgMy44NTI3MSAxNC4wNDg3IDMuOTUxNjVDMTQuMTQ3NiA0LjA1MDU5IDE0LjIwNDMgNC4xODQwNiAxNC4yMDY3IDQuMzIzOTZDMTQuMjA5MiA0LjQ2Mzg2IDE0LjE1NzMgNC41OTkyNSAxNC4wNjE5IDQuNzAxNjJMNC43MDE4OSAxNC4wNjE2QzQuNjAwNzEgMTQuMTYyOSA0LjQ2MzQ2IDE0LjIxOTkgNC4zMjAyOSAxNC4yMloiIGZpbGw9IiM0MzQzNDMiLz4KPC9nPgo8L3N2Zz4K)"}}),i&&p.a.createElement("div",{className:s.error},p.a.createElement("div",{className:s.errorText},"Error:")," ",i.message," "),!i&&p.a.createElement("div",null,p.a.createElement("p",{className:s.fileName},"Filename: ",t),p.a.createElement("div",{className:s.footer},p.a.createElement("div",{style:I},p.a.createElement("div",{className:s.loadingBar},p.a.createElement("div",{className:s.progressBar,style:u})),p.a.createElement("div",{className:s.status},p.a.createElement("div",{className:s.statusState},p.a.createElement("div",null,n),p.a.createElement("div",null,o)),p.a.createElement("div",{className:s.statusPercentage},r,"%")))))))},T=n(92),j=n.n(T),P=function(e){var t=e.title,n=e.status,r=e.progress,a=e.progressStatus,i=e.onClickCancel,s=e.error,u=e.blob,l=e.showTip,c=e.handleDownload,d=D()(j.a),f=p.a.useMemo((function(){return{width:r+"%"}}),[r]);return p.a.createElement("div",{className:_()(d.ffDownloader)},p.a.createElement("div",{className:d.container},p.a.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,className:d.closeBtn},p.a.createElement("g",{opacity:"0.4"},p.a.createElement("path",{d:"M9.11983 9.48007C9.02438 9.47999 8.93288 9.44201 8.86543 9.37447L2.62543 3.13447C2.56184 3.06623 2.52722 2.97597 2.52886 2.8827C2.53051 2.78944 2.56829 2.70045 2.63425 2.63449C2.70021 2.56854 2.78919 2.53075 2.88246 2.52911C2.97572 2.52746 3.06598 2.56208 3.13423 2.62567L9.37423 8.86567C9.42451 8.91602 9.45875 8.98014 9.47261 9.04993C9.48648 9.11972 9.47935 9.19205 9.45213 9.2578C9.42491 9.32354 9.37881 9.37974 9.31967 9.4193C9.26052 9.45886 9.19098 9.48001 9.11983 9.48007Z",fill:"#434343"}),p.a.createElement("path",{d:"M2.88019 9.48007C2.80904 9.48001 2.7395 9.45886 2.68035 9.4193C2.62121 9.37974 2.57512 9.32354 2.54789 9.2578C2.52067 9.19205 2.51354 9.11972 2.52741 9.04993C2.54127 8.98014 2.57551 8.91602 2.62579 8.86567L8.86579 2.62567C8.93404 2.56208 9.0243 2.52746 9.11756 2.52911C9.21083 2.53075 9.29981 2.56854 9.36577 2.63449C9.43173 2.70045 9.46951 2.78944 9.47116 2.8827C9.4728 2.97597 9.43818 3.06623 9.37459 3.13447L3.13459 9.37447C3.06714 9.44201 2.97564 9.47999 2.88019 9.48007V9.48007Z",fill:"#434343"}))),s&&p.a.createElement("div",{className:d.error},p.a.createElement("div",{className:d.errorText},"Error:")," ",s.message," "),!s&&p.a.createElement("div",null,p.a.createElement("p",{className:d.fileName},o.a.i18n.getMessage("downloadingBox_fileName"),": ",t),p.a.createElement("div",{className:d.footer},p.a.createElement("div",null,p.a.createElement("div",{className:d.loadingBar},p.a.createElement("div",{className:d.progressBar,style:f})),p.a.createElement("div",{className:d.status},p.a.createElement("div",{className:d.statusState},p.a.createElement("div",null,n),p.a.createElement("div",null,a)),p.a.createElement("div",{className:d.statusPercentage},r,"%"))))),l&&p.a.createElement("div",{className:d.tipWindow},p.a.createElement("div",{className:d.tipText},p.a.createElement("p",null,o.a.i18n.getMessage("downloadingBox_description"))),u&&p.a.createElement("a",{href:u,download:t,onClick:c},p.a.createElement("button",{className:d.tipWindowButton,type:"button"},o.a.i18n.getMessage("downloadingBox_button"))))))},F=n(10),N=n(38),B=n.n(N);try{var R=requestAnimationFrame((function(){}));cancelAnimationFrame(R)}catch(e){y.options.requestAnimationFrame=setTimeout}var z=s()("MediaMuxer"),q="PREPARE",U="CONVERTING",V="DOWNLOADED",H="INFINITE",G="FINITE",W=p.a.memo((function(e){var t=e.sources,n=e.filename,i=e.format,s=e.unmountLayer,u=e.convertType,d=e.showConfirmOnClose,f=p.a.useState(null),v=Object(h.a)(f,2),y=v[0],k=v[1],w=p.a.useState(!1),C=Object(h.a)(w,2),_=(C[0],C[1]),S=p.a.useState(o.a.i18n.getMessage("downloadingBox_status_loading")),O=Object(h.a)(S,2),M=O[0],E=O[1],D=p.a.useState(q),I=Object(h.a)(D,2),T=I[0],j=I[1],N=p.a.useState(0),R=Object(h.a)(N,2),W=R[0],Q=R[1],Y=p.a.useState(""),J=Object(h.a)(Y,2),K=J[0],Z=J[1],X=p.a.useState(H),$=Object(h.a)(X,2),ee=($[0],$[1]),te=p.a.useState(null),ne=Object(h.a)(te,2),re=ne[0],oe=ne[1],ae=p.a.useState(!1),ie=Object(h.a)(ae,2),se=ie[0],ue=ie[1],le=p.a.useState({}),ce=Object(h.a)(le,2),de=ce[0],pe=ce[1],fe=p.a.useState({}),me=Object(h.a)(fe,2),ge=me[0],he=me[1],ve=p.a.useRef();p.a.useEffect((function(){function e(){s()}return m.a.onRemoveEvent(ve.current,e),function(){m.a.offRemoveEvent(ve.current,e)}}),[]),p.a.useEffect((function(){var e,d={run:[],completed:[],error:[]},p=function(e,t){return d[e].forEach((function(e){return e(t)}))};b({on:function(e,t){d[e]&&d[e].push(t)}},"youtube-merge");var f=!0,m=new c.a(ve.current);m.onProgress=function(e,t){f&&(Q(Math.trunc(100*e)),[G,H].includes(t)&&ee(t))},m.onProgressStatus=function(e){f&&Z(e)},m.onStatus=function(e,t){f&&(E(e),[q,U,V].includes(t)&&j(t))},p("run");var h=x()(),v=A()();return(e=m.init().then((function(){return Object(F.a)({category:"download-start",subcategory:B()(),event:"video"}),"hls"===u?m.hls(t,n,i):"hlsToMp3"===u?m.hlsToMp3(t,n):m.join(t,n,i)})).then((function(){f&&m.getBuiltBlob().then((function(e){o.a.callFn("getPreferences").then(function(){var t=Object(a.a)(g.a.mark((function t(r){var a,i,u,l,c;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.a.isFirefox||r.sortDownloads&&r.sortDownloads.isEnabled){t.next=2;break}return t.abrupt("return",(m.download(),setTimeout(s,3e3)));case 2:if(pe(e.blob),he(r.sortDownloads),a=URL.createObjectURL(e.blob),oe(a),ue(!0),!r.sortDownloads||!r.sortDownloads.isEnabled){t.next=19;break}return i=e.filename.slice(e.filename.lastIndexOf(".")+1),(u=r.sortDownloads.groups.find((function(e){return e.formats.some((function(e){return-1!==e.indexOf(i)}))})))&&u.dir&&!o.a.isFirefox&&(e.filename="".concat(u.dir,"/").concat(e.filename)),t.next=9,new Promise((function(t){var n=new FileReader;n.onload=t,n.readAsDataURL(e.blob)})).then((function(e){return e.target.result}));case 9:if(l=t.sent,!o.a.isGM){t.next=14;break}GM_download(l,e.filename),t.next=17;break;case 14:if(!o.a.isFirefox){t.next=16;break}return t.abrupt("return",(o.a.sendMessage({action:"downloadFile",options:{filename:n,url:e.blob,saveAs:!0}}),setTimeout(s,5e3)));case 16:o.a.callFn("downloadInFolder",[{url:l,filename:e.filename}]);case 17:t.next=21;break;case 19:(c=document.createElement("a")).href=a,c.download=e.filename,setTimeout((function(){c.dispatchEvent(new MouseEvent("click"))}),0);case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}))})).then((function(){Object(F.a)({category:"download-complete",subcategory:B()(),event:"video"}),p("completed"),f&&(_(!0),E(o.a.i18n.getMessage("downloadingBox_status_complete")),j(V))}),(function(e){p("error",e),f&&(z.error("Join error",e),k(e))}))).then.apply(e,Object(r.a)(l()((function(){h(),v(),f&&_(!0)})))),function(){f=!1,h(),v()}}),[]);var be=p.a.useCallback(function(){var e=Object(a.a)(g.a.mark((function e(t){var r,a,i,s;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n,ge&&ge.isEnabled&&(a=r.slice(r.lastIndexOf(".")+1),(i=ge.groups.find((function(e){return e.formats.some((function(e){return-1!==e.indexOf(a)}))})))&&i.dir&&(r="".concat(i.dir,"/").concat(r))),!ge||!ge.isEnabled){e.next=8;break}return t.preventDefault(),t.stopPropagation(),e.next=6,new Promise((function(e){var t=new FileReader;t.onload=e,t.readAsDataURL(de)})).then((function(e){return e.target.result}));case 6:s=e.sent,o.a.isGM?GM_download(s,r):o.a.callFn("downloadInFolder",[{url:s,filename:r}]);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[de,ge]),ye=p.a.useCallback((function(){(T===V||!d||confirm(o.a.i18n.getMessage("are_you_sure_interrupt_download")))&&s()}),[T]),ke=p.a.useCallback((function(){return ue(!se)}),[ue,se]);return o.a.isFirefox?p.a.createElement("div",{ref:ve},p.a.createElement(L,{title:n,format:i,status:M,progress:W,progressStatus:K,onClickCancel:ye,error:y})):p.a.createElement("div",{ref:ve},p.a.createElement(P,{title:n,format:i,status:M,progress:W,progressStatus:K,onClickCancel:ye,error:y,blob:re,onClickShowTip:ke,showTip:se,handleDownload:be}))}));t.a=W},,function(e,t){e.exports=n(15)},,function(e,t){e.exports=n(98)},function(e,t){e.exports=n(44)},function(e,t){e.exports=n(37)},function(e,t){e.exports=n(28)},function(e,t){e.exports=n(21)},function(e,t){e.exports=n(34)},function(e,t){e.exports=n(22)},function(e,t){e.exports=n(18)},function(e,t){e.exports=n(99)},function(e,t){e.exports=n(100)},function(e,t){e.exports=n(25)},function(e,t){e.exports=n(101)},function(e,t,n){n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return v}));var r=n(0),o=n(1),a=n.n(o),s=n(109),u=n.n(s),l=n(14),c=n.n(l),d=n(26),p=n.n(d),f="matchtv",m="vk",g=a.a.memo((function(e){var t=e.items,n=void 0===t?[]:t,o=e.theme,s=e.children,l=p()(u.a),d=a.a.useState(!1),g=Object(h.a)(d,2),v=g[0],b=g[1],y=a.a.useRef(),k=a.a.useRef(),A=a.a.useRef(),w=a.a.useMemo((function(){return Object(i.a)(Object(i.a)({twitch:l.themeTwitch},m,l.themeVk),f,l.themeMatchtv)[o]}),[o]),x=a.a.useCallback((function(){b((function(e){return!e}))}),[]);return a.a.useEffect((function(){var e=function(e){var t=e.target===y.current||y.current.contains(e.target),n=e.target===k.current;t||n||!A.current.classList.contains(l.show)||x()};return document.addEventListener("click",e),function(){document.removeEventListener("click",e)}}),[]),a.a.createElement("div",{ref:y,className:w},a.a.createElement("div",{ref:k,onClick:x},s),a.a.createElement("div",{ref:A,className:c()(l.itemContainer,v?l.show:l.hide)},!n.length&&a.a.createElement("div",{className:l.message},r.a.i18n.getMessage("noLinksFound")),n.map((function(e){return a.a.createElement("div",{onClick:e.onClick,className:l.item},a.a.createElement("div",null,e.title))}))))})),v=function(e){return a.a.createElement("div",null,e.children)}},,function(e,t){e.exports=n(102)},,function(e,t){e.exports=n(38)},function(e,t,n){n.d(t,"a",(function(){return c}));var r=n(0),o=n(11),i=n(12),l=n.n(i),c=function(){function e(){Object(s.a)(this,e),this.active=1,this.utils=void 0,this.settings=void 0,this.cache=d}var t;return Object(u.a)(e,[{key:"start",value:(t=Object(a.a)(g.a.mark((function e(){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.a.callFn("getPreferences");case 2:this.settings=e.sent,this.utils=Object(o.a)({preferences:this.settings}),this.defaultListeners(),this.init&&this.init();case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"defaultListeners",value:function(){var e=this;document.addEventListener("file.download",(function(t){var n=t.detail;e.utils.download(n.filename,n.downloadURL)}))}},{key:"initObserver",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.observer=new l.a({queries:e.map((function(e){return{css:e.selector,callback:e.handle.bind(e),is:e.type}}))}),this.observer.start()}},{key:"appendStyle",value:function(e){var t=document.createElement("style");t.textContent=e,document.body.appendChild(t)}}]),e}(),d=function(){function e(){Object(s.a)(this,e)}return Object(u.a)(e,null,[{key:"set",value:function(e,t,n){localStorage.setItem(e,JSON.stringify({val:t,expires:n?Date.now()+60*n*1e3:-1}))}},{key:"get",value:function(e){var t=localStorage.getItem(e);if(!t)return null;var n=JSON.parse(t),r=n.val,o=n.expires;return r&&-1===o||o>Date.now()?r:null}}]),e}()},function(e,t,n){var r=n(0),o=n(80),i=n.n(o),s={getExpire:function(e,t){var n=i()(),o=e+"_expire_";return r.a.storage.get([e,o],(function(r){var a=void 0===r[o]||r[o]<n,i={};return i[e]=r[e],t(i,a)}))},setExpire:function(e,t,n){var o=i()(),a={};for(var s in e)a[s]=e[s],a[s+"_expire_"]=o+t;return r.a.storage.set(a,(function(){return n&&n()}))}},u=n(16),l=n.n(u),c=function(){var e=Object(a.a)(g.a.mark((function e(){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l()({url:"https://sf-helper.com/static/helper-config/selector_config.json"}).then((function(e){var t=JSON.parse(e.body);if(t.ttl)return s.setExpire({selectorConfig:t.selectors},t.ttl,(function(){})),t.selectors})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t.a=Object(a.a)(g.a.mark((function e(){var t;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.abrupt("return",new Promise((function(e){s.getExpire("selectorConfig",function(){var n=Object(a.a)(g.a.mark((function n(r,o){return g.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=!o&&r.selectorConfig,n.t0){n.next=6;break}return n.next=4,c();case 4:t=n.sent,e(t);case 6:e(r.selectorConfig);case 7:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())})));case 2:case"end":return e.stop()}}),e)})))},function(e,t){e.exports=n(195)},function(e,t){e.exports=n(54)},function(e,t,n){n(0);var r=n(86),a=n.n(r),i=n(87),s=n.n(i);t.a=function(e,t){var n=t||{},r=n.responseStatus,i=n.responseOk,u=void 0===i||i,l=n.responseType,c=void 0===l?"text":l,d=(n.requestPrefix,Object(o.a)(n,w)),p=null;d.signal={aborted:!1,addEventListener:function(e,t){"abort"===e&&(p=t)}};var f=s()(e,d).then((function(e){if(u&&!e.ok||r&&r!==e.status)throw new a.a(e);var t={};["ok","redirected","status","statusText","type","url"].forEach((function(n){t[n]=e[n]}));var n={};return e.headers.forEach((function(e,t){n[t]=e})),t.headers=n,e[c]().then((function(e){return{response:t,body:e}}))}));return f.abort=function(){p&&p()},f}},function(e,t,n){n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return A}));var o=n(45),i=n(46),s=n(16),u=n.n(s),l=n(0),c=n(7),d=n.n(c)()("tools/youtube");function p(e){return new Promise((function(t,n){l.a.sendMessage({action:"getFileSize",url:e},(function(n){var r=n.fileSize;if(0===r||!Number.isFinite(r))return t(!1);l.a.sendMessage({action:"getFileSize",url:e,requestOptions:{type:"GET",headers:{Range:"bytes=".concat(r-8,"-").concat(r)}}},(function(n){var r=n.error;r?d.debug("Link ".concat(e," don't have content")):d.debug("Link ".concat(e," have content")),t(!r)}))}))}))}var f=n(18),m=n.n(f),v=n(5),b=n(31);function y(e,t){return k.apply(this,arguments)}function k(){return(k=Object(a.a)(g.a.mark((function e(t,n){var s,c,d,p,f,y,k,A,w,C,_,S,O,M,E;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f=null===(c=new URL(null==t||null===(d=t.data)||void 0===d?void 0:d.hls))||void 0===c?void 0:c.hostname,y=null==t?void 0:t.title,k=null==t||null===(p=t.data)||void 0===p?void 0:p.failover_host,A=Object(o.matchAll)(n,/:"(https:\\\/\\\/[a-z0-9\-]{3,15}\.vkuservideo\.net.*?\.(\d+)\.mp4.*?)",/gm).filter((function(e){return e[1]})).map((function(e){var t=Object(h.a)(e,3);t[0];return{href:t[1],quality:t[2],format:"MP4"}})),w=Object(o.matchAll)(n,/RESOLUTION=(.*?)\\n(http.*?)\\n/gm).filter((function(e){return e[1]})).map((function(e){var t=Object(h.a)(e,3),n=(t[0],t[1]),r=t[2];return{quality:n.split("x").length>1?n.split("x")[1]:n,href:r,format:"HLS",noSize:!0}})),C=Object(o.matchAll)(n,/hls":"(.*?)",/gm).filter((function(e){return e[1]})).map((function(e){return e[1]})).pop(),e.next=6,u()(C).then((function(e){return e.body}));case 6:return _=e.sent,S=Object(o.matchAll)(_,/QUALITY=(.*?),RESOLUTION=(.*?)\n(.*?)\n/gm),O=!0,M=S.filter((function(e){return e[1]})),e.next=12,Promise.all(M.map(function(){var e=Object(a.a)(g.a.mark((function e(t){var n,r,o,a,i,s,u;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Object(h.a)(t,4),n[0],r=n[1],n[2],o=n[3],a=r.split("x").length>1?r.split("x")[1]:r,i=o,!O||!o.startsWith("/expires")){e.next=18;break}return s="https://"+f+o,e.next=6,fetch(s);case 6:if(e.t0=e.sent.status,200!==e.t0){e.next=11;break}i=s,O=!1,e.next=18;break;case 11:return u="https://"+k+o,e.next=14,fetch(u);case 14:if(e.t1=e.sent.status,200===e.t1){e.next=17;break}return e.abrupt("return",(i=void 0,O=!1,null));case 17:i=u,O=!1;case 18:return e.abrupt("return",{quality:a,href:o,format:"MP4",noSize:!0,func:function(e){e.preventDefault(),l.a.sendMessage({action:"checkAndOpenProLanding",id:"vk-ext"}),e.stopPropagation(),m()(Object(v.createElement)(b.a,{filename:y+".mp4",format:"mp4",sources:[{url:i}],convertType:"hls"}),"sf-muxer-parent")}});case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 12:return E=e.sent.filter((function(e){return e})),e.abrupt("return",((s=w).push.apply(s,Object(r.a)(E)),w=w.map(x),{hls:Object(i.uniqArrayObject)(w,"href"),mp4:Object(i.uniqArrayObject)(A,"href"),dash:[]}));case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e,t){return w.apply(this,arguments)}function w(){return(w=Object(a.a)(g.a.mark((function e(t,n){var r,o;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],o=0;case 2:if(!(o<t.length)){e.next=19;break}if(!n||!n(t[o])){e.next=7;break}r.push(t[o]),e.next=16;break;case 7:if(-1===t[o].href.indexOf("http")){e.next=15;break}return e.next=10,p(t[o].href);case 10:if(e.t0=e.sent,!e.t0){e.next=13;break}r.push(t[o]);case 13:e.next=16;break;case 15:r.push(t[o]);case 16:o++,e.next=2;break;case 19:return e.abrupt("return",r);case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var x=function(e){var t={full:1080,hd:720,sd:480,low:360,lowest:240,mobile:144};return e.rawQuality=e.quality,e.quality=t[e.quality]?String(t[e.quality]):e.quality,e}},function(e,t){e.exports=n(103)},function(e,t){e.exports=n(55)},function(e,t){e.exports=n(196)},,function(e,t){e.exports=n(104)},function(e,t){e.exports=n(105)},,,function(e,t){e.exports=n(73)},function(e,t,n){var o=n(0),a=n(85),i=n.n(a),l=n(56),c=n(63),d=n(71),p=n.n(d),f=n(76),m=n.n(f),g=n(37),h=n.n(g),v=n(88),b=n.n(v);t.a=function(){function e(t){var n=this;Object(s.a)(this,e),this.frameListener=function(e){if(n.frame&&e.source===n.frame.contentWindow){var t=e.data;t&&n.onMessage(e,t)}},this.frameCtr=t,this.frame=null,this.isLoaded=!1,this.destroyed=!1,this.messageStack=[],this.onDestroy=[],this.requestPrefix=b()(),this.initTransport(),this.onDestroy.push(p()((function(){var e=function(){return o.a.callFn("clearRequestByPrefix",[n.requestPrefix])};return window.addEventListener("unload",e),function(){window.removeEventListener("unload",e)}})))}return Object(u.a)(e,[{key:"onProgress",value:function(e,t){}},{key:"onProgressStatus",value:function(e){}},{key:"onStatus",value:function(e,t){}},{key:"download",value:function(){return this.transport.callFn("download")}},{key:"getBuiltBlob",value:function(){return this.transport.callFn("getBuiltBlob")}},{key:"join",value:function(e,t,n){return this.transport.callFn("join",[{sources:e,filename:t,format:n}])}},{key:"hls",value:function(e,t,n){return this.transport.callFn("hls",[{sources:e,filename:t,format:n}])}},{key:"hlsToMp3",value:function(e,t){return this.transport.callFn("hlsToMp3",[{sources:e,filename:t}])}},{key:"initTransport",value:function(){var e=this,t=this;this.transport=new i.a({onMessage:function(e){t.onMessage=e},sendMessage:function(e){t.postMessage(e)}},this.getScope()),this.transport.onMessage((function(t,n,r){switch(t.action){case"progress":e.onProgress(t.progress,t.type);break;case"progressStatus":e.onProgressStatus(t.status);break;case"status":e.onStatus(t.status,t.code)}}))}},{key:"getScope",value:function(){var e=this;return{createFetchInstance:function(t){var n=t.url,o=t.options,a=Object(c.instanceCreate)((function(){i();var t=Object(l.a)(n,S(S({},o),{},{requestPrefix:e.requestPrefix}));return t.then.apply(t,Object(r.a)(h()(p()((function(){function n(){t.abort()}return e.onDestroy.push(n),function(){return m()(e.onDestroy,n)}}))))),t}),["abort"]),i=p()((function(){function t(){Object(c.instanceDestroy)(a.id)}return e.onDestroy.push(t),function(){return m()(e.onDestroy,t)}}));return a},instanceInit:function(e){var t=e.id;return Object(c.instanceInit)(t)},instanceCallFn:function(e){var t=e.id,n=e.path,r=e.args;return Object(c.instanceCallFn)(t,n,r)}}}},{key:"onMessage",value:function(){throw new Error("onMessage is not set")}},{key:"init",value:function(){var e=this;return new Promise((function(t,n){e.destroyFrame(),window.addEventListener("message",e.frameListener);var r=e.frame=document.createElement("iframe");r.src="https://sf-helper.com/static/joiner2/frame2.html",r.style.position="absolute",r.style.height="0px",r.style.width="0px",r.style.top="-9999px",r.style.left="-9999px",r.onload=function(){r.onload=r.onerror=null,e.isLoaded=!0;var o=setTimeout((function(){n(new Error("Load frame timeout"))}),3e4);try{e.transport.sendMessage({action:"ping"},(function(){clearTimeout(o),t()}))}catch(e){n(e)}},r.onerror=function(){r.onload=r.onerror=null,n(new Error("Load frame error"))},e.frameCtr.appendChild(r)})).then((function(){for(;e.messageStack.length;)e.postMessage(e.messageStack.shift())}))}},{key:"postMessage",value:function(e){if(!this.destroyed)if(this.isLoaded){if(!this.frame.contentWindow)throw new Error("Window is closed");this.frame.contentWindow.postMessage(e,"*")}else this.messageStack.push(e)}},{key:"destroyFrame",value:function(){window.removeEventListener("message",this.frameListener),this.frame&&this.frame.parentNode&&this.frame.parentNode.removeChild(this.frame)}},{key:"destroy",value:function(){this.destroyed=!0,this.destroyFrame(),this.onDestroy.splice(0).forEach((function(e){return e()}))}}]),e}()},function(e,t){e.exports=n(32)},function(e,t){e.exports=n(46)},,function(e,t){e.exports=n(106)},,,function(e,t){e.exports=n(74)},,function(e,t){e.exports=n(108)},function(e,t){e.exports=n(75)},function(e,t){e.exports=n(109)},function(e,t){e.exports=n(110)},function(e,t){e.exports=n(49)},,,function(e,t){e.exports=n(111)},function(e,t){e.exports=n(112)},function(e,t){e.exports=n(113)},function(e,t){e.exports=n(50)},function(e,t){e.exports=n(78)},function(e,t){e.exports=n(65)},function(e,t){e.exports=n(197)},function(e,t){e.exports=n(115)},function(e,t,n){var r=n(36),o=n(124);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},function(e,t,n){var r=n(36),o=n(125);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},function(e,t,n){var r=n(36),o=n(126);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},function(e,t,n){var r=n(36),o=n(127);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},function(e,t){e.exports=n(79)},function(e,t,n){var r=n(36),o=n(128);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},function(e,t,n){var r=n(36),o=n(129);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},function(e,t,n){var r=n(36),o=n(130);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},function(e,t,n){var r=n(36),o=n(131);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},function(e,t){e.exports=n(116)},function(e,t){e.exports=n(198)},function(e,t){e.exports=n(117)},function(e,t){e.exports=n(118)},function(e,t){e.exports=n(119)},function(e,t){e.exports=n(120)},function(e,t){e.exports=n(121)},,,function(e,t,n){var r=n(36),o=n(134);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},,,,,,,,,,,,,,,function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,".wI7k5--ff-downloader{display:block;overflow:hidden;width:376px;background:#fff;z-index:99999999;transition:.5s;border:1px solid #dedede;box-sizing:border-box;box-shadow:0 -10px 10px rgba(91,91,91,.06),-10px 0 10px rgba(91,91,91,.06),0 10px 10px rgba(91,91,91,.06);border-radius:10px;font-family:sans-serif;font-style:normal;font-weight:600;font-size:16px;line-height:22px;color:#434343}.ziyP5--close-btn{height:18px;width:18px;background-size:100%;border-radius:4px;cursor:pointer;position:absolute;top:5px;right:9px}.ziyP5--close-btn:hover{background:#e2dede}.BWp-4--file-name{font-weight:400;font-size:12px;line-height:14px;padding:6px 12px;margin:0 auto}.GU13e--status{padding-bottom:6px;font-size:14px;margin-top:12px}.GU13e--status,.ZIOer--status-state{display:flex;justify-content:space-between}.ZIOer--status-state{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.ZIOer--status-state>div:first-child{margin-right:8px;font-weight:700}.K3MvR--status-percentage{color:#77cb35;font-weight:700}.s1z4a--error{color:red;padding:10px;font-size:14px;display:flex;margin-left:12px}.jKWjW--error-text{font-weight:700;margin-right:7px}._09OMr--container{position:relative;height:100%;line-height:1}._09OMr--container .lzhWx--notice{margin-top:21px;font-size:11px;border:0;color:rgba(0,0,0,.88)}.zu8hW--footer{height:40px;width:100%;background:#fff}.zu8hW--footer .Flgd3--loader{-webkit-animation:YEg5S--rotation 3.5s linear forwards;animation:YEg5S--rotation 3.5s linear forwards;border-radius:50%;border:5px solid #fff;border-top-color:#a29bfe;height:70px;width:70px;display:flex;justify-content:center;align-items:center}.zu8hW--footer .Q1uXw--loading-bar{width:100%;height:6px;background:#dfe6e9;border-radius:5px}.zu8hW--footer .Q1uXw--loading-bar .-kn2K--progress-bar{height:100%;background:#8bc34a;border-radius:5px}",""]),o.locals={"ff-downloader":"wI7k5--ff-downloader",ffDownloader:"wI7k5--ff-downloader","close-btn":"ziyP5--close-btn",closeBtn:"ziyP5--close-btn","file-name":"BWp-4--file-name",fileName:"BWp-4--file-name",status:"GU13e--status","status-state":"ZIOer--status-state",statusState:"ZIOer--status-state","status-percentage":"K3MvR--status-percentage",statusPercentage:"K3MvR--status-percentage",error:"s1z4a--error","error-text":"jKWjW--error-text",errorText:"jKWjW--error-text",container:"_09OMr--container",notice:"lzhWx--notice",footer:"zu8hW--footer",loader:"Flgd3--loader",rotation:"YEg5S--rotation","loading-bar":"Q1uXw--loading-bar",loadingBar:"Q1uXw--loading-bar","progress-bar":"-kn2K--progress-bar",progressBar:"-kn2K--progress-bar"},t.default=o},function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,".Iwvld--ff-downloader{display:block;overflow:hidden;width:300px;background:#fff;z-index:99999999;transition:.5s;border:1px solid #dedede;box-sizing:border-box;box-shadow:0 -10px 10px rgba(91,91,91,.06),-10px 0 10px rgba(91,91,91,.06),0 10px 10px rgba(91,91,91,.06);border-radius:10px;font-family:sans-serif;font-style:normal;font-weight:600;font-size:16px;line-height:22px;color:#434343;padding:16px 14px}.XPnBg--close-btn{background-size:100%;border-radius:4px;cursor:pointer;position:absolute;top:-11px;right:9px}.XPnBg--close-btn:hover{background:#e2dede}.h8wGW--file-name{text-overflow:ellipsis;overflow:hidden;width:216px;font-weight:400;font-size:14px;line-height:18px;margin:12px 0}.YXhTH--status{font-size:14px;margin-top:12px}.YXhTH--status,.pgCcQ--status-state{display:flex;justify-content:space-between}.pgCcQ--status-state{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pgCcQ--status-state>div:first-child{margin-right:8px;font-weight:700}.p4smi--status-percentage{color:#77cb35;font-weight:700}.jxpOw--error{color:red;font-size:14px;display:flex;margin-left:12px}.NBOIa--error-text{font-weight:700;margin-right:7px}.\\+Mtsr--container{position:relative;height:100%;line-height:1}.\\+Mtsr--container .Rbz-l--notice{margin-top:21px;font-size:11px;border:0;color:rgba(0,0,0,.88)}.W8q4D--footer{width:100%;background:#fff}.W8q4D--footer .A36qu--loader{-webkit-animation:s6CAC--rotation 3.5s linear forwards;animation:s6CAC--rotation 3.5s linear forwards;border-radius:50%;border:5px solid #fff;border-top-color:#a29bfe;height:70px;width:70px;display:flex;justify-content:center;align-items:center}.W8q4D--footer .x3HAa--loading-bar{width:100%;height:8px;background:#dfe6e9;border-radius:5px}.W8q4D--footer .x3HAa--loading-bar .Q8FO8--progress-bar{height:100%;background:#8bc34a;border-radius:6px}.ySdCM--tip-window{padding:18px 0 0;font-style:normal;font-weight:400;font-size:12px;line-height:14px;color:#434343;justify-content:space-between;align-items:center}.ySdCM--tip-window,.ySdCM--tip-window .rjEfq--tip-text{display:flex}.ySdCM--tip-window p{margin:0}.ySdCM--tip-window a{display:block}.ySdCM--tip-window a ._5hrC---tip-window-button{width:102px;height:28px;border:none;border-radius:2px;background-color:#8bc34a;color:#fff;font-style:normal;font-weight:500;font-size:12px;line-height:12px}.ySdCM--tip-window a ._5hrC---tip-window-button:hover{cursor:pointer}",""]),o.locals={"ff-downloader":"Iwvld--ff-downloader",ffDownloader:"Iwvld--ff-downloader","close-btn":"XPnBg--close-btn",closeBtn:"XPnBg--close-btn","file-name":"h8wGW--file-name",fileName:"h8wGW--file-name",status:"YXhTH--status","status-state":"pgCcQ--status-state",statusState:"pgCcQ--status-state","status-percentage":"p4smi--status-percentage",statusPercentage:"p4smi--status-percentage",error:"jxpOw--error","error-text":"NBOIa--error-text",errorText:"NBOIa--error-text",container:"+Mtsr--container",notice:"Rbz-l--notice",footer:"W8q4D--footer",loader:"A36qu--loader",rotation:"s6CAC--rotation","loading-bar":"x3HAa--loading-bar",loadingBar:"x3HAa--loading-bar","progress-bar":"Q8FO8--progress-bar",progressBar:"Q8FO8--progress-bar","tip-window":"ySdCM--tip-window",tipWindow:"ySdCM--tip-window","tip-text":"rjEfq--tip-text",tipText:"rjEfq--tip-text","tip-window-button":"_5hrC---tip-window-button",tipWindowButton:"_5hrC---tip-window-button"},t.default=o},function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,".ClHbG--information{border-left:4px solid #c58d39;background:rgba(255,178,63,.7607843137254902);font-weight:700;color:#191919;margin-bottom:12px;font-size:13px;line-height:1.5;padding:5px}.JSkqz--filesCount{margin-bottom:4px;font-size:13px}.iuOVZ--progress{position:relative;height:21px;background-color:#e8e8e8;border-radius:3px;overflow:hidden}.iuOVZ--progress .\\+f7GI--line{height:21px;position:absolute;background-color:#0cf;border-radius:5px;transition:width .1s}.iuOVZ--progress .taRzz--text{position:absolute;top:3px;left:5px;display:flex}.iuOVZ--progress .dSvFi--filename{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:226px;margin-right:10px}",""]),o.locals={information:"ClHbG--information",filesCount:"JSkqz--filesCount",progress:"iuOVZ--progress",line:"+f7GI--line",text:"taRzz--text",filename:"dSvFi--filename"},t.default=o},function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,".ZOo8v--popup--container{position:absolute;right:40px;width:270px;background:#fff;border:1px solid hsla(0,0%,50.2%,.2);z-index:9999;top:7px;min-height:76px;font-size:14px;border-radius:5px;box-shadow:1px 1px 11px rgba(0,0,0,.23921568627450981);color:#000}.vNkEW--flex-column{display:flex;flex-direction:column}.svLRq--popup--title{padding:4px;background:#efefef}._7ZAJJ--popup--body{font-size:17px;padding:1px 25px 32px}.xuER4--btn{background:#6bcc3e;color:#fff;border-radius:3px;padding:9px 10px;display:block;text-align:center;box-shadow:0 6px 18px -5px #6bcc3e;width:179px;margin:23px auto 0}.xuER4--btn,.xuER4--btn:hover{text-decoration:none}.\\+cYks--text--container{text-align:center}.ho-mQ--sub-text--container{font-size:12px;color:#4c4c4c;text-align:center;display:block}._87JEg--close{width:30px;font-size:17px;color:#c0c5cb;align-self:flex-end;background-color:transparent;border:none;margin-top:3px;margin-right:3px;cursor:pointer}.-b33m--hidden{display:none}._0HBd6--circle-loader--icon{-webkit-animation-name:NQihZ--spin;animation-name:NQihZ--spin;-webkit-animation-duration:5s;animation-duration:5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.Hmeyt--icon{width:51px;opacity:.3;margin:0 auto 12px}@-webkit-keyframes NQihZ--spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes NQihZ--spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",""]),o.locals={"popup--container":"ZOo8v--popup--container",popupContainer:"ZOo8v--popup--container","flex-column":"vNkEW--flex-column",flexColumn:"vNkEW--flex-column","popup--title":"svLRq--popup--title",popupTitle:"svLRq--popup--title","popup--body":"_7ZAJJ--popup--body",popupBody:"_7ZAJJ--popup--body",btn:"xuER4--btn","text--container":"+cYks--text--container",textContainer:"+cYks--text--container","sub-text--container":"ho-mQ--sub-text--container",subTextContainer:"ho-mQ--sub-text--container",close:"_87JEg--close",hidden:"-b33m--hidden","circle-loader--icon":"_0HBd6--circle-loader--icon",circleLoaderIcon:"_0HBd6--circle-loader--icon",spin:"NQihZ--spin",icon:"Hmeyt--icon"},t.default=o},function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,".FLBcu--hidden--shadow{box-shadow:inset -2px 1px 2px 0 rgba(0,0,0,.4)}.A50sa--hidden--viewer::-webkit-scrollbar{width:.5em}.A50sa--hidden--viewer::-webkit-scrollbar-track{background:#e0dada}.A50sa--hidden--viewer::-webkit-scrollbar-thumb{background-color:#6b6969;border-radius:3px}.tQBOF--dropdown--item{display:block;padding:0 5px;white-space:nowrap;overflow:hidden;line-height:24px;color:#3d3d3d}.tQBOF--dropdown--item,.tQBOF--dropdown--item:hover{text-decoration:none}.-CinQ--dropdown--container{display:flex;justify-content:space-between}.E9XZe--dropdown--format{min-width:36px}.\\+Hfp---dropdown--quality{min-width:42px;margin-left:6px;display:flex;justify-content:space-between}._4R4Jh--quality--badge{background-color:#505050;color:#fff;padding-left:2px;padding-right:2px;height:19px;vertical-align:middle;margin-top:2px;border-radius:3px;line-height:21px;margin-left:2px}._4mas\\+--dropdown--action{width:30px;display:flex;justify-content:flex-end}._4mas\\+--dropdown--action img{width:14px;margin-left:4px}.A50sa--hidden--viewer{max-height:192px;overflow-y:scroll;background:#f7f7f7}.uyTuz--size--icon{font-size:72%;font-weight:400;margin-left:2px;white-space:nowrap}.kj5iC--separator{display:block;margin:1px 0;border-top:1px solid #d6d6d6}.yjfKv--more--btn{text-align:center;display:block;color:rgba(44,44,44,.6)}.lp9Bs--more--btn-with-pro{display:flex;justify-content:space-between}.lp9Bs--more--btn-with-pro a:hover{background:none!important;color:inherit!important}.b\\+dsr--login--btn{display:block;font-family:Roboto,sans-serif;font-style:normal;font-weight:700;font-size:13px;line-height:14px;color:#46aa4b;padding-top:8px;padding-bottom:8px;text-align:center;text-decoration:none}.autRa--pro-information,.autRa--pro-information .S\\+3y\\+--info{display:flex;justify-content:space-between}.autRa--pro-information .S\\+3y\\+--info img{width:16px;height:16px;margin-right:8px;margin-left:5px;margin-top:3px}.lsy8K--pro--label{line-height:1.9;color:#46aa4b}.XEJXo--subtitles{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}",""]),o.locals={"hidden--shadow":"FLBcu--hidden--shadow",hiddenShadow:"FLBcu--hidden--shadow","hidden--viewer":"A50sa--hidden--viewer",hiddenViewer:"A50sa--hidden--viewer","dropdown--item":"tQBOF--dropdown--item",dropdownItem:"tQBOF--dropdown--item","dropdown--container":"-CinQ--dropdown--container",dropdownContainer:"-CinQ--dropdown--container","dropdown--format":"E9XZe--dropdown--format",dropdownFormat:"E9XZe--dropdown--format","dropdown--quality":"+Hfp---dropdown--quality",dropdownQuality:"+Hfp---dropdown--quality","quality--badge":"_4R4Jh--quality--badge",qualityBadge:"_4R4Jh--quality--badge","dropdown--action":"_4mas+--dropdown--action",dropdownAction:"_4mas+--dropdown--action","size--icon":"uyTuz--size--icon",sizeIcon:"uyTuz--size--icon",separator:"kj5iC--separator","more--btn":"yjfKv--more--btn",moreBtn:"yjfKv--more--btn","more--btn-with-pro":"lp9Bs--more--btn-with-pro",moreBtnWithPro:"lp9Bs--more--btn-with-pro","login--btn":"b+dsr--login--btn",loginBtn:"b+dsr--login--btn","pro-information":"autRa--pro-information",proInformation:"autRa--pro-information",info:"S+3y+--info","pro--label":"lsy8K--pro--label",proLabel:"lsy8K--pro--label",subtitles:"XEJXo--subtitles"},t.default=o},function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,'.rc5tl--hidden--shadow{box-shadow:inset -2px 1px 2px 0 rgba(0,0,0,.4)}.QKVGp--hidden--viewer::-webkit-scrollbar{width:.5em}.QKVGp--hidden--viewer::-webkit-scrollbar-track{background:#e0dada}.QKVGp--hidden--viewer::-webkit-scrollbar-thumb{background-color:#6b6969;border-radius:3px}.fj0gf--chevron{transform:rotate(180deg)}.zBXbc--chevron--open{transform:rotate(0deg)}.vF8-5--dropdown--item{display:block;padding:0 5px;white-space:nowrap;overflow:hidden;line-height:24px;color:#3d3d3d;cursor:pointer}.vF8-5--dropdown--item,.vF8-5--dropdown--item:hover{text-decoration:none}._90Oc9--dropdown--item--chevron{display:flex;align-items:center;-webkit-column-gap:5px;-moz-column-gap:5px;column-gap:5px}._90Oc9--dropdown--item--chevron:hover .fj0gf--chevron path{stroke:#fff}.chfNk--dropdown--container{display:flex;justify-content:space-between}._3Wa2l--dropdown--format{min-width:36px}.r7Wpi--dropdown--quality{min-width:42px;margin-left:6px;display:flex;justify-content:space-between}.DGQRL--quality--badge{background-color:#505050;color:#fff;padding-left:2px;padding-right:2px;height:19px;vertical-align:middle;margin-top:2px;border-radius:3px;line-height:21px;margin-left:2px}._1U9oZ--dropdown--action{width:30px;display:flex;justify-content:flex-end}._1U9oZ--dropdown--action img{width:14px;margin-left:4px}.QKVGp--hidden--viewer{max-height:192px;overflow-y:scroll;background:#f7f7f7}.VVPtP--size--icon{font-size:72%;font-weight:400;margin-left:2px;white-space:nowrap}.CE2Fd--separator{display:block;margin:1px 0;border-top:1px solid #d6d6d6}.JHKYa--more--btn{text-align:center;display:block;color:rgba(44,44,44,.6)}.ESJWV--more--btn-with-pro{display:flex;justify-content:space-between}.ESJWV--more--btn-with-pro a:hover{background:none!important;color:inherit!important}.PEw3p--login--btn{display:block;font-family:Roboto,sans-serif;font-style:normal;font-weight:700;font-size:13px;line-height:14px;color:#46aa4b;padding-top:8px;padding-bottom:8px;text-align:center;text-decoration:none}.X09qk--pro-information,.X09qk--pro-information .wrRtX--info{display:flex;justify-content:space-between}.X09qk--pro-information .wrRtX--info img{width:16px;height:16px;margin-right:8px;margin-left:5px;margin-top:3px}.E6Mwd--pro--label{line-height:1.9;color:#46aa4b}._3tujI--subtitles{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}p.fj0gf--chevron:before{content:"\\2039"}p.fj0gf--chevron:after{content:"\\203A"}',""]),o.locals={"hidden--shadow":"rc5tl--hidden--shadow",hiddenShadow:"rc5tl--hidden--shadow","hidden--viewer":"QKVGp--hidden--viewer",hiddenViewer:"QKVGp--hidden--viewer",chevron:"fj0gf--chevron","chevron--open":"zBXbc--chevron--open",chevronOpen:"zBXbc--chevron--open","dropdown--item":"vF8-5--dropdown--item",dropdownItem:"vF8-5--dropdown--item","dropdown--item--chevron":"_90Oc9--dropdown--item--chevron",dropdownItemChevron:"_90Oc9--dropdown--item--chevron","dropdown--container":"chfNk--dropdown--container",dropdownContainer:"chfNk--dropdown--container","dropdown--format":"_3Wa2l--dropdown--format",dropdownFormat:"_3Wa2l--dropdown--format","dropdown--quality":"r7Wpi--dropdown--quality",dropdownQuality:"r7Wpi--dropdown--quality","quality--badge":"DGQRL--quality--badge",qualityBadge:"DGQRL--quality--badge","dropdown--action":"_1U9oZ--dropdown--action",dropdownAction:"_1U9oZ--dropdown--action","size--icon":"VVPtP--size--icon",sizeIcon:"VVPtP--size--icon",separator:"CE2Fd--separator","more--btn":"JHKYa--more--btn",moreBtn:"JHKYa--more--btn","more--btn-with-pro":"ESJWV--more--btn-with-pro",moreBtnWithPro:"ESJWV--more--btn-with-pro","login--btn":"PEw3p--login--btn",loginBtn:"PEw3p--login--btn","pro-information":"X09qk--pro-information",proInformation:"X09qk--pro-information",info:"wrRtX--info","pro--label":"E6Mwd--pro--label",proLabel:"E6Mwd--pro--label",subtitles:"_3tujI--subtitles"},t.default=o},function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,".YkQQD--button{display:block;padding:5px;color:#fff;text-align:center;background:linear-gradient(180deg,#54b85b,#3a833f);border-radius:2px;text-decoration:none;font-size:12px;margin:5px}.YkQQD--button:hover{background:#3a833f!important}",""]),o.locals={button:"YkQQD--button"},t.default=o},function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,'._6BnMg--item--anchor{display:flex;padding:0 5px;text-decoration:none;white-space:nowrap;overflow:hidden}.uGmA2--item--container{width:100%;display:block}.uGmA2--item--container span{font-weight:700}.TpsJ6--televzr-popup-container{border-radius:6px}.t\\+3cf--televzr-popup{background-color:#fff;border:1px solid #ccc;text-align:center;line-height:16px;font-size:12px;font-family:arial,sans-serif;cursor:default;border-radius:6px;padding:6px}.DhgbJ--televzr-popup-header{width:114px;height:42px;margin:7px auto 8px;background:url("data:image/jpeg;base64,/9j/4QxRRXhpZgAATU0AKgAAAAgADQEAAAMAAAABBQAAAAEBAAMAAAABAeQAAAECAAMAAAADAAAAqgEGAAMAAAABAAIAAAESAAMAAAABAAEAAAEVAAMAAAABAAMAAAEaAAUAAAABAAAAsAEbAAUAAAABAAAAuAEoAAMAAAABAAIAAAExAAIAAAAiAAAAwAEyAAIAAAAUAAAA4gITAAMAAAABAAEAAIdpAAQAAAABAAAA+AAAATAACAAIAAgAC+bgAAAnEAAL5uAAACcQQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpADIwMjA6MDM6MTEgMTU6MzQ6MjAAAAAABJAAAAcAAAAEMDIyMaABAAMAAAAB//8AAKACAAQAAAABAAAAyKADAAQAAAABAAAASwAAAAAAAAAGAQMAAwAAAAEABgAAARoABQAAAAEAAAF+ARsABQAAAAEAAAGGASgAAwAAAAEAAgAAAgEABAAAAAEAAAGOAgIABAAAAAEAAAq7AAAAAAAAAEgAAAABAAAASAAAAAH/2P/tAAxBZG9iZV9DTQAC/+4ADkFkb2JlAGSAAAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAPACgAwEiAAIRAQMRAf/dAAQACv/EAT8AAAEFAQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAABBAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHxY3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcTU5PSltcXV5fVWZnaGlqa2xtbm9jdHV2d3h5ent8fX5/cRAAICAQIEBAMEBQYHBwYFNQEAAhEDITESBEFRYXEiEwUygZEUobFCI8FS0fAzJGLhcoKSQ1MVY3M08SUGFqKygwcmNcLSRJNUoxdkRVU2dGXi8rOEw9N14/NGlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vYnN0dXZ3eHl6e3x//aAAwDAQACEQMRAD8A9UTFwHJhOSuR+ufWMuh9GFi2ux/Xa+y66s7bBWxzamVUWf4L1rHbrbW/pPTZ7EQLKnq3WADcQQPE6f8AVIZy6QYNjAfAub/evK6bn414ysd7qslsxduL3QfpNs9Yv9at/wCfXb9Ndl0H61YWcWYmXXVi5x0Y1oAquP8A3We76Fv/AHVt/Sf6H10TCvFTvjqWG76ORU74WM/vRmXteJadw/kkO/6krJ6hjVHdkMraSNbmbQZ/4QCPpN/wqoCrEJn0a/i0AH/OZtUscMZCxJqz5mWORjKH2HcPUB4PB1HI7p1hYGRZVkMpD3PqsDjWHkuLHMG/a17vf6NrPzH/AM2txpkKKcDA0WfFkGSPENOjJJNISkJq9dJMnSUpJDbfQ611LbGG1gl1YcC4DT6TPpfnIiSlJJJJKUkkkkpSSSSSn//Q9ReYXA/Xh0dTxD441n/n4LvbV559e3R1HD/8L2/+fk6G6i1OkYmHmY2Uclpc5tjGMsa4tewFm/8ARn6P0v32ql1LpuRhtJsjIxHED1mtgDX2tyKv8C/9x/8ANf6OxF6Nn4uLjZRyLm1fpGOAOriNmz9FW332+79xVOpdcuy2OprHoYh+m1xG94B3fp3/AEa69N3o1/8AXbLFZqPAP3muDl96VfJYvi22/Qem+qf1jy8i/wDZmZY66wVusxch+tjhX/O0ZD/8K9tf6Si/6f8AOV3/AOkWplhtNwLNK7QXNaOGkH3tH8n85i5n6pdNyGXjq+Q011mtzMJjhDrPVGx+Vs+lXQ2v2Y+/+kep6v8ANV+/ZzMttlwYwy2oFsju4n3x/VjYm4vn02r1K5oA49d79P8A3To4Nm7Nx/8Arn/UFdFS6Wj4Lk+l2Tn0jys/6hy6qj6I+ATeY+ceX/fK5T+bP94/lFyPrP8AUrpH1nsx7OovvacVr21il7Wgh5YXb9zLP9GvOui/UnonUfrn1XoF3qtw8BjnUvY4C0lrqW/pbNjt/wDPP/MXsi86+qf/AOVL6w/8XZ/1eKo4k0fJsOieq/Vb/F1iM6PW7KyrbrDcMesC66bfY0uP6vU1rvT/AEbP5160Og/X7ofXM89NrZkYWdrsx8yv03vgeo/09j7WbmV+/Y92/YuOzn9Ur/xq5zulsxn9SLWjFGduFUHGo3+m6mH+v6bbW1f8H9pW5g/Vn62dQ+t2H9YfrAcOhuBWWMrwy8l+lwrb+l/l5Nj7Hvs/4Ouv+csQIHXtamv0MD/x3uuaD+ifw6cui+sn126L9XLK6Mz1b8q6CzGxmepZDjsY9251dbd7m+z9Jvs/wa53ohA/xvdakgbsUhs9zt6cYCy+pP6pX/jWy3dMbju6gWsGIM3eKYOLXv2Oqh/rbW3tp/8AQhGrPkLU9h0H6/dE631A9MrrycLO1LMfMr9Nz4b6j9mx9rdza/fsf+YrnQfrV03r1+ZjYrLqr+nuDMmq9gY4OJsr0hz92yyixj1z+J9WfrZ1L62YXX/rCcKhnT2bWMwy8l8C3Y39LP597nWb7f8Ag66/fa9V76XfV/8Axq0ZDYZhfWKpzHGIHrNa3e0R/hPXpxn/APoZYhQ6dlPUWfWvpbPrJX9Wmi2zqD27zsaDWwbHX/pbC4bf0Tf3f8LUsd3+NT6tC11XpZhe15ZAoJlzXGv2+794Kh/i4Y/rPWut/W69p25Vxx8Iu5FY2ueNv8mhmDTv/wCDtVr6y/WDqPWOpO+qn1XeftAO3qfUWzsx28Pqbaz/AA35tuz3/wDaer9Y9X7Iq1pTqdK+vXReq4fUszGbe2vpNQvyhZXtdsLbbf0bd3vdtx7FQy/8av1UxsbHuDrr7ckbhi1MabmAksH2gPsZVU72/Q9X1Nn6T+bVrK6B0/6v/UXqnT8FkNbgZJttIG+x/ov3W2kfnf8Antn6Niq/4q8bGb9UsbKbUwZFr7hbcGje/bbYxnqWfTfsZ7GJUKvxU//R9QsC4T699LzLfQzset1zcRtleSxgLniuxzbqsplTG77Kq376sn0/fV7Lf5v1F3rxKqZFO6DwRq0gwR/VcEYmlPibLWZFrasc+vdYdtdVRD3uP7rGN9y6XpXQKcYtyeo7MjJadzMcEPoqI+i5/wCbmXt/9haf+H/nF3F9Jc8vfXXY4gtL3saXFp/MNm3ftVY4uP3w6T8GgfkAUnEUOHmdQe0ljXE3P1seTq0Hz/0j/wDoMVEZFbIBc1o7AkBdMOm9OBkdOx5OpLm7pJ/r7lZx8VlR/QY9NHnXW0H/ADtqkjlERQiWCeGU5WSB2605XQab7bxlbSKWtc2pxBHqPeNn6OfpVVM99tv0F19LYAHhoqtFJ3b3EueeXEyVdY2Aock+I2y48YhGhr1SLIwPqv0vA63l9cx/U+25wc27c8lkOLHu2V/m+6pi10kxe4P1j+pfQvrIW2dQrezIY3Y3Ipdss2A7/Td9Ouxm76PqV/o/8GqvQv8AF19Xuh9Rr6ljnIvy6d3pWX27tu9rqnw2ttTXbq3u+muoSRs1Snl+v/4u/q91/POfl+vVdZt9YUPDW2FgDK32Ney33trb6e6r01b+sn1M6F9ZNj+oVvbkVt2MyaXbLNk7/Td9Kuxm/wBzfVrf6f8Ag1upJWfsU8v0L/F19Xuh9Rr6njuyL8und6T77d23e11T4bW2pvure5vvWl9YPqx0n6w1U19RY8nGeX1WVuLHt3DbY3e38yz89aySVndTS6P0jC6L06npuC0tx6N23c4ucS5zrbHve76Tn2Pc5c27/FT9UnAtc3Jc0ku2m90Akl30f7a7FJKyp57pX1F6B0jD6jhYTbW09VqFOUHWFx2httf6Nx+g7bkWLS6H0XC6H06vpuDv+z1Fzm+o7c6XuNjvd/Wcr6SFqf/S9UKg5gKImSU13UA9kM4w8Fc0Te1HVTUGMPBTbQB2Vj2pe1LVTBtYCIBCSSCl0kkklKSSSSUpJJJJSkkkklKSSSSUpJJJJT//2f/tE+xQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAABxwCAAACAAAAOEJJTQQlAAAAAAAQ6PFc8y/BGKGie2etxWTVujhCSU0EOgAAAAAA9wAAABAAAAABAAAAAAALcHJpbnRPdXRwdXQAAAAFAAAAAFBzdFNib29sAQAAAABJbnRlZW51bQAAAABJbnRlAAAAAEltZyAAAAAPcHJpbnRTaXh0ZWVuQml0Ym9vbAAAAAALcHJpbnRlck5hbWVURVhUAAAAAQAAAAAAD3ByaW50UHJvb2ZTZXR1cE9iamMAAAAVBB8EMARABDAEPAQ1BEIEQARLACAERgQyBDUEQgQ+BD8EQAQ+BDEESwAAAAAACnByb29mU2V0dXAAAAABAAAAAEJsdG5lbnVtAAAADGJ1aWx0aW5Qcm9vZgAAAAlwcm9vZkNNWUsAOEJJTQQ7AAAAAAItAAAAEAAAAAEAAAAAABJwcmludE91dHB1dE9wdGlvbnMAAAAXAAAAAENwdG5ib29sAAAAAABDbGJyYm9vbAAAAAAAUmdzTWJvb2wAAAAAAENybkNib29sAAAAAABDbnRDYm9vbAAAAAAATGJsc2Jvb2wAAAAAAE5ndHZib29sAAAAAABFbWxEYm9vbAAAAAAASW50cmJvb2wAAAAAAEJja2dPYmpjAAAAAQAAAAAAAFJHQkMAAAADAAAAAFJkICBkb3ViQG/gAAAAAAAAAAAAR3JuIGRvdWJAb+AAAAAAAAAAAABCbCAgZG91YkBv4AAAAAAAAAAAAEJyZFRVbnRGI1JsdAAAAAAAAAAAAAAAAEJsZCBVbnRGI1JsdAAAAAAAAAAAAAAAAFJzbHRVbnRGI1B4bEBTgAAAAAAAAAAACnZlY3RvckRhdGFib29sAQAAAABQZ1BzZW51bQAAAABQZ1BzAAAAAFBnUEMAAAAATGVmdFVudEYjUmx0AAAAAAAAAAAAAAAAVG9wIFVudEYjUmx0AAAAAAAAAAAAAAAAU2NsIFVudEYjUHJjQFkAAAAAAAAAAAAQY3JvcFdoZW5QcmludGluZ2Jvb2wAAAAADmNyb3BSZWN0Qm90dG9tbG9uZwAAAAAAAAAMY3JvcFJlY3RMZWZ0bG9uZwAAAAAAAAANY3JvcFJlY3RSaWdodGxvbmcAAAAAAAAAC2Nyb3BSZWN0VG9wbG9uZwAAAAAAOEJJTQPtAAAAAAAQAE4AAAABAAEATgAAAAEAAThCSU0EJgAAAAAADgAAAAAAAAAAAAA/gAAAOEJJTQQNAAAAAAAEAAAAHjhCSU0EGQAAAAAABAAAAB44QklNA/MAAAAAAAkAAAAAAAAAAAEAOEJJTScQAAAAAAAKAAEAAAAAAAAAAThCSU0D9QAAAAAASAAvZmYAAQBsZmYABgAAAAAAAQAvZmYAAQChmZoABgAAAAAAAQAyAAAAAQBaAAAABgAAAAAAAQA1AAAAAQAtAAAABgAAAAAAAThCSU0D+AAAAAAAcAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAA4QklNBAgAAAAAABAAAAABAAACQAAAAkAAAAAAOEJJTQQeAAAAAAAEAAAAADhCSU0EGgAAAAADSwAAAAYAAAAAAAAAAAAAAEsAAADIAAAACwBsAG8AZwBvAF8AaABlAGEAZABlAHIAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAMgAAABLAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAEAAAAAAABudWxsAAAAAgAAAAZib3VuZHNPYmpjAAAAAQAAAAAAAFJjdDEAAAAEAAAAAFRvcCBsb25nAAAAAAAAAABMZWZ0bG9uZwAAAAAAAAAAQnRvbWxvbmcAAABLAAAAAFJnaHRsb25nAAAAyAAAAAZzbGljZXNWbExzAAAAAU9iamMAAAABAAAAAAAFc2xpY2UAAAASAAAAB3NsaWNlSURsb25nAAAAAAAAAAdncm91cElEbG9uZwAAAAAAAAAGb3JpZ2luZW51bQAAAAxFU2xpY2VPcmlnaW4AAAANYXV0b0dlbmVyYXRlZAAAAABUeXBlZW51bQAAAApFU2xpY2VUeXBlAAAAAEltZyAAAAAGYm91bmRzT2JqYwAAAAEAAAAAAABSY3QxAAAABAAAAABUb3AgbG9uZwAAAAAAAAAATGVmdGxvbmcAAAAAAAAAAEJ0b21sb25nAAAASwAAAABSZ2h0bG9uZwAAAMgAAAADdXJsVEVYVAAAAAEAAAAAAABudWxsVEVYVAAAAAEAAAAAAABNc2dlVEVYVAAAAAEAAAAAAAZhbHRUYWdURVhUAAAAAQAAAAAADmNlbGxUZXh0SXNIVE1MYm9vbAEAAAAIY2VsbFRleHRURVhUAAAAAQAAAAAACWhvcnpBbGlnbmVudW0AAAAPRVNsaWNlSG9yekFsaWduAAAAB2RlZmF1bHQAAAAJdmVydEFsaWduZW51bQAAAA9FU2xpY2VWZXJ0QWxpZ24AAAAHZGVmYXVsdAAAAAtiZ0NvbG9yVHlwZWVudW0AAAARRVNsaWNlQkdDb2xvclR5cGUAAAAATm9uZQAAAAl0b3BPdXRzZXRsb25nAAAAAAAAAApsZWZ0T3V0c2V0bG9uZwAAAAAAAAAMYm90dG9tT3V0c2V0bG9uZwAAAAAAAAALcmlnaHRPdXRzZXRsb25nAAAAAAA4QklNBCgAAAAAAAwAAAACP/AAAAAAAAA4QklNBBEAAAAAAAEBADhCSU0EFAAAAAAABAAAAAE4QklNBAwAAAAACtcAAAABAAAAoAAAADwAAAHgAABwgAAACrsAGAAB/9j/7QAMQWRvYmVfQ00AAv/uAA5BZG9iZQBkgAAAAAH/2wCEAAwICAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDP/AABEIADwAoAMBIgACEQEDEQH/3QAEAAr/xAE/AAABBQEBAQEBAQAAAAAAAAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggFAwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNUZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNTFWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaWprbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/APVExcByYTkrkfrn1jLofRhYtrsf12vsuurO2wVsc2plVFn+C9ax2621v6T02exECyp6t1gA3EEDxOn/AFSGcukGDYwHwLm/3ryum5+NeMrHe6rJbMXbi90H6TbPWL/Wrf8An12/TXZdB+tWFnFmJl11YucdGNaAKrj/AN1nu+hb/wB1bf0n+h9dEwrxU746lhu+jkVO+FjP70Zl7XiWncP5JDv+pKyeoY1R3ZDK2kjW5m0Gf+EAj6Tf8KqAqxCZ9Gv4tAB/zmbVLHDGQsSas+ZljkYyh9h3D1AeDwdRyO6dYWBkWVZDKQ9z6rA41h5LixzBv2te73+jaz8x/wDNrcaZCinAwNFnxZBkjxDToySTSEpCavXSTJ0lKSQ230OtdS2xhtYJdWHAuA0+kz6X5yIkpSSSSSlJJJJKUkkkkp//0PUXmFwP14dHU8Q+ONZ/5+C721eefXt0dRw//C9v/n5OhuotTpGJh5mNlHJaXObYxjLGuLXsBZv/AEZ+j9L99qpdS6bkYbSbIyMRxA9ZrYA19rcir/Av/cf/ADX+jsRejZ+Li42Uci5tX6RjgDq4jZs/RVt99vu/cVTqXXLstjqax6GIfptcRveAd36d/wBGuvTd6Nf/AF2yxWajwD95rg5felXyWL4ttv0Hpvqn9Y8vIv8A2ZmWOusFbrMXIfrY4V/ztGQ//CvbX+kov+n/ADld/wDpFqZYbTcCzSu0FzWjhpB97R/J/OYuZ+qXTchl46vkNNdZrczCY4Q6z1RsflbPpV0Nr9mPv/pHqer/ADVfv2czLbZcGMMtqBbI7uJ98f1Y2JuL59Nq9SuaAOPXe/T/AN06ODZuzcf/AK5/1BXRUulo+C5Ppdk59I8rP+ocuqo+iPgE3mPnHl/3yuU/mz/eP5Rcj6z/AFK6R9Z7MezqL72nFa9tYpe1oIeWF2/cyz/Rrzrov1J6J1H659V6Bd6rcPAY51L2OAtJa6lv6WzY7f8Azz/zF7IvOvqn/wDlS+sP/F2f9XiqOJNHybDonqv1W/xdYjOj1uysq26w3DHrAuum32NLj+r1Na70/wBGz+detDoP1+6H1zPPTa2ZGFna7MfMr9N74HqP9PY+1m5lfv2Pdv2Ljs5/VK/8auc7pbMZ/Ui1oxRnbhVBxqN/puph/r+m21tX/B/aVuYP1Z+tnUPrdh/WH6wHDobgVljK8MvJfpcK2/pf5eTY+x77P+Drr/nLECB17Wpr9DA/8d7rmg/on8OnLovrJ9dui/VyyujM9W/KugsxsZnqWQ47GPdudXW3e5vs/Sb7P8Gud6IQP8b3WpIG7FIbPc7enGAsvqT+qV/41st3TG47uoFrBiDN3imDi179jqof621t7af/AEIRqz5C1PYdB+v3ROt9QPTK68nCztSzHzK/Tc+G+o/Zsfa3c2v37H/mK50H61dN69fmY2Ky6q/p7gzJqvYGODibK9Ic/dssosY9c/ifVn62dS+tmF1/6wnCoZ09m1jMMvJfAt2N/Sz+fe51m+3/AIOuv32vVe+l31f/AMatGQ2GYX1iqcxxiB6zWt3tEf4T16cZ/wD6GWIUOnZT1Fn1r6Wz6yV/Vpots6g9u87Gg1sGx1/6WwuG39E393/C1LHd/jU+rQtdV6WYXteWQKCZc1xr9vu/eCof4uGP6z1rrf1uvaduVccfCLuRWNrnjb/JoZg07/8Ag7Va+sv1g6j1jqTvqp9V3n7QDt6n1Fs7MdvD6m2s/wAN+bbs9/8A2nq/WPV+yKtaU6nSvr10XquH1LMxm3tr6TUL8oWV7XbC2239G3d73bcexUMv/Gr9VMbGx7g66+3JG4YtTGm5gJLB9oD7GVVO9v0PV9TZ+k/m1ayugdP+r/1F6p0/BZDW4GSbbSBvsf6L91tpH53/AJ7Z+jYqv+KvGxm/VLGym1MGRa+4W3Bo3v222MZ6ln037GexiVCr8VP/0fULAuE+vfS8y30M7Hrdc3EbZXksYC54rsc26rKZUxu+yqt++rJ9P31ey3+b9Rd68SqmRTug8EatIMEf1XBGJpT4my1mRa2rHPr3WHbXVUQ97j+6xjfcul6V0CnGLcnqOzIyWnczHBD6KiPouf8Am5l7f/YWn/h/5xdxfSXPL3112OILS97GlxafzDZt37VWOLj98Ok/BoH5AFJxFDh5nUHtJY1xNz9bHk6tB8/9I/8A6DFRGRWyAXNaOwJAXTDpvTgZHTseTqS5u6Sf6+5WcfFZUf0GPTR511tB/wA7apI5REUIlgnhlOVkgdutOV0Gm+28ZW0ilrXNqcQR6j3jZ+jn6VVTPfbb9BdfS2AB4aKrRSd29xLnnlxMlXWNgKHJPiNsuPGIRoa9UiyMD6r9LwOt5fXMf1PtucHNu3PJZDix7tlf5vuqYtdJMXuD9Y/qX0L6yFtnUK3syGN2NyKXbLNgO/03fTrsZu+j6lf6P/Bqr0L/ABdfV7ofUa+pY5yL8und6Vl9u7bva6p8NrbU126t7vprqEkbNUp5fr/+Lv6vdfzzn5fr1XWbfWFDw1thYAyt9jXst97a2+nuq9NW/rJ9TOhfWTY/qFb25FbdjMml2yzZO/03fSrsZv8Ac31a3+n/AINbqSVn7FPL9C/xdfV7ofUa+p47si/Lp3ek++3dt3tdU+G1tqb7q3ub71pfWD6sdJ+sNVNfUWPJxnl9Vlbix7dw22N3t/Ms/PWsklZ3U0uj9Iwui9Op6bgtLcejdt3OLnEuc62x73u+k59j3OXNu/xU/VJwLXNyXNJLtpvdAJJd9H+2uxSSsqee6V9RegdIw+o4WE21tPVahTlB1hcdobbX+jcfoO25Fi0uh9Fwuh9Or6bg7/s9Rc5vqO3Ol7jY73f1nK+khan/0vVCoOYCiJklNd1APZDOMPBXNE3tR1U1BjDwU20AdlY9qXtS1UwbWAiAQkkgpdJJJJSkkkklKSSSSUpJJJJSkkkklKSSSSU//9kAOEJJTQQhAAAAAABdAAAAAQEAAAAPAEEAZABvAGIAZQAgAFAAaABvAHQAbwBzAGgAbwBwAAAAFwBBAGQAbwBiAGUAIABQAGgAbwB0AG8AcwBoAG8AcAAgAEMAQwAgADIAMAAxADkAAAABADhCSU0EBgAAAAAABwABAAAAAQEA/+ENw2h0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8APD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOmViMTRlOGE4LTU4M2EtZjA0ZC04NTE0LTgzYWUyYWQ5NmZhMyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxOWNkMzA3Yi1jYWUwLTBjNDctODg3Ni0zMTc3Yzc1YTk3OTMiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0iMDM1MTRGQjY3QjlGNzBDRDc2MEY2NzZCNEVGQThCQUUiIGRjOmZvcm1hdD0iaW1hZ2UvanBlZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9IiIgeG1wOkNyZWF0ZURhdGU9IjIwMjAtMDMtMTFUMTU6MjQ6NDMrMDM6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIwLTAzLTExVDE1OjM0OjIwKzAzOjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIwLTAzLTExVDE1OjM0OjIwKzAzOjAwIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NDAzNTg2MzAtNjI2OS01NTQ1LWFiOGEtNWNkZjFiMjMzZGI5IiBzdEV2dDp3aGVuPSIyMDIwLTAzLTExVDE1OjM0OjIwKzAzOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjE5Y2QzMDdiLWNhZTAtMGM0Ny04ODc2LTMxNzdjNzVhOTc5MyIgc3RFdnQ6d2hlbj0iMjAyMC0wMy0xMVQxNTozNDoyMCswMzowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+/+4ADkFkb2JlAGSAAAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgASwDIAwEiAAIRAQMRAf/dAAQADf/EAT8AAAEFAQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAABBAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHxY3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcTU5PSltcXV5fVWZnaGlqa2xtbm9jdHV2d3h5ent8fX5/cRAAICAQIEBAMEBQYHBwYFNQEAAhEDITESBEFRYXEiEwUygZEUobFCI8FS0fAzJGLhcoKSQ1MVY3M08SUGFqKygwcmNcLSRJNUoxdkRVU2dGXi8rOEw9N14/NGlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vYnN0dXZ3eHl6e3x//aAAwDAQACEQMRAD8A9VTJIOTkMoqdZY4MYxpe954a1o3OekpKXAclR9VviuFzfrn1G+wnAazGx5/Rvsb6lrh2e5rv0dW79xE6V9bLQ/0er3PdW46ZVYDS2e11bG+6v/hGfQTuAqt7b1Ql6nx+5VGVUWMbYy19jHjcx4fLSD+c0tVHNxHUO9Su64VOP+kPtP8A5FGEOI1dLMk+CPFXEOtOz6rfFSDwe650W5Tfo5Vo+JDv+qCK3Nz2a72XgfmObtJ+D2fnJ55eXQgsQ5vGdwQ7ySq4eWzIra9sw6dDyCPpVu/qq0oSK0LOCCLHVdJJJJKkkkklKSSSSUpJJJJSkkkklKSSSSUpJJJJSkkkklP/0PU3FYf1reR0LPgx+iA+Re0FbbysD62H/IWf/wAUP+rYiNwp4F9gEyYAUsijKxmsffWa2WAFjjxr4kfRd/Icqlz/AGu+BXXOe19QY8B7HMaHNcJBEDlqsQhxX4MGbKcfDpYN243R/rFmdIftqPq4rjNmK4wPN9Lv8Db/AOBruMDq2D1TFN+K/wBSs+2ytwh7Cf8AB3M/N/12LgOrdMrxqzlY7opDg11TtSC7/Rv/ADm/yEHoXULsLq+NZWYba9tNzR+dW87drv6rvexNnCj4skJxnGxs9zksOPZAM1u1Y7/vrv5TVFtqNluDsexp12e5p82rOZapsUuKOu40aOfEIT02OodrpDv56OPVB+9q2GlYXRnS20/8KP8AqVt1nRVsvzybmD+aj5ON9bvrJlfV/Fx78bBdnuvt9NzGlwLRtc/f+jru/d2rlbP8bOfVHrdFNW76PqWPZP8AV9Shu5ekLzL/ABwf0rpX9S7/AKqlCFE0QytzF/xm9VvyqKD0K1jbrWVl5NkND3NYX644+hu3L0FU83qFHTelW9QySfRxaTa+OSGt3bW/ynLz/A+sf+Mf6zvuyeitx8TEqfs2uDSAY3+kbbm2vutaxzfV2V11oVew4aU+mLkcr655lH13r+rTcas49hYDeXO3jfW6/wCh9D81U/qp9cOvWfWB/wBWvrFVX9sAfsurG0hzGi3Y9rd1VjLKf0lVtez+osvqP/5X6P69P/tvYiI6m+1qfTklhfXD6zN+rfSftbaxdk3PFONU4w0vILt9hHu9KtjN71yWLnf42OoYLeq4rscY1rfVpp2Vhzmct9Op+9/u/wAH6l+9ARJF6DzU+lJLivq39b+r/WH6v9SNNddXWsBk1kNJrsJaX1foXHcxz3VvpsZvVn/F79asv6xYOT+0NgzMa0SK27B6b27qvYXP929trHIGJF+CnrElw31l+t3W6frdifV7o3pD1PSbe6xheQ60l7i33N2tqxmeor31hu/xhM6m5vQKMazp+xu11xbu36+p9KxiXCdPFT1aS8r6t9dP8YPR8hmJnDCbl2gGvHqb6th3HbXLKrXbfVf7av8ASLovrh9ZevdD+rvTMyoVVdQyXVsy22M3NDjU621oa1/t22s/eR4Dp4qeySXnV31n/wAYXWyyzoHTHYWC7btvtawvsGm6z9Zc2v0/3PTrs/41JLgPceVqf//R9Reue+th/wAhZ/8AxI/6ti6F6xPrFh25nTcvFpE230ubUPF7SLGs/t7diI3UXy+5xIcPitzJ65iU0sNbvXsc1u1jeBp/hXfmf1fprnnvJmQWkEhzToQRo5jh+a5qG1r7LG11NL7HmGMaJcT/ACQrEZGN11Yp4ozri/RT5edkZdnqZD5j6LRoxo/kt/78tn6t9HtffV1LKBZRUd+Ox2jrHj6Fhafo0M+l/wAKidK+r9WOW5GfF14gsp5rYf5f+mt/8CWvfmCpu9x3Pdo0eJ/8imkkmhqSv9MY9ohsZuWG1+kDL7OfJv8A5kqjLFRNznuLnGXO1JRGWwOYCnhHhFfa0MszOV/QeT0vQ3TXZ/xo/wCpW9VwsDoNVjcdrniPWf6jQedgG1jv7a6CsKrlPrl5t3CKxx8kq8z/AMcH9K6X/Uu/6qlemLA+tH1NwfrLZj2ZWRdQcUOawU7dd5a47vUY/wD0abE0QSyLfXat9n1K6k1gJd9m3QPBu17v+i1cL9SsL61dQ6fczoPWKsCmm53qYr2Bztzw1/rzsf7Ll6wamGr0XgPYW7HNcJBEbSHD+UuHzv8AFJ0i2824GZkYLDMVNh7Wz+ZU5221tf8AI9R6MZCiD/FSf6tfUbPwOvu671rqDc3Oh2wVtIlzx6brbHP/AHa/0ddddaw+pvaz/G9Q55DRvoEnQSaHtb/0l031Z/xf9P8Aq/n/ALRbl5GVlBjqwbCAza7bu9jR/J/fS+tH+L/pv1hzBnG+zEyi0MtcwNe17W/Q312fns/fYlxCzZ6UpyP8b9bndN6baBuqbkPY4jiX1u2N/tbHIHR+j/XzqPRsa/p/1hpZhW0tbVWGQ5jNuz0S5tftsp/m11mL9UemV/Vqv6uZRdmYlYI32Q18lzrm2MdXt9N9b3fo1zdn+KDB9Rxo6pk1VuP0IYT/AGnt9Pf/AJiQkKq9vC1O19SPqiPq1jZAtyG5OVlOabXMG1jQwEMrZuLn/nvc971zPR6x9WP8ZmRgOPp4fUmPdVPG2zdl0/8Abd1eTSuy+q/1Vwvq1i20Yltt5yHiy19xBJcBs9rWNbtQPrN9S+m/WO+jJybbse/Ha5gsoIBcxx3bH72v+i76G1IS1NndTyv+Lymzrf1p6p9Z7xLGue2iezrj7Q3/AIrCZUz/AK6ul+un1xo+r2MKMcC/quSP1ajnaD7ftFzW+70930K/p32fo2LT+r3QMP6v9Nb0/Dc97N7rH2WQXOe/6TnbA1v8lZHXv8XvTeudUs6nflZFNtrWMLaiwNHpja0jexzkrBlrsppfUr6n24tzvrB9YHev1nIJsa2wgmrd+e/837U5vt9v9Gq/QVIH+OHXoWF/4a/9FXKR/wAUHRCCPt2Zr/KZ/wCk1tdZ+pWB1fouD0a7Iurp6eGCuxhbvdsrOOPU3sc36LkrHEDd/RTpfV//AJB6b/4Uo/8APbElZwsVmFhY+GxxczGqZU1zuSGNFYc6Pzvakm9VP//S9ScFVvqD2kFXChPbKQU811P6udIz7TdmYodcfpX1udXY7zsdWdtjv67VVxPq30jB3fZTbW9/0rHuD3x+5vc1u1i6eymVXfig9k8HxQ4x6VjnjIePiGn+IVd/1fpseX2Zrj4AMaIH7ur1uHDHgkMMeCIkRsUSgJCjq4jPq9gA+7IuePAbW/i0OV3G6N06twdXTvcOHWuL/wDon2f9BaLMUDsrFdACRySP6RQMUB+iFY9UanVx5KuMCgxkIoCYV7JJJJBSkkkklKSSSSUpJJJJSkkkklKSSSSUpJJJJSkkkklP/9P1RIiU6ZJTAsUTWEVJJSD0gl6QRvuS+5HVSIVBTDFNJBSwEJ0k6SlJJJJKUkkkkpSSSSSlJJJJKUkkkkpSSSSSlJJJJKUkkkkp/9k=") no-repeat;background-size:100%}.ifIjF--televzr-popup-footer{width:195px;margin:22px auto 0;color:#63d0ff;font-size:12px;white-space:normal;font-weight:400}.gmsOg--televzr-popup-btn{text-decoration:none;display:inline-block;line-height:18px;white-space:nowrap;font-size:13px;text-align:center;font-family:Roboto,sans-serif;font-weight:500;margin:0;border-radius:90px;padding:0;overflow:hidden;border:2px solid transparent;background:linear-gradient(270deg,#66d1ff,#35c3ff);background-origin:border-box;text-transform:uppercase;width:171px}.gmsOg--televzr-popup-btn .rQDx6--btn-outer{padding:13px 15px;display:block;background:#f4f3f3}.gmsOg--televzr-popup-btn ._8t04c--btn-inner{background:linear-gradient(270deg,#66d1ff,#35c3ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.gmsOg--televzr-popup-btn ._8t04c--btn-inner svg{margin-top:-2px;margin-right:4px}.gmsOg--televzr-popup-btn:disabled{opacity:.5}.gmsOg--televzr-popup-btn.IoXmT--btn-invert{position:relative;overflow:visible}.gmsOg--televzr-popup-btn.IoXmT--btn-invert:before{content:"";position:absolute;left:10px;right:10px;top:20px;bottom:-1px;background:#6dd3ff;-webkit-filter:blur(12px);filter:blur(12px);border-radius:100px;box-shadow:0 3px 0 0;color:#67cefb}.gmsOg--televzr-popup-btn.IoXmT--btn-invert .rQDx6--btn-outer{background:transparent;padding:7px 8px;position:relative}.gmsOg--televzr-popup-btn.IoXmT--btn-invert ._8t04c--btn-inner{background:none;-webkit-background-clip:border-box;-webkit-text-fill-color:#fff;color:#fff}.gmsOg--televzr-popup-btn.IoXmT--btn-invert ._8t04c--btn-inner svg path{fill:#fff}.gmsOg--televzr-popup-btn.IoXmT--btn-invert:focus,.gmsOg--televzr-popup-btn.IoXmT--btn-invert:hover{background:linear-gradient(90deg,#66d1ff,#35c3ff)}.gmsOg--televzr-popup-btn.DiiWD--btn-small{font-size:12px;line-height:15px;border-width:1px}.gmsOg--televzr-popup-btn.DiiWD--btn-small .rQDx6--btn-outer{padding:8px 15px;background:#fff}.gmsOg--televzr-popup-btn:focus,.gmsOg--televzr-popup-btn:hover{outline:none}.gmsOg--televzr-popup-btn:focus .rQDx6--btn-outer,.gmsOg--televzr-popup-btn:hover .rQDx6--btn-outer{background:transparent}.gmsOg--televzr-popup-btn:focus ._8t04c--btn-inner,.gmsOg--televzr-popup-btn:hover ._8t04c--btn-inner{background:none;-webkit-background-clip:border-box;-webkit-text-fill-color:#fff;color:#fff}.gmsOg--televzr-popup-btn:focus ._8t04c--btn-inner svg path,.gmsOg--televzr-popup-btn:hover ._8t04c--btn-inner svg path{fill:#fff}a.gmsOg--televzr-popup-btn.IoXmT--btn-invert{text-decoration:none}.EJ9VX--popupAngle{display:inline-block;width:0;position:absolute;z-index:1;border-left-width:0;border-left-style:none;border-top:8px solid transparent;border-right:10px solid #fff;border-bottom:8px solid transparent;border-left-color:initial;border-image:initial;top:8px;left:-9px}.NG62r--popupAngle--shadow{border-right-color:#c0bbbb;border-width:8px 11px 9px 0;z-index:0;top:8px;left:-10px}.O240N--logo{width:19px;height:17px;margin-left:5px;vertical-align:middle}._2NWK3--circle-loader--icon{-webkit-animation-name:awEUc--spin;animation-name:awEUc--spin;-webkit-animation-duration:5s;animation-duration:5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.TpwT---icon--check{margin-bottom:-13px!important}.Q6Yy4--icon{width:51px;opacity:.3;margin:0 auto 12px}@-webkit-keyframes awEUc--spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes awEUc--spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}',""]),o.locals={"item--anchor":"_6BnMg--item--anchor",itemAnchor:"_6BnMg--item--anchor","item--container":"uGmA2--item--container",itemContainer:"uGmA2--item--container","televzr-popup-container":"TpsJ6--televzr-popup-container",televzrPopupContainer:"TpsJ6--televzr-popup-container","televzr-popup":"t+3cf--televzr-popup",televzrPopup:"t+3cf--televzr-popup","televzr-popup-header":"DhgbJ--televzr-popup-header",televzrPopupHeader:"DhgbJ--televzr-popup-header","televzr-popup-footer":"ifIjF--televzr-popup-footer",televzrPopupFooter:"ifIjF--televzr-popup-footer","televzr-popup-btn":"gmsOg--televzr-popup-btn",televzrPopupBtn:"gmsOg--televzr-popup-btn","btn-outer":"rQDx6--btn-outer",btnOuter:"rQDx6--btn-outer","btn-inner":"_8t04c--btn-inner",btnInner:"_8t04c--btn-inner","btn-invert":"IoXmT--btn-invert",btnInvert:"IoXmT--btn-invert","btn-small":"DiiWD--btn-small",btnSmall:"DiiWD--btn-small",popupAngle:"EJ9VX--popupAngle","popupAngle--shadow":"NG62r--popupAngle--shadow",popupAngleShadow:"NG62r--popupAngle--shadow",logo:"O240N--logo","circle-loader--icon":"_2NWK3--circle-loader--icon",circleLoaderIcon:"_2NWK3--circle-loader--icon",spin:"awEUc--spin","icon--check":"TpwT---icon--check",iconCheck:"TpwT---icon--check",icon:"Q6Yy4--icon"},t.default=o},,,function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,"._3Twj---theme-vk .jIjvy--item-container .Ctv\\+P--item{margin-left:0;display:block;white-space:nowrap;position:relative;height:30px;line-height:30px;padding:0 15px;color:#2a5885;outline:none}._3Twj---theme-vk .jIjvy--item-container .Ctv\\+P--item:hover{background-color:#e4eaf0}._3Twj---theme-vk .jIjvy--item-container .Ctv\\+P--item .UpHCg--tooltip{top:0;right:228px;padding:0 10px 3px 6px}._3Twj---theme-vk .jIjvy--item-container .Ctv\\+P--item ._05NcQ--download-bar{position:absolute;top:0;left:0}.iy197--theme-matchtv .jIjvy--item-container{right:185px}.iy197--theme-matchtv .jIjvy--item-container ._05NcQ--download-bar{background-image:linear-gradient(90deg,rgba(8,174,234,.12156862745098039),rgba(42,245,152,.7294117647058823))}.jIjvy--item-container{position:absolute;background:#fff;padding:4px 0;z-index:9999;box-shadow:0 1px 3px rgba(80,80,80,.27058823529411763);border:1px solid #c5d0db;border-radius:4px;font-size:12px;min-width:190px;transition:.5s;margin-left:13px}.jIjvy--item-container .Ctv\\+P--item{position:relative;cursor:pointer;padding-top:5px;padding-bottom:5px;padding-left:9px}.jIjvy--item-container .Ctv\\+P--item:hover{background:#e6e6e6}.jIjvy--item-container .Ctv\\+P--item.A-E28--item-disable{opacity:.8}.jIjvy--item-container .aLjWy--message{padding:3px}.jIjvy--item-container.fnXMd--show{display:block}.jIjvy--item-container._7GemG--hide{display:none}",""]),o.locals={"theme-vk":"_3Twj---theme-vk",themeVk:"_3Twj---theme-vk","item-container":"jIjvy--item-container",itemContainer:"jIjvy--item-container",item:"Ctv+P--item",tooltip:"UpHCg--tooltip","download-bar":"_05NcQ--download-bar",downloadBar:"_05NcQ--download-bar","theme-matchtv":"iy197--theme-matchtv",themeMatchtv:"iy197--theme-matchtv","item-disable":"A-E28--item-disable",itemDisable:"A-E28--item-disable",message:"aLjWy--message",show:"fnXMd--show",hide:"_7GemG--hide"},t.default=o}]])},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={17:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([123,0]),n()}({123:function(e,t,n){n.r(t);var r=n(0),o=n(11),i=n(17),s=n(27),u=n.n(s),l=n(28),c=n.n(l),d=n(23),p=n.n(d),f=n(13),m=n.n(f),h=n(22),v=n.n(h),b=n(19),y=n.n(b),k=n(3),A=n.n(k),w=n(2),x=n.n(w),C=n(7),_=n.n(C),S=n(21),O=n.n(S),M=n(12),E=n.n(M),D=n(35),I=n.n(D),L=n(15),T=n.n(L),j=n(10),P=n(9);_()("vimeo_com"),O.a.isSingle()&&Object(i.b)("vimeo",(function(e,t){var n=Object(o.a)(t),i=t.preferences,s=i.moduleVimeo?1:0,l=u()(),d=t.preferences.selectorsConfig;r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return b.changeState(t.state)}"updatePreferences"!==t.action||Object.assign(i,t.preferences)})),s&&setTimeout((function(){b.run()}));var f,h,b={panelId:"savefrom__vimeo_links",btnBox:null,clipId:null,timer:null,btnPrefix:"sd_ld_bnt_",popupIsShow:!1,dlBtnClassName:"sf-dl-btn",currentMenu:null,run:function(){if(s=1,l){if(b.clipId=b.getFrameClipId(),b.clipId)return b.appendIframeButtons();l=!1}this.videoFeed.injectStyle(),E.a.isAvailable()&&this.mutationMode.enable()},changeState:function(e){l||(s=e,b.videoFeed.disable(),b.rmAllBtn(),b.mutationMode.stop(),e&&b.run())},hideMenu:function(){b.currentMenu&&(b.currentMenu.hide(),b.currentMenu=null)},getFrameClipId:function(){var e=document.location.href.match(/player\.vimeo\.com\/video\/([\w\-]+)/i);if(e=e&&e[1])return e},getBrowserVideoData:function(e,t){var n=e.querySelector(".uploaded_on");if(n||(n=e.querySelector("#info .meta .stats")),!n)return null;if(t&&(t=(t=t.match(/([0-9]+)$/))&&t[1]),!t){var r=e.querySelector("a.js-title")||e.querySelector("a");if(!r)return;var o=r.getAttribute("href");if(!o)return;t=(t=o.match(/\/([0-9]+)$/))&&t[1]}return t?{id:t,parent:n,style:1}:void 0},getVideoId:function(e){var t,n=null;if(t=(e=e||document).querySelector(".player[data-clip-id]"))return t.dataset.clipId;if(t=e.querySelector(".player[data-fallback-url]")){var r=t.dataset.fallbackUrl||"";if(r=r.match(/video\/([0-9]+)\//))return r[1]}return(t=e.querySelector("div.player_wrapper > div.faux_player[data-clip_id]"))&&(n=t.dataset.clip_id)?n:void 0},onBtnClick:(h=Object(a.a)(g.a.mark((function e(o,a){var i,s,u,l,c,d,p;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.stopPropagation(),a.preventDefault(),(i=o.id)||(s=null,o.playerContainer&&(s=y()(o.parent,o.playerContainer)),i=b.getVideoId(s)),!b.currentMenu||!b.currentMenu.isShow){e.next=7;break}b.hideMenu(),e.next=24;break;case 7:return u=r.a.i18n.getMessage("download")+" ...",l={},4===o.style&&(l.offsetTop=20),d=this.dataset.sfMobile>0,c=b.currentMenu=d?n.mobileLightBox.show(u):n.popupMenu.quickInsert(this,u,"sf-popupMenu",l),p=r.a.i18n.getMessage("noLinksFound"),e.prev=12,e.t0=function(e){return JSON.parse(JSON.stringify(e)).map((function(e){return e.title=e.filename,e.href=e.url,delete e.filename,delete e.url,e}))},e.next=16,P.a.createLinkExtractor("vi-blog_video").extractLinks({mediaId:i,initData:t});case 16:e.t1=e.sent,p=(0,e.t0)(e.t1),e.next=23;break;case 20:e.prev=20,e.t2=e.catch(12),console.error("getLinks error",e.t2);case 23:c.update(p);case 24:case"end":return e.stop()}}),e,this,[[12,20]])}))),function(e,t){return h.apply(this,arguments)}),getPlayerConfig:function(){return T()('function(){var clip=null;try{clip=vimeo.clip_page_config.clip}catch(err){throw new Error("Player config is not found")}return{clipId:vimeo.clip_page_config.clip.id,url:vimeo.clip_page_config.player.config_url,clip:clip}}')},rmAllBtn:function(){["sfSkip"].forEach((function(e){for(var t,n=p()(e),r=document.querySelectorAll("["+n+"]"),o=0;t=r[o];o++)t.removeAttribute(n)}));for(var e,t=document.querySelectorAll("."+b.dlBtnClassName),n=0;e=t[n];n++)"1"!==e.dataset.sfType&&"3"!==e.dataset.sfType||(e=e.parentNode),e.parentNode.removeChild(e);b.videoFeed.rmBtn(),b.hideMenu()},appendBtn:function(e){var t,o=e.parent,a=o.querySelector("."+b.dlBtnClassName);if(a){if(!a.dataset.sfId&&6!==e.style)return;a.parentNode.removeChild(a),a=null}if(1===e.style?t=x.a.create("a",{text:r.a.i18n.getMessage("download"),class:[b.dlBtnClassName,"sf-style-1"],style:{display:"inline"},data:{sfId:e.id,sfType:e.style},href:"#"+e.id}):2===e.style?t=x.a.create("button",{text:r.a.i18n.getMessage("download"),class:[b.dlBtnClassName,"btn","iconify_down_b"],data:{sfId:e.id,sfType:e.style}}):5===e.style?t=x.a.create("button",{class:[b.dlBtnClassName,"sf-type-5"],data:{sfId:e.id,sfType:e.style},append:[x.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"text-bottom",marginRight:".625rem"}}),x.a.create("span",{style:{marginLeft:0},text:r.a.i18n.getMessage("download")})]}):7===e.style?t=x.a.create("button",{class:[b.dlBtnClassName,"sf-type-7"],data:{sfId:e.id,sfType:e.style},append:[x.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"text-bottom",marginRight:".625rem"}}),x.a.create("span",{style:{marginLeft:0},text:r.a.i18n.getMessage("download")})]}):3===e.style?t=x.a.create("button",{class:[b.dlBtnClassName,"iris_btn","iris_btn-switch"],data:{sfId:e.id,sfType:e.style},append:[x.a.create(n.svg.getSvg("download","#00adef"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"text-bottom",marginRight:".625rem"}}),x.a.create("span",{class:"iris_btn-content",style:{marginLeft:0},text:r.a.i18n.getMessage("download")})]}):4===e.style?t=x.a.create("i",{class:[b.dlBtnClassName,"sf-style-4"],data:{sfId:e.id,sfType:e.style},style:{display:"inline-block",border:"1px solid #F8F8F8",width:"20px",height:"20px",lineHeight:0,cursor:"pointer",marginLeft:"10px",verticalAlign:"middle"},append:x.a.create("style",{text:m()([{selector:"."+b.dlBtnClassName+".sf-style-4",style:{background:"url("+n.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:"."+b.dlBtnClassName+".sf-style-4:hover",style:{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:"."+b.dlBtnClassName+".sf-style-4:active",style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}}])})}):6===e.style&&(t=x.a.create("button",{class:[b.dlBtnClassName,"btn","btn_sm","btn_blue_o"],data:{sfId:e.id,sfType:e.style,sfMobile:1},style:{marginLeft:"8px"},append:[x.a.create(n.svg.getSvg("download","#00adef"),{style:{display:"inline-block",width:"12px",height:"12px",verticalAlign:"text-bottom",marginRight:"4px"}}),x.a.create("span",{class:"btn_text",style:{marginLeft:0},text:r.a.i18n.getMessage("download")})]})),t.addEventListener("click",b.onBtnClick.bind(t,e)),1===e.style&&(t=x.a.create("span",{append:[t," | "]})),3===e.style&&(t=x.a.create("div",{class:"clip_info-user_actions",append:[t]})),1===e.style||2===e.style||6===e.style){var i=o.firstChild;i?o.insertBefore(t,i):o.appendChild(t)}else o.appendChild(t);Object(j.a)({category:"append",subcategory:"vi",event:"b"})},playerStateChangeObserver:null,observeVideoUi:function(e,t){var n=t;if(n){var r=null,o=/(\s|^)with-controls(\s|$)/;this.playerStateChangeObserver&&this.playerStateChangeObserver.stop(),this.playerStateChangeObserver=new I.a({attrs:[{name:"class",callback:function(t){var n=!o.test(t.oldValue),a=!o.test(t.value);!n&&a?(clearTimeout(r),r=setTimeout((function(){e.lockHide||e.container.classList.add("sf-hide-ui")}),100)):n&&!a&&(clearTimeout(r),e.container.classList.remove("sf-hide-ui"))}}],target:n})}},appendIframeButtons:function(){var e=this,o=n.frameMenu.getBtn({quickBtnStyleObj:{display:"inline-block",border:0,borderRadius:".3em",cursor:"pointer",position:"relative",padding:"6px 8px"},quickBtnCssStyle:{backgroundColor:"rgba(23,35,34,.75)"},quickBtnOverCssStyle:{backgroundColor:"rgb(0, 173, 239)"},nodeCssStyle:{display:"none"},singleBtn:!0,btnId:e.panelId,containerStyle:{left:"10px",top:"10px"},quickBtnIcon:x.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"}}),on:[["click",function(){var i=Object(a.a)(g.a.mark((function a(i){var s,u,l,c;return g.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(i.preventDefault(),i.stopPropagation(),r.a.sendMessage({action:"checkAndOpenProLanding"}),!e.currentMenu||!e.currentMenu.isShow){a.next=4;break}e.hideMenu(),a.next=17;break;case 4:return s=e.clipId,u=r.a.i18n.getMessage("download")+" ...",l=e.currentMenu=n.frameMenu.getMenu(this,u,"sf-frame-menu",{leftMenuPos:!0,container:o.container,onShow:function(){o.node.classList.add("sf-over")},onHide:function(){e.currentMenu=null,o.node.classList.remove("sf-over")}}),c=r.a.i18n.getMessage("noLinksFound"),a.prev=5,a.t0=function(e){return JSON.parse(JSON.stringify(e)).map((function(e){return e.title=e.filename,e.href=e.url,delete e.filename,delete e.url,e}))},a.next=9,P.a.createLinkExtractor("vi-blog_video").extractLinks({mediaId:s,initData:t});case 9:a.t1=a.sent,c=(0,a.t0)(a.t1),a.next=16;break;case 13:a.prev=13,a.t2=a.catch(5),console.error("getLinks error",a.t2);case 16:l.update(c);case 17:case"end":return a.stop()}}),a,this,[[5,13]])})));return function(e){return i.apply(this,arguments)}}()],["mousedown",function(t){t.stopPropagation(),2===t.button&&(i&&(i.stop(),i=null),e.hideMenu(),o.container.parentNode&&o.container.parentNode.removeChild(o.container))}]]});o.quickBtn.title=r.a.i18n.getMessage("download"),o.container=x.a.create("div",{class:"sf-btn-ctr",append:o.node}),A.a.on(o.container,"mouseenter",(function(){o.lockHide=!0})),A.a.on(o.container,"mouseleave",(function(){o.lockHide=!1})),o.node.appendChild(x.a.create("style",{text:m()([{selector:["body:hover .sf-btn-ctr:not(.sf-hide-ui) #"+e.panelId,"body:hover .sf-btn-ctr:not(.sf-hide-ui) .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(o.container);var i=new E.a({queries:[{css:d.vimeo.videoUi,is:"added",callback:function(t){var n=t.added[0];n&&(e.observeVideoUi(o,n),setTimeout((function(){i.stop(),i=null}),0))}}]})},videoFeed:{btnClassName:"sf-feed-dl-btn",style:null,onClick:(f=Object(a.a)(g.a.mark((function e(o){var a,i,s,u;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.preventDefault(),o.stopPropagation(),a=this.dataset.sfId,this.dataset.sfCouchMode,!b.currentMenu||!b.currentMenu.isShow){e.next=7;break}b.hideMenu(),e.next=20;break;case 7:return i=r.a.i18n.getMessage("download")+" ...",s=b.currentMenu=n.popupMenu.quickInsert(this,i,"sf-popupMenu"),u=r.a.i18n.getMessage("noLinksFound"),e.prev=8,e.t0=function(e){return JSON.parse(JSON.stringify(e)).map((function(e){return e.title=e.filename,e.href=e.url,delete e.filename,delete e.url,e}))},e.next=12,P.a.createLinkExtractor("vi-blog_video").extractLinks({mediaId:a,initData:t});case 12:e.t1=e.sent,u=(0,e.t0)(e.t1),e.next=19;break;case 16:e.prev=16,e.t2=e.catch(8),console.error("getLinks error",e.t2);case 19:s.update(u);case 20:case"end":return e.stop()}}),e,this,[[8,16]])}))),function(e){return f.apply(this,arguments)}),getBtn:function(e){return x.a.create("i",{class:e.classList,data:{sfId:e.id,sfCouchMode:e.isCouchMode?1:0},on:["click",this.onClick]})},onImgOver2:function(e){var t,n,r=this.parentNode;if("A"===r.tagName){var o=r.getAttribute("href");if(o&&(n=(n=o.match(/^\/(\d+)$/))&&n[1])&&(t=r.parentNode)&&t.classList.contains("contextclip-img")&&!(t.dataset.sfBtn>0)){t.dataset.sfBtn="1";var a=[b.videoFeed.btnClassName,"sf-type1-btn"];r.appendChild(b.videoFeed.getBtn({id:n,classList:a})),r=null,t=null}}},onImgOver:function(e){var t,n,r=this.parentNode;if(v()(this,"a.contextclip-img-thumb")){t=this,r=this;var o=/\/([0-9]+)/.exec(this.href);o&&(n=o[1])}if(!n&&(v()(this,"div.iris_video-vital")||v()(this,"li.clip_thumbnail"))){r=this.querySelector(".iris_thumbnail"),t=this;var a=this.querySelector("a.iris_link-box");if(a){var i=a.href;!(n=(n=i.match(/\/([0-9]+)/))&&n[1])&&i&&(n=JSON.stringify({url:i}))}}if(!n&&"LI"==r.tagName){if(!(n=r.dataset.resultId)||"clip_"!==n.substr(0,5))return;n=n.substr(5),t=r,r=this.querySelector(".thumbnail_wrapper")}if(!n){if("A"!==r.tagName)return;if(n=r.dataset.clipId,!(t=r.parentNode))return}var s=!1;if(!n){if((s="item_id"===(n=t.id).substr(0,7)&&t.classList.contains("clip"))||"clip"===n.substr(0,4)||(n=void 0),!n&&"ARTICLE"===t.tagName&&t.classList.contains("clip_item")&&(n=r.getAttribute("href")),!n)return;(n=n.match(/([0-9]+)$/))&&(n=n[1])}if(!t.dataset.sfBtn){t.dataset.sfBtn="1";var u=[b.videoFeed.btnClassName];this.classList.contains("thumbnail_lg_wide")&&u.push("sf-type1-btn"),this.classList.contains("contextclip-img-thumb")&&u.push("sf-type4-btn"),(this.classList.contains("clip_thumbnail")||this.classList.contains("iris_video-vital"))&&u.push("sf-type3-btn");var l=t.parentNode;l&&"clips"===l.id&&u.push("sf-type1-btn"),l=null,s&&u.push("sf-type1-btn"),t.classList.contains("promo_clip")&&1===u.length&&u.push("sf-type1-btn"),r.appendChild(b.videoFeed.getBtn({id:n,classList:u,isCouchMode:s})),r=null,t=null}},injectStyle:function(){this.style?!this.style.parentNode&&document.head.appendChild(this.style):(this.style=x.a.create("style",{text:m()([{selector:[".sf-dl-btn.sf-type-5",".sf-dl-btn.sf-type-7"],style:{color:"#fff",borderColor:"#00adef",backgroundColor:"#00adef",minWidth:"68px",minHeight:"32px",padding:"0 10px",lineHeight:"30px",fontSize:"14px",width:"auto",position:"relative",margin:0,fontWeight:700,borderWidth:"1px",borderStyle:"solid",borderRadius:"3px",letterSpacing:".1px",transition:"all .1s ease-in-out",cursor:"pointer",marginLeft:".5rem"}},{selector:[".sf-dl-btn.sf-type-7"],style:{verticalAlign:"middle"}},{selector:[".sf-dl-btn.sf-type-5:hover",".sf-dl-btn.sf-type-7:hover"],style:{color:"#fff",borderColor:"#08c",backgroundColor:"#08c"}},{selector:["a > .sf-feed-dl-btn","a .sf-feed-dl-btn.sf-type3-btn","a > .sf-feed-dl-btn.sf-type4-btn"],style:{display:"none",border:"1px solid #F8F8F8",width:"20px",height:"20px",padding:0,position:"absolute",background:"url("+n.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px",top:"auto",left:"auto",lineHeight:0}},{selector:["a > .sf-feed-dl-btn.sf-type4-btn"],style:{top:0,left:0}},{selector:["a > .sf-feed-dl-btn.sf-type1-btn","a > div > .sf-feed-dl-btn.sf-type3-btn"],style:{top:0}},{selector:["a > .sf-feed-dl-btn.sf-type2-btn"],style:{opacity:.5}},{selector:["a > div > .sf-feed-dl-btn.sf-type3-btn"],style:{zIndex:10}},{selector:["a > .sf-feed-dl-btn:hover","a > div > .sf-feed-dl-btn.sf-type3-btn:hover"],style:{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:["a > .sf-feed-dl-btn.sf-type2-btn:hover"],style:{opacity:.8}},{selector:["a > .sf-feed-dl-btn:active","a > div > .sf-feed-dl-btn.sf-type3-btn:active"],style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}},{selector:["a:hover > .sf-feed-dl-btn","a:hover > div > .sf-feed-dl-btn.sf-type3-btn"],style:{display:"block"}}])}),document.head.appendChild(this.style))},disable:function(){this.style&&this.style.parentNode&&this.style.parentNode.removeChild(this.style)},rmBtn:function(){for(var e,t=document.querySelectorAll(".sf-feed-dl-btn"),n=0;e=t[n];n++)e.parentNode.removeChild(e);var r=p()("sfBtn"),o=document.querySelectorAll("["+r+"]");for(n=0;e=o[n];n++)e.removeAttribute(r)}},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop()},wrapOnImgOver:function(){s&&b.videoFeed.onImgOver.apply(this,arguments)},wrapOnImgOver2:function(){s&&b.videoFeed.onImgOver2.apply(this,arguments)},enable:function(){if(this.observer)return this.observer.start();this.observer=new E.a({queries:[{css:d.vimeo.clipToolsAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)b.hideMenu(),t.dataset.sfSkip>0||(t.dataset.sfSkip="1",b.appendBtn({id:"",parent:t,style:2,playerContainer:"#clip"}))}},{css:d.vimeo.infoMetaAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(b.hideMenu(),!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=t.querySelector(".stats")||t.querySelector(".time");r&&b.appendBtn({id:"",parent:r,style:1,playerContainer:"#channel_clip_container"})}}},{css:d.vimeo.browseLiAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)&&(t.dataset.sfSkip="1","clip_"===t.id.substr(0,5))){var r=b.getBrowserVideoData(t,t.id);r&&b.appendBtn(r)}}},{css:d.vimeo.thumbnailAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",A.a.one(t,"mouseenter",b.mutationMode.wrapOnImgOver))}},{css:d.vimeo.clipThumbnailAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=c()(t,"clip_thumbnail");A.a.one(r,"mouseenter",b.mutationMode.wrapOnImgOver)}}},{css:d.vimeo.vitalThumbnailAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=c()(t,"iris_video-vital");A.a.one(r,"mouseenter",b.mutationMode.wrapOnImgOver)}}},{css:d.vimeo.contextClipThumbnailAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=c()(t,"contextclip-img-thumb");A.a.one(r,"mouseenter",b.mutationMode.wrapOnImgOver)}}},{css:d.vimeo.clipLinkAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1",b.hideMenu();var r=y()(t,".clip_info-wrapper");if(r){var o=r.querySelector(".clip_info-actions");o&&b.appendBtn({id:"",parent:o,style:3,playerContainer:".clip_main"})}}}},{css:d.vimeo.clipSublineAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",b.hideMenu(),y()(t,".clip_main-content")&&b.appendBtn({id:"",parent:t,style:5,playerContainer:".clip_main"}))}},{css:d.vimeo.clipImageAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",A.a.one(t,"mouseenter",b.mutationMode.wrapOnImgOver2))}},{css:d.vimeo.clipTitleAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",b.appendBtn({id:"",parent:t,style:4,playerContainer:".clip"}))}},{css:d.vimeo.clipSubinfoAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)b.appendBtn({id:"",parent:t,style:6,playerContainer:".clip_wrapper"})}},{css:d.vimeo.mailClipSublineAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)b.appendBtn({id:"",parent:t,style:7,playerContainer:"#main"})}}]})}}}}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={2:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([132,0]),n()}({132:function(e,t,n){n.r(t);var r=n(0),o=n(11),i=n(17),s=n(27),u=n.n(s),l=n(23),c=n.n(l),d=n(68),p=n.n(d),f=n(39),m=n.n(f),h=n(13),v=n.n(h),b=n(3),y=n.n(b),k=n(2),A=n.n(k),w=n(7),x=n.n(w),C=n(21),_=n.n(C),S=n(12),O=n.n(S),M=n(10),E=n(60),D=n.n(E),I=n(9),L=x()("dailymotion_com");_.a.isSingle()&&Object(i.b)("dailymotion",(function(e,t){var n=Object(o.a)(t),i=t.preferences,s=i.moduleDailymotion?1:0,l=t.preferences.selectorsConfig,d=u()()&&/\/embed\/([\w\-]+)/i.test(document.location.href);r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return f.changeState(t.state)}"updatePreferences"!==t.action?s&&"updateLinks"===t.action&&f.updateLinks():Object.assign(i,t.preferences)})),s&&setTimeout((function(){Object(M.a)({category:"append",subcategory:"da",event:"b"}),f.run()}));var f={contextMenu:null,linkCache:{},embed:null,title:"",styleIndex:0,btnId:"sf__download_btn",result:null,popupIsShow:!1,run:function(){return s=1,d?(Object(M.a)({category:"download",subcategory:"da",event:"video"}),void f.appendIframeButtons()):O.a.isAvailable()?f.mutationMode.enable():void 0},changeState:function(e){d||(s=e,f.rmBtn(),f.mutationMode.stop(),e&&f.run())},hideMenu:function(){f.contextMenu&&f.contextMenu.isShow&&(f.contextMenu.hide(),f.contextMenu=null)},updateLinks:function(){f.changeState(0),f.changeState(1)},appendIframeButtons:function(){var e=this,t=n.frameMenu.getBtn({quickBtnStyleObj:{display:"inline-block",cursor:"pointer",position:"relative",padding:"9px 10px"},quickBtnCssStyle:{backgroundColor:"rgba(0,0,0,.75)"},singleBtn:!0,btnId:e.btnId,containerStyle:{right:"50px",top:"10px"},quickBtnIcon:A.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"}}),on:[["click",function(o){if(o.preventDefault(),o.stopPropagation(),e.contextMenu&&e.contextMenu.isShow)e.hideMenu();else{var a=e.getIdFromUrl(),i=r.a.i18n.getMessage("download")+" ...",s=e.linkCache[a];s&&(i=n.popupMenu.prepareLinks.dailymotion(s.links,s.title));var u=e.contextMenu=n.frameMenu.getMenu(this,i,"sf-frame-menu",{container:t.container,onShow:function(){t.node.classList.add("sf-over")},onHide:function(){e.contextMenu=null,t.node.classList.remove("sf-over")}});s||r.a.sendMessage({action:"getDailymotionLinks",extVideoId:a,metadata:e.getMetadata(a)},(function(t){var o=r.a.i18n.getMessage("noLinksFound");t.links&&(e.linkCache[a]=t,o=n.popupMenu.prepareLinks.dailymotion(t.links,t.title)),u.update(o)}))}}],["mousedown",function(n){n.stopPropagation(),2===n.button&&(y.a.off(document.body,"mousemove",s),e.hideMenu(),t.container.parentNode&&t.container.parentNode.removeChild(t.container))}]]});t.quickBtn.title=r.a.i18n.getMessage("download"),t.container=A.a.create("div",{class:"sf-btn-ctr",append:t.node}),y.a.on(t.container,"mouseenter",(function(){t.lockHide=!0})),y.a.on(t.container,"mouseleave",(function(){t.lockHide=!1}));var o=null,a=!1,i=function(){t.lockHide||(t.container.classList.add("sf-hide-ui"),a=!0)},s=function(){a&&(t.container.classList.remove("sf-hide-ui"),a=!1),clearTimeout(o),o=setTimeout(i,3e3)};y.a.on(document.body,"mousemove",s),t.node.appendChild(A.a.create("style",{text:v()([{selector:["body:hover .sf-btn-ctr:not(.sf-hide-ui) #"+e.btnId,"body:hover .sf-btn-ctr:not(.sf-hide-ui) .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(t.container)},getIdFromUrl:function(e){var t=(e=e||location.href).match(/\/embed\/video\/([a-z0-9]+)/);return t&&t[1]},getMetadata:function(e){var t=null;return p()(document.body.innerHTML,/playerV5/).some((function(n){return m()(n).some((function(n){if(n&&n.metadata&&n.metadata.id===e)return t=n.metadata,!0}))})),t},rmBtn:function(){for(var e,t=document.querySelectorAll(["#"+f.btnId,".sf-wrapper"]),n=0;e=t[n];n++)e.parentNode.removeChild(e);f.result=null,f.popupIsShow=!1},insertBtn:function(e){var o=this;if(!e.querySelector(".sf-dl-btn")){var i=A.a.create("button",{id:f.btnId,class:["sf-dl-btn"],title:r.a.i18n.getMessage("download"),append:[A.a.create("span",{append:[n.svg.getSvg("download","#000")]}),A.a.create("style",{text:v()({selector:".sf-dl-btn",style:{display:"block",border:0,borderRadius:"50%",cursor:"pointer",background:"#e8e8e8",minWidth:"40px",maxWidth:"40px",height:"40px",alignSelf:"center"},append:{selector:"span",style:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:"auto",marginLeft:"auto",width:"16px",height:"16px"}}})})],on:["click",function(){var e=Object(a.a)(g.a.mark((function e(o){var a,i,s,u;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.preventDefault(),o.stopPropagation(),!f.contextMenu||!f.contextMenu.isShow){e.next=5;break}f.hideMenu(),e.next=18;break;case 5:return a=r.a.i18n.getMessage("download")+" ...",e.prev=6,i=D.a.getPageType(window.location.href),s=f.contextMenu=n.popupMenu.quickInsert(this,a,"sf-popupMenu"),e.next=11,I.a.createLinkExtractor(i).extractLinks({initData:t});case 11:u=e.sent,s.update(u.map((function(e){return{ext:e.ext,forceDownload:e.forceDownload,format:e.format,href:e.url,quality:e.quality,title:e.filename}}))),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(6),L.debug("Load links error",e.t0),s.update(r.a.i18n.getMessage("noLinksFound"));case 18:case"end":return e.stop()}}),e,this,[[6,15]])})));return function(t){return e.apply(this,arguments)}}()]});y.a.onRemoveEvent(i,(function(t){e.dataset.sfSkip=0,document.body.contains(e)&&o.mutationMode.observer.trigger(e)})),e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i)}},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=c()(e),r=document.querySelectorAll("["+n+"]"),o=0;t=r[o];o++)t.removeAttribute(n)}))},enable:function(){if(this.observer)return this.observer.start();this.observer=new O.a({queries:[{css:l.dailymotion.video,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",f.insertBtn(t))}},{css:"."+y.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)y.a.onRemoveListener(t)}}]})}}}}),(function(){if(!u()())return!0;if(/\/embed\/([\w\-]+)/i.test(location.href)){var e=!1;try{e=location.hostname===window.parent.location.hostname}catch(e){}return!e}}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={20:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([150,0]),n()}({150:function(e,t,n){n.r(t);var r=n(0),o=n(11),i=n(17),s=n(27),u=n.n(s),l=n(25),c=n.n(l),d=n(23),p=n.n(d),f=n(13),m=n.n(f),v=n(22),b=n.n(v),y=n(19),k=n.n(y),A=n(3),w=n.n(A),x=n(2),C=n.n(x),_=n(6),O=n.n(_),M=n(7),E=n.n(M),D=n(21),I=n.n(D),L=n(12),T=n.n(L),j=n(35),P=n.n(j),F=n(62),N=n.n(F),B=n(15),R=n.n(B),z=n(16),q=n.n(z),U=n(39),V=n.n(U),H=n(8),G=n(42),W=E()("getYoutubeLinks");function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(e,t,n){return Object(H.a)(S({action:"getYoutubeLinksFromConfig",extVideoId:e,url:t,config:{args:{video_id:e}}},n)).then((function(e){if(!e.links)throw Error("getYoutubeLinksFromBackground. Links not found");return e}))}(e,t,n).catch((function(t){return W.error("getVideoLinks error",t),function(e){return function(e){var t="https://www.youtube.com/embed/"+encodeURIComponent(e);return q()({url:t,localXHR:r.a.isGM}).then((function(e){var t=V()(e.body,/INNERTUBE_CONTEXT":(.*?),/);if(!t.length||!t[0].INNERTUBE_CONTEXT||!t[0].INNERTUBE_API_KEY)throw Error("INNERTUBE_CONTEXT not found");return t[0]}))}(e).then((function(t){var n="https://www.youtube.com/youtubei/v1/player?"+G.stringify({key:t.INNERTUBE_API_KEY});return q()({url:n,method:"POST",localXHR:r.a.isGM,json:!0,data:JSON.stringify({context:t.INNERTUBE_CONTEXT,videoId:e}),headers:{"Content-Type":"application/json","X-Youtube-Client-Name":t.INNERTUBE_CONTEXT_CLIENT_NAME||"55","X-Youtube-Client-Version":t.INNERTUBE_CONTEXT_CLIENT_VERSION||"1.20210331.1.0"}})})).then((function(e){return{videoInfo:{player_response:e.body}}}))}(e).then((function(t){var r=t.videoInfo;return Object(H.a)({action:"ytPrepareVideoInfo",videoId:e,checkSubtitles:n.checkSubtitles,noDash:n.checkSubtitles,config:r})}))})).then((function(e){if(!e.links)throw new Error("Links not found");return e}))}var Y=n(20),J=n(60),K=n.n(J),Z=n(9),X=function e(t){try{$(t)}catch(n){e({type:"counter",name:"monitoring_validator_error",help:"Monitoring validator error",labels:{metric_name:t.name}})}t.name=ee(t.name),r.a.sendMessage({action:"sendAlternativeMonitoring",params:S({},t)})},$=function(e){if(void 0===e.type)throw new Error("type is required.");if("counter"!==e.type&&"gauge"!==e.type&&"histogram"!==e.type&&"summary"!==e.type)throw new Error("type must be one of 'counter', 'gauge', 'histogram' or 'summary'.");if(void 0===e.name)throw new Error("name is required.");if("string"!=typeof e.name)throw new Error("name must be a string.");if(void 0===e.help)throw new Error("help is required.");if("string"!=typeof e.help)throw new Error("help must be a string.");if(e.labels&&"object"!=typeof e.labels)throw new Error("labels must be an object.");if(e.labels&&Object.keys(e.labels).every((function(t){return e.labels&&"string"!=typeof e.labels[t]})))throw new Error("labels must be an object of strings.");if(e.buckets&&!Array.isArray(e.buckets))throw new Error("buckets must be an array.");if(e.buckets&&e.buckets.every((function(e){return"number"!=typeof e})))throw new Error("buckets must be an array of numbers.");if(e.duration&&"number"!=typeof e.duration)throw new Error("duration must be a number.")},ee=function(e){return"web_events_"+e.replace(/[-\s]/g,"_")},te=function(e,t){var n=setInterval((function(){"complete"===document.readyState&&(clearInterval(n),X({type:"counter",name:"search_element_by_selector",help:"Search element by selector",labels:{browser:"userscript",site:"youtube",page_type:e}}),t[e]&&X({type:"counter",name:"element_by_selector_founded",help:"Element by selector is founded",labels:{browser:"userscript",site:"youtube",page_type:e,selector:t[e]}}))}),2e3)},ne=E()("youtube_com");I.a.isSingle()&&Object(i.b)("youtube",(function(e,t){var n=K.a.getPageType(window.location.href),i=t.preferences.selectorsConfig;X({type:"counter",name:n,help:"Youtube page type",labels:{browser:"userscript",site:"youtube"}});var s={};te(n,s),document.addEventListener("mutationwatcher:hrefchange",(function(){n=K.a.getPageType(window.location.href),X({type:"counter",name:n,help:"Youtube page type",labels:{browser:"userscript",site:"youtube"}}),te(n,s)}));var l=Object(o.a)(t),d=t.preferences,f=d.moduleYoutube?1:0,v=r.a.isChrome||r.a.isFirefox||r.a.isGM&&r.a.isTM,y=u()();d.experiments;r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:f,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return _.changeState(t.state)}if("updatePreferences"!==t.action){if(f){if("updateLinks"===t.action){var o=_.getIdFromLocation();o&&M((function(e){if(e&&e.args&&e.args.video_id===o){var t=document.getElementById(_.buttonId);null!==t&&t.parentNode.removeChild(t),_.responseCache={},_.video_id=e.args.video_id;var n=document.getElementById("watch7-subscription-container");_.appendDownloadButton(n)}}))}"downloadPlaylist"===t.action&&_.downloadPlaylist()}}else Object.assign(d,t.preferences)})),f&&setTimeout((function(){_.run()}));var A,x,_={swfargs:null,video_id:"",buttonId:"savefrom__yt_btn",responseCache:{},isMobile:!1,mobileMenu:null,currentMenu:null,currentTutorial:null,run:function(){if(f=1,y){var e=location.href.match(/\/embed\/([\w\-]+)/i);(e=e&&e[1])||(y=!1)}return 0===location.host.indexOf("m.")?(_.isMobile=!0,void(T.a.isAvailable()&&_.mobileMutationMode.enable())):y?(_.video_id=e,void _.appendFrameButton()):void(T.a.isAvailable()&&(_.videoFeed.injectStyle(),_.mutationMode.enable()))},changeState:function(e){if(f=e,!y&&!_.isMobile){_.tutorial.hide(),_.hideCurrentMenu(),_.videoFeed.rmBtn(),_.mutationMode.stop();var t=document.getElementById(_.buttonId);t&&t.parentNode.removeChild(t),e&&_.run()}},hideCurrentMenu:function(){_.currentMenu&&(_.currentMenu.hide(),_.currentMenu=null)},hideMobileMenu:function(){_.mobileMenu&&(_.mobileMenu.hide(),_.mobileMenu=null)},mutationMode:{observer:null,stop:function(){_.mutationMode.observer&&_.mutationMode.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=p()(e),r=document.querySelectorAll("["+n+"]"),o=0;t=r[o];o++)t.removeAttribute(n)}))},wrapVideoFeedOnImgHover:function(){if(f&&_.videoFeed.testUrl(location.href)&&!(this.dataset.sfBtn>0)){this.dataset.sfBtn="1";var e=JSON.parse(this.dataset.sfContext);this.appendChild(_.videoFeed.getBtnNode(e.id,e.styleIndex))}},wrapNewVideoFeedOnThumbnailHover:function(){if(f&&_.videoFeed.testUrl(location.href)){var e=_.mutationMode,t=this,r=t.href,o=r&&(r.match(_.videoFeed.hrefIdPattern)||r.match(_.videoFeed.shortsPattern)),a=o&&o[1];if(a){if(!t.querySelector(".sf-feed-btn")){X({type:"counter",name:"append_button",help:"Append button",labels:{browser:"userscript",site:"youtube",page_type:n}});try{var i=_.videoFeed.getBtnNode(a,2);w.a.onRemoveEvent(i,(function(){this.parentNode||w.a.one(t,"mouseenter",e.wrapNewVideoFeedOnThumbnailHover)})),t.appendChild(i),X({type:"counter",name:"append_button_success",help:"Append button - success",labels:{browser:"userscript",site:"youtube",page_type:n}})}catch(e){console.error("append button error")}}}else X({type:"counter",name:"error_before_append_button",help:"Error before append button",labels:{browser:"userscript",site:"youtube",page_type:n}});r=null,o=null,a=null,i=null}},enable:function(){var e=this;if(e.observer)return e.observer.start();var t=function(t){if(_.videoFeed.testUrl(location.href))for(var n,r=0;n=t.added[r];r++)if(!(n.dataset.sfSkip>0)){n.dataset.sfSkip="1";var o=n.dataset.videoIds;if(o){var a=n.parentNode,i={};i.id=o,i.styleIndex=1,a.dataset.sfContext=JSON.stringify(i),w.a.one(a,"mouseenter",e.wrapVideoFeedOnImgHover)}}},r=function(e,t){for(var r,o=0;r=e.added[o];o++)r.dataset.sfSkip>0||(r.dataset.sfSkip="1",s[n]||(s[n]=t),_.appendNewDownloadButton(r))};e.observer=new T.a({queries:[{css:i.youtube.subcriptionAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",_.appendDownloadButton(t))}},{css:i.youtube.shortButtonsAdd,is:"added",callback:function(e,t){var r=Object(h.a)(e.added,1)[0];s[n]||(s[n]=t),_.appendShortDownloadButton(r,r.getAttribute("style"))}},{css:i.youtube.WLButtonAdd,is:"added",callback:t},{css:i.youtube.WLButtonAdd2,is:"added",callback:t},{css:i.youtube.thumbnailAdd,is:"added",callback:function(t,r){if(_.videoFeed.testUrl(location.href))for(var o,a=0;o=t.added[a];a++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",s[n]||(s[n]=r),w.a.one(k()(o,"a"),"mouseenter",e.wrapNewVideoFeedOnThumbnailHover))}},{css:i.youtube.butonsAdd,is:"added",callback:r},{css:i.youtube.buttonsAdd2,is:"added",callback:r},{css:"."+w.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)w.a.onRemoveListener(t)}}]})}},mobileMutationMode:{observer:null,stop:function(){_.mutationMode.observer&&_.mutationMode.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=p()(e),r=document.querySelectorAll("["+n+"]"),o=0;t=r[o];o++)t.removeAttribute(n)}))},enable:function(){if(this.observer)return this.observer.start();this.observer=new T.a({queries:[{css:i.youtube.oneElementAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(0===t.id.indexOf("koya_elem_")){for(var r=0;r<4&&t;)t=t.parentNode,r++;if(t&&4===r){var o=1,a=t.querySelector("div:nth-child(1)>h1:nth-child(1)");if(a||(a=null),!a&&b()(t,'div > div > div[id^="koya_child_"]:last-child > div')){for(a=t,r=0;r<3&&a;)a=a.parentNode,r++;a&&a.querySelector("div:nth-child(1)>h2:nth-child(1)")?(t=t.parentNode,o=2):a=null}a&&(t.dataset.sfSkip>0||(t.dataset.sfSkip="1",_.appendMobileButton("",t,o)))}}}},{css:i.youtube.actionsAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",_.appendMobileButton("",t,3))}},{css:i.youtube.controlsAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",_.appendMobileButton("",t,4))}},{css:i.youtube.slimActionsAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",_.appendNewMobileButton(t,5))}},{css:"."+w.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)w.a.onRemoveListener(t)}}]})}},_onSelectBtnClick:(x=Object(a.a)(g.a.mark((function e(o,a){var i,s,u,c,d,p,f,m,h;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.button>0){e.next=27;break}if(a.stopPropagation(),a.preventDefault(),!_.currentMenu||!_.currentMenu.isShow){e.next=5;break}_.hideCurrentMenu(),e.next=27;break;case 5:if(X({type:"counter",name:"show_menu",help:"Show menu",labels:{browser:"userscript",site:"youtube",page_type:n}}),i=o.btnObj,s=i.videoId,u=_.currentMenu=l.popupMenu.quickInsert(i.node,r.a.i18n.getMessage("download")+" ...","sf-popupMenu",{onShow:function(){w.a.onRemoveEvent(i.node,_.hideCurrentMenu)},onHide:function(){w.a.offRemoveEvent(i.node,_.hideCurrentMenu)},onItemClick:function(e,t){_.onMenuItemClick(t,{isPageItem:1,videoId:s})},offsetTop:i.popupMenu&&i.popupMenu.offsetTop,offsetRight:i.popupMenu&&i.popupMenu.offsetRight,parent:i.popupMenu&&i.popupMenu.parent}),c=function(e){return e&&e.length?u.update(e,r.a.i18n.getMessage("partnersLinksOnly")):u.update(r.a.i18n.getMessage("noLinksFound"))},s){e.next=9;break}return e.abrupt("return",c());case 9:return X({type:"counter",name:"extract_links",help:"Extract links",labels:{browser:"userscript",site:"youtube",page_type:n}}),e.prev=10,e.next=13,Z.a.createLinkExtractor("yt-video").extractLinks({mediaId:s,mediaUrl:location.href,noDash:!1,checkSubtitles:!0,initData:t});case 13:if(d=e.sent,/^yt.+/.test(n)&&(f=(p=d).menuLinks,m=p.multiLang,d=f),h=[],(f=(f=function(e){return JSON.parse(JSON.stringify(e)).map((function(t,n){return t.href=t.url,t.title=t.filename,t.func=e[n].func,delete t.url,delete t.filename,t}))}(d)).filter((function(e){return e.href}))).length){e.next=18;break}return e.abrupt("return",void c(h));case 18:if(0!==f.filter((function(e){return!["ummy","televzr"].includes(e.format)})).length){e.next=20;break}return e.abrupt("return",c(h));case 20:f=f.map((function(e){return!["360","720"].includes(e.quality)||"MP4"!==e.format||isNaN(parseInt(e.itag))||e.func||(e.func=function(){ne.log("track click downloadItem",e),r.a.sendMessage({action:"track",t:"event",tid:"G-L0GP1RQSBJ",el:"mp4_"+e.quality,ec:"download",ea:"mp4_"+e.quality})}),e})),m?u.update(f,"",m):u.update(f),X({type:"counter",name:"extract_links_success",help:"Extract links - success",labels:{browser:"userscript",site:"youtube",page_type:n}}),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(10),ne.error("get links for dropdown error",e.t0),c();case 26:i.isFirstMenuShow&&(i.isFirstMenuShow=!1);case 27:case"end":return e.stop()}}),e,null,[[10,23]])}))),function(e,t){return x.apply(this,arguments)}),appendDownloadButton:function(e){var t=e.querySelector("#"+_.buttonId);t&&(t.parentNode&&t.parentNode.removeChild(t),t=null);var n=this,r={},o=n.getButtonUnderVideo(_._onSelectBtnClick.bind(null,r));return r.btnObj=o,o.isFirstMenuShow=!0,o.setLoadingState(),e.appendChild(o.node),M((function(e){var t=null;if(e&&e.args&&e.args.video_id&&(t=e.args.video_id),t){o.node.dataset.sfVideoId=t,o.ytConfig=e,o.videoId=t,o.isPage=1;var r=[],a=function(){a=null,_.tutorial.show({target:o.node})};r.push((function(){return a&&a()})),o.onGetLinksArr=r,n.quickBtn.setValue(o)}}))},appendNewDownloadButton:function(e,t){var r=this,o=e.querySelector("#"+_.buttonId);if(o){if(t)return;o.classList.remove(w.a.onRemoveClassName),o.parentNode&&o.parentNode.removeChild(o),o=null}X({type:"counter",name:"append_button",help:"Append button",labels:{browser:"userscript",site:"youtube",page_type:n}});try{var a=new this.getNewButtonUnderVideo(_._onSelectBtnClick);a.isFirstMenuShow=!0,a.setLoadingState();var i=e.childNodes[2];i||(i=e.firstChild),i?(e.insertBefore(a.node,i),X({type:"counter",name:"append_button_success",help:"Append button - success",labels:{browser:"userscript",site:"youtube",page_type:n}})):(e.appendChild(a.node),X({type:"counter",name:"append_button_success",help:"Append button - success",labels:{browser:"userscript",site:"youtube",page_type:n}}))}catch(e){console.error("append button error")}var s=null,u=null;return w.a.onRemoveEvent(a.node,(function(){s&&(s.abort(),s=null),u&&(u.destroy(),u=null),e.parentNode&&_.appendNewDownloadButton(e,!0)})),a.popupMenu={offsetTop:-6,offsetRight:-1,parent:a.menuContainer},(s=l.waitNodesBySelector("#movie_player")).then((function(){if(N()(document.body,a.node))return E().then((function(e){var t=e&&e.args&&e.args.video_id;if(t){a.node.dataset.sfVideoId=t,a.ytConfig=e,a.videoId=t,a.isPage=1;var n=[];a.onGetLinksArr=n,n.push((function(){_.tutorial.show({target:a.selectBtn,parent:a.menuContainer,btnLeftOffset:12,btnTopOffset:-6})})),r.quickBtn.setValue(a)}else ne.debug("videoId is not found!")}));ne.debug("Btn not exists")})).catch((function(e){"ABORTED"!==e.message&&ne.error("waitNodesBySelector error",e)}))},appendShortDownloadButton:function(e,t,r){var o=this,a=e.closest("#player-container");a||X({type:"counter",name:"error_before_append_button",help:"Error before append button",labels:{browser:"userscript",site:"youtube",page_type:n}});var i=null==a?void 0:a.closest("ytd-reel-video-renderer");if(i&&!i.querySelector("#savefrom__yt_btn")){var s=a.querySelector("#"+_.buttonId);if(s){if(r)return;s.classList.remove(w.a.onRemoveClassName),s.parentNode&&s.parentNode.removeChild(s),s=null}X({type:"counter",name:"append_button",help:"Append button",labels:{browser:"userscript",site:"youtube",page_type:n}});try{i.querySelector(".overlay.style-scope.ytd-reel-video-renderer").style.overflow="visible";var u=new this.getShortButton(_._onSelectBtnClick);u.isFirstMenuShow=!0,u.setLoadingState(),i.querySelector("#like-button").append(u.node),X({type:"counter",name:"append_button_success",help:"Append button - success",labels:{browser:"userscript",site:"youtube",page_type:n}})}catch(e){console.error("append button error")}var c=null,d=null;return w.a.onRemoveEvent(u.node,(function(){c&&(c.abort(),c=null),d&&(d.destroy(),d=null),likeButton.parentNode&&_.appendShortDownloadButton(likeButton,t,!0)})),u.popupMenu={offsetTop:-6,offsetRight:-1,parent:u.menuContainer},(c=l.waitNodesBySelector("#movie_player")).then((function(){if(N()(document.body,u.node))return E(t,!0).then((function(e){var t=e&&e.args&&e.args.video_id;if(t){u.node.dataset.sfVideoId=t,u.ytConfig=e,u.videoId=t,u.isPage=1;var n=[];u.onGetLinksArr=n,n.push((function(){_.tutorial.show({target:u.selectBtn,parent:u.menuContainer,btnLeftOffset:12,btnTopOffset:-6})})),o.quickBtn.setValue(u)}else ne.debug("videoId is not found!")}));ne.debug("Btn not exists")})).catch((function(e){"ABORTED"!==e.message&&ne.error("waitNodesBySelector error",e)}))}},getIdFromLocation:function(e){e||(e=document.location.href);var t=e.match(/\/watch\?(?:.+&)?v=([\w\-]+)/i);return(t=t&&t[1])||null},getIdFromBackgroundImageUrl:function(e){var t=/https:\/\/i.ytimg.com\/vi\/(.*?)\//.exec(e);return Object(h.a)(t,2)[1]||null},getIdFromShortsLocation:function(){return/shorts\/(.*?)$/.exec(location.href)[1]||null},appendNewMobileButton:function(e,o){var i=C.a.create("div",{id:_.buttonId,style:{flex:"1 1",minWidth:0,overflow:"hidden",margin:"-0.7em -0.57em",marginLeft:"0.7em",marginRight:0,display:"flex"},append:[C.a.create("button",{style:{padding:".7em .57em"},append:[C.a.create("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},append:[C.a.create("div",{style:{display:"block",height:"24px",width:"24px",background:"url("+l.svg.getSrc("download","#757575")+") center no-repeat",backgroundSize:"20px"}}),C.a.create("div",{style:{marginTop:"7px",alignSelf:"center",minHeight:"1em",lineHeight:"1em"},text:r.a.i18n.getMessage("download")})]})],on:["click",function(){var e=Object(a.a)(g.a.mark((function e(o){var a,i,s,u,c,d;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o.preventDefault(),_.hideMobileMenu(),a=_.getIdFromLocation(),i=_.mobileMenu=l.mobileLightBox.show(r.a.i18n.getMessage("download")+" ..."),X({type:"counter",name:"extract_links",help:"Extract links",labels:{browser:"userscript",site:"youtube",page_type:n}}),e.prev=3,e.next=6,Z.a.createLinkExtractor(n).extractLinks({mediaId:a,mediaUrl:location.href,noDash:!0,checkSubtitles:!0,initData:t});case 6:s=e.sent,/^yt.+/.test(n)&&(c=(u=s).menuLinks,u.multiLang,s=c),d=function(e){return JSON.parse(JSON.stringify(e)).map((function(t,n){return t.href=t.url,t.title=t.filename,t.func=e[n].func,delete t.url,delete t.filename,t}))}(s),i.update(d),X({type:"counter",name:"extract_links_success",help:"Extract links - success",labels:{browser:"userscript",site:"youtube",page_type:n}}),ne.log("lightbox update"),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3),i.update(void 0),ne.error("getLinks for mobile error",e.t0);case 15:case"end":return e.stop()}}),e,null,[[3,12]])})));return function(t){return e.apply(this,arguments)}}()]})]});w.a.onRemoveEvent(i,(function(){_.hideMobileMenu(),document.body.contains(e)&&(e.dataset.sfSkip="0",_.mobileMutationMode.observer.trigger(e))})),e.appendChild(i)},appendMobileButton:function(e,t,n){var o={};3===n?Object.assign(o,{display:"flex",height:"24px",background:"url("+l.svg.getSrc("download","#757575")+") center no-repeat",padding:".7em .57em",marginLeft:".7em"}):4===n?Object.assign(o,{display:"flex",width:"24px",background:"url("+l.svg.getSrc("download","#eee")+") center no-repeat",padding:".7em .57em",marginLeft:".7em"}):1===n?Object.assign(o,{display:"inline-block",height:"28px",width:"18px",marginRight:"20px",background:"url("+l.svg.getSrc("download","#757575")+") center no-repeat",cssFloat:"right"}):2===n&&Object.assign(o,{display:"inline-block",height:"38px",width:"18px",marginRight:"12px",background:"url("+l.svg.getSrc("download","#757575")+") center no-repeat",backgroundSize:"20px",cssFloat:"right"});var a=C.a.create("div",{data:{id:e},style:o,on:["click",function(){var e=this.dataset.id||_.getIdFromLocation();_.hideMobileMenu();var t=_.mobileMenu=l.mobileLightBox.show(r.a.i18n.getMessage("download")+" ..."),n=function(e){var n=null;e&&e.links&&(n=l.popupMenu.prepareLinks.youtube(e.links,e.title||_.getTitleModify())),t.update(n)},o=_.responseCache[e];if(o)return n(o);Q(e,location.href).then((function(e){ne.info("getLinks for mPlaylist"),n(e)}),(function(e){ne.error("getLinks for mPlaylist error",e),n(void 0)}))}]});w.a.onRemoveEvent(a,(function(){_.hideMobileMenu(),3!==n&&4!==n||document.body.contains(t)&&(t.dataset.sfSkip="0",_.mobileMutationMode.observer.trigger(t))}));var i='div[id^="koya_child_"]:nth-child(1) > a[href="#"] > span[id^="koya_elem_"]',s=t.lastElementChild;s.querySelector(i)||(s=s.previousElementSibling).querySelector(i)||(s=null),s&&(s=s.nextElementSibling),s?s.parentNode.insertBefore(a,s):t.appendChild(a)},getNewButtonUnderVideo:function(e){var t=this,o=this,a=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");this.node=C.a.create("div",{id:_.buttonId,style:{display:["-ms-flexbox","-webkit-flex","flex"],marginLeft:"8px",MsFlexDirection:"row",WebkitFlexDirection:"row",flexDirection:"row",MsFlexAlign:"center",WebkitAlignItems:"center",alignItems:"center",MsFlexPack:"center",WebkitJustifyContent:"center",justifyContent:"center",padding:"0 8px 0 0"},append:[this.menuContainer=C.a.create("div",{style:{position:"relative"}}),this.quickBtn=C.a.create("a",{class:"sf-quick-dl-btn",on:[["click",function(){X({type:"counter",name:"click_download_button",help:"Click download button",labels:{browser:"userscript",site:"youtube",page_type:n}}),ne.log("track click greenBtn"),r.a.sendMessage({action:"track",t:"event",tid:"G-L0GP1RQSBJ",ec:"menu",el:"menu",ea:"download"})}],["mouseover",function(e){if(a){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(Y.showTooltip)(t.quickBtn,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60});Object(Y.hideTooltip)(t.quickBtn,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60})}}]],style:{display:"inline-block",fontSize:"inherit",height:"23px",border:"1px solid #00B75A",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff"},append:[C.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+l.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}}),C.a.create("span",{class:"sf-btn-name",style:{paddingRight:"12px"},text:r.a.i18n.getMessage("download")})]}),this.quickBtnStyle=C.a.create("style",{text:m()({selector:"#"+_.buttonId,style:{fontFamily:"Roboto, Arial, sans-serif",fontSize:"13px"},append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-dl-btn":{backgroundColor:"#00B75A"},".sf-quick-dl-btn:hover":{backgroundColor:"rgb(0, 163, 80)"},".sf-quick-dl-btn:active":{backgroundColor:"rgb(0, 151, 74)"}},{media:"@media screen and (max-width: 1293px), screen and (max-height: 768px)",append:{".sf-quick-dl-btn .sf-btn-name":{display:"none"}}}]})}),this.selectBtn=C.a.create("button",{style:{position:"relative",display:"inline-block",marginLeft:"-2px",fontSize:"inherit",height:"24px",paddingRight:"21px",backgroundColor:"#F8F8F8",border:"1px solid #CCCCCC",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#9B9B9B",zIndex:0,verticalAlign:"middle",boxSizing:"border-box",lineHeight:r.a.isSafari?"21px":"22px"},on:["mousedown",function(t){return e.call(this,{btnObj:o},t)}],append:[this.selectBtnIcon=C.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #868282",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}})]})]}),this.node.classList.add(w.a.onRemoveClassName);var i=function(e){var t="object"==typeof e?e:document.createTextNode(e);t.style.marginLeft=0;var n=o.selectBtn.firstChild;n===o.selectBtnIcon?o.selectBtn.insertBefore(t,n):o.selectBtn.replaceChild(t,n)};this.setQuality=i,this.setLoadingState=function(){i(C.a.create("img",{src:l.svg.getSrc("info","#333333"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:r.a.isSafari?"-3px":"-1px",position:"relative"}}))}},getButtonUnderVideo:function(e){var t,n,o=null,a=C.a.create("div",{id:_.buttonId,style:{display:"inline-block",marginLeft:"10px",verticalAlign:"middle"},append:[n=C.a.create("a",{class:"sf-quick-dl-btn",style:{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid #00B75A",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff"},href:"#",append:[C.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+l.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}}),C.a.create("span",{class:"sf-btn-name",style:{paddingRight:"12px"},text:r.a.i18n.getMessage("download")})]}),C.a.create("style",{text:m()({selector:"#"+_.buttonId,append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-dl-btn":{backgroundColor:"#00B75A"},".sf-quick-dl-btn:hover":{backgroundColor:"rgb(0, 163, 80)"},".sf-quick-dl-btn:active":{backgroundColor:"rgb(0, 151, 74)"}},{media:"@media screen and (max-width: 1293px)",append:{".sf-quick-dl-btn .sf-btn-name":{display:"none"}}}]})}),o=C.a.create("button",{style:{position:"relative",display:"inline-block",marginLeft:"-2px",fontSize:"inherit",height:"24px",paddingRight:"21px",backgroundColor:"#F8F8F8",border:"1px solid #CCCCCC",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#9B9B9B",zIndex:0,verticalAlign:"middle",boxSizing:"border-box",lineHeight:"22px"},on:["mousedown",e],append:[t=C.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #868282",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}})]})]});a.classList.add(w.a.onRemoveClassName);var i=function(e){var n="object"==typeof e?e:document.createTextNode(e),r=o.firstChild;r===t?o.insertBefore(n,r):o.replaceChild(n,r)};return{node:a,selectBtn:o,quickBtn:n,setQuality:i,setLoadingState:function(){i(C.a.create("img",{src:l.svg.getSrc("info","#333333"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:"-1px",position:"relative"}}))}}},getShortButton:function(e){var t=this,o=this,a=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");this.node=C.a.create("div",{id:_.buttonId,style:{display:["-ms-flexbox","-webkit-flex","flex"],marginLeft:"8px",MsFlexDirection:"column",WebkitFlexDirection:"column",flexDirection:"column",MsFlexAlign:"center",WebkitAlignItems:"center",alignItems:"center",MsFlexPack:"center",WebkitJustifyContent:"center",justifyContent:"center",padding:"0 8px 0 0",marginTop:"16px"},append:[this.menuContainer=C.a.create("div",{style:{position:"relative"}}),this.quickBtn=C.a.create("a",{class:"sf-quick-dl-btn",on:[["click",function(){X({type:"counter",name:"click_download_button",help:"Click download button",labels:{browser:"userscript",site:"youtube",page_type:n}}),ne.log("track click greenBtn"),r.a.sendMessage({action:"track",t:"event",tid:"G-L0GP1RQSBJ",ec:"menu",el:"menu",ea:"download"})}],["mouseover",function(e){if(a){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(Y.showTooltip)(t.quickBtn,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60});Object(Y.hideTooltip)(t.quickBtn,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60})}}]],style:{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid #606060",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingLeft:"28px",marginBottom:"10px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff"},append:[C.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+l.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}})]}),this.quickBtnStyle=C.a.create("style",{text:m()({selector:"#"+_.buttonId,style:{fontFamily:"Roboto, Arial, sans-serif",fontSize:"13px"},append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-dl-btn":{border:"1px solid #606060",backgroundColor:"#606060"},".sf-quick-dl-btn:hover":{border:"1px solid #00B75A",backgroundColor:"#00B75A"},".sf-quick-dl-btn:active":{backgroundColor:"rgb(0, 151, 74)"}}]})}),this.selectBtn=C.a.create("button",{style:{position:"relative",display:"inline-block",marginLeft:"-2px",fontSize:"inherit",height:"24px",paddingRight:"21px",backgroundColor:"#F8F8F8",border:"1px solid #CCCCCC",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#9B9B9B",zIndex:0,verticalAlign:"middle",boxSizing:"border-box",lineHeight:r.a.isSafari?"21px":"22px"},on:["mousedown",function(t){return e.call(this,{btnObj:o},t)}],append:[this.selectBtnIcon=C.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #868282",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}})]})]}),this.node.classList.add(w.a.onRemoveClassName);var i=function(e){var t="object"==typeof e?e:document.createTextNode(e);t.style.marginLeft=0;var n=o.selectBtn.firstChild;n===o.selectBtnIcon?o.selectBtn.insertBefore(t,n):o.selectBtn.replaceChild(t,n)};this.setQuality=i,this.setLoadingState=function(){i(C.a.create("img",{src:l.svg.getSrc("info","#333333"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:r.a.isSafari?"-3px":"-1px",position:"relative"}}))}},titleChangeObserver:null,playerStateChangeObserver:null,observeFrameVideoChange:function(e){var t=this;if(T.a.isAvailable()){var n=document.querySelector(".ytp-title-link");n&&(this.titleChangeObserver&&this.titleChangeObserver.stop(),this.titleChangeObserver=new P.a({attrs:[{name:"href",callback:function(n){var r=n.oldValue&&_.getIdFromLocation(n.oldValue),o=n.value&&_.getIdFromLocation(n.value);r!==o&&_.video_id!==o&&(_.video_id=o,_.frameQualityDetected&&(e.link=null,e.setLoadingState(),t.quickBtn.setValue(e)))}}],target:n}));var r=document.querySelector(".html5-video-player");if(r){var o=null,a=/(\s|^)ytp-autohide(\s|$)/;this.playerStateChangeObserver&&this.playerStateChangeObserver.stop(),this.playerStateChangeObserver=new P.a({attrs:[{name:"class",callback:function(t){var n=a.test(t.oldValue),r=a.test(t.value);!n&&r?(clearTimeout(o),o=setTimeout((function(){e.lockHide||e.container.classList.add("sf-hide-ui")}),100)):n&&!r&&(clearTimeout(o),e.container.classList.remove("sf-hide-ui"))}}],target:r})}}},appendFrameButton:function(){if(!(document.body.clientWidth<220||document.body.clientHeight<150)){var e=_,t=!0,n=l.frameMenu.getBtn({btnId:"sfYtFrameBtn",containerStyle:{top:"40px",right:"20px"},on:[["mousedown",function(t){t.stopPropagation(),2===t.button&&(e.onFrameMouseEnterBind&&(w.a.off(document.body,"mouseenter",e.onFrameMouseEnterBind),w.a.off(document.body,"mouseleave",e.onFrameMouseLeaveBind),e.onFrameMouseEnterBind=null,e.onFrameMouseLeaveBind=null),e.titleChangeObserver&&(e.titleChangeObserver.stop(),e.titleChangeObserver=null),e.playerStateChangeObserver&&(e.playerStateChangeObserver.stop(),e.playerStateChangeObserver=null),e.hideCurrentMenu(),n.container.parentNode&&n.container.parentNode.removeChild(n.container))}]],onSelectBtn:["mousedown",function(o){if(!(o.button>0)){o.stopPropagation(),o.preventDefault();var a=e.video_id;if(e.currentMenu)_.hideCurrentMenu();else{var i=e.currentMenu=l.frameMenu.getMenu(this.parentNode,r.a.i18n.getMessage("download")+" ...","sf-popupMenu",{container:n.container,onShow:function(){n.node.classList.add("sf-over"),t||(t=!1)},onHide:function(){e.currentMenu=null,n.node.classList.remove("sf-over")},onItemClick:function(e,t){_.onMenuItemClick(t,{isFrameItem:1,videoId:a})}}),s=function(e){var t=l.popupMenu.prepareLinks.youtube(e.links,e.title,e.subtitles,{ummyVid:136});i.update(t)},u=e.responseCache[a];if(u)return s(u);Q(a,location.href,{checkSubtitles:!0}).then((function(t){e.responseCache[a]=t,ne.log("Links for frame received"),s(t)}),(function(e){ne.error("Get links for frame error",e),i.update(r.a.i18n.getMessage("noLinksFound"))}))}}}]});n.setLoadingState(),n.container=C.a.create("div",{class:"sf-btn-ctr",append:n.node}),document.body.appendChild(n.container);w.a.on(n.node,"mouseenter",(function t(){w.a.off(n.node,"mouseenter",t),e.frameQualityDetected||(e.frameQualityDetected=!0,e.quickBtn.setValue(n))})),w.a.one(document,"mouseenter",(function(){e.onFrameMouseEnter(n)})),w.a.on(n.container,"mouseenter",(function(){n.lockHide=!0})),w.a.on(n.container,"mouseleave",(function(){n.lockHide=!1})),n.node.appendChild(C.a.create("style",{text:m()([{selector:["body:hover .sf-btn-ctr:not(.sf-hide-ui) #sfYtFrameBtn","body:hover .sf-btn-ctr:not(.sf-hide-ui) .sf-popupMenu"],style:{display:"block"}}])})),this.onFrameMouseEnterBind&&(w.a.off(document.body,"mouseenter",this.onFrameMouseEnterBind),w.a.off(document.body,"mouseleave",this.onFrameMouseLeaveBind)),this.onFrameMouseEnterBind=this.onFrameMouseEnter.bind(this,n),this.onFrameMouseLeaveBind=this.onFrameMouseLeave.bind(this,n),w.a.on(document.body,"mouseenter",this.onFrameMouseEnterBind),w.a.on(document.body,"mouseleave",this.onFrameMouseLeaveBind),this.observeFrameVideoChange(n)}},frameQualityDetected:!1,frameQualityTimer:null,onFrameMouseEnterBind:null,onFrameMouseLeaveBind:null,onFrameMouseEnter:function(e){var t=this;this.frameQualityDetected||(clearTimeout(this.frameQualityTimer),this.frameQualityTimer=setTimeout((function(){t.frameQualityDetected||(t.frameQualityDetected=!0,t.quickBtn.setValue(e))}),500))},onFrameMouseLeave:function(e){this.frameQualityDetected||clearTimeout(this.frameQualityTimer)},getTitle:function(){var e=document.getElementById("watch-headline-title");if(e)return e.textContent;for(var t=document.getElementsByTagName("meta"),n=0;n<t.length;n++){var r=t[n].getAttribute("name");if(r&&"title"==r.toLowerCase())return t[n].getAttribute("content")}return y||_.isMobile?document.title.replace(/ - YouTube$/,""):""},getTitleModify:function(){var e=_.getTitle();return e&&(e=S(e)),e},onMenuItemClick:function(e,t){t=t||{},e.format||r.a.sendMessage({action:"track",t:"event",ec:"youtube",ea:"new_format",el:e.itag+" "+t.videoId})},onDlBtnClick:function(e,t,n){if(n=n||{},!t)return e.preventDefault(),e.stopPropagation(),void w.a.trigger(this.parentNode.lastChild,"mousedown");_.onMenuItemClick(t,n),"ummy"!==t.quality&&"muxer"!==t.itag&&t.forceDownload&&l.downloadOnClick(e)},quickBtn:{setValueInSelectBtn:function(e,t){"object"!=typeof t&&(t=document.createTextNode(t));var n=e.selectBtn.firstChild;n===e.selectBtn.lastChild?e.selectBtn.insertBefore(t,n):e.selectBtn.replaceChild(t,n)},getBestItem:function(e){return r.a.callFn("auth.isAuth").then((function(t){var n=e.find((function(e){var n=e.prop.noAudio||e.prop.noVideo;return!("pro"===e.prop.itag&&!t||n||"televzr"===e.prop.itag||e.prop.isHidden)}));return n?n.prop:void 0}))},bindDlBtn:function(e){var t=e.quickBtn;e.quickBtnEvent&&t.removeEventListener("click",e.quickBtnEvent),t.addEventListener("click",e.quickBtnEvent=function(t){e.link.func&&e.link.func(t),t.stopPropagation(),e.link&&_.currentMenu&&_.hideCurrentMenu();var n={videoId:e.videoId||_.video_id,links:e.links};e.isPage?n.isPage=1:n.isFrame=1,_.onDlBtnClick.call(this,t,e.link,n)})},setBestValue:function(e,t){var n=e.quickBtn;e.link=t;var o=t.quality;"pro"===t.itag?o={2160:"4K",4320:"8K",hls:"HLS",1440:"QHD"}[t.quality]||t.quality:t.noVideo||(o=parseInt(o)),t["3d"]&&(o="3D "+o),t.sFps&&(o+=" "+(t.fps||60));var a=C.a.create("span",{text:o,style:{marginLeft:"6px",verticalAlign:"bottom"}});e.setQuality?e.setQuality(a):this.setValueInSelectBtn(e,a);var i=[t.format,o];if(t.noAudio&&i.push(r.a.i18n.getMessage("withoutAudio")),i=i.join(" "),n.title=i,n.href=t.href,t.title&&t.format){var s=(t.ext||t.format||"").toLowerCase();s&&(s="."+s),n.setAttribute("download",O.a.modify(t.title+s))}},setValue:(A=Object(a.a)(g.a.mark((function e(r){var o,a,i,s,u,l;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this,this.bindDlBtn(r),(a=r.videoId||_.video_id)||o.setValueInSelectBtn(r,""),X({type:"counter",name:"extract_links",help:"Extract links",labels:{browser:"userscript",site:"youtube",page_type:n}}),e.prev=4,e.next=7,Z.a.createLinkExtractor(n).extractLinks({mediaId:a,mediaUrl:location.href,noDash:!0,checkSubtitles:!0,initData:t});case 7:i=e.sent,/^yt.+/.test(n)&&(u=(s=i).menuLinks,s.multiLang,i=u),l=function(e){return JSON.parse(JSON.stringify(e)).map((function(t,n){return t.href=t.url,t.title=t.filename,t.func=e[n].func,delete t.url,delete t.filename,{prop:t}}))}(i),r.onGetLinksArr&&r.onGetLinksArr.forEach((function(e){return e()})),o.getBestItem(l).then((function(e){e?o.setBestValue(r,e):o.setValueInSelectBtn(r,"")})),X({type:"counter",name:"extract_links_success",help:"Extract links - success",labels:{browser:"userscript",site:"youtube",page_type:n}}),e.next=16;break;case 13:return e.prev=13,e.t0=e.catch(4),e.abrupt("return",this.setValueInSelectBtn(r,""));case 16:case"end":return e.stop()}}),e,this,[[4,13]])}))),function(e){return A.apply(this,arguments)})},videoFeed:{style:null,hrefIdPattern:/[\?&]v=([^&]+)/,shortsPattern:/\/shorts\/([\w-]+)(?:\?|$)/,imgIdPattern:/vi[^\/]*\/([^\/]+)/,rList:[/\/playlist\?/,/(user|channel|c|show)\/[^\/]+(\/feed|\/featured|\/videos|$)/i,/\/(feed)\/(trending|subscriptions|history)/i],testUrl:function(e){return this.rList.some((function(t){return t.test(e)}))},injectStyle:function(){this.style?!this.style.parentNode&&document.head.appendChild(this.style):(this.style=C.a.create("style",{class:"sf-feed-style",text:m()([{selector:[".contains-percent-duration-watched .sf-feed-btn"],style:{bottom:"6px"}},{selector:["a > .sf-feed-btn","div > .sf-feed-btn","span > .sf-feed-btn"],style:{border:"1px solid #d3d3d3",width:"20px",height:"20px",padding:0,position:"absolute",right:"26px",bottom:"2px",borderRadius:"2px",background:"url("+l.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px",cursor:"pointer",zIndex:10}},{selector:["a > .sf-feed-btn.style-2"],style:{border:0,top:0,left:0,margin:"4px",padding:"2px 4px",background:"url("+l.svg.getSrc("download","#FFF")+") center no-repeat #000",backgroundSize:"14px",opacity:".8"}},{selector:["a > .sf-feed-btn:hover","div > .sf-feed-btn:hover","span > .sf-feed-btn:hover"],style:{background:"url("+l.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:["a > .sf-feed-btn.style-2:hover"],style:{border:0,top:0,left:0,margin:"4px",padding:"2px 4px",background:"url("+l.svg.getSrc("download","#00B75A")+") center no-repeat #000",backgroundSize:"14px",opacity:".8"}},{selector:["a > .sf-feed-btn:active","div > .sf-feed-btn:active","span > .sf-feed-btn:active"],style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}},{selector:["a:hover > .sf-feed-btn","div:hover > .sf-feed-btn","span:hover > .sf-feed-btn"],style:{display:"block"}},{selector:["ytd-menu-renderer.style-scope.ytd-watch-metadata"],style:{overflowY:"visible !important"}}])}),document.head.appendChild(this.style))},rmBtn:function(){for(var e,t=document.querySelectorAll(".sf-feed-btn"),n=0;e=t[n];n++)e.parentNode.removeChild(e);["sfBtn","sfSkip"].forEach((function(r){var o=p()(r);for(t=document.querySelectorAll("["+o+"]"),n=0;e=t[n];n++)e.removeAttribute(o)}))},getBtnNode:function(e,o){var i=["sf-feed-btn"];return o&&i.push("style-"+o),C.a.create("i",{class:i,on:["click",function(){var o=Object(a.a)(g.a.mark((function o(a){var i,s,u,c,d,p,f,m,h,v;return g.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a.preventDefault(),a.stopPropagation(),i=this,!_.currentMenu||!_.currentMenu.isShow){o.next=6;break}_.hideCurrentMenu(),o.next=24;break;case 6:return X({type:"counter",name:"show_menu",help:"Show menu",labels:{browser:"userscript",site:"youtube",page_type:n}}),s=e,(u=i.parentNode)&&"A"===u.tagName&&"thumbnail"===u.id&&(c=_.videoFeed.hrefIdPattern.exec(u.href))&&(s=c[1]),d=document.querySelector("#home-page-skeleton.hidden"),p=_.currentMenu=l.popupMenu.quickInsert(i,r.a.i18n.getMessage("download")+" ...","sf-popupMenu",{offsetTop:d?54:0,onShow:function(){w.a.onRemoveEvent(i,_.hideCurrentMenu)},onHide:function(){w.a.offRemoveEvent(i,_.hideCurrentMenu)},onItemClick:function(e,t){_.onMenuItemClick(t,{isFeedItem:1,videoId:s})}}),X({type:"counter",name:"extract_links",help:"Extract links",labels:{browser:"userscript",site:"youtube",page_type:n}}),o.prev=11,o.next=14,Z.a.createLinkExtractor(n).extractLinks({mediaId:s,mediaUrl:location.href,noDash:!0,checkSubtitles:!0,initData:t});case 14:f=o.sent,/^yt.+/.test(n)&&(h=(m=f).menuLinks,m.multiLang,f=h),ne.log("get links for videoFeed"),v=function(e){return JSON.parse(JSON.stringify(e)).map((function(t,n){return t.href=t.url,t.title=t.filename,t.func=e[n].func,delete t.url,delete t.filename,t}))}(f),p.update(v),X({type:"counter",name:"extract_links_success",help:"Extract links - success",labels:{browser:"userscript",site:"youtube",page_type:n}}),o.next=24;break;case 21:o.prev=21,o.t0=o.catch(11),ne.error("get links for videoFeed err",o.t0),p.update(r.a.i18n.getMessage("noLinksFound"));case 24:case"end":return o.stop()}}),o,this,[[11,21]])})));return function(e){return o.apply(this,arguments)}}()]})}},downloadPlaylist:function(){var e=function(e){for(var t,n=[],r=e.querySelectorAll("ytd-browse:not([hidden]) #contents img[src]#img"),o=_.videoFeed.imgIdPattern,a=0;t=r[a];a++){var i=t.src.match(o);i&&-1===n.indexOf(i[1])&&n.push(i[1])}for(var s,u=e.querySelectorAll("*[data-video-id]"),l=0;s=u[l];l++){var c=s.dataset.videoId;-1===n.indexOf(c)&&n.push(c)}return n};return function(){var t=!1,n=function(e){var t,n,o,a,i,s=l.playlist.getInfoPopupTemplate();r.a.sendMessage({action:"getWarningIcon",type:"playlist",color:"#77D1FA"},(function(e){s.icon.style.backgroundImage="url("+e+")"})),C.a.create(s.textContainer,{append:[C.a.create("p",{text:r.a.i18n.getMessage("playlist"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),n=C.a.create("div",{append:[C.a.create("p",{text:r.a.i18n.getMessage("quality")+":",style:{color:"#000000",fontSize:"14px",marginBottom:"13px",lineHeight:"24px"},append:[o=C.a.create("select",{style:{width:"75px",marginLeft:"5px"},append:["720","480","360","240","Audio"].map((function(e){return C.a.create("option",{text:e,value:e.toLowerCase()})}))})]}),C.a.create("p",{text:r.a.i18n.getMessage("qualityNote"),style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]}),t=C.a.create("p",{text:"",style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]}),C.a.create(s.buttonContainer,{append:[i=C.a.create("button",{text:r.a.i18n.getMessage("cancel"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"4px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}}),a=C.a.create("button",{text:r.a.i18n.getMessage("continue"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"8px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}})]});var u=l.popupDiv(s.body,"pl_progress_popup",void 0,void 0,e);return{qualitySelect:function(e){t.style.display="none",s.buttonContainer.style.display="block",n.style.display="block",a.addEventListener("click",(function(){e(o.value)})),i.addEventListener("click",(function(){w.a.trigger(u,"kill")}))},onPrepare:function(e){t.style.display="block",s.buttonContainer.style.display="none",n.style.display="none",t.textContent=e},onProgress:function(e,n){t.textContent=r.a.i18n.getMessage("vkFoundFiles").replace("%d",e)+" "+r.a.i18n.getMessage("vkFoundOf")+" "+n},onReady:function(e,t){w.a.trigger(u,"kill"),v?l.downloadList.showBeforeDownloadPopup(e,{type:"playlist",folderName:t}):l.playlist.popupPlaylist(e,t,!0,void 0,"video")},onError:function(e){r.a.sendMessage({action:"getWarningIcon",type:"playlist",color:"#AAAAAA"},(function(e){s.icon.style.backgroundImage="url("+e+")"})),t.style.display="block",s.buttonContainer.style.display="none",n.style.display="none",t.textContent=e}}}((function(){t=!0}));n.qualitySelect((function(o){n.onPrepare(r.a.i18n.getMessage("download")+" ..."),function(t){var n=document,o=c()(location.href);if(o.list)r.a.sendMessage({action:"getYoutubeIdListFromPlaylist",listId:o.list,baseUrl:location.protocol+"//"+location.host},(function(n){if(!n)return t();if(!n.idList||0===n.idList.length){var r=document.querySelector(".playlist-videos-container > .playlist-videos-list");if(null!==r&&(n.idList=e(r)),!n.title){var o=document.querySelector(".playlist-info > .playlist-title");null!==o&&(n.title=o.textContent.replace(/\r?\n/g," ").trim())}}t(n.idList,n.title)}));else{var a=e(n);t(a,_.getTitle())}}((function(e,a){if(!t)if(e&&0!==e.length){var i=function(e,t,n){return new Promise((function(r){return function(e,t,n,r){var o=!1,a={},i=0,s=0,u=e.length,c=void 0;"audio"===t?(c=["audio"],t=void 0):(c=["video"],t=parseInt(t)||void 0);var d=function d(){if(!o){var p=e[i];if(void 0===p)return 0===s?r(a):void 0;i++,s++,function(e,t,n,r){var o=-1!==n.indexOf("audio");Q(e,location.href,{noDash:o}).then((function(e){var o=l.popupMenu.prepareLinks.youtube(e.links,e.title);o=l.popupMenu.sortMenuItems(o,{noProp:!0,maxSize:t,minSize:2,typeList:n}),r(o)})).catch((function(e){ne.error("Get yt links for playlist error",e),r(void 0)}))}(p,t,c,(function(e){e&&(e=e.filter((function(e){return!["televzr","ummy","pro","muxer"].includes(e.itag)})));var t=e?e[0]:void 0;if(t){var r=(t.ext||t.format||"").toLowerCase();r&&(r="."+r);var o=O.a.modify(t.title+r);a[p]={url:t.href,title:t.title,filename:o}}n(i,u),s--,d()}))}};return d(),d(),{abort:function(){o=!0}}}(e,t,n,r)}))};i(e,o,n.onProgress).then((function(t){return 0===Object.keys(t).length?i(e,720,n.onProgress):t})).then((function(e){var t=[];for(var r in e)t.push(e[r]);var o=O.a.modify(a);n.onReady(t,o)}))}else n.onError(r.a.i18n.getMessage("noLinksFound"))}))}))}}()};_.tutorial={show:function(e){if(this.hide(),d.onceShowYtTooltip){e.onClose=function(){t&&t.stop(),r.a.sendMessage({action:"updateOption",key:"onceShowYtTooltip",value:d.onceShowYtTooltip=0})},_.currentTutorial=new l.TutorialTooltip(e);var t=null,n=document.querySelector("#page.watch");n&&(t=_.currentTutorial.attrWatcher=new P.a({attrs:[{name:"class",callback:function(){var e=_.currentTutorial;e&&e.tooltipNode.parentNode?e.onResize():t.stop()}}],target:n}))}},hide:function(){var e=_.currentTutorial;e&&(e.onClose&&e.onClose(1),e.attrWatcher&&e.attrWatcher.stop(),_.currentTutorial=null)}};var S=function(e){return(e=(e=(e=(e=(e=e.replace(/[\x2F\x5C\x3A\x7C]/g,"-")).replace(/[\x2A\x3F]/g,"")).replace(/\x22/g,"'")).replace(/\x3C/g,"(")).replace(/\x3E/g,")")).replace(/(?:^\s+)|(?:\s+$)/g,"")},M=function(e){return R()("function(){var ytPlayerConfig=window.ytplayer&&window.ytplayer.config;if(!ytPlayerConfig){return}return{args:ytPlayerConfig.args,sts:ytPlayerConfig.sts,assets:ytPlayerConfig.assets}}").then((function(t){if(!t||!t.args||!t.args.video_id){var n=document.querySelector('#watch7-content meta[itemprop="videoId"]'),r=n&&n.getAttribute("content");r&&((t=t||{}).args=t.args||{},t.args.video_id=r)}return e(t)}))},E=function(e,t){return R()('function(){try{var player=document.querySelector("#movie_player");if(!player){throw new Error("PLAYER_IS_NOT_FOUND")}if(!player.getVideoData){throw new Error("PLAYER_API_IS_NOT_FOUND")}if(!player.getPlayerResponse){(function(fn){if(fn&&!fn.sf_apply){fn.sf_apply=fn.apply;fn.apply=function(self,args){var playerArgs=args[0];if(playerArgs&&playerArgs.raw_player_response){var vars=null;try{vars=JSON.parse(JSON.stringify(playerArgs))}catch(err){// pass\n}player.getSfPlayerVars=function(){return vars}}return fn.sf_apply(self,args)}}})(player.loadVideoByPlayerVars)}var ytPlayer=window.ytplayer;var playerUrl=ytPlayer&&ytPlayer.web_player_context_config&&ytPlayer.web_player_context_config.jsUrl;// when open main page\nif(!playerUrl&&typeof ytcfg==="object"&&ytcfg){playerUrl=ytcfg.data_&&ytcfg.data_.PLAYER_JS_URL}var playerResponse=player.getPlayerResponse&&player.getPlayerResponse();if(!playerResponse){var sfConfig=player.getSfPlayerVars&&player.getSfPlayerVars();playerResponse=sfConfig&&sfConfig.raw_player_response}if(!playerResponse){playerResponse=ytPlayer&&ytPlayer.config&&ytPlayer.config.args&&ytPlayer.config.args.raw_player_response}var videoData=player.getVideoData();var video_id=videoData&&videoData.video_id;return{result:{config:{playerUrl:playerUrl,args:{player_response:playerResponse,video_id:playerResponse&&playerResponse.videoDetails&&playerResponse.videoDetails.videoId}},video_id:video_id}}}catch(err){return{error:{message:err.message,stack:err.stack}}}}').then((function(e){var t=null;if(e?e.error&&(t=Object.assign(new Error("UNKNOWN_ERROR"),e.error)):t=new Error("EMPTY_RESPONSE"),t)throw t;return e.result})).then((function(n){var r=n.config,o=null;return t?(e&&(o=_.getIdFromBackgroundImageUrl(e)),o||e||(o=_.getIdFromShortsLocation())):(o=n.video_id)||(o=_.getIdFromLocation()),!r.args.player_response||o&&o!==r.args.video_id?o?{args:{video_id:o}}:null:r}))}}),(function(){return!/\/\/gaming\.youtube/.test(location.href)}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={13:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([146,0]),n()}({110:function(e,t){e.exports=n(122)},146:function(e,t,n){n.r(t);var r=n(0),o=n(52),i=n(11),l=n(12),c=n.n(l),d=n(110),p=n(21),m=n.n(p),v=n(17),b=n(10),y=n(20),k=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");function A(e){return e.dataset.sfSongReady=1,e}var w=function(e){return!e.dataset.sfSongReady},x=function(){try{return"Tampermonkey"===GM_info.scriptHandler||"Violentmonkey"===GM_info.scriptHandler}catch(e){return!1}},C=function(){return!x()&&!(r.a.isGM&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"))},_=function(e){var t=e.url,n=e.filename;if(x()){var r=document.createElement("a");r.style.display="none",r.href=t,r.setAttribute("target","_blank"),r.download=n,document.body.appendChild(r),r.click(),r.remove()}else{var o=new CustomEvent("song.download",{detail:{downloadURL:t,filename:n}});document.dispatchEvent(o)}},M=function(e){var t=document.createElement("a");return t.target="_blank",e&&t.classList.add("sf--sc-"+e),t.classList.add("sf--sc-btn","sc-button","sc-button-small","sc-button-icon","sc-button-responsive"),t.addEventListener("mouseenter",(function(e){if(k){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(y.showTooltip)(t,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60});Object(y.hideTooltip)(t,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60})}})),Object(b.a)({category:"append",subcategory:"so",event:"b"}),t},E=function(e,t){["loading","error","playlist","default"].includes(t)&&(e.classList.remove("sf--sc-loading"),e.classList.add("sf--sc-"+t))},D=n(9),I=function(){function e(t){Object(s.a)(this,e),this.type="added",this.selector=t.user_card_playlist}var t;return Object(u.a)(e,[{key:"handle",value:function(e){var t=this;e.added.filter(w).map(A).map((function(e){return t.renderDownloadButton(e)}))}},{key:"renderDownloadButton",value:function(e){var t=e.querySelector(".sc-button-group"),n=M("playlist");n.classList.add("sc-usercard-playlist"),n.addEventListener("click",this.downloadPlaylist.bind(this)),t.appendChild(n)}},{key:"downloadPlaylist",value:(t=Object(a.a)(g.a.mark((function e(t){var n,r;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),n=t.target,E(n,"loading"),e.prev=3,e.next=6,D.a.createLinkExtractor("so-audio").extractLinks({element:t.target});case 6:return r=e.sent,e.next=9,Promise.all(r);case 9:e.sent.map(_),e.next=15;break;case 12:throw e.prev=12,e.t0=e.catch(3),E(n,"error"),e.t0;case 15:return e.prev=15,E(n,"default"),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[3,12,15,18]])}))),function(e){return t.apply(this,arguments)})}]),e}(),L=n(7);n.n(L)()("userCardSingleTrack");var T=function(){function e(t,n){Object(s.a)(this,e),this.type="added",this.utils=t,this.selector=n.user_card_single_track}var t;return Object(u.a)(e,[{key:"handle",value:function(e){var t=this;e.added.filter(w).map(A).map((function(e){return t.renderDownloadButton(e)}))}},{key:"renderDownloadButton",value:function(e){var t=e.querySelector(".sc-button-group");t&&this.btnPrepare(e).then((function(e){e&&t.appendChild(e)}))}},{key:"btnPrepare",value:(t=Object(a.a)(g.a.mark((function e(t){var n,r,o,a;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=M(),e.next=3,D.a.createLinkExtractor("so-audio").extractLinks({element:t});case 3:if(r=e.sent,o=Object(h.a)(r,1),!(a=o[0]).url||!a.filename){e.next=8;break}return e.abrupt("return",(n.classList.add("sc-usercard-single-track"),n.href=a.url,n.download=a.filename,n.addEventListener("click",this.utils.downloadOnClick),n));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),j=function(){function e(t,n){Object(s.a)(this,e),this.type="added",this.utils=t,this.selector=n.playlist_old_selector}var t;return Object(u.a)(e,[{key:"handle",value:function(e){var t=this;e.added.filter(w).map(A).map((function(e){return t.renderDownloadButton(e)}))}},{key:"renderDownloadButton",value:function(e){this.btnPrepare(e).then((function(t){Object(b.a)({category:"append",subcategory:"so",event:"b"}),t&&e.appendChild(t)}))}},{key:"btnPrepare",value:(t=Object(a.a)(g.a.mark((function e(t){var n,r,o,a;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=M(),e.next=3,D.a.createLinkExtractor("so-audio").extractLinks({element:t});case 3:if(r=e.sent,o=Object(h.a)(r,1),!(a=o[0]).url||!a.filename){e.next=8;break}return e.abrupt("return",(n.classList.add("sc-page-playlist"),n.href=a.url,n.download=a.filename,n.addEventListener("click",this.utils.downloadOnClick),n));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),P=function(){function e(t,n){Object(s.a)(this,e),this.type="added",this.utils=t,this.selector=this.getSelector(n)}var t,n,r,o;return Object(u.a)(e,[{key:"getSelector",value:(o=Object(a.a)(g.a.mark((function e(t){var n,r,o;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.sidebar_for_page_single_track,r=t.sidebar_row_selector,o=t.sidebar_top_button,e.abrupt("return",[n,r,o].join(","));case 2:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"handle",value:function(e){var t=this;e.added.filter(w).map(A).map((function(e){return t.renderDownloadButton(e)}))}},{key:"renderDownloadButton",value:function(e){var t,n=C(),r=n||!n&&-1===location.pathname.indexOf("/sets/");this.isTopSidebar(e)?r&&(t=this.prepareButtonForTop()):t=this.prepareButtonForSidebar(e),t&&t.then((function(t){t&&e.appendChild(t)}))}},{key:"prepareButtonForSidebar",value:(r=Object(a.a)(g.a.mark((function e(t){var n,r,o,a;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=M(),e.next=3,D.a.createLinkExtractor("so-audio").extractLinks({element:t});case 3:if(r=e.sent,o=Object(h.a)(r,1),!(a=o[0]).url||!a.filename){e.next=8;break}return e.abrupt("return",(n.classList.add("sc-sidebar"),n.href=a.url,n.download=a.filename,n.addEventListener("click",this.utils.downloadOnClick),n));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"prepareButtonForTop",value:(n=Object(a.a)(g.a.mark((function e(){var t,n,r,o;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=M()).dataset.position="sidebar",t.style.width=t.style.height="26px",t.classList.add("sc-topbar"),e.next=4,D.a.createLinkExtractor("so-audio").extractLinks({});case 4:return n=e.sent,r=Object(h.a)(n,1),o=r[0],e.abrupt("return",o.url&&o.filename?(t.href=o.url,t.download=o.filename,t.addEventListener("click",this.utils.downloadOnClick),t):(this.tracks=n,t.addEventListener("click",this.onDownloadPlaylist.bind(this)),t.classList.remove("sc-button-small"),t));case 8:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onDownloadPlaylist",value:(t=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),t.stopPropagation(),e.next=4,Promise.all(this.tracks);case 4:e.sent.map(_);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"isTopSidebar",value:function(e){return null!==e.closest(".l-about-top")}}]),e}(),F=n(53),N=function(e){function t(){var e;Object(s.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=O(this,t,[].concat(r))).mutationHandlers=[],e.active=1,e}var n;return Object(f.a)(t,e),Object(u.a)(t,[{key:"init",value:(n=Object(a.a)(g.a.mark((function e(){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.a.callFn("getPreferences");case 2:return this.settings=e.sent,this.utils=Object(i.a)({preferences:this.settings}),this.active=Number(this.settings.moduleSoundcloud),e.next=7,Object(F.a)();case 7:this.selectorsConfig=e.sent,this.registerMonoListeners(),this.registerListeners(),this.active&&this.initObserver(),this.appendStyle(d.styles);case 12:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"registerListeners",value:function(){var e=this;document.addEventListener("song.download",(function(t){var n=t.detail;e.utils.download(n.filename,n.downloadURL)}))}},{key:"registerMonoListeners",value:function(){var e=this;r.a.onMessage.addListener(function(){var n=Object(a.a)(g.a.mark((function n(r,o,a){var i,s,u;return g.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=r.action,s=r.moduleName,u=r.state,s!==t.moduleName){n.next=11;break}if("getModuleInfo"!==i){n.next=4;break}return n.abrupt("return",a({state:e.active,moduleName:t.moduleName}));case 4:if("updatePreferences"!==i){n.next=6;break}return n.abrupt("return",(o=r.preferences,e.settings=S(S({},e.settings),{},{preferences:o})));case 6:if("changeState"!==i){n.next=11;break}if(!u){n.next=9;break}return n.abrupt("return",e.initObserver());case 9:e.observer.stop(),document.querySelectorAll(".sf--sc-btn").forEach((function(e){return e.remove()})),document.querySelectorAll('[data-sf-song-ready="1"]').forEach((function(e){e.removeAttribute("data-sf-song-ready")}));case 11:case"end":return n.stop()}var o}),n)})));return function(e,t,r){return n.apply(this,arguments)}}())}},{key:"initObserver",value:function(){this.mutationHandlers=[new T(this.utils,this.selectorsConfig.soundcloud),new j(this.utils,this.selectorsConfig.soundcloud),new P(this.utils,this.selectorsConfig.soundcloud)],C()&&this.mutationHandlers.push(new I(this.selectorsConfig.soundcloud)),this.observer=new c.a({queries:this.mutationHandlers.map((function(e){return{css:e.selector,callback:e.handle.bind(e),is:e.type}}))}),this.observer.start()}}]),t}(o.a);N.moduleName="soundcloud";var B=new N;m.a.isSingle()&&Object(v.a)(N.moduleName,(function(){return B.init()}),(function(){return!0}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={18:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([152,0]),n()}({152:function(e,t,n){n.r(t);var o=n(0),i=n(11),s=n(17),u=n(27),l=n.n(u),c=n(28),d=n.n(c),p=n(25),f=n.n(p),m=n(23),v=n.n(m),b=n(39),y=n.n(b),k=n(13),A=n.n(k),w=n(22),x=n.n(w),C=n(19),_=n.n(C),O=n(54),M=n.n(O),E=n(33),D=n.n(E),I=n(16),L=n.n(I),T=n(3),j=n.n(T),P=n(2),F=n.n(P),N=n(58),B=n.n(N),R=n(6),z=n.n(R),q=n(8),U=n(7),V=n.n(U),H=n(21),G=n.n(H),W=n(12),Q=n.n(W),Y=n(40),J=n.n(Y),K=n(35),Z=n.n(K),X=n(50),$=n(57),ee=n(15),te=n.n(ee),ne=n(46),re=n(47),oe=n(1),ae=n.n(oe),ie=n(18),se=n.n(ie),ue=n(5),le=n(31),ce=Object(i.a)({}).svg.getSrc("download","#4986cc","20px"),de=ae.a.memo((function(e){var t=e.iframeSrc,n=ae.a.useState([]),r=Object(h.a)(n,2),a=r[0],i=r[1];return ae.a.useEffect((function(){Object(q.a)({action:"showjetFetchMovie",iframeVideoURL:t}).then((function(e){e=e.map((function(e){return S(S({},e),{},{onClick:function(){se()(Object(ue.createElement)(le.a,{filename:z.a.modify(e.filename)+".mp4",format:"mp4",sources:[{url:e.endpoint,format:"mp4"}],convertType:"hls"}),"sf-muxer-parent")}})})),i(e)}))}),[]),ae.a.createElement(re.b,{items:a,theme:re.d},ae.a.createElement(re.a,null,ae.a.createElement("div",{className:"like_btn",style:{marginLeft:"14px"}},ae.a.createElement("img",{src:ce,style:{opacity:.5},alt:""}),ae.a.createElement("div",{className:"like_button_label"},o.a.i18n.getMessage("download")))))})),pe=n(70),fe=n.n(pe),me=n(10),ge=n(20),he=n(9),ve=n(42),be=V()("vkontakte_ru"),ye=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");G.a.isSingle()&&Object(s.b)("vk",(function(e,t){var n=Object(i.a)(t),s=t.preferences,u=s.moduleVkontakte?1:0,c=o.a.isChrome||o.a.isFirefox||o.a.isGM&&o.a.isTM,p=t.preferences.selectorsConfig,m=l()(),b=!1;if(m)if(/\/video_ext\.php\?.+/.test(location.href))b=!0;else{if(!/\/widget_comments\.php\?.+/.test(location.href))return;m=!1}o.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:u,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return R.changeState(t.state)}"updatePreferences"!==t.action?u&&("updateLinks"===t.action&&V(),"downloadMP3Files"===t.action&&(c?K.downloadMP3Files():K.showListOfAudioFiles(!1)),"downloadPlaylist"===t.action&&K.showListOfAudioFiles(!0),"downloadPhotos"===t.action&&oe.downloadPhoto()):Object.assign(s,t.preferences)})),u&&setTimeout((function(){R.run()}));var k,w,C,O,E,I,T,P=[],N={},R={contextMenu:null,isMutation:!1,run:function(){if(u=1,/m\.vk\.com/.test(location.hostname))return ae.run();b?ee.addFrameBtn():(oe.injectStyle(),Q.a.isAvailable()&&(R.isMutation=!0,K.addCustomStyle(),R.mutationMode.enable()))},changeState:function(e){m||(u=e,H(),K.hideLinks(),re.off(),R.hideMenu(),oe.rmCurrentPhotoBtn(),K.rmBitrate(),oe.rmPhotoAlbumDlBtn(),R.mutationMode.stop(),e&&R.run())},hideMenu:function(){R.contextMenu&&(R.contextMenu.hide(),R.contextMenu=null)},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=v()(e),r=document.querySelectorAll("["+n+"]"),o=0;t=r[o];o++)t.removeAttribute(n)}))},wrapNewAudioOnMouseOver:function(){u&&K.onNewMouseOver.apply(this,arguments)},wrapNewVoiceOnMouseOver:function(){var e=_()(this,".im-mess");if(!(e&&e.querySelector(".sf-voice-btn")||!u)){var t=F.a.create("a",{href:this.getAttribute("data-mp3")||"#sf-preload",class:[K.className,"sf-audio-btn","sf-voice-btn"],download:z.a.modify(this.getAttribute("data-mp3"))||"",style:{width:"3px",height:"3px",padding:"0px 9px 9px"},on:[["click",function(e){e.stopPropagation(),n.downloadOnClick(e)}]]}),r=e.querySelector(".im-mess--actions, .audio-msg-track--duration");Object(me.a)({category:"append",subcategory:"vk",event:"b"}),r&&(r.classList.contains("audio-msg-track--duration")&&t.classList.add("sf-voice-btn-in-dur"),r.appendChild(t),e.addEventListener("mouseleave",(function(){return t.style.display="none"})),e.addEventListener("mouseenter",(function(){return t.style.display="inline"}))),n.addStyleRules(".".concat(K.className,".sf-voice-btn"),{"background-size":"12px !important"}),n.addStyleRules(".".concat(K.className,".sf-voice-btn-in-dur"),{position:"absolute",top:"23px",right:"-13px"})}},wrapVideoFeedOnMouseOver:function(){u&&(Object(me.a)({category:"append",subcategory:"vk",event:"b"}),re.onLinkHover.apply(this,arguments))},onVideoInsert:function(e){te()("function(){return window.mvcur&&window.mvcur.mvData&&window.mvcur.mvData.is_active_live}").then((function(t){var r=n.getParentById(e,"mv_box");r||(r=e);var o=ee.getPlayerNode(r);o&&!t?e.closest(".ShortVideoPost")||window.location.href.includes("clip")?ee.newClipButton(o,r):ee.newAppendButton(o,r):e.dataset.sfSkip=0}))},onVideoChange:(w=Object(a.a)(g.a.mark((function e(t){var n,r,o,a,i,s;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,te()("function(){return window.mvcur&&window.mvcur.mvData&&window.mvcur.mvData.is_active_live}");case 2:if(!e.sent){e.next=4;break}return e.abrupt("return");case 4:n=this,r=t,".like_cont"===t.className&&(r=t.closest('div[id=*="/video_box_wrap/"]')),/video_box_wrap-?\d+_-?\d+/.test(r.id)&&window.location.href.includes("clip")||/post-?\d+_?\d+/.test(r.id)?n.onVideoInsert(r):/video_box_wrap-?\d+_-?\d+/.test(r.id)||n.onVideoInsert(r),r.sfWatch?n.onVideoInsert(r):(r.sfWatch=!0,(o=new Z.a({attrs:[{name:"id",callback:function(){n.onVideoInsert(r)}}],target:r})).trigger(),j.a.onRemoveEvent(r,(function(){o.stop(),r.sfWatch=!1,r.dataset.sfSkip=0}))),document.querySelector('iframe[src*="showjet"]')&&(a=document.querySelector('iframe[src*="showjet"]'),i=document.createElement("div"),(s=document.querySelector(".like_btns"))&&(s.insertBefore(i,s.querySelector(".ui_actions_menu_wrap._ui_menu_wrap")),se()(Object(ue.createElement)(de,{iframeSrc:a.src}),i)));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)}),addClipsButton:(k=Object(a.a)(g.a.mark((function e(r){var i,s;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=r.parentNode.parentNode).querySelector(".savefrom__yt_btn")){e.next=3;break}return e.abrupt("return");case 3:s=F.a.create("div",{id:"savefrom__yt_btn",style:{display:"flex",marginLeft:"10px",verticalAlign:"middle",position:"absolute",top:"10px",left:"10px"},append:[F.a.create("a",{class:"sf-quick-dl-btn",href:"javascript:void(0)",style:{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid #00B75A",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff",marginRight:"8px"},append:[F.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+n.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}})],on:[["click",function(){var e=Object(a.a)(g.a.mark((function e(o){var a;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.stopPropagation(),j.a.onRemoveEvent(this,R.hideMenu),!R.contextMenu||!R.contextMenu.isShow){e.next=2;break}return e.abrupt("return",void R.hideMenu());case 2:return R.contextMenu=n.popupMenu.quickInsert(this,"Скачивается...","sf-single-video-menu",{parent:i},"clips"),e.t0=function(e){return e.map((function(e){return e.href=e.url,e.title=e.filename,delete e.url,delete e.filename,e}))},e.next=6,he.a.createLinkExtractor("vk-clips").extractLinks({element:i,initData:t});case 6:if(e.t1=e.sent,0!==(a=(0,e.t0)(e.t1)).length){e.next=10;break}return e.abrupt("return",(this.href=r.querySelector("video").src,Object(q.a)({action:"downloadVkStory",downloadFileUrl:this.href,fileName:Date.now()+".mp4"})));case 10:this.href=U(a),this.click(),this.href="javascript:void(0)",o.preventDefault();case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()]]}),F.a.create("style",{text:A()({selector:"#savefrom__yt_btn",append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-dl-btn":{backgroundColor:"#00B75A"},".sf-quick-dl-btn:hover":{backgroundColor:"rgb(0, 163, 80)"},".sf-quick-dl-btn:active":{backgroundColor:"rgb(0, 151, 74)"}},{media:"@media screen and (max-width: 1293px)",append:{".sf-quick-dl-btn .sf-btn-name":{display:"none"}}}]})}),F.a.create("button",{style:{position:"relative",display:"inline-block",marginLeft:"-2px",fontSize:"inherit",height:"24px",paddingRight:"21px",backgroundColor:"#F8F8F8",border:"1px solid #CCCCCC",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#9B9B9B",zIndex:1,verticalAlign:"middle",boxSizing:"border-box",lineHeight:"22px"},on:[["click",function(){var e=Object(a.a)(g.a.mark((function e(r){var a,s;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.stopPropagation(),j.a.onRemoveEvent(this,R.hideMenu),!R.contextMenu||!R.contextMenu.isShow){e.next=2;break}return e.abrupt("return",void R.hideMenu());case 2:return a=R.contextMenu=n.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+"...","sf-single-video-menu",{parent:i},"clips"),e.t0=function(e){return e.map((function(e){return e.href=e.url,e.title=e.filename,delete e.url,delete e.filename,e}))},e.next=6,he.a.createLinkExtractor("vk-clips").extractLinks({element:i,initData:t});case 6:return e.t1=e.sent,s=(0,e.t0)(e.t1),e.abrupt("return",a.update(s));case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()],["mousedown",function(e){e.stopPropagation()}],["keydown",function(e){e.stopPropagation()}]],append:[F.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #868282",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}}),F.a.create("span",{text:"HD"})]})]}),i.append(s);case 5:case"end":return e.stop()}}),e)}))),function(e){return k.apply(this,arguments)}),newStoryButton:function(e){setTimeout((function(){var t=e.querySelector(".stories_item_cont_wrap"),r=t.querySelector(".stories_header_content"),i=F.a.create("div",{id:"savefrom__yt_btn",style:{display:"flex",position:"absolute",right:"0px",top:"60px",zIndex:1e3,pointerEvents:"auto",marginLeft:"10px",verticalAlign:"middle"},append:[F.a.create("a",{class:"sf-quick-dl-btn",style:{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid #00B75A",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff",marginRight:"8px"},append:[F.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+n.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}})],on:[["click",function(){var e=Object(a.a)(g.a.mark((function e(n){var r,a,i;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),e.next=3,he.a.createLinkExtractor("vk-story").extractLinks({element:t});case 3:return r=e.sent,a=Object(h.a)(r,1),i=a[0],e.abrupt("return",(o.a.sendMessage({action:"checkAndOpenProLanding",id:"vk-1"}),Object(q.a)({action:"downloadVkStory",downloadFileUrl:i.url,filename:i.filename})));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()]]}),F.a.create("style",{text:A()({selector:"#savefrom__yt_btn",append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-dl-btn":{backgroundColor:"#00B75A"},".sf-quick-dl-btn:hover":{backgroundColor:"rgb(0, 163, 80)"},".sf-quick-dl-btn:active":{backgroundColor:"rgb(0, 151, 74)"}},{media:"@media screen and (max-width: 1293px)",append:{".sf-quick-dl-btn .sf-btn-name":{display:"none"}}}]})})]}),s=new URLSearchParams(window.location.search).get("w");!r.querySelector("#savefrom__yt_btn")&&s&&r.append(i)}),500)},enable:function(){var e=this;if(this.observer)return this.observer.start();var t=function(t){for(var n,r=0;n=t.added[r];r++)if(!(n.dataset.sfSkip>0)){if("like_cont"===n.className&&!window.location.href.includes("clips"))return;n.dataset.sfSkip="1",e.onVideoChange(n)}},n=function(e){for(var t,n=0;t=e.added[n];n++)Object(me.a)({category:"append",subcategory:"vk",event:"b"}),t.dataset.sfSkip>0||(t.dataset.sfSkip="1",j.a.one(t,"mouseenter",R.mutationMode.wrapNewAudioOnMouseOver))};this.observer=new Q.a({queries:[{css:p.vk.newContentButtonAdd,is:"added",callback:t},{css:p.vk.storyButtonAdd,is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",e.newStoryButton(n))}},{css:p.vk.videoLinkAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",j.a.one(t,"mouseenter",R.mutationMode.wrapVideoFeedOnMouseOver))}},{css:p.vk.videoBoxAdd,is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",e.onVideoChange(n))}},{css:p.vk.newContentButtonAdd2,is:"added",callback:t},{css:p.vk.videoPlayerAdd,is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++)(n=n.parentNode).dataset.sfSkip>0||(n.dataset.sfSkip="1",e.onVideoChange(n))}},{css:p.vk.photosAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",oe.addNewPhotoAlbumDlBtn(t))}},{css:p.vk.photoAreaAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",oe.addNewDlCurrentPhotoBtn(t))}},{css:p.vk.audioAdd,is:"added",callback:n},{css:p.vk.audioAdd2,is:"added",callback:n},{css:p.vk.audioAdd3,is:"added",callback:n},{css:p.vk.audioAdd4,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",j.a.one(t,"mouseenter",R.mutationMode.wrapNewVoiceOnMouseOver))}},{css:'[class*="ClipsCarousel-module__verticalItemWrapper"] video',is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++)e.addClipsButton(n)}},{css:"."+j.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)j.a.onRemoveListener(t)}}]})}}},U=function(e){for(var t=e[0].quality,n=0,r=0;r<e.length;r++)t<Number(e[r].quality)&&(t=e[r].quality,n=r);return e[n].href},V=function(){R.changeState(0),R.changeState(1)},H=function(){K.lastRow=null;for(var e=document.querySelectorAll("a.savefrom_vk_download,div.savefrom_vk_download,span.savefrom_vk_download"),t=e.length-1;t>=0;t--)K.elIsHidden(e[t])&&e[t].parentNode.removeChild(e[t])},G=function(){if(null!==document.querySelector('.page_block_header_inner._header_inner a.ui_crumb[href="/audio"]')){var e=document.querySelector(".page_block_header_inner._header_inner div.ui_crumb");if(e&&e.textContent)return z.a.modify(e.textContent)}var t=document.title,n=t.indexOf("|");return-1!==n&&(t=t.substr(0,n-1)),z.a.modify(t)},W=function(e){try{var t=JSON.parse(e).payload[1];return[null,null,null,null,null,t[0],t[1],null,t[3]]}catch(e){}for(var n=function(e){return!0===e?1:parseInt(e)||0},r=function(e){return!0===e?1:parseFloat(e)||0},o=e.split("<!>"),a=o.length-1;a>=0;--a){var i=o[a];if("<!"==i.substr(0,2)){var s=i.indexOf(">"),u=i.substr(2,s-2);switch(i=i.substr(s+1),u){case"json":var l=null;try{l=JSON.parse(i)}catch(e){}o[a]=l;break;case"int":o[a]=n(i);break;case"float":o[a]=r(i);break;case"bool":o[a]=!!n(i);break;case"null":o[a]=null;break;case"pageview_candidate":o.pop();break;case"debug":o.pop()}}}return o},Y=function(e){return/<em>.*<\/em>/.test(e)&&(e=e.replace(/<\/?em>/g,"")),e},K={audioElClassList:["audio","audioRow","audioRowWall"],lastRow:null,className:"savefrom_vk_download",cache:{},lastValidRequest:null,waitUntilUnblock:function(e){var t=this,n=10;if(!t.lastValidRequest)return Promise.reject(new Error("Last valid request is empty!"));return function r(){return new Promise((function(e){setTimeout(e,15e3)})).then((function(){if(e.abort)throw new Error("Abort");return L()(t.lastValidRequest).then((function(e){if(n--,!W(e.body)[5]){if(n>0)return r();throw new Error("Can't request data")}}))}))}().then((function(){return new Promise((function(e){setTimeout(e,250)}))}))},needUnmask:function(e){var t=/audio_api_unavailable/;return e.some((function(e){if(t.test(e[2]))return!0}))},unmaskUrlViaUtil:function(e){return K.needUnmask(e)?te()([],"function(){return vk.id}").then((function(t){var n=e.map((function(e){try{return Array.isArray(e)&&e[2]?(e[2]=X.decodeUnavailableUrl(t,e[2]),e):null}catch(e){return be.debug("track decode error: ",e),null}}));return Promise.all(n).then((function(e){return e.filter((function(e){return null!==e}))}))})):Promise.resolve(e)},unmaskUrl:function(e){return K.needUnmask(e)?te()([e],'function(idsArr){var aFail=false;var bFail=false;var cFail=false;var unmaskUrl=function unmaskUrl(url){var _url="";if(!aFail&&window.sfUnmaskUrl){try{_url=window.sfUnmaskUrl(url)}catch(err){aFail=true}}if(!cFail&&!_url&&window.AudioPlayerHTML5){try{var res=null;var r={_isHlsUrl:function _isHlsUrl(url){res=url;return true},_initHls:function _initHls(){}};window.AudioPlayerHTML5.prototype._setAudioNodeUrl.apply(r,[null,url]);_url=res}catch(err){cFail=true}}if(!bFail&&!_url&&window.AudioPlayerFlash){try{var r={};window.AudioPlayerFlash.prototype.setUrl.apply(r,[url]);_url=r._url}catch(err){bFail=true}}if(typeof _url!=="string"){_url=""}return _url};idsArr.forEach(function(item){var url=unmaskUrl(item[2]);if(url){item[2]=url}});return idsArr}').then((function(t){return t||e})):Promise.resolve(e)},_getNewTrackListByIdsWithActionHash:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=0,o={},a=this.cache,i=e.filter((function(e){var t=e.fullId;return!a[t]||(o[t]=a[t],r++,!1)})),s=[];i.length;)s.push(i.splice(0,9));var u=e.length,l=Promise.resolve();return s.forEach((function(e){l=l.then((function(){var i=function(){if(n.abort)throw new Error("Abort");var i=e.filter((function(e){return e.fullId&&e.actionHash&&e.urlHash})).map((function(e){return e.fullId+"_"+e.actionHash+"_"+e.urlHash})),s={type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},data:ve.stringify({act:"reload_audio",al:1,ids:i.join(",")}),url:"/al_audio.php",localXHR:!0};return L()(s).then((function(e){var i=W(e.body)[5];if(!i||!Array.isArray(i))throw new Error("Track list is not found!");return t.lastValidRequest=s,i.forEach((function(e){var t=e[1]+"_"+e[0];a[t]=e,o[t]=e,r++})),n.onProgress&&n.onProgress(r,u),new Promise((function(e){setTimeout(e,250)}))}))},s=2;return function e(){return i().catch((function(r){if("Track list is not found!"===r.message&&!n.withoutUnblock){if(t.lastValidRequest)return t.waitUntilUnblock(n).then(i);if(s-- >0)return new Promise((function(e){return setTimeout(e,15e3)})).then((function(){return e()}))}throw r}))}().catch((function(e){"Abort"!==e.message&&be.debug("requestIds error!",e)}))}))})),l=(l=l.then((function(){Object.keys(a).slice(1e3).forEach((function(e){delete a[e]}));var t=[];return e.forEach((function(e){var n=e.fullId,r=o[n];r&&t.push(r)})),t}))).then((function(e){return K.unmaskUrlViaUtil(e)})).then((function(e){var t=fe()(5),n=e.map((function(e){return t((function(){var t=e[2],n=function(e){if(K.isHlsLink(e)){var t=(e=e.replace("/index.m3u8",".mp3")).split("/"),n=-1!==e.indexOf("audios")?1:0;return t.splice(t.length-(2+n),1),t.join("/")}return e}(t);return K.isHlsLink(t)?L()({method:"HEAD",url:n}).then((function(){return e[2]=n,e}),(function(t){return be.warn("getNewTrackListByIdsWithActionHash: mp3 file not available. ",t),e})):e}))}));return Promise.all(n)}))},_getAlbumIdFromUrl:function(e){var t=this,n=[e],r=f()(e);r.z&&n.unshift(r.z);var o=null;return n.some((function(e){if(o=t._getAlbumId(e))return!0})),o},_getAlbumId:function(e){if(/[?&]q=/.test(e))return null;var t={url:"/al_audio.php",data:{}},n=/audio_playlist(-?\d+)_(-?\d+)(?:\/(\w+))?/.exec(e);if(n&&(t.data.access_hash=n[3]||"",t.data.act="load_section",t.data.al=1,t.data.claim=0,t.data.owner_id=n[1],t.data.playlist_id=n[2],t.data.type="playlist",t.data.offset=0),!t.data.act){var r=/audios(-?\d+)/.exec(e);if(r){var o=/[?&]section=(\w+)/.exec(e),a=o&&o[1];if(a&&-1===["playlists","all"].indexOf(a))return null;t.data.access_hash="",t.data.act="load_section",t.data.al=1,t.data.claim=0,t.data.owner_id=r[1],t.data.playlist_id=-1,t.data.type="playlist",t.data.offset=0}}return t.data.act?t:null},getNewNodeTrackInfo:(T=Object(a.a)(g.a.mark((function e(t){var n,r;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.readNewDataAudio(t.dataset.audio),(r=this.getNewTrackInfo(n))&&r.fullId){e.next=3;break}throw new Error("Track info is not found");case 3:return e.abrupt("return",r.url?K.unmaskUrlViaUtil([[null,null,r.url]]).then((function(e){return r.url=e[0][2],r})):r);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return T.apply(this,arguments)}),_getAlbumTrackViaApi:function(e,t){if(!e.url)throw be.debug("Page is not exists!",e),new Error("Page is not exists!");var n=JSON.parse(JSON.stringify(e.data)),r=function(){return t.abort?Promise.reject(new Error("Abort")):L()({type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},url:e.url,data:n,timeout:6e4,localXHR:!0}).then((function(e){var t=W(e.body)[5];if(!t)throw new Error("Album data is empty!");return new Promise((function(e){setTimeout(e,250)})).then((function(){return t}))}))};return r().then((function(e){var t=20;return e.hasMore?function o(a){return!a||t<0?e:(t--,n.offset=a,r().then((function(t){return t.list.length?(e.list.push.apply(e.list,t.list),t.hasMore?o(t.nextOffset):e):e}),(function(t){return"Abort"!==t.message&&be.debug("getOffset error!",t),e})))}(e.nextOffset):e}))},_getAllTrackViaDom:function(e,t){var n=this;t=t||{};var r=[];return[].slice.call(e.querySelectorAll(".audio_row")).forEach((function(e){if((!t.fromPage||!n.elIsHidden(e))&&(t.grabReply||!oe.isReply(e))){var o=null;try{o=JSON.parse(e.dataset.audio)}catch(e){}o&&r.push(o)}})),{list:r}},_getNewAudioLinks:function(e,t){var n=this;t=t||{};var r=(e=e||document)===document,a=oe.getPopup("","audio",(function(){t.abort=!0}));a.onPrepare(o.a.i18n.getMessage("download")+" ...");var i=function(){return Promise.resolve().then((function(){return n._getAllTrackViaDom(e,{fromPage:r,grabReply:!1})}))};t.onProgress=function(e,t){a.onProgress(e,t)};var s=Promise.resolve();return(s=(s=(s=r?s.then((function(){return Promise.resolve().then((function(){var e=n._getAlbumIdFromUrl(location.href);if(!e)throw new Error("Album is not found");return n._getAlbumTrackViaApi(e,t)}))})).catch((function(e){throw"Album is not found"!==e.message&&be.debug("findAlbumLinks error!",e),e})).catch((function(){return i()})):s.then(i)).then((function(e){var t=e.list;if(!t.length)throw new Error("Audio is not found");return a.onProgress(0,t.length),e}))).then((function(e){var r=[],o="";"string"==typeof e.title&&(o=z.a.modify(e.title));var a=[];return e.list.forEach((function(e){var t=e[1]+"_"+e[0],n=K.getTrackActionHash(e),o=K.getTrackUrlHash(e);-1===a.indexOf(t)&&(a.push(t),r.push({fullId:t,actionHash:n,urlHash:o}))})),n._getNewTrackListByIdsWithActionHash(r,t).then((function(e){var t={},r=[];return e.forEach((function(e){var o=n.getNewTrackInfo(e);if(o&&o.url){var a=n.getNewAudioFilename(o),i=n.getNewAudioFullTitle(o);t[o.fullId]=o.url,r.push({url:o.url,title:i,filename:a})}})),{linkList:t,trackList:r,title:o}}))}))).then((function(e){return a.onReady(),e}),(function(e){throw a.onReady(),e}))},tooltip:{tooltip:void 0,updatePos:function(e,t){var r=n.getPosition(e),o=n.getSize(this.tooltip);this.tooltip.style.top=r.top+t.top-o.height+"px";var a=r.left+parseInt(t.width/2)-parseInt(o.width/2),i=document.body.clientWidth+document.body.scrollLeft;i<a+o.width&&(a=i-o.width),this.tooltip.style.left=a+"px"},show:function(e,t){var n=this;return void 0!==this.tooltip?this.hide():(this.tooltip=F.a.create("div",{class:"sf-tooltip",style:Object.assign({position:"absolute",display:"none",zIndex:9999,opacity:0,transition:"opacity 0.2s",whiteSpace:"nowrap"},t.style),on:["mouseenter",function(e){n.hide()}]}),document.body.appendChild(this.tooltip)),this.tooltip.style.display="block",setTimeout((function(){n.updatePos(e,t),n.tooltip.style.opacity=1}),0),this.tooltip},hide:function(){this.tooltip&&(this.tooltip.style.opacity=0,this.tooltip.style.display="none")}},rmBitrate:function(){void 0===K.rmBitrate.style&&document.body.appendChild(K.rmBitrate.style=F.a.create("style",{text:".sf-bitrate-value {display: none;}"}));for(var e,t=document.querySelectorAll(".sf-bitrate-value"),n=0;e=t[n];n++)e.parentNode.removeChild(e)},insertNewBitrate:function(e,t){if(e&&t&&t.classList.contains("audio_row__info")){var n=t.querySelector(".audio_row__duration");if(n&&(void 0!==K.rmBitrate.style&&(K.rmBitrate.style.parentNode.removeChild(K.rmBitrate.style),K.rmBitrate.style=void 0),!n.querySelector(".sf-bitrate-value"))){var r=F.a.create("span",{text:" "+e,class:"sf-bitrate-value",style:{position:"absolute",textAlign:"right",right:0,opacity:"0.8",top:"14px",fontSize:"11px",whiteSpace:"nowrap"}});n.appendChild(r)}}},onDlBtnLeave:function(){K.tooltip.hide()},onDlBtnOver:function(){var e=K,t=e.tooltip,n=this,r=n.dataset.fullId,a=n.parentNode&&n.parentNode.parentNode,i=-6;n.dataset.bitrateOffsetTop&&(i=parseInt(n.dataset.bitrateOffsetTop));var s={top:i,width:24,style:{backgroundColor:"#fff",border:"1px solid #ccc",color:"rgb(48, 48, 48)"}},u=t.show(n,s);u.dataset.fullId=r;var l=function(){var t=n.dataset.bitrate,r=n.dataset.size,i="";e.isHlsLink(n.href)?i=o.a.i18n.getMessage("download"):r?t?(e.insertNewBitrate(t,a),i=r+" ~ "+t):i=r:i=o.a.i18n.getMessage("getFileSizeFailTitle"),u.style.padding="2px 5px 3px",u.textContent=i};n.dataset.size||e.isHlsLink(n.href)?l():(u.style.padding="2px 2px 0 2px",u.textContent="",u.appendChild(F.a.create("img",{src:"/images/upload.gif",height:8,width:32,style:{marginTop:"2px",marginBottom:"1px"}})),n.dataset.preloadOver||(n.dataset.preloadOver=1,e._preloadNewTrackUrl(n).then((function(o){if(n.dataset.preloadOver=2,n.href=o,!e.isHlsLink(o))return e._onOverInsertBitrate(n,a).then((function(){u.dataset.fullId===r&&(l(),t.updatePos(n,s))}));l(),t.updatePos(n,s)})).catch((function(e){be.error("_preloadNewTrackUrl error",e),n.dataset.preloadOver="",u.dataset.fullId===r&&(l(),t.updatePos(n,s))}))))},preloadIdPromiseMap:{},_preloadNewTrackUrl:function(e){var t=this,n=t.preloadIdPromiseMap,r=e.dataset.fullId,o=e.dataset.actionHash,a=e.dataset.urlHash,i=n[r];return i||(i=n[r]=t._getNewTrackListByIdsWithActionHash([{fullId:r,actionHash:o,urlHash:a}],{withoutUnblock:!0}).then((function(e){delete n[r];var o=null;e.some((function(e){if(e[1]+"_"+e[0]===r)return o=e,!0}));var a=o&&t.getNewTrackInfo(o);if(!a||!a.url)throw new Error("Track is not found");return a.url}),(function(e){throw delete n[r],e})).then((function(e){return K.unmaskUrl([e])})).then((function(e){return e[0]}))),i},isHlsLink:function(e){return/\.m3u8(\?|$)/.test(e)},onNewDlBtnClick:function(e){K.isHlsLink(this.href)?(e.preventDefault(),o.a.sendMessage({action:"checkAndOpenProLanding",id:"vk-2"}),se()(Object(ue.createElement)(le.a,{sources:[{url:this.href,format:"hls"}],filename:this.download,format:"mp3",convertType:"hlsToMp3"}),"sf-muxer-parent")):n.downloadOnClick(e)},_onNewDlBtnClickWrapper:function(e){var t=K,n=this;e.stopPropagation(),(n.dataset.preloadOver>1||n.dataset.preloadBitrate>1)&&(n.dataset.preloadDl=2),n.dataset.preloadDl?n.dataset.preloadDl>1?K.onNewDlBtnClick.call(n,e):e.preventDefault():(e.preventDefault(),n.dataset.preloadDl=1,t._preloadNewTrackUrl(n).then((function(t){n.dataset.preloadDl=2,n.href=t,K.onNewDlBtnClick.call(n,e)}),(function(e){be.error("_preloadNewTrackUrl error",e),n.dataset.preloadDl=""})))},getNewDlBtn:function(e){var t={href:e.url||"#sf-preload",class:[K.className,"sf-audio-btn"],download:e.filename||"",data:{duration:e.duration||"",fullId:e.fullId,actionHash:e.actionHash,urlHash:e.urlHash},style:{width:"16px",height:"16px"},on:[["mouseenter",this.onDlBtnOver],["mouseleave",this.onDlBtnLeave],["click",this._onNewDlBtnClickWrapper],["mousedown",function(e){e.stopPropagation()}]]};return(o.a.isGM||o.a.isSafari)&&(t.title=o.a.i18n.getMessage("downloadTitle")),F.a.create("a",t)},preloadSizePromiseMap:{},_onOverInsertBitrate:function(e,t){var r=this,a=r.preloadSizePromiseMap,i=e.dataset.fullId,s=a[i];return s||(s=a[i]=function(e){var t=N[e];if(t){var n=P.indexOf(e);-1!==n&&(P.splice(n,1),P.unshift(e))}else if(t=N[e]=Object(q.a)({action:"getFileSize",url:e}).then((function(t){return t&&!t.error||delete N[e],t})).catch((function(t){throw delete N[e],t})),P.unshift(e),P.length>100){var r=P.pop();delete N[r]}return t}(e.href).then((function(s){if(delete a[i],!s)throw new Error("Response is empty");if(!s.fileSize)throw delete r.cache[i],new Error("File size is empty");var u=n.sizeHuman(s.fileSize,2),l="";e.dataset.duration&&(l=Math.floor(s.fileSize/e.dataset.duration/125)+" "+o.a.i18n.getMessage("kbps")),e.dataset.bitrate=l,e.dataset.size=u,K.insertNewBitrate(l,t)}),(function(e){throw delete a[i],e}))),s},getNewAudioFullTitle:function(e){var t=[];return e.title&&t.push(e.title),e.performer&&(t.length&&t.unshift(" - "),t.unshift(e.performer)),t.join("")},getNewAudioFilename:function(e){var t=this.getNewAudioFullTitle(e);return t&&(t+=".mp3"),t},handleNewCurrentAudioRow:(I=Object(a.a)(g.a.mark((function e(t,r){var o,a,i,s,u,l,c;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.querySelector("."+K.className)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,he.a.createLinkExtractor("vk-audios").extractLinks({element:t});case 4:o=e.sent,a=Object(h.a)(o,1),i=a[0],s=this.getNewDlBtn(i),u="#6C8CAC",1===r&&(u="#C4D1DE"),s.classList.remove("sf-audio-btn"),F.a.create(s,{style:{background:"url("+n.svg.getSrc("download",u)+") center no-repeat",backgroundSize:"12px",width:"12px",height:"12px",padding:0,margin:0,cssFloat:"left",marginRight:"3px",marginTop:"6px",marginBottom:"-2px"}}),l=null,j.a.onRemoveEvent(s,(function(){j.a.one(t,"mouseenter",R.mutationMode.wrapNewAudioOnMouseOver),l&&l.stop()})),2===r&&(c=_()(t,".audio_page_player"))&&(l=new Z.a({target:c,attrs:[{name:"data-full-id",callback:function(){s.parentNode&&s.parentNode.removeChild(s),l&&l.stop()}}]})).trigger(),1===r&&(s.dataset.bitrateOffsetTop=1),t.insertBefore(s,t.firstChild);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return I.apply(this,arguments)}),handleNewAudioRow:(E=Object(a.a)(g.a.mark((function e(t){var n,r,o,a,i,u,l,c;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.querySelector("."+K.className)){e.next=2;break}return e.abrupt("return");case 2:return n=t.querySelector(".audio_row__actions"),e.next=5,he.a.createLinkExtractor("vk-audios").extractLinks({element:t});case 5:r=e.sent,o=Object(h.a)(r,1),a=o[0],i=this,u=this.getNewDlBtn(a),l=n.parentNode,F.a.create(u,{class:["audio_row__action"],style:{width:"24px",height:"24px",cssFloat:"left"},on:[["mouseover",function(e){if(ye){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(ge.showTooltip)(u,{defaultWidth:400,defaultHeight:60},{});Object(ge.hideTooltip)(u,{defaultWidth:400,defaultHeight:60})}}]]}),(c=n.firstChild)?n.insertBefore(u,c):n.appendChild(u),1==+s.vkShowBitrate&&(u.dataset.preloadBitrate||(u.dataset.preloadBitrate=1,i._preloadNewTrackUrl(u).then((function(e){return u.dataset.preloadBitrate=2,u.href=e,i._onOverInsertBitrate(u,l)})).catch((function(e){be.error("_preloadNewTrackUrl error",e)}))));case 12:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)}),addNewDlTrackBtn:function(e){var t=this,n=function(){o.disconnect()},r=function(){t.handleNewAudioRow(e).catch((function(){return n()}))},o=new(J()())((function(e){if(u){for(var t=null,o=null,a=0;t=e.shift();)if("childList"===t.type&&t.addedNodes.length&&t.target.classList.contains("audio_row__info"))for(a=0,t.addedNodes;o=t.addedNodes[a];a++)if(o.classList.contains("audio_row__actions"))return void r()}else n()}));o.observe(e,{childList:!0,subtree:!0});var a=e.querySelector(".audio_row__actions");a&&(r(),a=null)},getNewTrackInfo:function(e){if(!e)return null;var t={};return"string"==typeof e[2]&&(t.url=e[2]),t.title=e[3],t.title&&(t.title=z.a.decodeSpecialChars(Y(t.title))),t.performer=e[4],t.performer&&(t.performer=z.a.decodeSpecialChars(Y(t.performer))),t.duration=parseInt(e[5]),t.actionHash=K.getTrackActionHash(e),t.urlHash=K.getTrackUrlHash(e),e[1]&&e[0]&&(t.fullId=e[1]+"_"+e[0]),t.id=e[0],t.ownerId=e[1],t},getTrackActionHash:function(e){return(e[13]||"").split("/")[2]||""},getTrackUrlHash:function(e){return(e[13]||"").split("/")[5]||""},readNewDataAudio:function(e){try{return JSON.parse(e)}catch(e){return null}},addNewDlCurrentTrackBtn:function(e,t){this.handleNewCurrentAudioRow(e,t)},onNewMouseOver:function(e){var t=K;if(this&&!this.querySelector("."+K.className)){var n=null;this.classList.contains("top_audio_player_title")&&(n=1),this.classList.contains("audio_page_player_title_performer")&&(n=2),n?t.addNewDlCurrentTrackBtn(this,n):t.addNewDlTrackBtn(this)}},addCustomStyle:function(){if(1!==this.addCustomStyle.hasStyle){this.addCustomStyle.hasStyle=1;var e=document.querySelector("#savefrom-styles.sf-audio");e&&e.parentNode.removeChild(e),n.addStyleRules(".savefrom_vk_download.sf-audio-btn",{background:"url("+n.svg.getSrc("download","#5f7fa2")+") center no-repeat !important",opacity:"0.4"},"sf-audio")}},hideLinks:function(){if(this.addCustomStyle.hasStyle){this.addCustomStyle.hasStyle=0;var e=document.querySelector("#savefrom-styles.sf-audio");e&&e.parentNode.removeChild(e),n.addStyleRules(".savefrom_vk_download",{display:"none"},"sf-audio")}K.tooltip.tooltip&&(K.tooltip.tooltip.parentNode.removeChild(K.tooltip.tooltip),K.tooltip.tooltip=void 0),K.cache={}},elIsHidden:function(e){return null===e.offsetParent},downloadMP3Files:function(){var e=oe.getLayer()||document;K._getNewAudioLinks(e).then((function(e){e.linkList;var t=e.trackList,r=e.title||G(),a=t.map((function(e){return K.isHlsLink(e.url)?{filename:e.filename,sources:[{url:e.url,format:"hls"}],format:"hls",useConverter:!0}:e}));if(0===a.length)return alert(o.a.i18n.getMessage("vkMp3LinksNotFound"));n.downloadList.showBeforeDownloadPopup(a,{type:"audio",folderName:r})}),(function(e){"Abort"!==e.message&&(be.debug("_getNewAudioLinks error!",e),alert(o.a.i18n.getMessage("vkMp3LinksNotFound")))}))},showListOfAudioFiles:function(e){var t=oe.getLayer()||document;K._getNewAudioLinks(t).then((function(t){var r=t.linkList,a=t.trackList,i=t.title||G(),s=null;if(e){if(0!==(s=a).length)return n.playlist.popupPlaylist(s,i,!0)}else{for(var u in s=[],r)s.push({url:r[u]});if(0!==s.length)return n.playlist.popupFilelist(s)}alert(o.a.i18n.getMessage("vkMp3LinksNotFound"))}),(function(e){"Abort"!==e.message&&(be.debug("_getNewAudioLinks error!",e),alert(o.a.i18n.getMessage("vkMp3LinksNotFound")))}))},requestReloadAudio:function(e,t,n){var r={act:"reload_audio",ids:"".concat(e,"_").concat(t,"_").concat(n)};return L()({type:"POST",url:"/audio",json:!0,data:r}).then((function(e){var t=e.body.data;return K.getNewTrackInfo(t[0][0])}))}},ee={panelId:"savefrom__vk_video_links",videoAttr:"data-savefrom-video",hiddenAttr:"data-savefrom-hidden",btnBoxId:"sf-iframe-dl-btn",btnBox:null,style:{fontSize:"10pt",margin:"15px 0",padding:"0"},getLinksFormUrl:function(e){if(e){if("//"===e.substr(0,2)&&(e="http:"+e),s.showUmmyItem&&this.isRutubeLink(e))return ee.getRutubeLinks(e);if(this.isPladformLink(e))return ee.getPladformLinks(e);var t,r=n.embedDownloader.hostings;for(var o in r){for(var a,i=r[o],u=0;a=i.re[u];u++){var l=e.match(a);if(l){t={hosting:o,action:i.action,extVideoId:l[1]};break}}if(t)break}if(t)return{request:t}}},getLinksFromFlashVars:function(e){var t=f()(e,{params:!0});return ee.getLinksFromHtml5MetaData(t)},getLinksFromHtml5MetaData:function(e){if(e){var t=e.md_title;if(void 0!==t){var n=Object.keys(e).some((function(e){return e.match(/cache([0-9]+)/)}))?/cache([0-9]+)/:/url([0-9]+)/,r={},o=!1;for(var a in e){var i=null;if("extra_data"!==a||"52"!==e.extra){if(null!==(i=a.match(n))){var s=e[a],u=s.indexOf("?");-1!==u&&(s=s.substr(0,u)),o=!0,r[i[1]]=s}}else r[i=e.hd?"HD":"SD"]=e[a],o=!0}return o?{title:t,links:r}:void 0}}},getRutubeLinks:function(e){if(/rutube[^\/]+\/(?:play|video)\/embed\/(\d+)/.test(e)||/video\.rutube\./.test(e))return{isUmmy:!0,links:n.popupMenu.prepareLinks.rutube(e)}},isRutubeLink:function(e){return/\/\/.*rutube\..*/.test(e)},getPladformLinks:function(e){if(e){var t=f()(e);return{request:{action:"getPladformVideo",extVideoId:{playerId:t.pl,videoId:t.videoid}}}}},isPladformLink:function(e){return/\/\/.*pladform\..*/.test(e)},getLinksVideoEl:function(e,t){var n=t.querySelector(".vv_summary");if(!n)return null;n=n.textContent;for(var r,o,a={},i=e.querySelectorAll("source"),s=0;o=i[s];s++){var u=o.src||"",l=u.indexOf("?");-1!==l&&(u=u.substr(0,l));var c=u.match(/\.(\d+)\.[^\/]+$/);null!==c&&(a[c[1]]=u,r=!0)}return r?{title:n,links:a}:void 0},getPlayerNode:function(e){var t=null;return e.closest(".ShortVideoPage__container")?e:(["iframe.video_yt_player","#html5_player","#flash_video_obj","#playerObj","#player",".video_box_wrap > #video_player"].some((function(n){if(t=e.querySelector(n))return!0})),t)},getLinksFromMv:function(e,t,n){return te()([t,e],(function(e,t){var r=window.mvcur;if(r&&r.player&&r.player.vars){var o=r.player.vars;return o.vid!==e||o.oid!==t?n():{vars:r.player.vars}}})).then((function(e){return e?ee.getLinksFromHtml5MetaData(e.vars):null}))},getLinksFromFrame:function(e){var t=document.body.innerHTML,n=f()(location.href),r=parseInt(n.oid),o=parseInt(n.id);if(r&&o){var a=null;if(y()(t,[/"vid":/,/"oid":/,/"md_title":/]).some((function(e){return a=e,!0})),a&&a.vid===o&&a.oid===r)return e(null,{request:{hosting:"vk",action:"getVkLinksFromJsonMsg",json:a}});var i=document.body,s=ee.getPlayerNode(i);if(s)return ee.getLinksFromPlayer(i,s,(function(t){t&&e(null,t)}))}return e("ERROR")},getLinksFromPlayer:function(e,t,r){if(t){var o,a;if("OBJECT"===t.tagName)(a=t.querySelector('param[name="flashvars"]'))&&(a=a.getAttribute("value"),o=ee.getLinksFromFlashVars(a));else if("IFRAME"===t.tagName){var i=t.getAttribute("src");o||(o=ee.getLinksFormUrl(i))}else if("EMBED"===t.tagName){var s=t.getAttribute("src");o||(a=t.getAttribute("flashvars"))&&(o=ee.getLinksFromFlashVars(a)),o||(o=ee.getLinksFormUrl(s))}if(o)return r(o,e);if("DIV"===t.tagName&&"video_player"===t.id){var u=t.parentNode.id,l=u&&u.match(/video_box_wrap(-?\d+)_(-?\d+)/);if(l)return l.shift(),l=l.map((function(e){return parseInt(e)})),te()(l,(function(e,t){var n=window.mvcur,r="video"+e+"_"+t;return n&&n.listId&&(r=""+r),{path:r}})).then((function(t){if(t)return r({request:{hosting:"vk",action:"getVKLinks",extVideoId:t.path,oidVid:l}},e)}))}if("html5_player"===t.id)return te()((function(){return window.html5video&&window.html5video.vars?window.html5video.vars:r()})).then((function(t){var n=ee.getLinksFromHtml5MetaData(t);if(n)return r(n,e)}));if("A"===t.tagName){var c=t.href,d=f()(c);if(d.to)return o=n.embedDownloader.checkUrl(d.to),r(o?{request:o}:null,e)}return r(null,e)}},preparePladformLinks:function(e){e&&"getRutubeLinks"===e.action&&(e.links=null);var t=e&&e.links,n="noname",r={};if(t)for(var o,a=0;o=t[a];a++)n=o.title,r[o.quality]&&(o.quality=0),r[o.quality.toUpperCase()]=o.url;return{title:n,links:r}},prepareLinks:function(e){var t=e.title,n=[];for(var r in e.links){var o=e.links[r],a=o.match(/[\w]+\.(mp4|flv)(?:\?|$)/i),i=(a=a?a[1]:"flv").toUpperCase();n.push({href:o,quality:r,title:t,ext:a,format:i,forceDownload:!0})}return n},getVideoLinksAsAjax:function(e){var t=/video(-?\d+_-?\d+)/.exec(e);t=t&&t[1];var n=f()(e).list;return oe._getModuleName().then((function(e){return new Promise((function(r){re.getLinkAsAjax([t,n],(function(e,t){r({hosting:t,response:e})}),e)}))}))},prepareVideoLinks:function(e){return Object(a.a)(g.a.mark((function t(){var o,a,i,u,l,c,d,p,f,m,v,b,y,k,A,w,x,C,_,O,M,E,D,I,T,j,P,F;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=[],!e||!e.oidVid){t.next=7;break}return l=Object(h.a)(e.oidVid,2),c=l[0],d=l[1],t.next=5,ee.getLinksFromMv(c,d);case 5:(p=t.sent)&&(u=i).push.apply(u,Object(r.a)(ee.prepareLinks(p)));case 7:return t.next=9,Object(q.a)(e);case 9:if((f=t.sent)&&("getPladformVideo"===e.action?s.showUmmyItem&&"getRutubeLinks"===f.action?(o=i).push.apply(o,Object(r.a)(n.popupMenu.prepareLinks.rutube(f.links))):(a=i).push.apply(a,Object(r.a)(ee.prepareLinks(ee.preparePladformLinks(f)))):f.links&&(v=n.embedDownloader.reMapHosting(f.action))&&(m=i).push.apply(m,Object(r.a)(n.popupMenu.prepareLinks[v](f.links,f.title)))),i.length||"getVKLinks"!==e.action){t.next=18;break}return t.next=14,ee.getVideoLinksAsAjax(e.extVideoId);case 14:k=t.sent,A=k.hosting,(w=k.response)&&w.links&&(w.isUmmy?(b=i).push.apply(b,Object(r.a)(w.links)):(y=i).push.apply(y,Object(r.a)(n.popupMenu.prepareLinks[A](w.links,w.title))));case 18:if(x=i.filter((function(e){return-1!==e.href.indexOf("mycdn.me/")})),C=i.filter((function(e){return-1!==e.href.indexOf("vkuser")})),!(x.length||C||i.length<=2)||!e.extVideoId){t.next=36;break}return O={},(M=document.querySelector('a[href*="'+e.extVideoId+'"]'))&&M.dataset.length&&((E=M.closest('[id*="post"]'))&&(O.post_id=E.dataset.postId),O.list=M.dataset.list,O.paylist_id="wall_"+M.dataset.video.split("_")[0]),O.video=e.extVideoId.split("?")[0].replace("video",""),(D=location.href.match(/pl_(wall_.\d+)/))&&D[1]&&(O.playlist_id=D[1]),(I=document.querySelector('a[data-video="'.concat(O.video,'"]')))&&I.dataset.list&&(O.list=I.dataset.list),t.next=29,L()({type:"POST",url:"https://vk.com/al_video.php?act=show",data:S({act:"show",al:1,autoplay:1,module:"groups"},O)});case 29:return T=t.sent,t.next=32,$.a(f,T.body);case 32:j=t.sent,P=j.hls,F=j.mp4,(_=i).push.apply(_,Object(r.a)(F).concat(Object(r.a)(P))),i=Object(ne.uniqArrayObject)(i,"href");case 36:return t.next=38,$.b(Object(ne.uniqArrayObject)(i,"quality","itag"),(function(e){return 22==e.itag}));case 38:return i=(i=t.sent).map((function(e){return e.title="."===e.title?"video-"+e.quality:e.title,e})),t.abrupt("return",i);case 41:case"end":return t.stop()}}),t)})))()},newAppendButton:function(e,r){if(e){Object(me.a)({category:"append",subcategory:"vk",event:"b"});var i=r.querySelector("#mv_info"),s=i&&i.querySelector(".mv_actions_block .like_cont .like_btns");i=null;var u=function(e){return e?e.querySelector("#mv_top_controls, #VideoLayerInfo__topControls"):null},l=u(r);if(l||(l=u(r.closest("#mv_container"))),s&&K.elIsHidden(s)&&(s=null),s||l){for(var c,d=!(s||!l),p=r.querySelectorAll(".savefrom_vk_download"),f=0;c=p[f];f++)c.parentNode.removeChild(c);c=null,p=null;var m=F.a.create("div",{class:["savefrom_vk_download","sf-under-video"],style:{cursor:"pointer"},on:[["click",function(){var i=Object(a.a)(g.a.mark((function a(i){var s,u;return g.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(i.stopPropagation(),j.a.onRemoveEvent(this,R.hideMenu),!R.contextMenu||!R.contextMenu.isShow){a.next=2;break}return a.abrupt("return",void R.hideMenu());case 2:return s=R.contextMenu=n.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+"...","sf-single-video-menu",{parent:r}),a.next=5,he.a.createLinkExtractor("vk-video").extractLinks({element:e,initData:t});case 5:return u=a.sent,a.abrupt("return",s.update(function(e){return e.map((function(e){return e.href=e.url,e.title=e.filename,delete e.url,delete e.filename,e}))}(u)));case 7:case"end":return a.stop()}}),a,this)})));return function(e){return i.apply(this,arguments)}}()],["mousedown",function(e){e.stopPropagation()}],["keydown",function(e){e.stopPropagation()}]]});if(s){F.a.create(m,{class:["like_btn"],append:[F.a.create("div",{class:["like_button_icon"],append:[F.a.create("img",{src:n.svg.getSrc("download","#828a99"),width:16,height:16,style:{margin:"4px"}})]}),F.a.create("div",{class:["like_button_label"],text:o.a.i18n.getMessage("download")})]});var h=s.querySelector(".ui_actions_menu_wrap");h?h.parentNode.insertBefore(m,h):s.appendChild(m)}else if(d){F.a.create(m,{class:["mv_top_button"],style:{textAlign:"center"},append:[F.a.create("img",{class:["mv_small_close_icon"],style:{backgroundImage:"none",width:"20px",height:"20px"},src:n.svg.getSrc("download","#FFFFFF"),width:20,height:20})]});var v=l.firstChild;if(v)if(K.elIsHidden(l.lastChild)){for(;v.nextElementSibling&&!K.elIsHidden(v.nextElementSibling);)v=v.nextElementSibling;v.parentNode.insertBefore(m,v)}else l.appendChild(m);else l.appendChild(m)}}}},newClipButton:function(e,r){setTimeout((function(){if(e){Object(me.a)({category:"append",subcategory:"vk",event:"b"});var i=r.closest(".ShortVideoPost");i||(i=r);var s=i.querySelector(".like_btns");s||(s=i.querySelector(".like_cont"));var u=r.closest("#mv_layer_wrap"),l=F.a.create("div",{id:"savefrom__yt_btn",style:{display:"flex",marginLeft:"10px",verticalAlign:"middle"},append:[F.a.create("a",{class:"sf-quick-dl-btn",href:"javascript:void(0)",style:{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid #00B75A",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff",marginRight:"8px"},append:[F.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+n.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}})],on:[["click",function(){var r=Object(a.a)(g.a.mark((function r(a){var i;return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a.stopPropagation(),j.a.onRemoveEvent(this,R.hideMenu),!R.contextMenu||!R.contextMenu.isShow){r.next=2;break}return r.abrupt("return",void R.hideMenu());case 2:return R.contextMenu=n.popupMenu.quickInsert(this,"Скачивается...","sf-single-video-menu",{parent:s},"clip"),o.a.sendMessage({action:"checkAndOpenProLanding"}),r.t0=function(e){return e.map((function(e){return e.href=e.url,e.title=e.filename,delete e.url,delete e.filename,e}))},r.next=6,he.a.createLinkExtractor("vk-clip").extractLinks({element:e,initData:t});case 6:if(r.t1=r.sent,0!==(i=(0,r.t0)(r.t1)).length){r.next=10;break}return r.abrupt("return",(this.href=u.querySelector("video").src,Object(q.a)({action:"downloadVkStory",downloadFileUrl:this.href,fileName:Date.now()+".mp4"})));case 10:this.href=U(i),this.click(),this.href="javascript:void(0)",a.preventDefault();case 11:case"end":return r.stop()}}),r,this)})));return function(e){return r.apply(this,arguments)}}()]]}),F.a.create("style",{text:A()({selector:"#savefrom__yt_btn",append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-dl-btn":{backgroundColor:"#00B75A"},".sf-quick-dl-btn:hover":{backgroundColor:"rgb(0, 163, 80)"},".sf-quick-dl-btn:active":{backgroundColor:"rgb(0, 151, 74)"}},{media:"@media screen and (max-width: 1293px)",append:{".sf-quick-dl-btn .sf-btn-name":{display:"none"}}}]})}),F.a.create("button",{style:{position:"relative",display:"inline-block",marginLeft:"-2px",fontSize:"inherit",height:"24px",paddingRight:"21px",backgroundColor:"#F8F8F8",border:"1px solid #CCCCCC",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#9B9B9B",zIndex:0,verticalAlign:"middle",boxSizing:"border-box",lineHeight:"22px"},on:[["click",function(){var r=Object(a.a)(g.a.mark((function r(a){var i,u;return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a.stopPropagation(),j.a.onRemoveEvent(this,R.hideMenu),!R.contextMenu||!R.contextMenu.isShow){r.next=2;break}return r.abrupt("return",void R.hideMenu());case 2:return i=R.contextMenu=n.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+"...","sf-single-video-menu",{parent:s},"clip"),r.t0=function(e){return e.map((function(e){return e.href=e.url,e.title=e.filename,delete e.url,delete e.filename,e}))},r.next=6,he.a.createLinkExtractor("vk-clip").extractLinks({element:e,initData:t});case 6:return r.t1=r.sent,u=(0,r.t0)(r.t1),r.abrupt("return",i.update(u));case 9:case"end":return r.stop()}}),r,this)})));return function(e){return r.apply(this,arguments)}}()],["mousedown",function(e){e.stopPropagation()}],["keydown",function(e){e.stopPropagation()}]],append:[F.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #868282",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}}),F.a.create("span",{text:"HD"})]})]});s&&(s.querySelector("#savefrom__yt_btn")||s.append(l))}}),500)},appendNewFrameBtn:function(e,t){var r=this;if(!t.querySelector(".savefrom_vk_download")){var a=n.frameMenu.getBtn({singleBtn:!0,btnId:r.btnBoxId,containerStyle:{top:"10px",right:"10px"},on:[["click",function(t){if(t.preventDefault(),t.stopPropagation(),R.contextMenu&&R.contextMenu.isShow)R.hideMenu();else{var i=R.contextMenu=n.frameMenu.getMenu(this,o.a.i18n.getMessage("download")+"...","sf-frame-menu",{container:a.container,onShow:function(){a.node.classList.add("sf-over")},onHide:function(){R.contextMenu=null,a.node.classList.remove("sf-over")}});if(e.request){var u=function(t){var a=o.a.i18n.getMessage("noLinksFound");if(t&&"getPladformVideo"===e.request.action)a=s.showUmmyItem&&"getRutubeLinks"===t.action?n.popupMenu.prepareLinks.rutube(t.links):r.prepareLinks(r.preparePladformLinks(t));else if(t&&t.links){var u=n.embedDownloader.reMapHosting(t.action);u&&(a=n.popupMenu.prepareLinks[u](t.links,t.title))}i.update(a)};try{o.a.sendMessage(e.request,u)}catch(t){u()}}else i.update(r.prepareLinks(e))}}],["mousedown",function(e){e.stopPropagation(),2===e.button&&(R.hideMenu(),a.container.parentNode&&a.container.parentNode.removeChild(a.container))}]]});a.container=F.a.create("div",{class:"sf-btn-ctr",append:a.node}),a.node.appendChild(F.a.create("style",{text:A()([{selector:["body:hover .sf-btn-ctr #"+r.btnBoxId,"body:hover .sf-btn-ctr .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(a.container)}},addFrameBtn:function(){var e=document.getElementById("page_wrap");e&&ee.getLinksFromFrame((function(t,n){t||ee.appendNewFrameBtn(n,e)}))}},re={linkDataAttr:"savefromHasBtn",getLinkAsAjaxRequest:function(e,t){t=t||0;var n=Object.assign({},e),r=function(){if(t<1)return re.getLinkAsAjaxRequest(e,++t);e.error&&e.error()},o=n.data;0===t?o.act="show_inline":1===t&&(o.act="show"),D()(n,(function(t,n,o){return t||!o||-1!==o.indexOf('href="/join"')?r():void e.success(o)}))},getVideoDataFromLink:function(e){var t=e.getAttribute("onclick"),n=/showVideo\(['"]{1}([^'"]+)['"]{1},.?['"]{1}([^'"]+)['"]{1},.*\)/.exec(t);return n&&n.shift(),n},getLinkAsAjax:function(e,t,r){re.getLinkAsAjaxRequest({localXHR:1,type:"POST",url:"/al_video.php",data:{list:e[1],video:e[0],act:"show_inline",module:r,al:1},success:function(e){if(!e)return t();var r=e.match(/<iframe[^>]+src=['"]{1}([^'">]+)['"]{1}[^>]+>/i);if(r||(r=e.match(/var\s+opts\s+=\s+({[^}]*})/im))&&(r=r[1].match(/url:\s+['"]{1}([^'"]+)['"]{1}/i))&&0!==r[1].indexOf("//")&&0!==r[1].indexOf("http")&&(r=null),r){var a=r[1];if(s.showUmmyItem&&ee.isRutubeLink(a))return t(ee.getRutubeLinks(a));if(0===a.indexOf("//")&&(a="http:"+a),0!==a.indexOf("http"))return t();var i=n.embedDownloader.checkUrl(a);if(!i)return t();var u={action:i.action,extVideoId:i.extVideoId};o.a.sendMessage(u,(function(e){var r=i.hosting;return e.action!==u.action&&(r=n.embedDownloader.reMapHosting(e.action)),t(e,r)}))}else Object(q.a)({action:"getVkLinksFromData",data:e}).then((function(e){return t(e,"vk")})).catch((function(){return t({},"vk")}))},error:function(){t()}})},addDownloadBtn:function(e){var t=e.href,r={display:"inline-block",width:"16px",height:"16px",marginLeft:"5px",backgroundImage:"url("+n.svg.getSrc("download","#78A2CC")+")",backgroundRepeat:"no-repeat",marginBottom:"-4px"},a=F.a.create("a",{href:"http://savefrom.net/?url="+encodeURIComponent(t),style:r,on:["click",function(e){if(e.preventDefault(),j.a.onRemoveEvent(i,R.hideMenu),R.contextMenu&&R.contextMenu.isShow)R.hideMenu();else{var t=document.querySelector("#wk_box");t&&t.contains(this)||(t=null);var r={parent:t},s=this.getAttribute(n.embedDownloader.dataAttr),u=n.embedDownloader.checkUrl(s);if(u){var l={action:u.action,extVideoId:u.extVideoId},c=R.contextMenu=n.popupMenu.quickInsert(a,o.a.i18n.getMessage("download")+" ...","sf-popupMenu",r);ee.prepareVideoLinks(l).then((function(e){e.map((function(e){return"MP4"===e.format&&(e.forceDownload=!0),e})),c.update(e)}))}else R.contextMenu=n.popupMenu.quickInsert(a,o.a.i18n.getMessage("noLinksFound"),"sf-popupMenu",r)}}]});a.setAttribute(n.embedDownloader.dataAttr,t);var i=F.a.create("span",{class:"sf-video-feed-container",on:["click",function(e){o.a.sendMessage({action:"checkAndOpenProLanding",id:"vk-4"}),e.stopPropagation()}],append:[a]}),s=e.querySelector(".post_video_title");s?s.appendChild(i):e.appendChild(i)},onLinkHover:function(){if("A"===this.tagName){var e=this.href||"";0===this.id.indexOf("post_media_lnk")&&-1!==e.indexOf("/video")&&(R.contextMenu&&R.contextMenu.isShow&&R.hideMenu(),this.dataset[re.linkDataAttr]||(this.dataset[re.linkDataAttr]=1,re.addDownloadBtn(this)))}},off:function(){for(var e,t=document.querySelectorAll(".sf-video-feed-container"),n=0;e=t[n];n++)e.parentNode.removeChild(e);var r=v()(re.linkDataAttr),o=document.querySelectorAll("*["+r+"]");for(n=0;e=o[n];n++)e.removeAttribute(r)}},oe={photoCache:{},getAlbumId:function(e){if(!/(\?|&|#)act=edit/i.test(e)){var t=[];t.push(e);var n=f()(e);n.w&&t.push(n.w),n.z&&t.push.apply(t,n.z.split("/")),/#/.test(e)&&(t.push(e.substr(e.indexOf("#")+1)),t.push(decodeURIComponent(e.substr(e.indexOf("#")+1)))),t.reverse();var r=null,o=null;return t.some((function(e){if(o=e.match(/(?:\/|#|=|^)(albums?|tag|photos|feed(?:\d+)?_|wall)(-?\d+)(?:_(\d+))?/i))return o[3]?r=/^(feed|wall)/.test(o[1])?o[1]+o[2]+"_"+o[3]:"album"+o[2]+"_"+o[3]:("albums"==o[1]&&(o[1]="photos"),r=o[1]+o[2]),!0})),r}},getModuleName:function(e){var t=F.a.create("script",{text:"("+'function(){if(window.cur&&window.cur.module&&typeof window.cur.module==="string"){document.body.dataset["{dataArg}"]=window.cur.module}}'.replace("{dataArg}","sfModule")+")();"});document.body.appendChild(t),setTimeout((function(){t.parentNode.removeChild(t),e(document.body.dataset.sfModule)}),0)},isReply:function(e){return x()(e,".replies "+e.tagName)||x()(e,".wl_replies "+e.tagName)},getPopup:function(e,t,r){var a,i=n.playlist.getInfoPopupTemplate();F.a.create(i.textContainer,{append:[F.a.create("p",{text:e,style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),a=F.a.create("p",{text:"",style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]});var s=n.popupDiv(i.body,"sf_progress_popup",void 0,void 0,r),u=function e(n){e.state!==n&&(e.state=n,i.buttonContainer.style.display="none",a.style.display="none",o.a.sendMessage({action:"getWarningIcon",type:t,color:"#77D1FA"},(function(e){i.icon.style.backgroundImage="url("+e+")"})),"progress"===n&&(a.style.display="block"),"error"===n&&(o.a.sendMessage({action:"getWarningIcon",type:t,color:"#AAAAAA"},(function(e){i.icon.style.backgroundImage="url("+e+")"})),a.style.display="block"))};return{onPrepare:function(e){u("progress"),a.textContent=e},onProgress:function(e,t){a.textContent=o.a.i18n.getMessage("vkFoundFiles").replace("%d",e)+" "+o.a.i18n.getMessage("vkFoundOf")+" "+t},onReady:function(){j.a.trigger(s,"kill")},onError:function(e){u("error"),a.textContent=e}}},getLayer:function(){var e=document.getElementById("layer_wrap");return null!==e&&"none"!==e.style.display&&0!==e.textContent.length||(e=null),null===e&&(null!==(e=document.getElementById("wk_layer_wrap"))&&"none"!==e.style.display&&0!==e.textContent.length||(e=null)),e},_getModuleName:function(){return new Promise((function(e,t){var n=F.a.create("script",{text:'(function(dataArg){if(window.cur&&window.cur.module&&typeof window.cur.module==="string"){document.body.dataset[dataArg]=window.cur.module}})('+JSON.stringify("sfModule")+");"});document.body.appendChild(n),setTimeout((function(){n.parentNode.removeChild(n),e(document.body.dataset.sfModule)}),0)}))},_getLinks:(O=Object(a.a)(g.a.mark((function e(t){var r,a,i,s,u,l;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this,a=Promise.resolve(),i={},s=r.getPopup(G(),"photo",(function(){i.abort=!0})),i.onProgress=function(e,t){s.onProgress(e,t)},s.onPrepare(o.a.i18n.getMessage("download")+" ..."),e.prev=2,e.next=5,he.a.createLinkExtractor("vk-albums").extractLinks({mediaId:t,details:i});case 5:u=e.sent,s.onReady(),l=G(),c?n.downloadList.showBeforeDownloadPopup(u,{count:u.length,folderName:l,type:"photo",onShowList:function(){r.showListOfLinks(l,u,!0)}}):r.showListOfLinks(l,u,!0),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),"Abort"!==e.t0.message&&be.debug("_getLinks error",e.t0),s.onError(o.a.i18n.getMessage("noLinksFound"));case 14:return e.abrupt("return",a);case 15:case"end":return e.stop()}}),e,this,[[2,11]])}))),function(e){return O.apply(this,arguments)}),rmPhotoAlbumDlBtn:function(){for(var e,t=document.querySelectorAll([".sf-dl-ablum-btn-divide",".sf-dl-ablum-btn"]),n=0;e=t[n];n++)e.parentNode.removeChild(e)},addNewPhotoAlbumDlBtn:function(e){var t=this,n=e.querySelector(".photos_album_intro_info"),r=e.querySelector(".page_block_header_extra"),a=n||r;if(a&&!a.querySelector(".sf-dl-ablum-btn")){var i=F.a.create("a",{text:o.a.i18n.getMessage("vkDownloadPhotoAlbum"),href:"#",class:"sf-dl-ablum-btn",on:["click",function(e){e.preventDefault(),o.a.sendMessage({action:"checkAndOpenProLanding",id:"vk-5"});var n=oe.getAlbumId(location.href);t._getLinks(n)}]}),s=F.a.create("span",{append:i});n?(s.classList.add("photos_album_info"),s=F.a.create(document.createDocumentFragment(),{append:[F.a.create("span",{class:"divide sf-dl-ablum-btn-divide",text:"|"}),s]})):r&&(s.classList.add("photos_comments_link"),s.style.margin="0 15px"),a.appendChild(s)}},getContainer:function(){var e=document.getElementById("photos_albums_container");return e||(e=document.getElementById("photos_container")),e},rmCurrentPhotoBtn:function(e){for(var t,n=void 0,r=document.querySelectorAll(".sf-dl-current-photo-btn"),o=0;t=r[o];o++)e&&e.contains(t)?n=t:t.parentNode.removeChild(t);return n},style:null,injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=F.a.create("style",{text:A()({"div > .sf-dl-current-photo-btn":{display:"none",border:"1px solid #F8F8F8",width:"20px",height:"20px",padding:0,position:"absolute",background:"url("+n.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px",top:"20px",left:"30px",zIndex:10,cursor:"pointer"},"div > .sf-dl-current-photo-btn.sf-style-black":{border:0,background:"url("+n.svg.getSrc("download","#FFF")+") center no-repeat #000",backgroundSize:"14px",padding:"2px 4px",borderRadius:"2px",opacity:.4,transition:"opacity 100ms linear"},"div > .sf-dl-current-photo-btn:hover":{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px",opacity:.8},"div > .sf-dl-current-photo-btn.sf-style-black:hover":{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #000",backgroundSize:"14px"},"div > .sf-dl-current-photo-btn:active":{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"},"div:hover > .sf-dl-current-photo-btn":{display:"block"}})}),document.head.appendChild(this.style))},getMaxPhotoSize:function(e){var t,n,r=null,o=null;return["w","z","y","x"].some((function(t){return!!(r=e[t+"_"])||!!(o=e[t+"_src"])||void 0})),r||(r=[o]),r[0]?{url:(t=e.base,n=r[0],n.match(/https?:\/\//i)?((n=new URL(n)).pathname.match(/\.[a-z]{3}$/i)||(n+=".jpg"),n.toString()):(n.match(/\.[a-z]{3}$/i)||(n+=".jpg"),(t||"").replace(/\/[a-z0-9_:\.]*$/i,"")+"/"+n)),width:r[2]&&r[1],height:r[1]&&r[2]}:null},addNewDlCurrentPhotoBtn:function(e){var t=e;if(Object(me.a)({category:"append",subcategory:"vk",event:"b"}),!this.rmCurrentPhotoBtn(t)){var r=e.closest(".pv_photo_wrap");if(r){var i=F.a.create("a",{class:["sf-dl-current-photo-btn","sf-style-black"],href:"#",title:o.a.i18n.getMessage("download"),on:[["click",function(){var e=Object(a.a)(g.a.mark((function e(a){var i,s,u,l,c,d,p;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.stopPropagation(),a.preventDefault(),j.a.onRemoveEvent(this,R.hideMenu),!R.contextMenu||!R.contextMenu.isShow){e.next=2;break}return e.abrupt("return",void R.hideMenu());case 2:return i=R.contextMenu=n.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+" ...","photoDlMenu",{parent:t}),s=r.querySelector(".like_wrap").classList,u=null,s.forEach((function(e){var t=e.match(/photo(-?\d+_\d+)/);u=t&&t[1]})),e.prev=6,e.next=9,he.a.createLinkExtractor("vk-photo").extractLinks({mediaId:u});case 9:l=e.sent,c=Object(h.a)(l,1),d=c[0],(p=[]).push({href:d.url,title:d.filename,quality:o.a.i18n.getMessage("download"),format:" ",ext:d.ext,forceDownload:!0,isOther:!0,isBlank:!0,func:function(){"undefined"!=typeof GM_info&&"Tampermonkey"===GM_info.scriptHandler?setTimeout((function(){return i.hide()}),2500):i.hide()}}),p.push({href:"#getAlbum",title:"",quality:o.a.i18n.getMessage("vkDownloadPhotoAlbum"),format:" ",ext:"",noSize:!0,isOther:!0,func:function(e){e.preventDefault(),oe.downloadPhoto(),i.hide()}}),i.update(p),e.next=19;break;case 16:return e.prev=16,e.t0=e.catch(6),e.abrupt("return",(console.error(e.t0),i.update(o.a.i18n.getMessage("noLinksFound"))));case 19:case"end":return e.stop()}}),e,this,[[6,16]])})));return function(t){return e.apply(this,arguments)}}()],["mousedown",function(e){e.stopPropagation()}]]});new Q.a({queries:[{css:p.vk.contextMenu,is:"added",callback:function(){R.contextMenu&&R.contextMenu.isShow&&(R.hideMenu(),i.click())}}]}),t.appendChild(i)}}},downloadPhoto:function(){var e=this.getAlbumId(location.href);if(!e){var t=document.querySelector(".pv_album_name a");t&&!K.elIsHidden(t)&&(e=this.getAlbumId(t.href))}this._getLinks(e)},showListOfPhotosContent:function(e,t){var n;return"<!DOCTYPE html><html>"+F.a.create("html",{append:[F.a.create("head",{append:[F.a.create("meta",{attr:{charset:"utf-8"}}),F.a.create("style",{text:"a,img{display:block;margin-bottom:5px;}p{width: 640px}"})]}),F.a.create("body",{append:[e,F.a.create("p",{text:o.a.i18n.getMessage("vkListOfPhotosInstruction")}),F.a.create("br"),F.a.create("br"),(n=document.createDocumentFragment(),t.forEach((function(e){var t=e.url,r=e.filename||"",o=F.a.create("img",{src:t,alt:"photo"});r&&(o=F.a.create("a",{href:t,download:r,append:o})),n.appendChild(o)})),n)]})]}).innerHTML+"</html>"},showListOfLinks:function(e,t,r){var a;a=r?F.a.create(document.createDocumentFragment(),{append:[F.a.create("p",{append:[F.a.create("a",{text:o.a.i18n.getMessage("vkListOfPhotos"),href:"#",class:"sf__hidden",style:{fontWeight:"bolder",border:"none",textDecoration:"underline"},on:["click",function(n){n.preventDefault();var r=oe.showListOfPhotosContent(e,t),a="";o.a.isChrome||o.a.isTM?(a=M()(r,"text/html",!0),o.a.sendMessage({action:"openTab",url:a})):(a=M()(r,"text/html"),window.open(a,"_blank"))}]})]})]}):"";for(var i,s,u="",l=0;i=t[l];l++)u+=i.url+"\r\n";var c=F.a.create(document.createDocumentFragment(),{append:[F.a.create("p",{text:e,style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"5px"}}),F.a.create("p",{append:B()(o.a.i18n.getMessage("vkListOfLinksInstruction"))}),a,s=F.a.create("textarea",{text:u,cols:60,rows:10,style:{width:"100%"}}),o.a.isChrome||o.a.isFirefox?F.a.create("button",{text:o.a.i18n.getMessage("copy"),style:{height:"27px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",marginTop:"6px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"5px",fontSize:"14px",cursor:"pointer",cssFloat:"right"},on:["click",function(e){var t=this;t.disabled=!0,o.a.isFirefox?(s.select(),document.execCommand("copy")):o.a.sendMessage({action:"addToClipboard",text:u}),setTimeout((function(){t.disabled=!1}),1e3)}],append:F.a.create("style",{text:A()({"#savefrom_popup_box button:hover:not(:disabled)":{backgroundColor:"#597A9E !important",borderColor:"#597A9E !important",color:"#fff"},"#savefrom_popup_box button:active":{opacity:.9}})})}):void 0]});n.popupDiv(c)}},ae={mobileMenu:null,observer:null,styleEl:null,run:function(){var e=this;if(Q.a.isAvailable())return e.observer?e.observer.start():(e.observer=new Q.a({queries:[{css:p.vk.audioItemAdd,is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",e.insertAudioBtn(n))}},{css:p.vk.bodyAdd,is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",e.insertVideoBtn(n))}},{css:"."+j.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)j.a.onRemoveListener(t)}}]}),void e.insertStyle())},hideMenu:function(){ae.mobileMenu&&(ae.mobileMenu.hide(),ae.mobileMenu=null)},insertStyle:function(){this.styleEl?this.styleEl.parentNode||document.head.appendChild(this.styleEl):(this.styleEl=F.a.create("style",{class:"sf-style",text:A()([{selector:".savefrom_vk_download.sf-audio",style:{display:"block",float:"right",borderRadius:"3px",width:"22px",height:"22px",marginTop:"1px",marginLeft:"3px",marginRight:"3px",background:"url("+n.svg.getSrc("download","#ffffff")+") center no-repeat",backgroundSize:"12px",backgroundColor:"#5E80AA"}},{selector:".audio_item .savefrom_vk_download.sf-audio",style:{position:"absolute",right:"32px",top:0,bottom:0,margin:"auto"}},{selector:".audio_item.ai_current .savefrom_vk_download.sf-audio",style:{bottom:"auto",top:"6px"}}])}),document.head.appendChild(this.styleEl))},getAudioUrlFromNode:(C=Object(a.a)(g.a.mark((function e(t){var n,r,o;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.getNewNodeTrackInfo(t);case 2:if((n=e.sent).fullId&&n.actionHash&&n.urlHash){e.next=5;break}throw new Error("Track info not valid for fetch audio link");case 5:return r=K.requestReloadAudio(n.fullId,n.actionHash,n.urlHash),o=te()([],"function(){return vk.id}"),e.abrupt("return",Promise.all([r,o]).then((function(e){var t=Object(h.a)(e,2),n=t[0],r=t[1],o=X.decodeUnavailableUrl(r,n.url);return X.isUrlM3u8(o)?X.m3u8ToMp3(o):o})));case 7:case"end":return e.stop()}}),e)}))),function(e){return C.apply(this,arguments)}),onAudioBtnClick:function(e){if(e.preventDefault(),e.stopPropagation(),e.target.href)return n.downloadOnClick(e);var t=e.target.closest(".audio_item");t&&this.getAudioUrlFromNode(t).then((function(t){e.target.href=t,n.downloadOnClick(e)})).catch((function(e){be.error("getAudioUrlFromNode error: "+e.message)}))},getAudioDlBtnNode:function(e){return F.a.create("a",{class:["savefrom_vk_download","sf-audio"],download:z.a.modify(e),target:"_blank",on:["click",this.onAudioBtnClick.bind(this)],title:o.a.i18n.getMessage("download")})},insertAudioBtn:function(e){var t=null,n=e.querySelector(".ai_label");if(n){var r=n.textContent.trim(),o=n.querySelector(".ai_title"),a=n.querySelector(".ai_artist"),i=o&&o.textContent.trim(),s=a&&a.textContent.trim();t=i&&s?"".concat(s.trim()," – ").concat(i.trim()):r}t=(t||"unknown")+".mp3";var u=e.querySelector(".ai_dur");if(u){var l=u.parentNode,c=this.getAudioDlBtnNode(t),d=l.querySelector(".savefrom_vk_download");if(d)d.parentNode.replaceChild(c,d);else{var p=u.nextElementSibling;if(!p)return;l.insertBefore(c,p)}}},onVideoBtnClick:function(e,t){t.preventDefault(),t.stopPropagation(),ae.hideMenu();var r=ae.mobileMenu=n.mobileLightBox.show(o.a.i18n.getMessage("download")+" ..."),a=o.a.i18n.getMessage("noLinksFound");if(e.request){var i=function(t){if(t&&"getPladformVideo"===e.request.action)a=ee.prepareLinks(ee.preparePladformLinks(t));else{var o=n.embedDownloader.reMapHosting(t.action);o&&t&&t.links&&(a=n.popupMenu.prepareLinks[o](t.links,t.title))}if(!a.length){var i=Array.from(document.body.querySelectorAll('.vv_inline_video source[type="video/mp4"]'));a=i.map((function(e){var t=document.querySelector(".VideoPageInfoRow__title"),n=e.src.match(/.(\d+)\.mp4/);return{title:t?t.textContent:"video",href:e.src,forceDownload:!0,ext:"mp4",format:"MP4",quality:n?n[1]:""}}))}r.update(a)};try{o.a.sendMessage(e.request,i)}catch(t){i()}}else a=ee.prepareLinks(e),r.update(a)},appendVideoBtn:function(e,t){var r=t.querySelector(".VideoPageInfoRow__title"),o=n.svg.getSvg("download","#4986cc","20px");o.style.marginLeft="17px",o.style.marginTop="6px",o.style.float="right",o.style.cursor="pointer",o.addEventListener("click",this.onVideoBtnClick.bind(this,e)),r&&r.appendChild(o),j.a.onRemoveEvent(o,ae.hideMenu)},insertVideoBtn:function(e){var t=this,n=e.querySelectorAll("iframe, video, a")[0],r=d()(e,"VideoPage"),o=function(){var e=/video(-?\d+)_(-?\d+)/.exec(location.href);return e&&{request:{hosting:"vk",action:"getVKLinks",extVideoId:"video"+e[1]+"_"+e[2]}}};n?ee.getLinksFromPlayer(r,n,(function(e,n){e||(e=o()),e&&t.appendVideoBtn(e,n)})):e.querySelector(".vv_not_support")&&o()&&t.appendVideoBtn(o(),r)}}}))},50:function(e,t){e.exports=n(68)},70:function(e,t){e.exports=n(39)}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={10:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([136,0]),n()}({136:function(e,t,n){n.r(t);var o=n(0),i=n(11),l=n(17),c=n(28),d=n.n(c),p=n(25),f=n.n(p),m=n(23),v=n.n(m),b=n(39),y=n.n(b),k=n(13),A=n.n(k),w=n(22),x=n.n(w),C=n(19),_=n.n(C),S=n(33),O=n.n(S),M=n(3),E=n.n(M),D=n(2),I=n.n(D),L=n(15),T=n.n(L),j=n(6),P=n.n(j),F=n(7),N=n.n(F),B=n(61),R=n.n(B),z=n(21),q=n.n(z),U=n(12),V=n.n(U),H=n(40),G=n.n(H),W=n(8),Q=n(69),Y=n.n(Q),J=n(10),K=n(20),Z=n(9),X=n(42),$=N()("odnoklassniki_ru"),ee=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");q.a.isSingle()&&Object(l.b)("odnoklassniki",(function(e,t){var l=Object(i.a)(t),c=t.preferences,p=c.moduleOdnoklassniki?1:0,m=o.a.isChrome||o.a.isFirefox||o.a.isGM&&o.a.isTM,b=t.preferences.selectorsConfig;o.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:p,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return k.changeState(t.state)}"updatePreferences"!==t.action?p&&("updateLinks"===t.action&&w(),"downloadMP3Files"===t.action&&(m?S.downloadMP3Files():S.showListOfAudioFiles(!1)),"downloadPlaylist"===t.action&&S.showListOfAudioFiles(!0)):Object.assign(c,t.preferences)})),p&&setTimeout((function(){k.run()}));var k={linkCache:{},contextMenu:null,videoToken:null,run:function(){if(p=1,S.getJsSessionId(),D.injectStyle(),L.injectStyle(),V.a.isAvailable())return k.mutationMode.enable()},changeState:function(e){p=e,M.rmBtn(),S.disable(),L.rmCurrentPhotoBtn(),D.disable(),D.rmBtn(),k.hideMenu(),k.mutationMode.stop(),k.clearCache(),e&&k.run()},hideMenu:function(){k.contextMenu&&(k.contextMenu.hide(),k.contextMenu=null)},clearCache:function(){var e=k.linkCache;for(var t in e)delete e[t]},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=v()(e),r=document.querySelectorAll("["+n+"]"),o=0;t=r[o];o++)t.removeAttribute(n)}))},wrapOnPhotoOver:function(){p&&L.addCurrentDlBtn(this)},wrapVideoFeedOnImgOver:function(){p&&D.onImgOver.call(this)},wrapAudioOnMouseOver:function(){p&&S.onMouseOver.apply(this,arguments)},wrapAudioOnMouseOut:function(){p&&S.onMouseOut.apply(this,arguments)},wrapNewAudioOnMouseEnter:function(){if(p)try{S.onNewMouseEnter.apply(this,arguments)}catch(e){$.error("wrapNewAudioOnMouseEnter error",e)}},enable:function(){if(this.observer)return this.observer.start();var e,t=this,n=function(e){for(var n,r=0;n=e.added[r];r++)n.sfSkip>0||(n.sfSkip="1",E.a.on(n,"mouseenter",t.wrapAudioOnMouseOver),E.a.on(n,"mouseleave",t.wrapAudioOnMouseOut))},r=function(e){for(var n,r=0;n=e.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",E.a.one(n,"mouseenter",t.wrapVideoFeedOnImgOver))},i=[];"m.ok.ru"===location.host&&i.push({css:b.ok_ru.mobileMusic,is:"added",callback:function(e){e.added.forEach((function(e){e.sfSkip||(e.sfSkip="1",S.appendDownloadMobileMusic(e))}))}},{css:b.ok_ru.mobileVideo,is:"added",callback:function(e){e.added.forEach((function(e){if(!e.dataset.sfSkip){e.dataset.sfSkip="1";var t=e.closest(".section, .feed-card, .theme-comments-head");t&&M.appendDownloadMobileVideo(t)}}))}}),this.observer=new V.a({queries:[].concat(i,[{css:b.ok_ru.musicAdd,is:"added",callback:n},{css:b.ok_ru.rowOnPageOkMusic,is:"added",callback:(e=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.added.filter((function(e){return!e.dataset.sfReady})).map((function(e){return e.dataset.sfReady=1,e})).map((function(e){var t=document.createElement("a");Object(J.a)({category:"append",subcategory:"ok",event:"b"}),t.classList.add("sf-audio","savefrom_ok_download"),e.style.position="relative",e.appendChild(t),t.style.position="absolute",t.style.top="10px",t.style.right="15px",t.style.width="16px",t.style.height="16px",e.closest(".track-with-cover").addEventListener("mouseleave",(function(){return t.style.display="none"})),e.addEventListener("mouseenter",(function(){t.style.display="block",t.href||Z.a.createLinkExtractor("ok-profile_music").extractLinks({element:e}).then((function(e){t.href=e[0].url;var n=e[0].bitrate+" "+o.a.i18n.getMessage("kbps"),r=l.sizeHuman(e[0].size,2);t.title="".concat(r," ~ ").concat(n)}))})),t.addEventListener("click",(function(t){Object(J.a)({category:"download",subcategory:"ok",event:"track"}),t.stopPropagation(),t.preventDefault(),o.a.sendMessage({action:"checkAndOpenProLanding",id:"ok-1"});var n=e.closest(".track-with-cover"),r=n.querySelector('[data-l="t,artist"]').textContent,a=n.querySelector('[data-l="t,title"]').textContent,i=P.a.modify("".concat(r," - ").concat(a));o.a.sendMessage({action:"downloadFile",options:{filename:i+".mp3",url:t.target.href}})}))}));case 2:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})},{css:b.ok_ru.musicAdd2,is:"added",callback:n},{css:b.ok_ru.photoLayerAdd,is:"added",callback:function(e){if(!o.a.isSafari)for(var n,r=0;n=e.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",E.a.one(n,"mouseenter",t.wrapOnPhotoOver))}},{css:b.ok_ru.videoAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=_()(t,".vp_video");if(!r)return;var o=M.getPlayerOptions(t);o&&M.appendLinkUnderVideo(r.parentNode,o,t)}}},{css:b.ok_ru.videoImageAdd,is:"added",callback:function(e){for(var n,r=0;n=e.added[r];r++)if(!(n.dataset.sfSkip>0)){if(n.dataset.sfSkip="1",(n=d()(n,"vid-card_cnt")).dataset.sfSkip)return;E.a.one(n,"mouseenter",t.wrapVideoFeedOnImgOver)}}},{css:b.ok_ru.imageAdd,is:"added",callback:r},{css:b.ok_ru.imageAdd2,is:"added",callback:r},{css:b.ok_ru.imageAdd3,is:"added",callback:r},{css:"."+E.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)E.a.onRemoveListener(t)}},{css:b.ok_ru.sfVideoFeedAdd,is:"added",callback:function(e){for(var t,n=e.target,r=0;t=e.added[r];r++)t.addEventListener("click",(function(e){D.onBtnClick(e,this,n)})),Object(J.a)({category:"append",subcategory:"ok",event:"b"})}},{css:b.ok_ru.wmTrackAdd,is:"added",callback:function(e){for(var n,r=0;n=e.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",E.a.one(n,"mouseenter",t.wrapNewAudioOnMouseEnter))}}])})}}},w=function(){k.clearCache(),C(),S.getJsSessionId(),M.catchPopup()},C=function(){for(var e=document.querySelectorAll(".savefrom_ok_download"),t=e.length-1;t>=0;t--)e[t].parentNode.removeChild(e[t])},S={downloadIdPrefix:"savefrom_ok_audio_download_",infoIdPrefix:"savefrom_ok_audio_info_",lastRow:null,lastRowCandidate:null,timer:0,jsessionId:"",clientHashV:"",scriptNode:null,cache:{},ajaxTimer:{},appendDownloadMobileMusic:function(e){var t=I.a.create("a",{style:{position:"absolute",top:"-6px",left:"16px"},append:[l.svg.getSvg("download","#f1bc7f",14,14)],on:["click",function(){var t=Object(a.a)(g.a.mark((function t(n){var r=this;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.preventDefault(),n.stopPropagation(),Z.a.createLinkExtractor("ok-music").extractLinks({element:e}).then((function(e){l.download(e[0].filename,e[0].url)})).catch((function(e){$.error("appendDownloadMobileMusic. click download error",e),r.style.opacity=.3}));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()]}),n=e.querySelector(".music_track_aux");n&&n.appendChild(t)},showRowElements:function(e,t,n){if(e){var r=e.querySelectorAll("div.savefrom_ok_download");r=e.querySelectorAll("div.savefrom_ok_download");for(var o=0;o<r.length;o++)r[o].style.display=t?"":"none"}},getNodeTrackId:function(e){var t=e.getAttribute("data-query");if(t)try{if((t=JSON.parse(t))&&t.trackId)return t.trackId}catch(e){return null}var n=e.querySelector("span.track_play[onclick]");if(n){var r=/(?:playMediatopic|playFeedTrack)\(['"]?(\d+)['"]?/.exec(n.getAttribute("onclick"));return r&&r[1]}return e.dataset.trackId?e.dataset.trackId:null},getTrackId:function(e){var t=S.getNodeTrackId(e);if(t)return(r={})[t]=e,r;var n=e.id;if(n){var r,o=n.indexOf("#");if(-1!==o&&(n=n.substr(o+1)),(t=l.getMatchFirst(n,/^\w+_(\d+)$/i))||-1!==n.indexOf("GROUP_FEED")&&(t=n.substr(n.lastIndexOf("_")+1)),t)return(r={})[t]=e,r}return null},showRowLinks:function(e){var t=S.getTrackId(e);for(var n in t)if(S.handleRow(n,t[n]))return!0;return!1},disable:function(){S.lastRowCandidate=null,S.lastRow=null;for(var e,t=document.querySelectorAll(".savefrom_ok_download"),n=0;e=t[n];n++)e.parentNode.removeChild(e)},getJsSessionId:function(){return("m.ok.ru"===location.host?function(){for(var e=Array.from(document.querySelectorAll("script")),t=0;t<e.length;t++)if(e[t].textContent){var n=e[t].textContent.match(/"jsid":"(.*?)"/);if(n&&n[1])return Promise.resolve(n[1])}return Promise.resolve(void 0)}:function(){return new Promise((function(e,t){var n=location.protocol+"//"+location.host+"/web-api/music/conf";O()({type:"POST",url:n,data:"_",json:!0,localXHR:!0},(function(n,r,o){!n&&o&&o.sid?e(o.sid):t(new Error("Get jsSessionId error!"))}))}))})().then((function(e){S.jsessionId=e}),(function(e){$.debug("getJsSessionId error",e)}))},getLink:function(e){e&&S.jsessionId&&(S.ajaxTimer[e]=window.setTimeout((function(){delete S.ajaxTimer[e],S.deleteLink(e)}),3e4),o.a.sendMessage({action:"getOdnoklassnikiAudioLinks",url:location.href,trackId:e,jsessionId:S.jsessionId},(function(e){S.setLink(e.trackId,e.data)})))},onMouseOver:function(){if(S.jsessionId){var e=this;e&&(S.lastRowCandidate=e,clearTimeout(S.timer),S.lastRow!==e&&(S.timer=window.setTimeout((function(){S.showRowElements(S.lastRow,!1),S.lastRow=e,S.lastRowCandidate=null,S.showRowElements(S.lastRow,!0)}),250)))}},onMouseOut:function(){var e=this;(S.lastRow&&S.lastRow.contains(e)||S.lastRowCandidate&&S.lastRowCandidate.contains(e))&&(clearTimeout(S.timer),S.timer=window.setTimeout((function(){S.showRowElements(S.lastRow,!1),S.lastRow=null,S.lastRowCandidate=null}),1e3)),e=null},onNewMouseEnter:function(e){var t=this;if(!this.querySelector(".savefrom_ok_download")){var n=R()(this);if(document.querySelector(n)!==this)throw new Error("Node path is incorrect");return S.getNodeTrack(n).then((function(e){"WM-TRACK2"===t.tagName?S.insertButtonOnOver(t,e):S.insertButton(t,e)}))}},insertButtonOnOver:function(e,t){var n=this,r=new(G()())((function(r){if(!p)return o();for(var a=null,i=null,s=0;a=r.shift();)if("childList"===a.type&&a.target===e)for(s=0,a.addedNodes;i=a.addedNodes[s];s++)if("SLOT"===i.tagName&&"controls"===i.name){e.querySelector(".savefrom_ok_download")||(n.insertButton(e,t),o());break}})),o=function(){r.disconnect()};r.observe(e,{childList:!0})},insertButton:function(e,t){var n=["sf-audio","savefrom_ok_download"],r=null;if("WM-TRACK"===e.tagName?r=e.querySelector(".wm-track_controls"):"WM-TRACK2"===e.tagName&&(n.push("sf-audio-2"),r=e.querySelector('slot[name="controls"]')),e.classList.contains("track-with-cover")&&(r=e.querySelector('[data-l="t,addTrack"]')),!r){var o=e.querySelector('slot[name="controls"], wm-duration');r=document.createElement("div"),e.insertBefore(r,o)}var a=I.a.create("a",{href:"#",data:{state:"idle",trackId:t.id},class:n,style:{display:"none",position:"relative",width:"16px",height:"16px",verticalAlign:"middle"},on:[["mouseenter",S.handlePreload],["click",S.handleClickNewButton],["mouseenter",function(){j.tooltip.textContent=S.getNewButtonTooltipLabel(this),j.show(this)}],["mouseleave",function(){j.hide()}],["sf-state-change",function(){j.tooltip.textContent=S.getNewButtonTooltipLabel(this),j.updatePos(this)}],["mouseover",function(e){if(ee){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(K.showTooltip)(a,{defaultWidth:400,defaultHeight:60});Object(K.hideTooltip)(a,{defaultWidth:400,defaultHeight:60})}}]]});Object(J.a)({category:"append",subcategory:"ok",event:"b"}),r.appendChild(a)},getNewButtonTooltipLabel:function(e){switch(e.dataset.state){case"pending":return"...";case"done":var t=JSON.parse(e.dataset.data),n=t.duration,r=t.size,a="";if(r){var i=l.sizeHuman(r,2);a=n?"".concat(i," ~ ").concat(Math.floor(r/n/125)+" "+o.a.i18n.getMessage("kbps")):""+i}else a=o.a.i18n.getMessage("getFileSizeFailTitle");return a;case"error":return o.a.i18n.getMessage("noLinksFound");default:return""}},handlePreload:function(e){var t=this,n=e.target.closest("wm-track")||e.target.closest("wm-track2");return Z.a.createLinkExtractor("ok-music").extractLinks({element:n}).then((function(n){t.href=n[0].url,t.download=n[0].filename,t.dataset.data=JSON.stringify({duration:n[0].duration,size:n[0].size}),t.dataset.state="done",t.dispatchEvent(new CustomEvent("sf-state-change")),t.dataset.downloadOnReady>0&&S.handleClickNewButton.call(t,e)})).catch((function(e){$.error("LinkExtractor error",e),t.dataset.state="error",t.dispatchEvent(new CustomEvent("sf-state-change"))}))},handleClickNewButton:function(e){e.stopPropagation(),"done"!==this.dataset.state?(e.preventDefault(),"1"!==this.dataset.downloadOnReady&&(this.dataset.downloadOnReady="1")):l.downloadOnClick(e)},getNodeTrack:function(e){return T()([e],'function(nodePath){var el=document.querySelector(nodePath);if(el&&el.props&&el.props.track){return el.props.track}if(el&&el.model&&el.model._data.get("track")){return el.model._data.get("track")}throw new Error("Track information not found")}')},getNodePath:function(e){for(var t=[];e.parentNode&&1===e.parentNode.nodeType;){var n="",r=[].slice.call(e.parentNode.childNodes);r.length>1&&(n=":nth-child(".concat(r.indexOf(e)+1,")")),t.unshift("".concat(e.tagName).concat(n)),e=e.parentNode}return t.join(">")},handleRow:function(e,t){if(!e||!t)return!1;var n=t;n.style.position="relative";var r=t.querySelector(".m_c_duration, .m_portal_duration"),a=document.createElement("div");a.className="savefrom_ok_download";var i=40,s=document.getElementById("mmpcw");s&&s.contains(t)&&(i=65),l.setStyle(a,{color:"#fff",background:"#46aa19",border:"1px solid #337d12",borderRadius:"3px",padding:"1px 5px",position:"absolute",right:i+"px",top:"50%",lineHeight:"15px",fontSize:"12px",opacity:0,zIndex:9999,cursor:"pointer"}),a.addEventListener("click",S.onBoxClick,!1),a.addEventListener("mousedown",(function(e){e.stopPropagation()}),!1);var u=S.getTitle(e,t),c=function(e,t,n){null==n&&(n=!0);var r=document.createElement("a");return r.href="#",r.className="savefrom_ok_download",r.textContent="...",n&&r.setAttribute("target","_blank"),r}();c.id=S.downloadIdPrefix+e,c.title=o.a.i18n.getMessage("downloadTitle"),r&&c.setAttribute("data-savefrom-helper-duration",S.secondsFromDurationNode(r)),u&&(u+=".mp3",c.setAttribute("download",P.a.modify(u))),l.setStyle(c,{color:"#fff",fontWeight:"normal"}),c.addEventListener("click",S.onDownloadLinkClick,!1),a.appendChild(c),n.appendChild(a),S.cache[e]?S.setLinkFromCache(e,c):S.getLink(e),a.style.marginTop="-"+a.offsetHeight/2+"px",a.style.opacity="1";var d=document.createElement("span");return d.textContent=String.fromCharCode(215),d.title=o.a.i18n.getMessage("close"),l.setStyle(d,{color:"#fff",fontFamily:"Tahoma,Helvetica,sans-serif",fontSize:"15px",marginLeft:"7px",opacity:".7",cursor:"pointer"}),d.addEventListener("click",S.onCloseBtnClick,!1),a.appendChild(d),!0},onBoxClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.querySelector("a.savefrom_ok_download");return t?(E.a.trigger(t,"click",{cancelable:!0}),!1):(this.style.display="none",!1)},onDownloadLinkClick:function(e){return 2!=e.button&&(e.stopPropagation(),"#"==this.href?(e.preventDefault(),!1):(l.downloadOnClick(e),!1))},onCloseBtnClick:function(e){if(2==e.button)return!0;e.preventDefault(),e.stopPropagation();var t=_()(this,".savefrom_ok_download");return t&&(t.style.display="none"),!1},deleteLink:function(e,t){if(!t&&e&&(t=document.getElementById(S.downloadIdPrefix+e)),t){var n=t.parentNode;n&&n.parentNode.removeChild(n)}},getHash:function(e,t){t||(t=[4,3,5,6,1,2,8,7,2,9,3,5,7,1,4,8,8,3,4,3,1,7,3,5,9,8,1,4,3,7,2,8]);for(var n=[],r=0;r<e.length;r++)n.push(parseInt("0x0"+e.charAt(r)));var o=[];(e=(e=n).slice(0))[32]=e[31];var a=0;for(r=32;r-- >0;)a+=e[r];for(var i=0;i<32;i++)o[i]=Math.abs(a-e[i+1]*e[i]*t[i]);return o.join("")},setLinkFromCache:function(e,t){if(!S.cache[e])return!1;if(t||(t=document.getElementById(S.downloadIdPrefix+e)),t){t.href=S.cache[e].url,t.textContent="",S.cache[e].downloadAttr&&t.setAttribute("download",S.cache[e].downloadAttr);var n=I.a.create(l.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",opacity:"0.9"}});t.appendChild(n);var r=document.createTextNode(S.cache[e].info);return t.nextSibling?t.parentNode.insertBefore(r,t.nextSibling):t.parentNode.appendChild(r),!0}},getClientHash:function(e){return Promise.resolve(function(){var t=n(74);return function(e,t){for(var n,r=[4,3,5,6,1,2,8,7,2,9,3,5,7,1,4,8,8,3,4,3,1,7,3,5,9,8,1,4,3,7,2,8],o=t(/md5=(\w*)/g.exec(e)[1]+"secret"),a=o.length,i="",s=0,u=0;u<a;u++)s+=parseInt(o[u],16);for(var l=0;l<a;l++){var c=parseInt(o[l],16);n=l===a-1?c:parseInt(o[l+1],16),i+=Math.abs(s-c*n*r[l])}return i}(e,(function(e){return t(e).toString()}))}())},setLink:function(e,t,n){if(e){clearTimeout(S.ajaxTimer[e]);var r=document.getElementById(S.downloadIdPrefix+e);if(r&&!S.setLinkFromCache(e,r)){if(!t||!t.play)return S.deleteLink(e,r),void(r.textContent="?");if(void 0===n)return this.getClientHash(t.play).then((function(n){S.setLink(e,t,n)}),(function(t){S.deleteLink(e,r)}));var a=t.track&&t.track.size||-1;S.cache[e]={},S.cache[e].url=t.play+(n?"&clientHash="+n:"");var i=" ("+l.sizeHuman(a,2),s=r.getAttribute("data-savefrom-helper-duration");if(t.track&&(t.track.duration&&(s=t.track.duration),t.track.ensemble&&t.track.name)){var u=t.track.ensemble+" - "+t.track.name;S.cache[e].title=u,S.cache[e].downloadAttr=P.a.modify(u+".mp3")}if(a&&a>0&&s){if(s=parseInt(s),isNaN(s))return void delete S.cache[e];i+=" ~ "+Math.floor(a/s/125)+" "+o.a.i18n.getMessage("kbps")}i+=")",S.cache[e].info=i,S.setLinkFromCache(e,r)}}},getTitle:function(e,t){if(!e||!t)return"";var n="",r=t.querySelector(".m_c_artist, .mus-tr_artist, .m_portal_c_artist"),o=t.querySelector(".m_track_source, .mus-tr_song, .m_portla_track_name");return r&&(r=r.textContent)&&(n+=r.trim()),o&&(o=o.textContent)&&(n&&(n+=" - "),n+=o.trim()),n?n.replace(/\<a\s+[^\>]+\>/gi,"").replace(/\<\/a\>/gi,""):""},secondsFromDurationNode:function(e){if(!e)return 0;var t=e.textContent;if(!t)return 0;var n=t.match(/^(?:\s*(\d+)\s*\:)?\s*(\d+)\s*\:\s*(\d+)/);return n&&n.length>3?(n[1]||(n[1]=0),3600*parseInt(n[1])+60*parseInt(n[2])+parseInt(n[3])):0},getPlaylistName:function(e){if(e!==document){var t=e.querySelector(".mus_h2_tx");return t&&P.a.modify(t.textContent)||void 0}},getNewPlaylistName:function(e){if(e!==document){var t=e.querySelector(".wm-list-description_header");return t&&P.a.modify(t.textContent)||void 0}},elIsHidden:function(e){return null===e.offsetParent},getLayer:function(){var e=document.querySelector("#mmpcw");if(e&&!e.classList.contains("__hidden")&&((e=e.querySelector('div.m_c_s[aria-hidden="false"]'))&&!S.elIsHidden(e)))return e},getNewLayer:function(){var e=document.querySelector("#music_layer wm-collection-section");if(e||(e=document.querySelector("#music_layer")),!e||!S.elIsHidden(e))return e},getPopup:function(e,t,n){var r,a=l.playlist.getInfoPopupTemplate();I.a.create(a.textContainer,{append:[e?I.a.create("p",{text:e,style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}):void 0,r=I.a.create("p",{text:"",style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]});var i=l.popupDiv(a.body,"sf_progress_popup",void 0,void 0,n),s=function e(n){e.state!==n&&(e.state=n,a.buttonContainer.style.display="none",r.style.display="none",o.a.sendMessage({action:"getWarningIcon",type:t,color:"#77D1FA"},(function(e){a.icon.style.backgroundImage="url("+e+")"})),"progress"===n&&(r.style.display="block"),"error"===n&&(o.a.sendMessage({action:"getWarningIcon",type:t,color:"#AAAAAA"},(function(e){a.icon.style.backgroundImage="url("+e+")"})),r.style.display="block"))};return{onPrepare:function(e){s("progress"),r.textContent=e},onProgress:function(e,t){r.textContent=o.a.i18n.getMessage("vkFoundFiles").replace("%d",e)+" "+o.a.i18n.getMessage("vkFoundOf")+" "+t},onReady:function(){E.a.trigger(i,"kill")},onError:function(e){s("error"),r.textContent=e}}},getAudioLinksViaAPI:function(e,t,n){var r=!1,a=[],i=e.length;return function s(){if(!r){var u=e.splice(0,10);if(0===u.length)return n(a);o.a.sendMessage({action:"getOkAudioListLinks",trackIdArr:u,jsessionId:S.jsessionId},(function(n){var r=Promise.resolve();Array.isArray(n)&&n.forEach((function(e){r=r.then((function(){if("string"==typeof e.play&&"object"==typeof e.track){var t,n=e.play;return e.track.name&&(t=e.track.name),e.track.ensemble&&(t=e.track.ensemble+(t?" - "+t:"")),t||(t="noname"),S.getClientHash(n).then((function(r){n+="&clientHash="+r,a.push({url:n,duration:e.track.duration||0,title:t,filename:P.a.modify(t)+".mp3"})}))}})).catch((function(t){$.debug("process item error",e,t)}))})),r.then((function(){t(i-e.length,i),s()}))}))}}(),{abort:function(){r=!0}}},getAudioListLinksPopup:function(e,t,n){var r,a=this.getPopup(t,"audio",(function(){r&&r.abort()}));a.onPrepare(o.a.i18n.getMessage("download")+" ..."),r=this.getAudioLinksViaAPI(e,a.onProgress,(function(e){0!==e.length?(a.onReady(),n(e)):a.onError(o.a.i18n.getMessage("vkMp3LinksNotFound"))}))},getAudioLinksIds:function(e){return Promise.resolve().then((function(){for(var t,n=e.querySelectorAll([".m_portal_track",".m_c_tr",".mus-tr_i"]),r=[],o=0;t=n[o];o++){var a=S.getTrackId(t);for(var i in a)r.push(i)}return r}))},getNewAudioLinksIds:function(e){var t=R()(e);if(!t||document.querySelector(t)===e)return T()([t],'function(nodePath){var result=null;try{var container=nodePath===""?document:document.querySelector(nodePath);var ids=[].slice.call(container.querySelectorAll(["wm-track","wm-track2"])).reduce(function(result,node){try{var getTrack=function getTrack(){if(node&&node.props&&node.props.track){return node.props.track}if(node&&node.model&&node.model._data.get("track")){return node.model._data.get("track")}throw new Error("getNewAudioLinksIds")};var track=getTrack();if(track){result.push(track.id)}}catch(err){// console.error(\'getNewAudioLinksIds error\', err);\n}return result},[]);result={result:ids}}catch(err){result={error:{message:err.message,stack:err.stack}}}if(result.error){throw new Error(result.error.message)}else{return result.result}}')},getAudioFromWall:function(e){return Object(a.a)(g.a.mark((function t(){var n,r;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.querySelector(".media-layer.__active"),r=(e=n||e).querySelectorAll(".track-with-cover_cnt"),t.abrupt("return",Array.from(r).map((function(e){return e.closest(".track-with-cover").dataset.trackId})));case 3:case"end":return t.stop()}}),t)})))()},getAudioLinks:function(e,t,n){var o=this;return Promise.all([this.getAudioLinksIds(e),this.getNewAudioLinksIds(e),this.getAudioFromWall(e)]).then((function(e){var t;return(t=[]).concat.apply(t,Object(r.a)(e)).filter((function(e,t,n){return n.indexOf(e)===t}))})).then((function(e){o.getAudioListLinksPopup(e,t,n)}))},downloadMP3Files:function(){var e=S.getLayer()||S.getNewLayer()||document,t=S.getPlaylistName(e)||S.getNewPlaylistName(e);S.getAudioLinks(e,t,(function(e){l.downloadList.showBeforeDownloadPopup(e,{type:"audio",folderName:t})}))},showListOfAudioFiles:function(e){var t=S.getLayer()||S.getNewLayer()||document,n=S.getPlaylistName(t)||S.getNewPlaylistName(t);S.getAudioLinks(t,n,(function(t){t.length?e?l.playlist.popupPlaylist(t,n,!0):l.playlist.popupFilelist(t):alert(o.a.i18n.getMessage("vkMp3LinksNotFound"))}))}},M={requestMobileToken:function(e,t){var n=null;e.links.some((function(e){var t=e.url.match(/\/\/([^/]+)/);if(t=t&&t[1])return n=t,!0}));var r=function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open("POST",location.protocol+"//"+e+"/usr_login",!1),n.withCredentials=!0,n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.onreadystatechange=function(){try{var e=JSON.parse(n.responseText);if(!e.vtkn||!e.ttl)return t();t({ttl:e.ttl,vtkn:e.vtkn})}catch(e){}},n.send()}))};T()((function(){var e=document.cookie&&document.cookie.match(/vdsig=([^;]+);/);if(e&&e[1])return e[1]})).then((function(a){if(a)return e.vtkn=a,t(e);var i=function(n){var r=n.ttl,o=n.vtkn;r&&o&&(k.videoToken={ttl:Date.now()+1e3*r,vtkn:o},e.vtkn=o,t(e))};o.a.isChrome||o.a.isFirefox?T()([n],r).then(i):r(n).then(i)}))},getMobileToken:function(e,t){if(e.vtkn)return t(e);var n=k.videoToken;return n&&n.expire>Date.now()?(e.vtkn=n.vtkn,t(e)):M.requestMobileToken(e,t)},wrapMobileLinks:function(e,t){M.getMobileToken(e,(function(e){if(!e||!e.vtkn)return t();e.action="getOkViaMobileWrapped",e.links.forEach((function(t){var n=/\?/.test(t.url)?"&":"?";t.url+=n+"vdsig="+e.vtkn})),t(e)}))},prepareResponse:function(e,t){var n=function(){t(o.a.i18n.getMessage("noLinksFound"))};if(!e||!e.links)return n();if(!c.showUmmyItem&&"getRutubeLinks"===e.action)return n();if("getOkViaMobile"===e.action)return M.wrapMobileLinks(e,(function(e){if(!e)return n();M.prepareResponse(e,t)}));var r=null;"getYoutubeLinks"===e.action?r="youtube":"getVimeoLinks"===e.action?r="vimeo":"getDailymotionLinks"===e.action?r="dailymotion":"getRutubeLinks"===e.action&&(r="rutube");var a;return a=r?l.popupMenu.prepareLinks[r](e.links,e.title):D.prepareLinks(e.links,e.title),t(a)},matchOpenGraph:function(e){if(e&&e.movie&&e.movie.contentId){var t=e.movie.contentId;if(-1!==t.indexOf("rutube.")&&c.showUmmyItem)return{action:"getRutubeLinks",links:[t]};if(-1!==t.indexOf("pladform")){var n=f()(t);return{action:"getPladformVideo",extVideoId:{playerId:n.pl,videoId:n.videoid}}}var r=l.embedDownloader.checkUrl(t);if(r)return r;var o=e.movie.poster;if("string"==typeof o){var a=(f()(o).url||o).match(/ytimg\.com\/vi\/([^\/]+)\//);if(a=a&&a[1])return{action:"getYoutubeLinks",extVideoId:a}}}},switchMetadataProvider:function(e){if(e&&e.provider&&e.movie)switch(e.provider){case"USER_YOUTUBE":if(e.movie.contentId)return{request:{action:"getYoutubeLinks",extVideoId:e.movie.contentId}};break;case"OPEN_GRAPH":var t=this.matchOpenGraph(e);if(t)return{request:t};break;case"LIVE_TV_APP":case"SLIDE_SHOW":case"LIVE_TV_ODKL":case"UPLOADED_ODKL":case"UPLOADED_ATTACHMENT":case"UPLOADED":case"PARTNER":case"YKL":if(e.videos&&e.movie.title)return{request:{action:"wrapMobileLinks",title:e.movie.title,links:e.videos}}}},getPlayerMetadata:function(e,t,n,r){var o={cmd:"videoPlayerMetadata",mid:e,rnd:Date.now()};r&&(o.mtId=t),O()({method:"POST",url:location.protocol+"//"+location.host+"/dk?"+X.stringify(o),json:!0,localXHR:!0},(function(o,a,i){return o?!r&&t?void M.getPlayerMetadata(e,t,n,1):n():n(i)}))},getEmbed:function(e,t){var n=f()(e);if(!n.id||!n.sig)return t();var r="http://cdn-ok.com/video/get/?"+X.stringify({id:n.id,format:1,sig:n.sig,sig2:"oldRotator"});o.a.sendMessage({action:"getData",url:r},(function(e){return e&&y()(e,[/"sourceType":/,/"sourceId":/]).some((function(e){if("youtube"===e.sourceType&&e.sourceId)return t({request:{action:"getYoutubeLinks",extVideoId:e.sourceId}}),!0}))?void 0:t()}))},readMetadata:function(e,t,n){if(e.movie&&/cdn-ok\.com\/embed/.test(e.movie.contentId))return this.getEmbed(e.movie.contentId,(function(e){if(!e||!e.request)return t();o.a.sendMessage(e.request,(function(e){M.prepareResponse(e,t)}))}));if(!n&&e.movie&&e.movie.movieId){var r=e.movie.link&&f()(e.movie.link,{sep:"&amp;"})["st.vpl.sid"];return this.getPlayerMetadata(e.movie.movieId,r,(function(n){M.readMetadata(n||e,t,1)}))}var a=this.switchMetadataProvider(e);return a?a.links?t(a.links):void(a.request?"getRutubeLinks"===a.request.action?M.prepareResponse(a.request,t):"wrapMobileLinks"===a.request.action?M.wrapMobileLinks(a.request,(function(e){M.prepareResponse(e,(function(e){t(e,1)}))})):o.a.sendMessage(a.request,(function(e){M.prepareResponse(e,t)})):t()):t()},prepareVideoUrl:function(e,t){var n=e.split("?"),r=t.split("?"),o=Object(h.a)(r,2),a=o[0],i=o[1];if(!n[1]||!i)return t;if(n=new URLSearchParams(n[1]),i=new URLSearchParams(i),!n.has("type"))return t;var s=n.get("type");return i.has("st.mq")&&i.set("st.mq",s),i.has("st.hls")&&i.set("st.hls","off"),a+"?"+i.toString()},getMobileVideoSrc:function(e){return e&&e.dataMobile&&e.dataMobile.videoSrc?Promise.resolve(e.dataMobile.videoSrc):e&&e.movie&&e.movie.id?Object(W.a)({action:"getOkVideoUrlFromMobile",videoUrl:location.href,videoId:e.movie.id}):Promise.resolve(void 0)},loadLinks:function(e,n,r){var a=k.linkCache,i=JSON.stringify(e),s=a[i];if(s)return n.update(s);var u=function(e,s){var u=function(){n.update(o.a.i18n.getMessage("noLinksFound"))};return e?e.hlsManifestUrl?Z.a.createLinkExtractor("ok-video").extractLinks({element:r,initData:t}).then((function(e){n.update(e)})).catch((function(e){u(),$.error("hls error",e)})):void M.readMetadata(e,(function(e,t){if(!e)return u();Array.isArray(e)&&!e.length&&(t=1),t||(a[i]=e),n.update(e)}),s):u()};e.metadata?u(e.metadata):e.request?"getOkMetadata"===e.request.action?o.a.sendMessage(e.request,u):"getPlayerMetadata"===e.request.action?this.getPlayerMetadata(e.request.extVideoId,e.request.sid,(function(e){u(e,1)})):"getRutubeLinks"===e.request.action?M.prepareResponse(e.request,(function(e){n.update(e)})):o.a.sendMessage(e.request,(function(e){M.prepareResponse(e,(function(e){n.update(e)}))})):n.update(o.a.i18n.getMessage("noLinksFound"))},appendLinkUnderVideo:function(e,t,n){Object(J.a)({category:"append",subcategory:"ok",event:"b"});var r=e.querySelector(".vp-layer-info_cnt");if(r){var a=r.querySelector(".savefrom_ok_download"),i=I.a.create("span",{className:"savefrom_ok_download",style:{marginLeft:"12px"},on:[["click",function(e){e.stopPropagation()}],["mousedown",function(e){e.stopPropagation()}],["keydown",function(e){e.stopPropagation()}]],append:[I.a.create("a",{href:"#",text:o.a.i18n.getMessage("download"),on:["click",function(r){if(r.preventDefault(),E.a.onRemoveEvent(i,k.hideMenu),k.contextMenu&&k.contextMenu.isShow){if(k.contextMenu.button===this)return void k.hideMenu();k.hideMenu()}o.a.sendMessage({action:"checkAndOpenProLanding",id:"ok-5"});var a=k.contextMenu=l.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+"...","sf-single-video-menu",{parent:e});M.loadLinks(t,a,n)}]})]});a&&a.parentNode?(a.parentNode.replaceChild(i,a),a=null):r.appendChild(i)}},appendDownloadMobileVideo:function(e){var t={float:"right",display:"flex",alignItems:"center",width:"fit-content"},n=e.querySelector(".widget-list_infos"),r=e.querySelector("[data-video]");if(n&&r){n.querySelector(".widget-list_actors, .ic")||(t.position="absolute",t.top="-7px",t.right="0");var o=M.createMobileDownloadContainer(r,{containerStyle:t,menuClass:"sf-mobile-video-menu"});n.appendChild(o)}},createMobileDownloadContainer:function(e,t){var n=t.containerStyle,r=t.menuClass,a=I.a.create("div",{style:n||{},append:[l.svg.getSvg("download","#f1bc7f",14,14),I.a.create("a",{href:"#",text:o.a.i18n.getMessage("download"),style:{marginLeft:"4px"}})],on:["click",function(t){t.preventDefault(),t.stopPropagation(),k.contextMenu=l.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+" ...",r,{parent:a||t.target}),M.getMobilePlayerOptions(e).then((function(t){if(!t)return k.contextMenu.update(o.a.i18n.getMessage("noLinksFound"));M.loadLinks(t,k.contextMenu,e)}))}]});return a},getPlayerOptions:function(e){var t=_()(e,"[data-player-element-id][data-options]"),n=t&&t.dataset.options;if(n){try{n=JSON.parse(n)}catch(e){}var r=n.flashvars;if(r){if(r.metadata){var o=null;try{o=JSON.parse(r.metadata)}catch(e){}if(o)return{metadata:o}}if(r.metadataUrl)return{request:{action:"getOkMetadata",url:decodeURIComponent(r.metadataUrl)}};var a=n.url;if(a){var i=l.embedDownloader.checkUrl(a);if(i)return{request:i};if(-1!==a.indexOf("rutube."))return{request:{action:"getRutubeLinks",links:[a]}}}}}},getMobilePlayerOptions:function(e){return Object(a.a)(g.a.mark((function t(){var n,r,o,a,i;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{n=JSON.parse(e.dataset.video)}catch(e){}if(n&&n.movieId?(r=n.movieId).indexOf("_")&&(r=r.split("_")[0]):r=new URLSearchParams(location.search).get("st.discId"),r){t.next=4;break}return t.abrupt("return",void $.error("getMobilePlayerOptions. video id not found"));case 4:return t.next=6,Object(W.a)({action:"okRequestVideoPage",videoId:r});case 6:if(o=t.sent){t.next=9;break}return t.abrupt("return",void $.error("getMobilePlayerOptions. videoPage fetch failed"));case 9:if(a=Y()(o,"").querySelector(".vp_video .vid-card_cnt")){t.next=12;break}return t.abrupt("return",void $.error("getMobilePlayerOptions. Video dataset not found"));case 12:return i=M.getPlayerOptions(a),t.abrupt("return",(i.metadata?i.metadata.dataMobile=n:i.metadata={dataMobile:n},i));case 14:case"end":return t.stop()}}),t)})))()},catchPopup:function(){var e=null;this.lastWaitEl&&this.lastWaitEl.abort(),this.lastWaitEl=this.waitEl((function(){if(e=document.querySelector(".vp_video .vid-card_cnt"))return e}),(function(){var t=_()(e,".vp_video");if(t){var n=M.getPlayerOptions(e);n&&M.appendLinkUnderVideo(t.parentNode,n,e)}}))},rmBtn:function(){for(var e,t=document.querySelectorAll(".savefrom_ok_download"),n=0;e=t[n];n++)e.parentNode.removeChild(e)},lastWaitEl:null,waitEl:function(e,t,n){var r,o=Object.assign({abort:function(){clearInterval(o.timeout),o.isAborted=!0}},{delay:500,repeat:12,isAborted:!1,timeout:null},n);return(r=e())?(t(r),o):(function n(){o.repeat--,o.timeout=setTimeout((function(){if(!o.isAborted)return(r=e())?t(r):void(!o.isAborted&&o.repeat&&n())}),o.delay)}(),o)}},D={btnClassName:"sf-feed-dl-btn",style:void 0,thumbClassName:"vid-card_img",prepareLinks:function(e,t){if(!e||!e.length)return o.a.i18n.getMessage("noLinksFound");if("string"==typeof e)return e;t=t||"";for(var n,r,a,i,s=[],u=0,c=e.length;u<c;u++){var d=e[u];if("object"==typeof d&&d.url){i=d.url;var p=d.ext;p||(p="MP4",-1!==d.url.indexOf(".mp4")&&(p="MP4"),-1!==i.indexOf(".flv")&&(p="FLV"),-1!==d.url.indexOf(".mov")&&(p="MOV"),-1!==d.url.indexOf(".mpg")&&(p="MPG")),a=(p=p.toLowerCase()).toUpperCase(),r=d.subname||d.quality||d.name||p}else{p="MP4",-1!==(i=d).indexOf(".mp4")&&(p="MP4"),-1!==i.indexOf(".flv")&&(p="FLV"),-1!==i.indexOf(".mov")&&(p="MOV"),-1!==i.indexOf(".mpg")&&(p="MPG"),a=(p=p.toLowerCase()).toUpperCase(),r=p;var f=l.getMatchFirst(e[u],/\.(\d+)\.mp4/i);f&&(r=f)}var m=["mobile","lowest","low","sd","hd","full","quad","ultra"].indexOf(r);-1!==m&&(r=[144,240,360,480,720,1080,1440,"4K"][m]),n={href:i,title:d.title?d.title:t,ext:p,format:a,quality:r,forceDownload:!0},s.push(n)}return s},getPosterData:function(e){var t=_()(e,"[hrefattrs]"),n=t&&t.getAttribute("hrefattrs");if(n){var r=f()(n,{params:!0}),o=r["st.vpl.sid"],a=r["st.vpl.id"];if(!a){var i=_()(e,"[data-id]");if((a=i&&i.dataset.id)&&"c"===a[0])return}if(a&&"OK_"===a.substr(0,3)&&(a=l.getMatchFirst(a,/OK_\d+_(\d+)/)),a)return{request:{sid:o,action:"getPlayerMetadata",extVideoId:a}}}},onBtnClick:function(e,t,n){e.preventDefault(),e.stopPropagation();var r=JSON.parse(t.dataset.sfContext);if(E.a.onRemoveEvent(t,k.hideMenu),k.contextMenu&&k.contextMenu.isShow){if(k.contextMenu.button===t)return void k.hideMenu();k.hideMenu()}var a=document.querySelector("#mtLayer.__active #mtLayerMain > div");a||(a=document.getElementById("vv_content")),a||x()(t,".js-messages-list "+t.tagName)&&(a=d()(t,"js-messages-list"))&&!a.offsetParent&&(a=null),!a&&x()(t,"#mainContent "+t.tagName)&&(a=_()(t,"#mainContent"));var i=k.contextMenu=l.popupMenu.quickInsert(t,o.a.i18n.getMessage("download")+" ...","sf-popupMenu",{parent:a||void 0});Object(J.a)({category:"download",subcategory:"ok",event:"video"}),M.loadLinks(r,i,n)},onImgOver:function(e){var t=x()(this,".mdialog_chat_window .d_comment_text_w "+this.tagName),n=null;if(t?n=d()(this,"d_comment_text_w"):x()(this,".video-card > .video-card_img-w "+this.tagName)?n=d()(this,"video-card_img-w"):this.classList.contains("vid-card_cnt")?n=this:x()(this,".vid-card_cnt "+this.tagName)&&(n=d()(this,"vid-card_cnt")),n&&!n.getElementsByClassName(D.btnClassName).length&&!n.querySelector(".vid-card_live.__active")){var r=x()(this,".vid-card_img__link "+this.tagName),a=M.getPlayerOptions(this);if(a||(a=D.getPosterData(this)),a){a.isChat=t;var i={};t&&Object.assign(i,{left:"15px",top:"15px"}),r&&Object.assign(i,{backgroundColor:"#454648",borderColor:"rgb(53, 53, 53)"});var s=I.a.create("i",{class:[D.btnClassName,"sf-video-feed-bind-on-insert"],style:i,data:{sfContext:JSON.stringify(a)},title:o.a.i18n.getMessage("download")});s.appendChild(I.a.create(l.svg.getSvg("download"),{style:{width:"12px",height:"12px",margin:"4px"}})),n.appendChild(s)}}},injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=I.a.create("style",{text:A()({"div > .sf-feed-dl-btn":{display:"none",border:"1px solid #F8F8F8",width:"20px",height:"20px",padding:0,position:"absolute",top:0,left:0,zIndex:1,cursor:"pointer",backgroundColor:"#F8F8F8"},"div > .sf-feed-dl-btn svg path":{fill:"#eb722e"},"div > .sf-feed-dl-btn:hover svg path":{fill:"#00B75A"},"div > .sf-feed-dl-btn:active":{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"},"div:hover > .sf-feed-dl-btn":{display:"block"},".sf-audio.savefrom_ok_download":{display:"none",backgroundImage:"url("+l.svg.getSrc("download","#ee8208")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"16px",opacity:.5,marginLeft:"11px"},".sf-audio.sf-audio-2.savefrom_ok_download":{margin:"0 6px"},".sf-audio.savefrom_ok_download:hover":{opacity:1},"wm-track:hover .sf-audio":{display:"flex !important"},"wm-track2:hover .sf-audio":{display:"flex !important"},"#sf-mobile-video-menu":{left:"auto !important",right:"0"}})}),document.head.appendChild(this.style))},disable:function(){this.style&&this.style.parentNode&&this.style.parentNode.removeChild(this.style)},rmBtn:function(){for(var e,t=document.querySelectorAll(".sf-feed-dl-btn"),n=0;e=t[n];n++)e.parentNode.removeChild(e);var r=v()("sfSkip2"),o=document.querySelectorAll("["+r+"]");for(n=0;e=o[n];n++)e.removeAttribute(r)}},L={style:null,rmCurrentPhotoBtn:function(e){for(var t,n=void 0,r=document.querySelectorAll(".sf-dl-current-photo-btn"),o=0;t=r[o];o++)e&&e.contains(t)?n=t:t.parentNode.removeChild(t);return n},addDlCurrentPhotoBtn:function(e){if(!this.rmCurrentPhotoBtn(e)){var t=k;e.appendChild(I.a.create("a",{class:"sf-dl-current-photo-btn",href:"#",title:o.a.i18n.getMessage("download"),on:["click",function(n){if(n.stopPropagation(),n.preventDefault(),t.contextMenu&&t.contextMenu.isShow&&t.contextMenu.button===this){if(t.contextMenu.button===this)return void t.hideMenu();t.hideMenu()}var r=function e(t){18!==t.keyCode&&17!==t.keyCode&&(a.hide(),document.removeEventListener("keydown",e))},a=t.contextMenu=l.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+" ...","photoDlMenu",{parent:e,onShow:function(){document.addEventListener("keydown",r)},onHide:function(){document.removeEventListener("keydown",r)}}),i=[],s=e.querySelector("img.photo-layer_img");if(s){var u=s.dataset.fsSrc||s.dataset.nfsSrc||s.src;u&&i.push({href:u,title:"photo_"+parseInt(Date.now()/1e3),quality:o.a.i18n.getMessage("download"),format:" ",ext:"jpg",forceDownload:!0,isBlank:!0,func:function(){o.a.sendMessage({action:"checkAndOpenProLanding",id:"ok-6"}),a.hide()}})}if(s||(s=e.querySelector("div.gif[data-gifsrc]")),s){var c={webmsrc:"webm",mp4src:"mp4",gifsrc:"gif"};Object.keys(c).forEach((function(e){var t=s.dataset[e];if(t){var n=c[e];i.push({href:t,title:"gif_"+parseInt(Date.now()/1e3),quality:o.a.i18n.getMessage("download"),format:n.toUpperCase(),ext:n,forceDownload:!0,isBlank:!0,func:function(){a.hide()}})}}))}0!==i.length?a.update(i):a.update(o.a.i18n.getMessage("noLinksFound"))}],append:[I.a.create(l.svg.getSvg("download"),{style:{width:"12px",height:"12px",margin:"4px"}})]}))}},injectStyle:function(){L.style?L.style.parentNode||document.head.appendChild(L.style):(L.style=I.a.create("style",{text:A()({"div > .sf-dl-current-photo-btn":{display:"none",border:"1px solid #F8F8F8",width:"20px",height:"20px",padding:0,position:"absolute",backgroundColor:"#F8F8F8",top:"73px",left:"90px",zIndex:100,cursor:"pointer"},"div > .sf-dl-current-photo-btn svg path":{fill:"#eb722e"},"div > .sf-dl-current-photo-btn:hover svg path":{fill:"#00B75A"},"div > .sf-dl-current-photo-btn:active":{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"},"div:hover > .sf-dl-current-photo-btn":{display:"block"}})}),document.head.appendChild(L.style))},addCurrentDlBtn:function(e){if("1"!==e.dataset.sfSkip2){e.dataset.sfSkip2="1";var t=e.querySelector("img.photo-layer_img");t&&(t.dataset.fsSrc||t.dataset.nfsSrc||t.src||(t=null)),t||(t=e.querySelector("div.gif[data-gifsrc]")),t&&this.addDlCurrentPhotoBtn(e)}}},j=new(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(s.a)(this,e),this.options=t,this.tooltip=null,this.init()}return Object(u.a)(e,[{key:"init",value:function(){var e=this;this.tooltip=I.a.create("div",{class:"sf-tooltip",style:Object.assign({position:"absolute",display:"none",zIndex:9999,opacity:0,transition:"opacity 0.2s",whiteSpace:"nowrap",fontSize:"12px",color:"#111",fontFamily:"arial, verdana, sans-serif, Lucida Sans"},this.options.style),on:["mouseenter",function(t){e.hide()}]}),document.body.appendChild(this.tooltip)}},{key:"updatePos",value:function(e){var t=l.getPosition(e),n=l.getSize(this.tooltip);this.tooltip.style.top=t.top+this.options.top-n.height+"px";var r=t.left+parseInt(this.options.width/2,10)-parseInt(n.width/2,10),o=document.body.clientWidth+document.body.scrollLeft;o<r+n.width&&(r=o-n.width),this.tooltip.style.left=r+"px"}},{key:"show",value:function(e){var t=this;this.tooltip.style.display="block",setTimeout((function(){t.updatePos(e),t.tooltip.style.opacity=1}))}},{key:"hide",value:function(){this.tooltip.style.opacity=0,this.tooltip.style.display="none"}},{key:"destroy",value:function(){this.tooltip.parentNode&&(this.tooltip.parentNode.removeChild(this.tooltip),this.tooltip=null)}}]),e}())({top:-12,width:16,style:{backgroundColor:"#fff",border:"1px solid #ccc",color:"rgb(48, 48, 48)",fontSize:"12px",padding:"3px"}})}))},61:function(e,t){e.exports=n(66)}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={6:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([137,0]),n()}({137:function(e,t,n){n.r(t);var r=n(0),o=n(11),a=n(17),i=n(28),s=n.n(i),u=n(25),l=n.n(u),c=n(23),d=n.n(c),p=n(13),f=n.n(p),m=n(33),g=n.n(m),h=n(3),v=n.n(h),b=n(2),y=n.n(b),k=n(6),A=n.n(k),w=n(21),x=n.n(w),C=n(12),_=n.n(C),S=n(15),O=n.n(S),M=n(10),E=n(20),D={position:"absolute",top:"38px",right:"14px",background:"white",padding:"4px 9px",color:"#3F3F3F",fontWeight:"bold",textDecoration:"none",border:"1px solid #cecece"};x.a.isSingle()&&Object(a.b)("mailru",(function(e,t){var n=Object(o.a)(t),a=t.preferences,i=a.moduleMailru?1:0,u=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"),c=t.preferences.selectorsConfig,p=r.a.isChrome||r.a.isFirefox||r.a.isGM&&r.a.isTM;r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:i,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return m.changeState(t.state)}"updatePreferences"!==t.action?i&&("downloadMP3Files"===t.action&&(p?k.downloadMP3Files():k.showListOfAudioFiles(!1)),"downloadPlaylist"===t.action&&k.showListOfAudioFiles(!0)):Object.assign(a,t.preferences)})),i&&setTimeout((function(){m.run()}));var m={contextMenu:null,run:function(){i=1,k.injectStyle(),_.a.isAvailable()&&this.mutationMode.enable()},changeState:function(e){i=e,k.rmBtn(),w.rmBtn(),this.mutationMode.stop(),this.hideMenu(),e&&this.run()},hideMenu:function(){m.contextMenu&&(m.contextMenu.hide(),m.contextMenu=null)},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=d()(e),r=document.querySelectorAll("["+n+"]"),o=0;t=r[o];o++)t.removeAttribute(n)}))},wrapAudioOnMouseOver:function(){if(i&&!(this.dataset.sfSkip>0)){this.dataset.sfSkip="1";var e=JSON.parse(this.dataset.sfContext);k.onTrackOver(this,e.type)}},enable:function(){if(this.observer)return this.observer.start();var e=function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=w.getVideoId(t);if(r){var o=s()(t,"b-video__left");if(o){var a=o.querySelector(".b-video__info-time");a&&w.insertBtnInPopup(r,a)}}}},t=function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=w.getVideoId(t);if(r){var o=s()(t,"sp-video__item-page");if(o){var a=o.querySelector(".sp-video__item-page__info__additional");a&&w.insertBtnInPage(r,a,1)}}}},o=function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=s()(t,"sp-video__item-page-new__video-content"),o=r&&r.querySelector(".sp-video__item-page-new__actions"),a=r&&w.getVideoContentVideoId(r);o&&a&&w.insertBtnInPage(a,o,2)}};this.observer=new _.a({queries:[{css:c.mail_ru.trackAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfContext=JSON.stringify({type:0}),v.a.one(t,"mouseenter",m.mutationMode.wrapAudioOnMouseOver)}},{css:c.mail_ru.songAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfContext=JSON.stringify({type:1}),v.a.one(t,"mouseenter",m.mutationMode.wrapAudioOnMouseOver)}},{css:c.mail_ru.leftVideoAdd,is:"added",callback:e},{css:c.mail_ru.leftVideoAdd2,is:"added",callback:e},{css:c.mail_ru.spVideoAdd,is:"added",callback:t},{css:c.mail_ru.spVideoAdd2,is:"added",callback:t},{css:c.mail_ru.newSpVideoAdd,is:"added",callback:o},{css:c.mail_ru.newSpVideoAdd2,is:"added",callback:o},{css:c.mail_ru.images,is:"added",callback:function(e){e.added.forEach((function(e){var t=e.querySelector(".b-photo__container"),o=document.createElement("a");for(var a in D)o.style[a]=D[a];var i=n.svg.getSvg("download","#2665a9","13");i.style.float="left",i.style.margin="2px 5px 0 0";var s=document.createElement("span");s.innerText=r.a.i18n.getMessage("download"),o.appendChild(i),o.appendChild(s),t.appendChild(o),o.addEventListener("click",(function(e){e.preventDefault();var r=t.querySelector(".b-photo__image");if(r&&r.src){var o=A.a.modify(r.src.split("/").pop());n.download(o,r.src)}}))}))}},{css:"."+v.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)v.a.onRemoveListener(t)}}]})}}},h={tooltip:void 0,updatePos:function(e,t){var r=n.getPosition(e),o=n.getSize(this.tooltip);this.tooltip.style.top=r.top+t.top-o.height+"px";var a=r.left+parseInt(t.width/2)-parseInt(o.width/2),i=document.body.clientWidth+document.body.scrollLeft;i<a+o.width&&(a=i-o.width),this.tooltip.style.left=a+"px"},show:function(e,t){var n=this;return void 0!==this.tooltip?this.hide():(this.tooltip=y.a.create("div",{class:"sf-tooltip",style:Object.assign({position:"absolute",display:"none",zIndex:9999,opacity:0,transition:"opacity 0.2s",whiteSpace:"nowrap",fontSize:"12px",color:"#111",fontFamily:"arial, verdana, sans-serif, Lucida Sans"},t.style),on:["mouseenter",function(e){n.hide()}]}),document.body.appendChild(this.tooltip)),this.tooltip.style.display="block",setTimeout((function(){n.updatePos(e,t),n.tooltip.style.opacity=1})),this.tooltip},hide:function(){this.tooltip.style.opacity=0,this.tooltip.style.display="none"}},b=function(){var e=document.title,t=e.indexOf("-");return-1!==t&&(e=e.substr(0,t-1)),A.a.modify(e)},k={className:"sf-audio-panel",lastRow:null,style:void 0,secondsFromDuration:function(e){var t=e.split(":").map((function(e){return parseInt(e)}));return 60*t[0]+t[1]},getTitle:function(e){var t=e.querySelector(".jp__track-fullname"),n=e.querySelector(".jp__track-performer");if(null===n&&null!==(n=e.querySelector(".jp__track-name-text"))&&null!==(n=n.querySelector("a:not(.jp__track-fullname)"))){var r=t;t=n,n=r}if(null!==n?(n=n.textContent.trim())||(n="noname"):n="",n?n+=" - ":n="",null!==t){var o=n+(t=t.textContent);return o.replace(/[\r\n\t\s]+/gim," ").replace(/\s+/g," ").trim()}},getTitle2:function(e){var t=e.querySelector(".title"),n=e.querySelector(".name")||e.querySelector(".b-music__songs__row__body__inner__title__name__link"),r=e.querySelector(".author")||e.querySelector(".b-music__songs__row__body__inner__title__author");return n&&((n=n.textContent).length||(n="noname")),r&&(r=r.textContent),(n&&r?r+" - "+n:t?t.textContent:"unknown").replace(/[\r\n\t\s]+/gim," ").replace(/\s+/g," ").trim()},getMp3UrlList:function(e){var t=1,n=document.querySelectorAll(".b-music__section__content__playlist-songs .song-item");0===n.length&&(n=document.querySelectorAll(".jp__track"),t=0);for(var r,o=[],a={},i=function(e){s=s.then((function(){return new Promise((function(n){k.getUrl(e,t,n)}))})).then((function(n){if(n&&!a[n]){a[n]=1;var r="",i="";if(0===t?(r=e.querySelector(".jp__track-duration-total"),i=k.getTitle(e)):(r=e.querySelector(".time"),i=k.getTitle2(e)),i){var s=A.a.modify(i)+".mp3",u=r&&k.secondsFromDuration(r.textContent);o.push({url:n,filename:s,title:i,duration:u})}}})).catch((function(e){}))},s=Promise.resolve(),u=0;r=n[u];u++)i(r);s.then((function(){e(o)}))},showListOfAudioFiles:function(e){k.getMp3UrlList((function(t){0!==t.length&&(e?n.playlist.popupPlaylist(t,b(),!0):n.playlist.popupFilelist(t))}))},downloadMP3Files:function(){k.getMp3UrlList((function(e){0!==e.length&&n.downloadList.showBeforeDownloadPopup(e,{type:"audio",folderName:b()})}))},onDlBtnOver:function(e){if(!r.a.isSafari){var t=this.dataset.duration;if("mouseenter"===e.type){var o,a=this,i=h.show(a,o={top:-14,width:16,style:{backgroundColor:"#fff",border:"1px solid #ccc",color:"rgb(48, 48, 48)"}});return a.dataset.bitrate?(i.style.padding="2px 5px 3px",void(i.textContent=" ("+a.dataset.size+" ~ "+a.dataset.bitrate+")")):a.dataset.size?(i.style.padding="2px 5px 3px",void(i.textContent=" ("+a.dataset.size+")")):(i.style.padding="2px 2px 0 2px",i.textContent="",i.appendChild(y.a.create("img",{src:"//my9.imgsmail.ru/r/my/preloader_circle_16.gif",height:16,width:16})),void fetch(a.href,{method:"GET",credentials:"include"}).then((function(e){return e.headers.get("content-length")})).then((function(e){if(i.style.padding="2px 5px 3px",!e)return i.textContent=r.a.i18n.getMessage("getFileSizeFailTitle"),void h.updatePos(a,o);var s=n.sizeHuman(e,2);if(t){var u=Math.floor(e/t/125)+" "+r.a.i18n.getMessage("kbps");a.dataset.bitrate=u,a.dataset.size=s,i.textContent=" ("+s+" ~ "+u+")"}else a.dataset.size=s,i.textContent=" ("+s+")";h.updatePos(a,o)})))}h.hide()}},getUrlViaBridge:function(e,t){void 0===k.getUrlViaBridge.index&&(k.getUrlViaBridge.index=0);var n="sf-bridge-item-"+k.getUrlViaBridge.index;k.getUrlViaBridge.index++,e.classList.add(n);var r={className:n};O()([r],(function(e){var t=e.className,n=document.getElementsByClassName(t)[0];n.classList.remove(t);var r=jQuery(n).data();if(r&&r.item)return r.item.url})).then((function(e){return t(e)}))},getUrlById:function(e){return O()([e],'function(id){var url="";var findUrl=function findUrl(items,id){var url="";items.some(function(item){if(item._attr&&item._attr.file===id){url=item._attr.url;return true}});return url};try{url=findUrl(APP.activePage.collection.items,id)}catch(err){}try{if(!url){url=findUrl(APP.player.collection.items,id)}}catch(err){}return url}').then((function(e){if(!e)throw new Error("Url is not found");return/^\/\//.test(e)&&(e="https:"+e),e}))},getUrl:function(e,t,n){var r=e.dataset.url;if(r)return n(r);if(0===t){var o=e.querySelector("a.jp__track-fullname-link");if(null===o)return n();o=o.href;var a=l()(o);return a.file&&a.uid?n("https://music.my.mail.ru/file/"+a.file+".mp3?u="+encodeURIComponent(a.uid)):k.getUrlViaBridge(e,(function(t){t&&(e.dataset.url=t),n(t)}))}if(1===t){var i=e.dataset.file;return k.getUrlById(i).then((function(e){n(e)}),(function(){n("https://music.my.mail.ru/file/"+i+".mp3")}))}},onDlBtnClick:function(e){e.stopPropagation(),n.downloadOnClick(e)},getDlLink:function(e,t,n){return y.a.create("a",{data:{duration:t||""},href:e,style:{position:"relative",display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"},download:A.a.modify(n+".mp3"),on:[["mouseenter",k.onDlBtnOver],["mouseleave",k.onDlBtnOver],["click",this.onDlBtnClick]]})},addDownloadPanelNew:function(e,t){if(Object(M.a)({category:"append",subcategory:"ma",event:"b"}),t){var n=k.getTitle2(e);if(n){var r=e.querySelector(".time"),o=r&&k.secondsFromDuration(r.textContent),a=this.getDlLink(t,o,n),i=y.a.create("div",{class:[k.className,"type-2"],append:[a],on:[["mouseover",function(e){if(u){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(E.showTooltip)(i,{defaultWidth:400,defaultHeight:60},{});Object(E.hideTooltip)(i,{defaultWidth:400,defaultHeight:60},{})}}]]}),s=e.querySelector(".icons");if(s)s.appendChild(i);else{var l=e.querySelector(".b-music__songs__row__body__inner__controls");l&&(a.classList.add(this.className+"-btn"),y.a.create(i,{class:[this.className,"type-3"],style:{background:"none",verticalAlign:"top"},append:[a]}),l.appendChild(i))}}}},addDownloadPanel:function(e,t){var n=e.querySelector(".jp__track-duration-total");if(null!==n&&void 0!==t){var r=k.getTitle(e);if(r){n=k.secondsFromDuration(n.textContent);var o=y.a.create("div",{class:[k.className,"type-0"],append:[this.getDlLink(t,n,r)]}),a=e.querySelector(".jp__track-management");a&&(a.firstChild?a.insertBefore(o,a.firstChild):a.appendChild(o))}}},onTrackOver:function(e,t){0===e.getElementsByClassName(k.className).length&&k.getUrl(e,t,(function(n){1===t?k.addDownloadPanelNew(e,n):k.addDownloadPanel(e,n)}))},injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=y.a.create("style",{text:f()([{selector:"."+this.className,style:{display:"none",left:"22px",backgroundImage:"url("+n.svg.getSrc("download","#168DE2")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"16px"}},{selector:"."+this.className+"-btn",style:{backgroundImage:"url("+n.svg.getSrc("download","#168DE2")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"16px"}},{selector:".jp__track:hover ."+this.className,style:{display:"block",opacity:.5}},{selector:".jp__track:hover ."+this.className+".type-0",style:{display:"inline-block",marginLeft:"-16px",position:"relative",left:"-2px"}},{selector:".jp__track.jp__track-plays ."+this.className,style:{left:"-18px"}},{selector:"."+this.className+":hover",style:{opacity:"1 !important"}},{selector:"."+this.className+".type-2",style:{marginRight:"5px",marginLeft:"5px"}},{selector:".song-item:hover ."+this.className+".type-2",style:{display:"inline-block",opacity:.5}},{selector:".b-music__section__content--songs ."+this.className+".type-3",style:{marginTop:"18px"}},{selector:".b-music__section__content--songs .b-music__songs--inline ."+this.className+".type-3",style:{marginTop:"9px"}}])}),document.head.appendChild(this.style))},rmBtn:function(){k.style&&(k.style.parentNode.removeChild(k.style),k.style=void 0);for(var e,t=document.querySelectorAll("."+k.className),n=0;e=t[n];n++)e.parentNode.removeChild(e)}},w={btnIndex:0,domCache:{},className:"sf-video-btn",prepareLinks:function(e){for(var t,n=[],r=0;t=e[r];r++){var o=t.url,a="FLV";-1!==o.indexOf(".mp4")&&(a="MP4"),-1!==o.indexOf(".mov")&&(a="MOV"),-1!==o.indexOf(".mpg")&&(a="MPG"),t.quality||(t.quality="-?-");var i=t.quality.toUpperCase(),s=["1080P","720P","480P","360P","272P"].indexOf(i);-1!==s&&(i=["1080","720","480","360","272"][s]);var u=a.toLowerCase(),l={href:o,title:t.title,ext:u,format:a,quality:i,forceDownload:!0};n.push(l)}if(0!==n.length)return n},showLinkList:function(e,t,o){if(e||(e=r.a.i18n.getMessage("noLinksFound")),o){if(!m.contextMenu)return;return e.map((function(e){return e.noSize=r.a.isFirefox,e})),void m.contextMenu.update(e)}m.contextMenu&&m.contextMenu.isShow?m.hideMenu():m.contextMenu=n.popupMenu.quickInsert(t,e,"video-links-popup",{parent:s()(t,"b-video__main")})},appendPageBtn:function(e,t,o){if(null===e.querySelector("."+w.className)){Object(M.a)({category:"append",subcategory:"ma",event:"b"});var a=null,i=y.a.create("span",{class:w.className,append:[a=y.a.create("a",{data:{index:t},href:"#",on:["click",function(e){e.preventDefault(),v.a.onRemoveEvent(this,m.hideMenu),w.readDomCache(this.dataset.index,this)}]})]});if(1===o?(a.style.marginLeft="15px",a.textContent=r.a.i18n.getMessage("download")):2===o&&(y.a.create(a,{style:{fontSize:0,lineHeight:0,padding:"6px",boxShadow:"inset 0 0 0 1px #ccc",borderRadius:"3px",display:"inline-block"}}),a.appendChild(n.svg.getSvg("download","#666",18,18))),2===o)e.appendChild(i);else if(1===o){var s=e.lastChild;e.insertBefore(i,s),s=null}}},appendBtn:function(e,t){if(null===e.querySelector("."+w.className)){var n=void 0,o={};e.childNodes.length>1?n=e.childNodes[1]:(n=e.lastChild,o.marginRight="5px");var a=y.a.create("span",{class:e.lastChild.getAttribute("class")+" "+w.className,append:[y.a.create("a",{data:{index:t},text:r.a.i18n.getMessage("download"),href:"#",on:["click",function(e){e.preventDefault(),v.a.onRemoveEvent(this,m.hideMenu),w.readDomCache(this.dataset.index,this)}],style:o})]});e.insertBefore(a,n),n=null}},readDomCache:function(e,t){w.showLinkList(r.a.i18n.getMessage("download"),t);var o=function(){w.showLinkList(void 0,t,1)},i=function(e){if("getRutubeLinks"===e.action){if(!a.showUmmyItem)return o();w.showLinkList(n.popupMenu.prepareLinks.rutube(e.links),t,1)}else"getMailruLinks"===e.action?w.showLinkList(n.popupMenu.prepareLinks.mailru(e.links,e.title),t,1):w.showLinkList(w.prepareLinks(e.links),t,1)},s=w.domCache[parseInt(e)];if(s.links)i(s);else if(s.metadataUrl){var u=s.metadataUrl;/^\/\//.test(u)&&(u="http:"+u),g()({url:u,withCredentials:!0,json:!0,localXHR:!0},(function(e,t){var n;(n=e?null:t.body)&&"object"==typeof n?w.readMeta(n,(function(e){e.links?(s.links=e.links,s.action=e.action,i(s)):o()})):o()}))}else s.url?r.a.sendMessage({action:"getMailruLinks",extVideoId:s.url},(function(e){e.links?(s.title=e.title,s.links=e.links,s.action=e.action,i(s)):o()})):o()},readMeta:function(e,t){var n,o=[];if("UPLOADED"===e.provider){if(n=e.movie?e.movie.title:void 0,!e.videos)return t();e.videos.forEach((function(e){o.push({quality:e.name,url:e.url,title:n})}))}if("ugc"===e.provider){if(n=e.meta?e.meta.title:void 0,!e.videos)return t();e.videos.forEach((function(e){o.push({quality:e.key,url:e.url,title:n})}))}return"pladform"===e.provider?(n=e.meta?e.meta.title:void 0,void r.a.sendMessage({action:"getPladformVideo",extVideoId:{playerId:e.meta.playerId,videoId:e.meta.videoId}},(function(e){if(!e)return t();var r=e.links;if(!r)return t();r.forEach((function(e){"object"==typeof e&&void 0===e.title&&(e.title=n)})),t(e)}))):0===o.length?t():t({links:o})},getFlashVars:function(e){if(e){var t=e.querySelector('param[name="flashvars"]');if(t){var n=t.value,r=l()(n,{params:!0});return r.metadataUrl?{metadataUrl:r.metadataUrl}:void 0}}},matchUrl:function(e){var t=e.match(/\/([^\/]+)\/([^\/]+)\/video\/(.+).html/);return t||(t=e.match(/embed\/([^\/]+)\/([^\/]+)\/(.+).html/)),t},getVideoId:function(e){"OBJECT"!==e.tagName&&(e=e.querySelector('object[name="b-video-player"]'));var t=this.getFlashVars(e);if(t)return t;var n=document.querySelector('[data-type="album-json"]');if(n)try{if((n=JSON.parse(n.textContent)).signVideoUrl)return{metadataUrl:n.signVideoUrl}}catch(e){}var r=this.matchUrl(location.pathname);return r?{metadataUrl:"http://api.video.mail.ru/videos/"+r[1]+"/"+r[2]+"/"+r[3]+".json"}:void 0},getVideoContentVideoId:function(e){var t=null,n=e.querySelector(".sp-video__item-page-new__share__item[data-share-type][data-location]");return n&&(t={url:n.dataset.location}),t},insertBtnInPage:function(e,t,n){e.metadataUrl?(e.metadataUrl=decodeURIComponent(e.metadataUrl),w.domCache[w.btnIndex]={metadataUrl:e.metadataUrl}):w.domCache[w.btnIndex]=Object.assign({},e),w.appendPageBtn(t,w.btnIndex,n),w.btnIndex++},insertBtnInPopup:function(e,t){e.metadataUrl&&(e.metadataUrl=decodeURIComponent(e.metadataUrl),w.domCache[w.btnIndex]={metadataUrl:e.metadataUrl}),w.appendBtn(t,w.btnIndex),w.btnIndex++},rmBtn:function(){for(var e,t=document.querySelectorAll("."+w.className),n=0;e=t[n];n++)e.parentNode.removeChild(e)}}}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={3:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([153,0]),n()}({111:function(e,t,n){var r=n(36),o=n(138);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},138:function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,".VUkNZ--container{display:flex;font-family:inherit;margin-right:10px;font-weight:600;color:#65676b;line-height:1.6;border-radius:4px;padding:5px 4px;cursor:pointer}.VUkNZ--container:hover{background-color:rgba(0,0,0,.05)}.vRyx2--text{margin-left:4px}.BXrR8--circle-container{padding:0;border-radius:100%;width:40px;height:40px;background:#e4e6eb}.BXrR8--circle-container:hover{background-color:#fff}.BXrR8--circle-container .J6uYv--logo{margin:0 auto;max-width:20px}",""]),o.locals={container:"VUkNZ--container",text:"vRyx2--text","circle-container":"BXrR8--circle-container",circleContainer:"BXrR8--circle-container",logo:"J6uYv--logo"},t.default=o},153:function(e,t,n){n.r(t);var o,i=n(0),s=n(11),u=n(17),l=n(28),c=n.n(l),d=n(25),p=n.n(d),f=n(23),m=n.n(f),v=n(13),b=n.n(v),y=n(22),k=n.n(y),A=n(19),w=n.n(A),x=n(3),C=n.n(x),_=n(2),O=n.n(_),M=n(15),E=n.n(M),D=n(6),I=n.n(D),L=n(7),T=n.n(L),j=n(21),P=n.n(j),F=n(12),N=n.n(F),B=n(18),R=n.n(B),z=n(1),q=n.n(z),U=n(111),V=n.n(U),H=n(26),G=n.n(H),W=n(14),Q=n.n(W),Y=Object(s.a)().svg.getSrc("download","#84bd07"),J=q.a.memo((function(e){var t=e.classes,n=void 0===t?[]:t,o=e.isIcon,a=void 0===o||o,s=e.isText,u=void 0===s||s,l=e.isCircle,c=void 0!==l&&l,d=e.onClick,p=G()(V.a);return q.a.createElement("div",{className:Q().apply(void 0,Object(r.a)(n).concat([p.container,c&&p.circleContainer])),onClick:d},a&&q.a.createElement("img",{src:Y,className:p.logo}),u&&q.a.createElement("span",{className:p.text},i.a.i18n.getMessage("download")))})),K=n(5),Z=n(10),X=n(20),$=n(9),ee=n(42),te=T()("facebook_com"),ne=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");P.a.isSingle()&&Object(u.b)("facebook",(function(e,t){var n=Object(s.a)(t),r=t.preferences,u=r.moduleFacebook?1:0,l=t.preferences.selectorsConfig;i.a.onMessage.addListener((function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:u,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return d.changeState(t.state)}"updatePreferences"!==t.action?u&&"updateLinks"===t.action&&(d.changeState(0),d.changeState(1)):Object.assign(r,t.preferences)})),u&&setTimeout((function(){d.run()}));var d={contextMenu:null,className:"savefrom_fb_download",isMutation:!1,run:function(){if(u=1,x.addStyle(),A.injectStyle(),N.a.isAvailable())return this.isMutation=!0,this.initEmbedDownloader(),void this.mutationMode.enable()},changeState:function(e){d.hideMenu(),u=e,f.disable(),A.rmCurrentPhotoBtn(),A.rmDataAttrs(),x.rmBtn(),y.rmBtn(),d.mutationMode.stop(),e&&d.run()},initEmbedDownloader:function(){n.addStyleRules("."+n.embedDownloader.linkClass+" img",{opacity:".5"}),n.embedDownloader.init()},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=m()(e),r=document.querySelectorAll("["+n+"]"),o=0;t=r[o];o++)t.removeAttribute(n)}))},wrapVideoGetLinks:function(e){switch(e.tagName){case"EMBED":y.getLinksFromEmbed(e,(function(e){y.appendLinks(e&&e.links)}));break;case"VIDEO":y.getLinksFromVideo(e,(function(e){y.appendLinks(e&&e.links)}))}},wrapVideoFeedOnLinkHover:function(){u&&x.onLinkHover.apply(this)},wrapPhotoOnHover:function(e){u&&A.addCurrentDlBtn(this)},wrapExternalMediaMouseEnter:function(){u&&(this.dataset[f.linkDataAttr]?clearTimeout(f.timer):f.handle(this)?(f.lastLink&&f.lastLink!==this&&f.removeBtn(f.lastLink),n.embedDownloader.hidePanel(),f.lastLink=this):(C.a.off(this,"mouseenter",d.mutationMode.wrapExternalMediaMouseEnter),C.a.off(this,"mouseleave",d.mutationMode.wrapExternalMediaMouseLeave)))},wrapExternalMediaMouseLeave:function(){if(u){var e=this;e.dataset[f.linkDataAttr]&&(clearTimeout(f.timer),f.timer=setTimeout((function(){f.removeBtn(e)}),1500))}},wrapExternalMedia:function(e){C.a.on(e,"mouseenter",d.mutationMode.wrapExternalMediaMouseEnter),C.a.on(e,"mouseleave",d.mutationMode.wrapExternalMediaMouseLeave)},enable:function(){var e=this;if(this.observer)return this.observer.start();var t=function(e,t){if(!(window.location.href.includes("/watch?")&&e.ariaLabel||(e.dataset.sfReady&&window.location.href.includes("/watch?")&&!e.dataset.waRep&&e.removeAttribute("data-sf-ready"),e.dataset.sfReady)))return e.dataset.sfReady="1",t(e)};this.observer=new N.a({queries:[{css:l.facebook.homePage,is:"added",callback:function(e){var n=e.added,r=/\/watch/.test(location.href);n.forEach((function(e){return t(e,(function(){return r?x.addButtonForWatchPage(e):e.closest('[role="article"]')?x.addButtonForFeedPage(e):void 0}))}))}},{css:l.facebook.watchPage,is:"added",callback:function(e){e.added.forEach((function(e){return t(e,(function(){x.addHoverButtonForArticleVideo(e)}))}))}},{css:l.facebook.feedBtn,is:"added",callback:function(e){e.added.forEach((function(e){return t(e,(function(){if(!e.closest('a[aria-label*="Reels"]'))return A.addButtonForArticleImage(e)}))}))}},{css:l.facebook.videoDetail,is:"added",callback:function(e){e.added.forEach((function(e){return t(e,(function(){x.addButtonForShowPageVideo(e)}))}))}},{css:l.facebook.hoverReelVideo,is:"added",callback:function(e){e.added.forEach((function(e){return t(e,(function(){return x.addButtonForReelVideo(e)}))}))}},{css:l.facebook.hoverReelVideoDetail,is:"added",callback:function(e){e.added.forEach((function(e){return t(e,(function(){var t=v.createButton((function(){var n=y.getVideoIdFromLink(e.href);n&&y.showDownloadMenuByVideoId(t,n)}),{preset:"hover"});e.appendChild(t)}))}))}},{css:l.facebook.imagesDetail,is:"added",callback:function(e){e.added.forEach((function(e){return t(e,(function(){A.addButtonForShowPageImage(e)}))}))}},{css:l.facebook.videoSummary,is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++){var o=!1;k()(n,"#fbxPhotoContentContainer .videoStage "+n.tagName)&&(o=!0),o?e.wrapVideoGetLinks(n):C.a.one(n,"mouseenter",e.wrapVideoFeedOnLinkHover)}}},{css:l.facebook.photoSummary,is:"added",callback:function(t){for(var r,o=0;r=t.added[o];o++)if(d.hideMenu(),!(r.dataset.sfSkip>0)){r.dataset.sfSkip="1";var a=n.getParentByClass(r,"stageWrapper");C.a.one(a,"mouseenter",e.wrapPhotoOnHover)}}},{css:l.facebook.externalMediaSummary,is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++)n.sfSkip>0||(n.sfSkip="1",e.wrapExternalMedia(n))}},{css:"."+C.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)C.a.onRemoveListener(t)}}]})}},hideMenu:function(){d.contextMenu&&(d.contextMenu.hide(),d.contextMenu=null)}},f={linkDataAttr:"savefromEd",timer:0,lastLink:null,re:[/https?:\/\/(?:[a-z]+\.)?youtube\.com\/(?:#!?\/)?watch\?[^\s\"\'\<\>]*v=([\w\-]+)/i,/https?:\/\/(?:[a-z0-9]+\.)?youtube\.com\/(?:embed|v)\/([\w\-]+)/i,/https?:\/\/(?:[a-z]+\.)?youtu\.be\/([\w\-]+)/i,/https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/(\d+)(?:\?|$)/i],thumbnail:{youtube:{re:[/ytimg\.com(?:\/|%2F)vi(?:\/|%2F)([\w\-]+)(?:\/|%2F)/i],url:"http://www.youtube.com/watch?v={vid}"}},disable:function(){var e=n.embedDownloader.panel;e&&(e.style.display="none")},removeBtn:function(e){if(e&&"object"==typeof e){var t=e.querySelector("."+d.className);t&&(t.parentNode.removeAttribute(m()(f.linkDataAttr)),t.parentNode.removeChild(t)),e.removeAttribute(m()(f.linkDataAttr)),e==this.lastLink&&(this.lastLink=null)}},checkUrl:function(e,t){if(!t&&e.search(/https?:\/\/([\w\-]+\.)?facebook\.com\/l\.php/i)>-1)return this.checkUrl(decodeURIComponent(e),!0);for(var n=0,r=this.re.length;n<r;n++){var o=e.match(this.re[n]);if(o&&o.length>0)return o[0]}},handle:function(e){var t=e.querySelector("img");if(t){var r=t.parentNode;if(t.src&&"relative"==n.getStyle(r,"position")){var o=e.getAttribute("ajaxify");if(o&&o.search(/\/flash\/expand_inline/i)>-1){var a=this.getThumbnailUrl(t.src);if(a)return this.createButton(a,r,e,{display:"block",position:"absolute",bottom:"3px",right:"3px",zIndex:9999,margin:0,width:"16px",height:"16px"},{display:"block"})}else if(this.checkUrl(e.href))return this.createButton(e.href,r,e,{display:"block",position:"absolute",bottom:"3px",right:"3px",zIndex:9999,margin:0,width:"16px",height:"16px"},{display:"block"})}return!1}return this.createButton(e.href,e,e)},getThumbnailUrl:function(e){for(var t in this.thumbnail)for(var r=0;r<this.thumbnail[t].re.length;r++){var o=n.getMatchFirst(e,this.thumbnail[t].re[r]);if(o)return this.thumbnail[t].url.replace(/\{vid\}/gi,o)}return""},createButton:function(e,t,r,o,a){if(!(e=this.checkUrl(e)))return!1;var s=document.createElement("a");s.className=d.className,s.href="http://savefrom.net/?url="+encodeURIComponent(e),s.setAttribute(n.embedDownloader.dataAttr,e),s.title=i.a.i18n.getMessage("download"),n.setStyle(s,{marginLeft:"7px",verticalAlign:"middle"}),o&&n.setStyle(s,o);var u=document.createElement("img");return u.className="icon",u.src=n.svg.getSrc("download","#a2db16"),n.setStyle(u,{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",cursor:"pointer"}),a&&n.setStyle(u,a),s.appendChild(u),r.dataset[this.linkDataAttr]=1,t.appendChild(s),!0}},v={createButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={default:{props:{},style:{}},circle:{props:{isText:!1,isCircle:!0},style:{}},withoutText:{props:{isText:!1},style:{}},hover:{className:"sf-hover-container",props:{isText:!1},style:{position:"absolute",top:"8px",left:"8px"}}},r=t&&t.preset?t.preset:"default",o=n[r]?n[r]:n.default,a=o.props,i=o.style;t&&t.style&&(i=Object.assign(i,t.style));var s=O.a.create("div",{class:o.className||"sf-download-container",style:i});return R()(Object(K.createElement)(J,S(S({},a),{},{onClick:function(t){t.preventDefault(),t.stopPropagation(),e(t)}})),s),s}},y={getLinksFromEmbed:function(e,t){if(!e)return t(null);var n=e.getAttribute("flashvars");if(null===n)return t(null);var r=p()(n).params;if(!r)return t(null);var o=null;try{o=JSON.parse(r).video_data}catch(e){}if(!o)return t(null);o.progressive&&(o=o.progressive);var a={},i={sd_src:"SD",hd_src:"HD"};Array.isArray(o)||(o=[o]);for(var s,u=0;s=o[u];u++)["sd_src","hd_src"].forEach((function(e){s[e]&&(a[s[e]]=i[e])}));return t({links:a})},getVideoIdFromLink:function(e){var t=-1!==e.indexOf("&")?e.indexOf("&"):e.length,n=e.match(/videos\/(\d+)/);return n||(n=e.match(/pcb\.\w+\/(.*?)\?/)),!n&&e.includes("/watch/?")?n=e.substring(34,t):!n&&e.includes("/watch?")?n=e.substring(33,50):(!n&&e.includes("permalink&v=")&&(n=e.match(/permalink&v=(\d+)/)),!n&&e.includes("/reel/")&&(n=e.match(/reel\/(\d+)/)),n&&n[1])},requestLocalVideoLinks:function(e){return new Promise((function(e,t){n.bridge({func:'function(cb){var err=null;var token=null;try{token=window.require("DTSGInitialData").token}catch(_err){err=_err.message}cb([err,token])}',cb:function(n){var r=null,o=null;!n||n[0]?r=new Error("Get token timeout"):o=n[1],r?t(r):e(o)}})})).then((function(t){var n="https://www.facebook.com/video/tahoe/async/".concat(e,"/?").concat(ee.stringify({payloadtype:"primary"})),r=ee.stringify({__a:1,fb_dtsg:t});return E()([n,r],'function(url,data){return fetch(url,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:data}).then(function(response){return response.text()})}')})).then((function(t){return new Promise((function(n,r){i.a.sendMessage({action:"getFacebookLinksFromData",extVideoId:e,data:t},(function(e){e&&e.links?n(e):r(new Error("Get links from data error"))}))}))})).catch((function(e){throw te.error("get local links error",e),Object(Z.a)({category:"mistake",subcategory:"fa",event:"l"}),e}))},requestBgVideoLinks:function(e){return new Promise((function(t,n){i.a.sendMessage({action:"getFacebookLinks",extVideoId:e},(function(e){e&&e.links?t(e):n(new Error("Get links error"))}))})).catch((function(e){throw te.error("get links error",e),e}))},requestVideoLinksById:function(e){return Promise.resolve().then((function(){return y.requestLocalVideoLinks(e)})).catch((function(){return y.requestBgVideoLinks(e)}))},requestVideoLinks:function(e,t){return y.requestVideoLinksById(e).then((function(e){t(e.links,e.title)}),(function(e){t()}))},getLinksFromVideo:function(e,t){if(!e)return t(null);var r,o={},a={},i=null;if(!i){var s=w()(e,"div[data-ft]");if(s&&k()(s,".userContentWrapper[data-ft] "+s.tagName)&&(s=w()(s,".userContentWrapper[data-ft]")),s&&(Array.from(s.querySelectorAll("a[href]")).some((function(e){var t=/\/videos\/(\d+)/.exec(e.href);if(t)return i=t[1],o.popup_1=!0,!0})),!i)){var u=null;try{u=JSON.parse(s.dataset.ft)}catch(e){}if(u){var l=u.mf_story_key,d=u.story_attachment_style;l&&"video_inline"===d&&(i=l,o.popup_1=!0)}}}if(!i&&w()(e,"div._5-yb")){var p=/\/videos\/(\d+)/.exec(location.href);if(p)return t({links:{id:p[1]},popup_1:!0})}if(!i){var f=w()(e,".uiStreamStory[data-story-id]"),m=/:(\d+)$/.exec(f&&f.dataset.storyId);(m=m&&m[1])&&(i=m)}if(!i&&(r=c()(e,"fbUserContent"))){var g=r.querySelector("a[data-video-id]");g&&(A=g&&g.dataset.videoId)&&(i=A)}if(!i&&(r=w()(e,".userContentWrapper"))){var h=r.querySelector('div[id^="feed_subtitle_"] a[data-video-channel-id]');if(h){var v=/\/videos\/(\d+)/.exec(h.href);(A=v&&v[1])&&(i=A)}else{var b=r.querySelectorAll('a.profileLink, a[rel="theater"], #fbPhotoSnowliftTimestamp > a[href]'),A=null;[].slice.call(b).some((function(e){var t=/\/videos\/(\d+)/.exec(e.href);return A=t&&t[1]})),A&&(i=A)}}if(!i){var x=!1,C=!1,_=document.getElementById("stream_pagelet"),S=_&&_.previousElementSibling;if(S&&S.contains(e)&&(x=!0),!x){var O=document.querySelector(".uiStreamStory"),M=O&&O.parentNode;(M=M&&M.parentNode)&&M.contains(e)&&(C=!0)}(x||C)&&(A=y.getVideoIdFromUrl())&&(i=A)}if(!i&&w()(e,"#pagelet_group_permalink")&&(v=/video_id:"?([^,"]+)/.exec(document.body.innerHTML),(A=v&&v[1])&&(i=A)),i&&(a.id=i),e.src&&/^https?:/.test(e.src)){var E=n.getFileExtension(e.src,"mp4");a[e.src]=E.toUpperCase()}var D=e.querySelectorAll("source");if(D&&D.length>0)for(var I=0;I<D.length;I++)E=n.getFileExtension(D[I].src,"mp4"),a[D[I].src]=E.toUpperCase();return Object.keys(a).length?(o.links=a,t(o)):t(null)},getVideoIdFromUrl:function(){var e=null;return n.embedDownloader.hostings.facebook.re.some((function(t){var n=t.exec(location.href);if(n)return e=n[1],!0})),e||(e=(e=document.location.href.match(/(\d+).$/))&&e[1]?e[1]:null),e},getFileName:function(e){var t=n.getFileName(e);if(t)return t;var r=n.dateToObj();return"facebook_"+r.year+"-"+r.month+"-"+r.day+"_"+r.hour+"-"+r.min+"."+n.getFileExtension(e,"mp4")},prepareLinks:function(e,t){var n=[];for(var r in e){var o=this.getFileName(r),a=o.lastIndexOf("."),s=o.substr(a+1),u={href:r,title:o=t||o.substr(0,a),format:s.toUpperCase(),quality:e[r],forceDownload:!0};n.push(u)}return 0===n.length&&(n=i.a.i18n.getMessage("noLinksFound")),n},appendLinks:function(e){if(e){var t=document.getElementById("fbPhotoPageMediaInfo");if(null!==t){var r=document.querySelector("h2.uiHeaderTitle");if(r&&(r=r.textContent),t&&!t.querySelector("."+d.className)){var o=document.createElement("div");o.className=d.className;var a=O.a.create("div",{title:i.a.i18n.getMessage("download"),style:{display:"inline-block",width:"16px",height:"16px",backgroundImage:"url("+n.svg.getSrc("download","#a2db16")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center center",verticalAlign:"middle",cursor:"pointer"}});o.appendChild(a);var s=null;a.addEventListener("click",(function(){if(d.contextMenu&&d.contextMenu.isShow)d.hideMenu();else{var t=d.contextMenu=n.popupMenu.quickInsert(this,i.a.i18n.getMessage("download")+" ...",d.className+"_popup");if(s)t.update(s);else if(e.id){var o=e.id;delete e.id,y.requestVideoLinks(o,(function(r,o){s=r?n.popupMenu.prepareLinks.facebook(r,o):y.prepareLinks(e),t.update(s)}))}else s=y.prepareLinks(e,r),t.update(s)}})),t.appendChild(o),t=null,o=null,a=null}}}},rmBtn:function(){for(var e,t=document.querySelectorAll("."+d.className),n=0;e=t[n];n++)e.parentNode.removeChild(e)},showDownloadMenuByVideoId:function(e,r){if(d.contextMenu&&d.contextMenu.isShow)d.hideMenu();else{var o=d.contextMenu=n.popupMenu.quickInsert(e,i.a.i18n.getMessage("download")+" ...",d.className+"_popup");$.a.createLinkExtractor("fb-video").extractLinks({mediaId:r,initData:t}).then((function(e){return o.update(function(e){return JSON.parse(JSON.stringify(e)).map((function(e){return e.href=e.url,e.title=e.filename,delete e.url,delete e.filename,e}))}(e))}))}}},A={style:null,getFilenameFromUrl:function(e){return n.getMatchFirst(e,/\/([^\/]+\.[a-z0-9]{3,4})(?:\?|$)/i)},getPhotoIdFromUrl:function(){var e=null,t=p()(location.href);return t.fbid&&(e=t.fbid),e},prepPhotoUrl:function(e){return e&&(/[?&]dl=1/.test(e)||(e+=(/\?/.test(e)?"&":"?")+"dl=1")),e},rmCurrentPhotoBtn:function(e){for(var t,n=void 0,r=document.querySelectorAll(".sf-dl-current-photo-btn"),o=0;t=r[o];o++)e&&e.contains(t)?n=t:t.parentNode.removeChild(t);return n},injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=O.a.create("style",{text:b()({"div > .sf-dl-current-photo-btn":{display:"none",position:"absolute",top:"10px",left:"10px",width:"28px",height:"24px",border:0,zIndex:100,cursor:"pointer",backgroundColor:"#000",padding:0,borderRadius:"2px",opacity:.4,transition:"opacity 100ms linear",lineHeight:0},"div > .sf-dl-current-photo-btn svg":{margin:"4px"},"div > .sf-dl-current-photo-btn:hover":{opacity:.8},"div > .sf-dl-current-photo-btn:hover svg path":{fill:"#00B75A"},"body:not(.fullScreen) div:hover > .sf-dl-current-photo-btn":{display:"block"}})}),document.head.appendChild(this.style))},getPhotoUrlFromCtr:function(e){var t=[],n=e.querySelector("img.spotlight")||e.querySelector("img.fbPhotoImage");return n&&t.push(n.src),t},getVideoUrlFromPhotoCtr:function(e){var t=null,n=e.querySelector(".stage .videoStage video");if(n){var r=w()(n,".fbPhotoSnowliftPopup");if(r){var o=r.querySelector('div[id^="feed_subtitle_"] a[data-video-channel-id]');if(o){var a=/\/videos\/(\d+)/.exec(o.href);a&&(t=a[1])}}}return t},getLinksFromPhotoCtr:function(e){return k()(e,".stageWrapper.showVideo")?Promise.resolve().then((function(){var t=y.getVideoIdFromUrl();if(t||(t=A.getVideoUrlFromPhotoCtr(e)),t)return y.requestVideoLinksById(t)})).then((function(e){return n.popupMenu.prepareLinks.facebook(e.links,e.title)})):Promise.resolve().then((function(){var e=A.getPhotoIdFromUrl();if(e)return new Promise((function(t,n){i.a.sendMessage({action:"getFacebookPhotoUrl",fbid:e},(function(e){e&&e.length?t(e):n(new Error("getFacebookPhotoUrl can't get url"))}))}));throw new Error("Can't get photo id from url")})).catch((function(t){return A.getPhotoUrlFromCtr(e)})).then((function(e){if(!e||!e.length)throw new Error("Photo url not found");return e.map((function(e){var t=A.prepPhotoUrl(e),n=I.a.modify(A.getFilenameFromUrl(t)),r=/(.+)\.([^.]+)$/.exec(n),o="jpg",a=n;return r&&(o=r[1],a=r[2]),{href:t,title:a,quality:i.a.i18n.getMessage("download"),format:" ",ext:o,isBlank:!0}}))}))},addDlCurrentPhotoBtn:function(e){if(!this.rmCurrentPhotoBtn(e)){var t=O.a.create("a",{class:"sf-dl-current-photo-btn",href:"#",title:i.a.i18n.getMessage("download"),append:[n.svg.getSvg("download","#FFF",16)],on:[["click",function(t){if(t.stopPropagation(),t.preventDefault(),d.contextMenu&&d.contextMenu.isShow)d.hideMenu();else{var r=function e(t){18!==t.keyCode&&17!==t.keyCode&&(o.hide(),document.removeEventListener("keydown",e))},o=d.contextMenu=n.popupMenu.quickInsert(this,i.a.i18n.getMessage("download")+" ...","photoDlMenu",{parent:e,onShow:function(){d.isMutation||document.addEventListener("keydown",r)},onHide:function(){d.isMutation||document.removeEventListener("keydown",r)}});A.getLinksFromPhotoCtr(e).then((function(e){e.forEach((function(e){e.func=function(t){t.preventDefault(),n.download(null,e.href),o.hide()}})),o.update(e)})).catch((function(e){te.debug("Get photo links error",e),o.update(i.a.i18n.getMessage("noLinksFound"))}))}}],["mouseover",function(e){if(ne){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(X.showTooltip)(t,{defaultWidth:400,defaultHeight:60},{});Object(X.hideTooltip)(t,{defaultWidth:400,defaultHeight:60})}}]]});e.appendChild(t)}},addButtonForArticleImage:function(e){return Object(a.a)(g.a.mark((function r(){var o,a,i,s,u;return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.closest("a")){r.next=3;break}return r.abrupt("return");case 3:return r.next=5,$.a.createLinkExtractor("fb-photo").extractLinks({element:e,initData:t});case 5:a=r.sent,i=Object(h.a)(a,1),s=i[0],u=O.a.create("a",{class:"sf-hover-container",href:s.url,download:s.filename,style:{position:"absolute",top:"8px",left:"8px"},on:[["click",function(e){e.stopPropagation(),n.downloadOnClick(e)}],["mouseover",function(e){if(ne){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(X.showTooltip)(u,{defaultWidth:400,defaultHeight:60},{});Object(X.hideTooltip)(u,{defaultWidth:400,defaultHeight:60})}}]]}),Object(Z.a)({category:"append",subcategory:"fa",event:"b"}),R()(Object(K.createElement)(J,{isText:!1}),u),o.appendChild(u);case 10:case"end":return r.stop()}}),r)})))()},addButtonForShowPageImage:function(e){return Object(a.a)(g.a.mark((function r(){var o,a,i,s,u;return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.closest('div:not([data-visualcompletion="media-vc-image"])').parentElement.parentElement){r.next=3;break}return r.abrupt("return");case 3:return r.next=5,$.a.createLinkExtractor("fb-photo").extractLinks({element:e,initData:t});case 5:a=r.sent,i=Object(h.a)(a,1),s=i[0],u=O.a.create("a",{style:{position:"absolute",zIndex:9999,margin:"15px"},href:s.url,download:s.filename,on:[["click",function(e){e.stopPropagation(),n.downloadOnClick(e)}],["mouseover",function(e){if(ne){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(X.showTooltip)(u,{defaultWidth:400,defaultHeight:60},{});Object(X.hideTooltip)(u,{defaultWidth:400,defaultHeight:60})}}]]}),Object(Z.a)({category:"append",subcategory:"fa",event:"b"}),R()(Object(K.createElement)(J,{isText:!1,isCircle:!0}),u),o.prepend(u);case 10:case"end":return r.stop()}}),r)})))()},addCurrentDlBtn:function(e){e.dataset.sfSkip>0||(e.dataset.sfSkip="1",this.addDlCurrentPhotoBtn(e))},rmDataAttrs:function(){for(var e,t=m()("sfSkip"),n=document.querySelectorAll("*["+t+"]"),r=0;e=n[r];r++)e.removeAttribute(t)}},x={style:null,addStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=O.a.create("style",{class:"sfFeedStyle",text:b()([{selector:"."+d.className+"-feed.sf-feed",style:{display:"none",width:"20px",height:"20px",padding:0,position:"absolute",background:"url("+n.svg.getSrc("download","#a2db16")+") center no-repeat transparent",backgroundSize:"16px",top:"5px",left:"5px",zIndex:1,cursor:"pointer"}},{selector:'div[role="dialog"] .'+d.className+"-feed.sf-feed",style:{top:"40px"}},{selector:"body:not(.fullScreen) div:hover > ."+d.className+"-feed.sf-feed",style:{display:"block"}},{selector:"."+d.className+"-feed.sf-feed:active",style:{outline:0}},{selector:".sf-hover-container",style:{display:"none"}},{selector:'div[role="presentation"]:hover .sf-hover-container, a[role="link"]:hover .sf-hover-container, div[style*="bottom:calc"]:hover .sf-hover-container',style:{display:"block"}}])}),document.head.appendChild(this.style))},onDlBtnClick:function(e){if(e.preventDefault(),e.stopPropagation(),i.a.sendMessage({action:"checkAndOpenProLanding"}),d.contextMenu&&d.contextMenu.isShow)d.hideMenu();else{try{var t=JSON.parse(this.dataset.sfDlLinks)}catch(e){return}var r=d.contextMenu=n.popupMenu.quickInsert(this,i.a.i18n.getMessage("download")+" ...",d.className+"_popup");if(t.id){var o=t.id;delete t.id,y.requestVideoLinks(o,(function(e,o){var a;a=e?n.popupMenu.prepareLinks.facebook(e,o):y.prepareLinks(t),r.update(a)}))}else{var a=y.prepareLinks(t);r.update(a)}}},addDownloadBtn:function(e,t){var n=e.querySelector("."+d.className+"-feed");n&&n.parentNode.removeChild(n),e.appendChild(O.a.create("a",{data:{sfDlLinks:JSON.stringify(t)},title:i.a.i18n.getMessage("download"),class:[d.className+"-feed","sf-feed"],href:"#",on:["click",x.onDlBtnClick]}))},addButtonForWatchPage:function(e){var t=e.closest("._6x84"),n=/\/live/.test(location.href);t||(t=e.closest(".x1n6yrxt, .xvl6max")),!t&&n&&(t=e.closest(".x1282nqq").parentNode);var r=t.querySelector('a[href*="/videos/"]');if(r||(r=t.querySelector('a[href*="/watch/?"]')),r||(r={href:window.location.href}),r&&r.href){var a=y.getVideoIdFromLink(r.href);if(a){var i=v.createButton((function(){y.showDownloadMenuByVideoId(i,a)}));Object(Z.a)({category:"append",subcategory:"fa",event:"b"});var s=null===t.querySelector('[aria-label="Like"]')?t.querySelector(".x1u2d2a2"):t.querySelector('[aria-label="Like"]').parentNode;r.href===window.location.href?(e.dataset.waRep="1",setTimeout((function(){s.querySelector(".sf-download-container")&&o!==r.href&&s.querySelector(".sf-download-container").remove(),s.prepend(i),o=r.href}),1500)):(s.querySelector(".sf-download-container")&&s.querySelector(".sf-download-container").remove(),s.prepend(i))}}},addButtonForFeedPage:function(e){var t=e.closest('[role="article"]'),n=t.querySelector('a[href*="/watch/?v"]');if(n||(n=t.querySelector('a[href*="/videos/"]')),n){var r=n.href,o=y.getVideoIdFromLink(r);if(o){var a=null===t.querySelector('[aria-label="Like"]')?t.querySelector(".x8182xy").firstChild:t.querySelector('[aria-label="Like"]').parentNode;if(a){var i=v.createButton((function(){y.showDownloadMenuByVideoId(i,o)}),{preset:"withoutText",style:{alignItems:"center",display:"flex"}});Object(Z.a)({category:"append",subcategory:"fa",event:"b"}),a.parentElement.insertBefore(i,a)}}}},addButtonForShowPageVideo:function(e){var t=v.createButton((function(e){var t=y.getVideoIdFromLink(location.href);t&&y.showDownloadMenuByVideoId(e.target,t)}),{preset:"circle",style:{position:"absolute",top:"8px",left:"114px"}});Object(Z.a)({category:"append",subcategory:"fa",event:"b"}),e.appendChild(t)},addButtonForReelVideo:function(e){var t={position:"absolute",top:"80px",left:"16px",zIndex:10},n=e.querySelector("div[data-video-id]");if(n||(n=e,t=S(S({},t),{},{top:"16px"})),n){var r=v.createButton((function(e){var t=n.getAttribute("data-video-id");t||(t=y.getVideoIdFromLink(n.getAttribute("href"))),t&&y.showDownloadMenuByVideoId(e.target,t)}),{preset:"circle",style:t});Object(Z.a)({category:"append",subcategory:"fa",event:"b"}),e.appendChild(r)}},addHoverButtonForArticleVideo:function(e){var t=y.getVideoIdFromLink(e.href);if(t){var n=e.closest('[role="article"], ._6x84');if(n){var r=n.querySelector('div[role="presentation"]');if(r||(r=e.parentNode)){var o=v.createButton((function(e){y.showDownloadMenuByVideoId(e.target,t)}),{preset:"hover"});r.appendChild(o)}}}},onLinkHover:function(){var e=this;if(!(this.dataset.hasSfFeedBtn>1)){this.dataset.hasSfFeedBtn="1";var t=this;return"VIDEO"===t.tagName&&(t=t.querySelector("embed")||this),new Promise((function(e){"EMBED"===t.tagName?y.getLinksFromEmbed(t,e):"VIDEO"===t.tagName&&y.getLinksFromVideo(t,e)})).catch((function(e){return te("getLinks error",e),null})).then((function(t){var n=t&&t.links;if(n)if(t&&t.popup_1)x.addDownloadBtn(e.parentNode,n);else if(k()(e,".uiStreamStory "+e.tagName)||k()(e,".fbPhotoSnowliftContainer "+e.tagName))w()(e,".fbPhotoSnowliftPopup .stageWrapper")||x.addDownloadBtn(e.parentNode,n);else{var r=document.getElementById("pagelet_timeline_main_column")||document.getElementById("stream_pagelet")||document.getElementById("mainContainer");if(r&&r.contains(e))x.addDownloadBtn(e.parentNode,n);else{var o=document.getElementById("stream_pagelet"),a=o&&o.previousElementSibling;if(a&&a.contains(e))x.addDownloadBtn(e.parentNode,n);else{var i=document.querySelector(".uiStreamStory"),s=i&&i.parentNode;(s=s&&s.parentNode)&&s.contains(e)&&x.addDownloadBtn(e.parentNode,n)}}}else e.dataset.hasSfFeedBtn=0}))}},rmBtn:function(){var e=[m()("hasSfFeedBtn"),m()("sfReady")],t=e.map((function(e){return"[".concat(e,"]")})).join(",");document.querySelectorAll(t).forEach((function(t){e.forEach((function(e){return t.removeAttribute(e)}))}));var n=[".sf-hover-container",".sf-download-container","."+d.className+"-feed"].join(",");document.querySelectorAll(n).forEach((function(e){e.parentNode.removeChild(e)}))}}}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={12:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([139,0]),n()}({139:function(e,t,n){n.r(t);var r=n(0),o=n(11),a=n(17),i=n(27),s=n.n(i),u=n(3),l=n.n(u),c=n(2),d=n.n(c),p=n(6),f=n.n(p),m=n(21),g=n.n(m),h=n(12),v=n.n(h),b=n(35),y=n.n(b),k=n(15),A=n.n(k),w=n(18),x=n.n(w),C=n(5),_=n(31);g.a.isSingle()&&Object(a.b)("savefrom",(function(e,t){var n=Object(o.a)(t),a=t.preferences,i=t.preferences.selectorsConfig;r.a.onMessage.addListener((function(e,t,n){"updatePreferences"!==e.action||Object.assign(a,e.preferences)})),setTimeout((function(){return s.run()}));var s={name:e,scriptId:"savefrom__ext_script",dataAttr:"data-extension-disabled",attrObservers:[],run:function(){if(s.setExtParams(),location.href.search(/\/(update-helper|userjs-setup)\.php/i)>-1){var e=document.getElementById("js-not-remind");e&&e.addEventListener("click",(function(e){0===e.button&&r.a.sendMessage({action:"hideUserjsMigrationInfo"})}))}else v.a.isAvailable()&&this.mutationMode.enable()},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop()},enable:function(){if(this.observer)return this.observer.start();this.observer=new v.a({queries:[{css:i.savefrom.formAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)s.waitFormId(t),s.mutationMode.stop()}},{css:i.savefrom.muxer,is:"added",callback:function(e){e.added.forEach((function(e){e.removeAttribute("download"),e.dataset.watched||(e.dataset.watched="1",e.addEventListener("click",(function(t){t.preventDefault();var n=JSON.parse(e.dataset.sources);x()(Object(C.createElement)(_.a,n),"sf-muxer-parent")})))}))}}]})}},waitFormId:function(e){var t=this,n=new y.a({attrs:[{name:"id",callback:function(n){"sf_form"===n.value&&(s.bindForm(e),t.attrObservers.splice(0).forEach((function(e){return e.stop()})))}}],target:e});this.attrObservers.push(n)},bindForm:function(e){e.addEventListener("submit",(function(t){var o=e.sf_url.value;if(o&&"1"!=e.getAttribute(s.dataAttr)){var a={getVKLinks:[/^https?:\/\/(?:[a-z]+\.)?(?:vk\.com|vkontakte\.ru)\/(video-?\d+_-?\d+)/i,/^https?:\/\/(?:[a-z]+\.)?(?:vk\.com|vkontakte\.ru)\/video_ext.php\?(.*oid=-?\d+.*)$/i,/^https?:\/\/(?:[a-z]+\.)?(?:vk\.com|vkontakte\.ru)\/[\w\-\.]+\?.*z=(video-?\d+_-?\d+)/i],getYoutubeLinks:[/^https?:\/\/(?:[a-z]+\.)?youtube\.com\/(?:#!?\/)?watch\?.*v=([\w\-]+)/i,/^https?:\/\/(?:[a-z0-9]+\.)?youtube\.com\/(?:embed|v)\/([\w\-]+)/i,/^https?:\/\/(?:[a-z]+\.)?youtu\.be\/([\w\-]+)/i],getVimeoLinks:[/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/(?:\w+\#)?(\d+)/i,/^https?:\/\/player\.vimeo\.com\/video\/(\d+)/i,/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/channels\/(?:[^\/]+)\/(\d+)$/i,/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/[^\/]+\/review\/(\d+)\/(?:\d+)/i],getDailymotionLinks:[/^http:\/\/(?:www\.)?dai\.ly\/([a-z0-9]+)_?/i,/^https?:\/\/(?:[\w]+\.)?dailymotion\.com(?:\/embed|\/swf)?\/video\/([a-z0-9]+)_?/i],getFacebookLinks:[/^https?:\/\/(?:[\w]+\.)?facebook\.com(?:\/video)?\/video.php.*[?&]{1}v=([0-9]+).*/i,/^https?:\/\/(?:[\w]+\.)?facebook\.com\/.+\/videos(?:\/\w[^\/]+)?\/(\d+)/i],getMailruLinks:[/^https?:\/\/my\.mail\.ru\/([^\/]+\/[^\/]+\/[^\/]+\/[^\/]+\/[^\/]+\.html).*/i,/^https?:\/\/videoapi\.my\.mail\.ru\/videos\/(embed\/[^\/]+\/[^\/]+\/[^\/]+\/[^\/]+\.html).*/i]};for(var i in a)for(var u=0;u<a[i].length;u++){var l=o.match(a[i][u]);if(l&&l.length>1){l=l[1];var c=n.getMatchFirst(o,/list=([\w\-]+)/i);t.preventDefault(),t.stopPropagation();var d={extVideoId:l,action:i,checkSubtitles:!0,checkLinks:!0};return"getVimeoLinks"===i&&(d.url=o),r.a.sendMessage(d,(function(e){s.setLinks(e.action,e.extVideoId,e.links,e.title,null,e.subtitles,c,e.duration,e.thumb,e.checkLinks)})),!1}}}}),!1),document.body.addEventListener("click",(function(e){var t=e.target;if("I"===t.tagName&&t.classList.contains("file-info-btn"))s.onInfoBtnClick.call(t,e);else{if("A"!=t.tagName){if("A"!=t.parentNode.tagName)return;t=t.parentNode}if((r.a.isChrome||r.a.isFirefox||r.a.isGM)&&t.classList.contains("link-download")&&!t.classList.contains("disabled")&&t.getAttribute("download"))return t.classList.contains("ga_track_events")&&t.getAttribute("data-ga-event")&&l.a.trigger(t,"sendstats",{bubbles:!0,cancelable:!1}),n.downloadOnClick(e,null,{withoutPropagation:!0});var o=t.getAttribute("data-video-id");if(o&&"1"!=t.getAttribute(s.dataAttr)){var a={vk:"getVKLinks",yt:"getYoutubeLinks"};if(2==(o=o.split(":",2)).length&&a[o[0]]){e.preventDefault(),e.stopPropagation(),t.style.display="none",t.id||(t.id=o[0]+"_"+o[1]+"_"+1e3*Math.random()+"_"+(new Date).getTime());var i={extVideoId:o[1],action:a[o[0]],checkSubtitles:!0,checkLinks:!0};return r.a.sendMessage(i,(function(e){s.setLinks(e.action,e.extVideoId,e.links,e.title,t,e.subtitles,null,e.duration,e.thumb,e.checkLinks)})),!1}}}}),!0)},onInfoBtnClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.classList.contains("sf-clicked")){this.classList.add("sf-clicked");var t="sf-btn"+function(){for(var e=Date.now(),t=e;e===t;)t=Date.now();return t}();this.classList.add(t);var o=function(){var e=document.getElementsByClassName("sf-script")[0];void 0!==e&&e.parentNode.removeChild(e)};o(),document.body.appendChild(d.a.create("script",{class:"sf-script",text:'(function(btnClassName){try{var btn=document.getElementsByClassName(btnClassName);var $btn=$(btn);$btn.unbind("click").removeAttr("onclick").addClass("active");if(btn.onclick){btn.onclick=null}var parent=$btn.closest(".result-box").find(".meta")[0];if(!parent){return}var boxId="file_info"+btnClassName;var box=sf.append(parent,"div",{"id":boxId,"class":"media-info"});sf.append(box,"span",{id:boxId+"_busy"});sf.busy(boxId+"_busy",true)}catch(err){}})('+JSON.stringify(t)+")"}));var a=this.nextElementSibling.href,i=this.nextElementSibling.textContent;r.a.sendMessage({action:"getFileSize",url:a},(function(e){var a=e.fileSize,s={size:{name:{trans:r.a.i18n.getMessage("size")},value:n.sizeHuman(a)}};o(),document.body.appendChild(d.a.create("script",{class:"sf-script",text:'(function(btnClassName,title,json){try{var busy=document.getElementById("file_info"+btnClassName+"_busy");$(busy).slideUp();var btn=document.getElementsByClassName(btnClassName);sf.fileInfo.show(json,title,btn,busy.parentNode)}catch(err){}})('+[JSON.stringify(t),JSON.stringify(i),JSON.stringify(s)].join(",")+")"}))}))}},setExtParams:function(){var e=d.a.create("script",{id:"savefrom__ext_params",type:"text/javascript"}),t={id:a.sfHelperName,version:a.version,enable:1};e.textContent='(function(json){try{if(window.setBrowserExtension&&typeof setBrowserExtension=="function"){setBrowserExtension(json)}}catch(err){}})('+JSON.stringify(t)+")",document.body.appendChild(e)},setLinks:function(e,t,n,r,o,a,i,u,l,c){if(!1!==c)switch(e){case"getYoutubeLinks":s.setYoutubeLinks(t,n,r,o,a,i,u,l);break;case"getVKLinks":s.setVKLinks(t,n,r,o,u,l);break;case"getVimeoLinks":s.setVimeoLinks(t,n,r,o,u,l);break;case"getDailymotionLinks":s.setDailymotionLinks(t,n,r,o,u,l);break;case"getFacebookLinks":s.setFacebookLinks(t,n,r,o,u,l);break;case"getMailruLinks":s.setMailruLinks(t,n,r,o,u,l)}else s.handleError(o)},handleError:function(e){if(e)e&&(e.style.display="",e.setAttribute(s.dataAttr,"1"),e.click());else{var t=document.getElementById("sf_form");t&&(t.setAttribute(s.dataAttr,"1"),t.submit(),t.removeAttribute(s.dataAttr))}},showVideoResult:function(e,t){e&&e.url&&e.url.length?A()([t&&t.id,e],(function(e,t){if(e){var n=document.getElementById(e);sf.result.replaceAjaxResult(t,!0,!0,n)}else sf.finishRequest(!0),sf.videoResult.show(t)})):s.handleError(t)},setVKLinks:function(e,t,r,o,a,i){if(e&&t){var u={id:e,url:t,hosting:"vk.com (h)",meta:{title:r?f.a.modify(r):"download",source:"http://vk.com/"+e,duration:n.secondsToDuration(a)}};i&&(u.thumb=i);for(var l=0;l<u.url.length;l++)u.url[l].info_url="#",!u.url[l].ext&&u.url[l].type&&(u.url[l].ext=u.url[l].type),u.sd||u.url[l].subname?!u.hd&&u.url[l].subname&&parseInt(u.url[l].subname)>=720&&(u.hd={url:u.url[l].url}):u.sd={url:u.url[l].url};s.showVideoResult(u,o)}else s.handleError(o)},setYoutubeLinks:function(e,t,o,a,i,u,l){if(!e||!t)return s.handleError(a);var c={id:e,url:[],hosting:"101 (h)",meta:{title:o?f.a.modify(o):"download",source:e?"http://youtube.com/watch?v="+e:"",duration:n.secondsToDuration(l)},thumb:e?"http://i.ytimg.com/vi/"+e+"/hqdefault.jpg":""},d=!1;n.video.yt.init();var p=t.meta||{},m=n.video.yt.format;for(var g in m){var h=m[g];for(var v in h){var b=p[v]||{};if(t[v]){!d&&t[v].search(/(\?|&)sig(nature)?=/i)>-1&&(d=!0);var y=h[v].quality;b.quality&&(y=b.quality);var k={url:t[v],name:g,subname:y,info_url:"#",type:g,quality:y,attr:{}};h[v].sFps&&(k.subname+=" "+(b.fps||60)),["Audio AAC","Audio Vorbis","Audio Opus"].includes(g)&&(k.attr.style="white-space: nowrap;");var A={"Audio AAC":{type:"AAC",ext:"aac"},"Audio Vorbis":{type:"Vorbis",ext:"webm"},"Audio Opus":{type:"Opus",ext:"webm"}};h[v]["3d"]?(k.name="3D "+k.name,k["3d"]=!0):h[v].noAudio?(k.group="MP4 ",k.attr.class="no-audio"):A[g]?k=Object.assign({},k,A[g]):("flv"!==g.toLowerCase()||c.sd||(c.sd={url:t[v]}),parseInt(y)>=720&&c.sd&&!c.hd&&(c.hd={url:t[v]})),void 0===k.ext&&k.type&&(k.ext=k.type.toLowerCase()),c.url.push(k),delete t[v]}}}if(d){if(i&&i.length>0){var w=e.replace(/[^\w]/,"_"),x="yt_subs_btn_"+w;w="yt_subs_"+w;var C=c.meta.title?btoa(n.utf8Encode(c.meta.title)):"";c.action=[],c.action.push({name:r.a.i18n.getMessage("subtitles"),attr:{id:x,href:"#"},bind:{click:{fn:'sf.youtubeSubtitles("{vid}","{subsId}","{btnId}","{subtToken}","{subsTitle}")'.replace("{vid}",e).replace("{subsId}",w).replace("{btnId}","#"+x).replace("{subtToken}","extension").replace("{subsTitle}",C)}}})}if(!c.url.find((function(e){var t="MP4"===e.type.toLowerCase()&&parseInt(e.quality)>=720;return(!e.attr||"no-audio"!==e.attr.class)&&t}))&&t.meta&&t.meta.muxer){var _=t.meta.muxer;c.url.push({ext:_.mmProps.format,type:_.mmProps.format.toUpperCase(),url:"#muxer",name:"MP4",subname:_.quality,info_url:"#",quality:_.quality,attr:{"data-sources":JSON.stringify(_.mmProps)}})}s.showVideoResult(c,a)}else s.handleError(a)},setVimeoLinks:function(e,t,r,o,a,i){if(e&&t){t&&Array.isArray(t)&&(t=t.sort((function(e,t){var n=parseInt(e.height),r=parseInt(t.height);return isNaN(n)&&isNaN(r)?0:isNaN(n)?-1:isNaN(r)?1:n>r?-1:n===r?0:1})));var u={id:e,url:t,hosting:"vimeo.com (h)",meta:{title:r?f.a.modify(r):"download",source:"http://vimeo.com/"+e,duration:n.secondsToDuration(a)}};i&&(u.thumb=i);for(var l=0;l<u.url.length;l++)u.url[l].info_url="#",!u.url[l].ext&&u.url[l].type&&(u.url[l].ext=u.url[l].type),u.sd||"SD"!=u.url[l].name?u.hd||"HD"!=u.url[l].name||(u.hd={url:u.url[l].url}):u.sd={url:u.url[l].url};s.showVideoResult(u,o)}else s.handleError(o)},setDailymotionLinks:function(e,t,r,o,a,i){if(e&&t){var u=t.filter((function(e){if(!e.extra)return!0})),l={id:e,url:u=u.map((function(e){if(e.ext&&e.name){var t=e.name.match(/\d+x(\d+)/);t&&t[1]&&(e.name=e.ext.toUpperCase()+" "+(t&&t[1]))}return e})),hosting:"dailymotion.com (h)",meta:{title:r?f.a.modify(r):"download",source:"http://dai.ly/"+e,duration:n.secondsToDuration(a)}};i&&(l.thumb=i);for(var c,d=0,p=0,m=0;c=u[m];m++)c.info_url="#",c.height>=720?d<c.height&&(l.hd={url:c.url},d=c.height):p<c.height&&(l.sd={url:c.url},p=c.height),delete c.height;s.showVideoResult(l,o)}else s.handleError(o)},setFacebookLinks:function(e,t,r,o,a,i){if(e&&t){var u={id:e,url:t,hosting:"facebook.com (h)",meta:{title:r?f.a.modify(r):"download",source:"https://facebook.com/video.php?v="+e,duration:n.secondsToDuration(a)}};i&&(u.thumb=i);for(var l,c=0;l=t[c];c++)l.info_url="#","SD"===l.name?u.sd={url:l.url}:"HD"===l.name&&(u.hd={url:l.url}),l.subname=l.name,l.name=l.ext;s.showVideoResult(u,o)}else s.handleError(o)},setMailruLinks:function(e,t,r,o,a,i){if(e&&t){var u={id:e,url:t,hosting:"mail.ru (h)",meta:{title:r?f.a.modify(r):"download",source:"http://my.mail.ru/"+e,duration:n.secondsToDuration(a)}};i&&(u.thumb=i);for(var l,c=0,d=0;l=u.url[d];d++)l.info_url="#",isNaN(parseInt(l.subname))?"sd"===l.subname.toLowerCase()?u.sd={url:l.url}:"hd"===l.subname.toLowerCase()&&(u.hd={url:l.url}):(c<l.subname&&l.subname<720&&(u.sd={url:l.url},c=l.subname),!u.hd&&l.subname>="720"&&(u.hd={url:l.url}));s.showVideoResult(u,o)}else s.handleError(o)}}}),(function(){return s()()?r.a.isGM&&-1!==location.href.indexOf("/tools/helper-check.html"):["/faq.php","/advertising.php","/EULA.html","/terms.html","/privacy-policy.html","/apk","/webmaster.php"].every((function(e){return-1===location.href.indexOf(e)}))}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={4:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([140,0]),n()}({140:function(e,t,n){n.r(t);var r=n(0),o=n(2),i=n.n(o),s=n(27),u=n.n(s),l=n(62),c=n.n(l),d=n(3),p=n.n(d),f=n(13),m=n.n(f),v=n(21),b=n.n(v),y=n(12),k=n.n(y),A=n(11),w=n(23),x=n.n(w),C=n(35),_=n.n(C),S=n(17),O=n(19),M=n.n(O),E=n(8),D=n(10),I=n(20),L=n(9);b.a.isSingle()&&Object(S.b)("instagram",(function(e,t){var n=Object(A.a)(t),o=t.preferences,s=o.moduleInstagram?1:0,u=t.preferences.selectorsConfig,l=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return f.changeState(t.state)}if("updatePreferences"!==t.action){if(s)return"updateLinks"===t.action?f.updateLinks():void 0}else Object.assign(o,t.preferences)})),s&&setTimeout((function(){f.run()})),document.addEventListener("mutationwatcher:hrefchange",(function(){s&&location.href.includes("reels")&&f.updateLinks()}));var d,f={dlBtnClassName:"savefrom-helper--btn",styleEl:null,run:function(){s=1,this.insertStyle(),k.a.isAvailable()&&this.mutationMode.enable()},rmStyle:function(){this.styleEl&&this.styleEl.parentNode&&this.styleEl.parentNode.removeChild(this.styleEl)},insertStyle:function(){this.styleEl?this.styleEl.parentNode||document.head.appendChild(this.styleEl):(this.styleEl=i.a.create("style",{text:m()([{selector:"."+this.dlBtnClassName,style:{display:"none",border:"1px solid #F8F8F8",top:"8px",right:"8px",padding:0,position:"absolute",backgroundColor:"#F8F8F8",cursor:"pointer",lineHeight:0}},{selector:"."+this.dlBtnClassName+" svg",style:{margin:"2px"}},{selector:"."+this.dlBtnClassName+" svg path",style:{fill:"#777777"}},{selector:".Embed ."+this.dlBtnClassName,style:{border:"1px solid #B5B5B5",borderRadius:"4px",padding:"3px"}},{selector:"."+this.dlBtnClassName+":hover svg path",style:{fill:"#3f729b"}},{selector:"."+this.dlBtnClassName+":active",style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}},{selector:["*:hover > ."+this.dlBtnClassName,"*.sf-touch-show > ."+this.dlBtnClassName],style:{display:"block"}},{selector:"*.sf-touch-hide > ."+this.dlBtnClassName,style:{display:"none"}}])}),document.head.appendChild(this.styleEl))},updateLinks:function(){this.changeState(0),this.changeState(1)},changeState:function(e){s=e,this.rmDlBtn(),this.rmStyle(),this.mutationMode.stop(),e&&this.run()},rmDlBtn:function(){for(var e,t=document.querySelectorAll("."+this.dlBtnClassName),n=0;e=t[n];n++)e.parentNode.removeChild(e)},getDbBtnEl:function(e){Object(D.a)({category:"append",subcategory:"in",event:"b"});var t=i.a.create("a",{class:[this.dlBtnClassName],href:e.url,download:e.filename,title:r.a.i18n.getMessage("download"),style:{position:"absolute",zIndex:100},on:[["click",v],["mouseover",function(e){if(l){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(I.showTooltip)(t,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60},{el:{className:"mp4",download:"mp4"}});Object(I.hideTooltip)(t,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60})}}]],append:[n.svg.getSvg("download",null,16,16)]});return t},showOnTouch:function(e,t){if(!(e.dataset.sfTouch>0)){var n=!1,r=null,o=function(){n&&(clearTimeout(r),r=setTimeout((function(){n&&(n=!1,e.classList.remove("sf-touch-show"),e.classList.add("sf-touch-hide"))}),3e3))};i.a.create(e,{data:{sfTouch:"1"},on:[["touchstart",function(t){n||(n=!0,e.classList.remove("sf-touch-hide"),e.classList.add("sf-touch-show"))}],["touchend",function(e){o()}]]})}},addDlBtn:(d=Object(a.a)(g.a.mark((function e(t,n,r){var o,s,u,l,d,m,v,b,y,k,A,w,x,C,S,O,M,E,D,I,T,j,P,F=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o="embed"===n,s=t,u=null,t.classList.add("sf-root-media-container"),t.style.position="relative",(d=t.querySelector("div > div > video"))||"video"!==r.tagName||"strangeVideo"!==n||(d=r),!d){e.next=11;break}return e.next=7,L.a.createLinkExtractor("ig-post-video").extractLinks({element:d});case 7:m=e.sent,v=Object(h.a)(m,1),b=v[0],u=b;case 11:if(u){e.next=39;break}if(!o){e.next=22;break}if(!(l=s.querySelector(".EmbedFrame img.EmbeddedMediaImage"))){e.next=20;break}return e.next=16,L.a.createLinkExtractor("ig-post-photo").extractLinks({element:l});case 16:y=e.sent,k=Object(h.a)(y,1),A=k[0],u=A;case 20:e.next=39;break;case 22:if(!(l=s.querySelector("div > img[src][srcset]"))){e.next=31;break}return e.next=25,L.a.createLinkExtractor("ig-post-photo").extractLinks({element:l});case 25:w=e.sent,x=Object(h.a)(w,1),C=x[0],u=C,e.next=39;break;case 31:if(!(l=s.querySelector("div > img"))){e.next=38;break}return e.next=34,L.a.createLinkExtractor("ig-post-photo").extractLinks({element:l});case 34:S=e.sent,O=Object(h.a)(S,1),M=O[0],u=M;case 38:!l||"hidden"!==l.style.visibility&&l.src||(E=new _.a({target:l,attrs:[{name:"src",callback:function(e){e.value&&(F.addDlBtn(t,n,r),E.stop())}}]}));case 39:if(u){e.next=41;break}return e.abrupt("return");case 41:D=this.getDbBtnEl(u),I="",T=null,l?(I="image",T=l):(I="video",T=d),j=new _.a({target:T,attrs:[{name:"src",callback:function(){var e=Object(a.a)(g.a.mark((function e(t){var n,r,o,a,i,s;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.value===u.url){e.next=17;break}if(u=null,"image"!==I){e.next=10;break}return e.next=4,L.a.createLinkExtractor("ig-post-photo").extractLinks({element:T});case 4:n=e.sent,r=Object(h.a)(n,1),o=r[0],u=o,e.next=16;break;case 10:return e.next=12,L.a.createLinkExtractor("ig-post-video").extractLinks({element:T});case 12:a=e.sent,i=Object(h.a)(a,1),s=i[0],u=s;case 16:u&&D.parentNode?(D.href=u.url,D.download=u.filename):j.stop();case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}]}),p.a.onRemoveEvent(T,(function(){c()(document.body,r)&&(r.dataset.sfSkip=0,f.mutationMode.observer.trigger(r))})),o&&(P=document.querySelector(".Header"))&&(s=P,i.a.create(D,{style:{position:"relative",zIndex:100,display:"block",left:"auto",top:"auto",marginLeft:"10px"}})),s.appendChild(D),this.showOnTouch(s,D);case 47:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return d.apply(this,arguments)}),addBtnVideoStory:function(){var e=document.querySelector("section > div > header, a > img");if(e){"img"===e.tagName.toLowerCase()&&(e=e.parentNode.parentNode.parentNode.parentNode);var t=f.createStoryContainer(e);setTimeout(Object(a.a)(g.a.mark((function n(){var r,o,a,i,s,u;return g.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,L.a.createLinkExtractor("ig-story-video").extractLinks({element:e});case 2:r=n.sent,o=Object(h.a)(r,1),a=o[0],i=a.url,s=a.filename,(u=f.createStoryButton(i,s)).addEventListener("click",v),t.appendChild(u);case 9:case"end":return n.stop()}}),n)}))),100)}},addBtnImageStory:function(e){var t=document.querySelector("section > div > header, a > img");if(t){"img"===t.tagName.toLowerCase()&&(t=t.parentNode.parentNode.parentNode.parentNode);var n=f.createStoryContainer(t);setTimeout(Object(a.a)(g.a.mark((function t(){var r,o,a,i,s,u;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,L.a.createLinkExtractor("ig-story-photo").extractLinks({element:e});case 2:r=t.sent,o=Object(h.a)(r,1),a=o[0],i=a.url,s=a.filename,(u=f.createStoryButton(i,s)).addEventListener("click",v),n.appendChild(u);case 9:case"end":return t.stop()}}),t)}))),100)}},createStoryContainer:function(e){if(e){var t=document.querySelector(".sf--story-container");t&&t.remove();var n=i.a.create("div",{className:"sf--story-container"}),r=document.querySelector("header > div:nth-child(2) > div:nth-child(2)");if(!r)return e.appendChild(n),n;var o=r.querySelector("button");return o?r.insertBefore(n,o):e.appendChild(n),n}},createStoryButton:function(e,t){Object(D.a)({category:"append",subcategory:"in",event:"b"});var o=i.a.create("a",{className:"sf--story-btn",append:[n.svg.getSvg("download","white",15,15)],download:t,href:e,style:{cursor:"pointer",marginRight:"2px",marginTop:"2px"},on:["mouseover",function(e){if(l){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(I.showTooltip)(o,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60},{el:{className:"story"}});Object(I.hideTooltip)(o,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60})}}]});return o},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=x()(e),r=document.querySelectorAll("["+n+"]"),o=0;t=r[o];o++)t.removeAttribute(n)}))},enable:function(){if(this.observer)return this.observer.start();this.observer=new k.a({queries:[{css:u.instagram.story,is:"added",callback:function(e){var t=e.added,n=function(){document.querySelectorAll(".sf--story-btn").forEach((function(e){return e.remove()}))};t.forEach((function(e){var t=e.querySelector("div > video");if(t)n(),f.addBtnVideoStory(t);else{var r=e.querySelector("div > img");r&&(n(),f.addBtnImageStory(r))}}))}},{css:u.instagram.story2,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",f.addDlBtn(t.parentNode,"",t))}},{css:u.instagram.strangeVideo,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",f.addDlBtn(t.parentNode,"strangeVideo",t))}},{css:u.instagram.story3,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||t.querySelector("ul > li")||(t.dataset.sfSkip="1",f.addDlBtn(t.parentNode,"",t))}},{css:u.instagram.reelsModal,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||t.querySelector("ul > li")||(t.dataset.sfSkip="1",f.addDlBtn(t.parentNode,"",t))}},{css:u.instagram.reelsModal735,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||t.querySelector("ul > li")||(t.dataset.sfSkip="1",f.addDlBtn(t.parentNode,"",t))}},{css:u.instagram.videoPostsAndReelNoCarousel,is:"added",callback:function(e){for(var t,n=e.added,r=0;t=n[r];r++)"1"!==t.dataset.sfSkip&&(t.dataset.sfSkip="1",f.addDlBtn(t.parentNode,"",t))}},{css:u.instagram.videoPostsCarouselCatalog,is:"added",callback:function(e){for(var t,n=e.added,r=0;t=n[r];r++)"1"!==t.dataset.sfSkip&&(t.dataset.sfSkip="1",f.addDlBtn(t.parentNode,"",t))}},{css:u.instagram.summary,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||t.querySelector("ul > li")||(t.dataset.sfSkip="1",f.addDlBtn(t.parentNode,"",t))}},{css:u.instagram.embed,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=M()(t,".Embed");r&&(r.dataset.sfSkip="1",f.addDlBtn(r,"embed",r))}}},{css:u.instagram.embed2,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=M()(t,".Embed");if(r&&r.dataset.sfSkip>0){var o=document.querySelector(".Header");o&&b(o)}f.addDlBtn(t.parentNode,"",t)}}},{css:u.instagram.embed3,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",f.addDlBtn(t,"embed",t))}},{css:"."+p.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)p.a.onRemoveListener(t)}}],options:{subtree:!0,childList:!0,attributes:!0}})}}};function v(e){return e.stopPropagation(),r.a.isFirefox?(e.preventDefault(),function(e,t,n){return t.includes("mp4")?Object(D.a)({category:"download",subcategory:"in",event:"video"}):Object(D.a)({category:"download",subcategory:"in",event:"photo"}),Object(E.a)({action:"ffInstagramDownloadMedia",downloadFileUrl:e,filename:t})}(this.href,this.download)):n.downloadOnClick(e,void 0,{el:this})}function b(e){for(var t,n=e.querySelectorAll("."+f.dlBtnClassName),r=0;t=n[r];r++)t.classList.remove(p.a.onRemoveClassName),t.parentNode.removeChild(t)}}),(function(){return!u()()||!!/\/\/[^\/]+\.[^\/]+\/p\//.test(location.href)}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={11:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([141,0]),n()}({141:function(e,t,n){n.r(t);var r=n(0),o=n(11),a=n(17),i=n(27),s=n.n(i),u=(n(28),n(23)),l=n.n(u),c=n(13),d=n.n(c),p=n(19),f=n.n(p),m=n(3),g=n.n(m),h=n(2),v=n.n(h),b=n(21),y=n.n(b),k=n(12),A=n.n(k);y.a.isSingle()&&Object(a.b)("rutube",(function(e,t){var n=Object(o.a)(t),a=t.preferences,i=a.moduleRutube?1:0,u=t.preferences.selectorsConfig,c=s()();r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:i,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return p.changeState(t.state)}if("updatePreferences"!==t.action){if(i)return"updateLinks"===t.action?p.updateLinks():void 0}else Object.assign(a,t.preferences)})),i&&setTimeout((function(){p.run()}));var p={buttonClassName:"sf-button",contextMenu:null,run:function(){if(i=1,c)return p.frame();A.a.isAvailable()&&p.mutationMode.enable()},changeState:function(e){i=e,this.hideMenu(),this.rmDlLinks(),this.mutationMode.stop(),e&&this.run()},hideMenu:function(){p.contextMenu&&(p.contextMenu.hide(),p.contextMenu=null)},updateLinks:function(){this.changeState(0),this.changeState(1)},rmDlLinks:function(){for(var e,t=document.querySelectorAll("."+this.buttonClassName),n=0;e=t[n];n++)e.parentNode.removeChild(e)},insertDownloadLink:function(e){for(var t,o=e.querySelectorAll("."+this.buttonClassName),a=0;t=o[a];a++)t.parentNode.removeChild(t);o=null;var i=function(){var e=location.href;return"ummy"+e.substr(e.indexOf("://"))},s=i(),u=v.a.create("a",{href:s,className:this.buttonClassName+" video-tools__tools-button",target:"_blank",on:[["click",function(t){var r;if(t.preventDefault(),t.stopPropagation(),r=i(),s!==r&&(s=r,u.href=r),p.contextMenu&&p.contextMenu.isShow)p.hideMenu();else{var o=n.popupMenu.prepareLinks.rutube(i());p.contextMenu=n.popupMenu.quickInsert(this,o,"sf-popupMenu",{parent:f()(e,".b-video__description")})}}]],append:[n.svg.getSvg("download","#6c9b01",20,20),v.a.create("span",{text:r.a.i18n.getMessage("download"),style:{color:"#6c9b01"}})]});g.a.onRemoveEvent(u,p.hideMenu),e.insertAdjacentElement("afterbegin",u)},frame:function(){var e=this,t=n.frameMenu.getBtn({singleBtn:!0,btnId:"sfDlBtn",containerStyle:{right:"50px",top:"6px"},quickBtnStyleObj:{display:"inline-block",border:0,borderRadius:".3em",cursor:"pointer",position:"relative",padding:"4px 6px"},quickBtnCssStyle:{backgroundColor:"transparent"},quickBtnIcon:v.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"}}),nodeCssStyle:{display:"none"},on:[["click",function(o){if(o.preventDefault(),o.stopPropagation(),r.a.sendMessage({action:"checkAndOpenProLanding",id:"ru-2"}),e.contextMenu&&e.contextMenu.isShow)e.hideMenu();else{var a=n.popupMenu.prepareLinks.rutube(location.href);e.contextMenu=n.frameMenu.getMenu(this,a,"sf-frame-menu",{container:t.container,onShow:function(){t.node.classList.add("sf-over")},onHide:function(){e.contextMenu=null,t.node.classList.remove("sf-over")}})}}],["mousedown",function(n){n.stopPropagation(),2===n.button&&(g.a.off(document.body,"mousemove",s),e.hideMenu(),t.container.parentNode&&t.container.parentNode.removeChild(t.container))}]]});t.quickBtn.title=r.a.i18n.getMessage("download"),t.container=v.a.create("div",{class:"sf-btn-ctr",append:t.node}),g.a.on(t.container,"mouseenter",(function(){t.lockHide=!0})),g.a.on(t.container,"mouseleave",(function(){t.lockHide=!1}));var o=null,a=!1,i=function(){t.lockHide||(t.container.classList.add("sf-hide-ui"),a=!0)},s=function(){a&&(t.container.classList.remove("sf-hide-ui"),a=!1),clearTimeout(o),o=setTimeout(i,3e3)};g.a.on(document.body,"mousemove",s),t.node.appendChild(v.a.create("style",{text:d()([{selector:["body:hover .sf-btn-ctr:not(.sf-hide-ui) #sfDlBtn","body:hover .sf-btn-ctr:not(.sf-hide-ui) .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(t.container)},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=l()(e),r=document.querySelectorAll("["+n+"]"),o=0;t=r[o];o++)t.removeAttribute(n)}))},enable:function(){if(this.observer)return this.observer.start();this.observer=new A.a({queries:[{css:u.rutube.videoToolsAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",p.insertDownloadLink(t))}},{css:"."+g.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)g.a.onRemoveListener(t)}}]})}}}}),(function(){return Promise.resolve().then((function(){if(s()()){var e=!1;try{e=location.hostname===window.parent.location.hostname}catch(e){}return!e}return!0})).then((function(e){return!!e&&r.a.callFn("getPreferences").then((function(e){return!!e.showUmmyItem}))}))}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={15:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([154,0]),n()}({112:function(e,t,n){var r=n(36),o=n(142);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},142:function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,".jBOFD--container{position:absolute;z-index:10}.BJ-ZZ--sf__tooltip{display:block;outline:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default;position:absolute;z-index:10000;transition:opacity .25s;top:35px;left:2px;white-space:nowrap}.kXEuk--sf__tooltip__container{outline:none;font-family:Arial;font-size:14px;font-weight:700;background-color:#4d4d4d;border-radius:8px;color:#fff;padding:8px;margin-bottom:0;display:flex}.uvaWg--sf__tooltip__text{padding-top:6px}.gB5-Q--sf__tooltip__text__alt{margin-top:5px;display:inline-block}.GFrc0--sf__tooltip__button{margin:4px 4px 0;width:20px;height:18px;background-color:#000;border-radius:5px;border:solid #000;border-width:1px 1px 3px}.hdWNF--sf__tooltip__triangle{position:relative;left:8px;width:0;height:0;border-color:transparent transparent #4d4d4d;border-style:solid;border-width:0 8px 8px}.KE\\+w5--sf__tooltip__button_whiteground{fontWeight:bold;font-size:8px;text-align:center;z-index:1;position:relative;width:20px;height:18px;background-color:#fff;color:#000;border-radius:5px}.wCmWm--sf__tooltip__button_safari,.mwA8z--sf__tooltip__button_whiteground_safari{width:27px}.jBOFD--container.\\+Ncst--largeContainer{top:20px;left:145px}.jBOFD--container._0AmPQ--middleContainer{top:20px;left:20px}.jBOFD--container.xsLiH--feedItemContainer{top:10px;left:10px}.YBzmP--button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background-color:rgba(0,0,0,.5);border-radius:50%;z-index:9;border:1px solid hsla(0,0%,50.2%,.5)}.YBzmP--button a{padding:10px}",""]),o.locals={container:"jBOFD--container",sf__tooltip:"BJ-ZZ--sf__tooltip",sfTooltip:"BJ-ZZ--sf__tooltip",sf__tooltip__container:"kXEuk--sf__tooltip__container",sfTooltipContainer:"kXEuk--sf__tooltip__container",sf__tooltip__text:"uvaWg--sf__tooltip__text",sfTooltipText:"uvaWg--sf__tooltip__text",sf__tooltip__text__alt:"gB5-Q--sf__tooltip__text__alt",sfTooltipTextAlt:"gB5-Q--sf__tooltip__text__alt",sf__tooltip__button:"GFrc0--sf__tooltip__button",sfTooltipButton:"GFrc0--sf__tooltip__button",sf__tooltip__triangle:"hdWNF--sf__tooltip__triangle",sfTooltipTriangle:"hdWNF--sf__tooltip__triangle",sf__tooltip__button_whiteground:"KE+w5--sf__tooltip__button_whiteground",sfTooltipButtonWhiteground:"KE+w5--sf__tooltip__button_whiteground",sf__tooltip__button_safari:"wCmWm--sf__tooltip__button_safari",sfTooltipButtonSafari:"wCmWm--sf__tooltip__button_safari",sf__tooltip__button_whiteground_safari:"mwA8z--sf__tooltip__button_whiteground_safari",sfTooltipButtonWhitegroundSafari:"mwA8z--sf__tooltip__button_whiteground_safari",largeContainer:"+Ncst--largeContainer",middleContainer:"_0AmPQ--middleContainer",feedItemContainer:"xsLiH--feedItemContainer",button:"YBzmP--button"},t.default=o},154:function(e,t,n){n.r(t);var r=n(0),o=n(7),i=n.n(o),s=n(21),u=n.n(s),l=n(12),c=n.n(l),d=n(11),p=n(23),f=n.n(p),m=n(17),v=n(18),b=n.n(v),y=n(5),k=n(1),A=n.n(k),w=n(112),x=n.n(w),C=n(26),_=n.n(C),S=n(14),O=n.n(S),M=n(10),E=n(8),D=A.a.memo((function(e){var t=e.url,n=e.filename,o=e.containerType,a=void 0===o?"middle":o,i=e.children,s=_()(x.a),u=A.a.useState(!1),l=Object(h.a)(u,2),c=l[0],d=l[1],p=A.a.useState(!1),f=Object(h.a)(p,2),m=f[0],g=f[1],v=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"),b=A.a.useCallback((function(e){if(e.stopPropagation(),r.a.isFirefox){e.preventDefault();var o=t;return Object(E.a)({action:"ffTiktokDownloadMedia",downloadFileUrl:o,filename:n})}e.altKey||r.a.isFirefox?(Object(M.a)({category:"download",subcategory:"ti",event:"video"}),r.a.sendMessage({action:"checkAndOpenProLanding"})):(m||(g(!0),setTimeout((function(){g(!1)}),2e3)),e.preventDefault())}),[m]),y=A.a.useCallback((function(e){e.altKey||e.ctrlKey||r.a.isFirefox||d(!c)}),[c]),k=A.a.useMemo((function(){return"large"===a?s.largeContainer:"middle"===a?s.middleContainer:"feedItem"===a?s.feedItemContainer:""}),[a]);return A.a.createElement("div",{className:O()(s.container,k)},A.a.createElement("div",{className:s.button},r.a.isFirefox?A.a.createElement("a",{onclick:b},i):A.a.createElement("a",{href:t,download:n,target:"_blank",onclick:b,onmouseenter:y,onmouseleave:y},i),c&&A.a.createElement("div",{className:O()(s.sf__tooltip)},A.a.createElement("div",{className:O()(s.sf__tooltip__triangle)}),A.a.createElement("div",{className:O()(s.sf__tooltip__container)},A.a.createElement("span",{className:O()(s.sf__tooltip__text)},r.a.i18n.getMessage("download_button_hold")),A.a.createElement("div",{className:O()(s.sf__tooltip__button,v?s.sf__tooltip__button_safari:"")},A.a.createElement("div",{className:O()(s.sf__tooltip__button_whiteground,v?s.sf__tooltip__button_whiteground_safari:"")},A.a.createElement("span",{className:O()(s.sf__tooltip__text__alt)},v?"option":"alt"))),A.a.createElement("span",{className:O()(s.sf__tooltip__text)},r.a.i18n.getMessage("download_button_and_click"))))))})),I=n(2),L=n.n(I),T=n(13),j=n.n(T),P=n(9),F=i()("tiktok_com");u.a.isSingle()&&Object(m.b)("tiktok",(function(e,t){var n=Object(d.a)(t),o=t.preferences,i=o.moduleTiktok,s=t.preferences.selectorsConfig,u=location.pathname.includes("/embed");r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:i,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return l.changeState(t.state)}"updatePreferences"!==t.action||Object.assign(o,t.preferences)})),i&&setTimeout((function(){l.run()}));var l={style:void 0,run:function(){i=1,u?c.a.isAvailable()&&p.mutationMode.start():c.a.isAvailable()&&(this.mutationMode.start(),this.injectStyle())},mutationMode:{observer:null,start:function(){if(this.observer)return this.observer.start();this.observer=new c.a({queries:[{css:s.tiktok.videoCardAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||l.runDesktop(t)}},{css:s.tiktok.feed,is:"added",callback:function(e){e.added.forEach((function(e){e.dataset.sfSkip||l.addButtonForFeedItem(e)}))}}]})},stop:function(){this.observer&&this.observer.stop(),document.querySelectorAll(".sf-dl-container, .sf-feed-dl-container").forEach((function(e){e.remove()})),l.style&&l.style.remove(),["sfSkip","sfReady"].forEach((function(e){for(var t,n=f()(e),r=document.querySelectorAll("["+n+"]"),o=0;t=r[o];o++)t.removeAttribute(n)}))}},addButtonForFeedItem:function(e){return Object(a.a)(g.a.mark((function t(){var n,r,o,a,i,s,u;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.closest(".item-video-container")){t.next=3;break}return t.abrupt("return");case 3:return(r=document.createElement("div")).classList.add("sf-feed-dl-container"),t.next=7,P.a.createLinkExtractor("tt-video").extractLinks({element:e});case 7:o=t.sent,a=Object(h.a)(o,1),i=a[0],s=i.url,u=i.filename,l.createDownloadButton(r,u,s,"feedItem"),e.dataset.sfSkip="1",n.appendChild(r);case 13:case"end":return t.stop()}}),t)})))()},runDesktop:function(e){return Object(a.a)(g.a.mark((function t(){var n,r,o,a,i,s,u,c;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",F.error("videoElement don't found"));case 2:if(n=e.parentElement,r="middle",(e.closest('div[data-e2e="feed-video"]')||e.closest('div[data-e2e="user-post-item-list"]'))&&(r="feedItem"),e.closest('div[data-e2e="browse-video"]')&&(r="large"),!n||n.dataset.sfReady){t.next=16;break}return n.dataset.sfReady=String(1),(o=document.createElement("div")).classList.add("sf-dl-container"),n.appendChild(o),t.next=10,P.a.createLinkExtractor("tt-video").extractLinks({element:e});case 10:a=t.sent,i=Object(h.a)(a,1),s=i[0],u=s.url,c=s.filename,l.createDownloadButton(o,c,u,r);case 16:case"end":return t.stop()}}),t)})))()},createDownloadButton:function(e,t,r,o){return Object(M.a)({category:"append",subcategory:"ti",event:"b"}),Object(M.a)({category:"type",subcategory:"ti",event:r.startsWith("blob")?"blob":"video"}),b()(Object(y.createElement)(D,{url:r,filename:t,containerType:o},[Object(y.createElement)("img",{src:n.svg.getSrc("download","#fff")})]),e)},injectStyle:function(){this.style=L.a.create("style",{text:j()({".sf-dl-container":{display:"none"},"[class*=-DivVideoContainer]:hover .sf-dl-container":{display:"block"},'[data-sf-ready="1"]:hover .sf-dl-container':{display:"block"}})}),document.body.appendChild(this.style)},changeState:function(e){i=e,this.mutationMode.stop(),e&&this.run()}},p={mutationMode:{observer:null,start:function(){if(this.observer)return this.observer.start();this.observer=new c.a({queries:[{css:s.tiktok.embedVideoAdd,is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",p.insertDownloadButton(t))}}]})}},insertDownloadButton:function(e){var t;e.dataset.sfReady||(e.dataset.sfReady=String(1),e.addEventListener("mouseenter",Object(a.a)(g.a.mark((function n(){var r,o,a,i,s,u;return g.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=document.querySelector("video")){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,P.a.createLinkExtractor("tt-video").extractLinks({element:r});case 5:o=n.sent,a=Object(h.a)(o,1),i=a[0],s=i.url,u=i.filename,t=l.createDownloadButton(e,u,s,"large");case 11:case"end":return n.stop()}}),n)})))),e.addEventListener("mouseleave",(function(){t&&t()})))}}}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={19:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([148,0]),n()}({107:function(e,t){e.exports=n(123)},148:function(e,t,n){n.r(t);var r=n(0),o=n(12),i=n.n(o),l=n(11),c=n(52),d=n(107),p=(n(6),n(7)),m=n.n(p),h=n(2),v=n.n(h),b=n(10),y=n(20),k=n(9),A=m()("ya_playlist"),w=m()("playlistButtons"),x=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"),C=function(){function e(t){Object(s.a)(this,e),this.selector=".d-track .d-track__actions",this.type="added",this.utils=t}var t;return Object(u.a)(e,[{key:"handle",value:function(e){var t=e.added;this.renderButtons(t)}},{key:"renderButtons",value:function(e){var t=this;e.filter((function(e){return!e.dataset.sfSongReady})).map((function(e){e.dataset.sfSongReady="1";try{var n=e.closest(".d-track");if(!n)return;t.prepareButton(n).then((function(t){t&&(t.title=r.a.i18n.getMessage("download"),e.style.width="max-content",Object(b.a)({category:"append",subcategory:"ya",event:"b"}),e.insertBefore(t,null))}))}catch(e){w.error(e)}}))}},{key:"prepareButton",value:(t=Object(a.a)(g.a.mark((function e(t){var n,r,o=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=v.a.create("a",{class:["d-track__hover","sf-download"],append:[v.a.create(this.utils.svg.getSvg("download","#747474"),{style:{marginTop:"2px"}})],on:[["mouseover",function(e){if(x){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(y.showTooltip)(n,{defaultWidth:400,defaultHeight:60});Object(y.hideTooltip)(n,{defaultWidth:400,defaultHeight:60})}}]]}),e.prev=1,e.next=4,k.a.createLinkExtractor("ya-artist").extractLinks({element:t});case 4:return r=e.sent,e.abrupt("return",(n.download=r[0].filename,n.href=r[0].url,n.addEventListener("click",(function(e){e.stopPropagation(),o.utils.downloadOnClick(e)})),n));case 8:e.prev=8,e.t0=e.catch(1),A.error("Ya link extractor error: ",e.t0);case 11:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(e){return t.apply(this,arguments)})},{key:"setError",value:function(e){e.title=r.a.i18n.getMessage("vkMp3LinksNotFound"),e.classList.add("sf-icon-error")}},{key:"disable",value:function(){var e=["data-sf-song-ready","data-sf-info"],t=document.querySelectorAll(e.map((function(e){return"[".concat(e,"]")})).join(","));Array.from(t).forEach((function(t){return function(e,t){return t.forEach((function(t){return e.removeAttribute(t)}))}(t,e)})),Array.from(document.querySelectorAll(".sf-download")).forEach((function(e){return e.remove()}))}}]),e}(),_=m()("ya_player"),M=function(){function e(t){Object(s.a)(this,e),this.selector=".player-controls .deco-link.track__title",this.type="added",this.observer=void 0,this.button=void 0,this.utils=t}var t;return Object(u.a)(e,[{key:"handle",value:function(e){var t=e.added.pop();if(t){var n=t.closest(".player-controls").querySelector(".player-controls__seq-controls");n&&this.renderButton(n)}}},{key:"renderButton",value:function(e){var t=this;if(!e.dataset.sfReady){var n=v.a.create("a",{title:r.a.i18n.getMessage("download"),class:["player-controls__btn","deco-player-controls__button","sf-download-in-control"],append:[v.a.create(this.utils.svg.getSvg("download","#747474",19,19),{style:{marginTop:"3px"}})],on:[["click",function(e){e.stopPropagation(),t.utils.downloadOnClick(e)}]]});e.append(n),this.prepareButton(n),!this.observer&&this.createObserver(n),e.dataset.sfReady="1"}}},{key:"createObserver",value:function(e){var t=this;this.observer=new i.a({queries:[{css:".player-controls__track.player-controls__track_shown",is:"removed",callback:function(){return t.prepareButton(e)}}]}),this.observer.start()}},{key:"prepareButton",value:(t=Object(a.a)(g.a.mark((function e(t){var n,r;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.closest(".player-controls"))){e.next=12;break}return e.prev=2,e.next=5,k.a.createLinkExtractor("ya-artist").extractLinks({element:n});case 5:return r=e.sent,e.abrupt("return",(t.download=r[0].filename,t.href=r[0].url,t));case 9:e.prev=9,e.t0=e.catch(2),_.error("Ya link extractor error: ",e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])}))),function(e){return t.apply(this,arguments)})},{key:"disable",value:function(){this.observer&&this.observer.stop(),Array.from(document.querySelectorAll("[data-sf-ready]")).forEach((function(e){return e.removeAttribute("data-sf-ready")}));var e=document.querySelector(".sf-download-in-control");e&&e.remove()}}]),e}(),E=function(e){function t(){var e;Object(s.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=O(this,t,[].concat(r))).active=1,e.mutationHandlers=[],e}var n,o;return Object(f.a)(t,e),Object(u.a)(t,[{key:"init",value:(o=Object(a.a)(g.a.mark((function e(){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.a.callFn("getPreferences");case 2:this.settings=e.sent,this.active=Number(this.settings.moduleYandexMusic),this.utils=Object(l.a)({preferences:this.settings}),this.registerListeners(),this.active&&this.initObserver(),this.appendStyle(d.STYLE);case 8:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"initObserver",value:function(){this.mutationHandlers=[new C(this.utils),new M(this.utils)],this.observer=new i.a({queries:this.mutationHandlers.map((function(e){return{css:e.selector,callback:e.handle.bind(e),is:e.type}}))}),this.observer.start()}},{key:"registerListeners",value:function(){var e=this;r.a.onMessage.addListener(function(){var n=Object(a.a)(g.a.mark((function n(r,o,a){var i,s,u;return g.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=r.action,s=r.moduleName,u=r.state,"getModuleInfo"!==i){n.next=3;break}return n.abrupt("return",a({state:e.active,moduleName:t.moduleName}));case 3:"updatePreferences"!==i?(e.handleMonoChangeActive(i,s,u),e.handleMonoDownloadAll(i)):e.settings=S(S({},e.settings),r.preferences);case 4:case"end":return n.stop()}}),n)})));return function(e,t,r){return n.apply(this,arguments)}}())}},{key:"handleMonoDownloadAll",value:(n=Object(a.a)(g.a.mark((function e(t){var n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("downloadMP3Files"===t){e.next=2;break}return e.abrupt("return");case 2:n=(n=Array.from(document.querySelectorAll("a.sf-download[download][href]"))).map((function(e){return{url:e.href,title:e.download,filename:e.download}})),this.utils.downloadList.showBeforeDownloadPopup(n,{type:"audio",folderName:document.title.trim()});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"handleMonoChangeActive",value:function(e,n,r){if(t.moduleName===n&&"changeState"===e){if(this.active=r,this.active)return this.initObserver();this.observer.stop(),this.mutationHandlers.forEach((function(e){return e.disable()}))}}}]),t}(c.a);E.moduleName="yandexMusic";var D=n(17),I=n(21),L=n.n(I),T=new E;L.a.isSingle()&&Object(D.a)(E.moduleName,(function(){return T.start()}),(function(){return-1===location.href.indexOf("api/")}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={16:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([133,0]),n()}({108:function(e,t){e.exports=n(124)},133:function(e,t,n){n.r(t);var r=n(0),o=n(21),i=n.n(o),l=n(17),c=n(12),d=n.n(c),p=n(7),f=n.n(p),m=n(18),h=n.n(m),v=n(5),b=n(108),y=n.n(b),k=n(31),A=n(6),w=n.n(A),x=n(11),C=n(10),_=n(53),S=f()("twitch"),O=void 0,M=function(){function e(){Object(s.a)(this,e),this._unmount=void 0,this._hasEvents=!1}var t;return Object(u.a)(e,[{key:"start",value:function(){var e=this;S.log("start"),r.a.callFn("getPreferences").then((function(t){O=Object(x.a)({preferences:t}),e.preferences=t,e.isActive=Boolean(t.moduleTwitch),e._bindEvents(),t.moduleTwitch&&e._bindMutationWatcher()}))}},{key:"onFoundToolbar",value:function(e){var t=this;if(e||!e.parentElement){e=e.parentElement;var n={style:{background:"rgb(145, 71, 255)",padding:"5px 8px",borderRadius:"4px",paddingLeft:"10px",paddingRight:"11px",cursor:"pointer",marginLeft:"9px",marginRight:/\/clip\//.test(location.href)||document.querySelector('[data-a-target="login-button"]')?"60px":0,top:0,position:"absolute",left:"-49px"},href:"#",title:r.a.i18n.getMessage("download")};if(/videos\/\d+/.test(location.href))n.onClick=this.handleDownloadStream.bind(this);else{if(!/\/clip\//.test(location.href))return void S.error("media type not found");n.onClick=function(e){return t.handleDownloadClip(e)}}this._unmount=h()(Object(v.createElement)("a",n,Object(v.createElement)("img",{src:O.svg.getSrc("download","#fff","8px"),style:{width:"14px",marginTop:"2px",opacity:.8}})),e)}}},{key:"handleDownloadStream",value:function(e){e.preventDefault(),e.stopPropagation(),r.a.sendMessage({action:"checkAndOpenProLanding"});var t=location.href.match(/videos\/(\d+)/),n=t&&t[1]?t[1]:void 0,o=this.getVideoName();return y()(n).then((function(e){var t=e.find((function(e){return e.quality<=720}));h()(Object(v.createElement)(k.a,{filename:o,format:"mp4",sources:[{url:t.url,format:"mp4"}],convertType:"hls"}),"sf-muxer-parent")})).catch((function(t){S.error("handleDownloadStream err",t),e.target&&(e.target.style.opacity=.3,e.target.title="An error has occurred")}))}},{key:"handleDownloadClip",value:function(e){e.preventDefault(),e.stopPropagation(),r.a.sendMessage({action:"checkAndOpenProLanding"}),Object(C.a)({category:"download",subcategory:"tw",event:"video"});var t=document.querySelector("video");if(t){var n=this.getVideoName();if(!O.download(n,t.src)){var o=document.createElement("a");o.href=t.src,o.download=n,o.target="_blank",o.click(),o.remove()}}}},{key:"getVideoName",value:function(){var e=document.querySelector('[data-a-target="stream-title"]'),t=e?e.textContent.split("•")[0]:document.title;return w.a.modify(t)+".mp4"}},{key:"changeActive",value:function(e){S.log("change active",e),this.isActive=e?1:0,this.isActive?this.start():this._unmount&&this._unmount()}},{key:"_bindEvents",value:function(){var e=this;if(this._hasEvents)S.log("bind events skip");else{this._hasEvents=!0;var t=function(){var e=[];return r.a.onMessage.addListener((function(t,n,r){S.log("message",t);var o=e.find((function(e){var n=e.action;return t.action===n}));o&&o.handleCb(t,r)})),function(t,n){return e.push({action:t,handleCb:n})}}();t("getModuleInfo",(function(t,n){t.url===location.href&&n({moduleName:"twitch",state:e.isActive})})),t("changeState",(function(t){var n=t.moduleName,r=t.state;return"twitch"===n&&e.changeActive(r)})),t("updatePreferences",(function(t){var n=t.preferences;e.preferences=Object.assign(e.preferences,n)}))}}},{key:"_bindMutationWatcher",value:(t=Object(a.a)(g.a.mark((function e(){var t,n=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S.log("_bindMutationWatcher call"),this.observer&&(this.observer.stop(),this.observer.queries.forEach((function(e){var t=e.css;document.querySelectorAll(t).forEach((function(e){return function(e){return e.dataset.sfLock=""}(e)}))}))),e.prev=1,e.next=4,Object(_.a)();case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),S.error("get selectors config error",e.t0);case 10:this.observer=new d.a({queries:[{is:"added",css:t.twitch.default,callback:function(e){return e.added.forEach((function(e){var t,r;Object(C.a)({category:"append",subcategory:"tw",event:"b"}),t=e,r=n.onFoundToolbar.bind(n),t&&!t.dataset.sfLock&&(t.dataset.sfLock="1",r(t))}))}}]}),this.observer.start();case 11:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return t.apply(this,arguments)})}]),e}();i.a.isSingle()&&Object(l.a)("twitch",(function(){(new M).start()}),(function(){return!0}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={7:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([151,0]),n()}({135:function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,'._1xhxO--download-button{float:right;background-size:200% auto;cursor:pointer;color:#fff;border:none;padding:4px 8px;border-radius:6px;background-image:linear-gradient(90deg,#000 0,#434343 51%,#000);transition:.5s}._1xhxO--download-button:hover{background-position:100%}._1xhxO--download-button:after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.055em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}',""]),o.locals={"download-button":"_1xhxO--download-button",downloadButton:"_1xhxO--download-button"},t.default=o},151:function(e,t,n){n.r(t);var r=n(0),o=n(52),i=n(21),l=n.n(i),c=n(17),d=(n(1),n(5)),p=n(47),m=n(81),h=n.n(m),v=n(18),b=n.n(v),y=n(31),k=n(6),A=n.n(k),w=n(8),x=function(){function e(t){Object(s.a)(this,e),this.type="added",this.selector=t.default}var t;return Object(u.a)(e,[{key:"handle",value:function(e){var t=this;e.added.filter((function(e){return!e.dataset.sfVideoReady})).map((function(e){return e.dataset.sfVideoReady=1,e})).map((function(e){return t.renderButton(e)}))}},{key:"renderButton",value:(t=Object(a.a)(g.a.mark((function e(t){var n,o,a,i;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h.a.use(),n=t.closest(".video-container"),e.next=4,Object(w.a)({action:"matchTvFetchVideoSources",iframeVideoURL:t.src});case 4:return o=(o=e.sent).filter((function(e){return"Auto"!==e.title})).map((function(e){return S(S({},e),{},{filename:document.title})})),a=document.createElement("div"),n.parentElement.insertBefore(a,n.nextSibling),i=o.map((function(e){return{title:e.title,onClick:function(){b()(Object(d.createElement)(y.a,{filename:A.a.modify(e.filename)+".mp4",format:"mp4",sources:[{url:e.endpoint,format:"mp4"}],convertType:"hls"}),"sf-muxer-parent")}}})),e.abrupt("return",b()(Object(d.createElement)(p.b,{items:i,theme:p.c},Object(d.createElement)(p.a,null,Object(d.createElement)("div",{className:h.a.locals.downloadButton},r.a.i18n.getMessage("download")))),a));case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),C=n(53),_=function(e){function t(){return Object(s.a)(this,t),O(this,t,arguments)}var n;return Object(f.a)(t,e),Object(u.a)(t,[{key:"init",value:(n=Object(a.a)(g.a.mark((function e(){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.active=Number(this.settings.moduleMatchTv),e.next=3,Object(C.a)();case 3:this.selectorsConfig=e.sent,this.active&&this.initObserver([new x(this.selectorsConfig.match_tv)]),this.registerMonoListeners();case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"registerMonoListeners",value:function(){var e=this;r.a.onMessage.addListener(function(){var n=Object(a.a)(g.a.mark((function n(r,o,a){var i,s,u;return g.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=r.action,s=r.moduleName,u=r.state,"getModuleInfo"!==i){n.next=3;break}return n.abrupt("return",a({state:e.active,moduleName:t.moduleName}));case 3:if(s!==t.moduleName){n.next=11;break}if("updatePreferences"!==i){n.next=6;break}return n.abrupt("return",(o=r.preferences,e.settings=S(S({},e.settings),{},{preferences:o})));case 6:if("changeState"!==i){n.next=11;break}if(!u){n.next=9;break}return n.abrupt("return",(e.active=!u,e.initObserver(e.mutations)));case 9:e.observer.stop(),document.querySelectorAll(".sf--dropdown").forEach((function(e){return e.remove()}));case 11:case"end":return n.stop()}var o}),n)})));return function(e,t,r){return n.apply(this,arguments)}}())}}]),t}(o.a);_.moduleName="matchTv";var M=new _;l.a.isSingle()&&Object(c.a)(_.moduleName,(function(){return M.start()}),(function(){return!0}))},81:function(e,t,n){var r=n(36),o=n(135);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={9:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([149,0]),n()}({149:function(e,t,n){n.r(t);var r=n(0),o=n(30),a=n(7),i=n.n(a),s=n(51),u=n.n(s),l=function(e){return new Promise((function(t){return r.a.storage.set(e,t)}))};i()("ShareDistributor"),i()("helper-pro-exp");var c=i()("oauth");if(/\/callback\.php/.test(location.href)&&/code=/.test(location.href)&&r.a.callFn("auth.isAuth").then((function(e){if(e)throw new Error("User is already logged in");return r.a.callFn("auth.handleAuthCallback",[location.href])})).then((function(){r.a.sendMessage({action:"track",t:"event",tid:"UA-181742122-2",ec:"login-helper-page",el:location.host,ea:"sign-in"})})).catch((function(e){return c.error(e)})),/helper-pro\?force-activate=100/.test(location.href)&&l({helper_pro_force:!0}),/helper-pro\?force-deactivate=100/.test(location.href)&&l({helper_pro_force:!1}),/\/login/.test(location.href)&&/helper\.pro/.test(location.href)&&r.a.sendMessage({action:"track",t:"event",tid:"UA-181742122-2",ec:"login-helper-page",el:location.host,ea:"loaded"}),/helper\-pro\-manual/.test(location.href)&&/purchase=1/.test(location.href)){var d=function(){return Object(o.a)(["userInfo"]).then((function(e){return{isAuth:Boolean(e.userInfo),isPremium:e.userInfo&&e.userInfo.isPremium}}))},p=window.localStorage,f=p.getItem("lastActive"),m=Number(f)+2e4,g=f&&m>Date.now();c.log("is skip",g),d().then((function(e){var t=e.isAuth,n=e.isPremium;if(!t)throw new Error("User not auth");if(c.log("refresh info",n,g),!n&&!g)return u()(1e3).then((function(){return p.setItem("lastActive",String(Date.now())),r.a.callFn("auth.refreshUserInfo")}))})).then((function(){return d()})).then((function(e){var t=e.isPremium;if(t){var n=document.querySelector(".premium-info");n&&n.classList.remove("hidden");var r=document.querySelector("#step-email-check");r&&r.remove(),document.querySelectorAll(".step .number").forEach((function(e,t){e.textContent=String(t+1)}))}c.log("activate premium",t)})).catch((function(e){c.warn("activate premium error",e)}))}}})},function(e){!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=155)}({0:function(t,n,r){var o=e;n.a=o},155:function(e,t,n){n.r(t);var r=n(0),o=n(17),a=function(){function e(){Object(s.a)(this,e),this.overlay=null,this.init()}return Object(u.a)(e,[{key:"init",value:function(){var e=this;r.a.storage.get({lastManifestV3OnboardingShown:0},(function(t){r.a.storage.set({lastManifestV3OnboardingShown:Date.now()}),t.lastManifestV3OnboardingShown+864e5>Date.now()||(e.createOverlay(),e.addNotification())}))}},{key:"createOverlay",value:function(){this.overlay=document.createElement("div"),this.overlay.id="m3-overlay",this.overlay.style.position="fixed",this.overlay.style.top="0",this.overlay.style.left="0",this.overlay.style.right="0",this.overlay.style.bottom="0",this.overlay.style.width="100%",this.overlay.style.height="100%",this.overlay.style.backgroundColor="rgba(0, 0, 0, 0.5)",this.overlay.style.zIndex="10000",this.overlay.style.display="flex",document.body.appendChild(this.overlay)}},{key:"addNotification",value:function(){var e=this;this.overlay.innerHTML='\n            <div class="m3-notification">\n                \n                <img class="m3-logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA4FSURBVHgBrVl7cFTlFT/3se9Xkt28CEmABOQRIhIIimJBRKetMx1bpH+0Yqf/dDo+0GqnLdpprBUrbbG1Y+20nVq1Y6dG/5DBanUEHyiKvAJRIIQQ8iSP3ez7vffrOffczW4gYSL2m9nJ7r3f/b7fd87v/M45NxL8H0ZbG8j3WW92na9bPjfZdVZxVWZcpaGggIDH79aGJs63ZoNNWz7LAEgCvuSQ4ArHme+scVe0ONeax4+usYqJViG5l0qS8EIujavKMoCQQGgZLaslJck9kJXEcVBKPghD6YEL3YmepvbP03AF44sBFkJOPL6yVkmNbJRTwe/LJttayWmWoKQcoGwOgNsNYMePyURzATKIKREBCAYBxgZBTIyDiEYmhGw9mM7antcstXudOz4Z+SIQZg24ZXC3/e3f3b2tVPbfAxalGpa1SrBoOUCJB1fBZXJa0aoSLy3omuDf9MnkACbGAE53gjh5RIOc0iWs3meUx3ufxQm52eCYBWAhBbe33mRLnNplNmeaYdWNAEtbAMxmBiSrCDbDwMLnEVQUf2d5aQXnmBwAFjd/ZJPxjIKWjwMcfBeg65hImkv2vQ7r7tv82KuffSnA4t5GS8QKD7py538GVfVO2PR1AFcpu5u4GhsCCJ0DcNYBlC4AOPcWQDZx8Sr8h8Ba8VnPPABHNW9NVPcPA7zxKqSTseFczveA/Tf9/74iwEK0ybEH//yQXQ09Ia1YJ8OatQgmy66N9CMnjwNoFPhoLVsFQO0NAP3vo+XG4LJ2EFm2evlK5LuPr2nIhnfxsGc7AiBV3y/t7HtxpsflmW6ktv3hCZtp4knppttlWH0dLoquzMQA+t4BGDnMriWwNJJB3tTiYetPAYgfs7vwW1LZCzRf536GabURvbdqUxmI4b+KH9fdQQabJWAh9z2y8OdmS/QeeeNmgIZG3jVwGmDgfQadB5ofWhIgjdetPiPgoAg4HsyzkAHmr9tRUZxIi0AXwHm0bHyEDbACY+OajRbQhp/PPfz3zbMCHHl03u21yZ7tUuutdpjfyBuMn+TFBW06g7uTEwi4BL/gYTTkd9kini+b+Xf+IGTN8mY8IMrdxBkGOnQAAxZpJuOc1WvQSE02kfHvOvOT1csuC1g8tb7EEh39PcxttMI1LXyRgmriFEwGz3SDwCTHAVQr4rUxUJOdH1EthlckXsO7hO/5PzcMQM8jjLFjaK1hPsDNt4Hqdtc0yF1P4wVlRsCRoZO/NtnNc+GWbyK3cLEEWm38RIECZG1nzXSImccE0FZizDUOQmqSuKAnPp3jnvmoLggsduHSZcY6WBJpHwQtpRMbxKPLtk4LOPBQbZNL9m+Glg2cqUhyzE6UoNqpgURB4ms2kkLRSEfZ9TYfHyDPHFIS3cK4RvkKXmv02PTMolgYPcQ6XTkX9f5qSUQHfhppW1txEWAhuZTMHWAr9eIktk64D8GlAKqRGtXIK5OTp8ZH8YPS5VlUOEjZVbwZAbOV8bLFB6J5pYv43jjKYSY5FSjdFwYcsjytn0UPt6xD52Ybley5G6YA/mjXllJFm/g2rF5vJIUUW6FvLwecvRJ1Fu95l7Kl4sP811FlAMNAUpCr6TAfTEUeJ8OGFXGeBROGF+MnhmoQ7uXgKh7EabODvxP9Ro8wv50ugIXNsjUVuks83WiZBLwyeOJ6MFsboa6BuRbsLtQBwVMMPBnATdGS9ZtQDdBSE3gQq5c3IRDEzUSAA4jUItJrWBr/VF7DdLlwEKaGDe5hQbA+PEy2yOqkIBTEpP2LV4Bksn81klu5igELIcmpsU1SmU8Bq1EfRAd447wTsujqwf2YMA6xTNVczzz2U+qnogY3MJfyRjQIMAGltTz1CAp/j5/iTEkpmtYmT7qQp+55AMOfFBRDtzLOCZ5ha5ejd+2ySQ3sv05H09m+xaRqWivWCoXNM/EifkkF/Q31sdCTa0me5qG1bV72RHyIgyWLdLKV8zNEkzKclwohANRxM1KlYgXfI1bQ9bFOBqbzOMeZkDxoKedko+BEjw9MmZFrCYy64FAfRmCkEbyV/BC5fjIWBfOWNqZDJMf4/vDHCBqLHe9igLnrWPTJ2rQBVWt0CNrct4K1eRATgwvVxl7OtBAGHdK4purioohA6kBdXOVpWV6PvOSdA/LwQLNom2NTM06pxhqzOKHEy1akjJWPCdJRv2EBxcRFS/4g4R4EPcjRX4L8dVSytRKoIvYK9oB7DmezpJ8Di747algtSJNVBycWWp/kL4WBOoHrpgJML1rbVaM3BjJIVUcW31+vquFuH5iRmFabUWTHYIpI6lw2ykm9/aHU2sTUIYkb72ALV61kCUxFuSIrW2o8gxSpuYHrYVIP8h4pTCbBxiGPJcZ5X5EtSCVBoGTkRp470ANaQivtfFPD86VdkoxEVRWepRfjlxm0aOAkyxfJXQ6BhHrR7e+hGrSydUW+yzAxZ8m1Kdw8hHKY8PP3bJyNIRn7Ev9pPlGF4oCMJDJ8z2wimig+d8KnKgrHlVScnWYEK8DIufjJ8Yeo4FteKCG14gPj5hc+RaA9DJoOqXcjRhA78HBml1GqCpYxuh8ZMLBIBWrmNGnQXaupcWFKWlEjJZpMWOSiuiH/EAUdbUZpN88/xWpYATdPJ1iLKUPpQWourFGOmVOxs1focNYKrocpo8WQUtFhmGopqVAoEf3ob4aMoOXEBTmiQllTTg53CEgkJLBaDUsheLOnEL10jWoLilyde0HmH7k2l+QKjdol4i2pQqSPW6ELR1jiSE2cc5jvI5/wenSdAoo6lPg0jTMZjwKVRjKKdsmm64PdflVVLOdA4JWQ3wWlHq5VSRHAqLSSqJUT3Rwcee7RgZwkU9XsXnIhHZBqYLIYtU/uBewVogS1VFUtnHBiY3yNGlZ26cxUtBo0C4YgJzlH7AtCAdUce6tHE9KY7B9zwfwGjurxTk6zpAQiV2jbaRAVSLIoeVANK2ns+toNHLBUg2SjfDBdjzV2f/ceTtEebFgbvsago0Mw46DtyBMUmIEhfAmgdUr3nknLUptICsXZAaO97HYCFEWLZMIGj2SYYgItxXUruZG6B7rnns/UCWBRTlFs8hja62Rv0bWSRk7tffuYVnMwcVWv5lQvpmkOKJ1T7ND7jsAopC2+A2g4Qf7Qkp6Wg/oLjrTRFZNczdhhSHyIqlY+nK7Ly7hS01t+1E2q3igACSzpL1neZObvVDeffxtBIM0cyOv6jVw4FQ+STncdHySEsRIJRYXZ+QGAkYPTI+f/JVLZYRjoY36WLS40jVMWEhxg1KITT8kLxE0CPnKUD2kigHEOTDqcpYy1lmjmbSoUOUQnamqpSqtErZ77FY4DfQ+0rKuOHdvThTWTfLwjdNXJScBlv+3pzwjHP+HIPr5EnQZFebGr9OqqnqsrinbiqLueo5/6MwpK4hylVJpLhQ1pMikNUUO2ctlK6VZv8RVuwfqxdB3FNkxFRahdx5pOH7pPdDi+X8hO+4trn2pPTAJGGmiSln1ZjA6lYKifN6TyUS6uXUlzUTUCnzEQFV1cvpyVg14B6HqJ7g51M63IrQReL+gtLGOUgimbqYZO54OZDtL/LsYOBmdpAysQFfnHPkYlTQ3KYH8zj2ISkcnu7Exayl+D9/cYLzfwhBUri6grc/OYD0KqxCjoSBUIXOlVcElrRFpNBRNZn95D0CuAwKlL6aZnMjTg6FGjlqFyFT144kNI58pfkNp6ey8BjBeTry5Z9zBEwuOw/x2ObCoJKYgmmWGohS761dz3kVtlGxc2xWDpYFQc6VWei72jXEZz6VnqPChZ0Lz/tmOTopxq3/rkjuJpU9r8O+9s7x5WG38Fp49q0HMW9AAk7aSXd3kwxC1Kv9mMUXzjNWcVZ7qLwaQihQP6T08vX3lD6KVkPf88hNlwZCCWqW7etvXqrbEZAdOoXrHk2VTW8Q/4YDduEmAeVyI1PA28sAf11OrhwMsXOlTX6un1IsTk5rSRQKgCm+69G3mCNJqsS7ztQT4f3hcbVep/af3Rh29fjO8SwNKW9nR/bu0DkLM9B3vwJeLYGNOjopm1lxrRGAZPZLAQNFTYXPy+TQekMX+tJdPco+rNwrWybwlf6+kBbe8rEM84nq588uxOmOZ/ItO+IVz4xzfCSIUfYlJrh90vZKH3HJ+eykEyi/5KVRQV2zMQUy/CjcDLFzKaMNoetGjdLVz5kRePfQraO6+IWMax3V6y7RGAmZeccXxv3z7rX9761p/UbPguqelaGa5dz4sTTqoX6AUh1QlUf0ye/aIlSYfr1vMLPwJPFRpRgKo6mhtHiu59HWXtTDJoqttZUiPvkO7rTl0RYBqis808/tJLd/uS534BvnIPrMFUOq+B370R/6jgpoyXMKo5kqW8bClq4SUKqQSB1AyvkHfOosR99B+IZ5WeYHreAzW7OvZwNTXzmMX/OHjsfuzG+bcmPn/KlA7eLPmqHbBqPRYwtfweLk+PfLtTOK5x3ehSiFZJNF4PKsYRLA0iwfCoZc7ferXbdqx54hn/bHDMGrA+Xn5ZSXdsX61ooe9K2fg38MXLXMmHhVLVPMzv2I14qFW3cpDSyKD1k6gUQQzSMVSR0T4QQeqIM11JzfGcoll2mxeVn5F+cDgzWwhfDLAx6HV+384jVd7gqY3mzPgGCXItKsTqNMXikBRZRaZIQm/7sNIW5IF4SBOZIaF6j2mu5e8dzo69dt3DJ0bhCv4zekWAp4w2IZ+r32CuOqtVZ9RwtZIY9dqlpD0nhJKSzVGLrzmbTUW7LOkDA1h7p+BL/vv2f3yyGjl4RhVgAAAAAElFTkSuQmCC" alt="logo" />\n                <div class="m3-content">\n                    <h3 class="m3-header">Reinstall the OrangeMonkey and scripts</h3>\n                    <p class="m3-text">The current version of OrangeMonkey and scripts, including <span class="m3-sf">SaveFrom Helper</span>, will soon no longer be supported. Please install a new version of the extension.</p>\n                    <a class="m3-link" href="https://en1.savefrom.net/1/userjs-for-google-chrome.php" target="_blank">Install new version</a>\n                </div>\n                <svg class="m3-close" id="m3-close" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n                    <path d="M18 6L6 18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n                    <path d="M6 6L18 18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n                </svg>\n            </div>\n            <style>\n                #m3-overlay .m3-notification {\n                    position: fixed;\n                    top: 50px;\n                    right: 50px;\n                    display: flex;\n                    background-color: white;\n                    border-radius: 12px;\n                    z-index: 1000;\n                    padding: 20px;\n                }\n                #m3-overlay .m3-logo {\n                    margin-right: 20px;\n                    width: 44px;\n                    height: 44px;\n                }\n                #m3-overlay .m3-content {\n                    max-width: 330px;\n                }\n                #m3-overlay .m3-header {\n                    font-family: Inter;\n                    font-size: 16px;\n                    font-weight: 600;\n                    line-height: 24px;\n                    text-align: left;\n                    margin: 0 !important;\n                }\n                #m3-overlay .m3-text {\n                    font-family: Inter;\n                    font-size: 16px;\n                    font-weight: 400;\n                    line-height: 24px;\n                    text-align: left;\n                    margin: 16px 0;\n                    color: black;\n                }\n                #m3-overlay .m3-sf {\n                    font-weight: bold;\n                }\n                #m3-overlay .m3-link {\n                    display: inline-block;\n                    width: 191px;\n                    padding: 6px 20px 6px 20px;\n                    border-radius: 20px;\n                    font-family: Roboto;\n                    font-size: 18px;\n                    font-weight: 500;\n                    line-height: 24px;\n                    text-align: center;\n                    background-color: #0957D0;\n                    color: white !important;\n                    text-decoration: none;\n                }\n                #m3-overlay .m3-close {\n                    margin-left: 20px;\n                    cursor: pointer;\n                    width: 24px;\n                    height: 24px;\n                }\n            </style>\n        ',document.getElementById("m3-close").onclick=function(){var t;null===(t=e.overlay)||void 0===t||t.remove()}}}]),e}();Object(o.a)("tab",(function(){r.a.sendMessage({action:"openPage"}),GM_info&&!GM_info.version.startsWith("2")&&new a}))},17:function(e,t,n){n.d(t,"b",(function(){return i}));var r=n(0),o=[],a=function(e,t,n){return Promise.resolve().then((function(){return!n||n()})).then((function(n){n&&(-1===o.indexOf(e)&&o.push(e),t())}))},i=function(e,t,n){return a(e,(function(){return r.a.callFn("getPreferences").then((function(n){t(e,{preferences:n})}))}),n)};t.a=a}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={1:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([147,0]),n()}({113:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none"><g stroke="#fff" stroke-linecap="round" stroke-width="1.467" opacity=".5"><path d="m6.233 6.233 9.334 9.334M6.233 15.767l9.334-9.334"></path></g></svg>'},114:function(e,t){e.exports=n(125)},115:function(e,t){e.exports=n(127)},116:function(e,t){e.exports=n(80)},117:function(e,t){e.exports=n(81)},118:function(e,t){e.exports=n(82)},119:function(e,t){e.exports=n(131)},120:function(e,t){e.exports=n(132)},121:function(e,t){e.exports=n(133)},144:function(e,t,n){n.r(t);var r=n(24),o=n.n(r)()(!1);o.push([e.i,'.hGQD\\+--content{position:fixed;z-index:1000;display:flex;flex-direction:column;width:100%}.XZcZ2--content-1,.Km92x--wrapper-1{min-height:56px}.JfxVG--content-2,.bRWai--content-3,.fu2k2--wrapper-2,.iyyZL--wrapper-3{min-height:78px}.oq\\+eo--inner{position:relative;display:grid;justify-items:center;gap:10px;width:100%;height:100%;font-family:Roboto,sans-serif;font-size:1rem;font-style:normal;font-weight:400;line-height:1.25;color:#fff;text-align:center;overflow:hidden}@media screen and (max-width:1080px){.oq\\+eo--inner{gap:6px;font-size:.875rem}}.rSbuk--inner-1{padding:4px 26px 0}@media screen and (max-width:1080px){.rSbuk--inner-1{padding:4px 10px 0}}.wvNVZ--inner-2,.rd23D--inner-3{padding:12px 26px}@media screen and (max-width:1080px){.wvNVZ--inner-2,.rd23D--inner-3{padding:13px 10px}}.XZcZ2--content-1 .oq\\+eo--inner{grid-template-columns:auto auto auto 1fr 1fr auto;grid-template-areas:"button cities dateFrom promo cost link";background-color:#ef476f}.JfxVG--content-2 .oq\\+eo--inner{background-color:#00213e}.JfxVG--content-2 .oq\\+eo--inner,.bRWai--content-3 .oq\\+eo--inner{grid-template-columns:auto auto auto auto 1fr auto;grid-template-areas:"button cities dateFrom dateTo cost link"}._5U3K2--video{position:absolute;top:0;left:0;z-index:-1;height:100%;width:100%;object-fit:cover;object-position:50% 90%}.wNc1E--closeButton{grid-area:button;display:flex;justify-content:center;align-items:center;border:none;background:transparent;cursor:pointer;transform:scale(1);transition:transform .2s ease-in-out}.wNc1E--closeButton:hover{transform:scale(1.5)}.wNc1E--closeButton svg{width:22px;height:22px}.YcHOg--info{display:flex;padding:5px 16px;gap:8px;justify-content:center;align-items:center;border-radius:30px;background:hsla(0,0%,100%,.16)}@media screen and (max-width:1080px){.YcHOg--info{padding:2px 10px;gap:6px}}.bRWai--content-3 .YcHOg--info{background:rgba(0,0,0,.16)}.bheUk--info--cities{grid-area:cities;align-self:center}.XZcZ2--content-1 .L\\+QlM--code{display:block}@media screen and (max-width:1080px){.XZcZ2--content-1 .L\\+QlM--code{display:none}}.CNPhJ--info--dateFrom{grid-area:dateFrom;align-self:center}.ZRPhc--info--dateTo{grid-area:dateTo;align-self:center}.IPucX--promo{grid-area:promo;display:flex;justify-content:center;align-items:center;padding:15px 14px;border-radius:6px 6px 0 0;background-color:#fff;font-size:1.125rem;font-weight:600;color:#00213e;white-space:nowrap}@media screen and (max-width:1080px){.IPucX--promo{padding:15px 10px;font-size:1rem}}.kd6Ld--cost{grid-area:cost;align-self:center;font-weight:600}.JfxVG--content-2 .kd6Ld--cost,.bRWai--content-3 .kd6Ld--cost{justify-self:end;margin-right:14px}@media screen and (max-width:1080px){.JfxVG--content-2 .kd6Ld--cost,.bRWai--content-3 .kd6Ld--cost{margin-right:5px}}.kjqJy--link{grid-area:link;align-self:center;display:flex;justify-content:center;align-items:center;padding:5px 32px;border-radius:40px;background-color:#fff;font-weight:600;color:#00213e;text-decoration:none;cursor:pointer}@media screen and (max-width:1080px){.kjqJy--link{padding:5px 20px}}.kjqJy--link:hover{box-shadow:0 0 5px rgba(20,20,20,.5)}.kjqJy--link:active{box-shadow:inset 0 0 3px -1px}',""]),o.locals={content:"hGQD+--content","content-1":"XZcZ2--content-1",content1:"XZcZ2--content-1","wrapper-1":"Km92x--wrapper-1",wrapper1:"Km92x--wrapper-1","content-2":"JfxVG--content-2",content2:"JfxVG--content-2","content-3":"bRWai--content-3",content3:"bRWai--content-3","wrapper-2":"fu2k2--wrapper-2",wrapper2:"fu2k2--wrapper-2","wrapper-3":"iyyZL--wrapper-3",wrapper3:"iyyZL--wrapper-3",inner:"oq+eo--inner","inner-1":"rSbuk--inner-1",inner1:"rSbuk--inner-1","inner-2":"wvNVZ--inner-2",inner2:"wvNVZ--inner-2","inner-3":"rd23D--inner-3",inner3:"rd23D--inner-3",video:"_5U3K2--video",closeButton:"wNc1E--closeButton",info:"YcHOg--info","info--cities":"bheUk--info--cities",infoCities:"bheUk--info--cities",code:"L+QlM--code","info--dateFrom":"CNPhJ--info--dateFrom",infoDateFrom:"CNPhJ--info--dateFrom","info--dateTo":"ZRPhc--info--dateTo",infoDateTo:"ZRPhc--info--dateTo",promo:"IPucX--promo",cost:"kd6Ld--cost",link:"kjqJy--link"},t.default=o},147:function(e,t,n){n.r(t);var r=n(5),o=n(18),l=n.n(o),c=n(1),d=n.n(c),p=n(29),f=n.n(p),m=n(14),v=n.n(m),b=n(113),y=n.n(b),k=n(114),A=n(115),w=n(72),C=n(0),_=n(30),O=function(){function e(){Object(s.a)(this,e)}var t,n;return Object(u.a)(e,null,[{key:"getData",value:(n=Object(a.a)(g.a.mark((function e(t){var n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.a)(Object(i.a)({},this.storageKey,null));case 2:return n=e.sent,e.abrupt("return",t.reduce((function(e,t){return e&&e[t]}),n[this.storageKey]));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"updateData",value:(t=Object(a.a)(g.a.mark((function e(t,n){var r;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.a)(Object(i.a)({},this.storageKey,{}));case 2:return r=e.sent,e.abrupt("return",(t.reduce((function(e,t,r,o){return r===o.length-1?(e[t]=S(S({},e[t]),n),e):(e[t]=S({},e[t]),e[t])}),r[this.storageKey]),C.a.storage.set(r)));case 4:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),e}();O.storageKey="aviaBar";var M,E=n(116),D=n.n(E),I=n(117),L=n.n(I),T=n(118),j=function(){function e(){Object(s.a)(this,e)}var t,n,r,o;return Object(u.a)(e,null,[{key:"getConfig",value:(o=Object(a.a)(g.a.mark((function e(){var t,n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.getData(["config"]);case 2:if(!((t=e.sent)&&t.exp+this.CONFIG_TTL>Date.now())){e.next=5;break}return e.abrupt("return",t);case 5:return e.next=7,w.Api.requestConfig();case 7:return n=e.sent,e.next=10,O.updateData(["config"],n);case 10:return e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"getCityByAirportCode",value:(r=Object(a.a)(g.a.mark((function e(t){var n,r,o;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.getData(["cities"]);case 2:if(n=e.sent,!(r=n&&n[t])){e.next=6;break}return e.abrupt("return",r);case 6:return e.next=8,w.Api.requestCityByAirportCode(t);case 8:return o=e.sent,e.next=11,O.updateData(["cities"],Object(i.a)({},t,o));case 11:return e.abrupt("return",o);case 12:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getModuleOptions",value:(n=Object(a.a)(g.a.mark((function e(t){var n,r;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.getData(["modulesOptions","module:"+t]);case 2:if(!((n=e.sent)&&n.exp+this.MODULE_OPTIONS_TTL>Date.now())){e.next=5;break}return e.abrupt("return",n);case 5:return e.next=7,w.Api.requestModuleOptions(t);case 7:return r=e.sent,e.next=10,O.updateData(["modulesOptions","module:"+t],r);case 10:return e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"checkUrl",value:function(e,t){return L()(D()(t))(e)}},{key:"checkSample",value:function(e){var t=this.getSampleFromConfig(e);return Math.floor(100*Math.random())<t}},{key:"checkComponentEnabled",value:(t=Object(a.a)(g.a.mark((function e(){var t;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.getData(["component"]);case 2:return t=e.sent,e.abrupt("return",!(!t||t.exp)||!(t&&t.exp+this.COMPONENT_TTL>Date.now()));case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getSampleFromConfig",value:function(e){var t=e.firefoxSample,n=e.userJsSample,r=e.edgeSample,o=e.unknownSample,a=window.navigator.userAgent.toLowerCase().includes("edg");return C.a.isGM?n:C.a.isFirefox?t:a?r:o}}]),e}();M=j,j.CONFIG_TTL=864e5,j.MODULE_OPTIONS_TTL=864e5,j.COMPONENT_TTL=864e5,j.LOCAL_STORAGE_KEY="aviabar_viewtype",j.getViewType=function(){var e=window.localStorage.getItem(M.LOCAL_STORAGE_KEY);return e||(e=Object(T.getRandomInteger)(1,3).toString(),window.localStorage.setItem(M.LOCAL_STORAGE_KEY,e)),parseInt(e,10)};var P=n(8),F=function(e){var t=j.getViewType(),n=Object(c.useRef)(null);Object(c.useEffect)((function(){Object(P.a)({action:"sendAnalytics",params:{t:"event",ec:"show_bar",ea:"show_bar",tid:"G-W8NGMXEEVX",url:new URL(window.location.href).hostname,view_type:t}})}),[]);var r=function(e){var t=parseInt(e.slice(0,4),10),n=parseInt(e.slice(4,6),10)-1,r=parseInt(e.slice(6,8),10),o=new Date(t,n,r);return"".concat(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][o.getDay()],", ").concat(r," ").concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()])};return d.a.createElement("div",{ref:n,className:v()(f.a.wrapper,f.a["wrapper-"+t])},d.a.createElement("div",{className:v()(f.a.content,f.a["content-"+t])},d.a.createElement("div",{className:v()(f.a.inner,f.a["inner-"+t])},3===t&&d.a.createElement("video",{className:f.a.video,playsinline:!0,autoplay:!0,muted:!0,loop:!0},d.a.createElement("source",{src:"https://travelbar.tools/static/aviaBar/cloud.mp4",type:"video/mp4"})),d.a.createElement("button",{className:f.a.closeButton,type:"button",dangerouslySetInnerHTML:{__html:y.a},onClick:function(){n.current&&(Object(P.a)({action:"sendAnalytics",params:{t:"event",ec:"hide_bar",ea:"click_close_button",tid:"G-W8NGMXEEVX",url:new URL(window.location.href).hostname,view_type:t}}),O.updateData(["component"],{exp:Date.now()}),n.current.remove())}}),d.a.createElement("div",{className:v()(f.a.info,f.a["info--cities"])},e.cityFrom,d.a.createElement("span",{className:f.a.code},"(",e.codeFrom,")"),d.a.createElement(A.Arrows,{dateTo:e.dateTo}),e.cityTo,d.a.createElement("span",{className:f.a.code},"(",e.codeTo,")")),d.a.createElement("div",{className:v()(f.a.info,f.a["info--dateFrom"])},r(e.dateFrom)),1!==t&&e.dateTo&&d.a.createElement("div",{className:v()(f.a.info,f.a["info--dateTo"])},r(e.dateTo)),1===t&&d.a.createElement("div",{className:f.a.promo},"🔥 Found a better price!"),d.a.createElement("div",{className:f.a.cost},"Save up to 50% of the cost!"),d.a.createElement("a",{className:f.a.link,href:function(e){return"https://wowfare.com/dl/".concat(e.codeFrom,"_").concat(e.codeTo,"_").concat(e.dateFrom).concat(e.dateTo?"-".concat(e.codeTo,"_").concat(e.codeFrom,"_").concat(e.dateTo):"","/?triptype=").concat(e.tripType,"&adt=").concat(e.adults,"&cabin=").concat(e.cabinClass,"&chd=").concat(e.children,"&inf=").concat(e.infants)}(e),target:"_blank",onClick:function(){Object(P.a)({action:"sendAnalytics",params:{t:"event",ec:"learn_more_button",ea:"click_learn_more_button",tid:"G-W8NGMXEEVX",url:new URL(window.location.href).hostname,view_type:t}})}},"Learn more")),1!==t&&d.a.createElement(k.Ticker,null)))},N=n(119),B=n(120),R=n(121),z=function(){function e(){Object(s.a)(this,e)}return Object(u.a)(e,null,[{key:"createModule",value:function(e,t){var n=Object.entries(this.modules).find((function(t){var n=Object(h.a)(t,1)[0];return e.hostname.includes(n)}))||[],r=Object(h.a)(n,2)[1];if(!r)throw new Error("module is not found");return new r(e,t)}},{key:"getModuleName",value:function(e){var t=Object.keys(this.modules).find((function(t){return e.hostname.includes(t)}));if(!t)throw new Error("module name is not found");return t}}]),e}();function q(e){var t=document.getElementById("avia-bar-container");t||((t=document.createElement("div")).id="avia-bar-container",document.body.prepend(t)),l()(Object(r.createElement)(F,e),t)}z.modules={skyscanner:function(){function e(t,n){Object(s.a)(this,e),this.location=t,this.moduleOptions=n,this.AGE_OF_ADULTHOOD=12,this.AGE_OF_CHILDHOOD=2,this.location=t,this.moduleOptions=n,this.AGE_OF_ADULTHOOD=12,this.AGE_OF_CHILDHOOD=2}var t,n;return Object(u.a)(e,[{key:"getProps",value:(n=Object(a.a)(g.a.mark((function e(){var t,n,r,o,a;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.moduleOptions,n=t.pathnameRegex,r=t.params){e.next=3;break}throw new Error("params is not defined");case 3:if(n){e.next=5;break}throw new Error("pathnameRegex is not defined");case 5:return o=this.definePropsFromParams(r),a=this.definePropsFromPathname(Object(B.convertStringToRegex)(n)),e.t0=a.codeFrom.toUpperCase(),e.t1=a.codeTo.toUpperCase(),e.next=10,this.getCityByAirportCode(a.codeFrom.toUpperCase());case 10:return e.t2=e.sent,e.next=13,this.getCityByAirportCode(a.codeTo.toUpperCase());case 13:return e.t3=e.sent,e.t4=this.formatDateParam(a.dateFrom),e.t5=this.formatDateParam(a.dateTo),e.t6=this.determineTripType(o.rtn,a.dateTo),e.t7=this.determineCabinClass(o.cabinclass),e.t8=this.calculateAdults(o).toString(),e.t9=this.calculateChildren(o).toString(),e.t10=this.calculateInfants(o).toString(),e.abrupt("return",{codeFrom:e.t0,codeTo:e.t1,cityFrom:e.t2,cityTo:e.t3,dateFrom:e.t4,dateTo:e.t5,tripType:e.t6,cabinClass:e.t7,adults:e.t8,children:e.t9,infants:e.t10});case 22:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"definePropsFromParams",value:function(e){var t=Object(R.getSearchParams)(this.location.href),n={};return e.forEach((function(e){t.hasOwnProperty(e)&&(n[e]=t[e])})),n}},{key:"definePropsFromPathname",value:function(e){if(!(e instanceof RegExp))throw new Error("PathnameRegex is not valid");var t=this.location.pathname.match(e)||[],n=Object(h.a)(t,5),r=n[1],o=n[2],a=n[3],i=n[4];if(!(r||o||a||i))throw new Error("unkown path type");if(!r)throw new Error("codeFrom param is not found in pathname");if(!o)throw new Error("codeTo param is not found in pathname");if(r===o)throw new Error("codeFrom and codeTo params are equal");if(3!==r.length)throw new Error("codeFrom param is not valid");if(3!==o.length)throw new Error("codeTo param is not valid");if(!a)throw new Error("dateFrom param is not found in pathname");if(!/^\d{6}$/.test(a))throw new Error("dateFrom param is not valid");if(i&&!/^\d{6}$/.test(i))throw new Error("dateTo param is not valid");return{codeFrom:r,codeTo:o,dateFrom:a,dateTo:i}}},{key:"formatDateParam",value:function(e){return e?"20"+e:""}},{key:"determineTripType",value:function(e,t){return Number(e)||t?"RT":"OW"}},{key:"determineCabinClass",value:function(e){switch(e){case"economy":return"E";case"premiumeconomy":case"premium_economy":return"P";case"business":return"B";case"first":return"F";default:throw new Error("cabin class ".concat(e," is not valid"))}}},{key:"calculateAdults",value:function(e){var t=this,n=e.adults,r=e.adultsv2;if(n)return Number(n);if(r){var o=e.childrenv2;return Number(r)+o.split("|").map((function(e){return Number(e)})).filter((function(e){return e>=t.AGE_OF_ADULTHOOD})).length}throw new Error("information about adults is not found")}},{key:"calculateChildren",value:function(e){var t=this,n=e.children,r=e.childrenv2;if(n)return Number(n);if(r)return r.split("|").map((function(e){return Number(e)})).filter((function(e){return e<t.AGE_OF_ADULTHOOD&&e>=t.AGE_OF_CHILDHOOD})).length;if(""===r)return 0;throw new Error("information about children is not found")}},{key:"calculateInfants",value:function(e){var t=this,n=e.infants,r=e.childrenv2;if(n)return Number(n);if(r)return r.split("|").map((function(e){return Number(e)})).filter((function(e){return e<t.AGE_OF_CHILDHOOD})).length;if(""===r)return 0;throw new Error("information about infants is not found")}},{key:"getCityByAirportCode",value:(t=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(P.a)({action:"getCityByAirportCode",airportCode:t,url:new URL(window.location.href).hostname});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}()},Object(P.a)({action:"getModuleOptions",moduleName:function(){try{return z.getModuleName(window.location)}catch(e){throw Object(P.a)({action:"sendAnalytics",params:{t:"event",ec:"error",ea:"error",tid:"G-W8NGMXEEVX",url:new URL(window.location.href).hostname,message:e.message}}),e}}(),url:new URL(window.location.href).hostname}).then((function(e){Object(N.initHrefChangeEvent)();var t=new MutationObserver(function(){var t=Object(a.a)(g.a.mark((function t(n,r){var o,a,i;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=x(n),t.prev=1,o.s();case 3:if((a=o.n()).done){t.next=25;break}if(a.value,!document.querySelector(e.selector)){t.next=23;break}return r.disconnect(),t.next=9,j.checkComponentEnabled();case 9:if(!t.sent){t.next=22;break}return t.prev=10,i=z.createModule(window.location,e),t.t0=q,t.next=15,i.getProps();case 15:t.t1=t.sent,(0,t.t0)(t.t1),t.next=22;break;case 19:t.prev=19,t.t2=t.catch(10),Object(P.a)({action:"sendAnalytics",params:{t:"event",ec:"error",ea:"error",tid:"G-W8NGMXEEVX",url:new URL(window.location.href).hostname,message:t.t2.message}});case 22:return t.abrupt("break",25);case 23:t.next=3;break;case 25:t.next=30;break;case 27:t.prev=27,t.t3=t.catch(1),o.e(t.t3);case 30:return t.prev=30,o.f(),t.finish(30);case 33:case"end":return t.stop()}}),t,null,[[1,27,30,33],[10,19]])})));return function(e,n){return t.apply(this,arguments)}}()),n={childList:!0,subtree:!0};t.observe(document.body,n),document.addEventListener("hrefchange",(function(){var e=document.getElementById("avia-bar-container");e&&e.remove(),t.observe(document.body,n)}))}))},29:function(e,t,n){var r=n(36),o=n(144);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);r(o,{injectType:"singletonStyleTag",insert:"head",singleton:!0}),e.exports=o.locals||{}},72:function(e,t){e.exports=n(83)}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={5:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([143,0]),n()}({143:function(e,t,n){n.r(t);var r=n(0),o=n(11),a=n(17),i=n(27),s=n.n(i),u=n(21);n.n(u).a.isSingle()&&Object(a.b)("lm",(function(e,t){var n=Object(o.a)(t),a=t.preferences,i=a.lmMediaHosting?1:0;a.showUmmyInfo&&setTimeout((function(){s()})),r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:i,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return u.changeState(t.state)}"updatePreferences"!==t.action?i&&"updateLinks"===t.action&&(u.savefromLinkCount=-1,u.run()):Object.assign(a,t.preferences)})),i&&setTimeout((function(){u.run()}));var s=function(){"object"==typeof location&&/videodownloader\.ummy\.net/.test(location.href)&&/pozdravlyaem|congratulations|tebrikler/.test(location.href)&&(r.a.sendMessage({action:"updateOption",key:"showUmmyInfo",value:0}),r.a.sendMessage({action:"updateOption",key:"ummyDetected",value:1}))},u={htmlAfter:"",linkText:"",linkStyle:{border:"none",textDecoration:"none",padding:"0",position:"relative"},imgStyle:{border:"none",width:"auto",height:"auto"},buttonSrc:"data:image/gif;base64,R0lGODlhEAAQAOZ3APf39+Xl5fT09OPj4/Hx8evr6/3+/u7u7uDh4OPi497e3t7e3/z8/P79/X3GbuXl5ubl5eHg4WzFUfb39+Pj4lzGOV7LOPz7+/n6+vn5+ZTLj9/e387Ozt7f3/7+/vv7/ISbePn5+m/JV1nRKXmVbkCnKVrSLDqsCuDh4d/e3uDn3/z7/H6TdVeaV1uSW+bn5v39/eXm5eXm5kyHP/f39pzGmVy7J3yRd9/f3mLEKkXCHJbka2TVM5vaZn6Wdfn6+YG/c/r5+ZO/jeLi41aHTIeageLn4f39/vr6+kzNG2PVM5i+lomdf2CXYKHVmtzo2YXNeDqsBebl5uHh4HDKWN3g3kKqEH6WeZHTXIPKdnSPbv79/pfmbE7PHpe1l4O8dTO5DODg4VDLIlKUUtzo2J7SmEWsLlG4NJbFjkrJHP7+/VK5Nfz8+zmnC3KKa+Hg4OHh4Y63j/3+/eDg4Ojo6P///8DAwP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAHcALAAAAAAQABAAAAfWgHd2g4SFhYJzdYqLjIpzgx5bBgYwHg1Hk2oNDXKDFwwfDF5NLmMtcStsn4MhGT8YS04aGmU1QRhIGYMTADQAQlAODlloAMYTgwICRmRfVBISIkBPKsqDBAREZmcVFhYVayUz2IMHB1dWOmImI2lgUVrmgwUFLzdtXTxKSSduMfSD6Aik48MGlx05SAykM0gKhAAPAhTB0oNFABkPHg5KMIBCxzlMQFQZMGBIggSDpsCJgGDOmzkIUCAIM2dOhEEcNijQuQDHgg4KOqRYwMGOIENIB90JBAA7",sfref:"&utm_source={sfHelperName}&utm_medium=extensions&utm_campaign=link_modifier",pageUrl:"http://savefrom.net/",anchorAttribute:"savefrom_lm",anchorAttributeLink:"savefrom_lm_is_link",anchorIndexAttribute:"savefrom_lm_index",linkRegExp:null,savefromLinkCount:0,re:{mediahosting:{"youtube.com":[/^https?:\/\/([a-z]+\.)?youtube\.com\/(#!?\/)?watch\?.*v=/i,/^https?:\/\/([a-z0-9]+\.)?youtube\.com\/(embed|v)\/[\w\-]+/i],"youtu.be":[/^https?:\/\/([a-z]+\.)?youtu\.be\/[\w\-]+/i],"google.com":[/^http:\/\/video\.google\.com\/videoplay\?.*docid=/i],"break.com":[/^http:\/\/(www\.)?break\.com\/(index|movies\w*|(\w+\-)+\w+)\/.+\.html$/i,/^http:\/\/view\.break\.com\/\d+/i],"vimeo.com":[/^http:\/\/([\w\-]+\.)?vimeo\.com\/\d+$/i],"sevenload.com":[/^http:\/\/([\w\-]+\.)?sevenload\.com\/videos\/[-\w\+\/=]+/i,/^http:\/\/([\w\-]+\.)?sevenload\.com\/shows\/.+/i],"facebook.com":[/^https?:\/\/(?:www\.)facebook\.com\/([^\/]+\/)*video\.php\?([^&]+&)*v=\d+/i],"mail.ru":[/^http:\/\/([a-z0-9_-]+\.)?video\.mail\.ru\/(.+\/)+\d+\.html/i,/^http:\/\/r\.mail\.ru\/\w+\/video\.mail\.ru\/(.+\/)+\d+\.html/i],"yandex.ru":[/^http:\/\/video\.yandex\.ru\/users\/[-\w,!\+]+\/view\/[-\w,!\+]+\/?/i],"rambler.ru":[/^http:\/\/vision\.rambler\.ru\/users\/[^\/\s]+\/\d+\/[-\w_\+!]+\/?/i],"smotri.com":[/^http:\/\/([a-z0-9_-]+\.)?smotri\.com\/video\/view\/\?.*id=v[0-9a-f]/i],"tvigle.ru":[/^http:\/\/(www\.)?tvigle\.ru\/channel\/\d+\?.*vid_id=\d+/i,/^http:\/\/(www\.)tvigle\.ru\/prg\/\d+\/\d+/i],"1tv.ru":[/^http:\/\/(www\.)?1tv\.ru(\:\d+)?\/newsvideo\/\d+/i,/^http:\/\/(www\.)?1tv\.ru(\:\d+)?\/news\/\w+\d+/i],"ntv.ru":[/^http:\/\/news\.ntv\.ru\/(\w+\/)?\d+\/video\/?/i],"vesti.ru":[/^http:\/\/(www\.)?vesti\.ru\/videos\?.*vid=\d+/i],"mreporter.ru":[/^http:\/\/(www\.)?mreporter\.ru\/reportermessages\!viewreport\.do[^\?]*\?.*reportid=\d+/i],"autoplustv.ru":[/^http:\/\/(www\.)?autoplustv\.ru\/494\/\?id=\d+/i],"amik.ru":[/^http:\/\/(www\.)?amik\.ru\/video\/vid\d+\.html/i,/^http:\/\/(www\.)?amik\.ru\/video\/vcid\d+\.html/i],"life.ru":[/^http:\/\/([\w+\-]+\.)?life\.ru\/video\/\d+/i]}},parseHref:function(e,t){var n=[];n.push(e);var r=e.toLowerCase().indexOf("http://",7);if(r>7)n.push(e.substring(r));else if(t){var o=t.match(/http%3a(%2f%2f|\/\/)[^\s\&\"\<\>]+/i);if(o&&o.length>0)n.push(decodeURIComponent(o[0]));else{var a="";try{a=decodeURIComponent(t)}catch(e){}if(a&&(o=a.match(/((?:aHR0cDovL|aHR0cHM6Ly)[a-z0-9+\/=]+)/i))&&o.length>1){try{o=atob(o[1])}catch(e){o=""}-1!=o.search(/^https?:\/\//i)&&n.push(decodeURIComponent(o))}}}return n},href:function(e){return e.getAttribute("href")||""},getElementIndex:function(e){var t=e.innerHTML;if(!t||" "==t)return 1;var n=e.style.backgroundImage;if(n&&"none"!=n)return 1;for(var r=e.getElementsByTagName("*"),o=0;o<r.length;o++){if("IMG"==r[o].tagName)return 2;if((n=r[o].style.backgroundImage)&&"none"!=n)return 1}return 0},run:function(){n.embedDownloader.init(),u.sfref=u.sfref.replace("{sfHelperName}",a.sfHelperName);var e=!!a.lmMediaHosting;if(i=1,u.linkRegExp={},e)for(var t in u.re.mediahosting)u.linkRegExp[t]=u.re.mediahosting[t];var o=document.getElementsByTagName("a");if(u.savefromLinkCount!=o.length){u.savefromLinkCount=o.length;for(var s={},l="",c=(t=0,o.length);t<c;t++){var d=v(o[t]);if(d){var p=0,f=o[t].getAttribute(u.anchorIndexAttribute);0===f||f?p=parseInt(f):(p=u.getElementIndex(o[t]),o[t].setAttribute(u.anchorIndexAttribute,p)),s[d]?p<s[d].index?(s[d].elements=[o[t]],s[d].index=p,l=d):p==s[d].index&&d!=l&&(s[d].elements.push(o[t]),l=d):(s[d]={index:p,elements:[o[t]]},l=d)}}for(var t in s){var m=0;for(c=s[t].elements.length;m<c;m++){var g=s[t].elements[m];g.getAttribute(u.anchorAttribute)||b(g,t)}}}function h(e,t){if(!e)return!1;if(e==window.location.href)return!1;if(!(t=n.getTopLevelDomain(t))||!u.linkRegExp[t])return!1;for(var r=0;r<u.linkRegExp[t].length;r++)if(-1!=e.search(u.linkRegExp[t][r]))return!0;return!1}function v(e){var t=e.href;if("string"==typeof t&&-1==t.search(/^https?:\/\/([\w\-]+\.)?savefrom\.net\//i)){var n=u.parseHref(t,e.search);if(n.length>0){if(0!=u.href(e).indexOf("#")&&h(n[0],e.hostname))return n[0];if(n.length>1)for(var r=1;r<n.length;r++){var o=document.createElement("a");if(o.href=n[r],0!=u.href(o).indexOf("#")&&h(n[r],o.hostname))return n[r]}}}return""}function b(e,t){if(e){e.setAttribute(u.anchorAttribute,"1");var n=document.createElement("span");n.setAttribute("style","padding: 0; margin: 0; margin-left: 5px;"),n.addEventListener("click",(function(e){e.stopPropagation()}));var o=e.parentNode;if(o){try{t=encodeURIComponent(t)}catch(e){return}var a=u.pageUrl+"?url="+t;u.sfref&&(a+=u.sfref);var i=document.createElement("a");for(var s in i.href=a,i.target="_blank",i.title=r.a.i18n.getMessage("lmButtonTitle"),i.style.backgroundImage="url("+u.buttonSrc+")",i.style.backgroundRepeat="no-repeat",i.style.width="16px",i.style.height="16px",i.style.display="inline-block",u.linkStyle)i.style[s]=u.linkStyle[s];e.style.zIndex&&(i.style.zIndex=e.style.zIndex),i.setAttribute(u.anchorAttribute,"1"),i.setAttribute(u.anchorAttributeLink,"1"),u.linkText&&(i.textContent=u.linkText),n.appendChild(i),u.htmlAfter&&(n.textContent+=u.htmlAfter),e.nextSibling?o.insertBefore(n,e.nextSibling):o.appendChild(n)}}}},changeState:function(e){a.lmMediaHosting=e,i=e;for(var t,n=document.querySelectorAll("a["+u.anchorAttributeLink+"]"),r=0;t=n[r];r++)(t=t.parentNode).parentNode.removeChild(t);var o=document.querySelectorAll(["*["+u.anchorAttribute+"]","*["+u.anchorIndexAttribute+"]"]);for(r=0;t=o[r];r++)t.removeAttribute(u.anchorAttribute),t.removeAttribute(u.anchorIndexAttribute);u.savefromLinkCount=-1,e&&u.run()}}}),(function(){return!(document.contentType&&"text/html"!==document.contentType||s()()||/yandex\.com\/launcher/.test(location.href))}))}})},function(e){!function(e){function t(t){for(var r,i,s=t[0],u=t[1],l=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);p.length;)p.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={8:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=u;a.push([145,0]),n()}({145:function(e,t,n){n.r(t);var r=n(21),o=n.n(r),a=n(17);o.a.isSingle()&&Object(a.a)("migrateTM",(function(){var e=document.querySelector(".promo__upgrade");e&&e.classList.remove("hidden")}),(function(){return-1!==location.href.indexOf("savefrom.net/user.php")}))}})}],e.loadedContentScripts=[],e.contentScriptMono=null,e}return Object(f.a)(t,e),Object(u.a)(t,[{key:"createMonoInstance",value:function(e){throw new Error("Instance type (".concat(e,") is not found"))}},{key:"addMonoInstance",value:function(e){var t=this;e.onDestroy.addListener((function(){var n=t.monoInstances.indexOf(e);-1!==n&&t.monoInstances.splice(n,1)})),this.monoInstances.push(e)}},{key:"getContentScriptMono",value:function(){return this.contentScriptMono||(this.contentScriptMono=this.createMonoInstance("contentScript")),this.contentScriptMono}},{key:"inject",value:function(){var e=this,t=[],n=[],r=[];this.contentScripts.forEach((function(e){D(e)&&e.js.forEach((function(o){"document_start"===e.run_at?-1===n.indexOf(o)&&n.push(o):"document_end"===e.run_at?-1===t.indexOf(o)&&t.push(o):-1===r.indexOf(o)&&r.push(o)}))})),n.length&&this.runWhenDocumentStart((function(){e.executeContentScripts(n)})),t.length&&this.runWhenDocumentEnd((function(){e.executeContentScripts(t)})),r.length&&this.runWhenDocumentIdle((function(){e.executeContentScripts(r)}))}},{key:"runWhenDocumentStart",value:function(e){e()}},{key:"runWhenDocumentEnd",value:function(e){this.runWhenDocumentStart((function(){if(-1!==["interactive","complete"].indexOf(document.readyState))e();else{var t=function t(){-1!==["interactive","complete"].indexOf(document.readyState)&&(document.removeEventListener("DOMContentLoaded",t),window.removeEventListener("load",t),e&&e(),e=null)};document.addEventListener("DOMContentLoaded",t),window.addEventListener("load",t)}}))}},{key:"runWhenDocumentIdle",value:function(e){this.runWhenDocumentEnd((function(){try{if(!window.requestIdleCallback)throw new Error("requestIdleCallback in not supported");window.requestIdleCallback(e)}catch(t){setTimeout(e,1)}}))}},{key:"executeScript",value:function(e){var t=this;"document_start"===e.runAt?this.runWhenDocumentStart((function(){t.executeContentScripts([t.contentScriptMap[e.file]])})):"document_end"===e.runAt?this.runWhenDocumentEnd((function(){t.executeContentScripts([t.contentScriptMap[e.file]])})):this.runWhenDocumentIdle((function(){t.executeContentScripts([t.contentScriptMap[e.file]])}))}},{key:"isLoadedFile",value:function(e){return-1!==this.loadedContentScripts.indexOf(this.contentScriptMap[e])}},{key:"executeContentScripts",value:function(e){var t=this;return this.executeScripts(e.map((function(e){return-1===t.loadedContentScripts.indexOf(e)&&t.loadedContentScripts.push(e),t.contentScriptIndex[e]})),this.getContentScriptMono())}},{key:"executeScripts",value:function(e,t){e.forEach((function(e){try{e(t)}catch(e){M.error("executeScript error",e)}}))}}]),t}(k(function(){return Object(u.a)((function e(){Object(s.a)(this,e)}))}())),D=function(e){if("boolean"==typeof e._isMatch)return e._isMatch;var t=window.top===window.self||!0===e.all_frames;return t&&(t=new RegExp(e.matches,"i").test(location.href)),t&&e.exclude_matches&&(t=!new RegExp(e.exclude_matches,"i").test(location.href)),t&&e.include_globs&&(t=new RegExp(e.include_globs,"i").test(location.href)),t&&e.exclude_globs&&(t=!new RegExp(e.exclude_globs,"i").test(location.href)),e._isMatch=t},I=E,L=function(){function e(t){Object(s.a)(this,e),this.bundle=t,this.containerNode=null,this.mono=null}return Object(u.a)(e,[{key:"create",value:function(){this.createPageContainer(),this.createMono(),this.mono.container=this.containerNode,this.executePageScripts()}},{key:"createMono",value:function(){this.destroyMono(),this.mono=this.bundle.createMonoInstance("page")}},{key:"createPageContainer",value:function(){this.destroyContainer(),this.containerNode=document.createElement("div"),this.containerNode.innerHTML=this.getPageContent(),document.body.appendChild(this.containerNode)}},{key:"getPageContent",value:function(){return""}},{key:"getPageScripts",value:function(){return[]}},{key:"executePageScripts",value:function(){return this.bundle.executeScripts(this.getPageScripts(),this.mono)}},{key:"destroyMono",value:function(){this.mono&&this.mono.destroy(),this.mono=null}},{key:"destroyContainer",value:function(){if(this.containerNode){var e=this.containerNode.parentNode;e&&e.removeChild(this.containerNode)}this.containerNode=null}},{key:"destroy",value:function(){this.destroyMono(),this.destroyContainer()}}]),e}();function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var F=function(e){function t(e){var o;return Object(s.a)(this,t),(o=P(this,t,[e])).optionsPage='<div class="sf-options-container"><h1 data-i18n="optionsTitle">SaveFrom.net Helper - Preferences</h1><form><div class="sf-block sf-browser sf-userscript"><label><input type="checkbox" id="button" checked="true">&nbsp;<span data-i18n="showButton">Show extension button</span></label></div><div class="sf-block"><div data-i18n="optionsHandleLinks" class="sf-title">Handle links</div><label><input type="checkbox" id="lmMediaHosting" checked="true">&nbsp;<span data-i18n="optionsMediaHostings">To mediahostings</span></label></div><div class="sf-block"><div data-i18n="optionsModules" class="sf-title">Modules</div><div id="youtube_box" class="sf-module"><label><input type="checkbox" id="moduleYoutube" checked="true">&nbsp;<span data-i18n="optionsYoutube">YouTube</span></label><div class="sf-module_options"><div class="sf-inline"><span data-i18n="optionsYTHideLinks">Hide links</span>: <label><input type="checkbox" id="ytHideFLV" checked="false">&nbsp;FLV</label> <label><input type="checkbox" id="ytHideMP4" checked="false">&nbsp;MP4</label> <label><input type="checkbox" id="ytHideWebM" checked="true">&nbsp;WebM</label> <label><input type="checkbox" id="ytHide3GP" checked="true">&nbsp;3GP</label> <label><input type="checkbox" id="ytHide3D" checked="true">&nbsp;3D</label> <label><input type="checkbox" id="ytHideMP4NoAudio" checked="true">&nbsp;MP4&nbsp;(no&nbsp;audio)</label> <label><input type="checkbox" id="ytHideAudio_MP4" checked="true">&nbsp;Audio</label></div></div></div><div class="sf-module"><label><input type="checkbox" id="moduleDailymotion" checked="true">&nbsp;<span data-i18n="optionsDailymotion">Dailymotion</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleVimeo" checked="true">&nbsp;<span data-i18n="optionsVimeo">Vimeo</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleFacebook" checked="true">&nbsp;<span data-i18n="optionsFacebook">Facebook</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleSoundcloud" checked="true">&nbsp;<span data-i18n="optionsSoundcloud">SoundCloud</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleVkontakte" checked="true">&nbsp;<span data-i18n="optionsVkontakte">VK</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleOdnoklassniki" checked="true">&nbsp;<span data-i18n="optionsOdnoklassniki">Odnoklassniki</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleMailru" checked="true">&nbsp;<span data-i18n="optionsMailru">Mail.ru</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleInstagram" checked="true">&nbsp;<span data-i18n="optionsInstagram">Instagram</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleRutube" checked="true">&nbsp;<span data-i18n="optionsRutube">Rutube</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleTiktok" checked="true">&nbsp;<span data-i18n="optionsTiktok">Tiktok</span></label></div></div><div class="sf-block" id="blockUmmyInfo"><label><input type="checkbox" id="showUmmyInfo" checked="true">&nbsp;<span data-i18n="optionsShowUmmyInfo">Show Ummy info popup</span></label> <label><input type="checkbox" id="showUmmyBtn" checked="true">&nbsp;<span data-i18n="optionsShowUmmyBtn">Show the Ummy button</span></label></div><div class="sf-block sf-browser sf-userscript" style="display: none;" id="blockGmNativeDownload"><label><input type="checkbox" id="gmNativeDownload" checked="false">&nbsp;<span data-i18n="optionsGmNativeDownload">Advanced download mode</span></label></div><div class="sf-block" id="blockSovetnikEnabled"><label><input type="checkbox" id="sovetnikEnabled" checked="true">&nbsp;<span data-i18n="optionsSovetnikEnabled">Enable sovetnik</span></label></div><div class="sf-block" id="blockAviaBar"><label><input type="checkbox" id="aviaBarEnabled" checked="true">&nbsp;<span data-i18n="optionsAviaBarEnabled">Enable aviaBar</span></label></div><div class="sf-block" id="sortDownloads"></div><div class="sf-clear"></div></form></div>',o.optionsScripts=[function(e){!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(t,n,r){var o=e;n.a=o},function(e,t){e.exports=n(14)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(17)},,,function(e,t){e.exports=n(30)},function(e,t){e.exports=n(31)},function(e,t){e.exports=n(44)},,function(e,t,n){var r=n(8),o=n(18);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},function(e,t){e.exports=n(134)},,function(e,t){e.exports=n(70)},function(e,t,n){var r=n(8),o=n(19);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},function(e,t){e.exports=n(71)},,,function(e,t,n){n.r(t);var r=n(6),o=n.n(r)()(!1);o.push([e.i,".sf-options-body{background-color:#e9eaf0;font-family:sans-serif;font-size:small}.sf-options-body.loading>*{visibility:hidden}.sf-options-body .sf-options-container{background-color:#f6f6f9;border:1px solid #cacdd9;border-radius:7px;width:700px;margin:12px auto;padding:15px}.sf-options-body .sf-options-container h1{font-family:sans-serif;font-size:1.3em;margin:0 0 1.3em 0}.sf-options-body .sf-options-container div{display:block}.sf-options-body .sf-options-container form{margin:0;padding:0}.sf-options-body .sf-options-container label{display:block;margin:.2em 0;padding:0}.sf-options-body .sf-options-container .sf-inline label{display:inline}.sf-options-body .sf-options-container .sf-clear{clear:both;height:0;font-size:0;line-height:0}.sf-options-body .sf-options-container .sf-block{border-top:1px solid #dfe1e8;padding:1.5em 0 0 0;margin:1.5em 0 0 0;min-width:160px}.sf-options-body .sf-options-container .sf-browser{display:none}.sf-options-body .sf-options-container .sf-title{font-weight:700;margin-bottom:.5em}.sf-options-body .sf-options-container .sf-module{font-weight:700;margin-top:1em}.sf-options-body .sf-options-container .sf-module:first-child{margin-top:0}.sf-options-body .sf-options-container .sf-module_options{font-weight:400;margin-left:2em}.sf-options-popup{z-index:9999;display:block;float:none;position:fixed;margin:0;padding:0;visibility:hidden;color:#000;background:#fff;border:3px solid #c0cad5;border-radius:7px;overflow:auto}.sf-options-popup .sf-options-body{display:block;float:none;position:relative;overflow:auto;margin:0;padding:10px 15px;background:#fff}.sf-options-popup .sf-options-body .sf-options-container{background-color:#fff;border:none;font:13px/1 Arial,Helvetica,sans-serif;width:580px;margin:0;padding:9px;text-align:left}.sf-options-popup img.sf-close{position:absolute;top:10px;right:15px;opacity:.5;cursor:pointer}.sf-options-popup img.sf-close:hover{opacity:.9}",""]),t.default=o},function(e,t,n){n.r(t);var r=n(6),o=n.n(r)()(!1);o.push([e.i,'.sf-block div.sf-table{display:table!important;width:100%}.sf-block div.sf-table-row,.sf-block div.sf-table-row-head,.sf-block form.sf-table-row{display:table-row!important}.sf-block .sf-table-row:hover{display:table-row!important;background:#ebffe8}.sf-block div.sf-table-row-head{background:#00bf80;color:#fff}.sf-block div.sf-table-row-head .sf-table-cell{border:1px solid #01ab73}.sf-block div.sf-table-cell{display:table-cell!important;border:1px solid #e8e9eb;padding:10px;width:25%;word-break:break-all;vertical-align:middle}.sf-block div.sf-table-body{display:table-row-group!important}.sf-block .sf-group-buttons{margin-top:15px;margin-bottom:65px}.sf-block .sf-btn{float:left;padding:5px;cursor:pointer;font-weight:700;font-size:12px;background:#e9eaf0;border:1px solid #c1c1c7;border-radius:4px;margin-right:5px}.sf-block .sf-badge{padding:3px;float:left;margin-right:7px;background:#536760;border-radius:4px;color:#fff;margin-bottom:4px}.sf-block .sf-input{padding:4px;border:1px solid #d0c6c6;border-radius:4px;width:90%}.sf-block .sf-disabled{opacity:.4;pointer-events:none}.sf-block .text-muted{opacity:.6}.sf-block .div-hover{position:absolute;bottom:45px;background:#484444;padding:5px;border-radius:6px;min-width:32px;text-align:center;font-size:12px;word-break:break-word}.sf-block .div-hover::after{content:" ";position:absolute;top:100%;left:50%;margin-left:-10px;border-width:6px;border-style:solid;border-color:#2d2b2b transparent transparent transparent}.sf-block .hide{display:none!important}.sf-block .show{display:block!important}',""]),t.default=o},function(e,t,n){n.r(t);var o=n(10),a=n.n(o),i=n(0),s=n(3),u=n.n(s),l=n(13),c=n.n(l),d=n(2),p=n(1),f=n.n(p),m=n(14),g=n.n(m),v=n(7),b=n.n(v),y=n(11),k=n.n(y),A={isEnabled:!1,groups:[{dir:"pictures",formats:["jpg","jpeg","png","gif","svg","bmp","ico","webp"]},{dir:"music",formats:["mp3","aac","wav","ogg","flac","wma","m4a","m4p"]},{dir:"videos",formats:["mkv","avi","3gp","3g2","mov","flv","mp4","m4v","mpg","mpeg","webm","ogv"]}]};function w(e,t,n){i.a.sendMessage({action:"track",t:"event",ec:e,ea:t,el:n,tid:"G-4WQE4RFM8F"})}var x={groups:[],isEnabled:!1},C="initOption",_=[C,"startEdit"];function S(e,t){var n,o,a=function(e,t){switch(t.type){case C:return w("menu","click","settings"),{groups:t.groups,isEnabled:t.isEnabled};case"toggleEnable":return w("settings","sort_downloads",t.isEnabled?"check":"uncheck"),j(j({},e),{},{isEnabled:t.isEnabled});case"resetOption":return w("sort_downloads","click","reset"),j(j({},A),{},{isEnabled:e.isEnabled});case"addItem":return w("sort_downloads","click","add"),j(j({},e),{},{groups:[].concat(Object(r.a)(e.groups),[{dir:"my-folder",formats:[]}])});case"removeItem":return e.groups[t.id]&&w("sort_downloads","delete",e.groups[t.id].dir),j(j({},e),{},{groups:Object(r.a)(e.groups.filter((function(e,n){return n!==t.id})))});case"startEdit":return e.groups[t.id]&&w("sort_downloads","edit",e.groups[t.id].dir),j({},e);case"saveItem":var n=e.groups.map((function(e,n){if(t.id===n){t.dir!==e.dir&&w("sort_downloads","rename_folder","".concat(e.dir," ").concat(t.dir));return t.formats.length===e.formats.length&&t.formats.every((function(t){return e.formats.includes(t)}))||w("sort_downloads","add_format","".concat(t.dir,", ").concat(e.formats.join(" "),", ").concat(t.formats.join(" "))),{formats:t.formats,dir:t.dir}}return j({},e)}));return j(j({},e),{},{groups:n});default:return e}}(e,t);return _.includes(t.type)||(n=a.isEnabled,o=a.groups,i.a.sendMessage({action:"updateOption",key:"sortDownloads",value:{isEnabled:n,groups:o}})),a}var O=n(15),M=n.n(O),E=f.a.createContext(),D={marginBottom:15},I=f.a.memo((function(e){var t=e.options;M()(g.a);var n=f.a.useReducer(S,x),r=Object(h.a)(n,2),o=r[0],a=r[1],s=f.a.useCallback((function(e){e.preventDefault(),a({type:"addItem"})}),[]),u=f.a.useCallback((function(e){e.preventDefault(),a({type:"resetOption"})}),[]),l=f.a.useCallback((function(e){a({type:"toggleEnable",isEnabled:e.target.checked})}),[]);return f.a.useMemo((function(){a({type:C,groups:t.groups,isEnabled:t.isEnabled})}),[]),f.a.createElement(E.Provider,{value:{state:o,dispatch:a}},f.a.createElement("div",{style:D},f.a.createElement("label",null,f.a.createElement("input",{type:"checkbox",onClick:l,checked:o.isEnabled?1:0}),f.a.createElement("span",null,i.a.i18n.getMessage("options_management")))),f.a.createElement("div",{className:b()("sf-table",!o.isEnabled&&"sf-disabled")},f.a.createElement("div",{className:"sf-table-row-head"},f.a.createElement(k.a,{className:"sf-table-cell",hoverText:i.a.i18n.getMessage("optionsDirectory")},i.a.i18n.getMessage("options_Directory_title")),f.a.createElement(k.a,{className:"sf-table-cell",hoverText:i.a.i18n.getMessage("optionsFormats")},i.a.i18n.getMessage("options_Formats_title")),f.a.createElement("div",{className:"sf-table-cell"},i.a.i18n.getMessage("options_Actions_title"))),f.a.createElement("div",{className:"sf-table-body"},o.groups.map((function(e,t){return f.a.createElement(L,{group:e,id:t,key:t.toString()})})))),f.a.createElement("div",{className:b()("sf-group-buttons",!o.isEnabled&&"sf-disabled")},f.a.createElement("button",{className:"sf-btn",onClick:s},i.a.i18n.getMessage("options_button_add")),f.a.createElement("button",{className:"sf-btn",onClick:u},i.a.i18n.getMessage("options_button_reset"))))})),L=f.a.memo((function(e){var t=e.id,n=e.group,r=f.a.useContext(E).dispatch,o=f.a.useState(!1),a=Object(h.a)(o,2),s=a[0],u=a[1],l=f.a.useCallback((function(e){e.preventDefault(),e.stopPropagation(),r({type:"removeItem",id:t})}),[]),c=f.a.useCallback((function(e){e.preventDefault(),e.stopPropagation(),u(!1)}),[]),d=f.a.useCallback((function(e){e.preventDefault(),e.stopPropagation(),r({type:"startEdit",id:t}),u(!0)}),[]),p=f.a.useCallback((function(e){e.preventDefault(),e.stopPropagation();var n=e.target,o=/[.,!:;\/_+=']/g,a=n.elements.dir.value,i=n.elements.formats.value;a=a.replace(o,""),i=i.replace(o,"").split(" ").filter(Boolean),r({type:"saveItem",id:t,dir:a,formats:i}),u(!1)}),[]),m=f.a.useMemo((function(){return 0===n.formats.length}),[n]);return f.a.createElement("form",{className:"sf-table-row",onSubmit:p},f.a.createElement("div",{className:"sf-table-cell"},f.a.createElement(T,{name:"dir",input:n.dir,editable:s,type:1})),f.a.createElement("div",{className:"sf-table-cell"},(s||!m)&&f.a.createElement(T,{name:"formats",input:n.formats,editable:s,type:0}),!s&&m&&f.a.createElement("span",{className:"text-muted"},i.a.i18n.getMessage("options_no_type_msg"))),f.a.createElement("div",{className:"sf-table-cell"},!s&&f.a.createElement("div",null,f.a.createElement("button",{className:"sf-btn",onClick:d},i.a.i18n.getMessage("options_button_edit")),f.a.createElement("button",{className:"sf-btn",onClick:l},i.a.i18n.getMessage("options_button_delete"))),s&&f.a.createElement("div",null,f.a.createElement("button",{className:"sf-btn",type:"submit"},i.a.i18n.getMessage("options_button_save")),f.a.createElement("button",{className:"sf-btn",onClick:c},i.a.i18n.getMessage("options_button_cancel")))))})),T=f.a.memo((function(e){var t=e.name,n=e.input,r=e.editable,o=e.type;return f.a.createElement("div",null,r&&f.a.createElement("input",{type:"text",name:t,className:"sf-input",value:0===o?n.join(" "):n}),!r&&0===o&&n.map((function(e){return f.a.createElement("div",{className:"sf-badge"},e)})),!r&&1===o&&f.a.createElement("div",null,n))})),P=I;a.a.use();var F=[];i.a.onDestroy.addListener((function(){a.a.unuse(),F.forEach((function(e){return e()}))})),function(e){e=e||document.body;var t={},n=function(t,n){var r=e.querySelector("#"+t);r&&(r.style.display=n?"none":"")},r=function(e){var t=e.target;i.a.sendMessage({action:"updateOption",key:t.id,value:t.checked})},o=function(){var o,a,s,l;for(a=0,s=(l=e.querySelectorAll("*[data-i18n]")).length;a<s;a++)(o=l[a]).textContent=i.a.i18n.getMessage(o.dataset.i18n);t.hasSovetnik||n("blockSovetnikEnabled",!0),t.aviaBarEnabled||n("blockAviaBar",!0),t.showUmmyItem||n("blockUmmyInfo",!0);var p=u.a.create("div",{id:"blockFfmpegEnabled",class:"sf-block",append:[u.a.create("label",{append:[u.a.create("input",{type:"checkbox",id:"ffmpegEnabled",checked:!1}),String.fromCharCode(160),u.a.create("span",{text:i.a.i18n.getMessage("optionsFfmpegEnabled")})]})]}),f=e.querySelector(".sf-options-container .sf-clear");for(f.parentNode.insertBefore(p,f),i.a.isFirefox&&function(){var t="blockSaveAsDialogEnabled";if(!e.querySelector("#"+t)){var n=u.a.create("div",{id:t,class:"sf-block",append:[u.a.create("label",{append:[u.a.create("input",{type:"checkbox",id:"saveAsDialog",checked:!1}),String.fromCharCode(160),u.a.create("span",{text:i.a.i18n.getMessage("optionsSaveAsDialog")})]})]}),r=e.querySelector(".sf-options-container .sf-block");r.parentNode.insertBefore(n,r)}}(),a=0,s=(l=e.querySelectorAll('form input[type="checkbox"]')).length;a<s;a++)(o=l[a]).id&&void 0!==t[o.id]&&(o.checked=!!t[o.id],o.addEventListener("change",r,!1));if(i.a.isGM){for(a=0,s=(l=e.querySelectorAll(".sf-browser.sf-userscript")).length;a<s;a++)(o=l[a]).style.display="block";if("undefined"!=typeof GM_download){var m=e.querySelector("#blockGmNativeDownload");m&&(m.style.display="block")}}if(t.sortDownloads){var g=c()(Object(d.createElement)(P,{options:t.sortDownloads}),e.querySelector("#sortDownloads"));F.push(g)}};i.a.callFn("getPreferences").then((function(n){t=n,o(),e.classList.remove("loading")})),setTimeout((function(){e.classList.remove("loading")}),1e3)}(i.a.container)}])}],o.isYoutube=/youtube\.com/.test(location.href),o}return Object(f.a)(t,e),Object(u.a)(t,[{key:"getPageContent",value:function(){return this.optionsPage}},{key:"getPageScripts",value:function(){return this.optionsScripts}},{key:"createPageContainer",value:function(){var e=this;this.destroyContainer();var t=document.body.clientHeight||window.innerHeight;t>600&&(t=600);var n=document.createElement("div");n.classList.add("sf-options-popup"),n.style.maxWidth="".concat(640,"px"),n.style.maxHeight="".concat(t,"px"),this.containerNode=n;var r=document.createElement("div");r.classList.add("sf-options-body"),r.innerHTML=this.getPageContent(),n.appendChild(r);var o=document.createElement("img");o.classList.add("sf-close"),o.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAWUlEQVQ4y2NgGHHAH4j1sYjrQ+WIAvFA/B+I36MZpg8V+w9VQ9Al/5EwzDBkQ2AYr8uwaXiPQ0yfkKuwGUayIYQMI8kQqhlEFa9RLbCpFv1US5BUzSLDBAAARN9OlWGGF8kAAAAASUVORK5CYII=",o.alt="x",o.width=18,o.height=18,o.addEventListener("click",(function(t){t.preventDefault(),e.bundle.closeOptions()})),r.appendChild(o),document.body.appendChild(n),setTimeout((function(){var t=Math.floor((window.innerWidth-n.offsetWidth)/2),r=Math.floor((window.innerHeight-n.offsetHeight)/2);r<0&&(r=0),t<0&&(t=0),e.isYoutube&&r<92&&(r=92,n.style.height=n.offsetHeight-r-10+"px"),Object.assign(n.style,{top:r+"px",left:t+"px",visibility:"visible"})}));document.addEventListener("click",(function t(r){var o=r.target;o===n||n.contains(o)||(document.removeEventListener("click",t,!1),e.bundle.closeOptions())}),!1)}}]),t}(L),N=function(){function e(){Object(s.a)(this,e),this.listeners=[]}return Object(u.a)(e,[{key:"addListener",value:function(e){-1===this.listeners.indexOf(e)&&this.listeners.push(e)}},{key:"dispatch",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.listeners.forEach((function(e){e.apply(void 0,t)}))}},{key:"hasListener",value:function(e){return-1!==this.listeners.indexOf(e)}},{key:"hasListeners",value:function(){return this.listeners.length>0}},{key:"removeListener",value:function(e){var t=this.listeners.indexOf(e);-1!==t&&this.listeners.splice(t,1)}}]),e}(),B=Object(A.default)("mono"),R=function(){function e(){Object(s.a)(this,e),this.onDestroy=new N,this._lastErrorFired=!1,this._lastError=null}return Object(u.a)(e,[{key:"lastError",get:function(){return this._lastErrorFired=!0,this._lastError},set:function(e){this._lastErrorFired=!e,this._lastError=e}},{key:"clearLastError",value:function(){this._lastError&&!this._lastErrorFired&&B.error("Unhandled mono.lastError error:",this.lastError),this._lastError=null}},{key:"unimplemented",value:function(){throw new Error("Unimplemented")}},{key:"destroy",value:function(){this.onDestroy.dispatch()}}]),e}();function z(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var q=function(e){return function(e){function t(){return Object(s.a)(this,t),z(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t,[{key:"initMessages",value:function(){this.sendMessage=this.transport.sendMessage.bind(this.transport),this.sendMessageToActiveTab=this.transport.sendMessageToActiveTab.bind(this.transport),this.onMessage={addListener:this.transport.addListener.bind(this.transport),hasListener:this.transport.hasListener.bind(this.transport),hasListeners:this.transport.hasListeners.bind(this.transport),removeListener:this.transport.removeListener.bind(this.transport)},this.transport.onBeforeRequest&&this.transport.removeOnBeforeRequestListener&&(this.onBeforeRequest=this.transport.onBeforeRequest.bind(this.transport),this.removeOnBeforeRequestListener=this.transport.removeOnBeforeRequestListener.bind(this.transport))}}]),t}(e)},U=n(19),V=function(e,t){for(var n=t.split("."),r=n.pop();n.length;)e=e[n.shift()];return{scope:e,endPoint:r}};function H(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var G=n(76),W=Object(A.default)("mono:callFnListener");function Q(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var Y=function(e){return function(e){function t(){return Object(s.a)(this,t),Q(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t)}(e)};function J(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}function K(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var Z=function(e){function t(){return Object(s.a)(this,t),K(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t)}(function(e){return function(e){function t(){return Object(s.a)(this,t),J(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t,[{key:"openTab",value:function(e,t){this.unimplemented()}}]),t}(Y(e))}(function(e){return function(e){function t(){var e;return Object(s.a)(this,t),(e=H(this,t)).remote={mono:Object(U.a)(e)},e.callFnListener=e.callFnListener.bind(Object(U.a)(e)),e}return Object(f.a)(t,e),Object(u.a)(t,[{key:"initMessages",value:function(){p(Object(c.a)(t.prototype),"initMessages",this).call(this),this.onMessage.addListener(this.callFnListener)}},{key:"responseFn",value:function(e,t){var n=this,r=Promise.resolve().then((function(){var t=V(n.remote,e.fn),r=t.scope,o=t.endPoint,a=e.args||[];return r[o].apply(r,a)}));return this.responsePromise(r,t)}},{key:"responsePromise",value:function(e,t){return e.then((function(e){t({result:e})}),(function(e){t({err:G(e)})})).catch((function(e){W.error("responsePromise error",e)})),!0}},{key:"callFnListener",value:function(e,t,n){switch(e&&e.action){case"callFn":return this.responseFn(e,n),!0}}},{key:"destroy",value:function(){this.onMessage.removeListener(this.callFnListener),p(Object(c.a)(t.prototype),"destroy",this).call(this)}}]),t}(e)}(q(R)))),X=Object(A.default)("mono:userscriptStorage"),$=function(){function e(t){Object(s.a)(this,e),this.mono=t,this.onChanged=new N}return Object(u.a)(e,[{key:"handleChange",value:function(e,t){throw new Error("handleChange is not supported")}},{key:"wrapValue",value:function(e){return JSON.stringify({w:e})}},{key:"unwrapValue",value:function(e){return JSON.parse(e).w}},{key:"get",value:function(e,t){var n=this,r={},o={},a=GM_listValues();e||(e=a),Array.isArray(e)||(o=e,e=Object.keys(e)),e.forEach((function(e){var t=!1,i=null;try{-1!==a.indexOf(e)&&(i=n.unwrapValue(GM_getValue(e)),t=!0)}catch(t){X.error("Parse key (".concat(e,") error"))}!t&&o.hasOwnProperty(e)&&(i=o[e],t=!0),t&&(r[e]=i)})),t(r)}},{key:"set",value:function(e,t){var n=this,r=Object.keys(e);this.get(r,(function(o){r.forEach((function(t){GM_setValue(t,n.wrapValue(e[t]))})),n.handleChange(o,e),t&&t()}))}},{key:"remove",value:function(e,t){var n=this;this.get(e,(function(r){e.forEach((function(e){GM_deleteValue(e)})),n.handleChange(r,{}),t&&t()}))}},{key:"clear",value:function(e){this.remove(GM_listValues(),e)}}]),e}(),ee=function(e){return e&&JSON.parse(JSON.stringify(e))};function te(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var ne=Object(A.default)("mono:transportWithResponse"),re=function(){},oe=function(e){function t(e){var n;return Object(s.a)(this,t),(n=te(this,t)).transportId=String(parseInt(1e3*Math.random(),10)),n.destroyError=null,n.isListen=!1,n.transport=e,n.listen=n.listen.bind(Object(U.a)(n)),n}return Object(f.a)(t,e),Object(u.a)(t,[{key:"callListeners",value:function(e,t,n){var r=null;return this.listeners.forEach((function(o){try{var a=o(e,t,n);!0===a&&(r=a)}catch(e){ne.error("Error in event handler for mono.onMessage:",e)}})),r}},{key:"listen",value:function(e,t){var n,r,o,a=this;e.transportId!==this.transportId&&(t?(r=function(n,r){if(a.destroyError)ne.warn("Send response is skip cause:",a.destroyError);else if(e._responseFired)ne.warn("Send response is skip cause: Already fired");else{e._responseFired=!0,e._forceResponse=r;try{t(ee(n))}catch(e){ne.warn("Send response error",e)}}},o=!1,n=function(){o||(o=!0,r.apply(void 0,arguments))}):n=re,!0===this.callListeners(e.message,e.sender||{},n)?e._asyncResponse=!0:e._responseFired||setTimeout((function(){e._responseFired||e._asyncResponse||n(void 0,!0)}),1))}},{key:"startListen",value:function(){this.isListen||(this.isListen=!0,this.transport.addListener(this.listen))}},{key:"stopListen",value:function(){this.isListen&&(this.isListen=!1,this.transport.removeListener(this.listen))}},{key:"addListener",value:function(e){p(Object(c.a)(t.prototype),"addListener",this).call(this,e),this.listeners.length>0&&this.startListen()}},{key:"removeListener",value:function(e){p(Object(c.a)(t.prototype),"removeListener",this).call(this,e),0===this.listeners.length&&this.stopListen()}},{key:"getRawMessage",value:function(e){return{transportId:this.transportId,message:ee(e),sender:{url:location.href}}}},{key:"sendMessage",value:function(e,t){if(this.destroyError)throw this.destroyError;var n=this.getRawMessage(e,t);this.transport.sendMessage(n,t)}},{key:"destroy",value:function(){this.destroyError=new Error("Transport is destroyed"),this.listeners.splice(0),this.stopListen()}}]),t}(N),ae=function(e){function t(){return Object(s.a)(this,t),te(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t,[{key:"sendMessageToActiveTab",value:function(e,t){if(this.destroyError)throw this.destroyError;var n=this.getRawMessage(e,t);this.transport.sendMessageToActiveTab(n,t)}}]),t}(oe),ie=oe,se=Object(A.default)("mono:gmStorage"),ue=function(){function e(t){Object(s.a)(this,e),this.mono=t,this.onChanged=new N}return Object(u.a)(e,[{key:"handleChange",value:function(e,t){throw new Error("handleChange is not supported")}},{key:"wrapValue",value:function(e){return JSON.stringify({w:e})}},{key:"unwrapValue",value:function(e){return JSON.parse(e).w}},{key:"get",value:function(e,t){var n=this;GM.listValues().catch((function(e){return se.error("Get values error",e),[]})).then((function(r){var o={},a={};return e||(e=r),Array.isArray(e)||(a=e,e=Object.keys(e)),Promise.all(e.map((function(e){var t=!1,i=null;return Promise.resolve().then((function(){if(-1!==r.indexOf(e))return GM.getValue(e).then((function(e){i=n.unwrapValue(e),t=!0}))})).catch((function(t){se.error("Parse key (".concat(e,") error"),t)})).then((function(){!t&&a.hasOwnProperty(e)&&(i=a[e],t=!0),t&&(o[e]=i)}))}))).then((function(){t(o)}))}))}},{key:"set",value:function(e,t){var n=this,r=Object.keys(e);this.get(r,(function(o){Promise.all(r.map((function(t){return GM.setValue(t,n.wrapValue(e[t])).catch((function(e){se.error("Set item (".concat(t,") error"),e)}))}))).then((function(){n.handleChange(o,e),t&&t()}))}))}},{key:"remove",value:function(e,t){var n=this;this.get(e,(function(r){Promise.all(e.map((function(e){return GM.deleteValue(e).catch((function(t){se.error("Remove key (".concat(e,") error"),t)}))}))).then((function(){n.handleChange(r,{}),t&&t()}))}))}},{key:"clear",value:function(e){var t=this;GM.listValues().catch((function(e){return se.error("Get values error",e),[]})).then((function(n){return t.remove(n,e)}))}}]),e}();function le(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var ce=function(e){return function(e){function t(){return Object(s.a)(this,t),le(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t,[{key:"get",value:function(e,n){if(void 0===e&&(e=null),"string"==typeof e&&(e=[e]),Array.isArray(e)&&e.forEach((function(e){if("string"!=typeof e)throw new Error("Incorrect key type")})),"object"!=typeof e)throw new Error("Incorrect keys type");p(Object(c.a)(t.prototype),"get",this).call(this,e,n)}},{key:"set",value:function(e,n){p(Object(c.a)(t.prototype),"set",this).call(this,e,n)}},{key:"remove",value:function(e,n){"string"==typeof e&&(e=[e]),e.forEach((function(e){if("string"!=typeof e)throw new Error("Incorrect key type")})),p(Object(c.a)(t.prototype),"remove",this).call(this,e,n)}},{key:"clear",value:function(e){p(Object(c.a)(t.prototype),"clear",this).call(this,e)}}]),t}(e)},de=function(e,t){var n={};return Object.keys(e).forEach((function(t){var r=n[t];r||(r=n[t]={}),r.oldValue=e[t]})),Object.keys(t).forEach((function(e){var r=n[e];r||(r=n[e]={}),r.newValue=t[e]})),Object.keys(n).forEach((function(e){var t=n[e];t.oldValue===t.newValue&&delete n[e]})),Object.keys(n).length?n:null};function pe(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var fe=function(e){return function(e){function t(e){var n;return Object(s.a)(this,t),(n=pe(this,t,[e])).mono=e,n.changesListener=n.changesListener.bind(Object(U.a)(n)),n.initChangesListener(),n}return Object(f.a)(t,e),Object(u.a)(t,[{key:"initChangesListener",value:function(){var e=this;this.mono.bundle.messaing.addListener("storage",this.changesListener);this.mono.onDestroy.addListener((function t(){e.mono.onDestroy.removeListener(t),e.mono.bundle.messaing.removeListener("storage",e.changesListener)}))}},{key:"changesListener",value:function(e){this.onChanged.dispatch(e,"local")}},{key:"handleChange",value:function(e,t){var n=de(e,t);n&&this.mono.bundle.messaing.emit("storage",n)}}]),t}(e)};function me(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var ge=Object(A.default)("mono:pageMono"),he=function(e){return function(e){function t(){return Object(s.a)(this,t),me(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t,[{key:"initI18n",value:function(){var e=this;this.i18n={getMessage:function(t){e.locale||(e.locale=e.bundle.getLocale());var n=e.locale[t];return n&&n.message||""}}}},{key:"initMessages",value:function(){var e=this;this.transport=new ae({addListener:function(t){e.bundle.messaing.addListener("page",t),e.bundle.messaing.addListener("fromActiveTab",t)},removeListener:function(t){e.bundle.messaing.removeListener("page",t),e.bundle.messaing.removeListener("fromActiveTab",t)},sendMessage:function(t,n){e.bundle.messaing.emit("page",t,n)||(ge.info("No one received a message"),n())},sendMessageToActiveTab:function(t,n){e.bundle.messaing.emit("toActiveTab",t,n)||(ge.info("No one received a message"),n())}}),p(Object(c.a)(t.prototype),"initMessages",this).call(this)}},{key:"initStorage",value:function(){"function"==typeof GM_getValue?this.storage=new(ce(fe($)))(this):this.storage=new(ce(fe(ue)))(this)}},{key:"destroy",value:function(){p(Object(c.a)(t.prototype),"destroy",this).call(this),this.transport.destroy()}}]),t}(e)};function ve(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var be=function(e){return function(e){function t(){var e;return Object(s.a)(this,t),(e=ve(this,t)).isGM=!0,e}return Object(f.a)(t,e),Object(u.a)(t,[{key:"isTM",get:function(){return!!window.chrome}}]),t}(e)};function ye(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}function ke(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var Ae=function(e){function t(e){var n;return Object(s.a)(this,t),(n=ke(this,t)).bundle=e,n.initMessages(),n.initStorage(),n.initI18n(),n}return Object(f.a)(t,e),Object(u.a)(t)}(function(e){return function(e){function t(){return Object(s.a)(this,t),ye(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t,[{key:"openTab",value:function(e,t){t=void 0===t||!!t,"function"==typeof GM_openInTab?GM_openInTab(e,{active:t,insert:!0}):GM.openInTab(e,t)}},{key:"executeScript",value:function(e,t){this.bundle.executeScript(t)}},{key:"getActiveTab",value:function(e){e({url:location.href})}}]),t}(be(e))}(he(Z)));function we(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var xe=n(77),Ce=function(e){return function(e){function t(){return Object(s.a)(this,t),we(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t,[{key:"callFn",value:function(e,t){return this.waitPromise({action:"callFn",fn:e,args:t})}},{key:"waitPromise",value:function(e){var t=this;return new Promise((function(n,r){t.sendMessage(e,(function(e){if(e){if(e.err){var o=xe(e.err);return r(o)}return n(e.result)}var a=t.lastError||new Error("Unexpected response");return r(a)}))}))}}]),t}(e)};function _e(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}function Se(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}function Oe(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}function Me(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var Ee=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Me(this,t)).bundle=e,n.initMessages(),n.initStorage(),n.initI18n(),n}return Object(f.a)(t,e),Object(u.a)(t)}(function(e){return function(e){function t(){return Object(s.a)(this,t),Oe(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t)}(be(e))}(he(function(e){function t(){return Object(s.a)(this,t),Se(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t)}(function(e){return function(e){function t(){return Object(s.a)(this,t),_e(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t)}(Y(e))}(Ce(q(R)))))));function De(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}function Ie(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var Le=function(e){function t(){return Object(s.a)(this,t),Ie(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t,[{key:"initMessages",value:function(){this.sendMessage=this.transport.sendMessage.bind(this.transport),this.onMessage={addListener:this.transport.addListener.bind(this.transport),hasListener:this.transport.hasListener.bind(this.transport),hasListeners:this.transport.hasListeners.bind(this.transport),removeListener:this.transport.removeListener.bind(this.transport)}}}]),t}(function(e){return function(e){function t(){return Object(s.a)(this,t),De(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t)}(Y(e))}(Ce(R)));function Te(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var je=function(e){return function(e){function t(){return Object(s.a)(this,t),Te(this,t,arguments)}return Object(f.a)(t,e),Object(u.a)(t)}(be(e))};function Pe(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var Fe=Object(A.default)("mono:contentScript"),Ne=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Pe(this,t)).bundle=e,n.initMessages(),n.initStorage(),n.initI18n(),n}return Object(f.a)(t,e),Object(u.a)(t,[{key:"initI18n",value:function(){var e=this;this.i18n={getMessage:function(t){e.locale||(e.locale=e.bundle.getLocale());var n=e.locale[t];return n&&n.message||""}}}},{key:"initMessages",value:function(){var e=this;this.transport=new ie({addListener:function(t){e.bundle.messaing.addListener("toActiveTab",t)},removeListener:function(t){e.bundle.messaing.removeListener("toActiveTab",t)},sendMessage:function(t,n){e.bundle.wakeUpBackgroundPage(),t.sender.tab={url:location.href},e.bundle.messaing.emit("fromActiveTab",t,n)||(Fe.info("No one received a message"),n())}}),p(Object(c.a)(t.prototype),"initMessages",this).call(this)}},{key:"initStorage",value:function(){"function"==typeof GM_getValue?this.storage=new(ce(fe($)))(this):this.storage=new(ce(fe(ue)))(this)}},{key:"destroy",value:function(){p(Object(c.a)(t.prototype),"destroy",this).call(this),this.transport.destroy()}}]),t}(je(Le));function Be(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var Re=function(e){function t(e,r){var o;return Object(s.a)(this,t),(o=Be(this,t,[e])).parent=r,o.popupPage='<div class="sf-menu-desc"><div class="icon-body"><div class="icon"></div><div class="version"></div></div><div class="title"></div><div class="desc"></div><a href="#" class="more" target="_blank" data-i18n="readMore">Learn More</a><div class="social-block"><a href="#" class="social-btn vk" target="_blank"></a> <a href="#" class="social-btn fb" target="_blank"></a> <a href="#" class="social-btn ok" target="_blank"></a> <a href="#" class="social-btn tw" target="_blank"></a> <a href="#" class="social-btn mailru" target="_blank"></a> <a href="#" class="social-btn lj" target="_blank"></a> <a href="#" class="social-btn gp" target="_blank"></a></div></div><div class="sf-menu-list"><div class="login-container hidden"><div class="login-btn"><svg class="logo" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.2093 13.8042L0.430368 14.3771C-0.0603292 14.4783 -0.148014 15.092 0.253312 15.3921L12.7366 23.6254C12.7956 23.6637 12.8614 23.6883 12.9288 23.7011C12.9288 23.6781 12.9305 23.6543 12.9305 23.6314C12.9642 21.3125 12.8984 17.801 12.3403 13.329C11.2577 4.48451 7.48392 0.674683 7.48392 0.674683C6.77907 1.68027 5.98991 3.19076 5.22604 5.47649C3.81297 9.63907 3.56509 11.9868 3.64941 13.2457C3.65952 13.499 3.49596 13.7456 3.2093 13.8042Z" fill="url(#paint0_linear)"></path><path d="M56.7907 13.8042L59.5696 14.3771C60.0603 14.4783 60.148 15.092 59.7467 15.3921L47.2634 23.6254C47.2044 23.6637 47.1386 23.6883 47.0712 23.7011C47.0712 23.6781 47.0695 23.6543 47.0695 23.6314C47.0358 21.3125 47.1016 17.801 47.6597 13.329C48.7423 4.48451 52.5161 0.674683 52.5161 0.674683C53.2209 1.68027 54.0101 3.19076 54.774 5.47649C56.187 9.63907 56.4349 11.9868 56.3506 13.2457C56.3405 13.499 56.504 13.7456 56.7907 13.8042Z" fill="url(#paint1_linear)"></path><path d="M52.6968 26.1697H48.3325C46.6919 26.1697 45.3465 24.8447 45.3137 23.1884C45.2481 20.8033 45.3137 17.0931 45.9371 12.2567C46.9216 4.33954 51.0889 0 51.0889 0H51.0233C47.9388 2.21946 39.8666 3.80952 30.3834 3.80952C20.9003 3.80952 12.8281 2.21946 9.74362 0H9.7108C9.7108 0 13.4844 3.80952 14.5672 12.6542C15.1251 17.1263 15.1907 20.6377 15.1579 22.9565C15.1251 24.7122 13.6813 26.1366 11.9093 26.1366H6.98726C4.78875 26.1366 3.64027 28.7536 5.11688 30.4099L27.9552 55.7515C29.1693 57.1097 31.2694 57.1097 32.4835 55.7515L54.7968 30.973C56.4703 29.1511 55.1906 26.1697 52.6968 26.1697Z" fill="url(#paint2_linear)"></path><path opacity="0.44" d="M11.3876 0.651124C11.3876 0.651124 19.5254 3.67694 31.1415 3.21732C42.9872 2.796 50.2062 0 50.2062 0C50.2062 0 43.7419 8.77102 39.148 21.4871C36.8839 27.7302 35.2432 33.4754 34.0619 38.6078C33.0775 42.8593 27.8929 42.8976 26.9085 38.6461C25.5631 32.9775 23.7584 26.3897 21.363 19.1124C15.8831 2.56619 11.3876 0.651124 11.3876 0.651124Z" fill="url(#paint3_linear)"></path><path opacity="0.41" d="M16.1104 2.31753C16.1104 2.31753 22.0825 3.64334 30.6469 3.46656C39.3753 3.28979 44.6583 2.05237 44.6583 2.05237C44.6583 2.05237 39.9003 5.9414 36.5205 11.5098C34.7486 14.4266 33.5017 17.1666 32.5829 19.5088C31.7625 21.6743 28.514 21.6743 27.6608 19.5088C26.6436 16.9014 25.2654 13.8521 23.4278 10.4491C19.4246 3.15721 16.1104 2.31753 16.1104 2.31753Z" fill="url(#paint4_linear)"></path><path d="M16.1104 42.3899L27.8112 52.9362C29.3238 54.3107 31.9408 54.3107 33.4534 52.9362L42.3483 44.9136L32.6221 55.7523C31.4114 57.1107 29.3187 57.1107 28.1097 55.7523L16.1104 42.3899Z" fill="#1FA156" fill-opacity="0.25"></path><ellipse cx="30.7963" cy="59.1119" rx="13.8617" ry="0.88794" fill="#E7E6E6"></ellipse><ellipse cx="30.7967" cy="59.1101" rx="5.78897" ry="0.499532" fill="#D0CFCF"></ellipse><defs><linearGradient id="paint0_linear" x1="1.53312e-07" y1="14.6043" x2="11.3335" y2="11.6883" gradientUnits="userSpaceOnUse"><stop offset="0.453039" stop-color="#BDF924"></stop><stop offset="1" stop-color="#91DE03"></stop></linearGradient><linearGradient id="paint1_linear" x1="59.9992" y1="14.9923" x2="48.9934" y2="9.90686" gradientUnits="userSpaceOnUse"><stop offset="0.430939" stop-color="#BDF924"></stop><stop offset="1" stop-color="#91DE03"></stop></linearGradient><linearGradient id="paint2_linear" x1="30.0204" y1="1.28401" x2="30.0204" y2="58.3302" gradientUnits="userSpaceOnUse"><stop stop-color="#AEF924"></stop><stop offset="1" stop-color="#A0DE03"></stop></linearGradient><linearGradient id="paint3_linear" x1="11.3876" y1="25.2959" x2="42.095" y2="12.2424" gradientUnits="userSpaceOnUse"><stop offset="0.453039" stop-color="#F3F4EE"></stop><stop offset="1" stop-color="#E4E9DA"></stop></linearGradient><linearGradient id="paint4_linear" x1="30.3851" y1="3.28687" x2="30.3851" y2="21.4244" gradientUnits="userSpaceOnUse"><stop stop-color="white"></stop><stop offset="1" stop-color="white" stop-opacity="0"></stop></linearGradient></defs></svg><div class="text">Login to Helper Pro</div></div><div class="user-info hidden"><div class="user-info--email"><div class="helper--label"><svg width="40" height="41" viewBox="0 0 40 41" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.13953 9.70272L0.286912 10.0847C-0.0402195 10.1521 -0.0986759 10.5613 0.168875 10.7613L8.49105 16.2502C8.53039 16.2757 8.57423 16.2921 8.6192 16.3006C8.6192 16.2853 8.62032 16.2695 8.62032 16.2542C8.64281 14.7083 8.59897 12.3673 8.22687 9.38595C7.50516 3.48959 4.98928 0.949707 4.98928 0.949707C4.51938 1.6201 3.99327 2.62709 3.48403 4.15091C2.54198 6.92597 2.37673 8.49115 2.43294 9.33041C2.43968 9.49928 2.33064 9.66362 2.13953 9.70272Z" fill="url(#paint0_lr)"></path><path d="M37.8605 9.70272L39.7131 10.0847C40.0402 10.1521 40.0987 10.5613 39.8311 10.7613L31.509 16.2502C31.4696 16.2757 31.4258 16.2921 31.3808 16.3006C31.3808 16.2853 31.3797 16.2695 31.3797 16.2542C31.3572 14.7083 31.401 12.3673 31.7731 9.38595C32.4948 3.48959 35.0107 0.949707 35.0107 0.949707C35.4806 1.6201 36.0067 2.62709 36.516 4.15091C37.458 6.92597 37.6233 8.49115 37.5671 9.33041C37.5603 9.49928 37.6694 9.66362 37.8605 9.70272Z" fill="url(#paint1_lr)"></path><path d="M35.1312 17.9465H32.2217C31.1279 17.9465 30.231 17.0631 30.2091 15.9589C30.1653 14.3689 30.2091 11.8954 30.6247 8.67114C31.281 3.39303 34.0592 0.5 34.0592 0.5H34.0155C31.9592 1.97964 26.5777 3.03968 20.2556 3.03968C13.9335 3.03968 8.55205 1.97964 6.49572 0.5H6.47385C6.47385 0.5 8.98957 3.03968 9.71147 8.93615C10.0834 11.9175 10.1271 14.2584 10.1052 15.8043C10.0834 16.9748 9.12082 17.9244 7.93953 17.9244H4.65816C3.19248 17.9244 2.42682 19.6691 3.41123 20.7733L18.6368 37.6677C19.4462 38.5731 20.8463 38.5731 21.6557 37.6677L36.5312 21.1487C37.6469 19.9341 36.7937 17.9465 35.1312 17.9465Z" fill="url(#paint2_lr)"></path><path opacity="0.44" d="M7.59167 0.934083C7.59167 0.934083 13.0169 2.95129 20.7609 2.64488C28.6581 2.364 33.4708 0.5 33.4708 0.5C33.4708 0.5 29.1612 6.34735 26.0986 14.8247C24.5892 18.9868 23.4954 22.817 22.7079 26.2386C22.0516 29.0729 18.5952 29.0984 17.9389 26.2641C17.042 22.485 15.8389 18.0931 14.2419 13.2416C10.5887 2.2108 7.59167 0.934083 7.59167 0.934083Z" fill="url(#paint3_lr)"></path><path opacity="0.41" d="M10.7404 2.04506C10.7404 2.04506 14.7218 2.92893 20.4313 2.81108C26.2503 2.69323 29.7723 1.86829 29.7723 1.86829C29.7723 1.86829 26.6003 4.46098 24.3471 8.17324C23.1658 10.1178 22.3345 11.9444 21.722 13.5059C21.1751 14.9496 19.0094 14.9496 18.4406 13.5059C17.7625 11.7676 16.8437 9.73474 15.6187 7.46614C12.9498 2.60485 10.7404 2.04506 10.7404 2.04506Z" fill="url(#paint4_lr)"></path><path d="M10.7404 28.76L18.5409 35.7909C19.5493 36.7072 21.294 36.7072 22.3024 35.7909L28.2323 30.4425L21.7482 37.6683C20.941 38.5739 19.5459 38.5739 18.7399 37.6683L10.7404 28.76Z" fill="#1FA156" fill-opacity="0.25"></path><ellipse cx="20.5308" cy="39.9079" rx="9.24116" ry="0.59196" fill="#E7E6E6"></ellipse><ellipse cx="20.5311" cy="39.9068" rx="3.85931" ry="0.333021" fill="#D0CFCF"></ellipse><defs><linearGradient id="paint0_lr" x1="1.02208e-07" y1="10.2361" x2="7.55569" y2="8.29212" gradientUnits="userSpaceOnUse"><stop offset="0.453039" stop-color="#BDF924"></stop><stop offset="1" stop-color="#91DE03"></stop></linearGradient><linearGradient id="paint1_lr" x1="39.9995" y1="10.4948" x2="32.6623" y2="7.10449" gradientUnits="userSpaceOnUse"><stop offset="0.430939" stop-color="#BDF924"></stop><stop offset="1" stop-color="#91DE03"></stop></linearGradient><linearGradient id="paint2_lr" x1="20.0136" y1="1.356" x2="20.0136" y2="39.3868" gradientUnits="userSpaceOnUse"><stop stop-color="#AEF924"></stop><stop offset="1" stop-color="#A0DE03"></stop></linearGradient><linearGradient id="paint3_lr" x1="7.59168" y1="17.3639" x2="28.0633" y2="8.66163" gradientUnits="userSpaceOnUse"><stop offset="0.453039" stop-color="#F3F4EE"></stop><stop offset="1" stop-color="#E4E9DA"></stop></linearGradient><linearGradient id="paint4_lr" x1="20.2568" y1="2.69129" x2="20.2568" y2="14.783" gradientUnits="userSpaceOnUse"><stop stop-color="white"></stop><stop offset="1" stop-color="white" stop-opacity="0"></stop></linearGradient></defs></svg> Helper Pro</div></div><div class="user-info--logout"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 43" fill="none"><path d="M10.7059 1.13511C10.6998 0.536769 10.1483 -0.0122299 9.54528 0.000207339H1.1443C0.545157 0.00026788 7.24792e-05 0.541011 -3.8147e-06 1.13534V26.8648C7.24792e-05 27.4591 0.545157 27.9998 1.1443 27.9999H9.54528C10.1498 28.0082 10.7059 27.4645 10.7059 26.8648C10.7059 26.265 10.1498 25.7212 9.54528 25.7296H2.28861V2.27045H9.54528C10.1563 2.28305 10.7123 1.74133 10.7059 1.13511Z" fill="#DB0000"></path><path d="M26 13.9981C25.9893 13.7275 25.8768 13.4148 25.6893 13.2176L19.5717 6.7849C19.1571 6.41625 18.3622 6.26406 17.8989 6.69031C17.4425 7.11015 17.4561 7.92431 17.9107 8.34582L22.2122 12.8629H6.5C5.86652 12.8629 5.35294 13.3712 5.35294 13.9981C5.35294 14.625 5.86652 15.1333 6.5 15.1333H22.2122L17.9107 19.6504C17.5193 20.0384 17.447 20.8812 17.8989 21.3058C18.3507 21.7304 19.1742 21.5948 19.5717 21.2112L25.6893 14.7785C25.8987 14.5584 26.0007 14.3001 26 13.9981Z" fill="#DB0000"></path></svg> Logout</div></div></div><div class="manual-container hidden"><a href="https://sf-helper.net/helper-pro-manual.php" target="_blank"><div class="item bookmarklet ignore-action" data-action="howActivateHelperPro"><svg class="icon rocket" data-type="howActivateHelperPro" width="24px" height="24px" viewBox="0 0 17 17" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M 11.371094 7.625 C 13.507812 5.074219 14.054688 1.523438 13.996094 0.445312 C 13.996094 0.328125 13.9375 0.226562 13.863281 0.136719 C 13.789062 0.0625 13.6875 0.00390625 13.554688 0.00390625 C 12.476562 -0.0546875 8.925781 0.476562 6.390625 2.613281 L 5.800781 2.390625 C 4.769531 2.007812 3.605469 2.320312 2.894531 3.160156 L 1.261719 5.089844 C 1.023438 5.355469 1.140625 5.78125 1.480469 5.898438 L 3.234375 6.550781 C 2.851562 7.199219 2.585938 7.742188 2.410156 8.125 C 2.261719 8.4375 2.335938 8.804688 2.585938 9.054688 L 4.945312 11.429688 C 5.179688 11.664062 5.550781 11.738281 5.875 11.589844 C 6.257812 11.414062 6.800781 11.148438 7.449219 10.765625 L 8.085938 12.519531 C 8.203125 12.859375 8.628906 12.960938 8.894531 12.738281 L 10.8125 11.105469 C 11.652344 10.394531 11.960938 9.230469 11.578125 8.199219 Z M 10.265625 5.78125 C 9.707031 6.34375 8.792969 6.34375 8.21875 5.78125 C 7.65625 5.222656 7.65625 4.308594 8.21875 3.734375 C 8.777344 3.171875 9.691406 3.171875 10.265625 3.734375 C 10.828125 4.308594 10.828125 5.222656 10.265625 5.78125 Z M 10.265625 5.78125 M 3.929688 12.03125 L 2.867188 13.078125 C 2.660156 13.285156 2.660156 13.640625 2.867188 13.84375 C 3.074219 14.050781 3.425781 14.050781 3.632812 13.84375 L 4.695312 12.785156 C 4.902344 12.578125 4.902344 12.222656 4.695312 12.015625 C 4.472656 11.8125 4.136719 11.8125 3.929688 12.03125 Z M 3.929688 12.03125 M 3.324219 10.675781 C 3.117188 10.46875 2.765625 10.46875 2.558594 10.675781 L 0.878906 12.371094 C 0.671875 12.578125 0.671875 12.929688 0.878906 13.136719 C 1.082031 13.34375 1.4375 13.34375 1.644531 13.136719 L 3.324219 11.429688 C 3.546875 11.222656 3.546875 10.882812 3.324219 10.675781 Z M 3.324219 10.675781 M 1.984375 10.085938 C 2.1875 9.878906 2.1875 9.527344 1.984375 9.320312 C 1.777344 9.113281 1.421875 9.113281 1.214844 9.320312 L 0.15625 10.382812 C -0.0507812 10.585938 -0.0507812 10.941406 0.15625 11.148438 C 0.359375 11.355469 0.714844 11.355469 0.921875 11.148438 Z M 1.984375 10.085938" id="Rocket" fill="#46AA4B"></path></svg> <span class="label" data-i18n="howActivateHelperPro">How to activate Helper Pro</span></div></a><div class="bookmarklet separator"></div></div><div class="item bookmarklet" data-action="downloadFromCurrentPage"><svg class="icon" data-type="downloadFromCurrentPage" width="24px" height="20px" viewBox="0 0 24 20" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M3,7.69681435 L3,15.3801087 C3,16.2322665 3.68349659,16.9230769 4.49309635,16.9230769 L16.5069036,16.9230769 C17.3300962,16.9230769 17.9976943,16.2517344 17.999994,15.3846154 L19.5,15.3846154 L19.5,13.8461538 L21,13.8461538 L21,16.9353584 C21,18.6151136 19.6529197,20 17.991212,20 L3.00878799,20 C1.34559019,20 0,18.6279132 0,16.9353584 L0,6.14156464 C0,4.46180949 1.34708027,3.07692308 3.00878799,3.07692308 L9,3.07692308 L9,4.61538462 L7.5,4.61538462 L7.5,6.15384615 L4.49309635,6.15384615 C3.66848201,6.15384615 3,6.82750977 3,7.69681435 Z M16.5,4.63388975 L16.5,0 L24,6.92307692 L16.5,13.8461538 L16.5,9.24590979 C11.3943853,9.45271984 7.21913082,11.7555356 6.22504073,14.7692308 C6.07746807,14.2224293 6,13.6564807 6,13.0769231 C6,8.59329616 10.6364812,4.92416479 16.5,4.63388975 Z" id="Share" fill="#000000"></path></svg> <span class="label" data-i18n="downloadFromCurrentPage">Go to SaveFrom.net</span></div><div class="bookmarklet separator"></div><div class="item module vk odnoklassniki facebook lm youtube dailymotion instagram rutube" data-action="updateLinks"><svg class="icon" data-type="updateLinks" width="22px" height="24px" viewBox="0 0 22 24" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M21.2307692,13.7142857 C21.2307692,19.3949291 16.4780999,24 10.6153846,24 C4.75266929,24 0,19.3949291 0,13.7142857 C0,8.03364229 4.75266929,3.42857143 10.6153846,3.42857143 L10.6153846,6.85714286 C6.70690773,6.85714286 3.53846154,9.9271901 3.53846154,13.7142857 C3.53846154,17.5013813 6.70690773,20.5714286 10.6153846,20.5714286 C14.5238615,20.5714286 17.6923077,17.5013813 17.6923077,13.7142857 L21.2307692,13.7142857 L21.2307692,13.7142857 Z M10.6153846,10.2857143 L10.6153846,0 L19.4615385,5.14285714 L10.6153846,10.2857143 Z" id="Refresh" fill="#000000"></path></svg> <span class="label" data-i18n="updateLinks">Refresh links</span></div><div class="item module vk odnoklassniki mailru yandexMusic" data-action="downloadMP3Files"><svg class="icon" data-type="downloadMP3Files" width="21px" height="24px" viewBox="0 0 21 24" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M21,2.76923077 L21,17.6487288 C21,17.6487288 21,17.6487288 21,17.6487288 L21,18.4615385 L20.9068729,18.4615385 C20.723595,19.2712249 20.2716013,20.0865791 19.5669296,20.7680198 C17.9203537,22.360313 15.5176896,22.6184747 14.2004289,21.3446402 C12.8831682,20.0708056 13.1501309,17.7473503 14.7967068,16.1550571 C16.0602516,14.9331676 17.7690324,14.4969051 19.0909091,14.9356816 L19.0909091,14.9356816 L19.0909091,4.15384615 L7.63636364,6.92307692 L7.63636364,19.4948826 C7.63636364,19.4948826 7.63636364,19.4948826 7.63636364,19.4948826 L7.63636364,20.3076923 L7.5432365,20.3076923 C7.35995859,21.1173788 6.90796493,21.9327329 6.20329323,22.6141737 C4.55671732,24.2064669 2.15405328,24.4646286 0.836792552,23.190794 C-0.480468173,21.9169595 -0.213505501,19.5935041 1.43307041,18.0012109 C2.69661523,16.7793214 4.40539601,16.343059 5.72727273,16.7818354 L5.72727273,16.7818354 L5.72727273,6.46153846 L5.72727273,3.69230769 L21,0 L21,2.76923077 Z" id="Music-2" fill="#000000"></path></svg> <span class="label" data-i18n="downloadMP3Files">Download audio files</span></div><div class="item module vk odnoklassniki plYoutube" data-action="downloadPlaylist"><svg class="icon" data-type="downloadPlaylist" width="24px" height="18px" viewBox="0 0 24 18" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L0,3.6 L3.42857143,3.6 L3.42857143,0 L0,0 Z M0,7.2 L0,10.8 L3.42857143,10.8 L3.42857143,7.2 L0,7.2 Z M5.14285714,0 L5.14285714,3.6 L24,3.6 L24,0 L5.14285714,0 Z M5.14285714,7.2 L5.14285714,10.8 L20.5714286,10.8 L20.5714286,7.2 L5.14285714,7.2 Z M0,14.4 L0,18 L3.42857143,18 L3.42857143,14.4 L0,14.4 Z M5.14285714,14.4 L5.14285714,18 L22.2857143,18 L22.2857143,14.4 L5.14285714,14.4 Z" id="Bullet-List" fill="#000000"></path></svg> <span class="label" data-i18n="downloadPlaylist">Download a playlist</span></div><div class="item module vk" data-action="downloadPhotos"><svg class="icon" data-type="downloadPhotos" width="24px" height="18px" viewBox="0 0 24 18" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M19.5,3 L21.0089096,3 C22.6582294,3 24,4.34288718 24,5.99942248 L24,15.0005775 C24,16.6556493 22.6608432,18 21.0089096,18 L2.99109042,18 C1.34177063,18 0,16.6571128 0,15.0005775 L0,5.99942248 C0,4.34435073 1.33915679,3 2.99109042,3 L7.5,3 C7.5,1.34651712 8.84187067,0 10.497152,0 L16.502848,0 C18.1583772,0 19.5,1.34314575 19.5,3 L19.5,3 Z M13.5,16.5 C16.8137087,16.5 19.5,13.8137087 19.5,10.5 C19.5,7.18629134 16.8137087,4.5 13.5,4.5 C10.1862913,4.5 7.5,7.18629134 7.5,10.5 C7.5,13.8137087 10.1862913,16.5 13.5,16.5 Z M13.5,15 C15.9852815,15 18,12.9852815 18,10.5 C18,8.0147185 15.9852815,6 13.5,6 C11.0147185,6 9,8.0147185 9,10.5 C9,12.9852815 11.0147185,15 13.5,15 Z" id="Camera-2" fill="#000000"></path></svg> <span class="label" data-i18n="downloadPhotos">Download pictures</span></div><div class="module vk odnoklassniki facebook lm separator"></div><div class="item" data-action="showOptions"><div class="icon"></div><span class="label" data-i18n="showOptions">Options</span></div><div class="item" data-action="openPoll"><div class="icon"></div><span class="label" data-i18n="openPoll">Become better</span></div><div class="item enableModule" data-action="enableModule"><i class="sf-checkbox"><i><i></i></i></i> <span id="disableModule" class="label" data-i18n="disableModule">Disable module</span></div><div style="display: none;" data-action="showAboutPage"><svg class="icon" data-type="showAboutPage" width="24px" height="24px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="m3.09,.719c0,.851 0,1.711 0,2.561-.67,0-1.34,0-2.01,0 1.07,1.07 2.15,2.15 3.22,3.22 0-1.93 0-3.85 0-5.781-.42,0-.83,0-1.25,0zm1.91,0c.04,2.091 .04,4.191 .04,6.281-1.67,0-3.33,0-5,0 2.67,2.77 5.33,5.5 8,8.3 2.7-2.8 5.3-5.53 8-8.3-1.7,0-3.3,0-5,0 0-2.09 0-4.19 0-6.281-2,0-4,0-6,0zm6.7,0c0,1.931 0,3.851 0,5.781 1.1-1.07 2.1-2.15 3.2-3.22-.7,0-1.3,0-2,0 0-.85 0-1.71 0-2.561-.4,0-.8,0-1.2,0z"></path></svg></div></div>',o.popupScripts=[function(e){!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(t,n,r){var o=e;n.a=o},,,function(e,t){e.exports=n(17)},,,function(e,t){e.exports=n(30)},,function(e,t){e.exports=n(44)},function(e,t,n){var r=n(8),o=n(17);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=o.locals||{},u.use=function(){return i++||(a=r(o,s)),u},u.unuse=function(){i>0&&!--i&&(a(),a=null)},e.exports=u},,,function(e,t){e.exports=n(135)},,,,function(e,t,n){n.r(t);var r=n(9),o=n.n(r),a=n(0),i=n(12),s=n.n(i),u=n(3),l=n.n(u);o.a.use(),a.a.onDestroy.addListener((function(){o.a.unuse()})),function(e){var t={},n={icons:{},activeTabInfo:{},helperName:""},r=function(e){if(!this.classList.contains("ignore-action")&&(e.preventDefault(),e.stopPropagation(),!this.classList.contains("inactive"))){var r,o,i=this.dataset.action,s=this.classList.contains("module");if("enableModule"===i)return r=n.activeTabInfo,o=n.moduleTrigger.classList.contains("disabled")?1:0,r.state=o,b(o,1),t[r.prefKey]=o,a.a.sendMessage({action:"viaMenu_changeState",state:o?1:0,prefKey:r.prefKey,moduleName:r.moduleName,needInclude:r.isNotResponse}),r.isNotResponse=!1,void m(r);a.a.sendMessage({action:(s?"viaMenu_":"")+i}),a.a.isGM?a.a.bundle.buttonUi&&a.a.bundle.buttonUi.hideMenuItems():a.a.isSafari?safari.extension.popovers[0].hide():window.close()}},o=function(t,n){for(var r=e.querySelectorAll("div."+t),o=0;o<r.length;o++)n?r[o].classList.remove("inactive"):r[o].classList.add("inactive")},i=function(t,n){if(!n)return o("module",!1);for(var r=e.querySelectorAll("div.module"),a=0;a<r.length;a++)r[a].classList.contains(t)?r[a].classList.remove("inactive"):r[a].classList.add("inactive")},u=function(e){e.preventDefault(),a.a.openTab(this.href,!0)},c=function(){for(var t=e.querySelectorAll('a[href][target="_blank"]'),n=0,r=t.length;n<r;n++)t[n].removeEventListener("click",u),t[n].addEventListener("click",u)},d=function(e){if(-1!==["odnoklassniki"].indexOf(e.moduleName)?o("bookmarklet",!1):o("bookmarklet",!0),"vk"===e.moduleName&&e.url.includes("m.vk.com"))return i(e.moduleName,0);if(i(e.moduleName,e.state),e.state&&"youtube"===e.moduleName){var t=e.url,n=/\/playlist\?|[?&]list=/.test(t);n||(n=/(user|channel|c|show)\/[^\/]+(\/feed|\/featured|\/videos|$)/i.test(t)),n||(n=/\/(feed)\/(trending|subscriptions|history)/i.test(t)),o("plYoutube",!!n)}},p=function(e){var t=!1,n=!1;-1!==["savefrom"].indexOf(e.moduleName)?n="force":e.moduleName&&(n=!!e.state,t=!0),o("enableModule",t),b(n)},f=function(e,t){if(n.activeTabInfo=e=e||{},p(e),d(e),!t){var r=function(t){for(var n in clearTimeout(o),e.isNotResponse=!t,t)e[n]=t[n];p(e),d(e)},o=setTimeout(r,250);a.a.sendMessage({action:"getActiveTabModuleInfo",url:e.url},r)}},m=function(e){n.activeTabInfo={},e?f(e,1):a.a.sendMessage({action:"getActiveTabInfo"},f)},g=function(e,t){var n=e.querySelector("path");if("hover"===t)n.setAttribute("fill","#ffffff");else if("active"===t)n.setAttribute("fill","#AAAAAA");else{var r=e.getAttribute("data-type");"downloadMP3Files"===r?n.setAttribute("fill","#00CCFF"):"downloadPlaylist"===r?n.setAttribute("fill","#77D1FA"):"downloadPhotos"===r?n.setAttribute("fill","#88cb66"):"showAboutPage"===r?n.setAttribute("fill","#ADE61B"):"updateLinks"===r||"downloadFromCurrentPage"===r?n.setAttribute("fill","#CB7FBD"):"howActivateHelperPro"===r&&n.setAttribute("fill","#ADE61B")}},h=function(e,t){var r=n.desc,o=n.deskText,i=n.descTitel,u=n.descMore;r.dataset.page=e;var d=n.icons[e],p=r.querySelector(".icon");if(d){var f=d.cloneNode(!0);g(f,"active"),p&&p.parentNode.replaceChild(f,p),p.style.visibility="visible"}else p.style.visibility="hidden";"showAboutPage"===e?(i.textContent=a.a.i18n.getMessage("aboutTitle"),o.textContent="",o.appendChild(l.a.create(document.createDocumentFragment(),{append:[l.a.create("p",{text:a.a.i18n.getMessage("aboutDescription")}),l.a.create("a",{href:"http://savefrom.net/faq.php#supported_resourses",target:"_blank",text:a.a.i18n.getMessage("aboutSupported"),style:{display:"block"}}),l.a.create("a",{href:"http://savefrom.net/user.php?helper="+n.helperName,target:"_blank",text:a.a.i18n.getMessage("homePage"),style:{display:"block"}})]})),u.style.display="none"):(i.textContent=t,o.textContent=a.a.i18n.getMessage("menu"+s()(e))||"",u.style.display="block"),a.a.isSafari&&c()},v=function(){!function(){for(var t=e.querySelectorAll("*[data-i18n]"),n=0,r=t.length;n<r;n++){var o=t[n],i=o.dataset.i18n;o.textContent=a.a.i18n.getMessage(i),o.classList.contains("label")&&(o.title=a.a.i18n.getMessage(i))}}(),n.descMore.href="http://savefrom.net/user.php?helper="+n.helperName;for(var t=e.querySelectorAll("div[data-action]"),o=0;o<t.length;o++){var i=t[o].querySelector("svg");i&&(n.icons[t[o].dataset.action]=i,g(i)),"none"!==t[o].style.display&&l.a.create(t[o],{on:[["click",r],["mouseenter",function(){var e=this.dataset.action,t=n.icons[e];t&&g(t,"hover");var r=this.querySelector("span"),o=r&&r.textContent||"";h(e,o)}],["mouseleave",function(){var e=this.dataset.action,t=n.icons[e];t&&g(t)}]]})}!function(){var t="http://savefrom.net/user.php",n=encodeURIComponent(t),r=encodeURIComponent("http://savefrom.net/img/icon_100.png"),o=encodeURIComponent(a.a.i18n.getMessage("extName")),i=encodeURIComponent(a.a.i18n.getMessage("socialDesc")),s={vk:{network:"vkontakte",title:a.a.i18n.getMessage("shareIn").replace("%w","VK"),href:"http://vk.com/share.php?url="+n+"&image="+r+"&title="+o+"&description="+i},ok:{network:"odnoklassniki",title:a.a.i18n.getMessage("shareIn").replace("%w","OK.ru"),href:"http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl="+n+"&st.comments="+i},mailru:{network:"mail.ru",title:a.a.i18n.getMessage("shareIn").replace("%w","Mail.ru"),href:"http://connect.mail.ru/share?url="+n+"&title="+o+"&description="+i+"&imageurl="+r},tw:{network:"twitter",title:a.a.i18n.getMessage("shareIn").replace("%w","Twitter"),href:"https://twitter.com/intent/tweet?text="+o+"&url="+n},fb:{network:"facebook",title:a.a.i18n.getMessage("shareIn").replace("%w","Facebook"),href:"http://www.facebook.com/sharer.php?s=100&p[url]="+n+"&p[title]="+o+"&p[summary]="+i+"&p[images][0]="+r},gp:{network:"google+",title:a.a.i18n.getMessage("shareIn").replace("%w","Google+"),href:"https://plus.google.com/share?url="+n},lj:{network:"livejournal",title:a.a.i18n.getMessage("shareIn").replace("%w","Livejournal"),href:"http://www.livejournal.com/update.bml?subject="+o+"&event="+i+" "+n}};for(var u in s){var l=e.querySelector(".social-btn."+u);l&&(l.title=s[u].title,l.href=s[u].href,l.dataset.network=s[u].network)}l.parentNode.addEventListener("click",(function(e){var n=e.target;if(n.classList.contains("social-btn")){var r=n.dataset.network;a.a.sendMessage({action:"track",t:"social",st:t,sa:"share",sn:r})}}))}(),a.a.isSafari&&c(),h("showAboutPage"),m(),e.classList.remove("loading")},b=function(e,t){t&&n.moduleTrigger.classList.add("sf-transition"),"force"===e?n.moduleTrigger.classList.add("enableForce"):n.moduleTrigger.classList.remove("enableForce"),e?(n.moduleTrigger.classList.remove("disabled"),n.moduleTrigger.nextElementSibling.textContent=a.a.i18n.getMessage("disableModule")):(n.moduleTrigger.classList.add("disabled"),n.moduleTrigger.nextElementSibling.textContent=a.a.i18n.getMessage("enableModule")),"showAboutPage"!==n.desc.dataset.page&&h("enableModule",e?a.a.i18n.getMessage("disableModule"):a.a.i18n.getMessage("enableModule"))},y={tutorialSlides:null,show:function(){if(t.onceShowYtTutorial){var n=function(){a.a.sendMessage({action:"updateOption",key:"onceShowYtTutorial",value:t.onceShowYtTutorial=0}),a.a.sendMessage({action:"setIconBadge",text:""})};return y.tutorialSlides?y.tutorialSlides.show({container:e,width:482,height:404+(a.a.isGM?2:0),padding:4,slideList:y.tutorialSlides.getYtSlideList("black"),onClose:n,trackId:"Menu",boxStyle:{backgroundColor:"transparent"},containerStyle:{borderRadius:"3px",backgroundColor:"rgba(0, 104, 255, 0.9)",padding:0,margin:"4px",boxShadow:"none"},slideStyle:{backgroundColor:"transparent",borderRadius:0},leftBtnStyle:{top:"4px",left:"4px"},rightBtnStyle:{top:"4px",right:"4px"},closeBtnStyle:{backgroundColor:"#fff",color:"rgba(0, 104, 255, 0.9)"},cssStyle:{" .sf-dots":{paddingTop:"2px"}," .sf-dot i":{backgroundColor:"#fff"}," .sf-dot.active i":{backgroundColor:"transparent",borderRadius:"6px",margin:"-1px",width:"6px",height:"6px",border:"2px solid #fff"}," .sf-slider-conteiner span":{color:"#fff !important"}," .sf-slider-conteiner a":{color:"#fff !important"}},arrowColor:"#fff",arrowColorActive:"#fff",onResize:function(e){e.box.style.position="absolute"},withOpacity:!0,withDelay:250,onShow:function(){a.a.isSafari&&c(),a.a.sendMessage({action:"setIconBadge",text:"?"})}}):n()}}};setTimeout((function(){e.classList.remove("loading")}),1e3),n.list=e.querySelector(".sf-menu-list"),n.desc=e.querySelector(".sf-menu-desc"),n.moduleTrigger=e.querySelector(".sf-checkbox"),n.descTitel=n.desc.querySelector(".title"),n.deskText=n.desc.querySelector(".desc"),n.descMore=n.desc.querySelector(".more"),n.list.style.height=n.list.offsetHeight+"px",a.a.sendMessage({action:"getMenuDetails"},(function(r){var o,i,s;t=r.preferences,n.helperName=r.helperName,o=r.version,i=r.lastVersion,(s=n.desc.querySelector(".version")).textContent="",s.appendChild(l.a.create("span",{text:a.a.i18n.getMessage("aboutVersion")+" "+o})),i&&i!==o&&s.appendChild(l.a.create("a",{text:a.a.i18n.getMessage("updateTo").replace("%d",i),href:"http://savefrom.net/user.php?helper="+n.helperName+"&update="+o,target:"_blank"})),-1===["en","uk","ru"].indexOf(a.a.i18n.getMessage("lang"))&&e.classList.add("no-poll"),function n(r){if(t.proEnabled){var o=document.querySelector(".login-container");o&&o.classList.remove("hidden")}var i=r.userInfo,s=r.loginUrl,u=e.querySelector(".login-btn"),l=e.querySelector(".user-info"),c=e.querySelector(".user-info--logout"),d=l.querySelector(".helper--label"),p=document.querySelector(".manual-container"),f=function(e){e.preventDefault();var t=document.createElement("a");t.target="_blank",t.href=s,t.click(),setTimeout((function(){return t.remove()}))},m=function(){return a.a.callFn("auth.logout").then((function(){return n({userInfo:void 0,loginUrl:s})}))};u.removeEventListener("click",f),c.removeEventListener("click",m),i||(u.querySelector(".text").textContent=a.a.i18n.getMessage("login"),u.addEventListener("click",f),u.classList.remove("hidden"),l.classList.add("hidden"),p.classList.add("hidden")),i&&t&&t.proEnabled&&(p.classList.remove("hidden"),u.classList.add("hidden"),l.classList.remove("hidden"),i.email?d.classList.add("hidden"):d.classList.remove("hidden"),i.email&&(l.querySelector(".user-info--email").textContent=i.email),c.addEventListener("click",m))}({userInfo:r.userInfo,loginUrl:r.loginUrl}),y.show(),v()}))}(a.a.container||document.body)},function(e,t,n){n.r(t);var r=n(6),o=n.n(r)()(!1);o.push([e.i,".sf-menu-container{width:482px;font:12px/17px Tahoma,Helvetica,OpenSans,sans-serif;color:#000;background-color:#fff;margin:0;box-sizing:inherit;overflow:hidden;flex-direction:initial}.sf-menu-container.loading>*{visibility:hidden}.sf-menu-container>*{box-sizing:inherit;flex-direction:initial}.sf-menu-container p{font-size:12px}.sf-menu-container div.sf-menu-desc,.sf-menu-container div.sf-menu-list{display:inline-block;vertical-align:top;float:left}.sf-menu-container div.sf-menu-desc{width:166px;padding:20px 30px;padding-bottom:36px;color:#6a6a6a}.sf-menu-container div.sf-menu-desc a{text-decoration:none;color:#4a90e2}.sf-menu-container div.sf-menu-desc a:not(.social-btn):hover{text-decoration:underline}.sf-menu-container .sf-menu-desc .icon{width:74px;height:74px;display:inline-block;background-size:74px;background-repeat:no-repeat;background-position:center;padding:0;margin:0}.sf-menu-container .sf-menu-desc .version{vertical-align:top;display:inline-block;float:right;margin-right:-30px;width:110px}.sf-menu-container .sf-menu-desc .version>a,.sf-menu-container .sf-menu-desc .version>span{display:block}.sf-menu-container .sf-menu-desc .icon path{fill:#ccc!important}.sf-menu-container .sf-menu-desc .title{font-size:20px;line-height:1.2;font-weight:400;margin-top:14px;margin-bottom:16px}.sf-menu-container .sf-menu-desc .more{position:absolute;bottom:40px}.sf-menu-container .sf-menu-list{height:348px;width:243px;font-size:14px;padding:14px 6px;border-left:1px solid #d8d8d8}.sf-menu-container .sf-menu-list .separator{border-top:1px solid #d8d8d8;margin-top:10px;margin-bottom:9px;margin-left:59px}.sf-menu-container .sf-menu-list .manual-container .label{font-size:12px!important}.sf-menu-container .sf-menu-list .manual-container a{color:#000}.sf-menu-container .sf-menu-list .manual-container a:hover{color:#fff}.sf-menu-container .sf-menu-list .manual-container .icon.rocket{margin-top:12px}.sf-menu-container .sf-menu-list .hidden{display:none!important}.sf-menu-container .sf-menu-list .login-container{display:flex;justify-content:flex-end;margin-bottom:10px;font-family:Roboto,sans-serif}.sf-menu-container .sf-menu-list .login-container .login-btn{display:flex;background:linear-gradient(89deg,#3fa444 73px,#68c66b 183px,rgba(55,158,60,.97) 103.98%) -57px;background-size:300px;padding-top:13px;padding-bottom:7px;color:#fff;cursor:pointer;transition:background-position .8s linear;letter-spacing:.8px;font-size:14px;line-height:.9;width:93%;margin:0 auto;border-radius:7px;font-weight:400}.sf-menu-container .sf-menu-list .login-container .login-btn:hover{background-position:0}.sf-menu-container .sf-menu-list .login-container .login-btn .logo{width:23px;height:20px;margin-right:19px;margin-top:-4px;margin-left:18px}.sf-menu-container .sf-menu-list .login-container .user-info{display:flex;justify-content:space-between;width:233px}.sf-menu-container .sf-menu-list .login-container .user-info--email{width:150px;font-size:12px;font-family:sans-serif;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sf-menu-container .sf-menu-list .login-container .user-info--email .helper--label{display:flex;font-size:14px;line-height:1.5;font-weight:700}.sf-menu-container .sf-menu-list .login-container .user-info--email .helper--label svg{width:20px;height:20px;margin-right:7px}.sf-menu-container .sf-menu-list .login-container .user-info--logout{display:flex;justify-content:flex-end;cursor:pointer;width:71px;color:#db0000;font-size:13px;font-family:sans-serif;margin-top:-2px;line-height:1;margin-right:3px}.sf-menu-container .sf-menu-list .login-container .user-info--logout svg{width:14px;margin-right:4px}.sf-menu-container .sf-menu-list .item{height:40px;cursor:pointer;border-radius:5px;margin-top:-2px;margin-bottom:-2px;overflow:hidden;display:block}.sf-menu-container .sf-menu-list .item .icon{margin:0;margin-left:18px;width:24px;height:24px;margin-bottom:8px;margin-top:8px;float:left;display:block;padding:0}.sf-menu-container .sf-menu-list .item .label{padding-left:18px;padding-right:18px;line-height:40px;font-size:14px;white-space:nowrap;width:165px;display:inline-block;text-overflow:ellipsis;overflow:hidden}.sf-menu-container .sf-menu-list .item .label.dbl{line-height:normal;padding-top:2px;white-space:normal;height:40px}.sf-menu-container.no-poll .sf-menu-list div[data-action=openPoll]{display:none}.sf-menu-container.no-poll .sf-menu-list .item .icon{margin-bottom:10px;margin-top:10px}.sf-menu-container.no-poll .sf-menu-list .item{height:44px}.sf-menu-container.no-poll .sf-menu-list .item .label{line-height:44px}.sf-menu-container .sf-menu-list .item:hover{background-color:#597a9e;color:#fff}.sf-menu-container .sf-menu-list .item.inactive{opacity:.5;cursor:default}.sf-menu-container .sf-menu-list .item.inactive .icon path{fill:#c2c2c2!important}.sf-menu-container .sf-menu-list .item.inactive:hover{background-color:#fff;color:#000}.sf-menu-container .sf-menu-list .icon[data-type=showAboutPage]{visibility:hidden}.sf-menu-container .sf-menu-list .sBtn{text-decoration:none}.sf-menu-container .sf-menu-list .sBtn:hover{text-decoration:none}.sf-menu-container .social-block{position:absolute;bottom:20px;height:16px;cursor:default;flex-direction:initial}.sf-menu-container .social-block .social-btn{display:inline-block;width:16px;height:16px;background-position:center;background-repeat:no-repeat;float:initial;margin:initial;padding:initial;list-style:initial}.sf-menu-container .social-block .social-btn:hover{opacity:.8}.sf-menu-container .social-block .social-btn.vk{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAGWSURBVDhPnZDbK8NhGMfff0bGWpJSSi2HMkxCboTk1MghhwtiY2tNISJzaBeaaE65WEJIshvahSKTcm7MKUUOl1+/5+2nvW9ysX3rU8/z9PlevC8zuX36xmn/QbPbj0igDnVZ5YQvVDCwg2zHVkRQh7os176BLNt6VFCXZZq9ECkb3oZrM/CHusk9yfuFpXUsQ6TNtYv/0ju3L7kE07d5INLi3FR1YGzJh86JVbx/fvPdf3YnuQRLbXJDpHl0jcuUxmEvUkxTCFw98H1l91hyCZZicilSmIYhL5cpp9dPOL155nPw8RXp9U7JJVhy1ThE6vtXeIESuLzH/vEl3j6++L7tP5dcgiWVj0DE5FjkMqXGOgNdkRWtAwvqBSjt8Ug+SywZhEit3aOq4DPdbFPhf6m1z0s+Syjug0iNdVZVgZML5QlHV+oG3IZeoCu0ST7TFdqVY5hqi1vV5azvHSKzwiG5BNPmWyESZ+xGTEbTH2Kz2hGfZ5FcgmlyuoPxRguigbpMazQbNIbOkCanSzlEgNLRGs2GHzakmmoMvlqgAAAAAElFTkSuQmCC)}.sf-menu-container .social-block .social-btn.ok{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAILSURBVDhPldFPaNNQHAfwdxdaqxNBVKQO8aIgeBJl4GkMBNlwyI5eNxBByRhTh4iXHRRcxdlNJqNOUQZD3cSpPaTgxlA2UJzS2kMnbZOuabL8bZp8zYtV35un/eBDyI/v95FHiJXpbHMWzy86Sz3YkqBDu8QUzxSt98dhzR/+y/7QBU9Kw3eq8I0C3NworLdHuQzt0C6xXh+BNRcsmux3p+BZEuj4XiN80nHzKS4XCrrEnDkElv15OCxohQxWU2348fICvLoJv+HAenOay1LEfN4Klr46FR5QFoegPj2ISioOu5oLd/p8N5eliPk4DpacFsKwq+Rgi32oL9+md4FrKlCeBPfelCfGxH6wSvcPQMuL4SHsFF5dhvZwH5eliJHcC5Y5eQz5ByexNncVta+zqHyaQjbVA3niBIzxOJeliJ7YA5anFuAZMrSFEZRmLkKaFWB9ewEEf8RZustlKbJxZzdYysp086P5cfV1VKZ7uSxFNoZ3gZW91oLviQ7Ua8VmFVj/+AxfhlpRvNnCZSmi3dqJzYyFZLP6exqaBH2y678cRbQbO8CyM4mw5Nk6sve6UU6Phu++68AY6+CyFFGvbwerlhmHU/2J7Mg5lAZiyF2JQhIfwdVkKMmzXJYiyuC2NXUwij+ylyJY6YuiJPC75d4oyv3/dhTtElmItav9kaI6EMGWBB1ZiLX/Au4A8snC/izyAAAAAElFTkSuQmCC)}.sf-menu-container .social-block .social-btn.fb{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAFJSURBVDhPlYvBK4NxGMeff8VmCUnTettYvaWtJpmJmmJoOAlHB1syS3IQ0fYmjF5p28EOlKy0mVZ22GkXNxdZUQ7Kcb68P/1W9va+b/vU5/J8ni8Foo/iXKRcmo+W0YzKRtmSf7VYdS3k4Zy9a0plo2xJDGbRN32r6+BiDjfFVzw9f9b1LuehbMkxeQUjS5U3NOJbyrJGwvgl9LRPZFCrfbPR+8cXtg4LWD/IQZzJsE62sRT0FPxpNlZIXldgHT6B1ZeAbTTJOvWMyDCSc5Quqxp1Dx1DSz08wRT7oa4BCVrq4Q7I7Ic63fvQ0tIbYnIkuVC/dbj22A+19+/ASI50XkRjozZxG0Zy4vKDqpHFuQkjOfGze1WjVscGjOTETvOqRmYh/GK2r0FPTiyR+99+t2QSwp4WW6hqEkLQciVywfRO7dZvf5uw5wdeN3Dr307RWAAAAABJRU5ErkJggg==)}.sf-menu-container .social-block .social-btn.tw{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAHKSURBVDhPndDPSxRhHAbw9y+ZXTWXMImQhATJk2QGCR67COGlbp3s4tm7qWiJbmVJEkYeDDos+4NKwxQq/IHFbu1uqzIz6OzOvu/O7s7T+33d0cWWYP3CB96Z93nmHV52Z1N0DWw7qwM7DuoiO9Rl/d945vqGQPuXQl2oQ1127XMBV1fPh7qs7aMA6V4roGPleF2tT54UMctIchezqRIGvxdwV/L22ZUoB5lKONjMltH5Qahn0ib9zpdxdqbjpxl2OcRBhtYttXkgXIzIS+qKCdz+JNS76jFFCb0hU3UIa32fB+kLH+KAFysxwJEHZ/i/p2/oHJfeWapDWMtyHuTBWr4S+f+8jdsq72EXl2yQwGsdL7aPUHLdSrT23I8aKu9hgTc5eAZDRiVWe3ZMgcAr/SRPWPNCDp4LLw08jOzjT+70Lrwpll3cWkyfZD2saT4LcmPZxr0Yx/hXGzm6wapJZx30LybROGeqbDXWNCcX0s0lC8+3OH5ZRZi8hJTlIJywMSz/qOVxHI1BQ+XOYg3PLBD/rAHfZAra2E9oo7vQHv2ANpGA/8keGp4eqUwtTJs5TPmD8gPnQF2mBfUe37SV8c1YqIvsaEG95y/ECyN0UoUvcQAAAABJRU5ErkJggg==)}.sf-menu-container .social-block .social-btn.lj{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAF4SURBVDhPY/j//z8Dg0GYKItu+lIm/bQ/bAYZ/5n007czaSRKgOQIYQaQQqDG2x5exf/7kmv/T0ip/e/sVf6fSSfjBjGGMAA1b/QEagZpLE3v+2+Xu/5/UMOe/x7ZM4kyBGTAH5DNZem9/y1zN/0/euUlUPz//yt3X/xXCuwjaAgDk07azx6gAQ65a/9v2H/1//sPH//XLzr33712///8Rff++9VuxmsIA4tOxnw799L/7uWb/585c+Z/9sSD/10qd/2fceL3/5kn/4IxPkMYGDXDeIChfsw4rOX/jKWb/1sX7Phvkbv5f0j7IaIMARMwQxT9O/87lAFdUH0SbEhox2GChsBNghsSOBVsAF5D9DL2YhhAiiEOeUv/s+hlALWgGQDCYEN00g+jG+JYuvW/SfoaOMZpAAhjMwSk6f+FKXCM1wAQRjeEZANAGGQIi3bGHDm/iSgGTOxqAhsAig2sGtExSDE2DMq1WDUQwiCbmXQzdjFqxqoAAJTWdEqr5+cQAAAAAElFTkSuQmCC)}.sf-menu-container .social-block .social-btn.mailru{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAKISURBVDhPldJbSJNhHAbw9/vmYUTiRXQXhjhn3dhyblPxLLmZE6YoOzgdU5fTeZjZtCnZYUvSZZtUWOnIeSqjsiAIuigL6YBXXUTQTTeWeFN0wKibp/d9XZJ15cUPtv/7PP/3+9iIwr9YoDyz9Erpf45toR3WJXLvk9WEloeQNDzYFtZhXSJtuA+JbWELjXsEwWEjXo6n48W1AwgMmZHZGfwvx7pEYp3HHztt07gVKsGvmwTPxtIxeNqAEV8F3oT38tlMsBQ76mc38wyRmKbBxJsn8eiyGiuRRCjqjiHVegKmLidKXN2QGgLQNrfg04yIhdE8xJineIchYnUYTENPM79FZupFk8eB9RsEbyf28IWvx2VYCGbD3mHhmQp3N+8wRDSMgVm+IkPkbA4U9n4eKrY3QTzkQ5zuFK768vksrbYfdwMZuHM+i3cYIupDYNbnCGwuE4ZPHsbiaBrEsiE+F/VBJFV58G2WQG7pg7dHj7WpuOhZiC7Q0SD1lQbsbSYM9pVuLIjOmeSa4/hOL5AbPfB5tfg4Kd08I+wxmcehVNwezoC8shU/6eOWNTXyeUL5AObPqfgr7Kt2Y+miDHP+DH7GELF4AIyhvpqH8iyNKK+twlokBu8mdmM1Eo+noyn4cF2KewEFz+QbrbzDELHAC0bI7UZ44CC/vc5Rif1lVmhNVdAYjNhV6EBfZyHehxPR1VoEIc/DOwwRc+mXKEHdCv/RbPygP+HnafpnojcvX0rClxmCFK0dQuYRCFntm3mGCDld2ELlRHKREY7GEoR6VbjQo0KNRYv43PatuSgiqNtWhKwOuvkvmja+SFA6NrDP/2YY2iWxGqdOyHStCmoXHWwD7cRqnLrfWEQPCw6Z+WcAAAAASUVORK5CYII=)}.sf-menu-container .social-block .social-btn.gp{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAIfSURBVDhPldL/SxNhHAfw54+RqY0ck2CU7OZM2bm+LKNiEShNyoaxogTJvoAWVAYJBUX9EBRREoqlY4qa1krdpWzOuVW2llvLU2urOXVm2bu7B7x2yQofeB3P5/3w+fDccWTySpUuctXGCbBOnNhLQg0H+YkaE97YDOsi9oi95O3p/Zh+2o53Tcfw8fEdLH+NQVyp6U+Ie1yItN6Ev7pEkprlpX3AVgryYyGJwI0z8BzSY9jCYMC2C4uxz5jno+CObseIkI1VFUnEPL0m35NzeFWhhaeykHILDeN3r9FbzLzolvJVyamIrCbL83MYEQakc1mNdEAi/B7+84fpPtMi4mP8ghWuA1sknGUrPZxyOfHSrEHbDrUkEQ7Jajog7nNj0LwZA/s0lL+xFj+XluCsKZeyVYlwUFaTwcY6pOJfEHMPYfSUBb76asxyz9FzogK9pnw4d2+S+fZhQlYTuzEP94uV6CxnEbheT68+1HAcXdtU6N+pXuNhiVJWk16jCqKu0jx4m87RATHhlfrLNDT/H9JjVMN79giCty9hsqMZv1ZW6JBk8DWe7WXQbdj4T2QxGsao8NFa2HzcYxS4VahEX50VKeFnWoiE0FdWgM7iDRkRR+UePNAq0KHPhaMoF3ZBszYbrWYDvY3v4kmaZ0IeFWRF7bps/K1FGDrjHYbncu2asz+yosTBqth2RsELkM6uy6H//RMTI8vT8G36HPY3WFKiAfgR588AAAAASUVORK5CYII=)}.sf-menu-container .sf-checkbox{float:left;display:block;padding-top:12px;padding-left:16px;padding-bottom:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.sf-menu-container.no-poll .sf-checkbox{padding-top:14px}.sf-menu-container .sf-checkbox>i{width:24px;height:14px;display:block;padding:0;border-width:1px;border-style:solid;border-radius:8px;position:relative;border-color:#78c435;background-color:#78c435}.sf-menu-container .sf-checkbox>i>i{display:block;background-color:#fff;border-width:1px;border-style:solid;border-radius:8px;height:12px;width:12px;border-color:#78c435;margin-left:10px}.sf-menu-container .sf-checkbox.sf-transition>i>i{transition:margin-left .2s;-o-transition:none}.sf-menu-container .inactive .sf-checkbox:not(.enableForce)>i,.sf-menu-container .sf-checkbox.disabled>i{border-color:#be3f2e;background-color:#fff}.sf-menu-container .inactive .sf-checkbox:not(.enableForce)>i>i,.sf-menu-container .sf-checkbox.disabled>i>i{height:14px;width:14px;border-color:#be3f2e;margin:-1px}",""]),t.default=o}])}],o}return Object(f.a)(t,e),Object(u.a)(t,[{key:"getPageContent",value:function(){return this.popupPage}},{key:"getPageScripts",value:function(){return this.popupScripts}},{key:"createPageContainer",value:function(){this.destroyContainer(),this.containerNode=document.createElement("div"),this.containerNode.classList.add("sf-menu-container"),this.containerNode.style.marginTop="-24px",this.containerNode.style.width="auto",this.containerNode.style.minWidth="482px",this.containerNode.innerHTML=this.getPageContent(),this.parent.appendChild(this.containerNode)}}]),t}(L),ze={menu:{initial:{background:"#fff",borderStyle:"solid",borderWidth:"2px 0 2px 2px",borderRadius:"5px 0 0 5px",display:"none",boxSizing:"content-box",font:"13px/18px Arial,Helvetica,sans-serif",width:"auto",height:"auto",padding:0,margin:0,overflow:"visible",position:"fixed",top:"50px",right:"0",textAlign:"left",WebkitTransition:"all 0.2s",transition:"all 0.2s",zIndex:99999},enabled:{borderColor:"#8dc50b"},disabled:{borderColor:"#d0d0d0"},tag:{display:"block",width:"10px",height:"20px",overflow:"hidden",opacity:.5},tagHover:{width:"20px",opacity:.8},active:{width:"auto",height:"auto",overflow:"visible",opacity:.9}},icon:{initial:{display:"inline-block",boxSizing:"content-box",backgroundPosition:"50% 50%",backgroundRepeat:"no-repeat",width:"16px",height:"16px",margin:0,padding:"2px",overflow:"hidden",verticalAlign:"middle",cursor:"pointer"},enabled:{backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABqUlEQVQ4jY2SzStEURiHf2bMl+w0SrHRZKPY+RtkYyeRspPFsEEZItLM3DCRjxofw0wyK0k+ClNGhBiEmIiwsrChZqvj/sZcznDJ4um8532f9+3ccy5isRg0Qre2V67hxyzxnfkHm5AdDcib6SvLC9e5e5v4TujuY4Dm6A4YPc684xq8sb6Fbq1CZkbNyU7aACVqdPhP8usGouZT7qcuLInpuFnITJ6bE6zRocuezwEdS/B2LuO+ewXJY44dmZ795yYhM6LmWKNDlz1pn+D0o6J5FjeMfbvGx9ETg5BhjjU6dHXvQMMdMcZ9BxAy7k1DXM/F0J6tYSxm9wbOHJ65y9Lh4FnJvLKZfa3sQKSh5lijQ5c97EX7GnJ61nHYF4Egni0klG3jk7bXYI41bc8e9iaP0RhArmsR+92rEP+BLnvSL3ESea1h7LoWVOEP6NDVvcTaQRQ4ZxBtCUPowRqdX/9EUtOFwoZxbDTNQsgwx9qPV9B7mqoOFNX3Y61xAoIwZk73GfWSySFtKK7uxSph/Jv3FQAZKgYVk0q2ir2sEuWEcSpnSjkZWt87G7sZgVx6JvgAAAAASUVORK5CYII=)"},disabled:{backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAiNJREFUeNqMkj+oUlEcx7/nHu/V7lMTxaghqIgoWpIQisCmhjfloDS9QQgMHkpTODc2hS45OQRB6GCLb2hqiAIJpzB6UUhDkqi34/17rtfTonI1ifeDs/zO5/eB8/0dwhjDqjRN+xOLxU4bhiGwVUIIhMNhsmJW/YAfsm1bAIDnedgl8DM7BYZhjAHAdd0FpVTy383n84Wf2RD0er3L8Xj8tq7rDAAcx7EopXtbAgsAdF1ng8HgYDKZfEilUt8CADCbzR7quv5AkqQLAGBZlhUMBjcEjuOsBDcYY0+FEK8BVCQAyGQylel0eqhp2vHynSbnHP5j27a5DPp4Op0eZjKZCgAQ/xZW1e12++Fw+Kq/p+v6l3Q6fW2bDfT7/aKiKBdDoZBQFEX1PC9JCJE45xsgIUQaDoevKKUjzrlp2zbhnP8gnU4nIcvyEaU0vQQNSZJmnued9QsopcPFYhERQuwtV911XXefMMbQbDbPJJPJN7Is38IJynXdj6PR6H4+n/+9zqDdbp9TVbWpKMqd/w1zzt+bppnPZrO//gmx0WicTyQSL0Oh0N1dw7ZtvxuPxweFQuHnOpvtLdTr9UuxWOyFqqr3/H3TNN9qmvaoWCx+3wh31xprtdqVaDT6PBKJ7C8/2hFj7HGpVPq6ze4UAEC1Wr0uy/KzZWhPyuXy513cWhCNRgkAAoACCAI4lcvlbgJAq9X6BMAC4ADwAAjGmACAvwMAXX8khNE72VIAAAAASUVORK5CYII=)"},tag:{padding:"2px"},active:{padding:"5px"}},title:{display:"inline-block",font:"bold 13px/18px Arial,Helvetica,sans-serif",lineHeight:"26px",margin:0,padding:0,textAlign:"left",verticalAlign:"middle",cursor:"pointer"}},qe=function(){function e(t){Object(s.a)(this,e),this.bundle=t,this.popupPageUi=null,this.mono=null,this.activeDataAttr="data-sfh-active",this.id="sfh--ujs-menu",this.enabled=!0,this.active=!1,this.hover=!1,this.move=!1,this.icon=null,this.menu=null,this.isYoutube=/youtube\.com/.test(location.href),this.onDocumentClick=this.onDocumentClick.bind(this),this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this)}return Object(u.a)(e,[{key:"createMono",value:function(){this.destroyMono(),this.mono=this.bundle.createMonoInstance("page")}},{key:"showPopup",value:function(){this.closePopup(),this.popupPageUi=new Re(this.bundle,this.menu),this.popupPageUi.create(),this.popupPageUi.containerNode.setAttribute(this.activeDataAttr,"1")}},{key:"create",value:function(){this.createMono(),this.createIcon()}},{key:"createIcon",value:function(){var e=this,t=document.createElement("div");t.addEventListener("mouseover",(function(){e.active||(e.hover=!0,e.setElementsStyle("tagHover"))})),t.addEventListener("mouseout",(function(){e.active||(e.hover=!1,e.setElementsStyle("tag"))}));var n=document.createElement("div");n.title="".concat(this.mono.i18n.getMessage("extName")," ").concat("10.21.2"),n.addEventListener("click",(function(t){if(!e.move)return t.preventDefault(),t.stopPropagation(),0===t.button?e.toggleMenuItems():2===t.button&&e.remove(),!1}),!1),n.addEventListener("contextmenu",(function(t){if(!e.move)return t.preventDefault(),t.stopPropagation(),e.remove(),!1}),!1),this.icon=t.appendChild(n),this.menu=document.body.appendChild(t);var r=parseInt(ze.menu.initial.top);r<0?r=0:this.isYoutube&&r<92?r=92:r+24>parseInt(window.innerHeight)&&(r=parseInt(window.innerHeight)-parseInt(ze.menu.tag.height)-4),ze.menu.initial.top=r+"px",this.setElementsStyle("initial"),this.setEnabled(1),this.setTopPosition((function(){e.menu&&(e.showTag(),e.enableMove())}))}},{key:"setTopPosition",value:function(e){var t=this;this.mono.storage.get({gmIconTop:0},(function(n){"number"==typeof n.gmIconTop&&(ze.menu.initial.top=n.gmIconTop+"px"),t.menu&&(t.menu.style.top=ze.menu.initial.top),e()}))}},{key:"enableMove",value:function(){var e=this,t=!1,n=this.menu,r=void 0,o=parseInt(n.style.height)/2||0,a=document.createElement("style");a.textContent="body {-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;}";var i=function(){e.move=!1,n.style.position=ze.menu.initial.position,n.style.WebkitTransition=ze.menu.initial.WebkitTransition,n.style.transition=ze.menu.initial.transition,n.style.borderStyle=ze.menu.initial.borderStyle,a.parentNode&&a.parentNode.removeChild(a)},s=function(t){var r=(t.y||t.clientY)-o;"youtube"===e.isYoutube&&r<92?r=92:r<0&&(r=0),n.style.top=ze.menu.initial.top=r+"px"},u=function(r){t=!0,function(t){t.stopPropagation(),t.preventDefault(),e.hideMenuItems(),e.hover=!0,e.setElementsStyle("tagHover"),e.move=!0,n.style.position="fixed";var r=t.y||t.clientY;n.style.top=r-o+"px",n.style.WebkitTransition="initial",n.style.transition="initial",n.style.borderStyle="dotted",document.body.appendChild(a)}(r),document.body.addEventListener("mousemove",s)};n.addEventListener("dragstart",(function(e){e.preventDefault()})),n.addEventListener("mousedown",(function(o){if(o.target===e.icon){t=!1,r=setTimeout(u.bind(null,o),500);var a=function e(){clearTimeout(r),n.removeEventListener("mouseleave",e)};n.addEventListener("mouseleave",a);document.body.addEventListener("mouseup",(function o(){clearTimeout(r),document.body.removeEventListener("mouseup",o),n.removeEventListener("mouseleave",a),t&&(setTimeout(i,100),document.body.removeEventListener("mousemove",s),e.mono.storage.set({gmIconTop:parseInt(ze.menu.initial.top)}))}))}}))}},{key:"setStyle",value:function(e,t){this[e]&&ze[e]&&ze[e][t]&&Object.assign(this[e].style,ze[e][t])}},{key:"setElementsStyle",value:function(e){var t=this;e&&["menu","icon"].forEach((function(n){t.setStyle(n,e)}))}},{key:"setEnabled",value:function(e){this.enabled=e,this.setElementsStyle(this.enabled?"enabled":"disabled")}},{key:"showTag",value:function(){this.setElementsStyle("tag")}},{key:"toggleMenuItems",value:function(){return this.active?this.hideMenuItems():this.showMenuItems()}},{key:"remove",value:function(){this.menu&&this.menu.parentNode.removeChild(this.menu)}},{key:"getMenuContainer",value:function(){var e=document.createElement("div");return e.classList.add("sf-menu-container"),e.setAttribute(this.activeDataAttr,"1"),e.style.marginTop="-24px",e.style.width="auto",e.style.minWidth="482px",e}},{key:"showMenuItems",value:function(){if(!this.active){this.menu.style.top=ze.menu.initial.top,this.removeActiveItems(),this.showPopup(),this.active=!0,this.setElementsStyle("active"),document.addEventListener("click",this.onDocumentClick,!1),document.addEventListener("keydown",this.onDocumentKeyDown,!1);var e=this.menu.clientHeight,t=parseInt(this.menu.style.top),n=window.innerHeight;t+e>n?this.menu.style.top=n-e-4+"px":t<0&&(this.menu.style.top="0px")}}},{key:"hideMenuItems",value:function(){this.menu.style.top=ze.menu.initial.top,this.closePopup(),this.removeActiveItems(),document.removeEventListener("click",this.onDocumentClick,!1),document.removeEventListener("keydown",this.onDocumentKeyDown,!1),this.active=!1,this.showTag()}},{key:"onDocumentClick",value:function(e){var t=e.target;t===this.menu||this.menu.contains(t)||this.hideMenuItems()}},{key:"onDocumentKeyDown",value:function(e){27===e.keyCode&&this.hideMenuItems()}},{key:"removeActiveItems",value:function(){for(var e;e=this.menu.querySelector("div["+this.activeDataAttr+"]");)e.parentNode.removeChild(e)}},{key:"closePopup",value:function(){this.popupPageUi&&this.popupPageUi.destroy(),this.popupPageUi=null}},{key:"destroyButton",value:function(){if(this.menu){var e=this.menu.parentNode;e&&e.removeChild(this.menu)}this.menu=null,this.icon=null}},{key:"destroyMono",value:function(){this.mono&&this.mono.destroy(),this.mono=null}},{key:"destroy",value:function(){this.closePopup(),this.destroyButton(),this.destroyMono()}}]),e}(),Ue=n(64),Ve=["responseStatus","responseOk","responseType","requestPrefix"],He=["type"];function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var Ye=n(136).EventEmitter,Je=function(e){function t(){var e;return Object(s.a)(this,t),(e=Qe(this,t)).messaing=new Ye,e.backgroundPageLoaded=!1,e.backgroundScripts=[function(e){!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=83)}([function(t,n,r){var o=e;n.a=o},function(e,t){e.exports=n(192)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(15)},function(e,t){e.exports=n(12)},function(e,t){e.exports=n(22)},function(e,t,n){var r=n(0);t.a=function(e){return new Promise((function(t){return r.a.storage.get(e,t)}))}},function(e,t){e.exports=n(21)},function(e,t){e.exports=n(49)},function(e,t){e.exports=n(20)},function(e,t,n){var r=n(0);t.a=function(e){return new Promise((function(t){return r.a.storage.set(e,t)}))}},function(e,t){e.exports=n(18)},function(e,t){e.exports=n(47)},function(e,t){e.exports=n(137)},function(e,t){e.exports=n(72)},function(e,t){e.exports=n(67)},function(e,t){e.exports=n(36)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(38)},,,function(e,t){e.exports=n(189)},function(e,t){e.exports=n(138)},function(e,t){e.exports=n(81)},function(e,t){e.exports=n(50)},function(e,t){e.exports=n(139)},function(e,t){e.exports=n(83)},,function(e,t){e.exports=n(39)},function(e,t){e.exports=n(140)},,,,function(e,t){e.exports=n(190)},function(e,t){e.exports=n(75)},,function(e,t){e.exports=n(142)},function(e,t){e.exports=n(193)},function(e,t){e.exports=n(191)},function(e,t){e.exports=n(143)},function(e,t){e.exports=n(144)},function(e,t){e.exports=n(145)},function(e,t){e.exports=n(194)},function(e,t){e.exports=n(146)},function(e,t){e.exports=n(147)},function(e,t){e.exports=n(148)},function(e,t){e.exports=n(149)},function(e,t){e.exports=n(150)},function(e,t){e.exports=n(151)},function(e,t){e.exports=n(73)},function(e,t){e.exports=n(152)},function(e,t){e.exports=n(153)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(154)},function(e,t){e.exports=n(155)},function(e,t){e.exports=n(156)},function(e,t){e.exports=n(157)},function(e,t){e.exports=n(158)},function(e,t){e.exports=n(79)},function(e,t){e.exports=n(37)},function(e,t){e.exports=n(188)},function(e,t){e.exports=n(78)},function(e,t){e.exports=n(80)},function(e,t){e.exports=n(82)},,,,,,,,,,,,,function(e,t){e.exports=n(161)},function(e,t){e.exports=n(185)},function(e,t,n){n.r(t);var r=n(0),o=n(14),a=n.n(o),i=n(22),l=n.n(i);t.default=function(){function e(t){Object(s.a)(this,e),this.engine=t,this.showButtonModules={"includes/youtube_com.js":"youtube","includes/dailymotion_com.js":"dailymotion","includes/vimeo_com.js":"vimeo","includes/facebook_com.js":"facebook","includes/soundcloud_com.js":"soundcloud","includes/vkontakte_ru.js":"vk","includes/odnoklassniki_ru.js":"odnoklassniki","includes/mail_ru.js":"mailru","includes/instagram_com.js":"instagram","includes/rutube_ru.js":"rutube","includes/yandex_music.js":"yandexMusic","includes/tiktok_com.js":"tiktok","includes/savefrom_net.js":"savefrom","includes/link_modifier.js":"lm"},this.commands=null,this.init()}return Object(u.a)(e,[{key:"getCommands",value:function(){var e=this;return[{id:"downloadFromCurrentPage",command:function(){e.engine.actionList.downloadFromCurrentPage()},viewOptions:{type:"btn-green",icon:"ic-link"}},{id:"updateLinks",notify:"updateLinksNotification",modules:["vk","odnoklassniki","facebook","lm","youtube","dailymotion","instagram","rutube"],viewOptions:{icon:"refresh"}},{id:"downloadMP3Files",modules:["vk","odnoklassniki","mailru","yandexMusic"],viewOptions:{icon:"ic-audio"}},{id:"downloadPlaylist",modules:["vk","odnoklassniki","youtube"],viewOptions:{icon:"ic-playlist"}},{id:"downloadPhotos",modules:["vk"],viewOptions:{icon:"ic-picture"}},{id:"showOptions",command:function(){r.a.bundle.showOptions()},viewOptions:{icon:"ic-settings"}},{id:"enableDisableModule",command:function(){e.engine.actionList.getActiveTabInfo(null,(function(t){var n=(t=t||{}).state?0:1;e.engine.actionList.viaMenu_changeState({state:n,prefKey:t.prefKey,moduleName:t.moduleName}),n&&1===e.engine.preferences.button?e.engine.gmShowButton(1):e.engine.gmShowButton(0)}))}},{id:"showHideButton",command:function(){var t=!r.a.bundle.buttonUi;e.engine.actionList.updateOption({action:"updateOption",key:"button",value:t?1:0})}}]}},{key:"registerModule",value:function(e){var t=this;if("undefined"!=typeof GM_registerMenuCommand){var n=e.id,o=r.a.i18n.getMessage(n),a=function(){return"undefined"!=typeof GM_info&&"OrangeMonkey"===GM_info.scriptHandler};if(e.command)return a()?GM_registerMenuCommand(o,e.command,e.viewOptions):GM_registerMenuCommand(o,e.command);var i=function(){t.engine.onMessage({action:(void 0!==e.modules?"viaMenu_":"")+e.id}),e.notify&&"undefined"!=typeof GM_notification&&GM_notification(r.a.i18n.getMessage(e.notify),null,null,null,3e3)};return a()?GM_registerMenuCommand(o,i,e.viewOptions):GM_registerMenuCommand(o,i)}}},{key:"register",value:function(e){for(var t,n="undefined"!=typeof GM_unregisterMenuCommand,r=0;t=this.commands[r];r++){if(n)t.gmId&&GM_unregisterMenuCommand(t.gmId);else if(t.hasOwnProperty("gmId"))continue;(!t.modules||t.modules.indexOf(e)>-1)&&(t.gmId=this.registerModule(t))}}},{key:"registerAuthCommands",value:function(){var e=this;if(!this.engine.preferences.proEnabled)return Promise.resolve();var t=function(e){"undefined"!=typeof GM_notification&&GM_notification(r.a.i18n.getMessage(e),null,null,null,3e3)},n={id:"login",command:function(){e.engine.authService.isAuth().then((function(n){n?t("loginAlreadyGmMessage"):(r.a.openTab(e.engine.authService.getLoginUrl(),!0),t("loginGmMessage"))}))}},o={id:"logout",command:function(){e.engine.authService.isAuth().then((function(n){n?(t("logoutGmMessage"),e.engine.authService.logout().then((function(){document.location.reload()}))):t("logoutAlreadyGmMessage")}))}};return this.engine.authService.isAuth().then((function(t){t?e.commands.push(o):e.commands.unshift(n)}))}},{key:"init",value:function(){var e=this;if(this.commands=this.getCommands(),!a()()){var t=[];Object.keys(this.showButtonModules).forEach((function(n){var o=e.showButtonModules[n];r.a.bundle.isLoadedFile(n)&&t.push(o)}));var n=t[0];this.registerAuthCommands().then((function(){return e.register(n)}));var o=this.engine.preferences;(o.button&&o[l.a[n]]||"savefrom"===n)&&this.engine.gmShowButton(1)}}}]),e}()},function(e,t,n){n.r(t);var r=n(0),o=n(3),a=n.n(o);t.default=function(e){e.checkUpdate=function(){var t=e.varCache,n=e.checkUpdate.typeList,o=r.a.isChrome&&!e.isOperaNext?"chrome":r.a.isFirefox&&e.firefoxNoStore?"firefox":r.a.isGM?"gm":r.a.isSafari?"safari":void 0;if(n[o]){var i=e.liteStorage.isExpire("lastVersionExpire");t.isUpgrade&&(i=!0),i&&(e.liteStorage.set("lastVersion",""),e.liteStorage.setExpire("lastVersionExpire",86400),a()({type:"GET",url:n[o].url,cache:!1},(function(t,r){if(!t){var a=n[o].getVersion(r.body);a&&(e.liteStorage.set("lastVersion",a),e.liteStorage.setExpire("lastVersionExpire",604800))}})))}},e.checkUpdate.typeList={chrome:{url:"https://download.sf-helper.com/chrome/updates-3.xml",getVersion:function(e){var t=/updatecheck.+version=['"](.+)['"]/.exec(e);return t&&t[1]}},firefox:{url:"https://download.sf-helper.com/mozilla/updates.json",getVersion:function(e){var t=null;try{var n=JSON.parse(e);t=n.addons[Object.keys(n.addons)[0]].updates}catch(e){}if(t){var r=null;return t.some((function(e){return r=e.version})),r}}},safari:{url:"https://download.sf-helper.com/safari/update.plist",getVersion:function(e){if("string"==typeof e){var t=e.indexOf("<key>CFBundleVersion</key>");if(-1!==t){e=e.substr(t);var n=/<string>(.+)<\/string>/.exec(e);return n&&n[1]}}}},gm:{url:"https://download.sf-helper.com/chrome/helper.meta.js",getVersion:function(e){var t=/@version\s+(.+)\s*\r?\n/.exec(e);return t&&t[1]}}},e.loader.when("prepare",(function(){e.checkUpdate()}))}},function(e,t,n){n.r(t);var r=n(0),o=n(14),a=n.n(o),s=(n(4),n(2)),u=n.n(s);t.default=function(e){if(!a()())return e.loader.when("init",(function(){return r.a.storage.get({userjsIsInstaller:0,userjsIsOpenVideo:0},(function(t){if(t.userjsIsInstaller&&!t.userjsIsOpenVideo)return function(t){var n="userjsDblTrack";r.a.storage.get(Object(i.a)({},n,null),(function(t){var o=Date.now();if(t[n]&&t[n].time>o);else{var a=e.generateUuid();r.a.storage.set(Object(i.a)({},n,{uuid:a,time:o+6e4}),(function(){setTimeout((function(){r.a.storage.get(Object(i.a)({},n,null),(function(e){e[n]&&e[n].uuid===a&&r.a.storage.set({userjsIsOpenVideo:1},(function(){return u()({url:"https://sf-helper.com/static/userjsFirstrun.json",json:!0}).then((function(e){var t=e.body,n=t.localeUrl,o=t.defaultLocale,a=n[r.a.i18n.getMessage("lang")]||n[o];a&&r.a.openTab(a)})).catch((function(e){}))}))}))}),5e3)}))}}))}()}))}))}},function(e,t,n){n.r(t);var r=n(6),o=n(10),a=n(4),i=n.n(a)()("migrateTM");t.default=function(e){var t=function(){return"undefined"!=typeof GM_info&&"MeddleMonkey"===GM_info.scriptHandler};navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&-1===navigator.userAgent.indexOf("CriOS")&&-1===navigator.userAgent.indexOf("FxiOS")||/Edg\//.test(navigator.userAgent)?i.log("safari or edge"):(e.loader.when("init",(function(){t()&&"undefined"!=typeof GM_openInTab&&Object(r.a)({migrateTmShowed:!1}).then((function(e){if(!e.migrateTmShowed)return Object(o.a)({migrateTmShowed:!0}).then((function(){return GM_openInTab("https://savefrom.net/user.php")}))}),(function(e){return i.error("Get flag value",e)}))})),e.loader.when("prepare",(function(){t()&&(i.debug("enabled"),e.tabListener.extendJsList.migrateTM={noBlackList:!0,getScriptList:function(e){return-1!==e.indexOf("savefrom.net/user.php")?["includes/migrateTM.js"]:[]}},e.tabListener.enable())})),e.loader.when("upgrade",(function(){return t()&&Object(o.a)({migrateTmShowed:!1})})))}},function(e,t){e.exports=n(186)},function(e,t,n){n.r(t);var l=n(0),c=n(3),d=n.n(c),p=n(4),f=n.n(p),m=f()("utils"),h=null,v={getFileSize:function(e,t){var n=e.url,r=e.requestOptions,o=void 0===r?{}:r,a={fileSize:0,fileType:"",status:0,error:!1};return d()(We({url:n,type:"HEAD"},o),(function(e,n){if(e)return a.error=!0,t(a);a.status=n.statusCode,a.fileSize=parseInt(n.headers["content-length"])||0;var r=n.headers["content-type"];r&&(a.fileType=r),t(a)})),!0},ChromeDl:function(){var e={},t=!1,n=function(n){e[n]&&delete e[n],0===Object.keys(e).length&&(t=!1,chrome.downloads.onChanged.removeListener(r))},r=function(t){var r=e[t.id];if(r){var o=!1;r.fixNetworkFiled&&(o=function(e,t){var n=parseInt(Date.now()/1e3),r=!1;e.lastFix||(e.lastFix=0),e.lastFix+5<n&&(e.lastFix=n,r=!0);var o=t.state&&"interrupted"===t.state.current,a=t.error&&"NETWORK_FAILED"===t.error.current,i=t.canResume&&t.canResume.current;return o&&a&&i||(r=!1),r}(r,t)),o?chrome.downloads.resume(t.id):t.state&&-1!==["interrupted","complete"].indexOf(t.state.current)&&n(t.id)}};this.download=function(n){var o=n.url,a=n.filename;n.fixNetworkFiled=/(vk\.me|userapi\.com)\/.+\.mp4/i.test(o);var i={url:o,filename:a},s=h.preferences||h.storage||{};l.a.isFirefox&&s.saveAsDialog&&(i.saveAs=!0),chrome.downloads.download(i,(function(o){n.fixNetworkFiled&&(function(t,n){e[t]||(e[t]=n)}(o,n),t||(t=!0,chrome.downloads.onChanged.addListener(r)))}))}},chromeDownload:null,downloadFile:function(e){var t=h.preferences.sortDownloads;if("object"==typeof e.options.url&&l.a.isFirefox&&(e.options.url=URL.createObjectURL(e.options.url)),t&&t.isEnabled){var n=e.options.filename.slice(e.options.filename.lastIndexOf(".")+1),r=t.groups.find((function(e){return e.formats.some((function(e){return-1!==e.indexOf(n)}))}));r&&r.dir&&(e.options.filename="".concat(r.dir,"/").concat(e.options.filename))}var o=v;if(l.a.isChrome||l.a.isFirefox){o.chromeDownload||(o.chromeDownload=new o.ChromeDl);var a=function(){return o.chromeDownload.download(e.options)};if(chrome.downloads&&chrome.downloads.download)return a();chrome.permissions&&chrome.permissions.request?chrome.permissions.request({permissions:["downloads"]},(function(e){if(e)return a();m.error("Permissions not granted!")})):m.error("Method in not supported!")}else l.a.isGM&&GM_download(e.options.url,e.options.filename)},chromeListDownload:function(e,t){var n=null;e=e.map((function(e){return{url:e.url,filename:t+e.filename}}));var r=function(e){if(e.id===n&&e.state)return-1!==["interrupted","complete"].indexOf(e.state.current)?(n=null,a()):void 0};chrome.downloads.onChanged.addListener(r);var o=-1,a=function(){o++;var t=e[o];if(t)return chrome.downloads.download({url:t.url,filename:t.filename},(function(e){n=e}));chrome.downloads.onChanged.removeListener(r)};return a()},downloadList:function(e){var t=this,n=e.fileList,r=e.folder;(l.a.isChrome||l.a.isFirefox)&&chrome.downloads&&chrome.downloads.download?t.chromeListDownload(n,r):n.forEach((function(e){t.downloadFile({options:{url:e.url,filename:r+e.filename}})}))},getUmmyIcon:function(e,t){t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB90lEQVQ4EcVSy2oUURCtqm7HcYgmYDTiYxEEERdZGP0B0UVwEcSv8LHIb4gbQcjGlVtB40YhfkAWuhs0uFOIgjJomiEzztzue4+n7rTgH6SaoqpPnao6fW+LHLapC9hdPHMbKT1UTcsQWxDBnAAdFkuvQ6QR1cD0QAUVoF+0kKdXBoO32j959maK8V1LVDaBDXkwm9q32atz/hmRpIZb5STqPaDIjP/oFAS5Xu1l/MPCBZhxt09uSRykCn1QhmQr1MiSQ3TPGYdIMtwfZPh3MjkhlvOWOcuTrJQB5VJeR0g5HlzjMSSVpp7mtQGFBJjXwJp69AlqtlTW0bpQ6nNLbTdjSCIxNhkOqUBwBconZYWZr1G6RgXcRoI782k0rO681vVq15o6SGyCrFefbHVnS6eNkmcSyMlOvr48ernimjlf5WcUuP1zr7C7W090/twiMcjw+y95dWcjXRr7Sn6Ba8mmB1RQ/MwqOK2mg356FPFi4xGm4z8I40nOT434OanElDdWM2aH/eAtHOlz98XZRBch0uPnHPu4J9uPn+dNzNGTLho/Kj+D1gza12fl1RuEtlmaaWPiGkOK8k0mecB5Nnes8DZvdiwPgRVrmbAp19aI8Fe2ZSDN86aOk9OpkfiHqfKoap9JfMTWfcavvNXN+/H9G596uPYX83AWUVC6/FsAAAAASUVORK5CYII=")},getWarningIcon:function(e,t){var n,r=e.color||"#c2c2c2";n="audio"===e.type?'<svg width="21px" height="24px" viewBox="0 0 21 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M21,2.76923077 L21,17.6487288 C21,17.6487288 21,17.6487288 21,17.6487288 L21,18.4615385 L20.9068729,18.4615385 C20.723595,19.2712249 20.2716013,20.0865791 19.5669296,20.7680198 C17.9203537,22.360313 15.5176896,22.6184747 14.2004289,21.3446402 C12.8831682,20.0708056 13.1501309,17.7473503 14.7967068,16.1550571 C16.0602516,14.9331676 17.7690324,14.4969051 19.0909091,14.9356816 L19.0909091,14.9356816 L19.0909091,4.15384615 L7.63636364,6.92307692 L7.63636364,19.4948826 C7.63636364,19.4948826 7.63636364,19.4948826 7.63636364,19.4948826 L7.63636364,20.3076923 L7.5432365,20.3076923 C7.35995859,21.1173788 6.90796493,21.9327329 6.20329323,22.6141737 C4.55671732,24.2064669 2.15405328,24.4646286 0.836792552,23.190794 C-0.480468173,21.9169595 -0.213505501,19.5935041 1.43307041,18.0012109 C2.69661523,16.7793214 4.40539601,16.343059 5.72727273,16.7818354 L5.72727273,16.7818354 L5.72727273,6.46153846 L5.72727273,3.69230769 L21,0 L21,2.76923077 Z" fill="'+r+'"></path></svg>':"playlist"===e.type?'<svg width="24px" height="18px" viewBox="0 0 24 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M0,0 L0,3.6 L3.42857143,3.6 L3.42857143,0 L0,0 Z M0,7.2 L0,10.8 L3.42857143,10.8 L3.42857143,7.2 L0,7.2 Z M5.14285714,0 L5.14285714,3.6 L24,3.6 L24,0 L5.14285714,0 Z M5.14285714,7.2 L5.14285714,10.8 L20.5714286,10.8 L20.5714286,7.2 L5.14285714,7.2 Z M0,14.4 L0,18 L3.42857143,18 L3.42857143,14.4 L0,14.4 Z M5.14285714,14.4 L5.14285714,18 L22.2857143,18 L22.2857143,14.4 L5.14285714,14.4 Z" fill="'+r+'"></path></svg>':'<svg width="24px" height="18px" viewBox="0 0 24 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M19.5,3 L21.0089096,3 C22.6582294,3 24,4.34288718 24,5.99942248 L24,15.0005775 C24,16.6556493 22.6608432,18 21.0089096,18 L2.99109042,18 C1.34177063,18 0,16.6571128 0,15.0005775 L0,5.99942248 C0,4.34435073 1.33915679,3 2.99109042,3 L7.5,3 C7.5,1.34651712 8.84187067,0 10.497152,0 L16.502848,0 C18.1583772,0 19.5,1.34314575 19.5,3 L19.5,3 Z M13.5,16.5 C16.8137087,16.5 19.5,13.8137087 19.5,10.5 C19.5,7.18629134 16.8137087,4.5 13.5,4.5 C10.1862913,4.5 7.5,7.18629134 7.5,10.5 C7.5,13.8137087 10.1862913,16.5 13.5,16.5 Z M13.5,15 C15.9852815,15 18,12.9852815 18,10.5 C18,8.0147185 15.9852815,6 13.5,6 C11.0147185,6 9,8.0147185 9,10.5 C9,12.9852815 11.0147185,15 13.5,15 Z" fill="'+r+'"></path></svg>',t("data:image/svg+xml;utf8,"+encodeURIComponent(n))},checkUrlsOfOpenTabs:function(e,t){(l.a.isGM?function(e){e([location.href])}:l.a.isChrome?function(e){var t=[];chrome.tabs.query({},(function(n){n.forEach((function(e){t.push(e.url)})),e(t)}))}:l.a.isFirefox?function(e){var t=[];if(l.a.isFirefoxMobile)return e(t);chrome.tabs.query({},(function(n){n.forEach((function(e){t.push(e.url)})),e(t)}))}:l.a.isSafari?function(e){var t=[];safari.application&&safari.application.activeBrowserWindow&&safari.application.activeBrowserWindow.tabs&&safari.application.activeBrowserWindow.tabs.forEach((function(e){if(!e.url)return 1;t.push(e.url)})),e(t)}:function(e){e([])})((function(n){var r=[];n.forEach((function(t){e.forEach((function(e){-1!==t.search(e)&&r.push(t)}))})),t(r)}))},getData:function(e,t){var n=e.url;return n?(d()({url:n},(function(e,n,r){if(e)return t();t(r)})),!0):t()}},b=n(36),y=n.n(b),k=n(37),A=n.n(k),w=n(15),x=n.n(w),C=n(16),_=n.n(C),S=n(12),O=n.n(S),M=n(7),E=n.n(M),D=n(17),I=n.n(D),L=n(21),T=n.n(L),j=n(9),P=n.n(j),F=n(1),N=n(5),B=n.n(N),R=n(13),z=n.n(R),q=n(8),U=n.n(q),V=n(28),H=n.n(V),G=function(e){l.a.sendMessage({action:"sendMonitoring",obj:{category:e.category,event:e.event,subcategory:e.subcategory}})},W=n(76),Q=n(11),Y=W.URL,J=f()("YtMetadata").t,K=F.struct("FiniteNumber",(function(e){return isFinite(Number(e))}));function Z(e){var t=F.Struct;e instanceof t&&(e=e.schema);var n=Object.keys(e);return new t({type:"Partial<{".concat(n.join(","),"}>"),schema:e,coercer:F.partial(e).coercer,validator:g.a.mark((function t(r,o){var a,i,s,u,l;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("object"!=typeof r||null==r){t.next=11;break}a=0,i=n;case 2:if(!(a<i.length)){t.next=9;break}return s=i[a],u=e[s],l=r[s],t.delegateYield(o.check(l,u,r,s),"t0",6);case 6:a++,t.next=2;break;case 9:t.next=13;break;case 11:return t.next=13,o.fail();case 13:case"end":return t.stop()}}),t)}))})}var X=F.object({itag:F.number(),url:F.optional(F.string()),type:F.optional(F.string()),cipher:F.optional(F.string()),signatureCipher:F.optional(F.string()),mimeType:F.string(),bitrate:F.optional(F.number()),width:F.number(),height:F.number(),initRange:F.optional(F.object({start:K,end:K})),indexRange:F.optional(F.object({start:K,end:K})),lastModified:K,contentLength:F.optional(K),encryption:F.optional(F.string()),drmFamilies:F.optional(F.array(F.string())),quality:F.string(),fps:F.number(),qualityLabel:F.string(),projectionType:F.string(),averageBitrate:F.optional(F.number()),colorInfo:F.optional(F.object({primaries:F.optional(F.string()),transferCharacteristics:F.string(),matrixCoefficients:F.optional(F.string())})),approxDurationMs:F.optional(K),highReplication:F.optional(F.boolean()),xtags:F.optional(F.string()),targetDurationSec:F.optional(F.number()),maxDvrDurationSec:F.optional(F.number()),loudnessDb:F.optional(F.number())}),$=F.object({itag:F.number(),url:F.optional(F.string()),cipher:F.optional(F.string()),signatureCipher:F.optional(F.string()),mimeType:F.string(),bitrate:F.optional(F.number()),initRange:F.optional(F.object({start:K,end:K})),indexRange:F.optional(F.object({start:K,end:K})),lastModified:K,contentLength:F.optional(K),quality:F.string(),encryption:F.optional(F.string()),drmFamilies:F.optional(F.array(F.string())),projectionType:F.string(),averageBitrate:F.optional(F.number()),highReplication:F.optional(F.boolean()),audioQuality:F.string(),approxDurationMs:F.optional(K),audioSampleRate:K,audioChannels:F.number(),targetDurationSec:F.optional(F.number()),maxDvrDurationSec:F.optional(F.number()),loudnessDb:F.optional(F.number())}),ee=(F.object({probeUrl:F.optional(F.string()),dashManifestUrl:F.optional(F.string()),hlsManifestUrl:F.optional(F.string()),expiresInSeconds:K,formats:F.optional(F.array(F.object({itag:F.number(),url:F.optional(F.string()),cipher:F.optional(F.string()),signatureCipher:F.optional(F.string()),mimeType:F.string(),bitrate:F.optional(F.number()),fps:F.optional(F.number()),width:F.number(),height:F.number(),lastModified:K,contentLength:F.optional(K),quality:F.string(),qualityLabel:F.string(),projectionType:F.string(),averageBitrate:F.optional(F.number()),audioQuality:F.string(),approxDurationMs:F.optional(K),audioSampleRate:F.optional(K),audioChannels:F.optional(F.number())}))),adaptiveFormats:F.array(F.dynamic((function(e,t){return e&&/^video/.test(e.mimeType)?X:$}))),licenseInfos:F.optional(F.array(F.object({drmFamily:F.string(),url:F.string(),drmParams:F.string()}))),drmParams:F.optional(F.string())}),Z({itag:F.number(),url:F.optional(F.string()),cipher:F.optional(F.string()),signatureCipher:F.optional(F.string()),mimeType:F.string(),fps:F.optional(F.number()),width:F.optional(F.number()),height:F.optional(F.number()),bitrate:F.optional(F.number()),contentLength:F.optional(K)})),te=Z({formats:F.optional(F.array(ee)),adaptiveFormats:F.optional(F.array(ee))}),ne=Z({playabilityStatus:F.object(),streamingData:F.optional(F.object()),videoDetails:F.optional(Z({videoId:F.string(),title:F.string(),lengthSeconds:K,channelId:F.string(),shortDescription:F.string(),thumbnail:Z({thumbnails:F.array(Z({url:F.string(),width:F.number(),height:F.number()}))}),useCipher:F.optional(F.boolean()),author:F.string()}))});function re(e){return new Promise((function(t,n){d()(e,(function(e,r,o){e&&"string"==typeof e&&(e=new Error(e)),e?n(e):t(o)}))})).catch((function(e){var t=/^(\d+)\s+(.*)/.exec(e.message);throw t&&(e.status=parseInt(t[1],10),e.statusText=t[2]),e}))}function oe(e){var t=e.playabilityStatus,n=e.videoDetails;if("OK"!==t.status){var r="UNKNOWN_PLAYABILITY_STATUS";return"LOGIN_REQUIRED"===t.status||"UNPLAYABLE"===t.status?r=t.status:"ERROR"===t.status&&(r="YT_ERROR"),new B.a("".concat(t.status,": ").concat(t.reason),r)}if(!n)return new B.a("Video details is empty","VIDEO_DETAILS_IS_EMPTY")}function ae(e,t,n){return n&&(e[t]=n),e}var ie=/(\/s\/([^\/]+))/;function se(e){var t=ie.exec(e);if(t)return{fragment:t[1],signature:t[2]}}var ue=/\/sp\/([^\/]+)/;function le(e){var t=ue.exec(e);if(t)return t[1]}function ce(e){var t=null;if(/\.googlevideo\.com/.test(e)){var n=new Y(e);n.host="redirector.googlevideo.com",t=W.format(n)}else if(/r[1-9].*\.c\.youtube\.com/.test(e)){var r=new Y(e);r.host="www.youtube.com",t=W.format(r)}return t}var de=function(){function e(){Object(s.a)(this,e),this.lastSignatureInited=!1,this.oneLimitGetSignature=H()(1),this.lastSignature=null,this.html5SigDecipher=new T.a,this.getDashUrlSignature=se,this.dashMpdSignatureParamR=le,this.getAltUrl=ce,this.getData=re,(l.a.isChromeMobile||l.a.isFirefoxMobile)&&(this.ua=x()())}var t,n,r,o;return Object(u.a)(e,[{key:"getMetadata",value:function(e,t){var n=this;return fetch("https://www.youtube.com/youtubei/v1/player?key=AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w&prettyPrint=false",{body:'{"context": {"client": {"clientName": "ANDROID", "clientVersion": "19.09.37", "androidSdkVersion": 30, "hl": "en", "timeZone": "UTC", "utcOffsetMinutes": 0}}, "videoId": "'.concat(e,'", "params": "CgIIAQ==", "playbackContext": {"contentPlaybackContext": {"html5Preference": "HTML5_PREF_WANTS"}}, "contentCheckOk": true, "racyCheckOk": true}'),headers:{"Content-Type":"application/json","X-Youtube-Client-Name":"3","X-Youtube-Client-Version":"19.09.37","User-Agent":"com.google.android.youtube/19.09.37 (Linux; U; Android 11) gzip"},method:"POST"}).then((function(e){return e.json()})).then((function(t){if(t&&t.playabilityStatus&&"This video is unavailable"===t.playabilityStatus.reason)throw new Error("TRY_IOS");if(t&&t.videoDetails&&t.videoDetails.videoId!==e)throw new Error("TRY_IOS");if(t&&t.playabilityStatus&&"LOGIN_REQUIRED"===t.playabilityStatus.status)throw new Error("LOGIN_REQUIRED");var n={player_response:t};return G({category:"meta",subcategory:"101",event:"main"}),{videoInfo:n,signature:null}})).catch((function(r){return J.error("getMetadata error: %O",r),"TRY_IOS"===r.code?n.getMetadataIos(e,t):n.getVideoInfoAsPage(e).catch((function(e){throw J.error("getVideoInfoAsPage error: %O",e),G({category:"meta",subcategory:"101",event:"fail"}),e})).then((function(e){var t=e.videoInfo,r=e.signature;return G({category:"meta",subcategory:"101",event:"fallback"}),n.testSignature(t,r).then((function(){return{videoInfo:t,signature:r}}))}))}))}},{key:"getMetadataIos",value:function(e,t){var n=this;return fetch("https://www.youtube.com/youtubei/v1/player?key=AIzaSyB-63vPrdThhKuerbB2N_l7Kwwcxj6yUAc&prettyPrint=false",{body:'{"context": {"client": {"clientName": "IOS", "clientVersion": "19.09.3", "deviceModel": "iPhone14,3", "hl": "en", "timeZone": "UTC", "utcOffsetMinutes": 0}}, "videoId": "'.concat(e,'", "params": "CgIQBg==", "playbackContext": {"contentPlaybackContext": {"html5Preference": "HTML5_PREF_WANTS"}}, "contentCheckOk": true, "racyCheckOk": true}'),headers:{"Content-Type":"application/json","X-Youtube-Client-Name":"5","X-Youtube-Client-Version":"19.09.3","User-Agent":"com.google.ios.youtube/19.09.3 (iPhone14,3; U; CPU iOS 15_6 like Mac OS X)"},method:"POST"}).then((function(e){return e.json()})).then((function(e){if(e&&e.playabilityStatus&&"LOGIN_REQUIRED"===e.playabilityStatus.status)throw new Error("LOGIN_REQUIRED");var t={player_response:e};return G({category:"meta",subcategory:"101",event:"main"}),{videoInfo:t,signature:null}})).catch((function(t){return J.error("getMetadata error: %O",t),n.getVideoInfoAsPage(e).catch((function(e){throw J.error("getVideoInfoAsPage error: %O",e),G({category:"meta",subcategory:"101",event:"fail"}),e})).then((function(e){var t=e.videoInfo,r=e.signature;return G({category:"meta",subcategory:"101",event:"fallback"}),n.testSignature(t,r).then((function(){return{videoInfo:t,signature:r}}))}))}))}},{key:"testSignature",value:(o=Object(a.a)(g.a.mark((function e(t,n){var r,o,a,i;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(e){var t=null;if(["url_encoded_fmt_stream_map","adaptive_fmts","fmt_url_map"].some((function(n){var r=e[n];if(r)return r.some((function(e){if(e.s&&e.url)return t=e,!0}))})),!t){var n=e.player_response;if(n.streamingData){var r=function(e){var n=e.signatureCipher||e.cipher;if(n){var r=Q.parse(n),o=r.sp,a=r.s,i=r.url;return t={url:i,sp:o,s:a},!0}};n.streamingData.formats&&n.streamingData.formats.some(r),!t&&n.streamingData.adaptiveFormats&&n.streamingData.adaptiveFormats.some(r)}}return t}(t)){e.next=3;break}return e.abrupt("return");case 3:return J.debug("Found chiped item",t.player_response.videoDetails.videoId),o=this.html5SigDecipher.applyActions(n.actionList,r.s),a=null,r.getUrl?a=r.getUrl(o):(i=r.sp||"signature",a=r.url+"&".concat(i,"=")+o),e.abrupt("return",re({method:"HEAD",url:a}).catch((function(e){var t=ce(a);if("net::ERR_NAME_NOT_RESOLVED"===e.message&&t)return re({method:"HEAD",url:t});throw e})).catch((function(e){if(403===e.status)throw e})));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"getVideoInfo",value:(r=Object(a.a)(g.a.mark((function e(t,n,r,o){var a,i=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this.getSignature();case 3:return a=e.sent,e.abrupt("return",re({url:"https://".concat(t,"/get_video_info?")+Q.stringify({video_id:n,eurl:o,el:r,html5:1,sts:a.sts}),headers:ae({},"User-Agent",this.ua)}).then((function(e){e=Q.parse(e),i.parseParams(e);var t=parseInt(e.errorcode,10);if(t>0){var n="VIDEO_INFO_ERROR";throw 2===t?n="INVALID_REQUEST":150===t&&(n="UNAVAILABLE"),new B.a("Error (".concat(t,"): ").concat(e.reason),n)}if(!e.player_response)throw new B.a("Player response is not found","PLAYER_RESPONSE_NOT_FOUND");var r=oe(e.player_response);if(r)throw r;return{videoInfo:e,signature:a}})));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n,o){return r.apply(this,arguments)})},{key:"getVideoInfoAsJsonPage",value:function(e){var t=this;return re({url:"https://www.youtube.com/watch?"+Q.stringify({v:e,pbj:1}),headers:ae({"x-youtube-client-name":"1","x-youtube-client-version":"2.20200812.02.01"},"User-Agent",this.ua)}).then(function(){var e=Object(a.a)(g.a.mark((function e(n){var r,o;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=JSON.parse(n),Array.isArray(n)){e.next=2;break}throw new B.a("Unexpected response","UNEXPECTED_RESPONSE");case 2:if(r=null,o=null,n.some((function(e){if(e.playerResponse?r=e.playerResponse:e.player&&e.player.assets&&e.player.assets.js&&(o=e.player.assets.js),r&&o)return!0})),r){e.next=5;break}throw new B.a("playerResponse is not found!","PLAYER_RESPONSE_IS_NOT_FOUND");case 5:return e.abrupt("return",t.getVideoInfoFromPlayerResponse(r,o));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},{key:"getVideoInfoAsPage",value:function(e){var t=this;return re({url:"https://www.youtube.com/watch?"+Q.stringify({v:e,has_verified:1}),headers:ae({},"User-Agent",this.ua)}).then(function(){var e=Object(a.a)(g.a.mark((function e(n){var r,o,a,i,s,u;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n;try{a=t.getYtInitialPlayerResponseFromHtmlPage(n),i=a.playerResponse,s=a.playerUrl,r={player_response:i},o=s}catch(e){J.warn("getYtInitialPlayerResponseFromHtmlPage error: %O",e),u=t.getSwfCfgFromHtmlPage(n),r=t.parseParams(u.args),o=u.assets&&u.assets.js}return e.abrupt("return",t.getVideoInfoFromPlayerResponse(r.player_response,o));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},{key:"getSwfCfgFromHtmlPage",value:function(e){var t=null;if(z()(e,[/"responseContext"/]).some((function(e){return E()(e,[/"playabilityStatus":/]).some((function(e){if(e&&e.playabilityStatus)return t=e,!0}))})),t){var n=oe(t);if(n)throw n}var r=null;if(z()(e,[/ytplayer\.config\s+=\s+/]).some((function(e){return E()(e,[/"player_response":/]).some((function(e){if(e.args&&"object"==typeof e.args)return r=e,!0}))})),!r)throw new B.a("swfcfg is not found!","SWFCFG_IS_NOT_FOUND");return r}},{key:"getYtInitialPlayerResponseFromHtmlPage",value:function(e){var t=null;if(z()(e,[/ytInitialPlayerResponse/]).some((function(e){return E()(e,[/"playabilityStatus":/]).some((function(e){if(e&&e.playabilityStatus)return t=e}))})),!t)throw new B.a("ytInitialPlayerResponse in not found","PLAYER_RESPONSE_NOT_FOUND");var n=null;return z()(e,[/ytplayer\.web_player_context_config\s+=\s+/]).some((function(e){return E()(e,[/"jsUrl":/]).some((function(e){if(e.jsUrl)return n=e.jsUrl}))})),!n&&z()(e,[/window\.ytplayer={};/]).some((function(e){return E()(e,[/("jsUrl"|"PLAYER_JS_URL"):/]).some((function(e){return e.PLAYER_JS_URL?n=e.PLAYER_JS_URL:e.WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH&&e.WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH.jsUrl?n=e.WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH.jsUrl:void 0}))})),{playerResponse:t,playerUrl:n}}},{key:"getVideoInfoFromPlayerResponse",value:(n=Object(a.a)(g.a.mark((function e(t,n){var r,o;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.validatePlayerResponse(t),!(r=oe(t))){e.next=4;break}throw r;case 4:if(o={player_response:t},n){e.next=7;break}throw new B.a("Player url is not found","PLAYER_URL_IS_NOT_FOUND");case 7:return e.t0=o,e.next=10,this.getSignatureFormPlayerUrl(n);case 10:return e.t1=e.sent,e.abrupt("return",{videoInfo:e.t0,signature:e.t1});case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"getInfoFromVideoInfo",value:(t=Object(a.a)(g.a.mark((function e(t,n){var r;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.player_response){e.next=2;break}throw new B.a("Player response is not found","PLAYER_RESPONSE_NOT_FOUND");case 2:if(t.player_response=F.coerce(t.player_response,ne),!(r=oe(t.player_response))){e.next=6;break}throw r;case 6:if(n){e.next=8;break}throw new B.a("Player url is not found","PLAYER_URL_IS_NOT_FOUND");case 8:return e.t0=t,e.next=11,this.getSignatureFormPlayerUrl(n);case 11:return e.t1=e.sent,e.abrupt("return",{videoInfo:e.t0,signature:e.t1});case 13:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"parseParams",value:function(e){return["url_encoded_fmt_stream_map","adaptive_fmts","fmt_url_map"].forEach((function(t){e[t]&&(e[t]=e[t].split(",").map((function(e){return Q.parse(e)})))})),e.player_response&&(e.player_response=JSON.parse(e.player_response),this.validatePlayerResponse(e.player_response)),e}},{key:"validatePlayerResponse",value:function(e){F.coerce(e,ne),e.streamingData&&F.assert(e.streamingData,te)}},{key:"initLastSignature",value:function(){var e=this;return P()((function(){if(!e.lastSignatureInited)return e.lastSignatureInited=!0,new Promise((function(e){return l.a.storage.get({ytLastSignature:null},(function(t){return e(t.ytLastSignature)}))})).then((function(t){t&&t.throttleSigCode&&(t=null),e.lastSignature=t}))}))}},{key:"getSignature",value:function(){var e=this;return this.oneLimitGetSignature(Object(a.a)(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.initLastSignature();case 2:if(e.lastSignature&&!(e.lastSignature.expiresAt<U()())){t.next=7;break}return null,t.next=6,re({url:"https://www.youtube.com/",headers:ae({},"User-Agent",e.ua)}).then((function(t){t;var n=null;try{n=e.getPlayerUrlFromHtml(t)}catch(r){n=e.getPlayerUrlFromAuthHtml(t)}return e.getSignatureFormPlayerUrl(n)}));case 6:e.lastSignature=t.sent;case 7:return t.abrupt("return",e.lastSignature);case 8:case"end":return t.stop()}}),t)}))))}},{key:"getSignatureFormPlayerUrl",value:function(e){var t=this;return/^\/\//.test(e)?e="https:"+e:/^\//.test(e)&&(e="https://www.youtube.com"+e),this.initLastSignature().then((function(){return t.lastSignature&&t.lastSignature.expiresAt>U()()&&t.lastSignature.playerUrl===e&&"10.21.2"===t.lastSignature.helperVersion?t.lastSignature:re({url:e,headers:ae({},"User-Agent",t.ua)}).then((function(n){return t.html5SigDecipher.dechip(e,n)})).then((function(e){return new Promise((function(t){return l.a.storage.set({ytLastSignature:e},t)})).catch((function(e){J.warn("Unable save signature, cause: %O",e)})).then((function(){return t.lastSignature=e}))}))}))}},{key:"getPlayerUrlFromHtml",value:function(e){var t=null;if(z()(e,[/window\.ytplayer\s*=\s*/]).some((function(e){return E()(e,[/"PLAYER_JS_URL":/]).some((function(e){if(e.PLAYER_JS_URL)return t=e.PLAYER_JS_URL,!0}))})),!t)throw new B.a("Player url is not found","PLAYER_URL_IS_NOT_FOUND");return t}},{key:"getPlayerUrlFromAuthHtml",value:function(e){var t=null;if(z()(e,[/ytplayer\.config\s+=\s+/]).some((function(e){return E()(e,[/"assets":/]).some((function(e){if(e.assets&&e.assets.js)return t=e.assets.js,!0}))})),!t)throw new B.a("Player url is not found","PLAYER_URL_IS_NOT_FOUND");return t}},{key:"getThrottleSigFn",value:function(e){if(l.a.isFirefox)return!1;var t=e.throttleSigFn;if("function"!=typeof t&&e.nSigCode){var n=this.html5SigDecipher.throttleSigDecipher.buildEvalSignatureFn(e.nSigCode);t=function(e){try{return n(e)}catch(e){J.error("Use throttle signature error: %o",e)}return null},e.throttleSigFn=t}return t}}]),e}(),pe=f()("youtube_embed").t,fe=n(11);function me(e,t){var n,r={144:144,240:240,360:360,480:480,720:720,1080:1080,1440:1440,"4K":2160,"5K":2880,"8K":4320},o=Math.max(e,t);for(var a in e=Math.min(e,t),r){var i=r[a];if(!(o>=Math.floor(16*i/9)||e>=i))return n;n=a}return n}function ge(e){return/ratebypass/.test(e)||(/\?/.test(e)?e+="&ratebypass=yes":(/\/$/.test(e)||(e+="/"),e+="ratebypass/yes/")),e}var he=/(\/s\/([^\/]+))/,ve=/\/sp\/([^\/]+)/,be=function(){function e(t){Object(s.a)(this,e),this._lastSignature=null,this.html5SigDecipher=new T.a,this.ytMetadata=new de,this.engine=t}return Object(u.a)(e,[{key:"getYoutubeLinks",value:function(e,t){var n=this;function r(r,o,a,i){n.addMuxerLinks(r,o),n.addProLinks(r,e.extVideoId),n.addTelevzrLinks(r,e.extVideoId);var s={action:e.action,extVideoId:e.extVideoId,links:r,title:o,subtitles:a,duration:i,checkLinks:null};return e.checkLinks&&r?n.checkYoutubeLinks(r,(function(e,n){return s.checkLinks=n,t(s)})):t(s)}return n._getYoutubeLinks(e.url,e.extVideoId,e.checkSubtitles,e.noDash).then((function(e){r(e.links,e.title,e.subtitles,e.duration)}),(function(e){pe.error("_getYoutubeLinks error: %O",e),r(null,"",null,"")})),!0}},{key:"_getYoutubeLinks",value:function(e,t,n,r){var o=this;return this.ytMetadata.getMetadata(t,e).then((function(e){var a=e.videoInfo,i=e.signature;return o.onGetConfig(t,n,r,a,i)}))}},{key:"readFmt",value:function(e,t,n,r){var o=this,a=e.meta;t.forEach((function(t){if(t.stream)a.hasStream=1;else{var i=t.url;if(i){/([?&])s(ig(nature)?)?=/i.test(i)||(t.sig?i+="&sig="+t.sig:t.signature?i+="&signature="+t.signature:t.s&&(i+="&".concat(t.sp||"signature","=")+o.html5SigDecipher.applyActions(n.actionList,t.s))),i=i.replace(/\\u0026/gi,"&");var s=t.itag;if(!s){var u=/(?:[?&])itag=(\d+)/i.exec(i);u&&(s=u[1])}if(s&&!e[s]){/[?&]itag=/i.test(i)||(i+="&itag="+s),i=ge(i);var l=a[s];if(l||(l=a[s]={}),t.fps&&(l.fps=t.fps),t.size&&/^\d+x\d+$/.test(t.size)){var c=t.size.split("x");l.quality=me(c[0],c[1])}if(t.bitrate&&(l.bitrate=parseInt(t.bitrate)),t.type){l.type=t.type;var d=t.type.match(/codecs="([^"]+)"/);d&&(l.codecs=d[1])}t.projection_type&&(l.projectionType=parseInt(t.projection_type)),e[s]||(e[s]=i+r)}}}}))}},{key:"_readPlayerResponse",value:function(e,t,n){var r=this,o=function(e){e.type&&/audio\/mp4/.test(e.type)&&(t.multiLang||(t.multiLang={audioDefault:null,variants:{}}),e.audioTrack&&(t.multiLang.variants[e.audioTrack.id]=e,e.audioTrack.audioIsDefault&&(t.multiLang.audioDefault=e))),t[e.itag]||(t[e.itag]=e.url,t.meta[e.itag]=e)};e.streamingData&&(Array.isArray(e.streamingData.formats)&&e.streamingData.formats.forEach((function(t){var a=r._readPlayerResponseFormat(t,n,e,"streamingData.formats");a&&o(a)})),Array.isArray(e.streamingData.adaptiveFormats)&&e.streamingData.adaptiveFormats.forEach((function(t){var a=r._readPlayerResponseFormat(t,n,e,"streamingData.adaptiveFormats");a&&o(a)}))),t&&t.multiLang&&t.multiLang.variants&&0===Object.keys(t.multiLang.variants).length&&(t.multiLang=null)}},{key:"_readPlayerResponseFormat",value:function(e,t,n,r){if(e.cipher||e.signatureCipher){var o=fe.parse(e.cipher||e.signatureCipher),a=o.sp,i=o.s,s=o.url,u=this.html5SigDecipher.applyActions(t.actionList,i);e.url=s+(/\?/.test(s)?"&":"?")+a+"="+encodeURIComponent(u)}var l=/[?&]n=([^&]+)/i.exec(e.url);if(l){var c=l[1],d=decodeURIComponent(c),p=this.ytMetadata.getThrottleSigFn(t);if(p){var f=p(d);f&&(e.url=e.url.replace("n="+c,"n="+encodeURIComponent(f)))}}var m={source:r},g=""+e.itag;m.itag=g,m.url=e.url,e.audioTrack&&(m.audioTrack=e.audioTrack),e.fps?m.fps=parseFloat(e.fps):m.noFps=!0,e.width&&e.height?(m.quality=me(e.width,e.height),m.width=e.width,m.height=e.height):m.noWidthHeight=!0,m.bitrate=e.bitrate,m.type=e.mimeType;var h=/codecs="([^"]+)"/.exec(e.mimeType);if(h){var v=h[1].split(/,\s*/),b=v.some((function(e){return/^mp4a/.test(e)})),y=v.some((function(e){return/^avc/.test(e)}));m.isBundle=b&&y}return m.acodec&&!m.vcodec&&(delete m.noWidthHeight,delete m.noFps),e.contentLength&&(m.contentLength=parseInt(e.contentLength,10)),m}},{key:"ytPrepareVideoInfo",value:function(e){var t=this;return this.onGetConfig(e.videoId,e.checkSubtitles,e.noDash,e.config,e.signature).then((function(n){G({category:"links",subcategory:"101",event:"fallback"});var r=n.links,o=n.title;return r&&t.addProLinks(r,e.videoId),r&&t.addTelevzrLinks(r,e.videoId),t.addMuxerLinks(r,o),{links:r,title:o,multiLang:r.multiLang}}))}},{key:"onGetConfig",value:function(e,t,n,r,o){var a=this,i=r.player_response,s=i.videoDetails,u=void 0===s?{}:s,l=i.playabilityStatus,c=void 0===l?{}:l,d={meta:{}},p="",f=null,m="",g=null;return P()((function(){m=u.lengthSeconds||r.length_seconds||"";var e="";(p=u.title||r.title||"")&&(p=p.replace(/\+/g," "),e="&title="+encodeURIComponent(I.a.modify(p)));var t=r.fmt_url_map||r.url_encoded_fmt_stream_map||[],n=r.adaptive_fmts||[],i=c.liveStreamability;(i&&i.liveStreamabilityRenderer&&!i.liveStreamabilityRenderer.displayEndscreen||r.livestream||r.live_playback)&&(d.meta.hasStream=1),a._readPlayerResponse(r.player_response,d,o),t&&a.readFmt(d,t,o,e),n&&a.readFmt(d,n,o,e),(g=r.dashmpd||"")&&-1!==g.indexOf("yt_live_broadcast")&&(g=null)})).then((function(){var r=Promise.resolve();return t&&(r=r.then((function(){return new Promise((function(t){a.getYoutubeSubtitles({extVideoId:e},(function(e){f=e||null,t()}))})).catch((function(e){pe.error("Get subtitles error: %O",e)}))}))),!n&&g&&(r=r.then((function(){var e=g,t=function(e){var t=ve.exec(e);if(t)return t[1]}(g)||"signature",n=function(e){var t=he.exec(e);if(t)return{fragment:t[1],signature:t[2]}}(g);if(n){var r=a.html5SigDecipher.applyActions(o.actionList,n.signature);e=g.replace(n.fragment,"/".concat(t,"/")+r)}return e=e.replace("/sig/","/signature/"),a.getYouTubeDashLinks(d,e).catch((function(e){pe.error("Get dash error: %O",e)}))}))),r})).then((function(){var e=Object.keys(d).length;return d.meta&&!d.meta.hasStream&&e--,e||(d=null),{links:d,title:p,subtitles:f,duration:m}}))}},{key:"addProLinks",value:function(e,t){if(e&&e.meta&&this.engine.preferences&&this.engine.preferences.proEnabled){var n=["1080","2160","4K"];Object.keys(e.meta).forEach((function(r){var o=e.meta[r];if("string"!=typeof o&&n.includes(o.quality)){var a=String(o.quality).toUpperCase();"4K"===o.quality&&(a=o.height);var i="pro"+o.quality;e.meta[i]={quality:a,height:o.height,itag:"pro",format:"MP4",type:"video",url:"https://www.youtube.com/watch?v="+encodeURIComponent(t)}}})),e.meta.proMp3={quality:"mp3",itag:"pro",noVideo:!0,format:"Audio",type:"audio",url:"https://www.youtube.com/watch?v="+encodeURIComponent(t)}}}},{key:"addTelevzrLinks",value:function(e,t){var n=this.engine.preferences&&this.engine.preferences.proEnabled;!e||e.meta&&e.meta.hasStream||n||(e.televzr="televzr://www.youtube.com/watch?v="+t)}},{key:"addMuxerLinks",value:function(e,t){if(e&&e.meta&&!e.meta.hasStream&&this.engine.preferences.ffmpegEnabled){var n=null,r=null,o=null;Object.keys(e.meta).forEach((function(t){var a=e.meta[t];a&&(a.isBundle?(!n||a.height>n)&&(n=a.height):/audio\/mp4/.test(a.type)?(!o||a.bitrate>o.bitrate)&&(o=a):/video\/mp4/.test(a.type)&&a.height>360&&a.height<=720&&(!r||a.height>r.height||a.bitrate>r.bitrate||a.fps>r.fps)&&(r=a))})),r&&o&&(e.meta.muxer={quality:r.quality,width:r.width,height:r.height,fps:r.fps,format:"MP4",mmProps:{sources:[{url:r.url,format:"mp4"},{url:o.url,format:"m4a"}],filename:t+".mp4",format:"mp4"}})}}},{key:"checkYoutubeLinks",value:function(e,t){for(var n=["18","34","35"],r="",o=0;o<n.length;o++)if(e[n[o]]){r=e[n[o]];break}r?d()({type:"HEAD",url:r},(function(e,n){t(r,!e)})):t()}},{key:"convertVtt2Srt",value:function(e,t){d()({url:e.url},(function(n,r,o){if(n||!o)return pe.error("Request error!",n),t();var a=/(\d{2}:\d{2}:\d{2})\.(\d{3})/g,i=/^\d{2}:\d{2}:\d{2}\.\d{3}/,s=o.split("\n\n");i.test(s[0])||s.shift(),i.test(s[s.length-1])||s.pop();var u=!1,l=s.filter((function(e){var t=i.test(e);return t||(u=!0),t})).map((function(e,t){return t+1+"\n"+e.replace(a,"$1,$2")}));if(l=l.join("\n\n"),u)return t();e.srt=l,e.preprocess="srt2url",t()}))}},{key:"getYoutubeSubtitles",value:function(e,t){var n=this,r=e.extVideoId,o="http://video.google.com/timedtext";d()({url:o+"?hl="+l.a.i18n.getMessage("lang")+"&v="+r+"&type=list&tlangs=1",xml:!0},(function(e,a,i){if(e||!i)return t();for(var s,u,l,c=i.querySelectorAll("track"),d=i.querySelectorAll("target"),p=[],f={},m={},g=void 0,h=0;l=c[h];h++)u={lang:s=l.getAttribute("lang_code"),v:r,fmt:"vtt",name:l.getAttribute("name")||void 0},f[s]={lang:l.getAttribute("lang_translated"),langCode:s,url:o+"?"+fe.stringify(u),name:u.name},p.push(f[s]),!g&&l.getAttribute("cantran")&&(g=u);if(g)for(var v,b=0;v=d[b];b++)s=v.getAttribute("lang_code"),u={lang:g.lang,v:r,tlang:s,fmt:"vtt",name:g.name},m[s]={lang:v.getAttribute("lang_translated"),langCode:s,url:o+"?"+fe.stringify(u),isAuto:!0};0===(s=navigator.language.toLowerCase()).indexOf("zh-hant")?s="zh-Hant":0===s.indexOf("zh-hans")&&(s="zh-Hans");var y=[s];"uk"===y[0]&&y.push("ru");for(var k,A=0;k=y[A];A++)!f[k]&&m[k]&&p.push(m[k]);var w=0,x=0,C=function(){if(x++,w===x)return t(p)};w++,p.forEach((function(e){w++,n.convertVtt2Srt(e,C)})),C()}))}},{key:"getYouTubeDashLinks",value:function(e,t){var n,r=this,o={};return(l.a.isChromeMobile||l.a.isFirefoxMobile)&&(o["User-Agent"]=x()()),(n={url:t,headers:o,xml:!0},new Promise((function(e,t){d()(n,(function(n,r,o){n&&"string"==typeof n&&(n=new Error(n)),n?t(n):e(o)}))}))).then((function(t){r.parseDash(t,e)}))}},{key:"parseDash",value:function(e,t){for(var n,r=e.querySelectorAll("Representation"),o=t.meta=t.meta||{},a=0;n=r[a];a++){var i=n.querySelector("BaseURL"),s=i.textContent;if(s){var u=i.parentNode.querySelector("SegmentURL"),l=u&&u.getAttribute("media");if(!l||0!==l.indexOf("sq/")){var c=n.getAttribute("id"),d=o[c];d||(d=o[c]={}),s=ge(s);var p=n.getAttribute("frameRate");p&&(d.fps=p);var f=n.getAttribute("width"),m=n.getAttribute("height");f&&m&&(d.quality=me(f,m));var g=n.getAttribute("codecs");if(g){d.codecs=g;var h=s.match(/mime=([^&]+)/);(h=h&&h[1])&&(d.type=h)}t[c]||(t[c]=s)}}}}},{key:"getYoutubeIdListFromPlaylist",value:function(e,t){return this.getIdListFromList(e.baseUrl||"https://www.youtube.com",e.listId,t),!0}},{key:"getIdListFromList",value:function(e,t,n){var r=function e(t,n,r,a){r||(r=[]),d()({url:t+n,json:!0},(function(n,i,s){if(n||!s)return a(r);r.push(s.content_html);var u=o(s.load_more_widget_html);if(void 0===u)return a(r);e(t,u,r,a)}))},o=function(e){if(e){var t=e.match(/data-uix-load-more-href="([^"]+)"/);return t&&(t=t[1]),t||void 0}},a=function(e,t,n){for(var r=function(e){var t=e.match(/<h1[^>]+>([^<]+)<\/h1>/);if(t)return t[1].replace(/\r?\n/g," ").trim()}(t[0]),o={},a=[],i=/href="\/watch\?([^"]+)"/g,s=0,u=0,l=t.length;u<l;u++)t[u].replace(i,(function(t,n){var r=_()(n,{params:!0,sep:"&amp;"});r.list===e&&(r.index=parseInt(r.index),o[r.index]=r.v,r.index>s&&(s=r.index))}));for(var c=0;c<=s;c++)void 0!==o[c]&&-1===a.indexOf(o[c])&&a.push(o[c]);n({idList:a,title:r})},i=function(e){var t=null,n=e.match(/"nextContinuationData":({[^}]+})/);if(n)try{var r=JSON.parse(n[1]);t="/browse_ajax?"+fe.stringify({ctoken:r.continuation,itct:r.clickTrackingParams})}catch(e){pe.debug("getNewNextPageUrl error: %O",e)}return t},s=function(e,t){var n=function(e){Array.isArray(e)&&e.forEach((function(e){var n=e.playlistVideoRenderer,r=n&&n.videoId;r&&t.push(r)}))},r=e.indexOf('{"playlistVideoListRenderer":{');-1!==r?(e=e.substr(r),E()(e).forEach((function(e){var t=e.playlistVideoListRenderer,r=t&&t.contents;n(r)}))):-1!==(r=e.indexOf('{"playlistVideoListContinuation":{'))&&(e=e.substr(r),E()(e).forEach((function(e){var t=e.playlistVideoListContinuation,r=t&&t.contents;n(r)})))},u=function e(t,n,r,o,a){d()({url:t+n,headers:r,json:!0},(function(n,u,l){if(n)return pe.error("YT next page request error! %O",n),a();var c=JSON.stringify(l),d=i(c);s(c,o),d?e(t,d,r,o,a):a()}))};return d()({url:e+"/playlist?list="+t},(function(l,c,d){if(l)return n();var p=null;if(/"playlistVideoListRenderer"/.test(d)){var f=function(e){var t={},n=null,r=/ytcfg\.set\(({.+)/.exec(e);return r&&O()(r[1]).some((function(e){if(e.INNERTUBE_CONTEXT_CLIENT_NAME)return n=e,!0})),n&&(t["x-youtube-client-name"]=n.INNERTUBE_CONTEXT_CLIENT_NAME,t["x-youtube-client-version"]=n.INNERTUBE_CONTEXT_CLIENT_VERSION,n.ID_TOKEN&&(t["x-youtube-identity-token"]=n.ID_TOKEN)),t}(d),m=function(e){var t="unknown",n=null,r=e.match(/"playlistSidebarPrimaryInfoRenderer":({.+)/);if(r&&O()(r[1]).some((function(e){if(e.title&&e.title.runs)return n=e,!0})),!t||"unknown"===t){var o=e.match(/"titleForm":({.+)/);o&&O()(o[1]).some((function(e){if(e.inlineFormRenderer&&e.inlineFormRenderer.textDisplayed&&e.inlineFormRenderer.textDisplayed.simpleText)return t=e.inlineFormRenderer.textDisplayed.simpleText,!0}))}if(n)try{n.title.runs.some((function(e){if(e.text)return t=e.text}))}catch(e){pe.debug("getNewTitle error: %O",e)}return t}(d),g=[];s(d,g),(p=i(d))?u(e,p,f,g,(function(){n({idList:g,title:m})})):n({idList:g,title:m})}else(p=o(d))?r(e,p,[d],(function(e){a(t,e,n)})):a(t,[d],n)}))}},{key:"getYoutubeLinksFromConfig",value:function(e,t){var n=this,r=this;return P()((function(){var o=e.config,a=o.args.video_id;if(!o||!o.args)throw new Error("jsonList args is not found!");return fetch("https://www.youtube.com/youtubei/v1/player?key=AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w&prettyPrint=false",{body:'{"context": {"client": {"clientName": "ANDROID", "clientVersion": "19.09.37", "androidSdkVersion": 30, "hl": "en", "timeZone": "UTC", "utcOffsetMinutes": 0}}, "videoId": "'.concat(a,'", "params": "CgIIAQ==", "playbackContext": {"contentPlaybackContext": {"html5Preference": "HTML5_PREF_WANTS"}}, "contentCheckOk": true, "racyCheckOk": true}'),headers:{"Content-Type":"application/json","X-Youtube-Client-Name":"3","X-Youtube-Client-Version":"19.09.37","User-Agent":"com.google.android.youtube/19.09.37 (Linux; U; Android 11) gzip"},method:"POST"}).then((function(e){if(403===e.status)throw new Error("Forbidden");return e.json()})).then((function(n){if(n&&n.playabilityStatus&&"This video is unavailable"===n.playabilityStatus.reason)throw new Error("video unavailable");if(n&&n.videoDetails&&n.videoDetails.videoId!==mediaId)throw new Error("TRY_IOS");if(n&&n.playabilityStatus&&"LOGIN_REQUIRED"===n.playabilityStatus.status)throw new Error("LOGIN_REQUIRED");var o={player_response:n};return r.onGetConfig(e.extVideoId,e.checkSubtitles,e.noDash,o,null).then((function(n){G({category:"links",subcategory:"101",event:"main"});var o=n.title,a=n.links;a&&r.addProLinks(a,e.extVideoId),a&&r.addTelevzrLinks(a,e.extVideoId),r.addMuxerLinks(a,o),t({links:a,title:o})}))})).catch((function(a){if("TRY_IOS"===a.message)return r.getYoutubeLinksFromConfigIos(e,t);var i=o.args,s=o.playerUrl;return n.ytMetadata.getInfoFromVideoInfo(i,s).then((function(n){var o=n.videoInfo,a=n.signature;return r.onGetConfig(e.extVideoId,e.checkSubtitles,e.noDash,o,a).then((function(n){G({category:"links",subcategory:"101",event:"fallback"});var o=n.links,a=n.title;o&&r.addProLinks(o,e.extVideoId),o&&r.addTelevzrLinks(o,e.extVideoId),r.addMuxerLinks(o,a),t({links:o,title:a,multiLang:o.multiLang})}))})).catch((function(n){return pe.warn("Skip getYoutubeLinksFromConfig, cause %O",n),G({category:"links",subcategory:"101",event:"fail"}),r.getYoutubeLinks(e,t)}))}))})),!0}},{key:"getYoutubeLinksFromConfigIos",value:function(e,t){var n=this,r=this;return P()((function(){var o=e.config,a=o.args.video_id;if(!o||!o.args)throw new Error("jsonList args is not found!");return fetch("https://www.youtube.com/youtubei/v1/player?key=AIzaSyB-63vPrdThhKuerbB2N_l7Kwwcxj6yUAc&prettyPrint=false",{body:'{"context": {"client": {"clientName": "IOS", "clientVersion": "19.09.3", "deviceModel": "iPhone14,3", "hl": "en", "timeZone": "UTC", "utcOffsetMinutes": 0}}, "videoId": "'.concat(a,'", "params": "CgIQBg==", "playbackContext": {"contentPlaybackContext": {"html5Preference": "HTML5_PREF_WANTS"}}, "contentCheckOk": true, "racyCheckOk": true}'),headers:{"Content-Type":"application/json","X-Youtube-Client-Name":"5","X-Youtube-Client-Version":"19.09.3","User-Agent":"com.google.ios.youtube/19.09.3 (iPhone14,3; U; CPU iOS 15_6 like Mac OS X)"},method:"POST"}).then((function(e){if(403===e.status)throw new Error("Forbidden");return e.json()})).then((function(n){if(n&&n.playabilityStatus&&"LOGIN_REQUIRED"===n.playabilityStatus.status)throw new Error("LOGIN_REQUIRED");var o={player_response:n};return r.onGetConfig(e.extVideoId,e.checkSubtitles,e.noDash,o,null).then((function(n){G({category:"links",subcategory:"101",event:"main"});var o=n.title,a=n.links;a&&r.addProLinks(a,e.extVideoId),a&&r.addTelevzrLinks(a,e.extVideoId),r.addMuxerLinks(a,o),t({links:a,title:o})}))})).catch((function(a){var i=o.args,s=o.playerUrl;return n.ytMetadata.getInfoFromVideoInfo(i,s).then((function(n){var o=n.videoInfo,a=n.signature;return r.onGetConfig(e.extVideoId,e.checkSubtitles,e.noDash,o,a).then((function(n){G({category:"links",subcategory:"101",event:"fallback"});var o=n.links,a=n.title;o&&r.addProLinks(o,e.extVideoId),o&&r.addTelevzrLinks(o,e.extVideoId),r.addMuxerLinks(o,a),t({links:o,title:a,multiLang:o.multiLang})}))})).catch((function(n){return pe.warn("Skip getYoutubeLinksFromConfig, cause %O",n),G({category:"links",subcategory:"101",event:"fail"}),r.getYoutubeLinks(e,t)}))}))})),!0}}]),e}(),ye=n(38),ke=n.n(ye),Ae=n(39),we=n.n(Ae),xe=n(40),Ce=n.n(xe),_e=n(41),Se=n.n(_e),Oe=n(42),Me=n.n(Oe),Ee=n(43),De=n.n(Ee),Ie=n(44),Le=n.n(Ie),Te=n(45),je=n.n(Te),Pe=n(46),Fe=n.n(Pe),Ne=n(47),Be=n.n(Ne),Re=n(48),ze=n.n(Re),qe=n(14),Ue=n.n(qe),Ge=n(49),Qe=n.n(Ge),Ye=n(50),Je=n.n(Ye),Ke=n(2),Ze=n.n(Ke),Xe=n(51),$e=n.n(Xe),et=n(52),tt=n.n(et),nt=n(22),rt=n.n(nt),ot=n(23),at=n.n(ot),it=n(53),st=n.n(it),ut=n(6),lt=n(33),ct=n(10),dt=function(){function e(){Object(s.a)(this,e)}return Object(u.a)(e,[{key:"get",value:function(e){return Object(ut.a)(e)}},{key:"first",value:function(e){return Object(ut.a)(e).then((function(t){return t[e]}))}},{key:"set",value:function(e){return Object(ct.a)(e)}}]),e}(),pt=n(54),ft=f()("experiments"),mt={experiments:"experiments.main",config:"experiments.config"},gt=function(){function e(t){Object(s.a)(this,e),this.retryCount=0,this.storage=new dt,this.config={payload:{},lastUpdated:null},this.user=void 0,this.user=t}var t,n,r;return Object(u.a)(e,[{key:"init",value:(r=Object(a.a)(g.a.mark((function e(){var t,n=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,ft.info("ExperimentLoader init"),e.next=4,this._initPayload();case 4:return e.next=6,this.checkUpdate();case 6:if(!e.sent){e.next=16;break}return ft.info("Experiments updating"),e.next=10,this.requestRemoteConfig();case 10:return t=e.sent,this.config={payload:t,lastUpdated:Date.now()},this.experiments={},Object.keys(this.config.payload).forEach((function(e){return n.experiments[e]=n.refreshExperiment(e)})),e.next=16,this.storage.set(Object(i.a)(Object(i.a)({},mt.config,this.config),mt.experiments,this.experiments));case 16:return e.abrupt("return",(ft.info("list:",this.experiments,"config:",this.config),this.experiments));case 19:e.prev=19,e.t0=e.catch(0),this.clearAll().then((function(){return n.retry()})),ft.error(e.t0);case 22:return e.abrupt("return",{});case 23:case"end":return e.stop()}}),e,this,[[0,19]])}))),function(){return r.apply(this,arguments)})},{key:"retry",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;this.retryCount>=e||(this.retryCount++,ft.info("Retry loader"),this.init())}},{key:"_initPayload",value:(n=Object(a.a)(g.a.mark((function e(){var t,n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object.keys(mt).map((function(e){return mt[e]})),e.next=3,this.storage.get(t);case 3:n=e.sent,this.experiments=n[mt.experiments]||{},this.config=n[mt.config]||this.config;case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"checkUpdate",value:(t=Object(a.a)(g.a.mark((function e(){var t,n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.config.lastUpdated+216e5<(new Date).getTime(),n=0===Object.keys(this.config.payload).length,e.abrupt("return",t||n);case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"requestRemoteConfig",value:function(){var e="https://sf-helper.com/static/helper-config/experiments.config.json?ts="+Date.now();return Ze()({url:e,json:!0}).then((function(e){return e.body}))}},{key:"refreshExperiment",value:function(e){var t=this.config.payload[e]||{};return t.name=e,{name:e,config:t,allowed:pt.isAllowedExperiment(t,this.user),payload:t.payload}}},{key:"clearAll",value:function(){return this.storage.set(Object(i.a)(Object(i.a)({},mt.config,null),mt.experiments,null))}}]),e}(),ht=f()("ShareDistributor"),vt=function(){function e(t){Object(s.a)(this,e),this.name=t,this.storage=new dt,this.storageKey="share_distributor."+this.name}var t;return Object(u.a)(e,[{key:"onCreated",value:function(e){}},{key:"onUpdated",value:function(e){}},{key:"createShare",value:(t=Object(a.a)(g.a.mark((function e(t){var n,r,o,a,s,u,l=arguments;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>1&&void 0!==l[1]&&l[1],e.next=3,this.storage.first(this.storageKey);case 3:if(r=e.sent,o=!r||r.percent!==t,!n||!r||void 0===r.isShared||o){e.next=7;break}return e.abrupt("return",(ht.debug("".concat(this.storageKey," from cache ").concat(t,"% : ").concat(r.isShared)),r.isShared));case 7:if(a=this.getRandomInt(1,100),s=a<=t,ht.debug("".concat(this.storageKey," created ").concat(t,"% : ").concat(s)),!n){e.next=13;break}return e.next=11,this.storage.set(Object(i.a)({},this.storageKey,{isShared:s,percent:t}));case 11:u={name:this.name,storageKey:this.storageKey,isShared:s,rndNumber:a,percent:t,toCache:n},r&&r.percent!==t?this.onUpdated(u):this.onCreated(u);case 13:return e.abrupt("return",s);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getRandomInt",value:function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e}}]),e}(),bt=n(55),yt=n.n(bt),kt=n(56),At=n.n(kt),wt=n(57),xt=n.n(wt);function Ct(e){return Object(ct.a)({credentials:(t={access_token:e.accessToken,refresh_token:e.refreshToken,token_type:e.tokenType,expiry_date:e.expires.getTime()},btoa(encodeURIComponent(JSON.stringify(t))))});var t}n(18),n(34),n(58),f()("televzrBridge");var _t=n(60),St=n(59),Ot=n.n(St),Mt=n(11),Et=f()("AuthService"),Dt="https://oauth2.televzr.com",It=["az","be","hy","kk","ky","mo","ru","tj","uz","uk"],Lt=f()("helper-pro-exp");function Tt(e){return jt.apply(this,arguments)}function jt(){return(jt=Object(a.a)(g.a.mark((function e(t){var n,r,o,a,i,s;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ut.a)(["userInfo"]).then((function(e){return e.userInfo&&e.userInfo.isPremium}));case 2:return n=e.sent,e.next=5,Object(ut.a)(["helper_pro_force"]).then((function(e){return e.helper_pro_force}));case 5:if(r=e.sent,!n){e.next=8;break}return e.abrupt("return",(Lt.log("has account"),!r&&Object(ct.a)({helper_pro_force:!0}),!0));case 8:if(!r){e.next=10;break}return e.abrupt("return",(Lt.log("flag helper force"),!0));case 10:if(a=t.preferences.country,o=It.includes(a),i=Date.now()>1624376875e3,Lt.log("available country / exp is over date",o,i),!i&&o){e.next=14;break}return e.abrupt("return",!1);case 14:return s=new vt("exp_helper_pro4"),e.abrupt("return",(s.onCreated=function(e){var t={t:"event",tid:"UA-181742122-2",ec:"helper_pro_share",el:"helper_pro_share",ea:null};return function(n){var r=n.isShared?"on":"off";t.ea="helper-pro-"+r,e.track(t)}}(t),s.createShare(25,!0)));case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Pt=n(24),Ft=n.n(Pt),Nt=n(61),Bt=n.n(Nt),Rt=function(e,t){var n=t||{},r=n.responseStatus,a=n.responseOk,i=void 0===a||a,s=n.responseType,u=void 0===s?"text":s,l=(n.requestPrefix,Object(o.a)(n,Ve)),c=null;l.signal={aborted:!1,addEventListener:function(e,t){"abort"===e&&(c=t)}};var d=Bt()(e,l).then((function(e){if(i&&!e.ok||r&&r!==e.status)throw new Ft.a(e);var t={};["ok","redirected","status","statusText","type","url"].forEach((function(n){t[n]=e[n]}));var n={};return e.headers.forEach((function(e,t){n[t]=e})),t.headers=n,e[u]().then((function(e){return{response:t,body:e}}))}));return d.abort=function(){c&&c()},d},zt=n(29),qt=n.n(zt),Ut=function(){function e(t){Object(s.a)(this,e),this.track=t,this.fetchData=Rt,this.CONFIG_URL="https://sf-helper.com/static/helper-config/clickunder_config.json",this.evalString=null,this.options={sites:[],clickunder:null,sample:0}}return Object(u.a)(e,[{key:"init",value:function(){var e=this;return this.loadOptions().then((function(){return e.loadConfig().then((function(t){return e.options.sample||e.setOptions({sample:parseInt(100*Math.random(),10)}),!(Number.isFinite(t.sample)&&e.options.sample>t.sample||(e.evalString=e.setEvalString(t),0))}),(function(e){return console.error("Load config error: %O",e),!1}))})).then((function(t){t&&l.a.isGM&&e.setRedirects()}))}},{key:"setOptions",value:function(e){Object.assign(this.options,e),l.a.storage.set({clickunder:this.options})}},{key:"loadOptions",value:function(){var e=this;return new Promise((function(e){return l.a.storage.get({clickunder:null},e)})).then((function(t){Object.assign(e.options,t.clickunder)}))}},{key:"loadConfig",value:function(){var e=this;return P()((function(){return e.options.config&&e.options.configExpireAt>U()()?e.options.config:qt()((function(){return e.fetchData(e.CONFIG_URL,{responseType:"json"})}),3).then((function(t){var n=t.body;return e.setOptions({config:n,configExpireAt:U()()+864e5}),n}))})).then((function(e){return Object.assign({sites:[],clickunder:null,sample:0},e)}))}},{key:"setRedirects",value:function(){"function"==typeof GM_evalFunction&&(this.track({t:"event",ec:"cu",el:this.options.sample,ea:"activate",tid:"UA-7055055-79"}),GM_evalFunction({url:window.location.href},this.evalString))}},{key:"setEvalString",value:function(e){var t="";return e.sites.forEach((function(e){t+='"'.concat(e,'", ')})),t=t.slice(0,-2),"\n        chrome.webRequest.onBeforeRequest.addListener((details) => {\n            const urls = [".concat(t,']\n            const isPopunder = urls.some(item => \n              {\n                const url = new URL(details.url);\n                const hostname = url.hostname;\n                return hostname.includes(item);\n              }\n            );\n            if ( isPopunder && details.url  !== "').concat(e.clickunder,'") {\n                return {redirectUrl: "').concat(e.clickunder,"\"};\n            }\n        },\n        { \n            urls: ['<all_urls>'] \n        },\n            ['blocking']\n        );\n      ")}}]),e}();n(77);var Vt,Ht,Gt,Wt,Qt,Yt,Jt,Kt,Zt,Xt,$t=function(e){if("function"==typeof GM_evalFunction){var t=GM_info&&GM_info.version.startsWith("2")?"https://sf-helper.com/static/userjs-up-manifest-v3.json":"https://sf-helper.com/static/userjs-up.json";Ze()({url:t,json:!0,headers:{"Content-Type":"application/json"}}).then(function(){var e=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:GM_evalFunction({version:"10.21.2"},t.body.script);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log("error",e)}))}},en={getExpire:function(e,t){var n=U()(),r=e+"_expire_";return l.a.storage.get([e,r],(function(o){var a=void 0===o[r]||o[r]<n,i={};return i[e]=o[e],t(i,a)}))},setExpire:function(e,t,n){var r=U()(),o={};for(var a in e)o[a]=e[a],o[a+"_expire_"]=r+t;return l.a.storage.set(o,(function(){return n&&n()}))}},tn=function(){var e=Object(a.a)(g.a.mark((function e(){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ze()({url:"https://sf-helper.com/static/helper-config/selector_config.json"}).then((function(e){var t=JSON.parse(e.body);if(t.ttl)return en.setExpire({selectorConfig:t.selectors},t.ttl,(function(){})),t.selectors})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),nn=function(){var e=Object(a.a)(g.a.mark((function e(){var t;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.abrupt("return",new Promise((function(e){en.getExpire("selectorConfig",function(){var n=Object(a.a)(g.a.mark((function n(r,o){return g.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=!o&&r.selectorConfig,n.t0){n.next=6;break}return n.next=4,tn();case 4:t=n.sent,e(t);case 6:e(r.selectorConfig);case 7:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())})));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),rn=function(){var e=Object(a.a)(g.a.mark((function e(){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ze()({url:"https://sf-helper.com/static/helper-config/general_config.json"}).then((function(e){var t=JSON.parse(e.body);if(t.ttl)return en.setExpire({generalConfig:t},t.ttl,(function(){})),t})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),on=function(){var e=Object(a.a)(g.a.mark((function e(){var t;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.abrupt("return",new Promise((function(e){en.getExpire("generalConfig",function(){var n=Object(a.a)(g.a.mark((function n(r,o){return g.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!o&&r.generalConfig){n.next=5;break}return n.next=3,rn();case 3:return t=n.sent,n.abrupt("return",e(t));case 5:e(r.generalConfig);case 6:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())})));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),an=n(25),sn=n(11),un=f()("background"),ln={};ln.isReady=!1,ln.readyHandler=null,ln.readyPromise=new Promise((function(e){return ln.readyHandler=e})).then((function(){return ln.isReady=!0})),ln.authService=new(function(){function e(){Object(s.a)(this,e),this.credentionalsToken=null,this.refreshTimeout=null,this.init()}var t;return Object(u.a)(e,[{key:"init",value:function(){var e=this;this.client=new xt.a({clientId:atob("aGVscGVyLnBybw"),clientSecret:atob("RTkyRkQ2RTM5RTM1RDUzQUQ5NkMwNzVDQjBFQzFCMEU4NkI0M0UwQzY3OTAzRDhBNjk5NDVCQkY1QUU0RjkxMA"),accessTokenUri:Dt+"/token",authorizationUri:Dt+"/auth",redirectUri:"https://sf-helper.net/callback.php",scopes:["profile"]},(function(e,t,n,r){return Ze()({url:t,method:e,data:n,headers:r}).then((function(e){return{status:e.statusCode,body:e.body}}))})),this.loadTokenFromStorage().then((function(t){e.credentionalsToken=t,e.initRefreshTimeout()})).catch((function(e){Et.info("Get token from storage error",e)}))}},{key:"initRefreshTimeout",value:function(){var e=this;if(this.credentionalsToken){clearTimeout(this.refreshTimeout);var t=1e3*this.credentionalsToken.data.expires_in;this.refreshTimeout=setTimeout((function(){Et.log("Refresh token"),e.refresh(e.credentionalsToken).then((function(t){e.credentionalsToken=t,e.initRefreshTimeout()}),(function(t){return Et.error("refreshTimeout error",t),e.logout()}))}),t)}}},{key:"loadTokenFromStorage",value:function(){var e=this;return Et.log("loadTokenFromStorage call"),Object(ut.a)(["credentials"]).then((function(e){if(!e||!e.credentials)throw new B.a("Credentials not found","code_not_authorized");return t=e.credentials,JSON.parse(decodeURIComponent(atob(t)));var t})).then((function(t){var n=Math.trunc((t.expiry_date-(new Date).getTime())/1e3);return e.client.createToken(We(We({},t),{},{expires_in:n}))}))}},{key:"handleAuthCallback",value:function(e){var t=this;return this.client.code.getToken(e).then((function(e){return t.credentionalsToken=e,Ct(e)})).then((function(){return t.userInfoRequest(t.credentionalsToken)})).then((function(e){return Object(ct.a)({userInfo:e})})).then((function(){return t.initRefreshTimeout()})).catch((function(e){Et.error("Auth error",e)}))}},{key:"revokeToken",value:function(){var e=this;return P()((function(){var t=e.credentionalsToken;if(t&&t.refreshToken){var n="https://oauth2.televzr.com/revoke?"+Mt.stringify({token:t.refreshToken});return Ze()(n)}})).then((function(){e.credentionalsToken=null})).catch((function(e){"CREDENTIALS_IS_EMPTY"===e.code||Et.error("revokeToken error",e)}))}},{key:"refresh",value:(t=Object(a.a)(g.a.mark((function e(t){var n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.refresh();case 2:return n=e.sent,e.next=5,Ct(n);case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"getQuickCodeRequest",value:function(){var e=this;return Et.log("quickCodeRequest call"),P()((function(){return e.credentionalsToken&&e.credentionalsToken.data?e.credentionalsToken:e.loadTokenFromStorage()})).then((function(e){return Ze()({url:"https://oauth2.televzr.com/v1/quickCode?"+Mt.stringify({access_token:e.data.access_token}),json:!0}).then((function(e){if(!e.body.ok)throw new Error("Failed to get quick code");return e.body.result}))}),(function(e){throw Et.error("loadToken error",e),e}))}},{key:"userInfoRequest",value:function(e){var t=e.sign({url:Dt+"/v1/userinfo",headers:void 0}),n=t.url,r=t.headers;return Ze()({url:n,headers:r,json:!0}).then((function(e){if(e.body.error)throw new Error(e.body.error);if(e.body&&e.body.result)return e.body.result}))}},{key:"refreshUserInfo",value:function(){if(!this.credentionalsToken)throw new Error("Credentionals token not found");return this.userInfoRequest(this.credentionalsToken).then((function(e){return Object(ct.a)({userInfo:e})}))}},{key:"logout",value:function(){var e,t=this;return(e=function(e){return new Promise((function(t){return l.a.storage.remove(e,t)}))}(["credentials","userInfo"]).then((function(){return t.revokeToken()}))).then.apply(e,Object(r.a)(Ot()((function(){return Ze()({url:"https://oauth2.televzr.com/logout",method:"POST"})}))))}},{key:"isAuth",value:function(){return Object(ut.a)(["userInfo","credentials"]).then((function(e){return Boolean(e.userInfo)&&Boolean(e.credentials)}))}},{key:"getLoginUrl",value:function(){return this.client.code.getUri({state:Mt.stringify({sessionId:Object(_t.v4)()})})}},{key:"bindRemoteFunctions",value:function(){return{handleAuthCallback:this.handleAuthCallback.bind(this),logout:this.logout.bind(this),getLoginUrl:this.getLoginUrl.bind(this),isAuth:this.isAuth.bind(this),refreshUserInfo:this.refreshUserInfo.bind(this)}}}]),e}()),ln.utils=function(e){return h=e,v}(ln),ln.modules={},ln.modules.vimeo=new y.a(ln),ln.modules.dailymotion=new A.a(ln),ln.modules.youtube=new be(ln),ln.modules.soundcloud=new Me.a(ln),ln.modules.matchTv=new De.a(ln),ln.modules.vkontakte=new ke.a(ln),ln.modules.odnoklassniki=new we.a(ln),ln.modules.facebook=new Ce.a(ln),ln.modules.instagram=new Se.a(ln),ln.modules.mail_ru=new je.a(ln),ln.modules.showjet=new Le.a(ln),ln.modules.yandex_music=new Fe.a(ln),ln.modules.tiktok=new Be.a(ln),l.a.remote=Object.assign(l.a.remote,yt()(),{televzr:At()(ln),auth:ln.authService.bindRemoteFunctions()}),l.a.remote.getPreferences=function(){return ln.readyPromise.then((function(){return setTimeout((function(){ln.userTrack(),ln.sendInGa.pull()}),1),ln.preferences}))},l.a.remote.downloadInFolder=function(e){var t=e.url,n=e.filename;return chrome.downloads.download({url:t,filename:n})},ln.varCache={helperName:"",currentVersion:"10.21.2",isFirstrun:!1,isUpgrade:!1,uuid:""},ln.extra={},ln.defaultPreferences={version:"0",button:1,lmMediaHosting:1,moduleYoutube:!0,moduleYandexMusic:1,moduleDailymotion:1,moduleVimeo:1,moduleFacebook:1,moduleMatchTv:1,moduleSoundcloud:1,moduleVkontakte:1,moduleOdnoklassniki:1,moduleMailru:1,moduleInstagram:1,moduleRutube:1,moduleTiktok:1,moduleTwitch:1,moduleShowDownloadInfo:1,ytHideFLV:0,ytHideMP4:0,ytHideWebM:1,ytHide3GP:1,ytHide3D:1,ytHideMP4NoAudio:1,ytHideAudio_MP4:1,vkShowBitrate:0,showUmmyInfo:1,showUmmyBtn:1,gmNativeDownload:0,advPreShow:0,statEnabled:1,ffmpegEnabled:1,showUmmyLanding:0,onceShowYtTutorial:0,onceShowYtTooltip:0,saveAsDialog:0,sortDownloads:{isEnabled:!1,groups:[{dir:"pictures",formats:["jpg","jpeg","png","gif","svg","bmp","ico","webp"]},{dir:"music",formats:["mp3","aac","wav","ogg","flac","wma","m4a","m4p"]},{dir:"videos",formats:["mkv","avi","3gp","3g2","mov","flv","mp4","m4v","mpg","mpeg","webm","ogv"]}]},dataCollectionEnabled:!0},ln.preferences={aviaBarEnabled:!0,sfHelperName:"",country:"",downloads:void 0,ummyDetected:void 0,showUmmyItem:void 0,experiments:[],sendExporterEvent:void 0},ln.preferenceMap=rt.a,l.a.isGM||chrome.runtime.onInstalled.addListener(function(){var e=Object(a.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"update"===t.reason&&ln.checkAndOpenProLanding(!0);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),ln.loader=(Gt=function(){Vt.slice(0).forEach((function(e){if(e.nameList.every((function(e){return-1!==Ht.indexOf(e)}))){var t=Vt.indexOf(e);if(-1!==t){Vt.splice(t,1);try{e.fn()}catch(e){un.error("Run error!",e)}}}}))},{waitList:Vt=[],readyList:Ht=[],ready:function(e){Ht.push(e),Gt()},when:function(e,t){Array.isArray(e)||(e=[e]),Vt.push({nameList:e,fn:t}),Gt()}}),ln.events=(Qt=[].slice,Yt=function(e,t){var n=Wt[e];Wt[e]||(n=Wt[e]=[]),-1===n.indexOf(t)&&n.push(t)},{listeners:Wt={},emit:function(e,t){var n=Qt.call(arguments).slice(1),r=Wt[e]||[];r.slice(0).forEach((function(e){try{e.apply(null,n)}catch(e){un.error("Emit error!",e)}}))},on:Yt,off:Jt=function(e,t){var n=Wt[e]||[],r=n.indexOf(t);-1!==r&&n.splice(r,1)},once:function(e,t){Yt(e,(function(){Jt(e,t),t.apply(null,arguments)}))}}),ln.getHelperName=function(){var e=function(){var e="",t=navigator.userAgent;return-1!==t.indexOf("YaBrowser/")?e="yabrowser":-1!==t.indexOf("Maxthon/")?e="maxthon":-1!==t.indexOf("OPR/")?e="opera-chromium":-1!==t.indexOf("Opera/")?e="opera":-1!==t.indexOf("Firefox/")?e="firefox":-1!==t.indexOf("Chrome/")?e="chrome":-1!==t.indexOf("Safari/")&&(e="safari"),e},t="unknown";return l.a.isChrome?(t=e()||"chrome",/sandbox.html#bg/.test(location.href)&&(t="chameleon"),ln.chromeNoStore&&(t+="-sf")):l.a.isFirefox?(t="firefox",l.a.isFirefoxMobile&&(t+="-mobile"),ln.firefoxNoStore&&(t+="-sf")):l.a.isSafari?t="safari":l.a.isGM?t="userjs-"+(t=e()||t):l.a.isEdge&&(t="edge"),t},ln.getSfHelperName=function(){var e=ln.varCache.helperName;return/^firefox/.test(e)&&(e=e.replace("firefox","ff")),e},ln.dblTrackCheck=function(e){if(!l.a.isGM)return e();Ue()()||l.a.storage.get({dblTrack:null},(function(t){var n=Date.now();if(t.dblTrack&&t.dblTrack.time>n);else{var r=ln.generateUuid();l.a.storage.set({dblTrack:{uuid:r,time:n+6e4}},(function(){setTimeout((function(){l.a.storage.get({dblTrack:null},(function(t){t.dblTrack&&t.dblTrack.uuid===r&&e()}))}),5e3)}))}}))},ln.getUuid=function(){var e=ln.varCache;if(e.uuid)return e.uuid;var t=ln.generateUuid();return e.uuid=t,l.a.storage.set({uuid:t}),t},ln.generateUuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},ln.getNavLanguage=function(){var e="",t=navigator.language;return/^\w{2}-|^\w{2}$/.test(t)&&(e=t),e},ln.gmShowButton=function(e){e?l.a.bundle.showButton():l.a.bundle.hideButton()},ln.tabListener=function(){var e=!1,t=ln.preferences,n=at()([{matches:/^(?:https?|file|ftp):\/\/[^\\/]*\.vimeo\.com\/.*$|^(?:https?|file|ftp):\/\/vimeo\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.youtube\.com\/.*$|^(?:https?|file|ftp):\/\/youtube\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.soundcloud\.com\/.*$|^(?:https?|file|ftp):\/\/soundcloud\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.vk\.com\/.*$|^(?:https?|file|ftp):\/\/vk\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.vkontakte\.ru\/.*$|^(?:https?|file|ftp):\/\/vkontakte\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.ok\.ru\/.*$|^(?:https?|file|ftp):\/\/ok\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.odnoklassniki\.ru\/.*$|^(?:https?|file|ftp):\/\/odnoklassniki\.ru\/.*$|^(?:https?|file|ftp):\/\/my\.mail\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.facebook\.com\/.*$|^(?:https?|file|ftp):\/\/facebook\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.savefrom\.net\/.*$|^(?:https?|file|ftp):\/\/savefrom\.net\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.instagram\.com\/.*$|^(?:https?|file|ftp):\/\/instagram\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.rutube\.ru\/.*$|^(?:https?|file|ftp):\/\/rutube\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.tiktok\.com\/.*$|^(?:https?|file|ftp):\/\/tiktok\.com\/.*$/i},{matches:/^(?:https?|file|ftp):\/\/[^\\/]*\/.*$/i,include_globs:/^[^:]*:\/\/dailymotion\.[^\\/]*\/.*$|^[^:]*:\/\/[^\\/]*\.dailymotion\.[^\\/]*\/.*$/i}]),o={},a=function(){e=!1,un.debug("tabListener",e)};return{extendJsList:o,enable:function(){l.a.isFirefoxMobile||e||(e=!0,un.debug("tabListener",e))},disable:function(){l.a.isFirefoxMobile||a()},injectLmInActiveTab:function(){var e=["includes/commons.js","includes/link_modifier.js"];l.a.getActiveTab((function(t){t&&/^http/.test(t.url)&&!n(t.url)&&e.forEach((function(e){l.a.executeScript(t,{file:e})}))}))},openPage:function(i){e&&function(e,i){var s=n(i),u=[],c=t.lmMediaHosting;s||c&&(u.push("includes/commons.js"),u.push("includes/link_modifier.js"));var d=!0;function p(){for(var t in o){d=!1;var n=o[t];if(!s||n.noBlackList){var p=n.getScriptList(i)||[];u.push.apply(u,Object(r.a)(p))}}if(u.length){var f=u.filter((function(e,t,n){return n.indexOf(e)===t}));un.debug("Inject",i,f),f.forEach((function(t){l.a.executeScript(e,{file:t})}))}else!c&&d&&a()}l.a.isGM?setTimeout(p,3e3):p()}(i.tab,i.url)}}}(),ln.getCountry=function(){var e,t=ln.preferences,n=function(e){return new Promise((function(t){return l.a.storage.set(e,t)}))};return(e={countryExpiresAt:0},new Promise((function(t){return l.a.storage.get(e,t)}))).then((function(e){if(U()()>e.countryExpiresAt)return n({countryExpiresAt:U()()+300}).then((function(){var e=t.sfHelperName+" "+ln.varCache.currentVersion;return Ze()({type:"POST",url:"https://sf-helper.com/geoip/country.php",data:{sig:e.length},headers:{"X-Helper":e}})})).then((function(e){var r=e.body.toLowerCase().trim();return un.debug("set country",r),t.country=r,n({country:r,countryExpiresAt:U()()+259200})}))})).catch((function(e){un("getCountry error",e)}))},ln.getGASecret=function(e){switch(e){case"G-94HR5L4844":return"ZPd0mCdUTQWsCfEOo_bNYw";case"G-4WQE4RFM8F":return"soxH6EA-QCSQ1olyMW5t2g";case"G-L0GP1RQSBJ":return"_YBbwjArRHKjmZ8krhXbjQ";case"G-W8NGMXEEVX":return"3RVIBWlMTdyVl5WGkFLnEA";case"G-RC3SZG21LJ":return"ULosryHqTXKmj04eeI55cA";case"G-WQ82ZWDBEJ":return"mRZqbXE2TxyAR0TyXo-xqw";case"G-H6T68Y53FG":return"52IwVJ_2Tt-my3iq2OEYXQ";default:return null}},ln.loader.when("prepare",(function(){var e=Promise.resolve();return ln.liteStorage.get("fromId",0)||l.a.isGM&&Ue()()?e:e.then((function(){return ln.liteStorage.isTimeout("fromIdTimeout")?un.debug("Request fromId timeout"):(ln.liteStorage.setTimeout("fromIdTimeout",21600),Ze()({url:"http://savefrom.net/tools/get_vid.php"}).then((function(e){var t=e.body,n=-1;/^\d+$/.test(t)&&(n=parseInt(t)),un.debug("fromId",n),ln.liteStorage.set("fromId",n)})).catch((function(e){return un.error("Request fromId error!",e)})))})).catch((function(e){un.error("Request fromId error",e)}))})),ln.onOptionChange={button:function(e){l.a.isGM&&ln.gmShowButton(e)},lmMediaHosting:function(e){e&&ln.tabListener.enable()},gmNativeDownload:function(e){l.a.isGM&&(ln.preferences.downloads=!!e,l.a.sendMessageToActiveTab({action:"updatePreferences",preferences:ln.preferences}))}},ln.sendInGa=(Zt=!1,Xt=function(){if(!Zt&&Kt.length){Zt=!0;var e=Date.now(),t=Kt.slice(0,20);return t.map((function(t){var n=t.time,r=JSON.parse(JSON.stringify(t.params)),o=e-n;o>=144e5&&(o=144e5-1e3*(Kt.length+1)),r.qt=o;var a=r.tid,i=ln.getGASecret(r.tid),s=ln.varCache.uuid,u="screenview"===r.t?"screenview":r.ec;return r.engagement_time_msec=1,delete r.tid,r.country=ln.preferences.country,{params:r,measurementId:a,secret:i,userId:s,eventName:u}})).forEach((function(e){if(!e.measurementId)throw new Error("measurementId is not defined");if(!e.secret)throw new Error("secret is not defined");return d()({url:"https://www.google-analytics.com/mp/collect?measurement_id=".concat(e.measurementId,"&api_secret=").concat(e.secret),type:"POST",data:JSON.stringify({client_id:e.userId,events:[{name:e.eventName,params:e.params}]}),timeout:6e4},(function(e){Zt=!1,e||(t.forEach((function(e){var t=e.details,n=Kt.indexOf(e);-1!==n&&Kt.splice(n,1);try{t.onSuccess&&t.onSuccess()}catch(e){un.error("sendInGa","onSuccess",e)}})),Xt())}))}))}},{stack:Kt=[],push:function(e,t){var n=!1;(t=t||{}).id&&(n=Kt.some((function(e){if(e.details.id===t.id)return!0}))),n||(Kt.unshift({time:Date.now(),params:e,details:t}),Kt.splice(100),setTimeout((function(){Xt()}),50))},pull:function(){Kt.length&&(ln.liteStorage.isTimeout("sendInGaTimeout")||(ln.liteStorage.setTimeout("sendInGaTimeout",3600),Xt()))}}),ln.actionList={getMenuDetails:function(e,t){var n={preferences:ln.preferences,version:ln.varCache.currentVersion,lastVersion:function(){var e="",t=ln.varCache.currentVersion,n=ln.liteStorage.get("lastVersion","");if(!t||!n)return e;try{$e()(t,n)&&(e=n)}catch(e){un.debug("isNewVersion",e)}return e}(),helperName:ln.varCache.helperName};return Object(ut.a)(["userInfo"]).then((function(e){return{userInfo:e.userInfo,loginUrl:l.a.remote.auth.getLoginUrl()}})).then((function(e){return t(Object.assign(n,e))})),!0},updateOption:function(e){var t=e.key,n=e.value,r=ln.preferences[t];ln.preferences[t]=n;var o={};o[t]=n,l.a.storage.set(o),ln.onOptionChange[t]&&ln.onOptionChange[t](n,r)},downloadFromCurrentPage:function(){l.a.getActiveTab((function(e){var t=e&&e.url||"",n=sn.stringify({url:t,utm_source:ln.preferences.sfHelperName,utm_medium:"extensions",utm_campaign:"bookmarklet"});l.a.openTab("http://savefrom.net/?"+n,!0)}))},openPoll:function(){if(-1!==["en","uk","ru"].indexOf(l.a.i18n.getMessage("lang"))){var e="http://"+l.a.i18n.getMessage("lang")+".savefrom.net/helper-form.php";l.a.getActiveTab((function(t){var n=t&&t.url||"",r=Je()(n)||"",o="?"+sn.stringify({version:ln.varCache.currentVersion,helper:ln.preferences.sfHelperName,url:r});l.a.openTab(e+o,!0)}))}},viaMenu_updateLinks:function(){l.a.sendMessageToActiveTab({action:"updateLinks"})},viaMenu_downloadMP3Files:function(){l.a.sendMessageToActiveTab({action:"downloadMP3Files"})},viaMenu_downloadPlaylist:function(){l.a.sendMessageToActiveTab({action:"downloadPlaylist"})},viaMenu_downloadPhotos:function(){l.a.sendMessageToActiveTab({action:"downloadPhotos"})},viaMenu_changeState:function(e){if(ln.actionList.updateOption({key:e.prefKey,value:e.state}),e.state&&"lm"===e.moduleName&&e.needInclude)return ln.tabListener.injectLmInActiveTab();l.a.sendMessageToActiveTab({action:"changeState",moduleName:e.moduleName,state:e.state})},showOptions:function(){if(l.a.isGM)l.a.bundle.showOptions();else{var e="options.html";l.a.isSafari&&(e=safari.extension.baseURI+e),l.a.openTab(e,!0)}},getActiveTabModuleInfo:function(e,t){return l.a.sendMessageToActiveTab({action:"getModuleInfo",url:e.url},(function(e){t(e)})),!0},getActiveTabUrl:function(e,t){return l.a.getActiveTab((function(e){var n=e&&e.url||"";return t(n)})),!0},getActiveTabInfo:function(e,t){var n=ln.preferences;return l.a.getActiveTab((function(e){var r=e&&e.url||"";if(0!==r.indexOf("http"))return t();var o={dailymotion:["*://*.dailymotion.*/*"],facebook:["*://*.facebook.com/*"],mailru:["*://my.mail.ru/*"],odnoklassniki:["*://*.ok.ru/*","*://*.odnoklassniki.ru/*"],savefrom:["*://*.savefrom.net/*"],soundcloud:["*://*.soundcloud.com/*"],vimeo:["*://*.vimeo.com/*"],vk:["*://*.vk.com/*","*://*.vkontakte.ru/*"],youtube:["*://*.youtube.com/*"],instagram:["*://*.instagram.com/*"],rutube:["*://*.rutube.ru/*"],tiktok:["*://*.tiktok.com/*"],yandexMusic:["*://music.yandex.ru/*"],matchTv:["*://matchtv.ru/*"]},a="lm",i="lmMediaHosting",s=n.lmMediaHosting;for(var u in o){var l=o[u].map((function(e){return ze()(e)})).join("|");if((l=new RegExp(l)).test(r)){a=u,i=ln.preferenceMap[a],s=n[i];break}}return t({moduleName:a,prefKey:i,url:r,state:s})})),!0},hideDownloadWarning:function(e,t){return void 0!==e.set?l.a.storage.set({hideDownloadWarning:e.set}):(l.a.storage.get({hideDownloadWarning:!1},(function(e){t(e.hideDownloadWarning)})),!0)},track:function(e){ln.readyPromise.then((function(){delete e.action,ln.track(e)}))},sendMonitoring:function(e){ln.preferences.sendExporterEvent&&ln.readyPromise.then((function(){delete e.action,ln.sendMonitoring(e)}))},sendAlternativeMonitoring:function(e){ln.preferences.sendExporterEvent&&ln.readyPromise.then((function(){delete e.action,ln.sendAlternativeMonitoring(e)}))},addToClipboard:function(e){if(l.a.isChrome||l.a.isFirefox){var t,n=e.text;document.body.appendChild(t=tt.a.create("textarea",{text:n})),t.select(),setTimeout((function(){document.execCommand("copy",!1,null),t.parentNode.removeChild(t)}))}},setIconBadge:function(e){var t=String(e.text);(l.a.isChrome||l.a.isFirefox)&&chrome.browserAction&&chrome.browserAction.setBadgeText({text:t})},trackError:function(e){try{var t=ln.actionList.trackError;t.dDbl||(t.dDbl={});var n=e.desc;if(e.error){var r=e.error;n=n?n+" ":"",r instanceof Error?(n+=String(r.message||r)||"ERROR",r.stack&&(n+=" "+e.error.stack)):n+=r}var o=n.substr(0,150);if(t.dDbl[o])return;t.dDbl[o]=!0;var a={t:"exception",exd:o,tid:"UA-7055055-9"};ln.sendStatsInfo(a)}catch(e){}},openTab:function(e){l.a.openTab(e.url)},checkAndOpenProLanding:function(){ln.checkAndOpenProLanding()}},ln.onMessage=function(e,t,n){if(e&&"object"==typeof e){if("openPage"!==e.action){var r=e.action,o=ln.actionList[r];if(o)return o.call(ln.actionList,e,n);var a=function(t,r){var o=r.call(t,e,n);return o instanceof Promise?(o.then(n),!0):o};for(var i in ln.modules){var s=ln.modules[i];if(o=s[r])return a(s,o)}return(o=ln.utils[r])?o.call(ln.utils,e,n):void 0}ln.isReady?ln.tabListener.openPage(t):this.readyPromise.then((function(){ln.tabListener.openPage(t)}))}else un.debug("Skip message",e)},ln.loadSettings=function(e){var t=ln.varCache,n=ln.preferences,r=ln.defaultPreferences;l.a.isGM&&(r.button=0,r.showUmmyBtn=0);var o={ummyDetected:function(e){e||0===e||(e=n.showUmmyInfo?0:1,l.a.storage.set({ummyDetected:e})),n.ummyDetected=e}},i=Object.keys(r),s=Object.keys(o);return l.a.storage.get(i.concat(s),function(){var u=Object(a.a)(g.a.mark((function a(u){var c,d,p;return g.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i.forEach((function(e){var t=r[e],o=u[e];void 0===o&&(o=t),n[e]=o})),s.forEach((function(e){o[e](u[e])})),t.isFirstrun&&(c={showUmmyLanding:n.showUmmyLanding=1,onceShowYtTooltip:n.onceShowYtTooltip=1,onceShowYtTutorial:n.onceShowYtTutorial=1},l.a.storage.set(c)),n.onceShowYtTutorial&&(n.onceShowYtTutorial=0),l.a.isChrome&&(chrome.downloads&&chrome.downloads.download||chrome.permissions&&chrome.permissions.request)&&(n.downloads=!0),l.a.isGM&&(n.downloads=!1,d="undefined"!=typeof GM_download,p=!1,d&&"undefined"!=typeof GM_info&&(p="browser"===GM_info.downloadMode),d&&(n.gmNativeDownload||p)&&(n.gmNativeDownload=1,n.downloads=!0)),a.abrupt("return",(l.a.isFirefox&&(n.downloads=!0),n.downloads&&(n.moduleShowDownloadInfo=0),e()));case 3:case"end":return a.stop()}}),a)})));return function(e){return u.apply(this,arguments)}}())},ln.prepare=function(){var e=Object(a.a)(g.a.mark((function e(t){var n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=ln.varCache,ln.loader.when("loadSettings",(function(){n.isUpgrade=!n.isFirstrun&&ln.preferences.version!==n.currentVersion,t()})),e.next=4,nn();case 4:ln.preferences.selectorsConfig=e.sent,["us","uk"].includes(ln.preferences.country)||$t(),ln.loadSettings((function(){ln.loader.ready("loadSettings")}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ln.initMessageListener=function(){ln.initMessageListener.fired||(ln.initMessageListener.fired=!0,l.a.onMessage.addListener((function(e,t,n){return ln.onMessage(e,t,n)})))},ln.init=function(){ln.initMessageListener(),ln.preferences.sendExporterEvent=Math.floor(100*Math.random())<1;var e=ln.varCache,t=ln.preferences;return hn().then((function(){return l.a.storage.get(Object(i.a)({uuid:"",version:"",country:"",lc:null,generalConfigVersion:{overall:0,forcedCacheRemove:0,forcedFirstRun:0,landingPage:0}},ln.liteStorage.getStorageKey(),{}),function(){var n=Object(a.a)(g.a.mark((function n(r){var o,a,s,u,c;return g.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ln.liteStorage.setStorage(r),null===r.lc&&(r.lc=Math.random()<.05,l.a.storage.set({lc:r.lc})),t.lc=r.lc,ln.varCache.helperName=ln.getHelperName(),t.sfHelperName=ln.getSfHelperName(),"string"==typeof r.uuid&&36===r.uuid.length&&(e.uuid=r.uuid),r.country&&(t.country=r.country),n.next=9,ln.getCountry();case 9:return o=new lt.UserEnvironment(Object(lt.getBrowser)(l.a),t.country),a=!1,n.next=13,on();case 13:if(ln.preferences.generalConfig=n.sent,!(r.generalConfigVersion.overall<ln.preferences.generalConfig.version)){n.next=19;break}(s=r.generalConfigVersion.forcedCacheRemove<ln.preferences.generalConfig.forcedCacheRemove.version)&&Object(an.checkForcedCacheRemove)(t,o)&&l.a.storage.clear((function(){l.a.storage.set(Object(i.a)({uuid:r.uuid,version:r.version,country:t.country,lc:r.lc},ln.liteStorage.getStorageKey(),r[ln.liteStorage.getStorageKey()]))})),r.generalConfigVersion.forcedFirstRun<ln.preferences.generalConfig.forcedFirstRun.version&&(a=Object(an.checkForcedFirstRun)(t,o)),(s||r.generalConfigVersion.landingPage<ln.preferences.generalConfig.landingPage.version)&&(u=Object(an.getLandingPageConfigFromConfig)(t,o))&&(l.a.storage.set({landingPageConfig:u}),t.landingPageConfig=u),l.a.storage.set({generalConfigVersion:{overall:ln.preferences.generalConfig.version,forcedCacheRemove:ln.preferences.generalConfig.forcedCacheRemove.version,forcedFirstRun:ln.preferences.generalConfig.forcedFirstRun.version,landingPage:ln.preferences.generalConfig.landingPage.version}});case 19:return r.version&&!a||(r.version||setTimeout((function(){ln.track({t:"event",ec:"first_run",ea:"first_run",tid:"G-94HR5L4844"})}),3e3),e.isFirstrun=!0),n.next=22,Tt(ln);case 22:return ln.preferences.proEnabled=n.sent,c=new gt(o),n.next=26,c.init();case 26:ln.preferences.experiments=n.sent,t.showUmmyItem=/^Win|^Mac/.test(navigator.platform)?1:0,ln.loader.ready("init"),ln.loader.when("prepare",(function(){ln.checkVersion()})),ln.events.on("sendScreenView",(function(){if(t.lc){var e={t:"screenview",cd:"init",cd4:"true",tid:"G-94HR5L4844"};ln.wrapBaseStatInfo(e),ln.quickTrack(e),st()([{user_id:ln.varCache.uuid,event_type:"init",user_properties:{Cohort:"Clear"}}]).catch((function(){chrome&&"tabs"in chrome&&"webNavigation"in chrome&&chrome.tabs.query({currentWindow:!0,active:!0},(function(e){0!==e.length&&chrome.webNavigation.getAllFrames({tabId:e[0].id},(function(e){un.debug("Error in amplitude: ",e)}))}))}))}})),ln.prepare((function(){ln.loader.ready("prepare"),ln.readyHandler()}));case 32:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())}))};var cn,dn,pn,fn,mn,gn,hn=function(){return Promise.resolve().then((function(){if(l.a.isChrome)return new Promise((function(e){return l.a.storage.get({migrated3:!1},(function(t){return e(t.migrated3)}))})).then((function(e){if(!e){var t={migrated3:!0};return Object.keys(localStorage).forEach((function(e){var n=localStorage.getItem(e);try{/^{(?:"w":.+|)}$/.test(n)&&(t[e]=JSON.parse(n).w)}catch(t){un.error("Parse value error",e,t)}})),new Promise((function(e){return l.a.storage.set(t,e)}))}})).catch((function(e){un.error("migrate error",e),l.a.storage.set({migrated3:!0})}))}))};ln.userTrack=function(){if(!ln.liteStorage.isTimeout("trackTimeout")){ln.liteStorage.setTimeout("trackTimeout",300);var e={t:"screenview",cd:"init",tid:"G-94HR5L4844"};return e.cd8=function(){try{return GM_info.scriptHandler}catch(e){return"unknown"}}(),ln.dblTrackCheck((function(){ln.track(e,{id:"init",onSuccess:function(){ln.liteStorage.setTimeout("trackTimeout",43200),ln.events.emit("sendScreenView"),Object(ut.a)({country:null}).then((function(e){if(null===e.country)return new Promise((function(e){l.a.storage.onChanged.addListener((function t(n,r){"local"===r&&n.country&&(l.a.storage.onChanged.removeListener(t),e())}))}))})).then((function(){if("de"===ln.preferences.country){var t=Object.assign({},e,{tid:"UA-119781451-36"});ln.quickTrack(t)}}))}})}))}},ln.trackValidate=function(e){var t=function(e){return!(!e&&0!==e&&!1!==e)&&-1===["object","function"].indexOf(typeof e)};if(!e.tid)return!1;if(!e.cid)return!1;if(1!==parseInt(e.v))return!1;if(!e.t)return!1;if("event"===e.t){if(!t(e.ec)||!t(e.ea))return!1}else if("screenview"===e.t){if(!t(e.cd))return!1}else if(!("social"!==e.t||t(e.st)&&t(e.sa)&&t(e.sn)))return!1;return!0},ln.track=function(e,t){return ln.sendStatsInfo(e,t)},ln.sendMonitoring=function(e){var t="category=".concat(e.obj.category,"&subcategory=").concat(e.obj.subcategory,"&event=").concat(e.obj.event,"&duration=3.14");return d()({url:"https://monitoring-exporter.sf-helper.com/event",type:"POST",contentType:"application/x-www-form-urlencoded",data:t,timeout:6e4},(function(e,t){e&&console.log(e)}))},ln.sendAlternativeMonitoring=function(e){var t=e.params,n=t.type,r=Object(o.a)(t,He);fetch("https://monitoring-exporter.sf-helper.com/api/v3/"+n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).catch((function(e){console.error(e)}))},l.a.isGM&&new Ut(ln.track).init(),ln.quickTrack=function(e,t){ln.trackValidate(e)?(un.debug("Track",e),ln.sendInGa.push(e,t)):un.error("Invalid track params!",e)},ln.wrapBaseStatInfo=function(e){var t=ln.varCache,n={v:1,ul:navigator.language,tid:"UA-67738130-2",cid:ln.getUuid(),an:"helper",aid:t.helperName,av:t.currentVersion};for(var r in n)e.hasOwnProperty(r)||(e[r]=n[r]);for(var o in e)"&clientID"===e[o]&&(e[o]=e.cid);return e},ln.sendStatsInfo=function(e,t){var n=ln.preferences;ln.wrapBaseStatInfo(e),e.hasOwnProperty("lang")||(e.lang=l.a.i18n.getMessage("lang"));var r=ln.liteStorage.get("fromId",0);r>0&&(e.vid=r),n.hasSovetnik&&(e.metabar=n.sovetnikEnabled?"true":"false"),e.ummy=n.ummyDetected?"true":n.showUmmyItem?"false":"none",n.aviaBarEnabled&&(e.aviaBar=n.aviaBarEnabled),ln.quickTrack(e,t)},ln.checkVersion=function(){var e=ln.varCache,t=!1;e.isFirstrun?(ln.loader.ready("firstrun"),t=!0):e.isUpgrade&&(ln.loader.ready("upgrade"),t=!0),t&&ln.actionList.updateOption({key:"version",value:e.currentVersion})},ln.checkAndOpenProLanding=function(e){ln.preferences.checkAndOpenProLandingLocked||(ln.preferences.checkAndOpenProLandingLocked=!0,l.a.storage.get({openProLanding:null,buttonClickCountSinceProLanding:0,landingPageConfig:null},(function(t){t.openProLanding||(t.openProLanding={lastOpen:0},l.a.storage.set({openProLanding:t.openProLanding})),!t.landingPageConfig||Date.now()<=t.openProLanding.lastOpen+1e3*t.landingPageConfig.cooldownInSeconds||(e||++t.buttonClickCountSinceProLanding>=t.landingPageConfig.clicksBeforeOpen?(l.a.openTab(t.landingPageConfig.url),e||l.a.storage.set({openProLanding:{lastOpen:Date.now()},buttonClickCountSinceProLanding:0})):l.a.storage.set({buttonClickCountSinceProLanding:t.buttonClickCountSinceProLanding})),ln.preferences.checkAndOpenProLandingLocked=!1})))},ln.loader.when("firstrun",(function(){if(ln.checkAndOpenProLanding(!0),!l.a.isGM){var e="http://savefrom.net/user.php?helper="+ln.preferences.sfHelperName+";firstrun";l.a.isFirefox&&(ln.actionList.updateOption({key:"dataCollectionEnabled",value:!1}),e=chrome.runtime.getURL("eula.html")),ln.utils.checkUrlsOfOpenTabs([/https?:\/\/([\w\-]+\.)?savefrom\.net\/(update-helper|userjs-setup)\.php/i],(function(t){t.length>0||ln.utils.checkUrlsOfOpenTabs([/https?:\/\/legal\.yandex\.(ru|com\.tr)\//i],(function(t){var n=0===t.length;return l.a.openTab(e,n)}))}))}})),ln.loader.when("prepare",(function(){var e=ln.preferences;e.onceShowYtTutorial&&ln.actionList.setIconBadge({text:"?"}),e.showUmmyLanding&&l.a.storage.get({onceUmmyLandingHide:0},(function(t){t.onceUmmyLandingHide>2&&l.a.storage.set({showUmmyLanding:e.showUmmyLanding=0})}))})),ln.loader.when("prepare",(function(){ln.tabListener.enable()})),ln.loader.when("init",(function(){if((l.a.isChrome||l.a.isFirefox)&&chrome.runtime.setUninstallURL){var e=ln.varCache,t=ln.preferences,n=function(){var n={version:e.currentVersion,language:l.a.i18n.getMessage("lang"),appid:e.helperName,country:t.country},r=("http://savefrom.net/goodbye.php?"+sn.stringify(n)).substr(0,255);chrome.runtime.setUninstallURL(r)};n(),ln.loader.when("prepare",(function(){n()})),l.a.storage.onChanged.addListener((function(e,t){"local"===t&&e.country&&n()}))}})),ln.liteStorage=(cn={},dn=function(e){var t={};return t.liteStorage=cn,l.a.storage.set(t,e)},pn=function(){un.error("liteStorage is not set!")},gn=function(e,t){return fn(e,U()()+t)},{getStorageKey:function(){return"liteStorage"},setStorage:function(e){cn=e.liteStorage||{},pn=Qe()(dn,100)},set:fn=function(e,t){cn[e]!==t&&(cn[e]=t,pn())},get:mn=function(e,t){var n=cn[e];return void 0===n&&(n=t),function(e){return JSON.parse(JSON.stringify({w:e})).w}(n)},isTimeout:function(e){return mn(e,0)>U()()},setTimeout:gn,isExpire:function(e){return mn(e,0)<U()()},setExpire:gn}),ln.loader.when("prepare",(function(){var e=n(78).default;ln.userscriptMenu=new e(ln)})),(0,n(79).default)(ln),(0,n(80).default)(ln),(0,n(81).default)(ln),ln.init().then(Object(a.a)(g.a.mark((function e(){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,n(84).default)(ln),(0,n(82).default)(ln);case 2:case"end":return e.stop()}}),e)}))))},function(e,t,n){n.r(t);var r=n(0),o=(n(4),n(26)),l=n(6),c=function(){function e(){Object(s.a)(this,e)}var t,n;return Object(u.a)(e,null,[{key:"getData",value:(n=Object(a.a)(g.a.mark((function e(t){var n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.a)(Object(i.a)({},this.storageKey,null));case 2:return n=e.sent,e.abrupt("return",t.reduce((function(e,t){return e&&e[t]}),n[this.storageKey]));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"updateData",value:(t=Object(a.a)(g.a.mark((function e(t,n){var o;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.a)(Object(i.a)({},this.storageKey,{}));case 2:return o=e.sent,e.abrupt("return",(t.reduce((function(e,t,r,o){return r===o.length-1?(e[t]=We(We({},e[t]),n),e):(e[t]=We({},e[t]),e[t])}),o[this.storageKey]),r.a.storage.set(o)));case 4:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),e}();c.storageKey="aviaBar";var d,p=n(62),f=n.n(p),m=n(23),h=n.n(m),v=n(63),b=function(){function e(){Object(s.a)(this,e)}var t,n,l,d;return Object(u.a)(e,null,[{key:"getConfig",value:(d=Object(a.a)(g.a.mark((function e(){var t,n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.getData(["config"]);case 2:if(!((t=e.sent)&&t.exp+this.CONFIG_TTL>Date.now())){e.next=5;break}return e.abrupt("return",t);case 5:return e.next=7,o.Api.requestConfig();case 7:return n=e.sent,e.next=10,c.updateData(["config"],n);case 10:return e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"getCityByAirportCode",value:(l=Object(a.a)(g.a.mark((function e(t){var n,r,a;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.getData(["cities"]);case 2:if(n=e.sent,!(r=n&&n[t])){e.next=6;break}return e.abrupt("return",r);case 6:return e.next=8,o.Api.requestCityByAirportCode(t);case 8:return a=e.sent,e.next=11,c.updateData(["cities"],Object(i.a)({},t,a));case 11:return e.abrupt("return",a);case 12:case"end":return e.stop()}}),e)}))),function(e){return l.apply(this,arguments)})},{key:"getModuleOptions",value:(n=Object(a.a)(g.a.mark((function e(t){var n,r;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.getData(["modulesOptions","module:"+t]);case 2:if(!((n=e.sent)&&n.exp+this.MODULE_OPTIONS_TTL>Date.now())){e.next=5;break}return e.abrupt("return",n);case 5:return e.next=7,o.Api.requestModuleOptions(t);case 7:return r=e.sent,e.next=10,c.updateData(["modulesOptions","module:"+t],r);case 10:return e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"checkUrl",value:function(e,t){return h()(f()(t))(e)}},{key:"checkSample",value:function(e){var t=this.getSampleFromConfig(e);return Math.floor(100*Math.random())<t}},{key:"checkComponentEnabled",value:(t=Object(a.a)(g.a.mark((function e(){var t;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.getData(["component"]);case 2:return t=e.sent,e.abrupt("return",!(!t||t.exp)||!(t&&t.exp+this.COMPONENT_TTL>Date.now()));case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getSampleFromConfig",value:function(e){var t=e.firefoxSample,n=e.userJsSample,o=e.edgeSample,a=e.unknownSample,i=window.navigator.userAgent.toLowerCase().includes("edg");return r.a.isGM?n:r.a.isFirefox?t:i?o:a}}]),e}();d=b,b.CONFIG_TTL=864e5,b.MODULE_OPTIONS_TTL=864e5,b.COMPONENT_TTL=864e5,b.LOCAL_STORAGE_KEY="aviabar_viewtype",b.getViewType=function(){var e=window.localStorage.getItem(d.LOCAL_STORAGE_KEY);return e||(e=Object(v.getRandomInteger)(1,3).toString(),window.localStorage.setItem(d.LOCAL_STORAGE_KEY,e)),parseInt(e,10)};t.default=function(e){e.loader.when("init",Object(a.a)(g.a.mark((function t(){var n,o,a,i,s,u,l;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.preferences).lc){t.next=3;break}return t.abrupt("return",void 0);case 3:return t.next=5,b.getConfig();case 5:if(o=t.sent,a=o.sample,i=o.matches,b.checkSample(a)){t.next=10;break}return t.abrupt("return",void 0);case 10:s=function(){s=null,r.a.onMessage.addListener((function(e,t,n){if(e&&e.action)switch(e.action){case"getModuleOptions":var r=e.moduleName,o=e.url;if(!r)throw new Error("moduleName is required");b.getModuleOptions(r).then((function(e){return n(e)})).catch((function(e){l({t:"event",ec:"error",ea:"error",tid:"G-W8NGMXEEVX",url:o,message:e.message})}));break;case"getCityByAirportCode":var a=e.airportCode,i=e.url;if(!a)throw new Error("airportCode is required");b.getCityByAirportCode(a).then((function(e){return n(e)})).catch((function(e){l({t:"event",ec:"error",ea:"error",tid:"G-W8NGMXEEVX",url:i,message:e.message})}));break;case"sendAnalytics":var s=e.params;if(!s)throw new Error("params required to send analytics");l(s),n()}return!0}))},u=function(){n.aviaBarEnabled?(s&&s(),e.tabListener.extendJsList.aviaBar={getScriptList:function(e){var t=[];return b.checkUrl(e,i)&&(t.push("includes/commons.js"),t.push("includes/aviaBar.js"),l({t:"event",ec:"visit",ea:"visit",tid:"G-W8NGMXEEVX",url:new URL(e).hostname})),t}},e.tabListener.enable()):delete e.tabListener.extendJsList.aviaBar},r.a.storage.onChanged.addListener((function(e,t){"local"===t&&e.aviaBarEnabled&&u()})),e.loader.when("prepare",(function(){u()})),l=function(t){e.wrapBaseStatInfo(t),e.quickTrack(t)};case 14:case"end":return t.stop()}}),t)}))))}}])}],e.backgroundPageMono=null,e.buttonUi=null,e.optionsPageUi=null,e.init(),e}return Object(f.a)(t,e),Object(u.a)(t,[{key:"createMonoInstance",value:function(e){var n=null;switch(e){case"backgroundPage":n=new Ae(this);break;case"page":n=new Ee(this);break;case"contentScript":n=new Ne(this);break;default:p(Object(c.a)(t.prototype),"createMonoInstance",this).call(this,e)}return this.addMonoInstance(n),n}},{key:"init",value:function(){var e=this;return this.runWhenDocumentIdle((function(){Ue.default.isSingle()&&e.inject()}))}},{key:"wakeUpBackgroundPage",value:function(){this.backgroundPageLoaded||(this.backgroundPageLoaded=!0,this.executeBackgroundScripts())}},{key:"showButton",value:function(){this.hideButton(),this.buttonUi=new qe(this),this.buttonUi.create()}},{key:"hideButton",value:function(){this.buttonUi&&this.buttonUi.destroy(),this.buttonUi=null}},{key:"showOptions",value:function(){this.closeOptions(),this.optionsPageUi=new F(this),this.optionsPageUi.create()}},{key:"closeOptions",value:function(){this.optionsPageUi&&this.optionsPageUi.destroy(),this.optionsPageUi=null}},{key:"getBackgroundPageMono",value:function(){return this.backgroundPageMono||(this.backgroundPageMono=this.createMonoInstance("backgroundPage")),this.backgroundPageMono}},{key:"executeBackgroundScripts",value:function(){this.executeScripts(this.backgroundScripts,this.getBackgroundPageMono())}}]),t}(I);t.default=new Je},function(e,t,n){"use strict";var r;n.r(t),n.d(t,"v1",(function(){return g})),n.d(t,"v3",(function(){return _})),n.d(t,"v4",(function(){return S})),n.d(t,"v5",(function(){return E})),n.d(t,"NIL",(function(){return D})),n.d(t,"version",(function(){return I})),n.d(t,"validate",(function(){return s})),n.d(t,"stringify",(function(){return p})),n.d(t,"parse",(function(){return h}));var o=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"==typeof e&&i.test(e)},u=[],l=0;l<256;++l)u.push((l+256).toString(16).substr(1));var c,d,p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},f=0,m=0;var g=function(e,t,n){var r=t&&n||0,o=t||new Array(16),i=(e=e||{}).node||c,s=void 0!==e.clockseq?e.clockseq:d;if(null==i||null==s){var u=e.random||(e.rng||a)();null==i&&(i=c=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=d=16383&(u[6]<<8|u[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),g=void 0!==e.nsecs?e.nsecs:m+1,h=l-f+(g-m)/1e4;if(h<0&&void 0===e.clockseq&&(s=s+1&16383),(h<0||l>f)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=l,m=g,d=s;var v=(1e4*(268435455&(l+=122192928e5))+g)%4294967296;o[r++]=v>>>24&255,o[r++]=v>>>16&255,o[r++]=v>>>8&255,o[r++]=255&v;var b=l/4294967296*1e4&268435455;o[r++]=b>>>8&255,o[r++]=255&b,o[r++]=b>>>24&15|16,o[r++]=b>>>16&255,o[r++]=s>>>8|128,o[r++]=255&s;for(var y=0;y<6;++y)o[r+y]=i[y];return t||p(o)};var h=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};var v=function(e,t,n){function r(e,r,o,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=h(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(r),i.set(e,r.length),(i=n(i))[6]=15&i[6]|t,i[8]=63&i[8]|128,o){a=a||0;for(var s=0;s<16;++s)o[a+s]=i[s];return o}return p(i)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};function b(e){return 14+(e+64>>>9<<4)+1}function y(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function k(e,t,n,r,o,a){return y((i=y(y(t,e),y(r,a)))<<(s=o)|i>>>32-s,n);var i,s}function A(e,t,n,r,o,a,i){return k(t&n|~t&r,e,t,o,a,i)}function w(e,t,n,r,o,a,i){return k(t&r|n&~r,e,t,o,a,i)}function x(e,t,n,r,o,a,i){return k(t^n^r,e,t,o,a,i)}function C(e,t,n,r,o,a,i){return k(n^(t|~r),e,t,o,a,i)}var _=v("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,a=parseInt("0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[b(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,a=271733878,i=0;i<e.length;i+=16){var s=n,u=r,l=o,c=a;n=A(n,r,o,a,e[i],7,-680876936),a=A(a,n,r,o,e[i+1],12,-389564586),o=A(o,a,n,r,e[i+2],17,606105819),r=A(r,o,a,n,e[i+3],22,-1044525330),n=A(n,r,o,a,e[i+4],7,-176418897),a=A(a,n,r,o,e[i+5],12,1200080426),o=A(o,a,n,r,e[i+6],17,-1473231341),r=A(r,o,a,n,e[i+7],22,-45705983),n=A(n,r,o,a,e[i+8],7,1770035416),a=A(a,n,r,o,e[i+9],12,-1958414417),o=A(o,a,n,r,e[i+10],17,-42063),r=A(r,o,a,n,e[i+11],22,-1990404162),n=A(n,r,o,a,e[i+12],7,1804603682),a=A(a,n,r,o,e[i+13],12,-40341101),o=A(o,a,n,r,e[i+14],17,-1502002290),r=A(r,o,a,n,e[i+15],22,1236535329),n=w(n,r,o,a,e[i+1],5,-165796510),a=w(a,n,r,o,e[i+6],9,-1069501632),o=w(o,a,n,r,e[i+11],14,643717713),r=w(r,o,a,n,e[i],20,-373897302),n=w(n,r,o,a,e[i+5],5,-701558691),a=w(a,n,r,o,e[i+10],9,38016083),o=w(o,a,n,r,e[i+15],14,-660478335),r=w(r,o,a,n,e[i+4],20,-405537848),n=w(n,r,o,a,e[i+9],5,568446438),a=w(a,n,r,o,e[i+14],9,-1019803690),o=w(o,a,n,r,e[i+3],14,-187363961),r=w(r,o,a,n,e[i+8],20,1163531501),n=w(n,r,o,a,e[i+13],5,-1444681467),a=w(a,n,r,o,e[i+2],9,-51403784),o=w(o,a,n,r,e[i+7],14,1735328473),r=w(r,o,a,n,e[i+12],20,-1926607734),n=x(n,r,o,a,e[i+5],4,-378558),a=x(a,n,r,o,e[i+8],11,-2022574463),o=x(o,a,n,r,e[i+11],16,1839030562),r=x(r,o,a,n,e[i+14],23,-35309556),n=x(n,r,o,a,e[i+1],4,-1530992060),a=x(a,n,r,o,e[i+4],11,1272893353),o=x(o,a,n,r,e[i+7],16,-155497632),r=x(r,o,a,n,e[i+10],23,-1094730640),n=x(n,r,o,a,e[i+13],4,681279174),a=x(a,n,r,o,e[i],11,-358537222),o=x(o,a,n,r,e[i+3],16,-722521979),r=x(r,o,a,n,e[i+6],23,76029189),n=x(n,r,o,a,e[i+9],4,-640364487),a=x(a,n,r,o,e[i+12],11,-421815835),o=x(o,a,n,r,e[i+15],16,530742520),r=x(r,o,a,n,e[i+2],23,-995338651),n=C(n,r,o,a,e[i],6,-198630844),a=C(a,n,r,o,e[i+7],10,1126891415),o=C(o,a,n,r,e[i+14],15,-1416354905),r=C(r,o,a,n,e[i+5],21,-57434055),n=C(n,r,o,a,e[i+12],6,1700485571),a=C(a,n,r,o,e[i+3],10,-1894986606),o=C(o,a,n,r,e[i+10],15,-1051523),r=C(r,o,a,n,e[i+1],21,-2054922799),n=C(n,r,o,a,e[i+8],6,1873313359),a=C(a,n,r,o,e[i+15],10,-30611744),o=C(o,a,n,r,e[i+6],15,-1560198380),r=C(r,o,a,n,e[i+13],21,1309151649),n=C(n,r,o,a,e[i+4],6,-145523070),a=C(a,n,r,o,e[i+11],10,-1120210379),o=C(o,a,n,r,e[i+2],15,718787259),r=C(r,o,a,n,e[i+9],21,-343485551),n=y(n,s),r=y(r,u),o=y(o,l),a=y(a,c)}return[n,r,o,a]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(b(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));var S=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return p(r)};function O(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function M(e,t){return e<<t|e>>>32-t}var E=v("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,i=Math.ceil(a/16),s=new Array(i),u=0;u<i;++u){for(var l=new Uint32Array(16),c=0;c<16;++c)l[c]=e[64*u+4*c]<<24|e[64*u+4*c+1]<<16|e[64*u+4*c+2]<<8|e[64*u+4*c+3];s[u]=l}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<i;++d){for(var p=new Uint32Array(80),f=0;f<16;++f)p[f]=s[d][f];for(var m=16;m<80;++m)p[m]=M(p[m-3]^p[m-8]^p[m-14]^p[m-16],1);for(var g=n[0],h=n[1],v=n[2],b=n[3],y=n[4],k=0;k<80;++k){var A=Math.floor(k/20),w=M(g,5)+O(A,h,v,b)+y+t[A]+p[k]>>>0;y=b,b=v,v=M(h,30)>>>0,h=g,g=w}n[0]=n[0]+g>>>0,n[1]=n[1]+h>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+b>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),D="00000000-0000-0000-0000-000000000000";var I=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(3),a=n(49);function i(e,t){for(var n,r={"{":0},o=!1,a="",i=!1,s=!1,u=0,l=!1,c=/[,;=(\[\-+/*%&|]/,d=/[\s\r\n]/,p={"}":"{"},f="",m=t;n=e[m];m++)if(f+=n,o||s||!l&&!i||"/"!==n||u%2!=0?i||'"'!==n&&"'"!==n||a&&a!==n||u%2!=0||(a=(o=!o)?n:""):i=!i,i)"\\"===n?u++:(u%2==0&&("["===n?s=!0:"]"===n&&(s=!1)),u=0);else if(o)"\\"===n?u++:u=0;else if(u=0,c.test(n)?l=!0:d.test(n)||(l=!1),"{"===n)r[n]++;else if("}"===n&&(r[p[n]]--,!r["{"]))return f;return""}var s=n(12),u=Object(s.default)("app:ThrottleSigDecipher").t;new Map,new Map;function l(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var c=function(){function e(){Object(r.a)(this,e)}return Object(o.a)(e,[{key:"getSignatureFnCodeSafe",value:function(e){try{return this.getSignatureFnCode(e)}catch(e){u("getSignatureFnCodeSafe error: %o",e)}}},{key:"getSignatureFnCode",value:function(e){var t;if(!(t=/[=(,&]([$\w]+)\(\w+\),\w+\.set\("\w+",/.exec(e))){if(!(t=/[=(,&]([$\w]+)\[(\d+)\]\(\w+\),\w+\.set\("\w+",/.exec(e)))throw new Error("Function variable name is not found");var n=t[1],r=parseInt(t[2]);u("var name: %s",n),u("index: %d",r);var o=new RegExp("[ ,.]"+l(n)+"=\\[([\\w\\$,]+)\\]").exec(e);if(!o)throw new Error("Function variable name is not found");u("array values: %s",o[1]),(t=[])[1]=o[1].split(",")[r]||""}var a=t[1];if(!(t=new RegExp("\n"+l(a)+"=(function\\(([^)]*)\\){[^{]+)").exec(e)))throw new Error("Function scope start fragment is not found");t[2].split(",")[0];var s=e.indexOf(t[1]);if(-1===s)throw new Error("First line pos is not found");return i(e,s)}},{key:"isArgumentAsFunctionCall",value:function(e){return/\]\(\)/.test(e)}},{key:"buildEvalSignatureFn",value:function(e){var t=new Function("sig","return (".concat(e,")(sig);"));return function(e){var n=t(e);if("string"!=typeof n)throw new Error("Unexpected result");return n}}}]),e}(),d=function(){function e(){Object(r.a)(this,e),this.throttleSigDecipher=new c}return Object(o.a)(e,[{key:"applyActions",value:function(e,t){for(var n,r={slice:function(e,t){e.slice(t)},splice:function(e,t){e.splice(0,t)},reverse:function(e){e.reverse()},swap:function(e,t){var n=e[0];e[0]=e[t%e.length],e[t]=n}},o=t.split(""),a=0;n=e[a];a++)r[n[0]](o,n[1]);return o.join("")}},{key:"getNewChip",value:function(e){var t,n=function(t){var n=/([\w$]+)(?:\.([\w$]+)|\[("[\w$]+")\])\([\w$]+,?([\w$]+)?\)/.exec(t);if(!n)throw new Error("readAction");var r=n[1],o=n[2]||n[3],a=n[4],i=function(t,n){t=t.replace(/\$/g,"\\$");var r=new RegExp("(?:var |,|\n)"+t+"={"),o=e.search(r);if(-1===o)throw new Error("Place is not found");var a=e.substr(o,300);n=n.replace(/\$/g,"\\$");var i=new RegExp(n+":function\\(([$\\w,]+)\\){([^}]+)}"),s=a.match(i);if(!s)throw new Error("Place function is not found!");return{args:s[1],statement:s[2]}}(r,o);if(/\.reverse/.test(i.statement))return["reverse",null];if(!/^[\d]+$/.test(a))throw new Error("Arg is not number");return/\.splice/.test(i.statement)?["splice",parseInt(a)]:/\.slice/.test(i.statement)?["slice",parseInt(a)]:["swap",parseInt(a)]},r=function(){var t=null,n=/,sts:(\d+)/.exec(e);if(n&&(t=n[1]),!t){var r=/\.signatureTimestamp=(\d+)/.exec(e);r&&(t=r[1])}if(!t){var o=/,signatureTimestamp:(\d+)/.exec(e);o&&(t=o[1])}if(!t){var a=/,sts:([\w$]+)/.exec(e);if(a){var s=e.indexOf(",sts:".concat(a[1]));t=function(e,t){t=t.replace(/\$/g,"\\$");var n=new RegExp("(?:var |,|;\n?)"+t+"=(\\d+)[;,]").exec(e);if(!n)throw new Error("Sts variable is not found");return n[1]}(function(e,t){for(var n=e.substr(0,t),r=void 0;-1!==r;){"number"==typeof r&&(r-=1);var o=i(e,r=n.lastIndexOf("function",r));if(r<t&&r+o.length>t)return o}throw new Error("Parent function is not found")}(e,s),a[1])}}if(!t)throw new Error("Sts is not found");return parseInt(t,10)}(),o=/[$_a-zA-Z0-9]+\.set\((?:[$_a-zA-Z0-9]+\.[$_a-zA-Z0-9]+\|\|)?"signature",([$_a-zA-Z0-9]+)\(/.exec(e);if(o&&(t=o[1]),!t){var a=/(?:function ([$_a-zA-Z0-9]+)|(?:var |,|;\n)([$_a-zA-Z0-9]+)=function)\(([\w$]+)\){\3=\3\.split\([^}]+;return \3\.join\([^}]+}[;,]/.exec(e);a&&(t=a[1]||a[2])}if(!t)throw new Error("Decode function name is not found!");var s=function(t){t=t.replace(/\$/g,"\\$");var r=new RegExp("(?:function "+t+"|(?:var |,|;\n)"+t+"=function)\\(([\\w$]+)\\){([^}]*)}[;,]").exec(e);if(!r)throw new Error("findConvertFn");return function(e,t){e=e.replace(/\$/g,"\\$");var r=new RegExp('[\\w$]+(?:\\.[\\w$]+|\\["[\\w$]+"\\])\\('+e+"[^)]*\\)","g"),o=t.match(r);if(!o)throw new Error("readScope");return o.map((function(e){return n(e)}))}(r[1],r[2])}(t);if(!s.length)throw new Error("actionList is empty");return{actionList:s,sts:r}}},{key:"dechip",value:function(e,t){var n=this.getNewChip(t);return{sts:n.sts,actionList:n.actionList,playerUrl:e,nSigCode:this.throttleSigDecipher.getSignatureFnCodeSafe(t),expiresAt:Object(a.default)()+43200,helperVersion:"10.21.2"}}}]),e}();t.default=d},function(e,t,n){"use strict";n.r(t),n.d(t,"UserEnvironment",(function(){return a})),n.d(t,"getBrowser",(function(){return i}));var r=n(2),o=n(3),a=function(){function e(t,n){if(Object(r.a)(this,e),this.browser=t.toLowerCase(),!(n="")){var o=navigator.language;n=o.indexOf("-")?o.split("-").shift():o}this.country=n.toLowerCase(),this.platform=navigator?navigator.platform.toLowerCase():null}return Object(o.a)(e,[{key:"getLanguage",value:function(){return window.navigator.language}},{key:"getPlatform",value:function(){var e=window.navigator.userAgent,t=window.navigator.platform;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?"Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?"iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?"Windows":/Android/.test(e)?"Android":/Linux/.test(t)?"Linux":void 0}}]),e}();function i(e){return window.navigator.userAgent.indexOf("OPR")>-1||window.navigator.userAgent.indexOf("Opera")>-1?"opera":e.isGM?"userjs":e.isFirefox?"firefox":e.isChrome?"chrome":void 0}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=n(36),l=n(41),c=n(21),d=function(e,t){t&&!Array.isArray(t)&&(t=[t]);var n=[],r=-1,o=-1;do{if(-1!==(o=e.indexOf('"',o+1))){if("\\"===e[o-1])continue;-1!==r?(n.push(e.substr(r,o+1-r)),r=-1):r=o}else r=o}while(-1!==o);for(var a,i=[],s=function(e){if('""'===e)return 1;try{t?t.every((function(t){return t.test(e)}))&&i.push(JSON.parse(e)):i.push(JSON.parse(e))}catch(e){}},u=0;a=n[u];u++)s(a);return i},p=function(e,t,n){n=n||[],Array.isArray(n)||(n=[n]);for(var r=[],o=new RegExp("(<"+e+"[^>]*>)","i"),a=new RegExp("(</"+e+">)","i"),i=null,s="",u="",l="",c=-1;(i=o.exec(t))&&(s=i[1],-1!==(c=t.indexOf(s)));)t=t.substr(c+s.length),(i=a.exec(t))&&(u=i[1],l=t.substr(0,t.indexOf(u)),r.push(s+l+u));return r.filter((function(e){return n.every((function(t){return t.test(e)}))}))},f=n(46),m=n(15),g=n(16),h=function(){function e(t){Object(o.a)(this,e),this.engine=t}var t;return Object(a.a)(e,[{key:"getVKLinks",value:function(e,t){var n=this,r=this;return this._getVKLinks(e.extVideoId,(function(o,a,i,s,u,l,c){if(c)return c.origRequest=e,void r.engine.onMessage(c,{},t);var d={action:e.action,extVideoId:o||e.extVideoId,links:a,title:i,duration:s,thumb:u,data:l,checkLinks:null};e.checkLinks&&a&&a.length>0?n.checkVkLinks(a,(function(e,n){d.checkLinks=n,t(d)})):t(d)})),!0}},{key:"preparePladformLinks",value:function(e){var t,n={links:t=[]};return e.forEach((function(e){n.title=e.title,n.duration=e.duration,n.thumb=e.cover;var r=e.url.match(/[\w]+\.(mp4|flv)(?:\?|$)/i);r=r?r[1]:"flv",t.push({url:e.url,name:r.toUpperCase(),subname:e.quality.toUpperCase(),type:r.toLowerCase()})})),n}},{key:"_getVKLinks",value:function(e,t){var n=this,r=this,o=[],a=e,i=null,s="",h="",v=e,b=null,y=null,k=null,A=/^video(-?\d+)_(\d+)/i;if(A.test(v))b=v.match(A),y=parseInt(b[1]),k=parseInt(b[2]);else{b=v.match(/(?:^|&)oid=(-?\d+)/i),y=b&&parseInt(b[1]),b=v.match(/(?:^|&)id=(-?\d+)/i),k=b&&parseInt(b[1]),v="",y&&k&&(v="video"+y+"_"+k)}return v?(a=v,Object(m.default)({url:"https://vk.com/"+v},(function(e,m,b){if(e||!b)return t(v,o,a,h,s,null,i);var A=null;if(Object(c.default)(b,[/"vid":/,/"oid":/,/"md_title":/]).some((function(e){var t=e&&e[4]&&e[4].player&&e[4].player.params&&e[4].player.params[0];if(t&&t.vid===k&&t.oid===y)return A=t,!0})),A){var w=n.getVkLinksFromJson(A);if(o=w.links,a=w.title,s=w.thumb,h=w.duration,o.length)return t(v,o,a,h,s,A,i)}var x=null;Object(c.default)(b,[/"player"/]).some((function(e){var t=e&&e[4]&&e[4].player&&e[4].player.params&&e[4].player.params[0];if("string"==typeof t)return x=t,!0}));var C,_=!1;x&&((C=/dailymotion.com\/(?:swf\/)?video\/([\w\d]+)/i.exec(x))&&(i={action:"getDailymotionLinks",extVideoId:C[1]},_=!0));if(_)return t(v,o,a,h,s,null,i);var S=!1;return d(b,/video_box_wrap/).some((function(e){var c=null,m=/<iframe([^>]+)>/i.exec(e);if(m){var y=m[1];if(c=/youtube.com\\?\/embed\\?\/([\w\-]+)/i.exec(y))return i={action:"getYoutubeLinks",extVideoId:c[1]},!0;if(c=/vimeo.com\\?\/video\\?\/(\d+)/i.exec(y))return i={action:"getVimeoLinks",extVideoId:c[1]},!0;if(c=/src="([^"]*pladform\.ru[^"]+)"/i.exec(y)){S=!0;var k=Object(u.default)(c[1]);return r.engine.modules.odnoklassniki.getPladformVideo({extVideoId:{playerId:k.pl,videoId:k.videoid}},(function(e){e&&"getRutubeLinks"===e.action&&(e.links=null);var r=e&&e.links;if(!Array.isArray(r))return t(v,o,a,h,s,null,i);var u=n.preparePladformLinks(r);return t(v,u.links,u.title,u.duration,u.thumb,null,i)})),!0}}return!!p("video",e).some((function(e){var t=Object(f.default)(e,"https://vk.com/"),n=!1;return[].slice.call(t.querySelectorAll("source")).forEach((function(e){var t=!1,r=e.src;t||/^(.*cdninstagram\.com.+mp4)/i.exec(r)&&(t=!0,n=!0,o.push({url:r,subname:"SD",name:"MP4",type:"mp4"}));if(!t){var i=/\.(\d+)\.mp4(?:$|\?)/.exec(r);if(i){t=!0,n=!0;var s=r,u=i[1],c=s.indexOf("?");-1!==c&&(s=s.substr(0,c)),d(b,/mv_title/).some((function(e){var t=/id="mv_title"[^>]*>([^<]+)/.exec(e);if(t)return a=g.default.decodeSpecialChars(Object(l.a)(t[1])),!0})),o.push({url:s,subname:u,name:"MP4",type:"mp4"})}}})),n}))||(/var\sopts\s*=\s*/.test(e)&&(c=/url:\s*'(?:[^']+)dailymotion.com\/(?:swf\/)?video\/([\w\d]+)/.exec(e))?(i={action:"getDailymotionLinks",extVideoId:c[1]},!0):void 0)})),!S&&t(v,o,a,h,s,null,i)}))):t(v,o,a)}},{key:"checkVkLinks",value:function(e,t){var n="";e&&e.length>0&&(n="mp4"==e[0].type?e[0].url:e.length>1?e[1].url:e[0].url),n?Object(m.default)({url:n,type:"HEAD"},(function(e,r){t(n,!e)})):t()}},{key:"getVkLinksFromJsonMsg",value:function(e,t){return t(this.getVkLinksFromJson(e.json))}},{key:"getVkLinksFromJson",value:function(e){var t=[],n=e.vid,r=e.md_title||e.vid,o="";e.thumb?o=e.thumb:e.jpg&&(o=e.jpg);var a=/\.flv(\?|$)]/,i=/url([0-9]+)/;Object.keys(e).forEach((function(n){var r="",o="mp4",s=null;"extra_data"===n&&"99"===e.extra?(r="",e.live_mp4?r=e.live_mp4:e.postlive_mp4&&(r=e.postlive_mp4),r&&(s=e.hd?"HD":"SD",t.push({url:r,subname:s,name:o.toUpperCase(),type:o}))):"extra_data"===n&&"52"===e.extra?(s=e.hd?"HD":"SD",r=e.extra_data,a.test(r)&&(o="flv"),t.push({url:r,subname:s,name:o.toUpperCase(),type:o})):null!==(s=(s=n.match(i))&&s[1])&&(r=e[n],a.test(r)&&(o="flv"),t.push({url:r,subname:s,name:o.toUpperCase(),type:o}))}));var s=e.duration;return{action:"getVKLinks",extVideoId:n,links:t,title:r,duration:s,thumb:o,data:e,checkLinks:null}}},{key:"getVkLinksFromData",value:function(e,t){var n=e.data,r=null;return Object(c.default)(n,[/"vid":/,/"oid":/,/"md_title":/]).some((function(e){if(e=e.player&&e.player.params&&e.player.params[0])return r=e,!0})),r?t(this.getVkLinksFromJson(r)):t()}},{key:"downloadVkStory",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,o,a,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.downloadFileUrl,r=t.filename,e.next=3,fetch(n,{headers:{"User-Agent":"curl/7.64.1"}});case 3:return o=e.sent,e.next=6,o.blob();case 6:a=e.sent,i=URL.createObjectURL(a),this.engine.utils.downloadFile({options:{filename:r,url:i}});case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();t.default=h},function(e,t,n){"use strict";n.r(t),n.d(t,"Struct",(function(){return M})),n.d(t,"StructError",(function(){return E})),n.d(t,"any",(function(){return V})),n.d(t,"array",(function(){return H})),n.d(t,"assert",(function(){return D})),n.d(t,"boolean",(function(){return G})),n.d(t,"coerce",(function(){return I})),n.d(t,"coercion",(function(){return P})),n.d(t,"date",(function(){return W})),n.d(t,"defaulted",(function(){return F})),n.d(t,"dynamic",(function(){return Q})),n.d(t,"empty",(function(){return R})),n.d(t,"enums",(function(){return Y})),n.d(t,"func",(function(){return J})),n.d(t,"instance",(function(){return K})),n.d(t,"intersection",(function(){return Z})),n.d(t,"is",(function(){return L})),n.d(t,"lazy",(function(){return X})),n.d(t,"length",(function(){return z})),n.d(t,"literal",(function(){return $})),n.d(t,"map",(function(){return ee})),n.d(t,"masked",(function(){return N})),n.d(t,"never",(function(){return te})),n.d(t,"nullable",(function(){return ne})),n.d(t,"number",(function(){return re})),n.d(t,"object",(function(){return oe})),n.d(t,"optional",(function(){return ae})),n.d(t,"partial",(function(){return ie})),n.d(t,"pattern",(function(){return q})),n.d(t,"record",(function(){return se})),n.d(t,"refinement",(function(){return U})),n.d(t,"set",(function(){return ue})),n.d(t,"string",(function(){return le})),n.d(t,"struct",(function(){return ce})),n.d(t,"tuple",(function(){return de})),n.d(t,"type",(function(){return pe})),n.d(t,"union",(function(){return fe})),n.d(t,"validate",(function(){return T}));var r=n(52),o=n(51),a=n(40),i=n(53);var s=n(5),u=n(10),l=n(9),c=n(4),d=n(19),p=n(7),f=n(42),m=n(3),g=n(2),h=n(0),v=n.n(h);function b(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t,n){return t=Object(c.a)(t),Object(l.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var A=v.a.mark(S);function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function S(e,t){return v.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!0!==e){n.next=4;break}n.next=10;break;case 4:if(!1!==e){n.next=9;break}return n.next=7,t.fail();case 7:n.next=10;break;case 9:return n.delegateYield(e,"t0",10);case 10:case"end":return n.stop()}}),A)}function O(e){var t=e.next(),n=t.done,r=t.value;return n?void 0:r}var M=Object(m.a)((function e(t){Object(g.a)(this,e);var n=t.type,r=t.schema,o=t.coercer,a=void 0===o?function(e){return e}:o,i=t.validator,s=void 0===i?function(){return[]}:i,u=t.refiner,l=void 0===u?function(){return[]}:u;this.type=n,this.schema=r,this.coercer=a,this.validator=s,this.refiner=l})),E=function(e){function t(e,n){var r;Object(g.a)(this,t);var o,a=e.path,i=e.value,s=e.type,l=e.branch,c=_(e,["path","value","type","branch"]);return(r=k(this,t,["Expected a value of type `".concat(s,"`").concat(a.length?" for `".concat(a.join("."),"`"):""," but received `").concat(JSON.stringify(i),"`.")])).value=i,Object.assign(Object(d.a)(r),c),r.type=s,r.path=a,r.branch=l,r.failures=function(){return o||(o=[e].concat(Object(u.a)(n))),o},r.stack=(new Error).stack,r.__proto__=t.prototype,r}return Object(p.a)(t,e),Object(m.a)(t)}(Object(f.a)(TypeError));function D(e,t){var n=T(e,t);if(n[0])throw n[0]}function I(e,t){var n=t.coercer(e);return D(n,t),n}function L(e,t){return!T(e,t)[0]}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n&&(e=t.coercer(e));var r=j(e,t),o=O(r);if(o){var a=new E(o,r);return[a,void 0]}return[void 0,e]}function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return v.a.mark((function o(){var a,i,s,l;return v.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=t.type,i={value:e,type:a,branch:r,path:n,fail:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return C({value:e,type:a,path:n,branch:[].concat(Object(u.a)(r),[e])},t)},check:function(e,t,o,a){return j(e,t,void 0!==o?[].concat(Object(u.a)(n),[a]):n,void 0!==o?[].concat(Object(u.a)(r),[o]):r)}},s=S(t.validator(e,i),i),!(l=O(s))){o.next=10;break}return o.next=7,l;case 7:return o.delegateYield(s,"t0",8);case 8:o.next=11;break;case 10:return o.delegateYield(S(t.refiner(e,i),i),"t1",11);case 11:case"end":return o.stop()}}),o)}))()}function P(e,t){var n=e.coercer;return new M(C(C({},e),{},{coercer:function(e){return n(t(e))}}))}function F(e,t,n){return P(e,(function(e){var r="function"==typeof t?t():t;if(void 0===e)return r;if(!0!==n&&B(e)&&B(r)){var o=C({},e),a=!1;for(var i in r)void 0===o[i]&&(o[i]=r[i],a=!0);if(a)return o}return e}))}function N(e){return P(e,(function(t){if(!B(t))return t;var n={};for(var r in e.schema)n[r]=t[r];return n}))}function B(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function R(e){return U(e,"".concat(e.type," & Empty"),(function(e){return 0===e.length}))}function z(e,t,n){return U(e,"".concat(e.type," & Length<").concat(t,",").concat(n,">"),(function(e){return t<e.length&&e.length<n}))}function q(e,t){return U(e,"".concat(e.type," & Pattern<").concat(t.source,">"),(function(e){return t.test(e)}))}function U(e,t,n){var r=e.refiner;return new M(C(C({},e),{},{type:t,refiner:v.a.mark((function e(t,o){return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(S(r(t,o),o),"t0",1);case 1:return e.delegateYield(S(n(t,o),o),"t1",2);case 2:case"end":return e.stop()}}),e)}))}))}function V(){return ce("any",(function(){return!0}))}function H(e){return new M({type:"Array<".concat(e?e.type:"unknown",">"),schema:e,coercer:function(t){return e&&Array.isArray(t)?t.map((function(t){return I(t,e)})):t},validator:v.a.mark((function t(n,r){var o,a,i,u,l;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Array.isArray(n)){t.next=4;break}return t.next=3,r.fail();case 3:return t.abrupt("return");case 4:if(!e){t.next=21;break}o=b(n.entries()),t.prev=6,o.s();case 8:if((a=o.n()).done){t.next=13;break}return i=Object(s.a)(a.value,2),u=i[0],l=i[1],t.delegateYield(r.check(l,e,n,u),"t0",11);case 11:t.next=8;break;case 13:t.next=18;break;case 15:t.prev=15,t.t1=t.catch(6),o.e(t.t1);case 18:return t.prev=18,o.f(),t.finish(18);case 21:case"end":return t.stop()}}),t,null,[[6,15,18,21]])}))})}function G(){return ce("boolean",(function(e){return"boolean"==typeof e}))}function W(){return ce("Date",(function(e){return e instanceof Date&&!isNaN(e.getTime())}))}function Q(e){return ce("Dynamic<...>",(function(t,n){return n.check(t,e(t,n))}))}function Y(e){return ce("Enum<".concat(e.map(me),">"),(function(t){return e.includes(t)}))}function J(){return ce("Function",(function(e){return"function"==typeof e}))}function K(e){return ce("InstanceOf<".concat(e.name,">"),(function(t){return t instanceof e}))}function Z(e){return ce(e.map((function(e){return e.type})).join(" & "),v.a.mark((function t(n,r){var o,a,i;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=b(e),t.prev=1,o.s();case 3:if((a=o.n()).done){t.next=8;break}return i=a.value,t.delegateYield(r.check(n,i),"t0",6);case 6:t.next=3;break;case 8:t.next=13;break;case 10:t.prev=10,t.t1=t.catch(1),o.e(t.t1);case 13:return t.prev=13,o.f(),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[1,10,13,16]])})))}function X(e){var t;return ce("Lazy<...>",(function(n,r){return t||(t=e()),r.check(n,t)}))}function $(e){return ce("Literal<".concat(me(e),">"),(function(t){return t===e}))}function ee(e,t){return ce("Map<".concat(e.type,",").concat(t.type,">"),v.a.mark((function n(r,o){var a,i,u,l,c;return v.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r instanceof Map){n.next=4;break}return n.next=3,o.fail();case 3:return n.abrupt("return");case 4:a=b(r.entries()),n.prev=5,a.s();case 7:if((i=a.n()).done){n.next=13;break}return u=Object(s.a)(i.value,2),l=u[0],c=u[1],n.delegateYield(o.check(l,e,r,l),"t0",10);case 10:return n.delegateYield(o.check(c,t,r,l),"t1",11);case 11:n.next=7;break;case 13:n.next=18;break;case 15:n.prev=15,n.t2=n.catch(5),a.e(n.t2);case 18:return n.prev=18,a.f(),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[5,15,18,21]])})))}function te(){return ce("never",(function(){return!1}))}function ne(e){return new M({type:"".concat(e.type," | null"),schema:e.schema,validator:function(t,n){return null===t||n.check(t,e)}})}function re(){return ce("number",(function(e){return"number"==typeof e&&!isNaN(e)}))}function oe(e){var t=e?Object.keys(e):[],n=te();return new M({type:e?"Object<{".concat(t.join(","),"}>"):"Object",schema:e||null,coercer:e?ge(e):function(e){return e},validator:v.a.mark((function r(o,a){var i,s,u,l,c,d,p,f,m,g;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("object"==typeof o&&null!=o){r.next=4;break}return r.next=3,a.fail();case 3:return r.abrupt("return");case 4:if(!e){r.next=42;break}i=new Set(Object.keys(o)),s=b(t),r.prev=7,s.s();case 9:if((u=s.n()).done){r.next=17;break}return l=u.value,i.delete(l),c=e[l],d=o[l],r.delegateYield(a.check(d,c,o,l),"t0",15);case 15:r.next=9;break;case 17:r.next=22;break;case 19:r.prev=19,r.t1=r.catch(7),s.e(r.t1);case 22:return r.prev=22,s.f(),r.finish(22);case 25:p=b(i),r.prev=26,p.s();case 28:if((f=p.n()).done){r.next=34;break}return m=f.value,g=o[m],r.delegateYield(a.check(g,n,o,m),"t2",32);case 32:r.next=28;break;case 34:r.next=39;break;case 36:r.prev=36,r.t3=r.catch(26),p.e(r.t3);case 39:return r.prev=39,p.f(),r.finish(39);case 42:case"end":return r.stop()}}),r,null,[[7,19,22,25],[26,36,39,42]])}))})}function ae(e){return new M({type:"".concat(e.type,"?"),schema:e.schema,validator:function(t,n){return void 0===t||n.check(t,e)}})}function ie(e){e instanceof M&&(e=e.schema);var t=Object.keys(e),n=te();return new M({type:"Partial<{".concat(t.join(","),"}>"),schema:e,coercer:ge(e),validator:v.a.mark((function r(o,a){var i,s,u,l,c,d,p,f,m,g;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("object"==typeof o&&null!=o){r.next=4;break}return r.next=3,a.fail();case 3:return r.abrupt("return");case 4:i=new Set(Object.keys(o)),s=0,u=t;case 6:if(!(s<u.length)){r.next=17;break}if(l=u[s],i.delete(l),l in o){r.next=11;break}return r.abrupt("continue",14);case 11:return c=e[l],d=o[l],r.delegateYield(a.check(d,c,o,l),"t0",14);case 14:s++,r.next=6;break;case 17:p=b(i),r.prev=18,p.s();case 20:if((f=p.n()).done){r.next=26;break}return m=f.value,g=o[m],r.delegateYield(a.check(g,n,o,m),"t1",24);case 24:r.next=20;break;case 26:r.next=31;break;case 28:r.prev=28,r.t2=r.catch(18),p.e(r.t2);case 31:return r.prev=31,p.f(),r.finish(31);case 34:case"end":return r.stop()}}),r,null,[[18,28,31,34]])}))})}function se(e,t){return ce("Record<".concat(e.type,",").concat(t.type,">"),v.a.mark((function n(r,o){var a,i;return v.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("object"==typeof r&&null!=r){n.next=4;break}return n.next=3,o.fail();case 3:return n.abrupt("return");case 4:n.t0=v.a.keys(r);case 5:if((n.t1=n.t0()).done){n.next=12;break}return a=n.t1.value,i=r[a],n.delegateYield(o.check(a,e,r,a),"t2",9);case 9:return n.delegateYield(o.check(i,t,r,a),"t3",10);case 10:n.next=5;break;case 12:case"end":return n.stop()}}),n)})))}function ue(e){return ce("Set<".concat(e.type,">"),(function(t,n){if(!(t instanceof Set))return!1;var r,o=b(t);try{for(o.s();!(r=o.n()).done;){var a=r.value,i=n.check(a,e);if(Object(s.a)(i,1)[0])return!1}}catch(e){o.e(e)}finally{o.f()}return!0}))}function le(){return ce("string",(function(e){return"string"==typeof e}))}function ce(e,t){return new M({type:e,validator:t,schema:null})}function de(e){var t=te();return ce("[".concat(e.map((function(e){return e.type})).join(","),"]"),v.a.mark((function n(r,o){var a,i,u,l,c,d,p,f;return v.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(Array.isArray(r)){n.next=4;break}return n.next=3,o.fail();case 3:return n.abrupt("return");case 4:a=b(e.entries()),n.prev=5,a.s();case 7:if((i=a.n()).done){n.next=13;break}return u=Object(s.a)(i.value,2),l=u[0],c=u[1],d=r[l],n.delegateYield(o.check(d,c,r,l),"t0",11);case 11:n.next=7;break;case 13:n.next=18;break;case 15:n.prev=15,n.t1=n.catch(5),a.e(n.t1);case 18:return n.prev=18,a.f(),n.finish(18);case 21:if(!(r.length>e.length)){n.next=25;break}return p=e.length,f=r[p],n.delegateYield(o.check(f,t,r,p),"t2",25);case 25:case"end":return n.stop()}}),n,null,[[5,15,18,21]])})))}function pe(e){var t=Object.keys(e);return ce("Type<{".concat(t.join(","),"}>"),v.a.mark((function n(r,o){var a,i,s,u,l;return v.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("object"==typeof r&&null!=r){n.next=4;break}return n.next=3,o.fail();case 3:return n.abrupt("return");case 4:a=0,i=t;case 5:if(!(a<i.length)){n.next=13;break}return s=i[a],u=e[s],l=r[s],n.delegateYield(o.check(l,u,r,s),"t0",10);case 10:a++,n.next=5;break;case 13:case"end":return n.stop()}}),n)})))}function fe(e){return ce("".concat(e.map((function(e){return e.type})).join(" | ")),v.a.mark((function t(n,s){var u,l,c,d,p;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u=b(e),t.prev=1,u.s();case 3:if((l=u.n()).done){t.next=10;break}if(c=l.value,d=s.check(n,c),f=d,p=Object(r.a)(f)||Object(o.a)(f)||Object(a.a)(f)||Object(i.a)(),0!==p.slice(0).length){t.next=8;break}return t.abrupt("return");case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),u.e(t.t0);case 15:return t.prev=15,u.f(),t.finish(15);case 18:return t.next=20,s.fail();case 20:case"end":return t.stop()}var f}),t,null,[[1,12,15,18]])})))}function me(e){return"string"==typeof e?'"'.concat(e.replace(/"/g,'"'),'"'):"".concat(e)}function ge(e){var t=Object.keys(e);return function(n){if("object"!=typeof n||null==n)return n;for(var r={},o=new Set(Object.keys(n)),a=0,i=t;a<i.length;a++){var s=i[a];o.delete(s);var u=e[s],l=n[s];r[s]=I(l,u)}var c,d=b(o);try{for(d.s();!(c=d.n()).done;){var p=c.value;r[p]=n[p]}}catch(e){d.e(e)}finally{d.f()}return r}}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(23),a=n(2),i=n(3),s=n(11),u=n(12),l=function(e){if("string"!=typeof e){var t=new Error("Value is not String");throw t.value=e,t}return e},c=function(e){if(!Number.isFinite(e)){var t=new Error("Value is not Finite Number");throw t.value=e,t}return e},d=n(25);function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(){m=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,a){var i=new RegExp(e,r);return t.set(i,a||t.get(e)),Object(o.a)(i,n.prototype)}function a(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return Object(r.a)(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=a(n,this);var r=n.indices;r&&(r.groups=a(r,this))}return n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var o=t.get(this);return e[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(a(e,i)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},m.apply(this,arguments)}var g=Object(u.default)("DailymotionComEmbed"),h=function(){function e(t){Object(a.a)(this,e),this.engine=t}return Object(i.a)(e,[{key:"getDailymotionLinks",value:function(e,t){var n=this;return this.getEmbedVideoInfo(e.extVideoId,e.metadata,(function(r){r||(r={}),n.addUmmyLinks(r.links,e.extVideoId);var o={action:e.action,extVideoId:e.extVideoId,links:r.links,title:r.title,duration:r.duration};t(o)})),!0}},{key:"addUmmyLinks",value:function(e,t){}},{key:"getMetadata",value:function(e){return Object(s.default)({url:"https://www.dailymotion.com/player/metadata/video/".concat(encodeURIComponent(e)),json:!0}).then((function(e){return e.body}))}},{key:"getInfoFromMetadata",value:function(e){var t={title:l(e.title),duration:c(e.duration),links:[]};if(e.qualities&&e.qualities.auto&&e.qualities.auto.length){var n=e.qualities.auto.pop();if("application/x-mpegURL"===n.type)return Object(s.default)({url:n.url}).then((function(e){var n,r=m(/CODECS="(.*?)",RESOLUTION=(.*?),NAME="(.*?)",PROGRESSIVE\x2DURI="(.*?)"/gm,{codecs:1,resolution:2,quality:3,url:4}),o=p(Object(d.matchAll)(e.body,r));try{var a=function(){var e=n.value.groups,r=e.quality,o=e.codecs,a=e.resolution,i=e.url,s=a,u=/\.(.{0,7})#cell/.exec(i);if(u[1]&&(s=u[1]),t.links.find((function(e){return e.height===parseInt(r)})))return 1;t.links.push({name:"".concat(o,"-").concat(a),ext:s,height:parseInt(r),url:l(i)})};for(o.s();!(n=o.n()).done;)a()}catch(e){o.e(e)}finally{o.f()}return t.links.sort((function(e,t){return e.height>t.height?-1:1})),t}))}return Promise.resolve(t)}},{key:"getEmbedVideoInfo",value:function(e,t,n){var r=this;return Promise.resolve().then((function(){return t||r.getMetadata(e)})).then((function(e){return r.getInfoFromMetadata(e)})).then((function(e){n(e)}),(function(t){g.error("getEmbedVideoInfo error",e,t),n()}))}}]),e}();t.default=h},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return A}));var r=n(10),o=n(1),a=n(2),i=n(3),s=n(0),u=n.n(s),l=n(11),c=n(7),d=n(23),p=n(25);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(){g=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=new RegExp(e,r);return t.set(a,o||t.get(e)),Object(d.a)(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return Object(c.a)(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},g.apply(this,arguments)}var h=function(){function e(t){Object(a.a)(this,e);var n=Object(p.matchAll)(t,g(/#EXTINF:[\s\S]*?,\n([\s\S]*?)$/gm,{url:1}));this.urls=[];var r,o=f(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;i.groups&&i.groups.url?this.urls.push(i.groups.url):i[1]&&this.urls.push(i[1])}}catch(e){o.e(e)}finally{o.f()}}return Object(i.a)(e,[{key:"changeURLs",value:function(e){this.urls=this.urls.map(e)}},{key:"_downloadTask",value:function(e){return fetch(e).then((function(e){if(e.ok)return e.blob();throw new Error("bad response")}))}},{key:"download",value:function(){var e=this,t=this.urls.map((function(t){return e._downloadTask(t)}));return Promise.all(t).then((function(e){var t=new Blob(e,{type:e[0].type});return URL.createObjectURL(t)}))}},{key:"fetchMimeType",value:function(){return fetch(this.urls[0],{method:"head"}).then((function(e){return e.headers.get("Content-Type")}))}},{key:"_emit",value:function(e,t){var n=new CustomEvent("hlsDownloader."+e,{detail:t});document.dispatchEvent(n)}}],[{key:"createFromURL",value:function(t){return Object(l.default)(t).then((function(t){return new e(t.body)}))}}]),e}(),v=n(18),b=n.n(v),y=n(12),k=Object(y.default)("soundcloud_com_embed"),A=function(){function e(t){Object(a.a)(this,e),this.engine=t}var t,n,s,c,d;return Object(i.a)(e,[{key:"soundcloudFetchPageInfo",value:(d=Object(o.a)(u.a.mark((function e(t){var n,r,o,a,i,s;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.songEndpoint,o=t.retry,a=void 0===o?3:o,e.prev=1,i="https://api-widget.soundcloud.com/resolve?"+b.a.stringify({client_id:n,url:r,format:"json"}),e.next=5,Object(l.default)({url:i,json:!0});case 5:return s=e.sent,e.abrupt("return",s.body);case 9:if(e.prev=9,e.t0=e.catch(1),k.error("FetchPageInfoError",e.t0),!a){e.next=15;break}return a--,e.abrupt("return",this.soundcloudFetchPageInfo({clientId:n,songEndpoint:r,retry:a}));case 15:throw e.t0;case 16:case"end":return e.stop()}}),e,this,[[1,9]])}))),function(e){return d.apply(this,arguments)})},{key:"soundcloudFetchSongsOfPlaylist",value:(c=Object(o.a)(u.a.mark((function e(t){var n,o,a,i,s,c,d,p,f,m,g;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.clientID,o=t.playlist,a=o.tracks.map((function(e){return e.id})),i=[],s=[],a.length>=30)for(c=0;c<a.length;c+=30)i.push(a.slice(c,c+30));else i.push(a);d=0,p=i;case 7:if(!(d<p.length)){e.next=17;break}return f=p[d],m="https://api-v2.soundcloud.com/tracks?ids=".concat(f.join(","),"&client_id=").concat(n),e.next=12,Object(l.default)({url:m,json:!0});case 12:g=e.sent,s.push.apply(s,Object(r.a)(g.body));case 14:d++,e.next=7;break;case 17:return e.abrupt("return",s);case 18:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)})},{key:"soundcloudSearchBestDownloadURL",value:(s=Object(o.a)(u.a.mark((function e(t){var n,r,o,a;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.song,r=t.clientID,n.media&&n.media.transcodings&&n.media.transcodings.length){e.next=3;break}return e.abrupt("return");case 3:return o=n.media.transcodings,e.next=6,this._searchProgressiveTranscoding(r,o);case 6:if(!(a=e.sent)){e.next=9;break}return e.abrupt("return",a);case 9:return e.abrupt("return",this._searchHlsTranscoding(r,o));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"_searchProgressiveTranscoding",value:(n=Object(o.a)(u.a.mark((function e(t,n){var r,o;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.find((function(e){return"progressive"===e.format.protocol}))){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,Object(l.default)({url:r.url+"?client_id="+t,json:!0});case 5:return o=e.sent,e.abrupt("return",o.body.url);case 7:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"_searchHlsTranscoding",value:(t=Object(o.a)(u.a.mark((function e(t,n){var r,o,a,i,s;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.find((function(e){return"hls"===e.format.protocol})),e.next=3,Object(l.default)({url:r.url+"?client_id="+t,json:!0});case 3:return o=e.sent,e.next=6,Object(l.default)(o.body.url);case 6:return a=e.sent,i=a.body,s=new h(i),e.abrupt("return",s.download());case 10:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})}]),e}()},function(e,t,n){"use strict";n.r(t);var r=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t};t.default=function(e,t,n){var o="";if(n||"undefined"==typeof URL||"undefined"==typeof Blob){var a=r(e);o="data:"+t+";charset=utf8;base64,"+encodeURIComponent(btoa(a))}else{var i=new Blob([e],{encoding:"UTF-8",type:t});o=URL.createObjectURL(i)}return o}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var r=n(2),o=n(3),a={yt:/^(https?:\/\/)?(www\.)?youtube\.com\/?.*/i,fb:/^(https?:\/\/)?(www\.)?facebook\.com\/?.*/i,ig:/^(https?:\/\/)?(www\.)?instagram\.com\/?.*/i,so:/^(https?:\/\/)?(www\.)?soundcloud\.com\/?.*/i,da:/^(https?:\/\/)?(www\.)?dailymotion\.com\/?.*/i,vi:/^(https?:\/\/)?(www\.)?vimeo\.com\/?.*/i,tw:/^(https?:\/\/)?(www\.)?twitter\.com\/?.*/i,tt:/^(https?:\/\/)?(www\.)?tiktok\.com\/?.*/i,vk:/^(https?:\/\/)?(www\.)?(vk\.com|vkontakte\.ru)\/?.*/i,ok:/^(https?:\/\/)?(www\.)?(odnoklassniki|ok)\.ru\/?.*/i,ma:/^(https?:\/\/)?(www\.)?my\.mail\.ru\/?.*/i,ya:/^(https?:\/\/)?(www\.)?music\.yandex\.([a-z]{2,3})\/?.*/i},i={yt:{homepage:/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/?(?:\?.*)?$/i,video:/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/watch\?v=[a-zA-Z0-9-_=&]+$/i,short:/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/shorts\/[a-zA-Z0-9_-]+\/?$/i,feed_history:/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/feed\/history\/?/i,feed_subscriptions:/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/feed\/subscriptions\/?/i,feed_library:/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/feed\/library\/?/i,feed_trending:/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/feed\/trending\/?/i,watch_later:/^https:\/\/www\.youtube\.com\/playlist\?list=WL(?:&[a-zA-Z0-9_]+=[^&]*)*$/i,liked_videos:/^https:\/\/www\.youtube\.com\/playlist\?list=LL(?:&[a-zA-Z0-9_]+=[^&]*)*$/i,playlist_videos:/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/playlist\?list=/i,channel:/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/channel\/[a-zA-Z0-9_-]+\/?/i,gaming:/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/gaming\/?/i},fb:{feed:/^(?:https?:\/\/)?(?:www\.)?facebook\.com\/?(?:\?.*)?$/i,watch:/^(?:https?:\/\/)?(?:www\.)?facebook\.com\/watch(\/live)?\/?(?:\?.*)?$/i,reel:/^(?:https?:\/\/)?(?:www\.)?facebook\.com\/reel(\/[0-9]+)?\/?(?:\?.*)?$/i,video:/^(?:https?:\/\/)?(?:www\.)?facebook\.com\/[A-Za-z0-9_-]+\/videos\/[A-Za-z0-9_-]+\/?(?:\?.*)?$/i,profile_video:/^(?:https?:\/\/)?(?:www\.)?facebook\.com\/[A-Za-z0-9_-]+\/videos\/?(?:\?.*)?$/i,photo:/^https:\/\/www\.facebook\.com\/[A-Za-z0-9_-]+\/photos\/[A-Za-z0-9_.-]+\/[-\d.]+\/?(\?.*)?$/i,profile_photo:/^(?:https?:\/\/)?(?:www\.)?facebook\.com\/[A-Za-z0-9_-]+\/photos\/?(?:\?.*)?$/i,profile_feed:/^(?:https?:\/\/)?(?:www\.)?facebook\.com\/[A-Za-z0-9_-]+\/?(?:\?.*)?$/i,story:/^(?:https?:\/\/)?(?:www\.)?facebook\.com\/stories\/\d+\/[A-Za-z0-9+/]+={0,2}\/?(?:\?.*)?$/i},ig:{feed:/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/?(?:\?.*)?$/i,post:/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/p\/[A-Za-z0-9_-]+\/?(?:\?.*)?$/i,profile:/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/[A-Za-z0-9_.]+\/?(?:\?.*)?$/i,reel:/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/reel\/[A-Za-z0-9_-]+\/?(?:\?.*)?$/i,highlights:/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/stories\/highlights\/[A-Za-z0-9_-]{17}\/?(?:\?.*)?$/i,story:/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/stories\/[A-Za-z0-9_-]+\/[A-Za-z0-9_-]{19}\/?(?:\?.*)?$/i},so:{audio:/^(?:https?:\/\/)?(?:www\.)?soundcloud\.com\/[A-Za-z0-9_-]+\/[A-Za-z0-9_-]+\/?(?:\?.*)?$/i},da:{video:/^(?:https?:\/\/)?(?:www\.)?dailymotion\.com\/video\/[A-Za-z0-9_]+(?:\?.*)?$/i},vi:{blog_video:/^(?:https?:\/\/)?vimeo\.com\/blog\/post\/[A-Za-z0-9_-]+\/?(?:\?.*)?$/i,video:/^(?:https?:\/\/)?vimeo\.com\/\d+\/?(?:\?.*)?$/i,profile_feed:/^(?:https?:\/\/)?vimeo\.com\/[A-Za-z0-9_-]+\/?(?:\?.*)?$/i},tw:{feed:/^(?:https?:\/\/)?(?:www\.)?twitter\.com\/home\/?(?:\?.*)?$/i,post:/^(?:https?:\/\/)?(?:www\.)?twitter\.com\/[A-Za-z0-9_]+\/status\/\d+\/?(?:\?.*)?$/i,photo:/^(?:https?:\/\/)?(?:www\.)?twitter\.com\/[A-Za-z0-9_]+\/status\/\d+\/photo\/\d+\/?(?:\?.*)?$/i},tt:{feed:/^(?:https?:\/\/)?(?:www\.)?tiktok\.com\/?(?:\?.*)?$/i,profile:/^(?:https?:\/\/)?(?:www\.)?tiktok\.com\/@[A-Za-z0-9_]+\/?(?:\?.*)?$/i,video:/^(?:https?:\/\/)?(?:www\.)?tiktok\.com\/@[A-Za-z0-9_]+\/video\/\d+\/?(?:\?.*)?$/i,explore:/^(?:https?:\/\/)?(?:www\.)?tiktok\.com\/explore\/?(?:\?.*)?$/i,following:/^(?:https?:\/\/)?(?:www\.)?tiktok\.com\/following\/?(?:\?.*)?$/i},vk:{clips:/^(?:https?:\/\/)?(vk\.com|vkontakte\.ru)\/clips\/?(?![?&]z=).*$/i,clip:/^(?:https?:\/\/)?(vk\.com|vkontakte\.ru)\/clips\?z=clip-\d+_\d+%2F[A-Za-z0-9]+(?:\&.*)?$/i,videos:/^(?:https?:\/\/)?(vk\.com|vkontakte\.ru)\/video(?!\d)\/?(?![?&]z=).*$/i,video:/^(?:https?:\/\/)?(vk\.com|vkontakte\.ru)\/video(\d+_\d+\/?|\/?\?z=video-\d+_\d+%2F[A-Za-z0-9_]+)(?:\&.*)?$/i,feed:/^(?:https?:\/\/)?(vk\.com|vkontakte\.ru)\/(al_feed\.php|feed)\/?(?![?&](z|w)=).*$/i,photo:/^(?:https?:\/\/)?(vk\.com|vkontakte\.ru)\/(al_feed\.php|feed)\/?\?z=photo-\d+_\d+%2Falbum-\d+_\d+%2F[A-Za-z0-9_]+(?:\&.*)?$/i,story:/^(?:https?:\/\/)?(vk\.com|vkontakte\.ru)\/(al_feed\.php|feed)\/?\?w=story-\d+_\d+%2F(feed|discover)(?:\&.*)?$/i,audios:/^(?:https?:\/\/)?(vk\.com|vkontakte\.ru)\/audios\d+\/?(?:\?.*)?$/i,audio:/^(?:https?:\/\/)?(vk\.com|vkontakte\.ru)\/audio-\d+_\d+\/?(?:\?.*)?$/i,albums:/^(?:https?:\/\/)?(vk\.com|vkontakte\.ru)\/albums\d+/i,album:/^(?:https?:\/\/)?(vk\.com|vkontakte\.ru)\/album\d+/i},ok:{video:/^(?:https?:\/\/)?(?:www\.)?ok\.ru\/video\/\d+\/?(?:\?.*)?$/i,music:/^(?:https?:\/\/)?(?:www\.)?ok\.ru\/music(?:.*)?/i,profile:/^(?:https?:\/\/)?(?:www\.)?ok\.ru\/(?!discovery)([a-z]+(?:\/[0-9]+)?)$/i,profile_music:/^(?:https?:\/\/)?(?:www\.)?ok\.ru\/.*\/music$/i,hobby:/^(?:https?:\/\/)?(?:www\.)?ok\.ru\/hobby\/(?:.*)?$/i,discovery:/^(?:https?:\/\/)?(?:www\.)?ok\.ru\/discovery\/?(?:.*)?$/i},ma:{community:/^(?:https?:\/\/)?my\.mail\.ru\/community\/[A-Za-z0-9_-]+\/?(?:\?.*)?$/i,community_multipost:/^(?:https?:\/\/)?my\.mail\.ru\/community\/[A-Za-z0-9_-]+\/multipost\/[A-Za-z0-9_-]+\.html\/?(?:\?.*)?$/i,community_photo:/^(?:https?:\/\/)?my\.mail\.ru\/community\/[A-Za-z0-9_-]+\/photo\/[A-Za-z0-9_-]+\/\d+\.html\/?(?:\?.*)?$/i,community_share:/^(?:https?:\/\/)?my\.mail\.ru\/community\/[A-Za-z0-9_-]+\/share\/?\?shareid=[A-Za-z0-9]+(?:&.*)?$/i,music:/^(?:https?:\/\/)?my\.mail\.ru\/music\/?(?:\?.*)?$/i,video:/^(?:https?:\/\/)?my\.mail\.ru\/v\/[A-Za-z0-9_-]+\/video\/[A-Za-z0-9_-]+\/\d+\.html\/?(?:\?.*)?$/i,playlist:/^(?:http[s\u017F]?:\/\/)?my\.mail\.ru\/mu[s\u017F]ic\/playli[s\u017F]t[s\u017F]\/(?:[\x2D0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])+(?:\x2D[0-9]+)?\/?(?:\?(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i},ya:{artist:/^(?:https?:\/\/)?music\.yandex\.([a-z]{2,3})\/artist\/[A-Za-z0-9_-]+\/?(?:\?.*)?$/i,album:/^(?:https?:\/\/)?music\.yandex\.([a-z]{2,3})\/album\/[A-Za-z0-9_-]+\/?(?:\?.*)?$/i,track:/^(?:https?:\/\/)?music\.yandex\.([a-z]{2,3})\/album\/[A-Za-z0-9_-]+\/track\/\d+\/?(?:\?.*)?$/i,playlist:/^(?:https?:\/\/)?music\.yandex\.([a-z]{2,3})\/users\/[A-Za-z0-9_-]+\/playlists\/\d+\/?(?:\?.*)?$/i}},s={ig:{"ig-post-carousel_from_profile":"article ._aamj","ig-post-carousel":'div[role="button"] ._aamj',"ig-post-video_from_profile":"article video","ig-post-video":'div[role="button"] video',"ig-post-photo_from_profile":"article img","ig-post-photo":'div[role="button"] img',"ig-reel-from_profile":"article video","ig-story-video":"._ac0a video","ig-story-photo":"._ac0a img"},ok:{profile:".profile-user-info"}},u=n(6),l=function(){function e(){Object(r.a)(this,e)}return Object(o.a)(e,null,[{key:"getPageType",value:function(e,t){try{if(!e)throw new Error("url is required");return this.getServiceType(e,t)}catch(e){return console.error(e),"unknown-page"}}},{key:"getServiceType",value:function(e,t){var n=a;switch(e=e.replace(/#.+/,""),!0){case n.yt.test(e):return this.getYtServiceTypeDetails(e);case n.fb.test(e):return this.getFbServiceTypeDetails(e);case n.ig.test(e):return this.getIgServiceTypeDetails(e,t);case n.so.test(e):return this.getSoServiceTypeDetails(e);case n.da.test(e):return this.getDaServiceTypeDetails(e);case n.vi.test(e):return this.getViServiceTypeDetails(e);case n.tw.test(e):return this.getTwServiceTypeDetails(e);case n.tt.test(e):return this.getTtServiceTypeDetails(e);case n.vk.test(e):return this.getVkServiceTypeDetails(e);case n.ok.test(e):return this.getOkServiceTypeDetails(e,t);case n.ma.test(e):return this.getMaServiceTypeDetails(e);case n.ya.test(e):return this.getYaServiceTypeDetails(e);default:throw new Error("Unknown service type")}}},{key:"getYtServiceTypeDetails",value:function(e){var t=i.yt;switch(!0){case t.homepage.test(e):return u.ytPageTypeMap.ytHomepage;case t.video.test(e):return u.ytPageTypeMap.ytVideo;case t.short.test(e):return u.ytPageTypeMap.ytShort;case t.feed_history.test(e):return u.ytPageTypeMap.ytFeedHistory;case t.feed_library.test(e):return u.ytPageTypeMap.ytFeedLibrary;case t.feed_subscriptions.test(e):return u.ytPageTypeMap.ytFeedSubscriptions;case t.feed_trending.test(e):return u.ytPageTypeMap.ytFeedTrending;case t.watch_later.test(e):return u.ytPageTypeMap.ytWatchLater;case t.liked_videos.test(e):return u.ytPageTypeMap.ytLikedVideos;case t.playlist_videos.test(e):return u.ytPageTypeMap.ytPlaylistVideos;case t.channel.test(e):return u.ytPageTypeMap.ytChannel;case t.gaming.test(e):return u.ytPageTypeMap.ytGaming;default:throw new Error("Unknown yt page")}}},{key:"getFbServiceTypeDetails",value:function(e){var t=i.fb;switch(!0){case t.feed.test(e):return u.fbPageTypeMap.fbFeed;case t.watch.test(e):return u.fbPageTypeMap.fbWatch;case t.reel.test(e):return u.fbPageTypeMap.fbReel;case t.video.test(e):return u.fbPageTypeMap.fbVideo;case t.profile_video.test(e):return u.fbPageTypeMap.fbProfileVideo;case t.photo.test(e):return u.fbPageTypeMap.fbPhoto;case t.profile_photo.test(e):return u.fbPageTypeMap.fbProfilePhoto;case t.profile_feed.test(e):return u.fbPageTypeMap.fbProfileFeed;case t.story.test(e):return u.fbPageTypeMap.fbStory;default:throw new Error("Unknown fb page")}}},{key:"getIgServiceTypeDetails",value:function(e,t){var n=i.ig,r=s.ig;switch(!0){case n.feed.test(e):return u.igPageTypeMap.igFeed;case n.post.test(e):if(!t)return u.igPageTypeMap.igPost;if(t.querySelector(r["ig-post-carousel_from_profile"]))return u.igPageTypeMap.igCarouselFromProfile;if(t.querySelector(r["ig-post-carousel"]))return u.igPageTypeMap.igPostCarousel;if(t.querySelector(r["ig-post-video_from_profile"]))return u.igPageTypeMap.igPostVideoFromProfile;if(t.querySelector(r["ig-post-video"]))return u.igPageTypeMap.igPostVideo;if(t.querySelector(r["ig-post-photo_from_profile"]))return u.igPageTypeMap.igPostPhotoFromProfile;if(t.querySelector(r["ig-post-photo"]))return u.igPageTypeMap.igPostPhoto;throw new Error("Unknown ig post page");case n.profile.test(e):return u.igPageTypeMap.igProfile;case n.reel.test(e):return t&&t.querySelector(r["ig-reel-from_profile"])?u.igPageTypeMap.igReelFromProfile:u.igPageTypeMap.igReel;case n.highlights.test(e):return u.igPageTypeMap.igHighlights;case n.story.test(e):if(!t)return u.igPageTypeMap.igStory;if(t.querySelector(r["ig-story-video"]))return u.igPageTypeMap.igStoryVideo;if(t.querySelector(r["ig-story-photo"]))return u.igPageTypeMap.igStoryPhoto;throw new Error("Unknown ig story page");default:throw new Error("Unknown ig page")}}},{key:"getSoServiceTypeDetails",value:function(e){switch(!0){case i.so.audio.test(e):return u.soPageTypeMap.soAudio;default:throw new Error("Unknown so page")}}},{key:"getDaServiceTypeDetails",value:function(e){switch(!0){case i.da.video.test(e):return u.daPageTypeMap.daVideo;default:throw new Error("Unknown da page")}}},{key:"getViServiceTypeDetails",value:function(e){var t=i.vi;switch(!0){case t.blog_video.test(e):return u.viPageTypeMap.viBlogVideo;case t.video.test(e):return u.viPageTypeMap.viVideo;case t.profile_feed.test(e):return u.viPageTypeMap.viProfileFeed;default:throw new Error("Unknown vi page")}}},{key:"getTwServiceTypeDetails",value:function(e){var t=i.tw;switch(!0){case t.feed.test(e):return u.twPageTypeMap.twFeed;case t.post.test(e):return u.twPageTypeMap.twPost;case t.photo.test(e):return u.twPageTypeMap.twPhoto;default:throw new Error("Unknown tw page")}}},{key:"getTtServiceTypeDetails",value:function(e){var t=i.tt;switch(!0){case t.feed.test(e):return u.ttPageTypeMap.ttFeed;case t.profile.test(e):return u.ttPageTypeMap.ttProfile;case t.video.test(e):return u.ttPageTypeMap.ttVideo;case t.explore.test(e):return u.ttPageTypeMap.ttExplore;case t.following.test(e):return u.ttPageTypeMap.ttFollowing;default:throw new Error("Unknown tt page")}}},{key:"getVkServiceTypeDetails",value:function(e){var t=i.vk;switch(!0){case t.clips.test(e):return u.vkPageTypeMap.vkClips;case t.clip.test(e):return u.vkPageTypeMap.vkClip;case t.videos.test(e):return u.vkPageTypeMap.vkVideos;case t.video.test(e):return u.vkPageTypeMap.vkVideo;case t.feed.test(e):return u.vkPageTypeMap.vkFeed;case t.photo.test(e):return u.vkPageTypeMap.vkPhoto;case t.story.test(e):return u.vkPageTypeMap.vkStory;case t.audios.test(e):return u.vkPageTypeMap.vkAudios;case t.audio.test(e):return u.vkPageTypeMap.vkAudio;case t.albums.test(e):return u.vkPageTypeMap.vkAlbums;case t.album.test(e):return u.vkPageTypeMap.vkAlbum;default:throw new Error("Unknown vk page")}}},{key:"getOkServiceTypeDetails",value:function(e,t){var n=i.ok,r=s.ok;switch(!0){case n.video.test(e):return u.okPageTypeMap.okVideo;case n.music.test(e):return u.okPageTypeMap.okMusic;case n.profile.test(e):if(!t)return u.okPageTypeMap.okProfile;if(t.querySelector(r.profile))return u.okPageTypeMap.okProfile;throw new Error("Unknown ok page");case n.profile_music.test(e):return u.okPageTypeMap.okProfileMusic;case n.hobby.test(e):return u.okPageTypeMap.okHobby;case n.discovery.test(e):return u.okPageTypeMap.okDiscovery;default:throw new Error("Unknown ok page")}}},{key:"getMaServiceTypeDetails",value:function(e){var t=i.ma;switch(!0){case t.community.test(e):return u.maPageTypeMap.maCommunity;case t.community_multipost.test(e):return u.maPageTypeMap.maCommunityMultipost;case t.community_photo.test(e):return u.maPageTypeMap.maCommunityPhoto;case t.community_share.test(e):return u.maPageTypeMap.maCommunityShare;case t.music.test(e):return u.maPageTypeMap.maMusic;case t.video.test(e):return u.maPageTypeMap.maVideo;case t.playlist.test(e):return u.maPageTypeMap.maPlaylist;default:throw new Error("Unknown ma page")}}},{key:"getYaServiceTypeDetails",value:function(e){var t=i.ya;switch(!0){case t.artist.test(e):return u.yaPageTypeMap.yaArtist;case t.album.test(e):return u.yaPageTypeMap.yaAlbum;case t.track.test(e):return u.yaPageTypeMap.yaTrack;case t.playlist.test(e):return u.yaPageTypeMap.yaPlaylist;default:throw new Error("Unknown ya page")}}}]),e}()},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(3),a=n(39),i=function(){function e(){Object(r.a)(this,e)}return Object(o.a)(e,[{key:"init",value:function(){var e=document.createElement("canvas"),t=document.createElement("video");(t.setAttribute("title","Prevent Sleep"),t.setAttribute("playsinline",""),this._supported="function"==typeof e.captureStream,this._supported)&&(e.getContext("2d").fillRect(0,0,1,1),t.srcObject=e.captureStream(0),this.video=t,this._inited=!0)}},{key:"start",value:function(){if(this._inited||this.init(),this._supported&&this.video.paused)return this.video.play()}},{key:"stop",value:function(){if(this._inited&&this._supported&&!this.video.paused)return this.video.pause()}}]),e}(),s=function(){function e(){Object(r.a)(this,e)}return Object(o.a)(e,[{key:"start",value:function(){var e=this;if(!this._wakeLock)return navigator.wakeLock.request("screen").then((function(t){return e._wakeLock=t,!0}))}},{key:"stop",value:function(){var e=this;if(this._wakeLock)return this._wakeLock.release().then((function(){return e._wakeLock=null,!0}))}}]),e}(),u=function(){function e(){Object(r.a)(this,e);var t=window.navigator&&"wakeLock"in navigator?s:i;this.parent=new t,this.chain=Object(a.default)(1)}return Object(o.a)(e,[{key:"start",value:function(){var e=this;return this.chain((function(){return e.parent.start()}))}},{key:"stop",value:function(){var e=this;return this.chain((function(){return e.parent.stop()}))}}]),e}(),l=null,c=0;t.default=function(){1===++c&&(l||(l=new u),l.start());var e=!1;return function(){e||(e=!0,0==--c&&l.stop())}}},function(e,t,n){"use strict";n.r(t),n.d(t,"TtLinkExtractor",(function(){return d}));var r=n(1),o=n(2),a=n(3),i=n(0),s=n.n(i),u=n(6),l=n(16),c=function(){function e(){Object(o.a)(this,e)}var t;return Object(a.a)(e,[{key:"extractLinks",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,o,a,i,u,l,c,d,p;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.element){e.next=3;break}throw new Error("element is not defined");case 3:if(n instanceof HTMLVideoElement){e.next=5;break}throw new Error("element is not supported");case 5:if(r=this.getFilename(),!n.src.startsWith("blob")){e.next=31;break}if(o=n.closest('div[data-e2e="recommend-list-item-container"]'),a=null,o?(i=this.getUsername(o),u=this.getVideoId(o),a="https://www.tiktok.com/@".concat(i,"/video/").concat(u)):window.self===window.top&&/\/@[\w.-]+\/video\/\d+$/i.test(window.location.href)&&(a=window.location.href),!a){e.next=31;break}if((c=document.createElement("iframe")).src=a,c.style.display="none",c.id="blob-iframe",document.body.appendChild(c),d=null,e.prev=17,!c.contentWindow){e.next=23;break}return e.next=21,this.waitForElementInFrame(c,"video",1e4);case 21:p=e.sent,d=null==p?void 0:p.src;case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(17),console.error(e.t0.message);case 28:if(null===(l=c.parentNode)||void 0===l||l.removeChild(c),!d){e.next=31;break}return e.abrupt("return",[{url:d,filename:r}]);case 31:return e.abrupt("return",[{url:n.src,filename:r}]);case 32:case"end":return e.stop()}}),e,this,[[17,25]])}))),function(e){return t.apply(this,arguments)})},{key:"getFilename",value:function(){var e=document.querySelector(".user-username, .share-title");e||(e=document.querySelector("._embed_video_card-user span"));var t=e&&e.textContent?l.default.modify(e.textContent+".mp4"):"video.mp4";if(!t){var n=location.href.match(/\d+/);t=n&&n[0]?n[0]:"video.mp4"}return t}},{key:"getUsername",value:function(e){var t=e.querySelector(".avatar-anchor");if(!t)return null;var n=t.href;if(!n)return null;var r=n.match(/@([^/]+)/);return r&&r[1]?r[1]:null}},{key:"getVideoId",value:function(e){var t=e.querySelector(".tiktok-web-player");if(!t)return null;var n=t.id;if(!n)return null;var r=n.match(/xgwrapper-0-([^/]+)/);return r&&r[1]?r[1]:null}},{key:"waitForElementInFrame",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3;return new Promise((function(r,o){var a=n/100,i=0,s=setInterval((function(){var n,u=null===(n=e.contentWindow)||void 0===n||null===(n=n.document)||void 0===n||null===(n=n.body)||void 0===n?void 0:n.querySelector(t);u&&!u.src.includes("playback1.mp4")?(clearInterval(s),r(u)):i>=a&&(clearInterval(s),o(new Error("Element not found within the specified timeout"))),i++}),100)}))}}]),e}(),d=function(){function e(t,n){Object(o.a)(this,e),this.pageType=void 0,this.cache=void 0,this.pageType=t,this.cache=n}var t;return Object(a.a)(e,[{key:"extractLinks",value:(t=Object(r.a)(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.pageType,e.next=e.t0===u.ttPageTypeMap.ttFeed||e.t0===u.ttPageTypeMap.ttVideo||e.t0===u.ttPageTypeMap.ttProfile||e.t0===u.ttPageTypeMap.ttExplore||e.t0===u.ttPageTypeMap.ttFollowing?3:4;break;case 3:return e.abrupt("return",(new c).extractLinks(t));case 4:throw new Error("igPageType ".concat(this.pageType," is not supported"));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}()}]);