-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwww_youtube_com_content_script.js
More file actions
1 lines (1 loc) · 117 KB
/
www_youtube_com_content_script.js
File metadata and controls
1 lines (1 loc) · 117 KB
1
!function(){"use strict";try{window.trustedTypes&&trustedTypes.createPolicy&&trustedTypes.createPolicy("www_youtube_com_content_script",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}}(),function(){"use strict";(()=>{const e={apply:(e,t,n)=>{const r=n[0];return"function"==typeof r&&r.toString().includes("onAbnormalityDetected")&&(n[0]=function(){}),Reflect.apply(e,t,n)}};window.Promise.prototype.then=new Proxy(window.Promise.prototype.then,e)})(),(()=>{const e={apply:(e,t,n)=>{const r=Reflect.apply(e,t,n);try{r instanceof HTMLIFrameElement&&"about:blank"===r.src&&r.contentWindow&&(r.contentWindow.fetch=window.fetch,r.contentWindow.Request=window.Request)}catch(e){}return r}};Node.prototype.appendChild=new Proxy(Node.prototype.appendChild,e)})(),(()=>{let e=document.location.href,t=[],n=[],r="",i=!1;const o=Array.prototype.push,a={apply:(e,r,a)=>(window.yt?.config_?.EXPERIMENT_FLAGS?.html5_enable_ssap_entity_id&&a[0]&&a[0]!==window&&"number"==typeof a[0].start&&a[0].end&&"ssap"===a[0].namespace&&a[0].id&&(i||0!==a[0]?.start||n.includes(a[0].id)||(t.length=0,n.length=0,i=!0,o.call(t,a[0]),o.call(n,a[0].id)),i&&0!==a[0]?.start&&!n.includes(a[0].id)&&(o.call(t,a[0]),o.call(n,a[0].id))),Reflect.apply(e,r,a))};window.Array.prototype.push=new Proxy(window.Array.prototype.push,a),document.addEventListener("DOMContentLoaded",function(){if(!window.yt?.config_?.EXPERIMENT_FLAGS?.html5_enable_ssap_entity_id)return;const o=()=>{const e=document.querySelector("video");if(e&&t.length){const o=Math.round(e.duration),a=Math.round(t.at(-1).end/1e3),s=n.join(",");if(!1===e.loop&&r!==s&&o&&o===a){const n=t.at(-1).start/1e3;e.currentTime<n&&(e.currentTime=n,i=!1,r=s)}else if(!0===e.loop&&o&&o===a){const n=t.at(-1).start/1e3;e.currentTime<n&&(e.currentTime=n,i=!1,r=s)}}};o(),new MutationObserver(()=>{e!==document.location.href&&(e=document.location.href,t.length=0,n.length=0,i=!1),o()}).observe(document,{childList:!0,subtree:!0})})})(),(()=>{const e="pyv",t="param_first",n="param_second",r="client_screen",i="ad_type",o="none",a="eAFgAQ",s="8AUB",c="YAHI",u="CHANNEL",l=t;let f=l,p=null;const d=Object.getOwnPropertyDescriptor(Document.prototype,"visibilityState"),v=()=>{try{Object.defineProperty(document,"visibilityState",{get:()=>"visible",configurable:!0})}catch(e){}},y=window.JSON.stringify,g=e=>{f=e};(()=>{try{const e=Object.getOwnPropertyDescriptor(window.JSON,"parse");return!!e&&e.writable}catch(e){return!1}})()||((()=>{const e={apply:(e,t,n)=>{try{const e=t;e?.includes('"minimumPlaybackRate":100,"maximumPlaybackRate":100')&&(t=e.replace('"minimumPlaybackRate":100,"maximumPlaybackRate":100','"minimumPlaybackRate":25,"maximumPlaybackRate":200'))}catch(e){}return Reflect.apply(e,t,n)}};window.String.prototype.replace=new Proxy(window.String.prototype.replace,e)})(),g(r));const h=e=>{(e.playbackContext||e.playerRequest)&&delete e.context?.client?.configInfo?.appInstallData},b=(f,y,b)=>{try{if(!f||!y||!b)return;(e=>{const t=e?.videoId;t&&(p&&p!==t&&g(l),p=t)})(f);const m=document.getElementById("movie_player")?.getPlayerResponse()?.playabilityStatus?.status;if("LOGIN_REQUIRED"!==m&&"CONTENT_CHECK_REQUIRED"!==m||(b=o),b===t&&f.context?.client?.clientScreen!==u&&!f.params?.startsWith(c))return f.params=a,f.playerRequest&&f.playerRequest.params!==a&&(f.playerRequest.params=a),f.playbackContext&&f.playbackContext.params!==a&&(f.playbackContext.params=a),y.contentPlaybackContext.lactMilliseconds=String(Date.now()),v(),void h(f);if(b===n&&f.context?.client?.clientScreen!==u&&!f.params?.startsWith(c))return f.params!==s&&(f.params=s),f.playerRequest&&f.playerRequest.params!==s&&(f.playerRequest.params=s),f.playbackContext&&f.playbackContext.params!==s&&(f.playbackContext.params=s),f.playlistId||(f.context.client.clientScreen=u),y.contentPlaybackContext.lactMilliseconds=String(Date.now()),v(),void h(f);if(!(b!==e||f.context?.client?.clientScreen===u||y.params?.startsWith(a)&&y.params?.startsWith(s)))return y.adPlaybackContext={pyv:!0},y.contentPlaybackContext.lactMilliseconds=String(Date.now()),void h(f);if(b===r&&"WEB"===f.context?.client?.clientName)return f.context.client.clientScreen=u,y.contentPlaybackContext.lactMilliseconds=String(Date.now()),v(),void h(f);if(b===i)return y.adPlaybackContext={adType:"AD_TYPE_INSTREAM"},y.contentPlaybackContext.lactMilliseconds=String(Date.now()),v(),void h(f);if(b===o)return delete y.adPlaybackContext,void(()=>{try{Object.defineProperty(document,"visibilityState",d)}catch(e){}})()}catch(e){}},m=["playerErrorMessageRenderer","UNPLAYABLE"],w={apply:(a,s,c)=>{if(location.href.includes("/shorts/")||location.href.includes("youtube.com/tv")||location.href.includes("youtube.com/embed/")||f===o)return Reflect.apply(a,s,c);let u;try{if(u=Reflect.apply(a,s,c),!u.responseContext&&!u.playabilityStatus)return u;const l=y(u);return m.some(e=>l.includes(e))&&!l.includes("CONTENT_CHECK_REQUIRED")?f===t?(g(n),u):f===n?(g(e),u):f===e?(g(r),u):f===r?(g(i),u):(g(o),u):(f===t&&u.playerConfig?.audioConfig?.muteOnStart&&(location.href.includes("/watch")||u.cards&&!u.playabilityStatus?.miniplayer)&&(delete u.playerConfig.audioConfig.muteOnStart,u.messages[0]?.youThereRenderer&&delete u.messages[0].youThereRenderer),f===i&&u.playerConfig?.granularVariableSpeedConfig&&(u.playerConfig.granularVariableSpeedConfig.maximumPlaybackRate=200,u.playerConfig.granularVariableSpeedConfig.minimumPlaybackRate=25),u)}catch(e){}return u}};window.JSON.parse=new Proxy(window.JSON.parse,w);const $={apply:(e,t,n)=>{if(location.href.includes("/shorts/")||location.href.includes("youtube.com/tv")||location.href.includes("youtube.com/embed/"))return Reflect.apply(e,t,n);try{let r=n[0];if(r&&(r.includes('"contentPlaybackContext"')||r.includes('"adSignalsInfo"'))){const i=JSON.parse(r);if(!i.context?.client)return Reflect.apply(e,t,n);i.playbackContext&&b(i,i.playbackContext,f),i.playerRequest&&b(i,i.playerRequest.playbackContext,f),r=y(i),n[0]=r}}catch(e){}return Reflect.apply(e,t,n)}};window.TextEncoder.prototype.encode=new Proxy(window.TextEncoder.prototype.encode,$);const R={apply:(e,t,n)=>{if(location.href.includes("/shorts/")||location.href.includes("youtube.com/tv")||location.href.includes("youtube.com/embed/"))return Reflect.apply(e,t,n);try{const r=n[0];if(!r?.context?.client)return Reflect.apply(e,t,n);r.playbackContext&&void 0===r.playbackContext.adPlaybackContext&&b(r,r.playbackContext,f),r.playerRequest&&void 0===r.playerRequest.playbackContext.adPlaybackContext&&b(r,r.playerRequest.playbackContext,f),n[0]=r}catch(e){}return Reflect.apply(e,t,n)}};window.JSON.stringify=new Proxy(window.JSON.stringify,R);const x={construct:(e,t,n)=>{try{const r=t[0];let i=t[1]?.body;if(!r?.includes("youtubei")||location.href.includes("/shorts/")||location.href.includes("youtube.com/tv")||location.href.includes("youtube.com/embed/")||!i)return Reflect.construct(e,t,n);if(i.includes('"contentPlaybackContext"')||i.includes('"adSignalsInfo"')){const r=JSON.parse(i);if(!r.context?.client)return Reflect.construct(e,t,n);r.playbackContext&&b(r,r.playbackContext,f),r.playerRequest&&b(r,r.playerRequest.playbackContext,f),i=y(r),t[1].body=i}}catch(e){}return Reflect.construct(e,t,n)}};window.Request=new Proxy(window.Request,x)})(),(()=>{const e="movie_player",t="ytd-watch-flexy[player-unavailable]",n=`#${e} > .ytp-error`,r="yt-playability-error-supported-renderers#error-screen:has(>*)",i='yt-playability-error-supported-renderers#error-screen a[href^="//support.google.com/youtube/answer/2802245"]',o="pyv",a="param_first",s="param_second",c="client_screen",u="ad_type",l="none",f="eAFgAQ",p="8AUB",d="YAHI",v="CHANNEL",y=a;let g=y,h=null;const b=new Set,m=()=>{const t=document.getElementById(e),n=window.location.search,r=new URLSearchParams(n).get("v")||t?.getVideoData?.().video_id,i=new URLSearchParams(n).get("t")??"0";return{videoId:r,timeInSeconds:parseInt(i,10)}},w=()=>{O();const t=document.getElementById(e);if(t&&"function"==typeof t.loadVideoById)try{const{videoId:e,timeInSeconds:n}=m();t.loadVideoById(e,n)}catch(e){}},$=(()=>{let e=null,t=null,n=0;return r=>{try{if(!r)return!1;const{videoId:i}=m();return!!i&&(e===i&&t===r?n++:(e=i,t=r,n=1),n>=2&&(n=0,!0))}catch(e){return!1}}})(),R=e=>{g=e},x=Object.getOwnPropertyDescriptor(Document.prototype,"visibilityState"),j=()=>{try{Object.defineProperty(document,"visibilityState",{get:()=>"visible",configurable:!0})}catch(e){}},O=()=>{const n=document.getElementById(e),o=document.querySelector(r),a=document.querySelector("yt-playability-error-supported-renderers.ytdMiniplayerPlayerContainerPlayabilityError:has(>*)"),s=document.querySelector(t),c=document.querySelector(i);if(!n||c)return;const u=n.getPlayerResponse?.();"LOGIN_REQUIRED"!==u?.playabilityStatus?.status?(s||a)&&(o?.style.setProperty("display","none","important"),a?.style.setProperty("display","none","important"),s?.removeAttribute("player-unavailable")):o?.style.setProperty("display","block","important")},E=e=>{(e.playbackContext||e.playerRequest)&&delete e.context?.client?.configInfo?.appInstallData},P=(e,t,n)=>{try{if(!e||!t||!n)return;if((e=>{const t=e?.videoId;t&&(h&&h!==t&&R(y),h=t)})(e),n===a&&e.context?.client?.clientScreen!==v&&!e.params?.startsWith(d))return e.params=f,e.playerRequest&&e.playerRequest.params!==f&&(e.playerRequest.params=f),e.playbackContext&&e.playbackContext.params!==f&&(e.playbackContext.params=f),t.contentPlaybackContext.lactMilliseconds=String(Date.now()),j(),void E(e);if(n===s&&e.context?.client?.clientScreen!==v&&!e.params?.startsWith(d))return e.params!==p&&(e.params=p),e.playerRequest&&e.playerRequest.params!==p&&(e.playerRequest.params=p),e.playbackContext&&e.playbackContext.params!==p&&(e.playbackContext.params=p),e.playlistId||(e.context.client.clientScreen=v),t.contentPlaybackContext.lactMilliseconds=String(Date.now()),j(),void E(e);if(!(n!==o||e.context?.client?.clientScreen===v||t.params?.startsWith(f)&&t.params?.startsWith(p)))return t.adPlaybackContext={pyv:!0},t.contentPlaybackContext.lactMilliseconds=String(Date.now()),j(),void E(e);if(n===c&&"WEB"===e.context?.client?.clientName)return e.context.client.clientScreen=v,t.contentPlaybackContext.lactMilliseconds=String(Date.now()),j(),void E(e);if(n===u)return t.adPlaybackContext={adType:"AD_TYPE_INSTREAM"},t.contentPlaybackContext.lactMilliseconds=String(Date.now()),j(),void E(e);if(n===l)return delete t.adPlaybackContext,void(()=>{try{Object.defineProperty(document,"visibilityState",x)}catch(e){}})()}catch(e){}};(()=>{const e={apply:(e,t,n)=>{try{let r=n[0];if(!r||location.href.includes("youtube.com/tv")||location.href.includes("youtube.com/embed/"))return Reflect.apply(e,t,n);const i=Array.isArray(r),o=i?r[0]:r;if("string"!=typeof o)return Reflect.apply(e,t,n);if(!o.includes('"contentPlaybackContext"')&&!o.includes('"adSignalsInfo"'))return Reflect.apply(e,t,n);const a=JSON.parse(o);if(!a.context?.client)return Reflect.apply(e,t,n);a.playbackContext&&P(a,a.playbackContext,g),a.playerRequest&&P(a,a.playerRequest.playbackContext,g);const s=JSON.stringify(a);i?n[0][0]=s:n[0]=s}catch(e){}return Reflect.apply(e,t,n)}};window.XMLHttpRequest.prototype.send=new Proxy(window.XMLHttpRequest.prototype.send,e)})();const S=document.documentElement;new MutationObserver(()=>{if(document.querySelector(r)&&O(),!(()=>{const o=document.getElementById(e),a=document.querySelector(n),s=document.querySelector(r),c=document.querySelector(t),u=document.querySelector(i);if(!o||u)return!1;const l=o.getPlayerResponse?.();if("LOGIN_REQUIRED"===l?.playabilityStatus?.status)return!1;const f=o.getVideoData?.();return(s||c||a)&&null!=f?.errorCode})())return;const{videoId:f}=m();(e=>{if(e)for(const t of b)t!==e&&b.delete(t)})(f),(()=>{if(g===a){if(!$(s))return void w();R(s),w()}else if(g===s){if(!$(o))return void w();R(o),w()}else if(g===o){if(!$(c))return void w();R(c),w()}else if(g===c){if(!$(u))return void w();R(u),w()}else if(g===u){if(!$(l))return void w();R(l),w()}else if(g===l){const{videoId:e}=m();if(!e||b.has(e))return void O();b.add(e),w()}})()}).observe(S,{attributes:!0,childList:!0,subtree:!0})})(),window.JSON.parse=new Proxy(JSON.parse,{apply(e,t,n){const r=Reflect.apply(e,t,n);if(!location.pathname.startsWith("/shorts/"))return r;const i=r?.entries;return i&&Array.isArray(i)&&(r.entries=r.entries.filter(e=>{if(!e?.command?.reelWatchEndpoint?.adClientParams?.isAd)return e})),r}}),(()=>{const e={apply:(e,t,n)=>{const r=n[0];if("string"==typeof r?.value&&r.value.includes("playerResponse"))try{r.value=(i=r.value,(location.href.includes("/watch")||i.includes("cards")&&!i.includes('"miniplayer"'))&&i.includes('"muteOnStart":true')&&(i=i.replace('"muteOnStart":true','"muteOnStart":false')).includes('"youThereRenderer":')&&(i=i.replace('"youThereRenderer":','"no_youThereRenderer":')),i.replace(/"(adSlots|playerAds)":/g,'"no_ads":')),n[0]=r}catch(e){}var i;return Reflect.apply(e,t,n)}},t={apply:(t,n,r)=>{const i=r[0];return"function"==typeof i&&i.toString().includes(".next(")&&(r[0]=new Proxy(i,e)),Reflect.apply(t,n,r)}};window.Promise.prototype.then=new Proxy(window.Promise.prototype.then,t)})(),(()=>{const e={apply:(e,t,n)=>{const r=Reflect.apply(e,t,n);if(r?.responseContext)try{delete r.adSlots,delete r.playerAds,r.playerConfig?.audioConfig?.muteOnStart&&(location.href.includes("/watch")||r.cards&&!r.playabilityStatus?.miniplayer)&&(delete r.playerConfig.audioConfig.muteOnStart,r.messages[0]?.youThereRenderer&&delete r.messages[0].youThereRenderer)}catch(e){}return r}},t={apply:(t,n,r)=>{const i=r[0];return"function"==typeof i&&i.toString().includes("jspbResponseCtor")&&(r[0]=new Proxy(i,e)),Reflect.apply(t,n,r)}};window.Promise.prototype.then=new Proxy(window.Promise.prototype.then,t)})();!function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:NaN;if(t&&n){var s="trusted-create-element-window";if(window.name!==s){var c,u=function(t,n){a(e,`${t} due to ${function(e){if(t=e,"object"==typeof t&&null!==t&&"message"in t&&"string"==typeof t.message)return e.message;var t;try{return new Error(JSON.stringify(e)).message}catch(t){return new Error(String(e)).message}}(n)}`)};try{(c=document.createElement(n)).textContent=i}catch(e){return void u(`Cannot create element with tag name '${n}'`,e)}var l,f=[];try{f=function(e){if(!e)return[];for(var t="=",n=" ",r="'",i='"',o="\\",a=[],s=0;s<e.length;s+=1){for(var c="",u="";s<e.length&&e[s]!==t&&e[s]!==n;)c+=e[s],s+=1;if(s<e.length&&e[s]===t){var l=null;if(e[s+=1]!==r&&e[s]!==i)throw new Error(`Attribute value should be quoted: "${e.slice(s)}"`);for(l=e[s],s+=1;s<e.length;s+=1)if(e[s]===l){if(e[s-1]!==o){s+=1,l=null;break}u=`${u.slice(0,-1)}${l}`}else u+=e[s];if(null!==l)throw new Error(`Unbalanced quote for attribute value: '${e}'`)}if(c=c.trim(),u=u.trim(),!c){if(!u)continue;throw new Error(`Attribute name before '=' should be specified: '${e}'`)}if(a.push({name:c,value:u}),e[s]&&e[s]!==n)throw new Error(`No space before attribute: '${e.slice(s)}'`)}return a}(r)}catch(e){return void u(`Cannot parse attributePairs param: '${r}'`,e)}f.forEach(function(e){try{c.setAttribute(e.name,e.value)}catch(t){u(`Cannot set attribute '${e.name}' with value '${e.value}'`,t)}});var p=!1,d=!1,v=function(t,n,r){var i,o;try{i=document.querySelector(t)}catch(e){return u(`Cannot find parent element by selector '${t}'`,e),!1}if(!i)return a(e,`No parent element found by selector: '${t}'`),!1;try{i.contains(n)||i.append(n),n instanceof HTMLIFrameElement&&n.contentWindow&&(n.contentWindow.name=s),p=!0,function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e)}catch(e){return u(`Cannot append child to parent by selector '${t}'`,e),!1}return o=r,(Number.isNaN||window.isNaN)(o)||(l=setTimeout(function(){n.remove(),d=!0,clearTimeout(l)},r)),!0};v(t,c,o)||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{subtree:!0,childList:!0},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4,r=new MutationObserver(function(n,r){r.disconnect(),e(n,r),r.observe(document.documentElement,t)});r.observe(document.documentElement,t),"number"==typeof n&&setTimeout(function(){return r.disconnect()},n)}(function(e,n){(d||p||v(t,c,o))&&n.disconnect()})}}}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(n||o){var a=console.log;r?a(`${i}: ${t}`):a(`${i}:`,t)}}}({engine:"safari-extension",name:"trusted-create-element",args:["head","script","",'(()=>{try{document.currentScript.remove()}catch{}const t={apply:(t,e,o)=>{const n=o[0];return"function"==typeof n&&n.toString().includes("onAbnormalityDetected")&&(o[0]=function(){}),Reflect.apply(t,e,o)}};window.Promise.prototype.then=new Proxy(window.Promise.prototype.then,t)})();'],version:"3.0.0"},["head","script","",'(()=>{try{document.currentScript.remove()}catch{}const t={apply:(t,e,o)=>{const n=o[0];return"function"==typeof n&&n.toString().includes("onAbnormalityDetected")&&(o[0]=function(){}),Reflect.apply(t,e,o)}};window.Promise.prototype.then=new Proxy(window.Promise.prototype.then,t)})();']),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n,r){var i=window.setTimeout,o=function(e){var t=e||"",n=".?",r="/";if(""===t)return new RegExp(n);var i=t.lastIndexOf(r),o=t.substring(i+1),a=t.substring(0,i+1),s=function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}},c=(u=a,l=o,u.startsWith(r)&&u.endsWith(r)&&!u.endsWith("\\/")&&s(l)?l:"");var u,l;if(t.startsWith(r)&&t.endsWith(r)||c){return new RegExp((c?a:t).slice(1,-1),c)}var f=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(f)}(t);window.setTimeout=function(t,s){if(function(e){return e instanceof Function||"string"==typeof e}(t))o.test(t.toString())&&(l=s,function(e){return"*"===e}(u=n)||l===function(e){var t=1e3,n=parseInt(e,10);return a(n)?t:n}(u))&&(s*=function(e){var t=.05,n=.001,r=50,i=parseFloat(e),o=a(i)||(s=i,!(Number.isFinite||window.isFinite)(s))?t:i;var s;o<n&&(o=n);o>r&&(o=r);return o}(r),function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e));else{var c=`Scriptlet can't be applied because of invalid callback: '${String(t)}'`;!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(!n&&!o)return;var a=console.log;if(!r)return void a(`${i}:`,t);a(`${i}: ${t}`)}(e,c)}for(var u,l,f=arguments.length,p=new Array(f>2?f-2:0),d=2;d<f;d++)p[d-2]=arguments[d];return i.apply(window,[t,s,...p])}}function a(e){return(Number.isNaN||window.isNaN)(e)}}({engine:"safari-extension",name:"adjust-setTimeout",args:["[native code]","17000","0.001"],version:"3.0.0"},["[native code]","17000","0.001"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",b=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(["set-constant.js","ubo-set-constant.js","set.js","ubo-set.js","ubo-set-constant","ubo-set"].includes(e.name)&&(1!==i.length&&(v(r=parseInt(i,10))||!r)&&(o=i),i=void 0),t&&function(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,c=s.indexOf("#");-1!==c&&(s=s.slice(0,c));var u=t.split("\n").slice(2).map(function(e){return e.trim()}),l=u.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(l)for(var f=0;f<l.length;f+=1){if(o(e)&&l[f].startsWith(n)&&l[f].match(g(e)))return!0;if(a(e)&&l[f].startsWith(r)&&l[f].match(g(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&h(n),!0;var r=g(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");n.length&&n[0]!==RegExp.$1&&h(n);return function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}(i,(new Error).stack)){var m,w=!1;if("undefined"===n)m=void 0;else if("false"===n)m=!1;else if("true"===n)m=!0;else if("null"===n)m=null;else if("emptyArr"===n)m=[];else if("emptyObj"===n)m={};else if("noopFunc"===n)m=a;else if("noopCallbackFunc"===n)m=s;else if("trueFunc"===n)m=c;else if("falseFunc"===n)m=u;else if("throwFunc"===n)m=l;else if("noopPromiseResolve"===n)m=p;else if("noopPromiseReject"===n)m=f;else if(/^\d+$/.test(n)){if(v(m=parseFloat(n)))return;if(Math.abs(m)>32767)return}else if("-1"===n)m=-1;else if(""===n)m="";else if("yes"===n)m="yes";else{if("no"!==n)return;m="no"}if(["asFunction","asCallback","asResolved","asRejected"].includes(o))m={asFunction:e=>function(){return e},asCallback:e=>function(){return function(){return e}},asResolved:e=>Promise.resolve(e),asRejected:e=>Promise.reject(e)}[o](m);var $=!1,R=function(e){return $||($=void 0!==e&&void 0!==m&&typeof e!=typeof m&&null!==e)},x=function(n,r,i,o){if(!o.init(n[r]))return!1;var a,s=Object.getOwnPropertyDescriptor(n,r);if(s instanceof Object){if(!s.configurable)return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(!n&&!o)return;var a=console.log;if(!r)return void a(`${i}:`,t);a(`${i}: ${t}`)}(e,`Property '${r}' is not configurable`),!1;n[r]&&(n[r]=m),s.set instanceof Function&&(a=s.set)}return Object.defineProperty(n,r,{configurable:i,get:()=>o.get(),set(e){if(void 0!==a&&a(e),e instanceof Object){var n=t.split(".").slice(1);b&&!w&&(w=!0,e=new Proxy(e,{get:function(e,t,r){return n.reduce(function(e,t,n,r){var i=null==e?void 0:e[t];return n===r.length-1&&i!==m&&(e[t]=m),i||e},e),Reflect.get(e,t,r)}}))}o.set(e)}}),!0},j=function(t,n){var r=d(t,n),{base:i}=r,{prop:o,chain:a}=r,s={factValue:void 0,init(e){return this.factValue=e,!0},get(){return this.factValue},set(e){this.factValue!==e&&(this.factValue=e,e instanceof Object&&j(e,a))}},c={init:e=>!R(e),get:()=>m,set(e){R(e)&&(m=e)}};if(a)if(void 0===i||null!==i[o]){(i instanceof Object||"object"==typeof i)&&y(i)&&x(i,o,!0,s);var u=t[o];(u instanceof Object||"object"==typeof u&&null!==u)&&j(u,a),x(i,o,!0,s)}else x(i,o,!0,s);else x(i,o,!1,c)&&function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e)};j(window,t)}}function a(){}function s(){return a}function c(){return!0}function u(){return!1}function l(){throw new Error}function f(){return Promise.reject()}function p(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"basic";if("undefined"!=typeof Response){var n=new Response(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"{}",{status:200,statusText:"OK"});return"opaque"===t?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:""},url:{value:""},type:{value:t}}):Object.defineProperties(n,{url:{value:e},type:{value:t}}),Promise.resolve(n)}}function d(e,t){var n=t.indexOf(".");if(-1===n)return{base:e,prop:t};var r=t.slice(0,n);if(null===e)return{base:e,prop:r,chain:t};var i=e[r];return t=t.slice(n+1),(e instanceof Object||"object"==typeof e)&&y(e)||null===i?{base:e,prop:r,chain:t}:void 0!==i?d(i,t):(Object.defineProperty(e,r,{configurable:!0}),{base:e,prop:r,chain:t})}function v(e){return(Number.isNaN||window.isNaN)(e)}function y(e){return 0===Object.keys(e).length&&!e.prototype}function g(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function h(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"set-constant",args:["ytcfg.data_.EXPERIMENT_FLAGS.web_streaming_watch","false"],version:"3.0.0"},["ytcfg.data_.EXPERIMENT_FLAGS.web_streaming_watch","false"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r=void 0===t&&void 0===n,i={apply:function(i,o,u){var l=u[0],f=u[1],p=!1;return r?(a(e),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(!n&&!o)return;var a=console.log;if(!r)return void a(`${i}:`,t);a(`${i}: ${t}`)}(e,`setTimeout(${String(l)}, ${f})`,!0)):p=function(e){var{callback:t,delay:n,matchCallback:r,matchDelay:i}=e;if(!function(e){return e instanceof Function||"string"==typeof e}(t))return!1;if(!function(e){var t="!",n=e;null!=e&&e.startsWith(t)&&(n=e.slice(1));return function(e){var t,n="/",r=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(e);e[0]===n&&e[e.length-1]===n&&(r=e.slice(1,-1));try{t=new RegExp(r),t=!0}catch(e){t=!1}return t}(n)}(r)||i&&!function(e){var t="!",n=e;null!=e&&e.startsWith(t)&&(n=e.slice(1));var r=parseFloat(n);return!c(r)&&function(e){return(Number.isFinite||window.isFinite)(e)}(r)}(i))return!1;var{isInvertedMatch:o,matchRegexp:a}=function(e){var t="!",n=!!e&&(null==e?void 0:e.startsWith(t)),r=n?e.slice(1):e,i=function(e){var t=e||"",n=".?",r="/";if(""===t)return new RegExp(n);var i=t.lastIndexOf(r),o=t.substring(i+1),a=t.substring(0,i+1),s=function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}},c=(u=a,l=o,u.startsWith(r)&&u.endsWith(r)&&!u.endsWith("\\/")&&s(l)?l:"");var u,l;if(t.startsWith(r)&&t.endsWith(r)||c){return new RegExp((c?a:t).slice(1,-1),c)}var f=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(f)}(r);return{isInvertedMatch:n,matchRegexp:i,matchValue:r}}(r),{isInvertedDelayMatch:s,delayMatch:u}=function(e){var t="!",n=null==e?void 0:e.startsWith(t),r=n?e.slice(1):e,i=parseInt(r,10),o=c(i)?null:i;return{isInvertedDelayMatch:n,delayMatch:o}}(i),l=function(e){var t=Math.floor(parseInt(e,10));return"number"!=typeof t||c(t)?e:t}(n),f=!1,p=String(t);f=null===u?a.test(p)!==o:r?a.test(p)!==o&&l===u!==s:l===u!==s;return f}({callback:l,delay:f,matchCallback:t,matchDelay:n}),p&&(a(e),u[0]=s),i.apply(o,u)}};window.setTimeout=new Proxy(window.setTimeout,i)}function a(e){if(e.verbose){try{var t=console.trace.bind(console),n="[wBlock] ";"corelibs"===e.engine?n+=e.ruleText:(e.domainName&&(n+=`${e.domainName}`),e.args?n+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:n+=`#%#//scriptlet('${e.name}')`),t&&t(n)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}}function s(){}function c(e){return(Number.isNaN||window.isNaN)(e)}}({engine:"safari-extension",name:"prevent-setTimeout",args:["(),a,b)","5000"],version:"3.0.0"},["(),a,b)","5000"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){if("undefined"!=typeof Proxy){var r,i=window.XMLHttpRequest.prototype.open,o=window.XMLHttpRequest.prototype.getResponseHeader,p=window.XMLHttpRequest.prototype.getAllResponseHeaders,d="",v="",y={apply:function(n,i,o){if(r=c.apply(null,o),void 0===t?(u(e,`xhr( ${s(r)} )`,!0),a(e)):function(e,t,n){if(""===t||"*"===t)return!0;var r,i=(o=t,a=" ",s=":",c=function(e){return["url","method","headers","body","credentials","cache","redirect","referrer","referrerPolicy","integrity","keepalive","signal","mode"].includes(e)},l={},o.split(a).forEach(function(e){var t=e.indexOf(s),n=e.slice(0,t);if(c(n)){var r=e.slice(t+1);l[n]=r}else l.url=e}),l);var o,a,s,c,l;if(p=i,Object.values(p).every(function(e){return function(e){var t,n="/",r=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(e);e[0]===n&&e[e.length-1]===n&&(r=e.slice(1,-1));try{t=new RegExp(r),t=!0}catch(e){t=!1}return t}(e)})){var f=function(e){var t={},n=Object.keys(e);return n.forEach(function(n){t[n]=function(e){var t=e||"",n=".?",r="/";if(""===t)return new RegExp(n);var i=t.lastIndexOf(r),o=t.substring(i+1),a=t.substring(0,i+1),s=function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}},c=(u=a,l=o,u.startsWith(r)&&u.endsWith(r)&&!u.endsWith("\\/")&&s(l)?l:"");var u,l;if(t.startsWith(r)&&t.endsWith(r)||c){return new RegExp((c?a:t).slice(1,-1),c)}var f=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(f)}(e[n])}),t}(i);r=Object.keys(f).every(function(e){var t=f[e],r=n[e];return Object.prototype.hasOwnProperty.call(n,e)&&"string"==typeof r&&(null==t?void 0:t.test(r))})}else u(e,`Invalid parameter: ${t}`),r=!1;var p;return r}(e,t,r)&&(i.shouldBePrevented=!0,i.xhrData=r),i.shouldBePrevented){i.collectedHeaders=[];var l={apply:function(e,t,n){return t.collectedHeaders.push(n),Reflect.apply(e,t,n)}};i.setRequestHeader=new Proxy(i.setRequestHeader,l)}return Reflect.apply(n,i,o)}},g={apply:function(t,r,o){if(!r.shouldBePrevented)return Reflect.apply(t,r,o);if("blob"===r.responseType&&(d=new Blob),"arraybuffer"===r.responseType&&(d=new ArrayBuffer),n){var s=function(e){var t=e;if("true"===t)return t=Math.random().toString(36).slice(-10);if(t=t.replace("length:",""),!/^\d+-\d+$/.test(t))return null;var n=l(t.split("-")[0]),r=l(t.split("-")[1]);if(!f(n)||!f(r))return null;if(n>r){var i=n;n=r,r=i}if(r>5e5)return null;var o=(a=n,s=r,a=Math.ceil(a),s=Math.floor(s),Math.floor(Math.random()*(s-a+1)+a));var a,s;return t=function(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+=~",r=n.length,i=0;i<e;i+=1)t+=n.charAt(Math.floor(Math.random()*r));return t}(o)}(n);s?(d=s,v=s):u(e,`Invalid randomize parameter: '${n}'`)}var c=new XMLHttpRequest,p=function(t){if(4===t){var{responseURL:n,responseXML:i}=c;Object.defineProperties(r,{readyState:{value:4,writable:!1},statusText:{value:"OK",writable:!1},responseURL:{value:n||r.xhrData.url,writable:!1},responseXML:{value:i,writable:!1},status:{value:200,writable:!1},response:{value:d,writable:!1},responseText:{value:v,writable:!1}}),a(e)}else Object.defineProperty(r,"readyState",{value:t,writable:!0,configurable:!0});var o=new Event("readystatechange");r.dispatchEvent(o)};c.addEventListener("readystatechange",function(){p(1);var e=new ProgressEvent("loadstart");r.dispatchEvent(e),p(2),p(3);var t=new ProgressEvent("progress");r.dispatchEvent(t),p(4)}),setTimeout(function(){var e=new ProgressEvent("load");r.dispatchEvent(e);var t=new ProgressEvent("loadend");r.dispatchEvent(t)},1),i.apply(c,[r.xhrData.method,r.xhrData.url]),r.collectedHeaders.forEach(function(e){var t=e[0],n=e[1];c.setRequestHeader(t,n)})}},h={apply:function(e,t,n){if(!t.shouldBePrevented)return o.apply(t,n);if(!t.collectedHeaders.length)return null;var r=n[0].toLowerCase(),i=t.collectedHeaders.find(function(e){return e[0].toLowerCase()===r});return i?i[1]:null}},b={apply:function(e,t){return t.shouldBePrevented?t.collectedHeaders.length?t.collectedHeaders.map(function(e){var t=e[0],n=e[1];return`${t.toLowerCase()}: ${n}`}).join("\r\n"):"":p.call(t)}};XMLHttpRequest.prototype.open=new Proxy(XMLHttpRequest.prototype.open,y),XMLHttpRequest.prototype.send=new Proxy(XMLHttpRequest.prototype.send,g),XMLHttpRequest.prototype.getResponseHeader=new Proxy(XMLHttpRequest.prototype.getResponseHeader,h),XMLHttpRequest.prototype.getAllResponseHeaders=new Proxy(XMLHttpRequest.prototype.getAllResponseHeaders,b)}}function a(e){if(e.verbose){try{var t=console.trace.bind(console),n="[wBlock] ";"corelibs"===e.engine?n+=e.ruleText:(e.domainName&&(n+=`${e.domainName}`),e.args?n+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:n+=`#%#//scriptlet('${e.name}')`),t&&t(n)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}}function s(e){return e&&"object"==typeof e?function(e){return 0===Object.keys(e).length&&!e.prototype}(e)?"{}":Object.entries(e).map(function(e){var t=e[0],n=e[1],r=n;return n instanceof Object&&(r=`{ ${s(n)} }`),`${t}:"${r}"`}).join(" "):String(e)}function c(e,t,n,r,i){return{method:e,url:t,async:n,user:r,password:i}}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(n||o){var a=console.log;r?a(`${i}: ${t}`):a(`${i}:`,t)}}function l(e){var t,n=parseInt(e,10);return t=n,(Number.isNaN||window.isNaN)(t)?null:n}function f(e){return(Number.isFinite||window.isFinite)(e)}}({engine:"safari-extension",name:"prevent-xhr",args:["/\\/api\\/stats\\/atr\\?.+?&rt=\\d+\\.\\d+.+?&volume=\\d+&cbr=.+?&fexp=v1%[-%0-9C]{300,}&.+?&muted=\\d(&vis=3)?&docid=/ method:POST"],version:"3.0.0"},["/\\/api\\/stats\\/atr\\?.+?&rt=\\d+\\.\\d+.+?&volume=\\d+&cbr=.+?&fexp=v1%[-%0-9C]{300,}&.+?&muted=\\d(&vis=3)?&docid=/ method:POST"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",b=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(["set-constant.js","ubo-set-constant.js","set.js","ubo-set.js","ubo-set-constant","ubo-set"].includes(e.name)&&(1!==i.length&&(v(r=parseInt(i,10))||!r)&&(o=i),i=void 0),t&&function(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,c=s.indexOf("#");-1!==c&&(s=s.slice(0,c));var u=t.split("\n").slice(2).map(function(e){return e.trim()}),l=u.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(l)for(var f=0;f<l.length;f+=1){if(o(e)&&l[f].startsWith(n)&&l[f].match(g(e)))return!0;if(a(e)&&l[f].startsWith(r)&&l[f].match(g(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&h(n),!0;var r=g(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");n.length&&n[0]!==RegExp.$1&&h(n);return function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}(i,(new Error).stack)){var m,w=!1;if("undefined"===n)m=void 0;else if("false"===n)m=!1;else if("true"===n)m=!0;else if("null"===n)m=null;else if("emptyArr"===n)m=[];else if("emptyObj"===n)m={};else if("noopFunc"===n)m=a;else if("noopCallbackFunc"===n)m=s;else if("trueFunc"===n)m=c;else if("falseFunc"===n)m=u;else if("throwFunc"===n)m=l;else if("noopPromiseResolve"===n)m=p;else if("noopPromiseReject"===n)m=f;else if(/^\d+$/.test(n)){if(v(m=parseFloat(n)))return;if(Math.abs(m)>32767)return}else if("-1"===n)m=-1;else if(""===n)m="";else if("yes"===n)m="yes";else{if("no"!==n)return;m="no"}if(["asFunction","asCallback","asResolved","asRejected"].includes(o))m={asFunction:e=>function(){return e},asCallback:e=>function(){return function(){return e}},asResolved:e=>Promise.resolve(e),asRejected:e=>Promise.reject(e)}[o](m);var $=!1,R=function(e){return $||($=void 0!==e&&void 0!==m&&typeof e!=typeof m&&null!==e)},x=function(n,r,i,o){if(!o.init(n[r]))return!1;var a,s=Object.getOwnPropertyDescriptor(n,r);if(s instanceof Object){if(!s.configurable)return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(!n&&!o)return;var a=console.log;if(!r)return void a(`${i}:`,t);a(`${i}: ${t}`)}(e,`Property '${r}' is not configurable`),!1;n[r]&&(n[r]=m),s.set instanceof Function&&(a=s.set)}return Object.defineProperty(n,r,{configurable:i,get:()=>o.get(),set(e){if(void 0!==a&&a(e),e instanceof Object){var n=t.split(".").slice(1);b&&!w&&(w=!0,e=new Proxy(e,{get:function(e,t,r){return n.reduce(function(e,t,n,r){var i=null==e?void 0:e[t];return n===r.length-1&&i!==m&&(e[t]=m),i||e},e),Reflect.get(e,t,r)}}))}o.set(e)}}),!0},j=function(t,n){var r=d(t,n),{base:i}=r,{prop:o,chain:a}=r,s={factValue:void 0,init(e){return this.factValue=e,!0},get(){return this.factValue},set(e){this.factValue!==e&&(this.factValue=e,e instanceof Object&&j(e,a))}},c={init:e=>!R(e),get:()=>m,set(e){R(e)&&(m=e)}};if(a)if(void 0===i||null!==i[o]){(i instanceof Object||"object"==typeof i)&&y(i)&&x(i,o,!0,s);var u=t[o];(u instanceof Object||"object"==typeof u&&null!==u)&&j(u,a),x(i,o,!0,s)}else x(i,o,!0,s);else x(i,o,!1,c)&&function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e)};j(window,t)}}function a(){}function s(){return a}function c(){return!0}function u(){return!1}function l(){throw new Error}function f(){return Promise.reject()}function p(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"basic";if("undefined"!=typeof Response){var n=new Response(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"{}",{status:200,statusText:"OK"});return"opaque"===t?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:""},url:{value:""},type:{value:t}}):Object.defineProperties(n,{url:{value:e},type:{value:t}}),Promise.resolve(n)}}function d(e,t){var n=t.indexOf(".");if(-1===n)return{base:e,prop:t};var r=t.slice(0,n);if(null===e)return{base:e,prop:r,chain:t};var i=e[r];return t=t.slice(n+1),(e instanceof Object||"object"==typeof e)&&y(e)||null===i?{base:e,prop:r,chain:t}:void 0!==i?d(i,t):(Object.defineProperty(e,r,{configurable:!0}),{base:e,prop:r,chain:t})}function v(e){return(Number.isNaN||window.isNaN)(e)}function y(e){return 0===Object.keys(e).length&&!e.prototype}function g(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function h(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"set-constant",args:["google_ad_status","1"],version:"3.0.0"},["google_ad_status","1"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",b=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(["set-constant.js","ubo-set-constant.js","set.js","ubo-set.js","ubo-set-constant","ubo-set"].includes(e.name)&&(1!==i.length&&(v(r=parseInt(i,10))||!r)&&(o=i),i=void 0),t&&function(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,c=s.indexOf("#");-1!==c&&(s=s.slice(0,c));var u=t.split("\n").slice(2).map(function(e){return e.trim()}),l=u.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(l)for(var f=0;f<l.length;f+=1){if(o(e)&&l[f].startsWith(n)&&l[f].match(g(e)))return!0;if(a(e)&&l[f].startsWith(r)&&l[f].match(g(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&h(n),!0;var r=g(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");n.length&&n[0]!==RegExp.$1&&h(n);return function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}(i,(new Error).stack)){var m,w=!1;if("undefined"===n)m=void 0;else if("false"===n)m=!1;else if("true"===n)m=!0;else if("null"===n)m=null;else if("emptyArr"===n)m=[];else if("emptyObj"===n)m={};else if("noopFunc"===n)m=a;else if("noopCallbackFunc"===n)m=s;else if("trueFunc"===n)m=c;else if("falseFunc"===n)m=u;else if("throwFunc"===n)m=l;else if("noopPromiseResolve"===n)m=p;else if("noopPromiseReject"===n)m=f;else if(/^\d+$/.test(n)){if(v(m=parseFloat(n)))return;if(Math.abs(m)>32767)return}else if("-1"===n)m=-1;else if(""===n)m="";else if("yes"===n)m="yes";else{if("no"!==n)return;m="no"}if(["asFunction","asCallback","asResolved","asRejected"].includes(o))m={asFunction:e=>function(){return e},asCallback:e=>function(){return function(){return e}},asResolved:e=>Promise.resolve(e),asRejected:e=>Promise.reject(e)}[o](m);var $=!1,R=function(e){return $||($=void 0!==e&&void 0!==m&&typeof e!=typeof m&&null!==e)},x=function(n,r,i,o){if(!o.init(n[r]))return!1;var a,s=Object.getOwnPropertyDescriptor(n,r);if(s instanceof Object){if(!s.configurable)return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(!n&&!o)return;var a=console.log;if(!r)return void a(`${i}:`,t);a(`${i}: ${t}`)}(e,`Property '${r}' is not configurable`),!1;n[r]&&(n[r]=m),s.set instanceof Function&&(a=s.set)}return Object.defineProperty(n,r,{configurable:i,get:()=>o.get(),set(e){if(void 0!==a&&a(e),e instanceof Object){var n=t.split(".").slice(1);b&&!w&&(w=!0,e=new Proxy(e,{get:function(e,t,r){return n.reduce(function(e,t,n,r){var i=null==e?void 0:e[t];return n===r.length-1&&i!==m&&(e[t]=m),i||e},e),Reflect.get(e,t,r)}}))}o.set(e)}}),!0},j=function(t,n){var r=d(t,n),{base:i}=r,{prop:o,chain:a}=r,s={factValue:void 0,init(e){return this.factValue=e,!0},get(){return this.factValue},set(e){this.factValue!==e&&(this.factValue=e,e instanceof Object&&j(e,a))}},c={init:e=>!R(e),get:()=>m,set(e){R(e)&&(m=e)}};if(a)if(void 0===i||null!==i[o]){(i instanceof Object||"object"==typeof i)&&y(i)&&x(i,o,!0,s);var u=t[o];(u instanceof Object||"object"==typeof u&&null!==u)&&j(u,a),x(i,o,!0,s)}else x(i,o,!0,s);else x(i,o,!1,c)&&function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e)};j(window,t)}}function a(){}function s(){return a}function c(){return!0}function u(){return!1}function l(){throw new Error}function f(){return Promise.reject()}function p(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"basic";if("undefined"!=typeof Response){var n=new Response(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"{}",{status:200,statusText:"OK"});return"opaque"===t?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:""},url:{value:""},type:{value:t}}):Object.defineProperties(n,{url:{value:e},type:{value:t}}),Promise.resolve(n)}}function d(e,t){var n=t.indexOf(".");if(-1===n)return{base:e,prop:t};var r=t.slice(0,n);if(null===e)return{base:e,prop:r,chain:t};var i=e[r];return t=t.slice(n+1),(e instanceof Object||"object"==typeof e)&&y(e)||null===i?{base:e,prop:r,chain:t}:void 0!==i?d(i,t):(Object.defineProperty(e,r,{configurable:!0}),{base:e,prop:r,chain:t})}function v(e){return(Number.isNaN||window.isNaN)(e)}function y(e){return 0===Object.keys(e).length&&!e.prototype}function g(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function h(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"set-constant",args:["ytInitialPlayerResponse.adPlacements","undefined"],version:"3.0.0"},["ytInitialPlayerResponse.adPlacements","undefined"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",b=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(["set-constant.js","ubo-set-constant.js","set.js","ubo-set.js","ubo-set-constant","ubo-set"].includes(e.name)&&(1!==i.length&&(v(r=parseInt(i,10))||!r)&&(o=i),i=void 0),t&&function(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,c=s.indexOf("#");-1!==c&&(s=s.slice(0,c));var u=t.split("\n").slice(2).map(function(e){return e.trim()}),l=u.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(l)for(var f=0;f<l.length;f+=1){if(o(e)&&l[f].startsWith(n)&&l[f].match(g(e)))return!0;if(a(e)&&l[f].startsWith(r)&&l[f].match(g(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&h(n),!0;var r=g(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");n.length&&n[0]!==RegExp.$1&&h(n);return function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}(i,(new Error).stack)){var m,w=!1;if("undefined"===n)m=void 0;else if("false"===n)m=!1;else if("true"===n)m=!0;else if("null"===n)m=null;else if("emptyArr"===n)m=[];else if("emptyObj"===n)m={};else if("noopFunc"===n)m=a;else if("noopCallbackFunc"===n)m=s;else if("trueFunc"===n)m=c;else if("falseFunc"===n)m=u;else if("throwFunc"===n)m=l;else if("noopPromiseResolve"===n)m=p;else if("noopPromiseReject"===n)m=f;else if(/^\d+$/.test(n)){if(v(m=parseFloat(n)))return;if(Math.abs(m)>32767)return}else if("-1"===n)m=-1;else if(""===n)m="";else if("yes"===n)m="yes";else{if("no"!==n)return;m="no"}if(["asFunction","asCallback","asResolved","asRejected"].includes(o))m={asFunction:e=>function(){return e},asCallback:e=>function(){return function(){return e}},asResolved:e=>Promise.resolve(e),asRejected:e=>Promise.reject(e)}[o](m);var $=!1,R=function(e){return $||($=void 0!==e&&void 0!==m&&typeof e!=typeof m&&null!==e)},x=function(n,r,i,o){if(!o.init(n[r]))return!1;var a,s=Object.getOwnPropertyDescriptor(n,r);if(s instanceof Object){if(!s.configurable)return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(!n&&!o)return;var a=console.log;if(!r)return void a(`${i}:`,t);a(`${i}: ${t}`)}(e,`Property '${r}' is not configurable`),!1;n[r]&&(n[r]=m),s.set instanceof Function&&(a=s.set)}return Object.defineProperty(n,r,{configurable:i,get:()=>o.get(),set(e){if(void 0!==a&&a(e),e instanceof Object){var n=t.split(".").slice(1);b&&!w&&(w=!0,e=new Proxy(e,{get:function(e,t,r){return n.reduce(function(e,t,n,r){var i=null==e?void 0:e[t];return n===r.length-1&&i!==m&&(e[t]=m),i||e},e),Reflect.get(e,t,r)}}))}o.set(e)}}),!0},j=function(t,n){var r=d(t,n),{base:i}=r,{prop:o,chain:a}=r,s={factValue:void 0,init(e){return this.factValue=e,!0},get(){return this.factValue},set(e){this.factValue!==e&&(this.factValue=e,e instanceof Object&&j(e,a))}},c={init:e=>!R(e),get:()=>m,set(e){R(e)&&(m=e)}};if(a)if(void 0===i||null!==i[o]){(i instanceof Object||"object"==typeof i)&&y(i)&&x(i,o,!0,s);var u=t[o];(u instanceof Object||"object"==typeof u&&null!==u)&&j(u,a),x(i,o,!0,s)}else x(i,o,!0,s);else x(i,o,!1,c)&&function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e)};j(window,t)}}function a(){}function s(){return a}function c(){return!0}function u(){return!1}function l(){throw new Error}function f(){return Promise.reject()}function p(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"basic";if("undefined"!=typeof Response){var n=new Response(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"{}",{status:200,statusText:"OK"});return"opaque"===t?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:""},url:{value:""},type:{value:t}}):Object.defineProperties(n,{url:{value:e},type:{value:t}}),Promise.resolve(n)}}function d(e,t){var n=t.indexOf(".");if(-1===n)return{base:e,prop:t};var r=t.slice(0,n);if(null===e)return{base:e,prop:r,chain:t};var i=e[r];return t=t.slice(n+1),(e instanceof Object||"object"==typeof e)&&y(e)||null===i?{base:e,prop:r,chain:t}:void 0!==i?d(i,t):(Object.defineProperty(e,r,{configurable:!0}),{base:e,prop:r,chain:t})}function v(e){return(Number.isNaN||window.isNaN)(e)}function y(e){return 0===Object.keys(e).length&&!e.prototype}function g(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function h(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"set-constant",args:["ytInitialPlayerResponse.adSlots","undefined"],version:"3.0.0"},["ytInitialPlayerResponse.adSlots","undefined"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",b=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(["set-constant.js","ubo-set-constant.js","set.js","ubo-set.js","ubo-set-constant","ubo-set"].includes(e.name)&&(1!==i.length&&(v(r=parseInt(i,10))||!r)&&(o=i),i=void 0),t&&function(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,c=s.indexOf("#");-1!==c&&(s=s.slice(0,c));var u=t.split("\n").slice(2).map(function(e){return e.trim()}),l=u.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(l)for(var f=0;f<l.length;f+=1){if(o(e)&&l[f].startsWith(n)&&l[f].match(g(e)))return!0;if(a(e)&&l[f].startsWith(r)&&l[f].match(g(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&h(n),!0;var r=g(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");n.length&&n[0]!==RegExp.$1&&h(n);return function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}(i,(new Error).stack)){var m,w=!1;if("undefined"===n)m=void 0;else if("false"===n)m=!1;else if("true"===n)m=!0;else if("null"===n)m=null;else if("emptyArr"===n)m=[];else if("emptyObj"===n)m={};else if("noopFunc"===n)m=a;else if("noopCallbackFunc"===n)m=s;else if("trueFunc"===n)m=c;else if("falseFunc"===n)m=u;else if("throwFunc"===n)m=l;else if("noopPromiseResolve"===n)m=p;else if("noopPromiseReject"===n)m=f;else if(/^\d+$/.test(n)){if(v(m=parseFloat(n)))return;if(Math.abs(m)>32767)return}else if("-1"===n)m=-1;else if(""===n)m="";else if("yes"===n)m="yes";else{if("no"!==n)return;m="no"}if(["asFunction","asCallback","asResolved","asRejected"].includes(o))m={asFunction:e=>function(){return e},asCallback:e=>function(){return function(){return e}},asResolved:e=>Promise.resolve(e),asRejected:e=>Promise.reject(e)}[o](m);var $=!1,R=function(e){return $||($=void 0!==e&&void 0!==m&&typeof e!=typeof m&&null!==e)},x=function(n,r,i,o){if(!o.init(n[r]))return!1;var a,s=Object.getOwnPropertyDescriptor(n,r);if(s instanceof Object){if(!s.configurable)return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(!n&&!o)return;var a=console.log;if(!r)return void a(`${i}:`,t);a(`${i}: ${t}`)}(e,`Property '${r}' is not configurable`),!1;n[r]&&(n[r]=m),s.set instanceof Function&&(a=s.set)}return Object.defineProperty(n,r,{configurable:i,get:()=>o.get(),set(e){if(void 0!==a&&a(e),e instanceof Object){var n=t.split(".").slice(1);b&&!w&&(w=!0,e=new Proxy(e,{get:function(e,t,r){return n.reduce(function(e,t,n,r){var i=null==e?void 0:e[t];return n===r.length-1&&i!==m&&(e[t]=m),i||e},e),Reflect.get(e,t,r)}}))}o.set(e)}}),!0},j=function(t,n){var r=d(t,n),{base:i}=r,{prop:o,chain:a}=r,s={factValue:void 0,init(e){return this.factValue=e,!0},get(){return this.factValue},set(e){this.factValue!==e&&(this.factValue=e,e instanceof Object&&j(e,a))}},c={init:e=>!R(e),get:()=>m,set(e){R(e)&&(m=e)}};if(a)if(void 0===i||null!==i[o]){(i instanceof Object||"object"==typeof i)&&y(i)&&x(i,o,!0,s);var u=t[o];(u instanceof Object||"object"==typeof u&&null!==u)&&j(u,a),x(i,o,!0,s)}else x(i,o,!0,s);else x(i,o,!1,c)&&function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e)};j(window,t)}}function a(){}function s(){return a}function c(){return!0}function u(){return!1}function l(){throw new Error}function f(){return Promise.reject()}function p(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"basic";if("undefined"!=typeof Response){var n=new Response(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"{}",{status:200,statusText:"OK"});return"opaque"===t?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:""},url:{value:""},type:{value:t}}):Object.defineProperties(n,{url:{value:e},type:{value:t}}),Promise.resolve(n)}}function d(e,t){var n=t.indexOf(".");if(-1===n)return{base:e,prop:t};var r=t.slice(0,n);if(null===e)return{base:e,prop:r,chain:t};var i=e[r];return t=t.slice(n+1),(e instanceof Object||"object"==typeof e)&&y(e)||null===i?{base:e,prop:r,chain:t}:void 0!==i?d(i,t):(Object.defineProperty(e,r,{configurable:!0}),{base:e,prop:r,chain:t})}function v(e){return(Number.isNaN||window.isNaN)(e)}function y(e){return 0===Object.keys(e).length&&!e.prototype}function g(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function h(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"set-constant",args:["ytInitialPlayerResponse.playerAds","undefined"],version:"3.0.0"},["ytInitialPlayerResponse.playerAds","undefined"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",b=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(["set-constant.js","ubo-set-constant.js","set.js","ubo-set.js","ubo-set-constant","ubo-set"].includes(e.name)&&(1!==i.length&&(v(r=parseInt(i,10))||!r)&&(o=i),i=void 0),t&&function(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,c=s.indexOf("#");-1!==c&&(s=s.slice(0,c));var u=t.split("\n").slice(2).map(function(e){return e.trim()}),l=u.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(l)for(var f=0;f<l.length;f+=1){if(o(e)&&l[f].startsWith(n)&&l[f].match(g(e)))return!0;if(a(e)&&l[f].startsWith(r)&&l[f].match(g(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&h(n),!0;var r=g(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");n.length&&n[0]!==RegExp.$1&&h(n);return function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}(i,(new Error).stack)){var m,w=!1;if("undefined"===n)m=void 0;else if("false"===n)m=!1;else if("true"===n)m=!0;else if("null"===n)m=null;else if("emptyArr"===n)m=[];else if("emptyObj"===n)m={};else if("noopFunc"===n)m=a;else if("noopCallbackFunc"===n)m=s;else if("trueFunc"===n)m=c;else if("falseFunc"===n)m=u;else if("throwFunc"===n)m=l;else if("noopPromiseResolve"===n)m=p;else if("noopPromiseReject"===n)m=f;else if(/^\d+$/.test(n)){if(v(m=parseFloat(n)))return;if(Math.abs(m)>32767)return}else if("-1"===n)m=-1;else if(""===n)m="";else if("yes"===n)m="yes";else{if("no"!==n)return;m="no"}if(["asFunction","asCallback","asResolved","asRejected"].includes(o))m={asFunction:e=>function(){return e},asCallback:e=>function(){return function(){return e}},asResolved:e=>Promise.resolve(e),asRejected:e=>Promise.reject(e)}[o](m);var $=!1,R=function(e){return $||($=void 0!==e&&void 0!==m&&typeof e!=typeof m&&null!==e)},x=function(n,r,i,o){if(!o.init(n[r]))return!1;var a,s=Object.getOwnPropertyDescriptor(n,r);if(s instanceof Object){if(!s.configurable)return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(!n&&!o)return;var a=console.log;if(!r)return void a(`${i}:`,t);a(`${i}: ${t}`)}(e,`Property '${r}' is not configurable`),!1;n[r]&&(n[r]=m),s.set instanceof Function&&(a=s.set)}return Object.defineProperty(n,r,{configurable:i,get:()=>o.get(),set(e){if(void 0!==a&&a(e),e instanceof Object){var n=t.split(".").slice(1);b&&!w&&(w=!0,e=new Proxy(e,{get:function(e,t,r){return n.reduce(function(e,t,n,r){var i=null==e?void 0:e[t];return n===r.length-1&&i!==m&&(e[t]=m),i||e},e),Reflect.get(e,t,r)}}))}o.set(e)}}),!0},j=function(t,n){var r=d(t,n),{base:i}=r,{prop:o,chain:a}=r,s={factValue:void 0,init(e){return this.factValue=e,!0},get(){return this.factValue},set(e){this.factValue!==e&&(this.factValue=e,e instanceof Object&&j(e,a))}},c={init:e=>!R(e),get:()=>m,set(e){R(e)&&(m=e)}};if(a)if(void 0===i||null!==i[o]){(i instanceof Object||"object"==typeof i)&&y(i)&&x(i,o,!0,s);var u=t[o];(u instanceof Object||"object"==typeof u&&null!==u)&&j(u,a),x(i,o,!0,s)}else x(i,o,!0,s);else x(i,o,!1,c)&&function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e)};j(window,t)}}function a(){}function s(){return a}function c(){return!0}function u(){return!1}function l(){throw new Error}function f(){return Promise.reject()}function p(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"basic";if("undefined"!=typeof Response){var n=new Response(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"{}",{status:200,statusText:"OK"});return"opaque"===t?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:""},url:{value:""},type:{value:t}}):Object.defineProperties(n,{url:{value:e},type:{value:t}}),Promise.resolve(n)}}function d(e,t){var n=t.indexOf(".");if(-1===n)return{base:e,prop:t};var r=t.slice(0,n);if(null===e)return{base:e,prop:r,chain:t};var i=e[r];return t=t.slice(n+1),(e instanceof Object||"object"==typeof e)&&y(e)||null===i?{base:e,prop:r,chain:t}:void 0!==i?d(i,t):(Object.defineProperty(e,r,{configurable:!0}),{base:e,prop:r,chain:t})}function v(e){return(Number.isNaN||window.isNaN)(e)}function y(e){return 0===Object.keys(e).length&&!e.prototype}function g(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function h(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"set-constant",args:["playerResponse.adPlacements","undefined"],version:"3.0.0"},["playerResponse.adPlacements","undefined"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=l(t),o=l(n),a={nativeStringify:window.JSON.stringify},s=JSON.parse,c=function(){for(var t=arguments.length,n=new Array(t),c=0;c<t;c++)n[c]=arguments[c];var l=s.apply(JSON,n);return u(e,l,i,o,r,a)};c.toString=s.toString.bind(s),JSON.parse=c;var f=Response.prototype.json;"undefined"!=typeof Response&&(Response.prototype.json=function(){return f.apply(this).then(function(t){return u(e,t,i,o,r,a)})})}function a(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,c=s.indexOf("#");-1!==c&&(s=s.slice(0,c));var u=t.split("\n").slice(2).map(function(e){return e.trim()}),l=u.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(l)for(var p=0;p<l.length;p+=1){if(o(e)&&l[p].startsWith(n)&&l[p].match(f(e)))return!0;if(a(e)&&l[p].startsWith(r)&&l[p].match(f(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&p(n),!0;var r=f(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");return n.length&&n[0]!==RegExp.$1&&p(n),function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=t.indexOf(".");if(-1===i){if("*"===t||"[]"===t)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.push({base:e,prop:o});else r.push({base:e,prop:t});return r}var a=t.slice(0,i);if("[]"===a&&Array.isArray(e)||"*"===a&&e instanceof Object){var c=t.slice(i+1);Object.keys(e).forEach(function(t){s(e[t],c,n,r)})}Array.isArray(e)&&e.forEach(function(e){void 0!==e&&s(e,t,n,r)});var u=e[a];return t=t.slice(i+1),void 0!==u&&s(u,t,n,r),r}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(n||o){var a=console.log;r?a(`${i}: ${t}`):a(`${i}:`,t)}}function u(e,t,n,r,i,o){var{nativeStringify:u}=o;if(0===n.length&&0===r.length)return c(e,`${window.location.hostname}\n${u(t,null,2)}\nStack trace:\n${(new Error).stack}`,!0),t&&"object"==typeof t&&c(e,t,!0,!1),t;try{if(!1===function(e,t,n,r,i,o){if(!t)return!1;var u,{nativeStringify:l}=o;if(0===n.length&&r.length>0){var p=l(t);if(f(r.join("")).test(p))return c(e,`${window.location.hostname}\n${l(t,null,2)}\nStack trace:\n${(new Error).stack}`,!0),t&&"object"==typeof t&&c(e,t,!0,!1),u=!1}if(i&&!a(i,(new Error).stack||""))return u=!1;for(var d,v=[".*.","*.",".*",".[].","[].",".[]"],y=function(){var e=r[g],n=e.split(".").pop(),i=v.some(function(t){return e.includes(t)}),o=s(t,e,i);if(!o.length)return{v:u=!1};u=!i;for(var a=0;a<o.length;a+=1){var c="string"==typeof n&&void 0!==o[a].base[n];u=i?c||u:c&&u}},g=0;g<r.length;g+=1)if(d=y())return d.v;return u}(e,t,n,r,i,o))return t;n.forEach(function(n){s(t,n,!0).forEach(function(t){void 0!==t&&t.base&&(delete t.base[t.prop],function(e){if(e.verbose){try{var t=console.trace.bind(console),n="[wBlock] ";"corelibs"===e.engine?n+=e.ruleText:(e.domainName&&(n+=`${e.domainName}`),e.args?n+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:n+=`#%#//scriptlet('${e.name}')`),t&&t(n)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}}(e))})})}catch(t){c(e,t)}return t}function l(e){return"string"==typeof e&&void 0!==e&&""!==e?e.split(/ +/):[]}function f(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function p(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"json-prune",args:["playerResponse.adPlacements playerResponse.adSlots","playerResponse.streamingData.serverAbrStreamingUrl"],version:"3.0.0"},["playerResponse.adPlacements playerResponse.adSlots","playerResponse.streamingData.serverAbrStreamingUrl"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";if("undefined"!=typeof Proxy){var o,d=!t&&!n,v=u(t),y=u(n),g=window.JSON.parse,h=window.JSON.stringify,b=window.XMLHttpRequest.prototype.open,m=window.XMLHttpRequest.prototype.send,w={apply:function(e,t,n){return t.collectedHeaders.push(n),Reflect.apply(e,t,n)}},$={apply:function(t,n,i){return o=l.apply(null,i),(function(e,t,n){if(""===t||"*"===t)return!0;var r,i=(o=t,a=" ",u=":",l=function(e){return["url","method","headers","body","credentials","cache","redirect","referrer","referrerPolicy","integrity","keepalive","signal","mode"].includes(e)},f={},o.split(a).forEach(function(e){var t=e.indexOf(u),n=e.slice(0,t);if(l(n)){var r=e.slice(t+1);f[n]=r}else f.url=e}),f);var o,a,u,l,f;if(d=i,Object.values(d).every(function(e){return function(e){var t,n="/",r=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(e);e[0]===n&&e[e.length-1]===n&&(r=e.slice(1,-1));try{t=new RegExp(r),t=!0}catch(e){t=!1}return t}(e)})){var p=function(e){var t={},n=Object.keys(e);return n.forEach(function(n){t[n]=c(e[n])}),t}(i);r=Object.keys(p).every(function(e){var t=p[e],r=n[e];return Object.prototype.hasOwnProperty.call(n,e)&&"string"==typeof r&&(null==t?void 0:t.test(r))})}else s(e,`Invalid parameter: ${t}`),r=!1;var d;return r}(e,r,o)||d)&&(n.xhrShouldBePruned=!0,n.headersReceived=!!n.headersReceived),n.xhrShouldBePruned&&!n.headersReceived&&(n.headersReceived=!0,n.collectedHeaders=[],n.setRequestHeader=new Proxy(n.setRequestHeader,w)),Reflect.apply(t,n,i)}},R={apply:function(t,n,r){var u=(new Error).stack||"";if(!n.xhrShouldBePruned||i&&!f(i,u))return Reflect.apply(t,n,r);var l=new XMLHttpRequest;l.addEventListener("readystatechange",function(){if(4===l.readyState){var{readyState:t,response:r,responseText:o,responseURL:b,responseXML:m,status:w,statusText:$}=l,R=o||r;if("string"==typeof R||"object"==typeof R){var x;if("string"==typeof R)try{var j=g(R);if(d)s(e,`${window.location.hostname}\n${h(j,null,2)}\nStack trace:\n${u}`,!0),s(e,j,!0,!1),x=R;else{x=function(e,t,n,r,i,o){var{nativeStringify:u}=o;if(0===n.length&&0===r.length)return s(e,`${window.location.hostname}\n${u(t,null,2)}\nStack trace:\n${(new Error).stack}`,!0),t&&"object"==typeof t&&s(e,t,!0,!1),t;try{if(!1===function(e,t,n,r,i,o){if(!t)return!1;var a,{nativeStringify:u}=o;if(0===n.length&&r.length>0){var l=u(t);if(c(r.join("")).test(l))return s(e,`${window.location.hostname}\n${u(t,null,2)}\nStack trace:\n${(new Error).stack}`,!0),t&&"object"==typeof t&&s(e,t,!0,!1),a=!1}if(i&&!f(i,(new Error).stack||""))return a=!1;for(var d,v=[".*.","*.",".*",".[].","[].",".[]"],y=function(){var e=r[g],n=e.split(".").pop(),i=v.some(function(t){return e.includes(t)}),o=p(t,e,i);if(!o.length)return{v:a=!1};a=!i;for(var s=0;s<o.length;s+=1){var c="string"==typeof n&&void 0!==o[s].base[n];a=i?c||a:c&&a}},g=0;g<r.length;g+=1)if(d=y())return d.v;return a}(e,t,n,r,i,o))return t;n.forEach(function(n){p(t,n,!0).forEach(function(t){void 0!==t&&t.base&&(delete t.base[t.prop],a(e))})})}catch(t){s(e,t)}return t}(e,j,v,y,i="",{nativeStringify:h});try{var{responseType:O}=n;switch(O){case"":case"text":x=h(x);break;case"arraybuffer":x=(new TextEncoder).encode(h(x)).buffer;break;case"blob":x=new Blob([h(x)])}}catch(t){s(e,`Response body cannot be converted to reponse type: '${R}'`),x=R}}}catch(t){s(e,`Response body cannot be converted to json: '${R}'`),x=R}Object.defineProperties(n,{readyState:{value:t,writable:!1},responseURL:{value:b,writable:!1},responseXML:{value:m,writable:!1},status:{value:w,writable:!1},statusText:{value:$,writable:!1},response:{value:x,writable:!1},responseText:{value:x,writable:!1}}),setTimeout(function(){var e=new Event("readystatechange");n.dispatchEvent(e);var t=new Event("load");n.dispatchEvent(t);var r=new Event("loadend");n.dispatchEvent(r)},1),a(e)}}}),b.apply(l,[o.method,o.url,Boolean(o.async)]),n.collectedHeaders.forEach(function(e){l.setRequestHeader(e[0],e[1])}),n.collectedHeaders=[];try{m.call(l,r)}catch(e){return Reflect.apply(t,n,r)}}};XMLHttpRequest.prototype.open=new Proxy(XMLHttpRequest.prototype.open,$),XMLHttpRequest.prototype.send=new Proxy(XMLHttpRequest.prototype.send,R)}}function a(e){if(e.verbose){try{var t=console.trace.bind(console),n="[wBlock] ";"corelibs"===e.engine?n+=e.ruleText:(e.domainName&&(n+=`${e.domainName}`),e.args?n+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:n+=`#%#//scriptlet('${e.name}')`),t&&t(n)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(n||o){var a=console.log;r?a(`${i}: ${t}`):a(`${i}:`,t)}}function c(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function u(e){return"string"==typeof e&&void 0!==e&&""!==e?e.split(/ +/):[]}function l(e,t,n,r,i){return{method:e,url:t,async:n,user:r,password:i}}function f(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,u=s.indexOf("#");-1!==u&&(s=s.slice(0,u));var l=t.split("\n").slice(2).map(function(e){return e.trim()}),f=l.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(f)for(var p=0;p<f.length;p+=1){if(o(e)&&f[p].startsWith(n)&&f[p].match(c(e)))return!0;if(a(e)&&f[p].startsWith(r)&&f[p].match(c(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&d(n),!0;var r=c(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");return n.length&&n[0]!==RegExp.$1&&d(n),function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=t.indexOf(".");if(-1===i){if("*"===t||"[]"===t)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.push({base:e,prop:o});else r.push({base:e,prop:t});return r}var a=t.slice(0,i);if("[]"===a&&Array.isArray(e)||"*"===a&&e instanceof Object){var s=t.slice(i+1);Object.keys(e).forEach(function(t){p(e[t],s,n,r)})}Array.isArray(e)&&e.forEach(function(e){void 0!==e&&p(e,t,n,r)});var c=e[a];return t=t.slice(i+1),void 0!==c&&p(c,t,n,r),r}function d(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"json-prune-xhr-response",args:["playerResponse.adPlacements playerResponse.playerAds playerResponse.adSlots adPlacements playerAds adSlots","","/playlist\\?list=|\\/player(?!.*(get_drm_license))|watch\\?[tv]=|get_watch\\?/"],version:"3.0.0"},["playerResponse.adPlacements playerResponse.playerAds playerResponse.adSlots adPlacements playerAds adSlots","","/playlist\\?list=|\\/player(?!.*(get_drm_license))|watch\\?[tv]=|get_watch\\?/"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";if("undefined"!=typeof fetch&&"undefined"!=typeof Proxy&&"undefined"!=typeof Response){var o=u(t),d=u(n),v=window.JSON.stringify,y=window.Request.prototype.clone,g=window.Response.prototype.clone,h=window.fetch,b={apply:async function(t,n,u){var b,m,w,$=function(e,t){var n,r,i={},o=e[0];if(o instanceof Request){var a=t.call(o),s=(c=a,u=["url","method","headers","body","credentials","cache","redirect","referrer","referrerPolicy","integrity","keepalive","signal","mode"].map(function(e){return[e,c[e]]}),Object.fromEntries(u));n=s.url,r=s}else n=o,r=e[1];var c,u;if(i.url=n,r instanceof Object){Object.keys(r).forEach(function(e){i[e]=r[e]})}return i}(u,y);if(!function(e,t,n){if(""===t||"*"===t)return!0;var r,i=(o=t,a=" ",c=":",u=function(e){return["url","method","headers","body","credentials","cache","redirect","referrer","referrerPolicy","integrity","keepalive","signal","mode"].includes(e)},f={},o.split(a).forEach(function(e){var t=e.indexOf(c),n=e.slice(0,t);if(u(n)){var r=e.slice(t+1);f[n]=r}else f.url=e}),f);var o,a,c,u,f;if(d=i,Object.values(d).every(function(e){return function(e){var t,n="/",r=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(e);e[0]===n&&e[e.length-1]===n&&(r=e.slice(1,-1));try{t=new RegExp(r),t=!0}catch(e){t=!1}return t}(e)})){var p=function(e){var t={},n=Object.keys(e);return n.forEach(function(n){t[n]=l(e[n])}),t}(i);r=Object.keys(p).every(function(e){var t=p[e],r=n[e];return Object.prototype.hasOwnProperty.call(n,e)&&"string"==typeof r&&(null==t?void 0:t.test(r))})}else s(e,`Invalid parameter: ${t}`),r=!1;var d;return r}(e,r,$))return Reflect.apply(t,n,u);try{b=await h.apply(null,u),m=g.call(b)}catch(r){return s(e,`Could not make an original fetch request: ${$.url}`),Reflect.apply(t,n,u)}try{w=await b.json()}catch(t){var R=`Response body can't be converted to json: ${c($)}`;return s(e,R),m}var x=function(e,t,n,r,i,o){var{nativeStringify:c}=o;if(0===n.length&&0===r.length)return s(e,`${window.location.hostname}\n${c(t,null,2)}\nStack trace:\n${(new Error).stack}`,!0),t&&"object"==typeof t&&s(e,t,!0,!1),t;try{if(!1===function(e,t,n,r,i,o){if(!t)return!1;var a,{nativeStringify:c}=o;if(0===n.length&&r.length>0){var u=c(t);if(l(r.join("")).test(u))return s(e,`${window.location.hostname}\n${c(t,null,2)}\nStack trace:\n${(new Error).stack}`,!0),t&&"object"==typeof t&&s(e,t,!0,!1),a=!1}if(i&&!function(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,c=s.indexOf("#");-1!==c&&(s=s.slice(0,c));var u=t.split("\n").slice(2).map(function(e){return e.trim()}),f=u.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(f)for(var p=0;p<f.length;p+=1){if(o(e)&&f[p].startsWith(n)&&f[p].match(l(e)))return!0;if(a(e)&&f[p].startsWith(r)&&f[p].match(l(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&p(n),!0;var r=l(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");n.length&&n[0]!==RegExp.$1&&p(n);return function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}(i,(new Error).stack||""))return a=!1;for(var d,v=[".*.","*.",".*",".[].","[].",".[]"],y=function(){var e=r[g],n=e.split(".").pop(),i=v.some(function(t){return e.includes(t)}),o=f(t,e,i);if(!o.length)return{v:a=!1};a=!i;for(var s=0;s<o.length;s+=1){var c="string"==typeof n&&void 0!==o[s].base[n];a=i?c||a:c&&a}},g=0;g<r.length;g+=1)if(d=y())return d.v;return a}(e,t,n,r,i,o))return t;n.forEach(function(n){f(t,n,!0).forEach(function(t){void 0!==t&&t.base&&(delete t.base[t.prop],a(e))})})}catch(t){s(e,t)}return t}(e,w,o,d,i,{nativeStringify:v,nativeRequestClone:y,nativeResponseClone:g,nativeFetch:h}),j=function(e,t){var{bodyUsed:n,headers:r,ok:i,redirected:o,status:a,statusText:s,type:c,url:u}=e,l=new Response(t,{status:a,statusText:s,headers:r});return Object.defineProperties(l,{url:{value:u},type:{value:c},ok:{value:i},bodyUsed:{value:n},redirected:{value:o}}),l}(b,v(x));return a(e),j}};window.fetch=new Proxy(window.fetch,b)}}function a(e){if(e.verbose){try{var t=console.trace.bind(console),n="[wBlock] ";"corelibs"===e.engine?n+=e.ruleText:(e.domainName&&(n+=`${e.domainName}`),e.args?n+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:n+=`#%#//scriptlet('${e.name}')`),t&&t(n)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(n||o){var a=console.log;r?a(`${i}: ${t}`):a(`${i}:`,t)}}function c(e){return e&&"object"==typeof e?function(e){return 0===Object.keys(e).length&&!e.prototype}(e)?"{}":Object.entries(e).map(function(e){var t=e[0],n=e[1],r=n;return n instanceof Object&&(r=`{ ${c(n)} }`),`${t}:"${r}"`}).join(" "):String(e)}function u(e){return"string"==typeof e&&void 0!==e&&""!==e?e.split(/ +/):[]}function l(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=t.indexOf(".");if(-1===i){if("*"===t||"[]"===t)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.push({base:e,prop:o});else r.push({base:e,prop:t});return r}var a=t.slice(0,i);if("[]"===a&&Array.isArray(e)||"*"===a&&e instanceof Object){var s=t.slice(i+1);Object.keys(e).forEach(function(t){f(e[t],s,n,r)})}Array.isArray(e)&&e.forEach(function(e){void 0!==e&&f(e,t,n,r)});var c=e[a];return t=t.slice(i+1),void 0!==c&&f(c,t,n,r),r}function p(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"json-prune-fetch-response",args:["playerResponse.adPlacements playerResponse.playerAds playerResponse.adSlots adPlacements playerAds adSlots","","/playlist\\?list=|player\\?|watch\\?[tv]=/"],version:"3.0.0"},["playerResponse.adPlacements playerResponse.playerAds playerResponse.adSlots adPlacements playerAds adSlots","","/playlist\\?list=|player\\?|watch\\?[tv]=/"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=l(t),o=l(n),a={nativeStringify:window.JSON.stringify},s=JSON.parse,c=function(){for(var t=arguments.length,n=new Array(t),c=0;c<t;c++)n[c]=arguments[c];var l=s.apply(JSON,n);return u(e,l,i,o,r,a)};c.toString=s.toString.bind(s),JSON.parse=c;var f=Response.prototype.json;"undefined"!=typeof Response&&(Response.prototype.json=function(){return f.apply(this).then(function(t){return u(e,t,i,o,r,a)})})}function a(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,c=s.indexOf("#");-1!==c&&(s=s.slice(0,c));var u=t.split("\n").slice(2).map(function(e){return e.trim()}),l=u.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(l)for(var p=0;p<l.length;p+=1){if(o(e)&&l[p].startsWith(n)&&l[p].match(f(e)))return!0;if(a(e)&&l[p].startsWith(r)&&l[p].match(f(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&p(n),!0;var r=f(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");return n.length&&n[0]!==RegExp.$1&&p(n),function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=t.indexOf(".");if(-1===i){if("*"===t||"[]"===t)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.push({base:e,prop:o});else r.push({base:e,prop:t});return r}var a=t.slice(0,i);if("[]"===a&&Array.isArray(e)||"*"===a&&e instanceof Object){var c=t.slice(i+1);Object.keys(e).forEach(function(t){s(e[t],c,n,r)})}Array.isArray(e)&&e.forEach(function(e){void 0!==e&&s(e,t,n,r)});var u=e[a];return t=t.slice(i+1),void 0!==u&&s(u,t,n,r),r}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(n||o){var a=console.log;r?a(`${i}: ${t}`):a(`${i}:`,t)}}function u(e,t,n,r,i,o){var{nativeStringify:u}=o;if(0===n.length&&0===r.length)return c(e,`${window.location.hostname}\n${u(t,null,2)}\nStack trace:\n${(new Error).stack}`,!0),t&&"object"==typeof t&&c(e,t,!0,!1),t;try{if(!1===function(e,t,n,r,i,o){if(!t)return!1;var u,{nativeStringify:l}=o;if(0===n.length&&r.length>0){var p=l(t);if(f(r.join("")).test(p))return c(e,`${window.location.hostname}\n${l(t,null,2)}\nStack trace:\n${(new Error).stack}`,!0),t&&"object"==typeof t&&c(e,t,!0,!1),u=!1}if(i&&!a(i,(new Error).stack||""))return u=!1;for(var d,v=[".*.","*.",".*",".[].","[].",".[]"],y=function(){var e=r[g],n=e.split(".").pop(),i=v.some(function(t){return e.includes(t)}),o=s(t,e,i);if(!o.length)return{v:u=!1};u=!i;for(var a=0;a<o.length;a+=1){var c="string"==typeof n&&void 0!==o[a].base[n];u=i?c||u:c&&u}},g=0;g<r.length;g+=1)if(d=y())return d.v;return u}(e,t,n,r,i,o))return t;n.forEach(function(n){s(t,n,!0).forEach(function(t){void 0!==t&&t.base&&(delete t.base[t.prop],function(e){if(e.verbose){try{var t=console.trace.bind(console),n="[wBlock] ";"corelibs"===e.engine?n+=e.ruleText:(e.domainName&&(n+=`${e.domainName}`),e.args?n+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:n+=`#%#//scriptlet('${e.name}')`),t&&t(n)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}}(e))})})}catch(t){c(e,t)}return t}function l(e){return"string"==typeof e&&void 0!==e&&""!==e?e.split(/ +/):[]}function f(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function p(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"json-prune",args:["entries.[-].command.reelWatchEndpoint.adClientParams.isAd"],version:"3.0.0"},["entries.[-].command.reelWatchEndpoint.adClientParams.isAd"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",b=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(["set-constant.js","ubo-set-constant.js","set.js","ubo-set.js","ubo-set-constant","ubo-set"].includes(e.name)&&(1!==i.length&&(v(r=parseInt(i,10))||!r)&&(o=i),i=void 0),t&&function(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,c=s.indexOf("#");-1!==c&&(s=s.slice(0,c));var u=t.split("\n").slice(2).map(function(e){return e.trim()}),l=u.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(l)for(var f=0;f<l.length;f+=1){if(o(e)&&l[f].startsWith(n)&&l[f].match(g(e)))return!0;if(a(e)&&l[f].startsWith(r)&&l[f].match(g(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&h(n),!0;var r=g(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");n.length&&n[0]!==RegExp.$1&&h(n);return function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}(i,(new Error).stack)){var m,w=!1;if("undefined"===n)m=void 0;else if("false"===n)m=!1;else if("true"===n)m=!0;else if("null"===n)m=null;else if("emptyArr"===n)m=[];else if("emptyObj"===n)m={};else if("noopFunc"===n)m=a;else if("noopCallbackFunc"===n)m=s;else if("trueFunc"===n)m=c;else if("falseFunc"===n)m=u;else if("throwFunc"===n)m=l;else if("noopPromiseResolve"===n)m=p;else if("noopPromiseReject"===n)m=f;else if(/^\d+$/.test(n)){if(v(m=parseFloat(n)))return;if(Math.abs(m)>32767)return}else if("-1"===n)m=-1;else if(""===n)m="";else if("yes"===n)m="yes";else{if("no"!==n)return;m="no"}if(["asFunction","asCallback","asResolved","asRejected"].includes(o))m={asFunction:e=>function(){return e},asCallback:e=>function(){return function(){return e}},asResolved:e=>Promise.resolve(e),asRejected:e=>Promise.reject(e)}[o](m);var $=!1,R=function(e){return $||($=void 0!==e&&void 0!==m&&typeof e!=typeof m&&null!==e)},x=function(n,r,i,o){if(!o.init(n[r]))return!1;var a,s=Object.getOwnPropertyDescriptor(n,r);if(s instanceof Object){if(!s.configurable)return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(!n&&!o)return;var a=console.log;if(!r)return void a(`${i}:`,t);a(`${i}: ${t}`)}(e,`Property '${r}' is not configurable`),!1;n[r]&&(n[r]=m),s.set instanceof Function&&(a=s.set)}return Object.defineProperty(n,r,{configurable:i,get:()=>o.get(),set(e){if(void 0!==a&&a(e),e instanceof Object){var n=t.split(".").slice(1);b&&!w&&(w=!0,e=new Proxy(e,{get:function(e,t,r){return n.reduce(function(e,t,n,r){var i=null==e?void 0:e[t];return n===r.length-1&&i!==m&&(e[t]=m),i||e},e),Reflect.get(e,t,r)}}))}o.set(e)}}),!0},j=function(t,n){var r=d(t,n),{base:i}=r,{prop:o,chain:a}=r,s={factValue:void 0,init(e){return this.factValue=e,!0},get(){return this.factValue},set(e){this.factValue!==e&&(this.factValue=e,e instanceof Object&&j(e,a))}},c={init:e=>!R(e),get:()=>m,set(e){R(e)&&(m=e)}};if(a)if(void 0===i||null!==i[o]){(i instanceof Object||"object"==typeof i)&&y(i)&&x(i,o,!0,s);var u=t[o];(u instanceof Object||"object"==typeof u&&null!==u)&&j(u,a),x(i,o,!0,s)}else x(i,o,!0,s);else x(i,o,!1,c)&&function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e)};j(window,t)}}function a(){}function s(){return a}function c(){return!0}function u(){return!1}function l(){throw new Error}function f(){return Promise.reject()}function p(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"basic";if("undefined"!=typeof Response){var n=new Response(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"{}",{status:200,statusText:"OK"});return"opaque"===t?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:""},url:{value:""},type:{value:t}}):Object.defineProperties(n,{url:{value:e},type:{value:t}}),Promise.resolve(n)}}function d(e,t){var n=t.indexOf(".");if(-1===n)return{base:e,prop:t};var r=t.slice(0,n);if(null===e)return{base:e,prop:r,chain:t};var i=e[r];return t=t.slice(n+1),(e instanceof Object||"object"==typeof e)&&y(e)||null===i?{base:e,prop:r,chain:t}:void 0!==i?d(i,t):(Object.defineProperty(e,r,{configurable:!0}),{base:e,prop:r,chain:t})}function v(e){return(Number.isNaN||window.isNaN)(e)}function y(e){return 0===Object.keys(e).length&&!e.prototype}function g(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function h(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"set-constant",args:["navigator.getBattery","noopPromiseResolve"],version:"3.0.0"},["navigator.getBattery","noopPromiseResolve"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e){var t="browsingTopics";Document instanceof Object!=!1&&Object.prototype.hasOwnProperty.call(Document.prototype,t)&&Document.prototype[t]instanceof Function!=!1&&(Document.prototype[t]=function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"{}",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"basic";if("undefined"==typeof Response)return;var r=new Response(e,{status:200,statusText:"OK"});"opaque"===n?Object.defineProperties(r,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:""},url:{value:""},type:{value:n}}):Object.defineProperties(r,{url:{value:t},type:{value:n}});return Promise.resolve(r)}("[]")},function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e))}}({engine:"safari-extension",name:"no-topics",args:[],version:"3.0.0"},[]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",b=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(["set-constant.js","ubo-set-constant.js","set.js","ubo-set.js","ubo-set-constant","ubo-set"].includes(e.name)&&(1!==i.length&&(v(r=parseInt(i,10))||!r)&&(o=i),i=void 0),t&&function(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,c=s.indexOf("#");-1!==c&&(s=s.slice(0,c));var u=t.split("\n").slice(2).map(function(e){return e.trim()}),l=u.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(l)for(var f=0;f<l.length;f+=1){if(o(e)&&l[f].startsWith(n)&&l[f].match(g(e)))return!0;if(a(e)&&l[f].startsWith(r)&&l[f].match(g(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&h(n),!0;var r=g(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");n.length&&n[0]!==RegExp.$1&&h(n);return function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}(i,(new Error).stack)){var m,w=!1;if("undefined"===n)m=void 0;else if("false"===n)m=!1;else if("true"===n)m=!0;else if("null"===n)m=null;else if("emptyArr"===n)m=[];else if("emptyObj"===n)m={};else if("noopFunc"===n)m=a;else if("noopCallbackFunc"===n)m=s;else if("trueFunc"===n)m=c;else if("falseFunc"===n)m=u;else if("throwFunc"===n)m=l;else if("noopPromiseResolve"===n)m=p;else if("noopPromiseReject"===n)m=f;else if(/^\d+$/.test(n)){if(v(m=parseFloat(n)))return;if(Math.abs(m)>32767)return}else if("-1"===n)m=-1;else if(""===n)m="";else if("yes"===n)m="yes";else{if("no"!==n)return;m="no"}if(["asFunction","asCallback","asResolved","asRejected"].includes(o))m={asFunction:e=>function(){return e},asCallback:e=>function(){return function(){return e}},asResolved:e=>Promise.resolve(e),asRejected:e=>Promise.reject(e)}[o](m);var $=!1,R=function(e){return $||($=void 0!==e&&void 0!==m&&typeof e!=typeof m&&null!==e)},x=function(n,r,i,o){if(!o.init(n[r]))return!1;var a,s=Object.getOwnPropertyDescriptor(n,r);if(s instanceof Object){if(!s.configurable)return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(!n&&!o)return;var a=console.log;if(!r)return void a(`${i}:`,t);a(`${i}: ${t}`)}(e,`Property '${r}' is not configurable`),!1;n[r]&&(n[r]=m),s.set instanceof Function&&(a=s.set)}return Object.defineProperty(n,r,{configurable:i,get:()=>o.get(),set(e){if(void 0!==a&&a(e),e instanceof Object){var n=t.split(".").slice(1);b&&!w&&(w=!0,e=new Proxy(e,{get:function(e,t,r){return n.reduce(function(e,t,n,r){var i=null==e?void 0:e[t];return n===r.length-1&&i!==m&&(e[t]=m),i||e},e),Reflect.get(e,t,r)}}))}o.set(e)}}),!0},j=function(t,n){var r=d(t,n),{base:i}=r,{prop:o,chain:a}=r,s={factValue:void 0,init(e){return this.factValue=e,!0},get(){return this.factValue},set(e){this.factValue!==e&&(this.factValue=e,e instanceof Object&&j(e,a))}},c={init:e=>!R(e),get:()=>m,set(e){R(e)&&(m=e)}};if(a)if(void 0===i||null!==i[o]){(i instanceof Object||"object"==typeof i)&&y(i)&&x(i,o,!0,s);var u=t[o];(u instanceof Object||"object"==typeof u&&null!==u)&&j(u,a),x(i,o,!0,s)}else x(i,o,!0,s);else x(i,o,!1,c)&&function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e)};j(window,t)}}function a(){}function s(){return a}function c(){return!0}function u(){return!1}function l(){throw new Error}function f(){return Promise.reject()}function p(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"basic";if("undefined"!=typeof Response){var n=new Response(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"{}",{status:200,statusText:"OK"});return"opaque"===t?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:""},url:{value:""},type:{value:t}}):Object.defineProperties(n,{url:{value:e},type:{value:t}}),Promise.resolve(n)}}function d(e,t){var n=t.indexOf(".");if(-1===n)return{base:e,prop:t};var r=t.slice(0,n);if(null===e)return{base:e,prop:r,chain:t};var i=e[r];return t=t.slice(n+1),(e instanceof Object||"object"==typeof e)&&y(e)||null===i?{base:e,prop:r,chain:t}:void 0!==i?d(i,t):(Object.defineProperty(e,r,{configurable:!0}),{base:e,prop:r,chain:t})}function v(e){return(Number.isNaN||window.isNaN)(e)}function y(e){return 0===Object.keys(e).length&&!e.prototype}function g(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function h(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"set-constant",args:["navigator.privateAttribution","undefined"],version:"3.0.0"},["navigator.privateAttribution","undefined"]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e){if(Document instanceof Object!=!1){for(var t={joinAdInterestGroup:c,runAdAuction:u,leaveAdInterestGroup:c,clearOriginJoinedAdInterestGroups:c,createAuctionNonce:a,updateAdInterestGroups:s},n=0,r=Object.keys(t);n<r.length;n++){var i=r[n],o=Navigator.prototype;Object.prototype.hasOwnProperty.call(o,i)&&o[i]instanceof Function!=!1&&(o[i]=t[i])}!function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e)}}function a(){return""}function s(){}function c(){return Promise.resolve(void 0)}function u(){return Promise.resolve(null)}}({engine:"safari-extension",name:"no-protected-audience",args:[],version:"3.0.0"},[]),function(e,t){var n="done",r=e.uniqueId+e.name+"_"+(Array.isArray(t)?t.join("_"):"");if(!e.uniqueId||Window.prototype.toString[r]!==n){var i=t?[].concat(e).concat(t):[e];try{o.apply(this,i),e.uniqueId&&Object.defineProperty(Window.prototype.toString,r,{value:n,enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}function o(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",b=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(["set-constant.js","ubo-set-constant.js","set.js","ubo-set.js","ubo-set-constant","ubo-set"].includes(e.name)&&(1!==i.length&&(v(r=parseInt(i,10))||!r)&&(o=i),i=void 0),t&&function(e,t){if(!e||""===e)return!0;var n=function(){try{for(var e=[],t=1;t<10;t+=1){var n=`$${t}`;if(!RegExp[n])break;e.push(RegExp[n])}return e}catch(e){return[]}}();if(function(e,t){var n="inlineScript",r="injectedScript",i="<anonymous>",o=function(e){return e.includes(n)},a=function(e){return e.includes(r)};if(!o(e)&&!a(e))return!1;var s=window.location.href,c=s.indexOf("#");-1!==c&&(s=s.slice(0,c));var u=t.split("\n").slice(2).map(function(e){return e.trim()}),l=u.map(function(e){var t,o=/(.*?@)?(\S+)(:\d+)(:\d+)\)?$/.exec(e);if(o){var a,c,u=o[2],l=o[3],f=o[4];if(null!==(a=u)&&void 0!==a&&a.startsWith("(")&&(u=u.slice(1)),null!==(c=u)&&void 0!==c&&c.startsWith(i)){var p;u=r;var d=void 0!==o[1]?o[1].slice(0,-1):e.slice(0,o.index).trim();null!==(p=d)&&void 0!==p&&p.startsWith("at")&&(d=d.slice(2).trim()),t=`${d} ${u}${l}${f}`.trim()}else t=u===s?`${n}${l}${f}`.trim():`${u}${l}${f}`.trim()}else t=e;return t});if(l)for(var f=0;f<l.length;f+=1){if(o(e)&&l[f].startsWith(n)&&l[f].match(g(e)))return!0;if(a(e)&&l[f].startsWith(r)&&l[f].match(g(e)))return!0}return!1}(e,t))return n.length&&n[0]!==RegExp.$1&&h(n),!0;var r=g(e),i=t.split("\n").slice(2).map(function(e){return e.trim()}).join("\n");n.length&&n[0]!==RegExp.$1&&h(n);return function(){var e=Object.getOwnPropertyDescriptor(RegExp.prototype,"test"),t=null==e?void 0:e.value;if(e&&"function"==typeof e.value)return t;throw new Error("RegExp.prototype.test is not a function")}().call(r,i)}(i,(new Error).stack)){var m,w=!1;if("undefined"===n)m=void 0;else if("false"===n)m=!1;else if("true"===n)m=!0;else if("null"===n)m=null;else if("emptyArr"===n)m=[];else if("emptyObj"===n)m={};else if("noopFunc"===n)m=a;else if("noopCallbackFunc"===n)m=s;else if("trueFunc"===n)m=c;else if("falseFunc"===n)m=u;else if("throwFunc"===n)m=l;else if("noopPromiseResolve"===n)m=p;else if("noopPromiseReject"===n)m=f;else if(/^\d+$/.test(n)){if(v(m=parseFloat(n)))return;if(Math.abs(m)>32767)return}else if("-1"===n)m=-1;else if(""===n)m="";else if("yes"===n)m="yes";else{if("no"!==n)return;m="no"}if(["asFunction","asCallback","asResolved","asRejected"].includes(o))m={asFunction:e=>function(){return e},asCallback:e=>function(){return function(){return e}},asResolved:e=>Promise.resolve(e),asRejected:e=>Promise.reject(e)}[o](m);var $=!1,R=function(e){return $||($=void 0!==e&&void 0!==m&&typeof e!=typeof m&&null!==e)},x=function(n,r,i,o){if(!o.init(n[r]))return!1;var a,s=Object.getOwnPropertyDescriptor(n,r);if(s instanceof Object){if(!s.configurable)return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:i,verbose:o}=e;if(!n&&!o)return;var a=console.log;if(!r)return void a(`${i}:`,t);a(`${i}: ${t}`)}(e,`Property '${r}' is not configurable`),!1;n[r]&&(n[r]=m),s.set instanceof Function&&(a=s.set)}return Object.defineProperty(n,r,{configurable:i,get:()=>o.get(),set(e){if(void 0!==a&&a(e),e instanceof Object){var n=t.split(".").slice(1);b&&!w&&(w=!0,e=new Proxy(e,{get:function(e,t,r){return n.reduce(function(e,t,n,r){var i=null==e?void 0:e[t];return n===r.length-1&&i!==m&&(e[t]=m),i||e},e),Reflect.get(e,t,r)}}))}o.set(e)}}),!0},j=function(t,n){var r=d(t,n),{base:i}=r,{prop:o,chain:a}=r,s={factValue:void 0,init(e){return this.factValue=e,!0},get(){return this.factValue},set(e){this.factValue!==e&&(this.factValue=e,e instanceof Object&&j(e,a))}},c={init:e=>!R(e),get:()=>m,set(e){R(e)&&(m=e)}};if(a)if(void 0===i||null!==i[o]){(i instanceof Object||"object"==typeof i)&&y(i)&&x(i,o,!0,s);var u=t[o];(u instanceof Object||"object"==typeof u&&null!==u)&&j(u,a),x(i,o,!0,s)}else x(i,o,!0,s);else x(i,o,!1,c)&&function(e){var t="[wBlock]";if(!e.verbose)return;try{var n=console.trace.bind(console),r=`${t} `;"corelibs"===e.engine?r+=e.ruleText:(e.domainName&&(r+=`${e.domainName}`),e.args?r+=`#%#//scriptlet('${e.name}', '${e.args.join("', '")}')`:r+=`#%#//scriptlet('${e.name}')`),n&&n(r)}catch(e){}"function"==typeof window.__debug&&window.__debug(e)}(e)};j(window,t)}}function a(){}function s(){return a}function c(){return!0}function u(){return!1}function l(){throw new Error}function f(){return Promise.reject()}function p(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"basic";if("undefined"!=typeof Response){var n=new Response(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"{}",{status:200,statusText:"OK"});return"opaque"===t?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:""},url:{value:""},type:{value:t}}):Object.defineProperties(n,{url:{value:e},type:{value:t}}),Promise.resolve(n)}}function d(e,t){var n=t.indexOf(".");if(-1===n)return{base:e,prop:t};var r=t.slice(0,n);if(null===e)return{base:e,prop:r,chain:t};var i=e[r];return t=t.slice(n+1),(e instanceof Object||"object"==typeof e)&&y(e)||null===i?{base:e,prop:r,chain:t}:void 0!==i?d(i,t):(Object.defineProperty(e,r,{configurable:!0}),{base:e,prop:r,chain:t})}function v(e){return(Number.isNaN||window.isNaN)(e)}function y(e){return 0===Object.keys(e).length&&!e.prototype}function g(e){var t=e||"",n="/";if(""===t)return new RegExp(".?");var r,i,o=t.lastIndexOf(n),a=t.substring(o+1),s=t.substring(0,o+1),c=(i=a,(r=s).startsWith(n)&&r.endsWith(n)&&!r.endsWith("\\/")&&function(e){if(!e)return!1;try{return new RegExp("",e),!0}catch(e){return!1}}(i)?i:"");if(t.startsWith(n)&&t.endsWith(n)||c)return new RegExp((c?s:t).slice(1,-1),c);var u=t.replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(u)}function h(e){if(e.length)try{var t="";t=1===e.length?`(${e[0]})`:e.reduce(function(e,t,n){return 1===n?`(${e}),(${t})`:`${e},(${t})`});var n=new RegExp(t);e.toString().replace(n,"")}catch(e){var r=`Failed to restore RegExp values: ${e}`;console.log(r)}}}({engine:"safari-extension",name:"set-constant",args:["ms.auth.initialize","undefined"],version:"3.0.0"},["ms.auth.initialize","undefined"])}();