static.wikia.nocookie.net Open in urlscan Pro
74.120.188.204  Public Scan

URL: https://static.wikia.nocookie.net/silversurfer/prod/latest/pathfinder.js
Submission: On October 14 via api from IT — Scanned from IT

Form analysis 0 forms found in the DOM

Text Content

(()=>{var e,t,n,r,o={4485:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{$r:()=>p,Do:()=>c,Vp:()=>f,xs:()=>s,yi:()=>l}),i=function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=function(e,t,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=c(e,t,n);if("normal"===u.type){if(r=n.done?g:f,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=g,n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var l="suspendedStart",f="suspendedYield",p="executing",g="completed",v={};function m(){}function h(){}function y(){}var w={};u(w,i,(function(){return this}));var b=Object.getPrototypeOf,M=b&&b(b(A([])));M&&M!==n&&r.call(M,i)&&(w=M);var C=y.prototype=m.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,i,a,s){var u=c(e[o],e,i);if("throw"!==u.type){var d=u.arg,l=d.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){d.value=e,a(d)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function _(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return h.prototype=y,u(C,"constructor",y),u(y,"constructor",h),h.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(d(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),u(C,s,"Generator"),u(C,i,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),d=r.call(a,"finallyLoc");if(u&&d){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},i({exports:{}});var i,a=function(){function e(){this.id=e.UNKNOWN_USER,this.language=void 0}var t=e.prototype;return t.reset=function(){this.id=e.UNKNOWN_USER,this.language=void 0},e.getDefault=function(){return new e},e.getAnon=function(){var t=new e;return t.id=e.ANON_USER,t},t.apply=function(t){return t instanceof e&&(this.id=t.id,null!=t&&t.language&&(this.language=t.language)),this},e.fromContext=function(t){return e.getDefault().apply(t)},e.fromTransport=function(t){var n=e.getDefault();if("object"==typeof t&&null!=t&&t.id){var r=t.id;"number"==typeof r?n.id=r:"string"==typeof r&&(n.id=parseInt(r,10)),n.language=null==t?void 0:t.lang}return n},e.fromWindow=function(){var t=window;return null!=t&&t._ulc&&"object"==typeof t._ulc?e.fromTransport(t._ulc):e.getDefault()},t.toTransport=function(){return{id:this.id,lang:this.language}},t.toString=function(){return JSON.stringify(this.toTransport())},t.updateWindow=function(){window._ulc=this.toTransport()},t.toScript=function(){return"window._ulc = "+this.toString()+";"},o(e,[{key:"lang",get:function(){return null==this?void 0:this.language}},{key:"isUnknown",get:function(){return this.id===e.UNKNOWN_USER}},{key:"isAnon",get:function(){return this.isUnknown||this.id===e.ANON_USER}},{key:"anon",get:function(){return this.isAnon}}]),e}();a.UNKNOWN_USER=-1,a.ANON_USER=0;var s={UNKNOWN:"",MEDIAWIKI:"mw",DISCUSSIONS:"dis",TRIVIA:"trivia",F2:"f2",FANHUB:"fanhub",VIDEO:"video",AUTH:"auth"},u=function(){function e(){this.$time=0,this.product=s.UNKNOWN,this.$time=Date.now()}var t=e.prototype;return t.reset=function(){this.product=s.UNKNOWN,this.productId=void 0,this.productVariant=void 0,this.productCategory=void 0,this.page=void 0,this.pageId=void 0,this.pageLanguage=void 0,this.adTags=void 0,this.$time=Date.now()},e.getDefault=function(){return new e},t.zeroTime=function(){return this.$time=0,this},t.apply=function(t){return t instanceof e&&(t.isUnknown||(this.product=t.product),null!=t&&t.productId&&(this.productId=t.productId),null!=t&&t.productVariant&&(this.productVariant=t.productVariant),null!=t&&t.productCategory&&(this.productCategory=t.productCategory),null!=t&&t.page&&(this.page=t.page),null!=t&&t.pageId&&(this.pageId=t.pageId),null!=t&&t.pageLanguage&&(this.pageLanguage=t.pageLanguage),null!=t&&t.adTags&&(this.adTags=t.adTags),null!=t&&t.$time&&"number"==typeof t.$time&&t.$time>0&&(this.$time=t.$time)),this},e.fromContext=function(t){return e.getDefault().apply(t)},e.fromTransport=function(t){var n=e.getDefault();return t.p&&(n.product=t.p,n.productId=null==t?void 0:t.pId,n.productVariant=null==t?void 0:t.pVar,n.productCategory=null==t?void 0:t.pCat,n.page=null==t?void 0:t.pg,n.pageId=null==t?void 0:t.pgId,n.pageLanguage=null==t?void 0:t.pgLang,n.adTags=null==t?void 0:t.adTags,n.$time="number"==typeof t.time&&t.time>0?t.time:Date.now()),n},e.fromWindow=function(){var t=window;return null!=t&&t._plc&&"object"==typeof t._plc?e.fromTransport(t._plc):e.getDefault()},t.toTransport=function(e){void 0===e&&(e=!1);var t={p:this.product,pId:null==this?void 0:this.productId,pVar:null==this?void 0:this.productVariant,pCat:null==this?void 0:this.productCategory,pg:null==this?void 0:this.page,pgId:null==this?void 0:this.pageId,pgLang:null==this?void 0:this.pageLanguage,adTags:null==this?void 0:this.adTags,time:this.time};return e&&(t.time=0),t},t.toString=function(e){return void 0===e&&(e=!1),JSON.stringify(this.toTransport(e))},t.updateWindow=function(e){void 0===e&&(e=!1);var t=window;t._plc=this.toTransport(e),e&&(t._plc.time=Date.now())},t.toScript=function(e){void 0===e&&(e=!1);var t="window._plc = "+this.toString(e)+";";return e&&(t+="window._plc.time = Date.now();"),t},o(e,[{key:"time",get:function(){return this.$time}},{key:"isUnknown",get:function(){return!this.isKnown}},{key:"isKnown",get:function(){return"string"==typeof this.product&&this.product!==s.UNKNOWN}},{key:"isValid",get:function(){return this.isKnown&&this.$time>0}}]),e}();function d(e){var t=document.cookie.match(RegExp("(?:^|;\\s*)"+e.replace(/([.*+?\^$(){}|\[\]\/\\])/g,"\\$1")+"=([^;]*)"));return t?t[1]:void 0}function c(){return d("wikia_beacon_id")||""}function l(){return d("exp_bucket")||""}function f(){var e;return null!=(e=function(e){try{var t,n=decodeURIComponent(null!=(t=d("Geo"))?t:"{}");return n?JSON.parse(n):void 0}catch(e){return}}())?e:{}}function p(){return u.fromWindow()}},1206:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(n),a=Math.max(o,i),s=0,u=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(o,i)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]<u[1][a])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var o=e[n];if(t(o,n))return o}},e.assign=function(e){for(var t,n,r=e,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var s=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=i.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(91))&&r.__esModule?r:{default:r},i=n(18);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){}var t,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],null&&a(t.prototype,null),n&&a(t,n),e}();t.default=s,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=u(n(92)),o=u(n(93)),i=u(n(94)),a=u(n(95)),s=u(n(17));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,o={},i=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(o[t]=a,i+=1):"object"==typeof a&&(n[t]=a,r+=1)})),r>0){var a=Object.keys(n),u=s.default.find(a,(function(e){return t.isOS(e)}));if(u){var d=this.satisfies(n[u]);if(void 0!==d)return d}var c=s.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var l=this.satisfies(n[c]);if(void 0!==l)return l}}if(i>0){var f=Object.keys(o),p=s.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==p)return this.compareVersion(o[p])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),o=s.default.getBrowserTypeByAlias(r);return t&&o&&(r=o.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(o,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=d,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},n=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=o.default.getMacOSVersionName(t),r={name:i.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=o.default.getAndroidVersionName(t),r={name:i.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:i.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},n=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},n=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},n=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},n=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,u){(u=u||{}).arrayMerge=u.arrayMerge||o,u.isMergeableObject=u.isMergeableObject||t,u.cloneUnlessOtherwiseSpecified=r;var d=Array.isArray(n);return d===Array.isArray(e)?d?u.arrayMerge(e,n,u):function(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}(e,n,u):r(n,u)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var u=s;e.exports=u},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},1078:(e,t,n)=>{var r=n(2488),o=n(7285);e.exports=function e(t,n,i,a,s){var u=-1,d=t.length;for(i||(i=o),s||(s=[]);++u<d;){var c=t[u];n>0&&i(c)?n>1?e(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},7285:(e,t,n)=>{var r=n(2705),o=n(5694),i=n(1469),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},5639:(e,t,n)=>{var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},5564:(e,t,n)=>{var r=n(1078);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},5694:e=>{e.exports=function(){return!1}},1469:e=>{var t=Array.isArray;e.exports=t},7334:(e,t,n)=>{var r=n(9833);e.exports=function(e){return r(e).toLowerCase()}},9833:e=>{e.exports=function(e){return e}},7841:()=>{Promise.any=e=>new Promise(((t,n)=>{var r,o,i,a,s;let u=!1,d=[],c=0,l=[];function f(e){u||(u=!0,t(e))}function p(e){l.push(e),l.length>=c&&n(l)}for(let t of e)c++,d.push(t);for(let e of d)void 0!==(null===(r=e)||void 0===r?void 0:r.then)||void 0!==(null===(o=e)||void 0===o?void 0:o.catch)?(null===(a=null===(i=e)||void 0===i?void 0:i.then((e=>f(e))))||void 0===a||a.catch((e=>{})),null===(s=e)||void 0===s||s.catch((e=>p(e)))):f(e)}))},9094:(e,t,n)=>{"use strict";function r(){return!!window.location.search.includes("ss_debug")||o()}n.d(t,{L1:()=>r,RG:()=>o});const o=()=>/^localhost/.test(location.hostname)||"127.0.0.1"===location.hostname},3338:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p,_E:()=>g});const r=Object.values({SilverSurfer:"silversurfer",PathfinderExperiments:"pf-experiments",ClientSide:"browser-client-",Custom:"custom-"});var o,i;!function(e){e.CATEGORY="category",e.EVENT="event",e.LABEL="label",e.ACTION="action",e.VALUE="value",e.NON_INTERACTIVE="nonInteractive",e.IS_DEBUG="isDebug"}(o||(o={})),function(e){e.EXPERIMENT_VARIANT="experimentVariant",e.SS_VERSION="silverSurferVersion",e.AD_PVUID="pvUID",e.BEACON_ID="beaconId"}(i||(i={}));const a=[...Object.values(i),...Object.values(o)];function s(){var e,t,n;return null!==(n=null===(t=null===(e=null===window||void 0===window?void 0:window.google_tag_manager)||void 0===e?void 0:e.dataLayer)||void 0===t?void 0:t.gtmDom)&&void 0!==n&&n}function u(){s()&&(window.__datalayer_pre=window.__datalayer_pre||[],window.__datalayer_pre.length>0&&(window.__datalayer_pre_interval_id&&window.clearInterval(window.__datalayer_pre_interval_id),window.__datalayer_pre.forEach((e=>window.dataLayer.push(e))),window.__datalayer_pre=[]),window.__datalayer_pre_interval_id&&(window.clearInterval(window.__datalayer_pre_interval_id),window.__datalayer_pre_interval_id=null))}function d(e){if(e.isDebug=!!e.isDebug,e.event){if(window.dataLayer=window.dataLayer||[],e.category||(e.category=e.event),e.label||(e.label=e.category),e.isDebug){t=e.event,r.some((e=>t.includes(e)))||console.warn("[Tracking] GTM event not caught",e.event);const n=a;Object.keys(e).every((t=>!(!n.includes(t)&&!e.skipValidation&&(console.warn("[Tracking] Element not enabled in DW",t),1))))}return function(e){return window.__datalayer_pre=window.__datalayer_pre||[],s()?(u(),window.dataLayer.push(e)):window.__datalayer_pre.push(e)}(e)}var t;return console.error("[Tracking] missing 'event' field",e),null}window.__datalayer_pre_interval_id||s()||(window.__datalayer_pre_interval_id=window.setInterval(u,500));var c=n(9094);function l(e,t){const n=n=>{const r=Object.assign(Object.assign({nonInteractive:!0},e),n);return t(r),r};return n.click=t=>n(Object.assign(Object.assign(Object.assign({},e),t),{action:"click",nonInteractive:!1})),n.impression=t=>n(Object.assign(Object.assign(Object.assign({},e),t),{action:"impression",nonInteractive:!0})),n.hover=t=>n(Object.assign(Object.assign(Object.assign({},e),t),{action:"hover",nonInteractive:!0})),n.loaded=t=>n(Object.assign(Object.assign(Object.assign({},e),t),{action:"loaded",nonInteractive:!0})),n.extend=n=>l(Object.assign(Object.assign({},e),n),t),n}function f(e,t){const n=Object.assign({},e);if(!n.event&&!n.category)throw console.error("[Tracking] Missing event or category field",n),new Error("Missing event or category field");return n.category||(n.category=n.event),n.event||(n.event=n.category),l(n,t)}function p(e){return f(e,d)}function g(e){return`${(0,c.L1)()?"dev-":""}${e}`}f({category:"base-tracker"},d)},5551:(e,t,n)=>{"use strict";n.d(t,{x:()=>g,v:()=>p});var r=n(655),o=n(8074),i=n(681);function a(e,t=5){const n=6e4*t;return{get:()=>{try{const t=localStorage.getItem(e);return t?(e=>{const t=JSON.parse(e);return!(n=null==t?void 0:t.ttl)||n<Date.now()?null:t.data;var n})(t):null}catch(t){return console.warn(`Can't retrieve  ${e} from localStorage`),null}},set:t=>{try{const r=(e=>({data:e,ttl:Date.now()+n}))(t);localStorage.setItem(e,JSON.stringify(r))}catch(n){console.warn(`Can't write ${e} ${t} to localStorage`)}}}}var s=n(214);let u=null;function d(){var e,t,n,r;if(!u){const o=(0,s.b)(),i=null===(e=null===window||void 0===window?void 0:window.mw)||void 0===e?void 0:e.config.get("wikiCategories"),a=new URLSearchParams([["wId",o.pageContext.pId],...o.dateIsForced?[["dT",o.dateTime]]:[],...o.pageContext.pVar?[["s",o.pageContext.pVar]]:[],...(null===(r=null===(n=null===(t=o.pageContext)||void 0===t?void 0:t.adTags)||void 0===n?void 0:n.gnre)||void 0===r?void 0:r.length)?o.pageContext.adTags.gnre.map((e=>["g",e])):[],...(null==i?void 0:i.length)?i.map((e=>["c",e])):[]]).toString();u=new c("campaign-provider/v2/widgets"+(a?`?${a}`:""))}return u}class c{constructor(e){this.path=e,this.storage=a(this.path)}getWidgets(){return this.widgetsPromise||(this.widgetsPromise=this.getFromCacheOrFetchSponsoredWidgets()),this.widgetsPromise}getFromCacheOrFetchSponsoredWidgets(){return(0,r.mG)(this,void 0,void 0,(function*(){let e=this.storage.get();if(e||(e=yield l("SponsoredWidgets",this.path),"string"==typeof e?this.storage.set(e):this.storage.set("null")),e)try{return yield JSON.parse(e)}catch(e){return null}return null}))}}function l(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){let n;try{n=yield(0,i.ck)(t)}catch(t){return o.Z.error(`${e}: fetching error`,t),null}return n.ok&&204!==n.status?n.text():(o.Z.debug(`${e}: no consumable data`,n),null)}))}var f=n(1640);function p(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t=(0,f._)(e);if(!t)return null;const n=yield l(e,`campaign-provider/v2/widgets/${t}`);try{return n?yield JSON.parse(n):null}catch(e){return null}}))}function g(e){var t;return(0,r.mG)(this,void 0,void 0,(function*(){const n=d();return null===(t=yield n.getWidgets())||void 0===t?void 0:t.filter((t=>t.widgetType===e))}))}},2187:(e,t,n)=>{"use strict";n.d(t,{h:()=>c,o:()=>d});var r=n(655),o=n(5551),i=n(768),a=n(9715),s=n(3492),u=n(9302);function d(e){var t;return(0,r.mG)(this,void 0,void 0,(function*(){const n="countdown-clock";if(e)return function(){const e=new Date;return e.setDate(e.getDate()+1),[{id:-1,widgetType:"countdown-clock",active:!0,startDateTime:null,endDateTime:e.toISOString(),countdownEndDateTime:e.toISOString(),ucpTargetings:[{id:-1,wikiId:null,articleIds:[],skins:[],geos:[],genres:[],categories:[]}],states:[{id:-1,startDateTime:null,clickThroughUrl:"https://fandom.com",ctaText:"",images:[{id:-1,size:{width:300,height:120},url:"https://static.wikia.nocookie.net/fandom-ae-assets/programmatic/widgets/countdown-clock-preview/countdown-clock-preview-PRE-300x120-v1.jpg"},{id:-2,size:{width:300,height:450},url:"https://static.wikia.nocookie.net/fandom-ae-assets/programmatic/widgets/countdown-clock-preview/countdown-clock-preview-PRE-300x450-v1.jpg"}]}]}]}();const r=null!==(t=yield(0,o.v)(n))&&void 0!==t?t:yield(0,o.x)(n);return r&&r.length?r:null}))}function c(e,t,n,o){var d,c;return(0,r.mG)(this,void 0,void 0,(function*(){const r="countdown-clock",l=function(e){switch(e){case u.i.DESKTOP:return{width:300,height:450};case u.i.MOBILE:return{width:300,height:120}}}(n),f=t?e[0]:(0,i.L)(e,o,r);if(!f)return null;const p=(0,a.w)(null!==(d=f.states)&&void 0!==d?d:[],o,r,null==f?void 0:f.id);if(!p)return null;const g=(0,s.I)(null!==(c=p.images)&&void 0!==c?c:[],l,r,f.id,p.id);return g?Object.assign(Object.assign({fontUrls:[]},p),{countdownClockId:f.id,countdownEndDate:new Date(f.countdownEndDateTime),image:g}):null}))}},8427:(e,t,n)=>{"use strict";n.d(t,{Q:()=>d,A:()=>u});var r=n(655),o=n(5551),i=n(768),a=n(9715),s=n(3492);function u(e){var t;return(0,r.mG)(this,void 0,void 0,(function*(){const n="sponsored-logo";if(e)return[{id:-1,widgetType:"sponsored-logo",active:!0,startDateTime:null,endDateTime:null,ucpTargetings:[{id:-1,wikiId:null,articleIds:[],skins:[],geos:[],genres:[],categories:[]}],states:[{id:-1,startDateTime:null,clickThroughUrl:"https://fandom.com",ctaText:"Premiers November 11, 2022! [**Click here!**](https://marvel.fandom.com/wiki/Black_Panther:_Wakanda_Forever)",sponsorText:"wakanda forever",images:[{id:-1,size:{width:36,height:36},url:"https://static.wikia.nocookie.net/fandom-ae-assets/programmatic/widgets/sponsored-logo-preview/sponsored-logo-preview-36x36-v1.png"}]}]}];const r=null!==(t=yield(0,o.v)(n))&&void 0!==t?t:yield(0,o.x)(n);return r&&r.length?r:null}))}function d(e,t,n){var o,u;return(0,r.mG)(this,void 0,void 0,(function*(){const r="sponsored-logo",d=t?e[0]:(0,i.L)(null!=e?e:[],n,r);if(!d)return null;const c=(0,a.w)(null!==(o=d.states)&&void 0!==o?o:[],n,r,null==d?void 0:d.id);if(!c)return null;const l=(0,s.I)(null!==(u=c.images)&&void 0!==u?u:[],{width:36,height:36},r,d.id,c.id);return l?Object.assign(Object.assign({},c),{sponsoredLogoId:d.id,imageUrl:l.url}):null}))}},7068:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});const r=(e,t)=>{if(!e)return void(window.getCurrentQuizQuestion=()=>{});const n=e.answers.find((e=>e.isCorrect));n&&(window.getCurrentQuizQuestion=()=>({questionId:e.id,questionPosition:t,quizAnswerPosition:e.answers.indexOf(n),quizAnswerId:n.id,isGenai:e.isGenai}))}},5447:(e,t,n)=>{"use strict";n.d(t,{pT:()=>u,QY:()=>s,Vk:()=>i,qm:()=>a});var r=n(5426),o=n(1108);const i=e=>{setTimeout((()=>{s(document.querySelectorAll(e).length>0)}),1e3)},a=()=>{s(void 0)},s=e=>{console.log("PHQ="+e),window.pageHaveQuiz=e},u=()=>{void 0===window.pageHaveQuiz&&s(!!(0,r.fM)().some((e=>[o.PO.WikiQuizConsumptionModule,o.PO.DiscussionQuizConsumptionModule,o.PO.TriviaQuizConsumptionModule,o.PO.FanhubQuizConsumptionModule].includes(e.config.type)))&&void 0)}},6304:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});const r=e=>{window.getQuizMetadata=()=>e?{quizId:e.id,quizTitle:e.title,isGenai:e.isGenai}:void 0}},462:(e,t,n)=>{"use strict";n.d(t,{rz:()=>ae,lV:()=>ie,K4:()=>se});var r=n(655),o=n(9996),i=n.n(o),a=n(437),s=n(8074),u=n(1108),d=n(8114),c=n(8615);const l=d.Z.all(c.S9,c.pX,d.Z.any(c.Th,c.ny)),f=d.Z.all(c.yd,c.pX),p=[{name:"halo-effect-vertical-desktop",type:u.PO.HaloEffectVertical,insertConfig:{type:u.pz.Custom},targeting:d.Z.all(c.v9,d.Z.any(l,f,c.pq,c.v8,c.$5))}];var g=n(7756);const v=[{name:"in-wiki-email-in-context",type:u.PO.InWikiEmail,insertConfig:{type:u.pz.UcpInContext},config:{},targeting:d.Z.all(c.JI,c.GR,c.ok,d.Z.not({type:u.Bv.SilverSurferAction,actionType:g.U.SUBMIT,property:"name",value:"exit-signup"}))}],m=[{disabled:!1,name:"marketing-notifications",type:u.PO.MarketingNotifications,insertConfig:{type:u.pz.Custom},config:{impressionName:u.PO.MarketingNotifications},targeting:d.Z.all(c.Th,c.e1)}],h={type:u.Bv.Url,pathname:"Special:AdminDashboard"},y=[{disabled:!1,name:"notification-cms",type:u.PO.NotificationCMS,insertConfig:{type:u.pz.Custom},config:{},targeting:d.Z.all(c.v9,c.s3,c.Lj,h)}];var w,b=n(675);!function(e){e.WithCatalog="WithCatalog"}(w||(w={}));const M={name:"quiz-creation-with-catalog",type:u.PO.QuizCreation,insertConfig:{type:u.pz.Element,selectors:[{selector:"main",method:u.Eo.Prepend}]},config:{type:w.WithCatalog},targeting:d.Z.all(c.Lj,{type:u.Bv.CurrentContext,property:"product",value:"dis"},d.Z.any({type:u.Bv.CurrentContext,property:"productId",value:"2750727"},{type:u.Bv.CurrentContext,property:"productId",value:"1081891"}),{type:u.Bv.CurrentContext,property:"page",value:"feed"})},C=[M,Object.assign(Object.assign({},M),{disabled:!0,name:"quiz-creation-with-catalog-e2e",config:{type:w.WithCatalog,fakeApis:!0}})];var S=n(6370),O=n(9302);const _={type:u.pz.Element,selectors:[{selector:".global-navigation__links",method:u.Eo.Prepend}]},k=[{name:"sponsored-widgets-sponsored-logo-consumption-module",type:u.PO.SponsoredWidgetsSponsoredLogoConsumptionModule,insertConfig:_,config:{sponsoredLogos:[]},targeting:d.Z.any(d.Z.all(c.nR,c.v9,c.S9,c.ok),d.Z.all(c.nR,c.v9,c.pq))}],E=[{name:"debug-menu",type:u.PO.DebugMenu,insertConfig:{type:u.pz.Instant},targeting:d.Z.any(c.yN,c.zo)}],P=[{disabled:!0,name:"web-push",type:u.PO.WebPush,insertConfig:{type:u.pz.Instant},config:{},targeting:[c.e4]}],A=d.Z.all(c._B,c.y$),T=!0,x=[{disabled:T,name:"collapse-toc-module-variant-1",type:u.PO.CollapseToC,insertConfig:{type:u.pz.Custom},expBucket:[],config:{},targeting:A},{disabled:T,name:"collapse-toc-module-variant-2",type:u.PO.CollapseToC,insertConfig:{type:u.pz.Custom},expBucket:[],config:{},targeting:A},{disabled:T,name:"collapse-toc-module-control",type:u.PO.CollapseToC,insertConfig:{type:u.pz.Custom},expBucket:[],config:{},targeting:A}],B=d.Z.all(c.nR,c.S9,d.Z.any(c.LP,c.CH),c.i1,c.mp,c.Th),R=!0,N=[{disabled:R,name:"mobile-drawer-control",type:u.PO.MobileDrawer,insertConfig:{type:u.pz.Custom},expBucket:["87","90","92"],config:{},targeting:B},{disabled:R,name:"mobile-drawer-v1",type:u.PO.MobileDrawer,insertConfig:{type:u.pz.Custom},expBucket:["16","25","32"],config:{},targeting:B},{disabled:R,name:"mobile-drawer-v2",type:u.PO.MobileDrawer,insertConfig:{type:u.pz.Custom},expBucket:["63","35","27"],config:{},targeting:B},{disabled:R,name:"mobile-drawer-v3",type:u.PO.MobileDrawer,insertConfig:{type:u.pz.Custom},expBucket:["52","76","82"],config:{},targeting:B},{disabled:R,name:"mobile-drawer-v4",type:u.PO.MobileDrawer,insertConfig:{type:u.pz.Custom},expBucket:["61","68","70"],config:{},targeting:B}],I=d.Z.all(c.nR,c.S9,d.Z.any(c.LP,c.CH),c.i1,c.mp,c.Th),Z=!0,D=[{disabled:Z,name:"mobile-drawer-validation-control",type:u.PO.MobileDrawerValidation,insertConfig:{type:u.pz.Custom},expBucket:["68","69","70"],config:{},targeting:I},{disabled:Z,name:"mobile-drawer-validation-v1",type:u.PO.MobileDrawerValidation,insertConfig:{type:u.pz.Custom},expBucket:["71","72","73"],config:{},targeting:I},{disabled:Z,name:"mobile-drawer-validation-v2",type:u.PO.MobileDrawerValidation,insertConfig:{type:u.pz.Custom},expBucket:["74","75","76"],config:{},targeting:I},{disabled:Z,name:"mobile-drawer-validation-v3",type:u.PO.MobileDrawerValidation,insertConfig:{type:u.pz.Custom},expBucket:["77","78","79"],config:{},targeting:I},{disabled:Z,name:"mobile-drawer-validation-v4",type:u.PO.MobileDrawerValidation,insertConfig:{type:u.pz.Custom},expBucket:["67","92","93"],config:{},targeting:I}];var L=n(755);const z=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(168),n.e(113)]).then(n.bind(n,7857))).getHaloEffectVerticalModuleMethods(e)})),F=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(168),n.e(21)]).then(n.bind(n,3323))).getMarketingNotificationsModuleMethods(e)})),j=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(168),n.e(361)]).then(n.bind(n,6665))).getNotificationCMSModuleMethods(e)})),$=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(168),n.e(447)]).then(n.bind(n,9679))).getDiscussionQuizConsumptionModuleMethods(e)})),G=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(168),n.e(993)]).then(n.bind(n,9758))).getFanhubQuizConsumptionModuleMethods(e)})),U=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(168),n.e(737)]).then(n.bind(n,5597))).getTriviaQuizConsumptionModuleMethods(e)})),W=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(168),n.e(349)]).then(n.bind(n,959))).getWikiQuizConsumptionModuleMethods(e)})),V=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(168),n.e(348)]).then(n.bind(n,4138))).getQuizCreationModuleMethods(e)})),Q=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(168),n.e(986)]).then(n.bind(n,7546))).getQuizMetaEditorModuleMethods(e)}));var q=n(2187);const K=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){var t,r;const o=yield(0,q.o)(null!==(r=null===(t=null==e?void 0:e.internalState)||void 0===t?void 0:t.forced)&&void 0!==r&&r);if(o&&o.length)return(yield Promise.all([n.e(168),n.e(595)]).then(n.bind(n,8390))).getSponsoredWidgetsCountdownClockConsumptionModuleMethods(Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),{countdownClocks:o})}))}));var H=n(8427);const J=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){var t,r;const o=yield(0,H.A)(null!==(r=null===(t=null==e?void 0:e.internalState)||void 0===t?void 0:t.forced)&&void 0!==r&&r);if(o&&o.length)return(yield Promise.all([n.e(168),n.e(606)]).then(n.bind(n,9618))).getSponsoredWidgetsSponsoredLogoConsumptionModuleMethods(Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),{sponsoredLogos:o})}))})),Y=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return Promise.all([n.e(168),n.e(495)]).then(n.bind(n,1582)).then((t=>t.getInWikiEmailModuleMethods(e)))})),X=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(168),n.e(307)]).then(n.bind(n,1408))).getDebugMenuModuleMethods(e)})),ee=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(168),n.e(667)]).then(n.bind(n,867))).getWebPushModuleMethods(e)})),te=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(760).then(n.bind(n,604))).getCollapseToCModuleMethods(e)})),ne=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(8).then(n.bind(n,2380))).getMobileDrawerModuleMethods(e)})),re=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(673).then(n.bind(n,9249))).getMobileDrawerValidationModuleMethods(e)})),oe=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(906).then(n.bind(n,8187))).getImpactNotificationsModuleMethods(e)}));function ie(){return[].concat(E,v,p,b.Z,C,S.Z,y,m,O.Z,k,P,x,N,D,L.Z).filter(Boolean)}function ae(){let e=ie();return e=e.map((e=>i()({internalState:{}},e))),(0,a.n3)()&&(s.Z.debug("RulesEngine: All the modules exposed to window.pathfinderAllModules"),window.pathfinderAllModules=e),e}function se(e){const t={[u.PO.DebugMenu]:X,[u.PO.InWikiEmail]:Y,[u.PO.MarketingNotifications]:F,[u.PO.NotificationCMS]:j,[u.PO.HaloEffectVertical]:z,[u.PO.SponsoredWidgetsCountdownClockConsumptionModule]:K,[u.PO.SponsoredWidgetsSponsoredLogoConsumptionModule]:J,[u.PO.QuizCreation]:V,[u.PO.WikiQuizConsumptionModule]:W,[u.PO.QuizMetaEditorModule]:Q,[u.PO.DiscussionQuizConsumptionModule]:$,[u.PO.TriviaQuizConsumptionModule]:U,[u.PO.FanhubQuizConsumptionModule]:G,[u.PO.WebPush]:ee,[u.PO.CollapseToC]:te,[u.PO.MobileDrawer]:ne,[u.PO.MobileDrawerValidation]:re,[u.PO.ImpactNotifications]:oe};return"function"==typeof t[e]?t[e]:()=>(0,r.mG)(this,void 0,void 0,(function*(){return!1}))}},5601:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8074),o=n(2718),i=n(7904);function a(){const e=(0,i.Z)("ss_pathfinder_forced"),t=(0,o.Q2)();if(e)return r.Z.info("RulesEngine: Forcing module",e),t&&r.Z.info(`RulesEngine: Ignoring permanently forced module (from "${o.zn}" cookie)`,t),e;const n=(0,i.Z)("ss_pathfinder_permaforced");return n?(r.Z.info("RulesEngine: Permanently forcing module (expires in 30 days)",n),(0,o.XA)(n),n):t?(r.Z.info(`RulesEngine: Permanently forcing module (from "${o.zn}" cookie)`,t),t):void 0}},755:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d,b:()=>a});var r=n(1108),o=n(8114),i=n(8615);const a={"impact-notifications-control":"control","impact-notifications-variant-A":"A","impact-notifications-variant-B":"B"},s=o.Z.all(i.Lj,i.S9,i.v9,i.pX),u=!1,d=[{disabled:u,name:"impact-notifications-control",type:r.PO.ImpactNotifications,insertConfig:{type:r.pz.Custom},expBucket:["0-31","99"],config:{},targeting:s},{disabled:u,name:"impact-notifications-variant-A",type:r.PO.ImpactNotifications,insertConfig:{type:r.pz.Custom},expBucket:["56-89"],config:{},targeting:s},{disabled:u,name:"impact-notifications-variant-B",type:r.PO.ImpactNotifications,insertConfig:{type:r.pz.Custom},expBucket:["32-55","90-98"],config:{},targeting:s}]},675:(e,t,n)=>{"use strict";n.d(t,{W:()=>r,Z:()=>p});var r,o=n(8114),i=n(8615),a=n(1108);!function(e){e.Desktop="after_toc_placement",e.Mobile="after_infobox_placement"}(r||(r={}));const s={type:a.Bv.MwConfig,property:"wgFandomQuizzesEnabled",value:!0},u={type:a.Bv.MwConfig,property:"wgFandomQuizzesCommunityQuizzesOnArticlesEnabled",value:!0},d={type:a.Bv.FandomQuizzes,property:"wgFandomQuizzesEnabled",value:!0},c={type:a.Bv.FandomQuizzes,property:"wgFandomQuizzesOnFepoEnabled",value:!0},l=o.Z.any({type:a.Bv.CurrentContext,property:"page",value:"article"},{type:a.Bv.DomNode,selector:"#mw-content-text [data-quiz-anchor]"}),f=o.Z.any({type:a.Bv.CurrentContext,property:"page",value:"quiz-index"},{type:a.Bv.CurrentContext,property:"page",value:"quiz-page"}),p=[{name:"wiki-quiz-consumption-module-desktop",type:a.PO.WikiQuizConsumptionModule,insertConfig:{type:a.pz.Custom},config:{variant:r.Desktop},targeting:o.Z.all(s,u,i.gU,i.s3,l)},{name:"wiki-quiz-consumption-module-mobile",type:a.PO.WikiQuizConsumptionModule,insertConfig:{type:a.pz.Custom},config:{variant:r.Mobile},targeting:o.Z.all(s,u,i.gU,i.LP,l)},{name:"discussion-quiz-consumption-module",type:a.PO.DiscussionQuizConsumptionModule,insertConfig:{type:a.pz.Custom},targeting:o.Z.all(d,c,i.yd)},{name:"trivia-quiz-consumption-module",type:a.PO.TriviaQuizConsumptionModule,insertConfig:{type:a.pz.Custom},targeting:o.Z.all(i.$5,f)},{name:"fanhub-quiz-consumption-module",type:a.PO.FanhubQuizConsumptionModule,insertConfig:{type:a.pz.Custom},targeting:o.Z.all(i.v8)}]},6370:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,g:()=>r});var r,o=n(8114),i=n(8615),a=n(1108);!function(e){e.Discussions="discussions",e.Trivia="trivia"}(r||(r={}));const s=[{name:"discussions-quiz-targeting-editor-module",type:a.PO.QuizMetaEditorModule,insertConfig:{type:a.pz.Custom},config:{variant:r.Discussions},targeting:o.Z.all(i.Lj,{type:a.Bv.CurrentContext,property:"product",value:"dis"},o.Z.any({type:a.Bv.CurrentContext,property:"productId",value:"2750727"},{type:a.Bv.CurrentContext,property:"productId",value:"1081891"}),o.Z.any({type:a.Bv.CurrentContext,property:"page",value:"feed"},{type:a.Bv.CurrentContext,property:"page",value:"post"}))},{name:"trivia-quiz-targeting-editor-module",type:a.PO.QuizMetaEditorModule,insertConfig:{type:a.pz.Custom},config:{variant:r.Trivia},targeting:o.Z.all(i.Lj,{type:a.Bv.CurrentContext,property:"product",value:"trivia"},{type:a.Bv.CurrentContext,property:"page",value:"quiz-page"})}]},9302:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,i:()=>r});var r,o=n(1108),i=n(8114),a=n(8615);!function(e){e[e.DESKTOP=0]="DESKTOP",e[e.MOBILE=1]="MOBILE"}(r||(r={}));const s=".portable-infobox-wrapper, .mw-parser-output > p, .fandom-stats",u={type:o.pz.Element,selectors:[{selector:"#WikiaRail, .main-page-tag-rcs #top_boxad",method:o.Eo.After},{selector:".main-page-tag-rcs",method:o.Eo.Prepend}]},d={type:o.pz.Element,selectors:[{selector:s,method:o.Eo.After}]},c={type:o.Bv.AtLeastDomNodes,selector:s,min:2},l=[{name:"sponsored-widgets-countdown-clock-consumption-module-desktop",type:o.PO.SponsoredWidgetsCountdownClockConsumptionModule,insertConfig:u,config:{countdownClocks:[],variant:r.DESKTOP},targeting:i.Z.all(a.v9,a.S9,a.nR,i.Z.any(a.Th,a.ny))},{name:"sponsored-widgets-countdown-clock-consumption-module-mobile",type:o.PO.SponsoredWidgetsCountdownClockConsumptionModule,insertConfig:d,config:{countdownClocks:[],variant:r.MOBILE},targeting:i.Z.all(a.i1,a.S9,a.nR,c,i.Z.any(a.Th,a.ny))}]},3533:(e,t,n)=>{"use strict";n.d(t,{Nq:()=>ce,Po:()=>de,os:()=>le});var r=n(655),o=n(8074),i=n(1108);const a=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return document.querySelectorAll(e.selector).length>=e.min})),s=e=>{const{selector:t,min:n}=e;return!("string"!=typeof t||!t.length||"number"!=typeof n||n<=0)};var u=n(1206),d=n.n(u);function c(){const e=navigator.userAgent;return d().getParser(e).getBrowserName()}const l=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const t=e.value;return Array.isArray(t)?t.includes(c()):t===c()})),f=e=>{const t=e.value;return!(t&&!t.length)};var p=n(9267);const g=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const{cookieName:t,value:n}=e,r=(0,p.A)(t);return!!r&&(Array.isArray(n)?n.some((e=>r.includes(e))):!((null==n?void 0:n.length)>0)||r.includes(n))})),v=e=>{const{cookieName:t,value:n}=e;return!("string"!=typeof t||!t.length||n&&!n.length)};var m=n(4485);const h=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){var t,n;const r=(0,m.$r)(),{property:i,value:a,adTags:s}=e;try{if("string"==typeof i){const e=a.toLowerCase();if("adTags"!==i){const t=r[i];return(null==t?void 0:t.toLowerCase())===e}{const n=null!==(t=null==r?void 0:r.adTags)&&void 0!==t?t:{};return Object.values(n).reduce(((e,t)=>e.concat(t)),[]).map((e=>e.toLowerCase())).some((t=>t===e))}}if(void 0!==s){const e=null!==(n=null==r?void 0:r.adTags)&&void 0!==n?n:{};let t=!0;for(const[n,r]of Object.entries(s))t&&(t=r.every((t=>e[n].includes(t))));return t}}catch(t){o.Z.error("RulesEngine/currentContext: Exception",t,e)}return!1})),y=e=>{const{property:t,value:n}=e;return!("string"!=typeof t||!t.length||n&&("string"!=typeof n||!n.length))},w=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const{start:t,end:n}=e,r=Date.now();let o=!0;return"number"==typeof t&&r<t&&o&&(o=!1),"number"==typeof n&&r>n&&o&&(o=!1),o})),b=e=>{const{start:t,end:n}=e;return!(t&&"number"!=typeof t||n&&"number"!=typeof n||t&&n&&!(t<=n))},M=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const{selector:t,attribute:n,value:r}=e,i=document.querySelector(t);if(!i)return!1;if(n&&!(null==i?void 0:i.hasAttribute(n)))return!1;if(n&&(null==r?void 0:r.length)>0)try{return new RegExp(r).test(i.getAttribute(n))}catch(t){return o.Z.error("RulesEngine/domNode: Exception",t,e),!1}return!0})),C=e=>{const{selector:t,attribute:n,value:r}=e;return!("string"!=typeof t||!t.length||n&&("string"!=typeof n||!n.length)||r&&("string"!=typeof r||!r.length))},S=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){var t,n;const r=(null===(n=null===(t=window.mw)||void 0===t?void 0:t.config)||void 0===n?void 0:n.get("isTestWiki"))||!1;return e.value===r})),O=e=>{const{value:t}=e;return"boolean"==typeof t};var _=n(1703);const k=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){var t;return null===(t=null===document||void 0===document?void 0:document.referrer)||void 0===t?void 0:t.includes(e.urlContains)})),E=e=>{const{urlContains:t}=e;return!("string"!=typeof t||!t.length)};var P;!function(e){e.Height="Height",e.Width="Width"}(P||(P={}));const A={[P.Width]:"innerWidth",[P.Height]:"innerHeight"},T=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const{property:t,min:n,max:r}=e;try{if(void 0!==n||void 0!==r){const e=window[A[t]];let o=!0;return"number"==typeof n&&o&&(o=e>=n),"number"==typeof r&&o&&(o=e<=n),o}o.Z.error("RuleEngine/checkScreenSizeRule: Neither min nor max value was defined",e)}catch(t){o.Z.error("RuleEngine/checkScreenSizeRule: Exception",t,e)}return!1})),x=e=>{const{property:t,min:n,max:r}=e;return!(!Object.values(P).includes(t)||n&&("number"!=typeof n||n<0)||r&&("number"!=typeof r||r<0)||(r&&n?!(r<=n):!r&&!n))};var B=n(5426),R=n(7756);const N=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const{actionType:t,property:n,value:r}=e;try{const e=yield window.SilverSurferSDK.getActions((0,B.LP)(),t);return void 0===n&&(null==e?void 0:e.length)>0||!!e.find((e=>e[n]===r))}catch(t){o.Z.error("RuleEngine/checkSilverSurferActionRule: Exception",t,e)}return!1})),I=e=>{const{actionType:t,property:n,value:r}=e;return!(!Object.values(R.U).includes(t)||n&&("string"!=typeof n||!n.length)||r&&("string"!=typeof r||!r.length))};var Z=n(437);const D=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return Z.Xw})),L=e=>!0;var z=n(7904);const F=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const{branch:t}=e;return"canary"===t?"true"===(0,z.Z)(Z.Gr.CANARY):(0,z.Z)(Z.Gr.BRANCH)===t})),j=e=>{const{branch:t}=e;return!("string"!=typeof t||!t.length)};function $(e){return Array.isArray(e)?e:"string"==typeof e?[e]:void 0}function G(e,t){return e.some((e=>new RegExp(e,"i").test(t)))}const U=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const{location:t}=window;try{const n=$(null==e?void 0:e.href),r=$(null==e?void 0:e.host),o=$(null==e?void 0:e.pathname),i=$(null==e?void 0:e.search);return!(n&&!G(n,t.href)||r&&!G(r,t.host)||o&&!G(o,t.pathname)||i&&!G(i,t.search))}catch(t){o.Z.error("RuleEngine/checkUrlRule: Exception",t,e)}return!1})),W=e=>void 0===e||"string"==typeof e||Array.isArray(e)&&e.every((e=>"string"==typeof e)),V=e=>{const{href:t,host:n,pathname:r,search:o}=e;return W(t)&&W(n)&&W(r)&&W(o)};var Q=n(5686),q=n(7018),K=n(812);const H=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){var t,n;const{lastVisitedPages:r,property:i,value:a,adTags:s,atLeast:u}=e;try{const e=window.SilverSurferSDK.getContext().pages.slice(0,r);let o=0;for(const r of e){if("string"==typeof i){if("adTags"===i){const e=a.toLowerCase(),n=null!==(t=null==r?void 0:r.adTags)&&void 0!==t?t:{};return Object.values(n).reduce(((e,t)=>e.concat(t)),[]).map((e=>e.toLowerCase())).some((t=>t===e))}{const e=r[i],t=a.toLowerCase();(null==e?void 0:e.toLowerCase())===t&&o++}}if(void 0!==s){const e=null!==(n=null==r?void 0:r.adTags)&&void 0!==n?n:{};let t=!0;for(const[n,r]of Object.entries(s))t&&(t=r.every((t=>e[n].includes(t))));t&&o++}}return o>=u}catch(t){o.Z.error("RulesEngine/visitedPages: Exception",t,e)}return!1})),J=e=>{const{lastVisitedPages:t,property:n,value:r,atLeast:o}=e;return!("number"!=typeof t||"string"!=typeof n||!n.length||"string"!=typeof r||!r.length||"number"!=typeof o)};var Y=n(7334),X=n.n(Y);const ee=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const{any:t}=e,n=Array.from(document.querySelectorAll('a[href^="/wiki/Category"]')).map((e=>e.innerText)).map(X());return!(!Array.isArray(t)||!t.length)&&t.map((e=>new RegExp(e,"i"))).map((e=>n.some((t=>e.test(t))))).some((e=>e))})),te=e=>{const{any:t}=e;return!(!Array.isArray(t)||t.some((e=>"string"!=typeof e)))},ne=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return!0})),re=e=>!0,oe=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const{context:t,property:n,value:r}=e;if((0,m.$r)().product!==m.xs.MEDIAWIKI)return o.Z.debug("RuleEngine/checkFandomContext: Unsupported product"),!1;try{if(!window.fandomContext||!window.fandomContext[t])return o.Z.error("RuleEngine/checkFandomContext: fandomContext not initialized"),!1;const e=window.fandomContext[t][n];return void 0===e?(o.Z.error(`RuleEngine/checkFandomContext: property [${n}] does not exist in fandomContext [${t}]`),!1):Array.isArray(e)?"number"==typeof r||"string"==typeof r?e.some((e=>e===r)):r.some((t=>e.includes(t))):Array.isArray(r)?"number"==typeof e||"string"==typeof e?r.some((t=>t===e)):e.some((e=>r.includes(e))):"object"==typeof r&&r?Object.keys(e).some((t=>e[t]===r[t])):e===r}catch(t){o.Z.error("RuleEngine/checkFandomContext: Exception",t,e)}return!1})),ie=e=>{const{context:t,property:n,value:r}=e;return!("string"!=typeof t||!["site","page"].includes(t)||"string"!=typeof n||!n.length||!r)},ae=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const{property:t,value:n}=e;try{const e=window.quizzes;if(!e)return o.Z.debug("RuleEngine/checkFandomQuizzes: window.quizzes not initialized"),!1;const r=e[t];return void 0===r?(o.Z.error(`RuleEngine/checkFandomQuizzes: property [${t}] does not exist in quizzes object [${e}]`),!1):r===n}catch(t){o.Z.error("RuleEngine/checkFandomQuizzes: Exception",t,e)}})),se=e=>{const{property:t,value:n}=e;return!("string"!=typeof t||!t.length)&&"boolean"==typeof n};function ue(e,t,n){switch(e){case i.CU.And:return t&&n;case i.CU.Or:return t||n;case i.CU.Not:return!t}}function de(e){return(0,r.mG)(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{ce(e).then((n=>{t(n?e:void 0)})).catch((n=>{o.Z.error("RulesEngine: Exception when checking targeting rules",n,e),t(void 0)}))}))}))}function ce(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t={[i.Bv.TestOnlyInDev]:D,[i.Bv.TestOnlyOnBranch]:F,[i.Bv.AlwaysLoad]:ne,[i.Bv.CurrentContext]:h,[i.Bv.UserLoggedIn]:K.U,[i.Bv.VisitedPages]:H,[i.Bv.SilverSurferAction]:N,[i.Bv.Referrer]:k,[i.Bv.UserDevice]:Q.ij,[i.Bv.DomNode]:M,[i.Bv.DateRange]:w,[i.Bv.UserGeo]:q.s,[i.Bv.Cookie]:g,[i.Bv.ScreenSize]:T,[i.Bv.Url]:U,[i.Bv.WikiCategory]:ee,[i.Bv.MwConfig]:_.n,[i.Bv.IsTestWiki]:S,[i.Bv.AtLeastDomNodes]:a,[i.Bv.Browser]:l,[i.Bv.FandomContext]:oe,[i.Bv.FandomQuizzes]:ae},n=`RulesEngine/Targeting [${e.name}]:`;o.Z.debug(`${n} Checking targeting rules`,e);const s=e.targeting,u=[];o.Z.debug(`${n} Converting rules to function calls`);const d=s.map((e=>{if("string"!=typeof e){const i=null==t?void 0:t[e.type];if("function"==typeof i)return()=>(0,r.mG)(this,void 0,void 0,(function*(){try{return{result:yield i(e),rule:e}}catch(t){return o.Z.error(`${n} Exception when checking rule`,t,e),{result:!1,rule:e}}}))}return()=>(0,r.mG)(this,void 0,void 0,(function*(){return{result:e,rule:e}}))}));e.internalState||(e.internalState={}),e.internalState=Object.assign(Object.assign({},e.internalState),{targetingEvaluations:[]});const c=yield Promise.all(d.map((e=>e&&e())));if(e.internalState.targetingEvaluations.push(...c.slice()),o.Z.debug(`${n} Parsing targeting stack`,c),c.slice(0,2).some((({result:e})=>"string"==typeof e&&(e===i.CU.And||e===i.CU.Or))))return o.Z.error(`${n} Incorrect operator order! You cannot use 'and|or' as first two items as there is no previous value to operate on`,u),!1;if(s.forEach(((e,t)=>{if("boolean"==typeof c[t].result)return o.Z.debug(`${n} Step ${t}: Push ${c[t].result} to stack from`,e),void u.push(c[t].result);if("string"!=typeof e)o.Z.error(`${n} Unknown rule`,e);else if(e===i.CU.Not){const r=u.pop(),i=ue(e,r);o.Z.debug(`${n} Step ${t}: Using operator: ${e} ${r} => ${i}`),u.push(i)}else{const r=u.pop(),i=u.pop(),a=ue(e,i,r);o.Z.debug(`${n} Step ${t}: Using operator: ${i} ${e} ${r} => ${a}`),u.push(a)}})),1!==u.length)return o.Z.error(`${n} Incorrect targeting rules! Leftover stack has ${u.length} items!`,u),!1;const f=u.pop();return void 0===f?(o.Z.error(`${n} Incorrect targeting rules! Found 'undefined' value. Please check your targeting rules`,u),!1):(o.Z.debug(`${n} Final value`,f),e.internalState.targetingEvaluationsResult=f,f)}))}function le(e){let t=0;const n=Object.values(i.CU),r=Object.values(i.Bv),a={[i.Bv.TestOnlyInDev]:L,[i.Bv.TestOnlyOnBranch]:j,[i.Bv.AlwaysLoad]:re,[i.Bv.CurrentContext]:y,[i.Bv.UserLoggedIn]:K.J,[i.Bv.VisitedPages]:J,[i.Bv.SilverSurferAction]:I,[i.Bv.Referrer]:E,[i.Bv.UserDevice]:Q.D1,[i.Bv.DomNode]:C,[i.Bv.DateRange]:b,[i.Bv.UserGeo]:q.A,[i.Bv.Cookie]:v,[i.Bv.ScreenSize]:x,[i.Bv.Url]:V,[i.Bv.WikiCategory]:te,[i.Bv.MwConfig]:_.l,[i.Bv.IsTestWiki]:O,[i.Bv.AtLeastDomNodes]:s,[i.Bv.Browser]:f,[i.Bv.FandomContext]:ie,[i.Bv.FandomQuizzes]:se};return e.forEach((e=>{const s=`RulesEngine/validateTargeting: Error in "${e.name}"`,{targeting:u}=e;if(!Array.isArray(u)||u.length<1)return o.Z.error(`${s} - not an array or not enough elements`),void t++;const d=u.reduce(((e,t)=>e+(function(e,t,n,r){const i="RulesEngine/validateOperatorOrRule";return"string"==typeof e?!!t.includes(e)||(o.Z.error(`${i} - unknown operator`,e),!1):"string"==typeof(null==e?void 0:e.type)?n.includes(e.type)?!!(0,r[e.type])(e)||(o.Z.error(`${i} - rule config is invalid`,e),!1):(o.Z.error(`${i} - unknown rule`,e),!1):(o.Z.error(`${i} - incorrect element`,e),!1)}(t,n,r,a)?0:1)),0);d>0&&(o.Z.error(`${s} - one or more rules are incorrect`),t+=d);let c=0;u.forEach((e=>{if("string"==typeof e){const t=e;t!==i.CU.And&&t!==i.CU.Or||(c<2&&o.Z.error(`${s} - incorrect operator on stack, ${t} requires two values`),c--),t===i.CU.Not&&c<1&&o.Z.error(`${s} - incorrect operator on stack, ${t} requires one value`)}else c++})),1!==c&&o.Z.error(`${s} - incorrect stack size: ${c} (should be a one)`,u)})),t}},8114:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(5564),o=n.n(r),i=n(1108);function a(e){return(...t)=>{if(t.length<2)return o()(t);const n=[];return t.forEach(((t,r)=>{n.push(t),r>0&&n.push([e])})),o()(n)}}const s={not:function(e){if(Array.isArray(e)&&0===e.length)return[];const t=[];return t.push(e),t.push([i.CU.Not]),o()(t)},any:a(i.CU.Or),all:a(i.CU.And)}},8615:(e,t,n)=>{"use strict";n.d(t,{$5:()=>d,CH:()=>M,GR:()=>S,JI:()=>L,LP:()=>b,Lj:()=>p,S9:()=>s,Th:()=>h,_B:()=>z,e1:()=>j,e4:()=>T,gU:()=>Z,i1:()=>m,mp:()=>I,nR:()=>g,ny:()=>y,ok:()=>O,pX:()=>f,pq:()=>l,s3:()=>w,v8:()=>c,v9:()=>v,y$:()=>F,yN:()=>A,yd:()=>u,zo:()=>_});var r=n(1206),o=n(1108),i=n(5686),a=n(8114);const s={type:o.Bv.CurrentContext,property:"product",value:"mw"},u={type:o.Bv.CurrentContext,property:"product",value:"dis"},d={type:o.Bv.CurrentContext,property:"product",value:"trivia"},c={type:o.Bv.CurrentContext,property:"product",value:"fanhub"},l={type:o.Bv.CurrentContext,property:"product",value:"f2"},f={type:o.Bv.CurrentContext,property:"pageLanguage",value:"en"},p={type:o.Bv.UserLoggedIn,value:!0},g={type:o.Bv.UserLoggedIn,value:!1},v={type:o.Bv.UserDevice,deviceType:i.If.Desktop},m={type:o.Bv.UserDevice,deviceType:i.If.Mobile},h={type:o.Bv.CurrentContext,property:"page",value:"article"},y={type:o.Bv.CurrentContext,property:"page",value:"home"},w={type:o.Bv.MwConfig,property:"skin",value:"fandomdesktop"},b=(o.Bv.MwConfig,{type:o.Bv.MwConfig,property:"skin",value:"fandommobile"}),M={type:o.Bv.CurrentContext,property:"productVariant",value:"fandommobile"},C={type:o.Bv.DomNode,selector:"body",attribute:"class",value:"has-featured-video"},S={type:o.Bv.CurrentContext,property:"productCategory",value:"tv"},O=(o.Bv.CurrentContext,{type:o.Bv.DomNode,selector:"body",attribute:"class",value:"ns-0"}),_={type:o.Bv.TestOnlyInDev,value:!0},k={type:o.Bv.TestOnlyOnBranch,value:"canary"},E={type:o.Bv.IsTestWiki,value:!0},P={type:o.Bv.UserGeo,country:["us"]},A=(o.Bv.AlwaysLoad,{type:o.Bv.Url,search:"ss_debug=true"}),T={type:o.Bv.Url,host:"www.fandom.com"},x=(o.Bv.MwConfig,{type:o.Bv.MwConfig,property:"wgAction",value:["edit","mapedit"]}),B={type:o.Bv.CurrentContext,property:"page",value:"topic"},R={type:o.Bv.Url,search:"(?:action|veaction)=edit"},N=(o.Bv.Browser,r.BROWSER_MAP.chrome,{type:o.Bv.Browser,value:r.BROWSER_MAP.safari}),I={type:o.Bv.Browser,value:[r.BROWSER_MAP.chrome,r.BROWSER_MAP.safari]},Z=a.Z.all(s,g),D=a.Z.all(v,Z),L=a.Z.all(m,Z),z=a.Z.all(D,h),F=(a.Z.all(L,h),a.Z.not(C),a.Z.all(f,P),a.Z.any(_,k),a.Z.not(E)),j=a.Z.not(x);a.Z.all(s,y),a.Z.all(l,a.Z.any(B,y)),a.Z.not(R),a.Z.not(N)},1703:(e,t,n)=>{"use strict";n.d(t,{l:()=>s,n:()=>a});var r=n(655),o=n(4485),i=n(8074);const a=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const{property:t,value:n}=e;if((0,o.$r)().product!==o.xs.MEDIAWIKI)return i.Z.debug("RuleEngine/checkMwConfig: Unsupported product"),!1;try{if(!window.mw||!window.mw.config)return i.Z.error("RuleEngine/checkMwConfig: mw not initialized"),!1;const e=window.mw.config.get(t);return void 0===e?(i.Z.error(`RuleEngine/checkMwConfig: property [${t}] does not exist in mw`),!1):Array.isArray(n)?"number"==typeof e||"string"==typeof e?n.some((t=>t===e)):e.some((e=>n.includes(e))):"object"==typeof n&&n?Object.keys(e).some((t=>e[t]===n[t])):e===n}catch(t){i.Z.error("RuleEngine/checkMwConfig: Exception",t,e)}return!1})),s=e=>{const{property:t,value:n}=e;return!("string"!=typeof t||!t.length||!n)}},5686:(e,t,n)=>{"use strict";n.d(t,{D1:()=>u,If:()=>r,ij:()=>s});var r,o,i=n(655),a=n(1671);!function(e){e.Desktop="desktop",e.Mobile="mobile"}(r||(r={})),function(e){e.Landscape="landscape",e.Portrait="portrait"}(o||(o={}));const s=e=>(0,i.mG)(void 0,void 0,void 0,(function*(){const{deviceType:t,deviceOrientation:n}=e;let i=!0;return t&&i&&(i=t===(!1===(0,a.XS)()?r.Desktop:r.Mobile)),n&&i&&(i=n===function(){var e,t;const n=null!==(e=null===window||void 0===window?void 0:window.innerHeight)&&void 0!==e?e:0;return(null!==(t=null===window||void 0===window?void 0:window.innerWidth)&&void 0!==t?t:0)>=n?o.Landscape:o.Portrait}()),i})),u=e=>{const{deviceType:t,deviceOrientation:n}=e;return!(t&&!Object.values(r).includes(t)||n&&!Object.values(o).includes(n))}},7018:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,s:()=>i});var r=n(655),o=n(4485);const i=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){const t=(null!==(r=null===(n=(0,o.Vp)())||void 0===n?void 0:n.country)&&void 0!==r?r:"us").toLowerCase();var n,r;const{country:i}=e;return i.some((e=>e.toLowerCase()===t))})),a=e=>{const{country:t}=e;return!(!Array.isArray(t)||t.some((e=>"string"!=typeof e)))}},812:(e,t,n)=>{"use strict";n.d(t,{J:()=>u,U:()=>s});var r=n(655),o=(n(7841),n(3810)),i=n(8074);const a=(0,o.Z)({eventCheck:()=>{var e;return void 0!==(null===window||void 0===window?void 0:window._ulc)||void 0!==(null===(e=null===window||void 0===window?void 0:window.fandom)||void 0===e?void 0:e.user)},intervalTime:50,maxWaitTime:5e3,onReject:()=>({id:0}),onResolve:()=>{var e,t;return(null===(e=null===window||void 0===window?void 0:window._ulc)||void 0===e?void 0:e.id)?null===window||void 0===window?void 0:window._ulc:null===(t=null===window||void 0===window?void 0:window.fandom)||void 0===t?void 0:t.user}}),s=e=>(0,r.mG)(void 0,void 0,void 0,(function*(){try{const t=yield a(),n="string"==typeof t.id?parseInt(t.id,10):t.id;return e.value===n>0}catch(e){0===(null==e?void 0:e.id)?i.Z.debug("checkUserLoggedInRule: timed out waiting for user to be available, assuming anon"):i.Z.debug("checkUserLoggedInRule: error while waiting for user to be available, assuming anon",e)}return!e.value})),u=e=>{const{value:t}=e;return"boolean"==typeof t}},1108:(e,t,n)=>{"use strict";var r,o,i,a,s;n.d(t,{Bv:()=>r,CU:()=>s,Eo:()=>a,PO:()=>o,pz:()=>i}),function(e){e.Example="Example",e.AlwaysLoad="AlwaysLoad",e.TestOnlyInDev="TestOnlyInDev",e.TestOnlyOnBranch="TestOnlyOnBranch",e.CurrentContext="CurrentContext",e.UserLoggedIn="UserLoggedIn",e.VisitedPages="VisitedPages",e.UserDevice="UserDevice",e.DomNode="DomNode",e.DateRange="DateRange",e.UserGeo="UserGeo",e.Cookie="UserCookie",e.SilverSurferAction="SilverSurferAction",e.ScreenSize="ScreenSize",e.Url="Url",e.Referrer="Referrer",e.WikiCategory="WikiCategory",e.MwConfig="mwConfig",e.IsTestWiki="IsTestWiki",e.AtLeastDomNodes="AtLeastDomNodes",e.Browser="Browser",e.FandomContext="FandomContext",e.FandomQuizzes="FandomQuizzes"}(r||(r={})),function(e){e.Example="ExampleModule",e.InWikiEmail="InWikiEmailModule",e.DebugMenu="DebugMenuModule",e.HaloEffectVertical="HaloEffectVerticalModule",e.WikiQuizConsumptionModule="WikiQuizConsumptionModule",e.DiscussionQuizConsumptionModule="DiscussionQuizConsumptionModule",e.TriviaQuizConsumptionModule="TriviaQuizConsumptionModule",e.FanhubQuizConsumptionModule="FanhubQuizConsumptionModule",e.QuizCreation="QuizCreation",e.QuizMetaEditorModule="QuizMetaEditorModule",e.NotificationCMS="NotificationCMS",e.MarketingNotifications="MarketingNotifications",e.SponsoredWidgetsCountdownClockConsumptionModule="SponsoredWidgetsCountdownClockConsumptionModule",e.SponsoredWidgetsSponsoredLogoConsumptionModule="SponsoredWidgetsSponsoredLogoConsumptionModule",e.WebPush="WebPush",e.CollapseToC="CollapseToC",e.MobileDrawer="MobileDrawer",e.MobileDrawerValidation="MobileDrawerValidation",e.ImpactNotifications="ImpactNotifications"}(o||(o={})),function(e){e.Instant="Instant",e.Element="Element",e.UcpInContext="UcpInContext",e.Custom="Custom"}(i||(i={})),function(e){e.After="After",e.Append="Append",e.Before="Before",e.Prepend="Prepend"}(a||(a={})),function(e){e.And="AND",e.Or="OR",e.Not="NOT"}(s||(s={}))},5426:(e,t,n)=>{"use strict";n.d(t,{LP:()=>s,T6:()=>o,fM:()=>u,gv:()=>a,yc:()=>i});const r={silverSurferToken:null,allModules:[],renderedModules:[]},o=()=>{r.renderedModules=[]},i=e=>{r.renderedModules=e},a=e=>{r.silverSurferToken=e},s=()=>r.silverSurferToken,u=()=>r.renderedModules},8459:(e,t,n)=>{"use strict";n.d(t,{Eq:()=>s,Es:()=>l,fK:()=>c,mG:()=>a,o3:()=>d,yI:()=>u});var r=n(655),o=n(5426),i=n(8074);function a(e,t,n){return(0,r.mG)(this,void 0,void 0,(function*(){if("string"==typeof e&&e.length)try{return yield window.SilverSurferSDK.addAction((0,o.LP)(),e,t,n),i.Z.debug("saveAction",{name:e,type:t,payload:n}),!0}catch(r){i.Z.error("saveAction exception",r,{name:e,type:t,payload:n})}return!1}))}function s(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){try{return(yield window.SilverSurferSDK.getActions((0,o.LP)(),t)).filter((t=>t.name===e))}catch(n){i.Z.error("getAllActions exception",n,{name:e,type:t})}return[]}))}function u(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){const n=yield s(e,t),[r]=n;return r}))}function d(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){yield a(e,window.SilverSurferSDK.ACTION.IMPRESSION,t)}))}const c=864e5,l=7*c},681:(e,t,n)=>{"use strict";n.d(t,{ck:()=>a,rL:()=>d,Sw:()=>u});var r=n(437);r._u;const o=((e,t)=>(e,n)=>function(e,t,n,r={}){console.error("logErrorEvent",{client:e,clientVersion:t,name:n,data:r})}("pathfinder",t,e,(({ok:e,redirected:t,status:n,statusText:r,type:o,url:i})=>({ok:e,redirected:t,status:n,statusText:r,type:o,url:i}))(n)))(0,r._u);function i(e,t,n){return void 0===n&&(n={}),fetch(t,n).then((n=>("opaque"===n.type||n.ok||401===n.status||404===n.status||("function"==typeof e?e(t,n):console.error("fetchWithLogging Error",{url:t,response:n})),n)))}const a=(s=o,(e,t={})=>i(s,(0,r.sH)()+e,Object.assign({mode:"cors",credentials:"include"},t)));var s;const u=(e=>(t,n,o={})=>i(e,(0,r.sH)()+t,Object.assign({method:"POST",credentials:"include",body:n},o)))(o),d=(e=>(t,n,o={})=>i(e,(0,r.sH)()+t,Object.assign({method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",credentials:"include",body:JSON.stringify(n)},o)))(o)},8074:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,Z:()=>d});var r=n(437);function o(){}const i=Date.now(),a=(e,t,n=[])=>(a,...s)=>((e,t,n,a,...s)=>{const u=function(e){return"error"===e?console.error:"debug"===e?(0,r.n3)()||(0,r.RG)()?console.debug:o:console.log}(e),d=`%c${t} | ${((Date.now()-(null!==(l=null===(c=window.performance)||void 0===c?void 0:c.timeOrigin)&&void 0!==l?l:i))/1e3).toFixed(4)}s | ${a}`;var c,l;s.length?u(d,n,...s):u(d,n)})(t,e,n.join(";"),a,...s);function s(e){return["color: #fff","padding: 2px 4px","border-radius: 2px",`background-color: ${e}`]}function u(e){return{info:a(`Pathfinder Module | ${e.name}`,"info",s("#334")),debug:a(`Pathfinder Module | ${e.name}`,"debug",s("#550")),error:a(`Pathfinder Module | ${e.name}`,"error",s("#800"))}}const d={info:a("Pathfinder","info",s("#334")),debug:a("Pathfinder","debug",s("#550")),error:a("Pathfinder","error",s("#800"))}},2718:(e,t,n)=>{"use strict";n.d(t,{Q2:()=>s,XA:()=>d,g4:()=>u,zn:()=>a});var r=n(437),o=n(9267),i=n(8074);const a="pf_fm";function s(){return(0,o.A)(a)}function u(){document.cookie=`${a}=; path=/; domain=${location.hostname}; expires=${new Date(0).toUTCString()}`,(0,o.A)(a)||i.Z.info("Permanent forced module's cookie was deleted successfully")}function d(e){const t=(0,r.RG)()?"":"domain=.fandom.com";document.cookie=`${a}=${e}; max-age=2592000; ${t}; path=/`}},214:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var r=n(4485);function o(){var e;const t=function(){const e=/[?&]sw_date=([^&]+)/.exec(window.location.search),t=e?new Date(decodeURIComponent(e[1])):null;return t&&("Invalid Date"!==t.toString()?t:null)}();return{dateTime:(t||new Date).toISOString(),dateIsForced:null!==t,geo:null!==(e=(0,r.Vp)().country)&&void 0!==e?e:"",pageContext:window.SilverSurferSDK.getContext().current.toTransport()}}},3492:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(8074);function o(e,t,n,o,i){return e.sort(((e,t)=>e.id-t.id)).find((e=>e.size.width===t.width&&e.size.height===t.height))||(r.Z.debug(`${n}: widget(${o}): state(${i}): no applicable images`),null)}},768:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(8074);function o(e,t){if(!e.active)return"not active";const n=(r=e.startDateTime,o=e.endDateTime,i=t.dateTime,r&&i<r?"`startDateTime` > device `dateTime`":o&&o<=i?"`endDateTime` <= device `dateTime`":null);var r,o,i;if("string"==typeof n)return n;const a=function(e,t){switch(t.pageContext.p){case"mw":case"f2":return function(e,t){if(0===e.length)return"not enabled on UCP";const n=[];return e.find((e=>{var r,o,i;const a=`UCPTargeting(${e.id}): doesn't cover `;if(e.wikiId&&e.wikiId!==t.pageContext.pId)return n.push(a+"wikiId"),!1;if(e.wikiId&&e.articleIds.length&&!e.articleIds.includes(t.pageContext.pgId))return n.push(a+"articleId"),!1;if("f2"!==t.pageContext.p&&e.skins.length&&!e.skins.includes(t.pageContext.pVar))return n.push(a+"skin"),!1;if(e.geos.length&&!e.geos.includes(t.geo))return n.push(a+"geo"),!1;if(e.genres.length&&(!(null===(i=null===(o=null===(r=t.pageContext)||void 0===r?void 0:r.adTags)||void 0===o?void 0:o.gnre)||void 0===i?void 0:i.length)||!e.genres.find((e=>t.pageContext.adTags.gnre.includes(e)))))return n.push(a+"genres"),!1;if(window.mw){const t=window.mw.config.get("wikiCategories");if(null!=e.categories&&e.categories.length&&(!t||!e.categories.some((e=>t.includes(e)))))return n.push(a+"categories"),!1}return n.splice(0,n.length),!0})),n.length&&n.reduce(((e,t)=>e+", "+t))||null}(e.ucpTargetings,t);default:return"not supported product"}}(e,t);return"string"==typeof a?a:null}function i(e){return e.startDateTime&&isNaN(Date.parse(e.startDateTime))?"`startDateTime` is invalid":e.endDateTime&&isNaN(Date.parse(e.endDateTime))?"`endDateTime` is invalid":null}var a=n(1640);function s(e,t,n,s=void 0,u=void 0){e=e.sort(((e,t)=>e.id-t.id));const d=`${n}: `,c=(0,a._)(n);for(const n of e){if(c===n.id.toString())return n;const e=d+`widget(${n.id}): `,a=t=>r.Z.error(e+t),l=i(n);if("string"==typeof l){a(l);continue}const f=s?s(n):null;if("string"==typeof f){a(f);continue}const p=t=>r.Z.debug(e+t),g=o(n,t);if("string"==typeof g){p(g);continue}const v=u?u(n,t):null;if("string"!=typeof v)return n;p(v)}return r.Z.debug(d+"no applicable widgets"),null}},9715:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var r=n(8074);function o(e,t){return e.startDateTime&&t.dateTime<e.startDateTime?"device `dateTime` < `startDateTime`":null}function i(e){return e.startDateTime&&isNaN(Date.parse(e.startDateTime))?"`startDateTime` is invalid":null}function a(e,t,n,a,s=void 0,u=void 0){e=[...e.filter((e=>null!==e.startDateTime)).sort(((e,t)=>t.startDateTime.localeCompare(e.startDateTime))),...e.filter((e=>null===e.startDateTime)).sort(((e,t)=>e.id-t.id))];const d=`${n}: widget(${a}): `;for(const n of e){const e=d+`state(${n.id}): `,a=t=>r.Z.error(e+t),c=i(n);if("string"==typeof c){a(c);continue}const l=s?s(n):null;if("string"==typeof l){a(l);continue}const f=t=>r.Z.debug(e+t),p=o(n,t);if("string"==typeof p){f(p);continue}const g=u?u(n,t):null;if("string"!=typeof g)return n;f(g)}return r.Z.debug(d+"no applicable states"),null}},1640:(e,t,n)=>{"use strict";function r(e){const t=new RegExp("[?&]sw_preview="+e+"-([^&]+)").exec(window.location.search);return t&&t[1]}n.d(t,{_:()=>r})},396:(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildModuleTrackingFunction:()=>i,buildTrackingFunctions:()=>u,trackExperimentsModule:()=>s,trackRootPathfinder:()=>a});var r=n(437),o=n(3338);function i(e){return u(e.type,e.name)}function a(e={}){return u("PF","Root")(e)}function s(e,t={}){return i(e)(t)}function u(e,t){const n=(0,r.mJ)(),i=`pf-experiments${n?"-dev":""}: ${e}`;return(0,o.ZP)({category:i,experimentVariant:t,isDebug:n})}},7756:(e,t,n)=>{"use strict";var r;n.d(t,{U:()=>r}),function(e){e.ADD="add",e.CLICK="click",e.CLOSE="close",e.CONFIRM="confirm",e.CREATE="create",e.DISABLE="disable",e.ENABLE="enable",e.ERROR="error",e.HOVER="hover",e.IMPRESSION="impression",e.IDENTITY="identity",e.KEYPRESS="keypress",e.NO_IMPRESSION="no-impression",e.OPEN="open",e.PLAY_VIDEO="play-video",e.QUIZ="quiz",e.REACTION="reaction",e.REMOVE="remove",e.SELECT="select",e.SHARE="share",e.SUBMIT="submit",e.SUCCESS="success",e.SWIPE="swipe",e.VIEW="view",e.REACTION_COUNT="reaction-count",e.HEALTH="health",e.HIGHLIGHT="highlight",e.MYFANDOM="myfandom",e.CALENDAR_EVENTS="calendarevents",e.COLLECTIONITEM="collectionitem"}(r||(r={}))},437:(e,t,n)=>{"use strict";n.d(t,{Gr:()=>a,RG:()=>s,V1:()=>u,Xw:()=>l,_u:()=>c,h:()=>d,mJ:()=>g,n3:()=>p,q2:()=>o,sH:()=>i});var r=n(9094);function o(){return!("undefined"==typeof window||!window.location||!window.location.hostname)&&window.location.hostname.includes("fandom.com")}function i(){return o()?"https://services.fandom.com/":"https://services.fandom-dev."+(location.hostname.match(/(?!\.)(pl|us)$/)||["us"])[0]+"/"}const a={DEBUG:"ss_debug",BRANCH:"ss_branch_deploy",CANARY:"ss_canary",ENABLED_PATHFINDER_MODULE:"ss_pathfinder_enable",FORCED_PATHFINDER:"ss_pathfinder_forced",FORCED_BUCKETING:"ss_pathfinder_force_bucket"},s=r.RG,u=()=>/fandom-dev\.(pl|us)$/.test(location.hostname),d=()=>/fandom-dev\.pl/.test(location.hostname),c=(null==="defb5663c1c\n"?void 0:"defb5663c1c\n".replace(/\n/g,""))||"local",l=!1,f=e=>window.location.search.includes(e),p=()=>f(`${a.DEBUG}=true`);function g(){const e=Object.values(a);for(let t=0;t<e.length;t++)if(f(e[t]))return!0;return!1}},9267:(e,t,n)=>{"use strict";function r(e){const t=document.cookie.match(RegExp("(?:^|;\\s*)"+e.replace(/([.*+?\^$(){}|\[\]\/\\])/g,"\\$1")+"=([^;]*)"));return t?t[1]:null}n.d(t,{A:()=>r})},7904:(e,t,n)=>{"use strict";function r(e,t){var n;const r=new URLSearchParams(null===(n=null===window||void 0===window?void 0:window.location)||void 0===n?void 0:n.search);return r.has(e)?r.get(e):t}n.d(t,{Z:()=>r})},7045:(e,t,n)=>{"use strict";n.d(t,{VB:()=>i,wj:()=>u});var r=n(655),o=n(3810);const i=["fandommobile","wikiamobile","mobileve","mobileskin"],a=(0,o.Z)({eventCheck:()=>{var e;return!!(null===(e=null===window||void 0===window?void 0:window.mw)||void 0===e?void 0:e.config)},intervalTime:10,maxWaitTime:5e3,onReject:()=>null,onResolve:()=>window.mw.config});let s=null;const u=()=>(0,r.mG)(void 0,void 0,void 0,(function*(){var e,t;return null!==(t=null===(e=yield function(){return(0,r.mG)(this,void 0,void 0,(function*(){return s||(s=yield a()),null!=s?s:{}}))}())||void 0===e?void 0:e.get("isDarkTheme"))&&void 0!==t&&t}))},1671:(e,t,n)=>{"use strict";n.d(t,{XS:()=>o,ZP:()=>a,vu:()=>i});var r=n(7045);const o=()=>{const e=String((null===navigator||void 0===navigator?void 0:navigator.userAgent)||(null===navigator||void 0===navigator?void 0:navigator.vendor)||(null===window||void 0===window?void 0:window.opera)||"");return/windows phone/i.test(e)?"windows-phone":/android/i.test(e)?"android":!(!/ipad|iphone|ipod/i.test(e)||window.MSStream)&&"ios"},i=()=>{var e,t;const n=new URLSearchParams(null===window||void 0===window?void 0:window.location.search),o=null===(t=null===(e=null===document||void 0===document?void 0:document.querySelector("html"))||void 0===e?void 0:e.classList)||void 0===t?void 0:t.contains("mobile-app"),i=n.has("useskin")?n.get("useskin"):"",a=r.VB.some((e=>e===i.toLowerCase()));return o||a},a=()=>i()||o()||(null===window||void 0===window?void 0:window.matchMedia("screen and (max-width: 727px)").matches)},6355:(e,t,n)=>{"use strict";function r(e){setTimeout(e,1)}n.d(t,{Z:()=>r})},3810:(e,t,n)=>{"use strict";function r(e){let t=0;const n="function"==typeof(null==e?void 0:e.onResolve)?e.onResolve:()=>{},r="function"==typeof(null==e?void 0:e.onReject)?e.onReject:()=>{};return()=>new Promise(((o,i)=>{const a=setInterval((()=>{e.eventCheck()&&(clearInterval(a),o(n())),e.intervalTime*t>e.maxWaitTime&&(clearInterval(a),i(r())),t++}),e.intervalTime)}))}n.d(t,{Z:()=>r})},655:(e,t,n)=>{"use strict";function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}n.d(t,{_T:()=>r,mG:()=>o}),Object.create,Object.create}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>(({8:"mobileDrawerUnit-loader",21:"marketingNotificationsUnit",113:"haloEffectVerticalModuleUnit",168:"preact",172:"marketingNotification-forcedModuleData",245:"quizConsumption",307:"debugMenuModule",348:"quizCreationModule",349:"wikiQuizConsumptionModule",361:"notificationCMSUnit",447:"discQuizConsumptionModule",495:"inWikiEmailUnit",595:"SponsoredWidgetsSponsoredLogoConsumptionModule",606:"SponsoredWidgetsCountdownClockConsumptionModule",666:"intersection_observer_polyfills",667:"web-push-module-loader",673:"mobileDrawerValidationUnit-loader",737:"trivQuizConsumptionModule",760:"collapseToCModuleUnit-loader",906:"impactNotificationsUnit-loader",913:"web-push-fandom-firebase",986:"quizTargetingEditorUnit",993:"fanhubQuizConsumptionModule"}[e]||e)+"-pathfinder.js"),a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="@fandom/silver-surfer:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,u;if(void 0!==o)for(var d=document.getElementsByTagName("script"),c=0;c<d.length;c++){var l=d[c];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==r+o){s=l;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),u&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={179:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,u]=n,d=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);u&&u(a)}for(t&&t(n);d<i.length;d++)o=i[d],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunk_fandom_silver_surfer=self.webpackChunk_fandom_silver_surfer||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0,(()=>{"use strict";var e=a(655),t=a(3338);const n=(0,t.ZP)({event:"browser-client-alerting"});var r,o,i;!function(e){e.INIT="roots-initial",e.LOADED="roots-loaded"}(r||(r={})),function(e){e.SS_PRE_BOOTSTRAP="ss_pre_bootstrap",e.SS_SDK_START="ss_sdk_start",e.SS_SDK_LOADED="ss_sdk_loaded",e.SS_SDK_READY="ss_sdk_ready",e.SS_CROSS_DOMAIN_READY="ss_cross_domain_ready",e.SS_CROSS_DOMAIN_REGISTER_START="ss_cross_domain_register_start",e.SS_CROSS_DOMAIN_REGISTER_ALL_PAGES_DONE="ss_cross_domain_register_all_pages_done"}(o||(o={})),function(e){e.PF_START="pf_start",e.PF_LOADED="pf_loaded",e.PF_READY="pf_ready"}(i||(i={}));var s=a(9094);const u="__frontend_utils_consistent_random",d=(0,t.ZP)({event:"browser-client-timings"}),c=.005;let l=new Map;function f(e,t){var n,r;l.set(e,t),n=e,r=t,((0,s.L1)()||(window[u]||(window[u]=Math.random()),window[u]<=c))&&d({category:`timings-event-${n}`,label:r.toString(),action:"timed",value:r})}function p(e){try{const t=Math.round(Date.now()-function(){if(!window.performance&&!window.performance.timeOrigin)throw new Error("Performance value not set");return window.performance.timeOrigin}());return f(e,t),(0,s.L1)()&&console.log("Timing",e,t),t}catch(e){console.error("TimingRecord Error",e)}}var g=a(8074),v=a(437),m=a(3810);const h=Date.now();let y=-1;const w=(0,m.Z)({eventCheck:()=>{var e;return null===(e=null===window||void 0===window?void 0:window.SilverSurferSDK)||void 0===e?void 0:e.isReady()},intervalTime:10,maxWaitTime:6e4,onReject:()=>{console.error("silver-surfer-loaded-timeout")},onResolve:()=>{y<0&&(y=Date.now()-h),(0,v.n3)()&&console.debug("silver-surfer-loaded",y)}});var b=a(6355),M=a(462),C=a(3533),S=a(4485),O=a(7904);const _=e=>{const t=[];for(let n=0;n<e.length;n++)if(e[n].includes("-")){const[r,o]=e[n].split("-").map((e=>Number(e)));if(isNaN(r)||isNaN(o))return console.error(`Invalid bucketing for exp_bucket: ${e[n]}`),[];for(let e=r;e<=o;e++)t.push(e.toString())}else{if(isNaN(Number(e[n])))return console.error(`Invalid bucketing for exp_bucket: ${e[n]}`),[];t.push(e[n])}return[...new Set(t)]};const k=0,E=/[0-9a-zA-Z_-]+/;function P(e=k){const t=(0,S.Do)();return null==t?void 0:t[e]}var A;!function(e){e.Valid="Valid",e.Invalid="Invalid",e.Control="Control"}(A||(A={}));var T=a(5601);const x=e=>Promise.all(e.map((e=>e.then((e=>({status:"fulfilled",value:e}))).catch((e=>({status:"rejected",reason:e}))))));function B(t){return(0,e.mG)(this,void 0,void 0,(function*(){return(yield x(t)).filter((e=>"fulfilled"===e.status)).map((e=>null==e?void 0:e.value)).filter(Boolean)}))}var R=a(5426);function N(e){return e.map((e=>e.config.name))}function I(t){return(0,e.mG)(this,void 0,void 0,(function*(){return new Promise(((e,n)=>{try{(0,M.K4)(t.type)(t).then((n=>{n?e(Object.assign({config:t},n)):(g.Z.debug("RulesEngine: Module failed to provide methods (no result)",t),e(!1))})).catch((n=>{g.Z.error("RulesEngine: Module failed to provide methods (exception from getModuleMethod)",t,n),e(!1)}))}catch(n){g.Z.error("RulesEngine: Module failed to provide methods (exception getting getModuleMethod)",t,n),e(!1)}}))}))}function Z(){return(0,e.mG)(this,void 0,void 0,(function*(){const t="RulesEngine/getAvailableModules:";g.Z.debug(`${t} Checking available modules`);const n=N((0,R.fM)()),r=yield function(t=[]){return(0,e.mG)(this,void 0,void 0,(function*(){const e="RulesEngine/getModuleCandidates:",n=(0,M.rz)();if(!n.length)return g.Z.error(`${e} No modules`),[];g.Z.debug(`${e} Modules`,n);const r=(0,T.Z)();let o;r&&(o=n.find((e=>e.name===r)));let i=n.filter((e=>!(null==e?void 0:e.disabled)));if(g.Z.debug(`${e} Enabled modules`,i),t.length&&(i=i.filter((e=>!t.includes(e.name))),!i.length))return[];const a=i.filter(D);g.Z.debug(`${e} Enabled modules in current traffic`,a);const s=function(e){const t=e.filter((e=>!(null==e?void 0:e.buckets)&&!(null==e?void 0:e.expBucket))),n=e.filter((e=>{var t;return(null==e?void 0:e.buckets)&&0===(null===(t=null==e?void 0:e.expBucket)||void 0===t?void 0:t.length)||(null==e?void 0:e.buckets)&&!(null==e?void 0:e.expBucket)})),r=e.filter((e=>null==e?void 0:e.expBucket)),o=(0,O.Z)("ss_pathfinder_force_bucket");let i=(0,S.yi)(),a=P();void 0!==o&&(null==o?void 0:o.length)>0&&(i=o,a=o);const s=[];return n.length>0&&n.filter((e=>e.buckets.some((t=>t.includes(a)&&s.push(e))))),r.length>0&&r.filter((e=>_(e.expBucket).some((t=>t===i&&s.push(e))))),[...t,...s]}(a);g.Z.debug(`${e} Modules with buckets applied`,s);const u=yield B(s.map(C.Po));if(g.Z.debug(`${e} Module candidates`,u),o&&!t.includes(r)){g.Z.info(`${e} Forced module, forcing it`,o),o.internalState.forced=!0;const t=u.filter((e=>e.name!==(null==o?void 0:o.name)));return t.unshift(o),t}return u}))}(n);if(!r.length)return g.Z.debug(`${t} No candidates`),[];const o=(0,T.Z)();!o||r.map((e=>e.name)).includes(o)||n[o]||g.Z.error(`${t} Cannot find forced module`,o);const i=yield B(r.map(I));return g.Z.debug(`${t} Available modules`,i),i}))}function D(e){const t=null==e?void 0:e.limitTraffic;return void 0===t||("number"==typeof t?Math.random()<t:"string"==typeof t?t.includes(P()):!!Array.isArray(t)&&t.some(((e,t)=>e.includes(P(t)))))}var L=a(1108);var z=a(396),F=a(8459);function j(e){const t="RulesEngine/callInsertModule:";try{"function"==typeof(null==e?void 0:e.render)&&(g.Z.debug(`${t} Rendering module`,e),function(e){var t,n,r;const o=e.config,i=e.render(),a=null!==(n=null===(t=e.config)||void 0===t?void 0:t.impressionName)&&void 0!==n?n:e.config.type;(0,z.trackExperimentsModule)(o,{nonInteractive:!0,action:"inserted"});const s=()=>{g.Z.debug("RulesEngine/Insert: Module shown",o),"function"==typeof e.show&&e.show(),(0,F.o3)(a),(0,z.trackExperimentsModule)(o,{nonInteractive:!0,action:"loaded"})};if(i instanceof Element)switch(g.Z.debug("RulesEngine/Insert: Rendering and inserting hidden module",o),o.insertConfig.type){case L.pz.Instant:return document.querySelector("body").appendChild(i),void s();case L.pz.Element:{const e=o.insertConfig.selectors;let t,n=L.Eo.Append;for(const r of e)if(t=document.querySelector(r.selector),t){n=r.method;break}if(t){switch(n){case L.Eo.After:t.after(i);break;case L.Eo.Append:t.append(i);break;case L.Eo.Before:t.before(i);break;case L.Eo.Prepend:t.prepend(i);break;default:return void g.Z.error("RulesEngine/Insert: Unknown method",n,o)}s()}else g.Z.error("RulesEngine/Insert: Could not find an element to attach",o);return}case L.pz.UcpInContext:(function(e,t){var n;let r=0;const o=Array.from(document.querySelectorAll("#mw-content-text p")).filter((e=>!e.classList.contains("caption"))).map((e=>(r+=e.textContent.replace(/\s/g,"").length,{node:e,charCountSum:r})));let i,a=o.findIndex((({charCountSum:e})=>e>t))-1;for(;a>0&&a<o.length;){const{node:e}=o[a];if("P"===(null===(n=null==e?void 0:e.previousElementSibling)||void 0===n?void 0:n.tagName)){i=e;break}a++}void 0!==i?i.before(e):document.querySelector("#mw-content-text").appendChild(e)})(i,null!==(r=o.insertConfig.characters)&&void 0!==r?r:0),s()}else e.config.insertConfig.type===L.pz.Custom?(g.Z.debug("RulesEngine/Insert: Custom module, skipping inserting",o),s()):g.Z.error("RulesEngine/Insert: Module.render did not return HTML",o)}(e))}catch(e){g.Z.error(`${t} Exception`,e)}}function $(e){const t="RulesEngine/callCleanupModule:";try{"function"==typeof(null==e?void 0:e.cleanup)&&(g.Z.debug(`${t} Calling cleanup`,e),e.cleanup())}catch(e){g.Z.error(`${t} Exception`,e)}}var G=a(7068),U=a(6304),W=a(5447);const V=["debug-menu"];function Q(e){var t;return(null===(t=e)||void 0===t?void 0:t.type)===L.Bv.DateRange}const q=e=>!V.includes(e.config.name),K=()=>({activeModules:(0,R.fM)().filter(q).map((e=>{var t,n;const r=(e=>{const t=e.config.targeting.find(Q);if(t)return t.end})(e),o={name:e.config.name,isPermanent:!r&&!(null===(t=e.config.buckets)||void 0===t?void 0:t.length)&&!(null===(n=e.config.internalState)||void 0===n?void 0:n.forced)};return r&&(o.endDate=r),o}))});function H(){return(0,e.mG)(this,void 0,void 0,(function*(){const e=yield Z();e.forEach(j),g.Z.info("Rendered modules",N(e)),(0,R.yc)(e)}))}function J(){return(0,e.mG)(this,void 0,void 0,(function*(){g.Z.debug("Loaded"),p(i.PF_LOADED),v.Xw&&function(){const e=(0,M.lV)();let t=0;g.Z.info("RulesEngine: Validating ALL the modules that are present in the code"),console.groupCollapsed("RulesEngine: Expand module validation errors"),e.forEach((e=>{t+=function(e){let t=0;const n=`RulesEngine/validation: ${e.name}`,r=["internalState"];if(r.push("disabled"),null==e?void 0:e.disabled){const{disabled:r}=e;"boolean"!=typeof r&&(g.Z.error(`${n} - 'disabled' not boolean`),t++)}if(r.push("limitTraffic"),null==e?void 0:e.limitTraffic){const{limitTraffic:r}=e;"number"==typeof r?(r<=0&&(g.Z.error(`${n} - 'limitTraffic' <= 0 disables the module`),t++),r>1&&(g.Z.error(`${n} - 'limitTraffic' > 1 always enables the module`),t++)):"string"==typeof r?E.test(r)||(g.Z.error(`${n} - 'limitTraffic' has incorrect buckets`),t++):Array.isArray(r)?r.some((e=>!E.test(e)))&&(g.Z.error(`${n} - 'limitTraffic' has incorrect buckets`),t++):(g.Z.error(`${n} - 'limitTraffic' is malformed`),t++)}if(r.push("name"),null==e?void 0:e.name){const{name:r}=e;/^[a-z0-9_-]+$/.test(r)||(g.Z.error(`${n} - 'name' can only use lower case letters, nuumbers, dash, and underscore`),t++)}else g.Z.error(`${n} - 'name' is missing`),t++;if(r.push("impressionName"),null==e?void 0:e.impressionName){const{impressionName:r}=e;"string"!=typeof r&&(g.Z.error(`${n} - 'impressionName' not string`),t++)}if(r.push("type"),null==e?void 0:e.type){const{type:r}=e;Object.values(L.PO).includes(r)||(g.Z.error(`${n} - 'type' unknown`),t++)}else g.Z.error(`${n} - 'type' is missing`),t++;if(r.push("buckets"),null==e?void 0:e.buckets){const{buckets:r}=e;Array.isArray(r)?(r.some((e=>!E.test(e)))&&(g.Z.error(`${n} - incorrect 'buckets'`,r),t++),(null==e?void 0:e.disabled)&&r.length>0&&g.Z.info(`${n} - config still has buckets, but it is disabled; this can cause confusion, consider removing those buckets`)):(g.Z.error(`${n} - 'buckets' is not an array`,r),t++)}if(r.push("insertConfig"),null==e?void 0:e.insertConfig)switch(Object.values(L.pz).includes(e.insertConfig.type)||(g.Z.error(`${n} - 'insertConfig.type' unknown`,e.insertConfig.type),t++),e.insertConfig.type){case L.pz.Element:{const{selectors:r}=e.insertConfig;Array.isArray(r)&&r.length?r.some((({selector:e,method:t})=>"string"!=typeof e||!Object.values(L.Eo).includes(t)))&&(g.Z.error(`${n} - incorrect 'insertConfig.selectors'`,r),t++):(g.Z.error(`${n} - 'insertConfig.selectors' is not an non-empty array`),t++);break}case L.pz.UcpInContext:{const{characters:r}=e.insertConfig;!r||"number"==typeof r&&r>=0||(g.Z.error(`${n} - 'insertConfig.characters' is not a positive number`,r),t++);break}}else g.Z.error(`${n} - 'insertConfig' is missing`),t++;r.push("config"),r.push("priority"),(null==e?void 0:e.priority)&&("number"!=typeof e.priority||isNaN(e.priority)?g.Z.error(`${n} - 'priority' can only be an integer, not a float, string, boolean, array, etc`):Number.isInteger(e.priority)||g.Z.error(`${n} - 'priority' cannot be a float, integer only`)),r.push("targeting");const o=Object.keys(e).filter((e=>!r.includes(e)));return o.length&&g.Z.error(`${n} - Found fields that couldn't be validated :`,o),t}(e)})),t+=(0,C.os)(e),console.groupEnd(),t>0?g.Z.error(`RulesEngine: Validation finished for ${e.length} modules, found ${t} errors`):g.Z.info(`RulesEngine: Validation finished for ${e.length} modules, no errors found`)}();try{yield H(),window.pathfinder={getState:K},z.trackRootPathfinder({action:"viewable",label:"true"}),window.pathfinderModulesReady=!0,p(i.PF_READY),window.dispatchEvent(new CustomEvent("PathfinderModulesLoaded")),(0,U.i)(void 0),(0,G.E)(void 0),(0,W.pT)()}catch(e){g.Z.error("Cannot render modules",e),z.trackRootPathfinder({action:"viewable",label:"false"})}}))}w().then((function(){return(0,e.mG)(this,void 0,void 0,(function*(){g.Z.debug(`Booting Pathfinder #${v._u}`);const e=yield window.SilverSurferSDK.registerClient({name:"pathfinder",onReboot:()=>{!function(){const e=(0,R.fM)();g.Z.debug("Cleaning up previously rendered modules",N(e)),e.forEach($),(0,R.T6)()}(),(0,b.Z)(H)}});window.pathfinderTracking=z,e?((0,R.gv)(e),g.Z.debug("Preloaded with token",e),(0,b.Z)(J)):(g.Z.error("Couldn't register with SilverSurfer, disabling Pathfinder"),function(e,r){n({category:(0,t._E)(`browser-client-alerting-${e}`),label:"pie-dpad-tech",action:"alert"})}("pf-failed-register-sdk"))}))})),p(i.PF_START)})()})();
//# sourceMappingURL=pathfinder.js.map