mw.loader.implement("ext.centralNotice.bannerController",function($,jQuery){(function($,mw){var rPlus=/\+/g;function decode(s){try{return decodeURIComponent(s.replace(rPlus,' '));}catch(e){return'';}}function synthesizeGeoCookie(){if(!window.Geo||!window.Geo.country){$.cookie('GeoIP','::::vx',{path:'/'});return;}var parts=[window.Geo.country,window.Geo.city.replace(/[^a-z]/i,'_'),window.Geo.lat,window.Geo.lon,(window.Geo.IP&&window.Geo.IP.match(':'))?'v6':'v4'];$.cookie('GeoIP',parts.join(':'),{path:'/'});}window.Geo=(function(match,country,city,lat,lon,af){return{country:country,city:city,lat:lat&&parseFloat(lat),lon:lon&&parseFloat(lon),af:af};}).apply(null,($.cookie('GeoIP')||'').match(/([^:]*):([^:]*):([^:]*):([^:]*):([^;]*)/||[]));mw.centralNotice={data:{getVars:{},category:'default',bucket:null,testing:false},bannerData:{},events:{},alreadyRan:false,deferredObjs:{},loadBanner:function(){if(mw.centralNotice.data.getVars.banner){mw.centralNotice.loadTestingBanner(mw.centralNotice.
data.getVars.banner,'none','testing');}else{mw.centralNotice.loadRandomBanner();}},loadTestingBanner:function(bannerName,campaign){var bannerPageQuery;mw.centralNotice.data.testing=true;bannerPageQuery={title:'Special:BannerLoader',banner:bannerName,campaign:campaign,uselang:mw.config.get('wgUserLanguage'),db:mw.config.get('wgDBname'),project:mw.config.get('wgNoticeProject'),country:mw.centralNotice.data.country,device:mw.centralNotice.data.device,debug:mw.centralNotice.data.getVars.debug};$.ajax({url:mw.config.get('wgCentralPagePath')+'?'+$.param(bannerPageQuery),dataType:'script',cache:true});},loadRandomBanner:function(){var RAND_MAX=30;var bannerDispatchQuery={uselang:mw.config.get('wgUserLanguage'),sitename:mw.config.get('wgSiteName'),project:mw.config.get('wgNoticeProject'),anonymous:mw.config.get('wgUserName')===null,bucket:mw.centralNotice.data.bucket,country:mw.centralNotice.data.country,device:mw.centralNotice.data.device,slot:Math.floor(Math.random()*RAND_MAX)+1,debug:mw.
centralNotice.data.getVars.debug};var scriptUrl=mw.config.get('wgCentralBannerDispatcher')+'?'+$.param(bannerDispatchQuery);$.ajax({url:scriptUrl,dataType:'script',cache:true});},insertBanner:function(bannerJson){window.insertBanner(bannerJson);},toggleNotice:function(){window.toggleNotice();},hideBanner:function(){window.hideBanner();},recordImpression:function(data){var url=mw.config.get('wgCentralBannerRecorder')+'?'+$.param(data);(new Image()).src=url;},loadQueryStringVariables:function(){document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g,function(str,p1,p2){mw.centralNotice.data.getVars[decode(p1)]=decode(p2);});},getBucket:function(){var dataString=$.cookie('centralnotice_bucket')||'',bucket=dataString.split('-')[0],validity=dataString.split('-')[1],expValidity=mw.config.get('wgNoticeNumberOfBuckets')+'.'+mw.config.get('wgNoticeNumberOfControllerBuckets');if((bucket===null)||(validity!==expValidity)){bucket=Math.floor(Math.random()*mw.config.get(
'wgNoticeNumberOfControllerBuckets'));$.cookie('centralnotice_bucket',bucket+'-'+expValidity,{expires:mw.config.get('wgNoticeBucketExpiry'),path:'/'});}return bucket;},initialize:function(){if(mw.centralNotice.alreadyRan){return;}mw.centralNotice.alreadyRan=true;mw.centralNotice.loadQueryStringVariables();mw.centralNotice.data.bucket=mw.centralNotice.getBucket();mw.centralNotice.data.country=mw.centralNotice.data.getVars.country||window.Geo.country||'XX';mw.centralNotice.data.addressFamily=(window.Geo.IPv6||window.Geo.af==='v6')?'IPv6':'IPv4';mw.centralNotice.isPreviewFrame=(mw.config.get('wgCanonicalSpecialPageName')==='BannerPreview');mw.centralNotice.data.device=mw.centralNotice.data.getVars.device||mw.config.get('wgMobileDeviceName','desktop');if(mw.config.get('wgNamespaceNumber')==-1&&!mw.centralNotice.isPreviewFrame){return;}mw.centralNotice.deferredObjs.bannerLoaded=$.Deferred();mw.centralNotice.events.bannerLoaded=mw.centralNotice.deferredObjs.bannerLoaded.promise();$(
'#siteNotice').prepend('<div id="centralNotice"></div>');if(mw.centralNotice.data.country==='XX'){$.ajax({url:'//geoiplookup.wikimedia.org/',dataType:'script',cache:true}).always(function(){if(window.Geo&&window.Geo.country){mw.centralNotice.data.country=window.Geo.country;}else{mw.centralNotice.data.country='XX';}synthesizeGeoCookie();mw.centralNotice.loadBanner();});}else{mw.centralNotice.loadBanner();}}};window.insertBanner=function(bannerJson){var url,targets;var impressionData={country:mw.centralNotice.data.country,uselang:mw.config.get('wgUserLanguage'),project:mw.config.get('wgNoticeProject'),db:mw.config.get('wgDBname'),bucket:mw.centralNotice.data.bucket,anonymous:mw.config.get('wgUserName')===null,device:mw.centralNotice.data.device};var impressionResultData=null;if(!bannerJson){impressionResultData={result:'hide',reason:'empty'};}else{mw.centralNotice.data.category=encodeURIComponent(bannerJson.category);if(typeof mw.centralNotice.bannerData.preload==='function'&&!mw.
centralNotice.bannerData.preload()){impressionResultData={result:'hide',reason:'preload'};}else if(mw.centralNotice.data.testing===false&&($.cookie('centralnotice_hide_'+mw.centralNotice.data.category)==='hide'||$.cookie('centralnotice_'+mw.centralNotice.data.category)==='hide')){impressionResultData={result:'hide',reason:'cookie'};}else{mw.centralNotice.bannerData.bannerName=bannerJson.bannerName;$('div#centralNotice').attr('class',mw.html.escape('cn-'+mw.centralNotice.data.category)).prepend(bannerJson.bannerHtml);if(bannerJson.autolink){url=mw.config.get('wgNoticeFundraisingUrl');if((bannerJson.landingPages!==null)&&bannerJson.landingPages.length){targets=String(bannerJson.landingPages).split(',');if($.inArray(mw.centralNotice.data.country,mw.config.get('wgNoticeXXCountries'))!==-1){mw.centralNotice.data.country='XX';}url+="?"+$.param({landing_page:targets[Math.floor(Math.random()*targets.length)].replace(/^\s+|\s+$/,''),utm_medium:'sitenotice',utm_campaign:bannerJson.campaign,
utm_source:bannerJson.bannerName,language:mw.config.get('wgUserLanguage'),country:mw.centralNotice.data.country});$('#cn-landingpage-link').attr('href',url);}}var bannerShown=true;if(typeof mw.centralNotice.bannerData.alterImpressionData==='function'){bannerShown=mw.centralNotice.bannerData.alterImpressionData(impressionData);}if(bannerShown){impressionResultData={banner:bannerJson.bannerName,campaign:bannerJson.campaign,result:'show'};}else{impressionResultData={result:'hide'};}}}impressionResultData=$.extend(impressionResultData,impressionData);if(!mw.centralNotice.data.testing){mw.centralNotice.recordImpression(impressionResultData);}mw.centralNotice.deferredObjs.bannerLoaded.resolve(impressionResultData);};window.hideBanner=function(){var d=new Date(),expiry=mw.config.get('wgNoticeCookieShortExpiry');$('#centralNotice').hide();d.setSeconds(d.getSeconds()+expiry);$.cookie('centralnotice_hide_'+mw.centralNotice.data.category,'hide',{expires:d,path:'/'});$.each(mw.config.get(
'wgNoticeHideUrls'),function(idx,value){(new Image()).src=value+'?'+$.param({'duration':expiry,'category':mw.centralNotice.data.category});});};window.toggleNotice=function(){window.hideBanner();};$(function(){mw.centralNotice.initialize();});})(jQuery,mediaWiki);},{"css":["@media print{#centralNotice{display:none}}\n/* cache key: ruwiki:resourceloader:filter:minify-css:7:ddb0c98a055632ae8e349c9cf48ac703 */"]},{});mw.loader.implement("ext.centralauth.centralautologin",function($,jQuery){(function(mw){if(mw.config.get('wgUserName')!==null){return;}if(mw.config.get('wgCanonicalSpecialPageName')!=='Userlogin'){if('localStorage'in window&&window.localStorage&&+localStorage.getItem('CentralAuthAnon')>new Date().getTime()){return;}if(/(^|; )CentralAuthAnon=1/.test(document.cookie)){return;}}var url,params,len,param,i;url=mw.config.get('wgCentralAuthCheckLoggedInURL');if(url){url+='&proto='+encodeURIComponent(location.protocol.replace(':',''));if(mw.config.get('wgCanonicalSpecialPageName')===
'Userlogin'){url+='&return=1';params=location.search.slice(1).split('&');len=params.length;for(i=0;i<len;i++){param=params[i].split('=');param=decodeURIComponent(param[0]);if(param==='returnto'||param==='returntoquery'){url+='&'+params[i];}}}mw.loader.load(url);}}(mediaWiki));},{"css":[
"@-webkit-keyframes centralAuthPPersonalAnimation{0%{opacity:0;-webkit-transform:translateY(-20px)}100%{opacity:1;-webkit-transform:translateY(0)}}@-moz-keyframes centralAuthPPersonalAnimation{0%{opacity:0;-moz-transform:translateY(-20px)}100%{opacity:1;-moz-transform:translateY(0)}}@-o-keyframes centralAuthPPersonalAnimation{0%{opacity:0;-o-transform:translateY(-20px)}100%{opacity:1;-o-transform:translateY(0)}}@keyframes centralAuthPPersonalAnimation{0%{opacity:0;transform:translateY(-20px)}100%{opacity:1;transform:translateY(0)}}.centralAuthPPersonalAnimation{-webkit-animation-duration:1s;-moz-animation-duration:1s;-o-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;-moz-animation-fill-mode:both;-o-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:centralAuthPPersonalAnimation;-moz-animation-name:centralAuthPPersonalAnimation;-o-animation-name:centralAuthPPersonalAnimation;animation-name:centralAuthPPersonalAnimation}\n/* cache key: ruwiki:resourceloader:filter:minify-css:7:0dcacc990dd02e7db9669ab3090b80f1 */"
]},{});mw.loader.implement("ext.uls.init",function($,jQuery){(function($,mw){'use strict';if(mw.hook===undefined){mw.hook=(function(){var lists={},slice=Array.prototype.slice;return function(name){var list=lists[name]||(lists[name]=$.Callbacks('memory'));return{add:list.add,remove:list.remove,fire:function(){return list.fireWith(null,slice.call(arguments));}};};}());}mw.uls=mw.uls||{};mw.uls.previousLanguagesCookie='uls-previous-languages';mw.uls.previousLanguageAutonymCookie='uls-previous-language-autonym';mw.uls.languageSettingsModules=['ext.uls.inputsettings','ext.uls.displaysettings'];mw.uls.languageSelectionMethod=undefined;mw.uls.addEventLoggingTriggers=function(){mw.uls.languageSelectionMethod=undefined;$('#map-block').on('click',function(){mw.uls.languageSelectionMethod='map';});$('#languagefilter').on('keydown',function(){if($(this).val()===''){mw.uls.languageSelectionMethod='search';}});$('#uls-lcd-quicklist a').on('click',function(){mw.uls.languageSelectionMethod='common';})
;};mw.uls.changeLanguage=function(language){var uri=new mw.Uri(window.location.href),deferred=new $.Deferred();deferred.done(function(){uri.extend({setlang:language});window.location.href=uri.toString();});mw.hook('mw.uls.interface.language.change').fire(language,deferred);window.setTimeout(function(){deferred.resolve();},mw.config.get('wgULSEventLogging')*500);};mw.uls.setPreviousLanguages=function(previousLanguages){$.cookie(mw.uls.previousLanguagesCookie,$.toJSON(previousLanguages),{path:'/'});};mw.uls.getPreviousLanguages=function(){var previousLanguages=$.cookie(mw.uls.previousLanguagesCookie);if(!previousLanguages){return[];}return $.parseJSON(previousLanguages).slice(-5);};mw.uls.getBrowserLanguage=function(){return(window.navigator.language||window.navigator.userLanguage||'').split('-')[0];};mw.uls.getCountryCode=function(){return window.Geo&&(window.Geo.country||window.Geo.country_code);};mw.uls.getAcceptLanguageList=function(){return mw.config.get('wgULSAcceptLanguageList')||
[];};mw.uls.getFrequentLanguageList=function(countryCode){var unique=[],list=[mw.config.get('wgUserLanguage'),mw.config.get('wgContentLanguage'),mw.uls.getBrowserLanguage()].concat(mw.uls.getPreviousLanguages()).concat(mw.uls.getAcceptLanguageList());countryCode=countryCode||mw.uls.getCountryCode();if(countryCode){list=list.concat($.uls.data.getLanguagesInTerritory(countryCode));}$.each(list,function(i,v){if($.inArray(v,unique)===-1){unique.push(v);}});unique=$.grep(unique,function(langCode){var target;if($.fn.uls.defaults.languages[langCode]!==undefined){return true;}target=$.uls.data.isRedirect(langCode);if(target){return $.fn.uls.defaults.languages[target]!==undefined;}return false;});return unique;};function isBrowserSupported(){var blacklist={'msie':[['<=',7]]};if(parseInt(mw.config.get('wgVersion').split('.')[1],'10')<22){return!/MSIE [67]/i.test(navigator.userAgent);}return!$.client.test(blacklist,null,true);}mw.uls.init=function(callback){if(!isBrowserSupported()){$('#pt-uls').
hide();return;}if(callback){callback.call(this);}};$(document).ready(function(){mw.uls.init();});}(jQuery,mediaWiki));},{"css":[".uls-menu a{cursor:pointer}.uls-menu.callout .caret-before{border-top:20px solid transparent;border-right:20px solid #C9C9C9;border-bottom:20px solid transparent;display:inline-block;left:-21px;top:30px;position:absolute}.uls-menu.callout .caret-after{border-top:20px solid transparent;border-right:20px solid #FCFCFC;border-bottom:20px solid transparent;display:inline-block;left:-20px;top:30px;position:absolute}.uls-ui-languages button{width:23%;text-overflow:ellipsis;margin-right:4%}button.uls-more-languages{width:auto}.settings-title{font-size:11pt}.settings-text{color:#555555;font-size:9pt}div.display-settings-block:hover .settings-text{color:#252525}\n/* cache key: ruwiki:resourceloader:filter:minify-css:7:22d1681fa868b4ff4fbcb1ec1e58a9ea */"]},{});mw.loader.implement("ext.uls.interface",function($,jQuery){(function($,mw){'use strict';function
displaySettings(){var $displaySettingsTitle,displaySettingsText,$displaySettings;displaySettingsText=$.i18n('ext-uls-display-settings-desc');$displaySettingsTitle=$('<div data-i18n="ext-uls-display-settings-title">').addClass('settings-title').attr('title',displaySettingsText);$displaySettings=$('<div>').addClass('display-settings-block').prop('id','display-settings-block').append($displaySettingsTitle.i18n());return $displaySettings;}function inputSettings(){var $inputSettingsTitle,inputSettingsText,$inputSettings;inputSettingsText=$.i18n('ext-uls-input-settings-desc');$inputSettingsTitle=$('<div data-i18n="ext-uls-input-settings-title">').addClass('settings-title').attr('title',inputSettingsText);$inputSettings=$('<div>').addClass('input-settings-block').prop('id','input-settings-block').append($inputSettingsTitle.i18n());return $inputSettings;}function addDisplaySettings(uls){var $displaySettings=displaySettings();uls.$menu.find('#uls-settings-block').append($displaySettings);
$displaySettings.on('click',function(){var languagesettings=$displaySettings.data('languagesettings'),displaySettingsOptions={defaultModule:'display'},ulsPosition=mw.config.get('wgULSPosition'),anonMode=(mw.user.isAnon()&&!mw.config.get('wgULSAnonCanChangeLanguage'));if(!languagesettings){if(ulsPosition==='personal'&&!anonMode){displaySettingsOptions.onClose=function(){uls.show();};}$.extend(displaySettingsOptions,uls.position());mw.loader.using(mw.uls.languageSettingsModules,function(){$displaySettings.languagesettings(displaySettingsOptions).click();});}mw.hook('mw.uls.settings.open').fire('uls');uls.hide();});}function addInputSettings(uls){var $inputSettings=inputSettings();uls.$menu.find('#uls-settings-block').append($inputSettings);$inputSettings.on('click',function(){var position=uls.position(),languagesettings=$inputSettings.data('languagesettings');if(!languagesettings){mw.loader.using(mw.uls.languageSettingsModules,function(){$inputSettings.languagesettings({defaultModule:
'input',onClose:function(){uls.show();},top:position.top,left:position.left}).click();});}mw.hook('mw.uls.settings.open').fire('uls');uls.hide();});}function addAccessibilityFeatures($target){$target.attr({tabIndex:0,role:'button','aria-haspopup':true});$target.click(function(){$(this).css('outline','none');});$target.blur(function(){$(this).css('outline','');});$target.keydown(function(event){if(event.keyCode===13){$(this).click();event.preventDefault();event.stopPropagation();}});}function showULSTooltip(){var ulsPosition=mw.config.get('wgULSPosition'),currentLang=mw.config.get('wgUserLanguage'),previousLang,previousLanguageAutonym,$ulsTrigger,anonMode,rtlPage=$('body').hasClass('rtl'),tipsyGravity={personal:'n',interlanguage:rtlPage?'e':'w'},previousLanguages=mw.uls.getPreviousLanguages()||[];previousLang=previousLanguages.slice(-1)[0];$ulsTrigger=(ulsPosition==='interlanguage')?$('.uls-settings-trigger'):$('.uls-trigger');if(previousLang===currentLang){$ulsTrigger.tipsy({gravity:
rtlPage?'e':'w'});return;}previousLanguages.push(currentLang);mw.uls.setPreviousLanguages(previousLanguages);anonMode=(mw.user.isAnon()&&!mw.config.get('wgULSAnonCanChangeLanguage'));if(anonMode||!previousLang){return;}previousLanguageAutonym=$.cookie(mw.uls.previousLanguageAutonymCookie)||previousLang;$ulsTrigger.tipsy({gravity:tipsyGravity[ulsPosition],delayOut:3000,html:true,fade:true,trigger:'manual',title:function(){var link;link=$('<a>').text(previousLanguageAutonym).attr({href:'#','class':'uls-prevlang-link',lang:previousLang,dir:'auto'});link=$('<div>').html(link).html();return mw.msg('ext-uls-undo-language-tooltip-text',link);}});$.cookie(mw.uls.previousLanguageAutonymCookie,mw.config.get('wgULSCurrentAutonym'),{path:'/'});function showTipsy(timeout){var tipsyTimer=0;$ulsTrigger.tipsy('show');$('.tipsy').on('mouseover',function(){window.clearTimeout(tipsyTimer);});$('.tipsy').on('mouseout',function(){tipsyTimer=window.setTimeout(hideTipsy,timeout);});$('.tipsy').on('click',
hideTipsy);$('a.uls-prevlang-link').on('click.ulstipsy',function(event){var deferred=$.Deferred();event.preventDefault();deferred.done(function(){mw.uls.changeLanguage(event.target.lang);});mw.hook('mw.uls.language.revert').fire(deferred);window.setTimeout(function(){deferred.resolve();},mw.config.get('wgULSEventLogging')*500);});tipsyTimer=window.setTimeout(hideTipsy,timeout);}function hideTipsy(){$ulsTrigger.tipsy('hide');}window.setTimeout(function(){showTipsy(6000);},700);$ulsTrigger.on('mouseover',function(){if(!$('.uls-menu:visible').length){showTipsy(3000);}});}$(document).ready(function(){mw.uls.init(function(){var $triggers,$pLang,$ulsTrigger=$('.uls-trigger'),rtlPage=$('body').hasClass('rtl'),anonMode=(mw.user.isAnon()&&!mw.config.get('wgULSAnonCanChangeLanguage')),imeSelector=mw.config.get('wgULSImeSelectors').join(', '),ulsPosition=mw.config.get('wgULSPosition');if(ulsPosition==='interlanguage'){$pLang=$('#p-lang');$ulsTrigger=$('<span>').addClass('uls-settings-trigger');
$pLang.show().prepend($ulsTrigger);$ulsTrigger=$('.uls-settings-trigger');$pLang.find('.uls-p-lang-dummy').remove();if(!$pLang.find('div ul').children().length){$pLang.find('h3').text(mw.msg('uls-plang-title-languages'));}$ulsTrigger.attr({title:mw.msg('ext-uls-select-language-settings-icon-tooltip')});$ulsTrigger.on('click',function(e,eventParams){var languagesettings=$ulsTrigger.data('languagesettings'),languageSettingsOptions;if(languagesettings){if(!languagesettings.shown){mw.hook('mw.uls.settings.open').fire(eventParams&&eventParams.source||'interlanguage');}}else{languageSettingsOptions={defaultModule:'display',onVisible:function(){var topRowHeight,caretHeight,caretWidth,$caretBefore=$('<span>').addClass('caret-before'),$caretAfter=$('<span>').addClass('caret-after'),ulsTriggerWidth=this.$element.width(),ulsTriggerOffset=this.$element.offset();this.$window.addClass('callout');this.$window.prepend($caretBefore,$caretAfter);if(rtlPage){caretWidth=parseInt($caretBefore.css(
'border-left-width'),10);this.left=ulsTriggerOffset.left-this.$window.width()-caretWidth;}else{caretWidth=parseInt($caretBefore.css('border-right-width'),10);this.left=ulsTriggerOffset.left+ulsTriggerWidth+caretWidth;}topRowHeight=this.$window.find('.row').height();caretHeight=parseInt($caretBefore.css('top'),10);this.top=ulsTriggerOffset.top-topRowHeight-caretHeight/2;this.position();}};mw.loader.using(mw.uls.languageSettingsModules,function(){$ulsTrigger.languagesettings(languageSettingsOptions).click();});e.stopPropagation();}});}else if(anonMode){$ulsTrigger.on('click',function(e,eventParams){var languagesettings=$ulsTrigger.data('languagesettings');e.preventDefault();if(languagesettings){if(!languagesettings.shown){mw.hook('mw.uls.settings.open').fire(eventParams&&eventParams.source||'personal');}}else{mw.loader.using(mw.uls.languageSettingsModules,function(){$ulsTrigger.languagesettings();$ulsTrigger.trigger('click',eventParams);});}});}else{$ulsTrigger.on('click',function(e,
eventParams){var uls=$ulsTrigger.data('uls');e.preventDefault();if(uls){if(!uls.shown){mw.hook('mw.uls.settings.open').fire(eventParams&&eventParams.source||'personal');}}else{mw.loader.using('ext.uls.mediawiki',function(){$ulsTrigger.uls({quickList:function(){return mw.uls.getFrequentLanguageList();},onReady:function(){var uls=this;mw.loader.using(mw.uls.languageSettingsModules,function(){addDisplaySettings(uls);addInputSettings(uls);});},onSelect:function(language){mw.uls.changeLanguage(language);},onVisible:function(){mw.uls.addEventLoggingTriggers();}});window.setTimeout(function(){$ulsTrigger.trigger('click',eventParams);},0);});}});}$triggers=$('.uls-settings-trigger, .uls-trigger');addAccessibilityFeatures($triggers);$('#uls-preferences-link').text(mw.msg('ext-uls-language-settings-preferences-link')).click(function(){$ulsTrigger.trigger('click',{source:'preferences'});return false;});showULSTooltip();$('body').on('focus.imeinit',imeSelector,function(){var $input=$(this);$(
'body').off('.imeinit');mw.loader.using('ext.uls.ime',function(){mw.ime.setup();mw.ime.handleFocus($input);});});});});}(jQuery,mediaWiki));},{},{"ext-uls-language-settings-preferences-link":"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044f\u0437\u044b\u043a\u0430","ext-uls-select-language-settings-icon-tooltip":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044f\u0437\u044b\u043a\u0430","ext-uls-undo-language-tooltip-text":"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u044f\u0437\u044b\u043a: $1","uls-plang-title-languages":"\u042f\u0437\u044b\u043a\u0438"});mw.loader.implement("ext.uls.preferences",function($,jQuery){(function($,mw){'use strict';var ULSPreferences,cachedOptionsToken=null;function saveOptionsWithToken(params,ok,err){if(cachedOptionsToken===null){return getOptionsToken(function(token){params.token=token;new mw.Api().post(params,ok,err);},err);}
else{params.token=cachedOptionsToken;return new mw.Api().post(params,{ok:ok,err:function(code,result){if(code==='badtoken'){cachedOptionsToken=null;saveOptionsWithToken(params,ok,err);}else{err(code,result);}}});}}function getOptionsToken(tokenCallback,err){return new mw.Api().get({action:'tokens',type:'options'},{ok:function(data){var token;if(data.tokens&&data.tokens.optionstoken){token=data.tokens.optionstoken;cachedOptionsToken=token;tokenCallback(token);}else{err('token-missing',data);}},err:err,jsonp:false});}function preferenceStore(){return{set:function(key,value){if(typeof value==='object'){value=JSON.stringify(value);}try{localStorage.setItem(key,value);}catch(e){$.cookie(key,value,{path:'/'});}},get:function(key){var data;try{data=localStorage.getItem(key);if(!data){try{data=JSON.parse(localStorage.getItem('jStorage'))['uls-preferences'];localStorage.removeItem('jStorage');}catch(e){}}}catch(e){data=$.cookie(key);}try{data=JSON.parse(data);}catch(e){data=data;}return data;}}
;}ULSPreferences=function(){this.preferenceName='uls-preferences';this.username=mw.user.getName();this.isAnon=mw.user.isAnon();this.preferences=null;this.init();};ULSPreferences.prototype={init:function(){if(this.isAnon){this.preferences=preferenceStore().get(this.preferenceName);}else{var options=mw.user.options.get(this.preferenceName);try{this.preferences=JSON.parse(options);}catch(e){this.preferences={};}}this.preferences=this.preferences||{};},set:function(key,value){this.preferences[key]=value;},get:function(key){return this.preferences[key];},save:function(callback){var ulsPreferences=this;callback=callback||$.noop;if(this.isAnon){preferenceStore().set(this.preferenceName,this.preferences);callback.call(this,true);}else{saveOptionsWithToken({action:'options',optionname:ulsPreferences.preferenceName,optionvalue:JSON.stringify(ulsPreferences.preferences)},function(){callback.call(this,true);},function(){callback.call(this,false);});}}};mw.uls=mw.uls||{};mw.uls.preferences=function
(){var data=$('body').data('preferences');if(!data){$('body').data('preferences',(data=new ULSPreferences()));}return data;};}(jQuery,mediaWiki));},{},{});mw.loader.implement("ext.uls.webfonts",function($,jQuery){(function($,mw){'use strict';var ulsPreferences,tofuSalt='\u0D00',tofuLanguages={};mw.webfonts=mw.webfonts||{};ulsPreferences=mw.uls.preferences();mw.webfonts.preferences={registry:{fonts:{},webfontsEnabled:mw.config.get('wgULSWebfontsEnabled')},isEnabled:function(){return this.registry.webfontsEnabled;},enable:function(){this.registry.webfontsEnabled=true;},disable:function(){this.registry.webfontsEnabled=false;},setFont:function(language,font){this.registry.fonts[language]=font;},getFont:function(language){return this.registry.fonts[language];},save:function(callback){ulsPreferences=mw.uls.preferences();ulsPreferences.set('webfonts',this.registry);ulsPreferences.save(callback);},load:function(){mw.webfonts.preferences.registry=$.extend(this.registry,ulsPreferences.get(
'webfonts'));}};function detectTofu(text){var index,$fixture,width={},height={},length=Math.min(4,text.length),detected=false;if($.client.test({msie:false})){text=tofuSalt+text;}$fixture=$('<span>').css({fontSize:'72px',fontFamily:'sans-serif'}).appendTo('body');for(index=0;index<length;index++){$fixture.text(text[index]);width[index]=$fixture.width()||width[index-1];height[index]=$fixture.height();if(index>0&&(width[index]!==width[index-1]||height[index]!==height[index-1])){detected=false;break;}}$fixture.remove();if(index===length){detected=true;}return detected;}mw.webfonts.setup=function(){var mediawikiFontRepository=$.webfonts.repository;mediawikiFontRepository.base=mw.config.get('wgULSFontRepositoryBasePath');$.extend($.fn.webfonts.defaults,{repository:mediawikiFontRepository,fontStack:$('body').css('font-family').split(/, /g),exclude:mw.config.get('wgULSNoWebfontsSelectors').join(', ')});$.fn.webfonts.defaults=$.extend($.fn.webfonts.defaults,{fontSelector:function(repository,
language,classes){var font,autonym,defaultFont;if(!language){return null;}defaultFont=repository.defaultFont(language);if(classes&&$.inArray('autonym',classes)>=0){autonym=true;}font=mw.webfonts.preferences.getFont(language);if(!font||autonym){if((!defaultFont||defaultFont==='system')&&!autonym){return font;}if(tofuLanguages[language]===undefined){tofuLanguages[language]=detectTofu($.uls.data.getAutonym(language));if(tofuLanguages[language]){mw.log('tofu detected for '+language);mw.hook('mw.uls.webfonts.tofudetected').fire(language);}}if(tofuLanguages[language]){font=autonym?'Autonym':defaultFont;}else{font='system';}}if(font==='system'){font=null;}return font;},exclude:(function(){var excludes=$.fn.webfonts.defaults.exclude;if(mw.user.options.get('editfont')!=='default'){excludes=(excludes)?excludes+',textarea':'textarea';}return excludes;}()),overridableFontFamilies:[$('h1').css('font-family')]});setTimeout(function(){$('body').webfonts();$('body').data('webfonts').load('Autonym');},
0);};$(document).ready(function(){mw.uls.init(function(){mw.webfonts.preferences.load();if(mw.webfonts.preferences.isEnabled()){mw.loader.using('ext.uls.webfonts.fonts',mw.webfonts.setup);}});});}(jQuery,mediaWiki));},{},{});mw.loader.implement("ext.visualEditor.viewPageTarget.init",function($,jQuery){(function(){var conf,tabMessages,uri,pageExists,viewUri,veEditUri,isViewPage,init,support,getTargetDeferred,enable,userPrefEnabled,plugins=[];function getTarget(){var loadTargetDeferred;if(!getTargetDeferred){getTargetDeferred=$.Deferred();loadTargetDeferred=$.Deferred().done(function(){var target=new ve.init.mw.ViewPageTarget();if(mw.track){ve.trackSubscribeAll(function(topic,data){mw.track.call(null,'ve.'+topic,data);});}ve.init.mw.ViewPageTarget.prototype.setupSectionEditLinks=init.setupSectionLinks;target.addPlugins(plugins);getTargetDeferred.resolve(target);}).fail(getTargetDeferred.reject);mw.loader.using('ext.visualEditor.viewPageTarget',loadTargetDeferred.resolve,
loadTargetDeferred.reject);}return getTargetDeferred.promise();}conf=mw.config.get('wgVisualEditorConfig');tabMessages=conf.tabMessages;uri=new mw.Uri();pageExists=!!mw.config.get('wgArticleId')||mw.config.get('wgNamespaceNumber')<0;viewUri=new mw.Uri(mw.util.getUrl(mw.config.get('wgRelevantPageName')));veEditUri=viewUri.clone().extend({'veaction':'edit'});isViewPage=(mw.config.get('wgIsArticle')&&!('diff'in uri.query));support={es5:!!(Array.isArray&&Array.prototype.filter&&Array.prototype.indexOf&&Array.prototype.map&&Date.now&&Date.prototype.toJSON&&Object.create&&Object.keys&&String.prototype.trim&&window.JSON&&JSON.parse&&JSON.stringify&&Function.prototype.bind),contentEditable:'contentEditable'in document.createElement('div'),svg:!!(document.createElementNS&&document.createElementNS('http://www.w3.org/2000/svg','svg').createSVGRect)};init={support:support,blacklist:conf.blacklist,addPlugin:function(plugin){plugins.push(plugin);},setupSkin:function(){init.setupTabs();init.
setupSectionLinks();},setupTabs:function(){if(mw.config.get('wgNamespaceIds')[true&&'education_program']===mw.config.get('wgNamespaceNumber')){return;}var caVeEdit,action=pageExists?'edit':'create',pTabsId=$('#p-views').length?'p-views':'p-cactions',$caSource=$('#ca-viewsource'),$caEdit=$('#ca-edit'),$caVeEdit=$('#ca-ve-edit'),$caEditLink=$caEdit.find('a'),$caVeEditLink=$caVeEdit.find('a'),reverseTabOrder=$('body').hasClass('rtl')&&pTabsId==='p-views',caVeEditNextnode=(reverseTabOrder^conf.tabPosition==='before')?$caEdit.get(0):$caEdit.next().get(0);if(!$caVeEdit.length){if($caEdit.length&&!$caSource.length){caVeEdit=mw.util.addPortletLink(pTabsId,veEditUri,tabMessages[action]!==null?mw.msg(tabMessages[action]):$caEditLink.text(),'ca-ve-edit',mw.msg('tooltip-ca-ve-edit'),mw.msg('accesskey-ca-ve-edit'),caVeEditNextnode);$caVeEdit=$(caVeEdit);$caVeEditLink=$caVeEdit.find('a');}}else if($caEdit.length&&$caVeEdit.length){if(reverseTabOrder^conf.tabPosition==='before'){if($caEdit[0].
nextSibling===$caVeEdit[0]){$caVeEdit.after($caEdit);}}else{if($caVeEdit[0].nextSibling===$caEdit[0]){$caEdit.after($caVeEdit);}}if(tabMessages[action]!==null){$caVeEditLink.text(mw.msg(tabMessages[action]));}}if(!(init.isAvailable&&userPrefEnabled)){$caVeEdit.remove();}if($('#ca-view-foreign').length){if(tabMessages[action+'localdescriptionsource']!==null){$caEditLink.text(mw.msg(tabMessages[action+'localdescriptionsource']));}}else{if(tabMessages[action+'source']!==null){$caEditLink.text(mw.msg(tabMessages[action+'source']));}}if(conf.tabPosition==='before'){$caEdit.addClass('collapsible');}else{$caVeEdit.addClass('collapsible');}if(tabMessages[action+'appendix']!==null){$caVeEditLink.append($('<span>').addClass('ve-tabmessage-appendix').text(mw.msg(tabMessages[action+'appendix'])));}if(tabMessages[action+'sourceappendix']!==null){$caEditLink.append($('<span>').addClass('ve-tabmessage-appendix').text(mw.msg(tabMessages[action+'sourceappendix'])));}if(isViewPage){$caVeEdit.click(init.
onEditTabClick);}},setupSectionLinks:function(){var $editsections=$('#mw-content-text .mw-editsection'),bodyDir=$('body').css('direction');if($editsections.css('direction')!==bodyDir){$editsections.css('direction',bodyDir);}if($editsections.find('.mw-editsection-visualeditor').length===0){$editsections.each(function(){var $editsection=$(this),$editSourceLink=$editsection.find('a').eq(0),$editLink=$editSourceLink.clone(),$divider=$('<span>'),dividerText=mw.msg('pipe-separator');if(tabMessages.editsectionsource!==null){$editSourceLink.text(mw.msg(tabMessages.editsectionsource));}if(tabMessages.editsection!==null){$editLink.text(mw.msg(tabMessages.editsection));}$divider.addClass('mw-editsection-divider').text(dividerText);if(!$('#ca-view-foreign').length){$editLink.attr('href',function(i,val){return new mw.Uri(veEditUri).extend({'vesection':new mw.Uri(val).query.section});}).addClass('mw-editsection-visualeditor');if(conf.tabPosition==='before'){$editSourceLink.before($editLink,$divider)
;}else{$editSourceLink.after($divider,$editLink);}}});}if(tabMessages.editsectionappendix){$editsections.find('.mw-editsection-visualeditor').append($('<span>').addClass('ve-tabmessage-appendix').text(mw.msg(tabMessages.editsectionappendix)));}if(tabMessages.editsectionsourceappendix){$editsections.find('a:not(.mw-editsection-visualeditor)').append($('<span>').addClass('ve-tabmessage-appendix').text(mw.msg(tabMessages.editsectionsourceappendix)));}if(isViewPage){$editsections.find('.mw-editsection-visualeditor').click(init.onEditSectionLinkClick);}},onEditTabClick:function(e){if((e.which&&e.which!==1)||e.shiftKey||e.altKey||e.ctrlKey||e.metaKey){return;}e.preventDefault();getTarget().done(function(target){ve.track('Edit',{action:'edit-link-click'});target.activate();});},onEditSectionLinkClick:function(e){if((e.which&&e.which!==1)||e.shiftKey||e.altKey||e.ctrlKey||e.metaKey){return;}e.preventDefault();getTarget().done(function(target){ve.track('Edit',{action:'section-edit-link-click'})
;target.saveEditSection($(e.target).closest('h1, h2, h3, h4, h5, h6').get(0));target.activate();});}};support.visualEditor=support.es5&&support.contentEditable&&support.svg&&(('vewhitelist'in uri.query)||!$.client.test(init.blacklist,null,true));enable=mw.user.options.get('visualeditor-enable',conf.defaultUserOptions.enable);userPrefEnabled=(!(conf.disableForAnons&&mw.config.get('wgUserName')===null)&&(mw.config.get('wgUserName')===null?(conf.defaultUserOptions.enable&&!conf.defaultUserOptions.betatempdisable):(enable&&enable!=='0'&&!mw.user.options.get('visualeditor-betatempdisable',conf.defaultUserOptions.betatempdisable))));init.isAvailable=(support.visualEditor&&$.inArray(mw.config.get('skin'),conf.skins)!==-1&&$.inArray(new mw.Title(mw.config.get('wgRelevantPageName')).getNamespaceId(),conf.namespaces)!==-1&&mw.config.get('wgTranslatePageTranslation')!=='translation'&&mw.config.get('wgPageContentModel')==='wikitext');mw.libs.ve=init;if(init.isAvailable&&userPrefEnabled){$('html').
addClass('ve-available');}else{$('html').addClass('ve-not-available');}$(function(){if(init.isAvailable){if(isViewPage&&uri.query.veaction==='edit'){getTarget().done(function(target){target.activate();});}}if(userPrefEnabled){init.setupSkin();}});}());},{"css":[".mw-editsection{white-space:nowrap; unicode-bidi:-moz-isolate;unicode-bidi:-webkit-isolate;unicode-bidi:isolate}.mw-editsection-divider{color:#555}.ve-tabmessage-appendix{font-size:0.7em;vertical-align:top;line-height:1.43em;padding-left:0.5em; background-image:none !important;display:inline !important}\n/* cache key: ruwiki:resourceloader:filter:minify-css:7:50c6a67a11952da7c9e5053046d794ee */"]},{"accesskey-ca-editsource":"e","accesskey-ca-ve-edit":"v","accesskey-save":"s","pipe-separator":" | ","tooltip-ca-createsource":
"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430","tooltip-ca-editsource":"\u041f\u0440\u0430\u0432\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b","tooltip-ca-ve-edit":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430","visualeditor-ca-createlocaldescriptionsource":
"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f","visualeditor-ca-createsource":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u043a \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442","visualeditor-ca-editlocaldescriptionsource":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f","visualeditor-ca-editsource":"\u041f\u0440\u0430\u0432\u0438\u0442\u044c \u0432\u0438\u043a\u0438-\u0442\u0435\u043a\u0441\u0442","visualeditor-ca-editsource-section":"\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432\u0438\u043a\u0438-\u0442\u0435\u043a\u0441\u0442"});mw.loader.implement("jquery.accessKeyLabel",function($,
jQuery){(function($,mw){var cachedAccessKeyPrefix,useTestPrefix=false,labelable='button, input, textarea, keygen, meter, output, progress, select';function getAccessKeyPrefix(ua){if(!ua&&cachedAccessKeyPrefix){return cachedAccessKeyPrefix;}var profile=$.client.profile(ua),accessKeyPrefix='alt-';if(profile.name==='opera'){accessKeyPrefix='shift-esc-';}else if(profile.name==='chrome'){accessKeyPrefix=(profile.platform==='mac'?'ctrl-option-':'alt-shift-');}else if(profile.platform!=='win'&&profile.name==='safari'&&profile.layoutVersion>526){accessKeyPrefix='ctrl-alt-';}else if(!(profile.platform==='win'&&profile.name==='safari')&&(profile.name==='safari'||profile.platform==='mac'||profile.name==='konqueror')){accessKeyPrefix='ctrl-';}else if((profile.name==='firefox'||profile.name==='iceweasel')&&profile.versionBase>'1'){accessKeyPrefix='alt-shift-';}if(!ua){cachedAccessKeyPrefix=accessKeyPrefix;}return accessKeyPrefix;}function getAccessKeyLabel(element){if(!element.accessKey){return'';}
if(!useTestPrefix&&element.accessKeyLabel){return element.accessKeyLabel;}return(useTestPrefix?'test-':getAccessKeyPrefix())+element.accessKey;}function updateTooltipOnElement(element,titleElement){var array=(mw.msg('word-separator')+mw.msg('brackets')).split('$1'),regexp=new RegExp($.map(array,$.escapeRE).join('.*?')+'$'),oldTitle=titleElement.title,rawTitle=oldTitle.replace(regexp,''),newTitle=rawTitle,accessKeyLabel=getAccessKeyLabel(element);if(!oldTitle){return;}if(accessKeyLabel){newTitle+=mw.msg('word-separator')+mw.msg('brackets',accessKeyLabel);}if(oldTitle!==newTitle){titleElement.title=newTitle;}}function updateTooltip(element){var id,$element,$label,$labelParent;updateTooltipOnElement(element,element);$element=$(element);if($element.is(labelable)){id=element.id.replace(/"/g,'\\"');if(id){$label=$('label[for="'+id+'"]');if($label.length===1){updateTooltipOnElement(element,$label[0]);}}$labelParent=$element.parents('label');if($labelParent.length===1){updateTooltipOnElement(
element,$labelParent[0]);}}}$.fn.updateTooltipAccessKeys=function(){return this.each(function(){updateTooltip(this);});};$.fn.updateTooltipAccessKeys.getAccessKeyPrefix=getAccessKeyPrefix;$.fn.updateTooltipAccessKeys.setTestMode=function(mode){useTestPrefix=mode;};}(jQuery,mediaWiki));},{},{"brackets":"[$1]","word-separator":" "});mw.loader.implement("jquery.byteLength",function($,jQuery){jQuery.byteLength=function(str){return str.replace(/[\u0080-\u07FF\uD800-\uDFFF]/g,'**').replace(/[\u0800-\uD7FF\uE000-\uFFFF]/g,'***').length;};;},{},{});mw.loader.implement("jquery.client",function($,jQuery){(function($){var profileCache={};$.client={profile:function(nav){if(nav===undefined){nav=window.navigator;}if(profileCache[nav.userAgent+'|'+nav.platform]!==undefined){return profileCache[nav.userAgent+'|'+nav.platform];}var versionNumber,key=nav.userAgent+'|'+nav.platform,uk='unknown',x='x',wildUserAgents=['Opera','Navigator','Minefield','KHTML','Chrome','PLAYSTATION 3','Iceweasel'],
userAgentTranslations=[[/(Firefox|MSIE|KHTML,?\slike\sGecko|Konqueror)/,''],['Chrome Safari','Chrome'],['KHTML','Konqueror'],['Minefield','Firefox'],['Navigator','Netscape'],['PLAYSTATION 3','PS3']],versionPrefixes=['camino','chrome','firefox','iceweasel','netscape','netscape6','opera','version','konqueror','lynx','msie','safari','ps3','android'],versionSuffix='(\\/|\\;?\\s|)([a-z0-9\\.\\+]*?)(\\;|dev|rel|\\)|\\s|$)',names=['camino','chrome','firefox','iceweasel','netscape','konqueror','lynx','msie','opera','safari','ipod','iphone','blackberry','ps3','rekonq','android'],nameTranslations=[],layouts=['gecko','konqueror','msie','trident','opera','webkit'],layoutTranslations=[['konqueror','khtml'],['msie','trident'],['opera','presto']],layoutVersions=['applewebkit','gecko','trident'],platforms=['win','wow64','mac','linux','sunos','solaris','iphone'],platformTranslations=[['sunos','solaris'],['wow64','win']],translate=function(source,translations){var i;for(i=0;i<translations.length;i++){
source=source.replace(translations[i][0],translations[i][1]);}return source;},ua=nav.userAgent,match,name=uk,layout=uk,layoutversion=uk,platform=uk,version=x;if(match=new RegExp('('+wildUserAgents.join('|')+')').exec(ua)){ua=translate(ua,userAgentTranslations);}ua=ua.toLowerCase();if(match=new RegExp('('+names.join('|')+')').exec(ua)){name=translate(match[1],nameTranslations);}if(match=new RegExp('('+layouts.join('|')+')').exec(ua)){layout=translate(match[1],layoutTranslations);}if(match=new RegExp('('+layoutVersions.join('|')+')\\\/(\\d+)').exec(ua)){layoutversion=parseInt(match[2],10);}if(match=new RegExp('('+platforms.join('|')+')').exec(nav.platform.toLowerCase())){platform=translate(match[1],platformTranslations);}if(match=new RegExp('('+versionPrefixes.join('|')+')'+versionSuffix).exec(ua)){version=match[3];}if(name==='safari'&&version>400){version='2.0';}if(name==='opera'&&version>=9.8){match=ua.match(/\bversion\/([0-9\.]*)/);if(match&&match[1]){version=match[1];}else{version=
'10';}}if(name==='chrome'&&(match=ua.match(/\bopr\/([0-9\.]*)/))){if(match[1]){name='opera';version=match[1];}}if(layout==='trident'&&layoutversion>=7&&(match=ua.match(/\brv[ :\/]([0-9\.]*)/))){if(match[1]){name='msie';version=match[1];}}if(match=ua.match(/\bsilk\/([0-9.\-_]*)/)){if(match[1]){name='silk';version=match[1];}}versionNumber=parseFloat(version,10)||0.0;return profileCache[key]={name:name,layout:layout,layoutVersion:layoutversion,platform:platform,version:version,versionBase:(version!==x?Math.floor(versionNumber).toString():x),versionNumber:versionNumber};},test:function(map,profile,exactMatchOnly){var conditions,dir,i,op,val,j,pieceVersion,pieceVal,compare;profile=$.isPlainObject(profile)?profile:$.client.profile();if(map.ltr&&map.rtl){dir=$('body').is('.rtl')?'rtl':'ltr';map=map[dir];}if(typeof map!=='object'||map[profile.name]===undefined){return!exactMatchOnly;}conditions=map[profile.name];if(conditions===false){return false;}if(conditions===null){return true;}for(i=0;i<
conditions.length;i++){op=conditions[i][0];val=conditions[i][1];if(typeof val==='string'){pieceVersion=profile.version.toString().split('.');pieceVal=val.split('.');while(pieceVersion.length<pieceVal.length){pieceVersion.push('0');}while(pieceVal.length<pieceVersion.length){pieceVal.push('0');}compare=0;for(j=0;j<pieceVersion.length;j++){if(Number(pieceVersion[j])<Number(pieceVal[j])){compare=-1;break;}else if(Number(pieceVersion[j])>Number(pieceVal[j])){compare=1;break;}}if(!(eval(''+compare+op+'0'))){return false;}}else if(typeof val==='number'){if(!(eval('profile.versionNumber'+op+val))){return false;}}}return true;}};}(jQuery));},{},{});mw.loader.implement("jquery.cookie",function($,jQuery){(function($){$.cookie=function(key,value,options){if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(value))||value===null||value===undefined)){options=$.extend({},options);if(value===null||value===undefined){options.expires=-1;}if(typeof options.expires==='number'){var days=
options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days);}value=String(value);return(document.cookie=[encodeURIComponent(key),'=',options.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''));}options=value||{};var decode=options.raw?function(s){return s;}:decodeURIComponent;var pairs=document.cookie.split('; ');for(var i=0,pair;pair=pairs[i]&&pairs[i].split('=');i++){if(decode(pair[0])===key)return decode(pair[1]||'');}return null;};})(jQuery);},{},{});mw.loader.implement("jquery.json",function($,jQuery){(function($){'use strict';var escape=/["\\\x00-\x1f\x7f-\x9f]/g,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},hasOwn=Object.prototype.hasOwnProperty;$.toJSON=typeof JSON==='object'&&JSON.stringify?JSON.stringify:function(o){if(o===null){return'null';}var pairs,k,name
,val,type=$.type(o);if(type==='undefined'){return undefined;}if(type==='number'||type==='boolean'){return String(o);}if(type==='string'){return $.quoteString(o);}if(typeof o.toJSON==='function'){return $.toJSON(o.toJSON());}if(type==='date'){var month=o.getUTCMonth()+1,day=o.getUTCDate(),year=o.getUTCFullYear(),hours=o.getUTCHours(),minutes=o.getUTCMinutes(),seconds=o.getUTCSeconds(),milli=o.getUTCMilliseconds();if(month<10){month='0'+month;}if(day<10){day='0'+day;}if(hours<10){hours='0'+hours;}if(minutes<10){minutes='0'+minutes;}if(seconds<10){seconds='0'+seconds;}if(milli<100){milli='0'+milli;}if(milli<10){milli='0'+milli;}return'"'+year+'-'+month+'-'+day+'T'+hours+':'+minutes+':'+seconds+'.'+milli+'Z"';}pairs=[];if($.isArray(o)){for(k=0;k<o.length;k++){pairs.push($.toJSON(o[k])||'null');}return'['+pairs.join(',')+']';}if(typeof o==='object'){for(k in o){if(hasOwn.call(o,k)){type=typeof k;if(type==='number'){name='"'+k+'"';}else if(type==='string'){name=$.quoteString(k);}else{
continue;}type=typeof o[k];if(type!=='function'&&type!=='undefined'){val=$.toJSON(o[k]);pairs.push(name+':'+val);}}}return'{'+pairs.join(',')+'}';}};$.evalJSON=typeof JSON==='object'&&JSON.parse?JSON.parse:function(str){return eval('('+str+')');};$.secureEvalJSON=typeof JSON==='object'&&JSON.parse?JSON.parse:function(str){var filtered=str.replace(/\\["\\\/bfnrtu]/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,'');if(/^[\],:{}\s]*$/.test(filtered)){return eval('('+str+')');}throw new SyntaxError('Error parsing JSON, source is not valid.');};$.quoteString=function(str){if(str.match(escape)){return'"'+str.replace(escape,function(a){var c=meta[a];if(typeof c==='string'){return c;}c=a.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+(c%16).toString(16);})+'"';}return'"'+str+'"';};}(jQuery));(function(mw,$){mw.log.deprecate($,'toJSON',$.toJSON,'Use JSON.stringify instead (module "json" for polyfill).');mw.log.
deprecate($,'evalJSON',$.evalJSON,'Use JSON.parse instead (module "json" for polyfill).');mw.log.deprecate($,'secureEvalJSON',$.secureEvalJSON,'Use JSON.parse instead (module "json" for polyfill).');mw.log.deprecate($,'quoteString',$.quoteString,'Use JSON.stringify instead (module "json" for polyfill).');}(mediaWiki,jQuery));},{},{});mw.loader.implement("jquery.mwExtension",function($,jQuery){(function($){$.extend({trimLeft:function(str){return str===null?'':str.toString().replace(/^\s+/,'');},trimRight:function(str){return str===null?'':str.toString().replace(/\s+$/,'');},ucFirst:function(str){return str.charAt(0).toUpperCase()+str.substr(1);},escapeRE:function(str){return str.replace(/([\\{}()|.?*+\-\^$\[\]])/g,'\\$1');},isDomElement:function(el){return!!el&&!!el.nodeType;},isEmpty:function(v){var key;if(v===''||v===0||v==='0'||v===null||v===false||v===undefined){return true;}if(v.length===0){return true;}if(typeof v==='object'){for(key in v){return false;}return true;}return false;}
,compareArray:function(arrThis,arrAgainst){if(arrThis.length!==arrAgainst.length){return false;}for(var i=0;i<arrThis.length;i++){if($.isArray(arrThis[i])){if(!$.compareArray(arrThis[i],arrAgainst[i])){return false;}}else if(arrThis[i]!==arrAgainst[i]){return false;}}return true;},compareObject:function(objectA,objectB){var prop,type;if(typeof objectA===typeof objectB){if(typeof objectA==='object'){if(objectA===objectB){return true;}else{for(prop in objectA){if(prop in objectB){type=typeof objectA[prop];if(type===typeof objectB[prop]){switch(type){case'object':if(!$.compareObject(objectA[prop],objectB[prop])){return false;}break;case'function':if(objectA[prop].toString()!==objectB[prop].toString()){return false;}break;default:if(objectA[prop]!==objectB[prop]){return false;}break;}}else{return false;}}else{return false;}}for(prop in objectB){if(!(prop in objectA)){return false;}}}}}else{return false;}return true;}});}(jQuery));},{},{});mw.loader.implement("jquery.tabIndex",function($,
jQuery){(function($){$.fn.firstTabIndex=function(){var minTabIndex=null;$(this).find('[tabindex]').each(function(){var tabIndex=parseInt($(this).prop('tabindex'),10);if(tabIndex>0&&!isNaN(tabIndex)){if(minTabIndex===null){minTabIndex=tabIndex;}else if(tabIndex<minTabIndex){minTabIndex=tabIndex;}}});return minTabIndex;};$.fn.lastTabIndex=function(){var maxTabIndex=null;$(this).find('[tabindex]').each(function(){var tabIndex=parseInt($(this).prop('tabindex'),10);if(tabIndex>0&&!isNaN(tabIndex)){if(maxTabIndex===null){maxTabIndex=tabIndex;}else if(tabIndex>maxTabIndex){maxTabIndex=tabIndex;}}});return maxTabIndex;};}(jQuery));},{},{});mw.loader.implement("jquery.throttle-debounce",function($,jQuery){(function(window,undefined){'$:nomunge';var $=window.jQuery||window.Cowboy||(window.Cowboy={}),jq_throttle;$.throttle=jq_throttle=function(delay,no_trailing,callback,debounce_mode){var timeout_id,last_exec=0;if(typeof no_trailing!=='boolean'){debounce_mode=callback;callback=no_trailing;
no_trailing=undefined;}function wrapper(){var that=this,elapsed=+new Date()-last_exec,args=arguments;function exec(){last_exec=+new Date();callback.apply(that,args);};function clear(){timeout_id=undefined;};if(debounce_mode&&!timeout_id){exec();}timeout_id&&clearTimeout(timeout_id);if(debounce_mode===undefined&&elapsed>delay){exec();}else if(no_trailing!==true){timeout_id=setTimeout(debounce_mode?clear:exec,debounce_mode===undefined?delay-elapsed:delay);}};if($.guid){wrapper.guid=callback.guid=callback.guid||$.guid++;}return wrapper;};$.debounce=function(delay,at_begin,callback){return callback===undefined?jq_throttle(delay,at_begin,false):jq_throttle(delay,callback,at_begin!==false);};})(this);},{},{});mw.loader.implement("jquery.tipsy",function($,jQuery){(function($){function maybeCall(thing,ctx){return(typeof thing=='function')?(thing.call(ctx)):thing;}function Tipsy(element,options){this.$element=$(element);this.options=options;this.enabled=true;this.fixTitle();}Tipsy.prototype={
show:function(){var title=this.getTitle();if(title&&this.enabled){var $tip=this.tip();$tip.find('.tipsy-inner')[this.options.html?'html':'text'](title);$tip[0].className='tipsy';if(this.options.className){$tip.addClass(maybeCall(this.options.className,this.$element[0]));}$tip.remove().css({top:0,left:0,visibility:'hidden',display:'block'}).appendTo(document.body);var pos=$.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});var gravity=(typeof this.options.gravity=='function')?this.options.gravity.call(this.$element[0]):this.options.gravity;$tip.addClass('tipsy-'+gravity);if(this.options.className){$tip.addClass(maybeCall(this.options.className,this.$element[0]));}var actualWidth=$tip[0].offsetWidth,actualHeight=$tip[0].offsetHeight;var tp;switch(gravity.charAt(0)){case'n':tp={top:pos.top+pos.height+this.options.offset,left:pos.left+pos.width/2-actualWidth/2};break;case's':tp={top:pos.top-actualHeight-this.options.offset,left:pos.
left+pos.width/2-actualWidth/2};break;case'e':tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth-this.options.offset};break;case'w':tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width+this.options.offset};break;}if(gravity.length==2){if(gravity.charAt(1)=='w'){if(this.options.center){tp.left=pos.left+pos.width/2-15;}else{tp.left=pos.left;}}else{if(this.options.center){tp.left=pos.left+pos.width/2-actualWidth+15;}else{tp.left=pos.left+pos.width;}}}$tip.css(tp);if(this.options.fade){$tip.stop().css({opacity:0,display:'block',visibility:'visible'}).animate({opacity:this.options.opacity},100);}else{$tip.css({visibility:'visible',opacity:this.options.opacity});}}},hide:function(){if(this.options.fade){this.tip().stop().fadeOut(100,function(){$(this).remove();});}else{this.tip().remove();}},fixTitle:function(){var $e=this.$element;if($e.attr('title')||typeof($e.attr('original-title'))!='string'){$e.attr('original-title',$e.attr('title')||'').removeAttr(
'title');}},getTitle:function(){var title,$e=this.$element,o=this.options;this.fixTitle();if(typeof o.title=='string'){title=$e.attr(o.title=='title'?'original-title':o.title);}else if(typeof o.title=='function'){title=o.title.call($e[0]);}title=(''+title).replace(/(^\s*|\s*$)/,"");return title||o.fallback;},tip:function(){if(!this.$tip){this.$tip=$('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');}return this.$tip;},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null;}},enable:function(){this.enabled=true;},disable:function(){this.enabled=false;},toggleEnabled:function(){this.enabled=!this.enabled;}};$.fn.tipsy=function(options){if(options===true){return this.data('tipsy');}else if(typeof options=='string'){var tipsy=this.data('tipsy');if(tipsy)tipsy[options]();return this;}options=$.extend({},$.fn.tipsy.defaults,options);function get(ele){var tipsy=$.data(ele,'tipsy');if(!tipsy){tipsy
=new Tipsy(ele,$.fn.tipsy.elementOptions(ele,options));$.data(ele,'tipsy',tipsy);}return tipsy;}function enter(){var tipsy=get(this);tipsy.hoverState='in';if(options.delayIn==0){tipsy.show();}else{tipsy.fixTitle();setTimeout(function(){if(tipsy.hoverState=='in')tipsy.show();},options.delayIn);}};function leave(){var tipsy=get(this);tipsy.hoverState='out';if(options.delayOut==0){tipsy.hide();}else{setTimeout(function(){if(tipsy.hoverState=='out')tipsy.hide();},options.delayOut);}};if(!options.live)this.each(function(){get(this);});if(options.trigger!='manual'){var binder=options.live?'live':'bind',eventIn=options.trigger=='hover'?'mouseenter':'focus',eventOut=options.trigger=='hover'?'mouseleave':'blur';this[binder](eventIn,enter)[binder](eventOut,leave);}return this;};$.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:true,fallback:'',gravity:'n',center:true,html:false,live:false,offset:0,opacity:1.0,title:'title',trigger:'hover'};$.fn.tipsy.elementOptions=function(ele,
options){return $.metadata?$.extend({},options,$(ele).metadata()):options;};$.fn.tipsy.autoNS=function(){return $(this).offset().top>($(document).scrollTop()+$(window).height()/2)?'s':'n';};$.fn.tipsy.autoWE=function(){return $(this).offset().left>($(document).scrollLeft()+$(window).width()/2)?'e':'w';};$.fn.tipsy.autoBounds=function(margin,prefer){return function(){var dir={ns:prefer[0],ew:(prefer.length>1?prefer[1]:false)},boundTop=$(document).scrollTop()+margin,boundLeft=$(document).scrollLeft()+margin,$this=$(this);if($this.offset().top<boundTop)dir.ns='n';if($this.offset().left<boundLeft)dir.ew='w';if($(window).width()+$(document).scrollLeft()-$this.offset().left<margin)dir.ew='e';if($(window).height()+$(document).scrollTop()-$this.offset().top<margin)dir.ns='s';return dir.ns+(dir.ew?dir.ew:'');}};})(jQuery);},{"css":[
".tipsy{padding:5px;position:absolute;z-index:100000;cursor:default}.tipsy-inner{padding:5px 8px 4px 8px; background-color:#ffffff;border:solid 1px #a7d7f9;color:black;max-width:15em;border-radius:4px; }.tipsy-arrow{position:absolute;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALAgMAAADUwp+1AAAACVBMVEX5+fmn1/n///9s6BFKAAAAAXRSTlMAQObYZgAAACpJREFUCB1jZBD4wMiQMoeRcUU4I9uSaYxSE54xZjn8AtMgPkgcJA9UBwAeDw1Qrb3pVAAAAABJRU5ErkJggg==) no-repeat top left;background:url(//bits.wikimedia.org/static-1.24wmf13/resources/src/jquery.tipsy/images/tipsy.png?2014-07-10T15:06:40Z) no-repeat top left!ie;width:11px;height:6px} .tipsy-n .tipsy-arrow{top:0px;left:50%;margin-left:-5px} .tipsy-nw .tipsy-arrow{top:1px;left:10px} .tipsy-ne .tipsy-arrow{top:1px;right:10px} .tipsy-s .tipsy-arrow{bottom:0px;left:50%;margin-left:-5px;background-position:bottom left} .tipsy-sw .tipsy-arrow{bottom:0px;left:10px;background-position:bottom left} .tipsy-se .tipsy-arrow{bottom:0px;right:10px;background-position:bottom left} .tipsy-e .tipsy-arrow{top:50%;margin-top:-5px;right:1px;width:5px;height:11px;background-position:top right} .tipsy-w .tipsy-arrow{top:50%;margin-top:-5px;left:0px;width:6px;height:11px}\n/* cache key: ruwiki:resourceloader:filter:minify-css:7:304287201ae97a51519ad7c2342f4eb4 */"
]},{});mw.loader.implement("mediawiki.Title",function($,jQuery){(function(mw,$){function Title(title,namespace){var parsed=parse(title,namespace);if(!parsed){throw new Error('Unable to parse title');}this.namespace=parsed.namespace;this.title=parsed.title;this.ext=parsed.ext;this.fragment=parsed.fragment;return this;}var NS_MAIN=0,NS_TALK=1,NS_SPECIAL=-1,getNsIdByName=function(ns){var id;if(typeof ns!=='string'){return false;}ns=ns.toLowerCase();id=mw.config.get('wgNamespaceIds')[ns];if(id===undefined){return false;}return id;},rUnderscoreTrim=/^_+|_+$/g,rSplit=/^(.+?)_*:_*(.*)$/,rInvalid=new RegExp('[^'+mw.config.get('wgLegalTitleChars')+']'+'|%[0-9A-Fa-f]{2}'+'|&[A-Za-z0-9\u0080-\uFFFF]+;'+'|&#[0-9]+;'+'|&#x[0-9A-Fa-f]+;'),parse=function(title,defaultNamespace){var namespace,m,id,i,fragment,ext;namespace=defaultNamespace===undefined?NS_MAIN:defaultNamespace;title=title.replace(/[ _\s]+/g,'_').replace(rUnderscoreTrim,'');if(title!==''&&title.charAt(0)===':'){namespace=NS_MAIN;title=
title.substr(1).replace(rUnderscoreTrim,'');}if(title===''){return false;}m=title.match(rSplit);if(m){id=getNsIdByName(m[1]);if(id!==false){namespace=id;title=m[2];if(namespace===NS_TALK&&(m=title.match(rSplit))){if(getNsIdByName(m[1])!==false){return false;}}}}i=title.indexOf('#');if(i===-1){fragment=null;}else{fragment=title.substr(i+1).replace(/_/g,' ');title=title.substr(0,i).replace(rUnderscoreTrim,'');}if(title.match(rInvalid)){return false;}if(title.indexOf('.')!==-1&&(title==='.'||title==='..'||title.indexOf('./')===0||title.indexOf('../')===0||title.indexOf('/./')!==-1||title.indexOf('/../')!==-1||title.substr(title.length-2)==='/.'||title.substr(title.length-3)==='/..')){return false;}if(title.indexOf('~~~')!==-1){return false;}if(namespace!==NS_SPECIAL&&$.byteLength(title)>255){return false;}if(title===''&&namespace!==NS_MAIN){return false;}if(title.charAt(0)===':'){return false;}i=title.lastIndexOf('.');if(i===-1||title.length<=i+1){ext=null;}else{ext=title.substr(i+1);
title=title.substr(0,i);}return{namespace:namespace,title:title,ext:ext,fragment:fragment};},text=function(s){if(s!==null&&s!==undefined){return s.replace(/_/g,' ');}else{return'';}},createObject=Object.create||(function(){return function(o){function Title(){}if(o!==Object(o)){throw new Error('Cannot inherit from a non-object');}Title.prototype=o;return new Title();};}());Title.newFromText=function(title,namespace){var t,parsed=parse(title,namespace);if(!parsed){return null;}t=createObject(Title.prototype);t.namespace=parsed.namespace;t.title=parsed.title;t.ext=parsed.ext;t.fragment=parsed.fragment;return t;};Title.newFromImg=function(img){var matches,i,regex,src,decodedSrc,thumbPhpRegex=/thumb\.php/,regexes=[/\/[a-f0-9]\/[a-f0-9]{2}\/([^\s\/]+)\/[^\s\/]+-(?:\1|thumbnail)[^\s\/]*$/,/\/([^\s\/]+)\/[^\s\/]+-(?:\1|thumbnail)[^\s\/]*$/,/\/[a-f0-9]\/[a-f0-9]{2}\/([^\s\/]+)$/,/\/([^\s\/]+)$/],recount=regexes.length;src=img.jquery?img[0].src:img.src;matches=src.match(thumbPhpRegex);if(matches
){return mw.Title.newFromText('File:'+mw.util.getParamValue('f',src));}decodedSrc=decodeURIComponent(src);for(i=0;i<recount;i++){regex=regexes[i];matches=decodedSrc.match(regex);if(matches&&matches[1]){return mw.Title.newFromText('File:'+matches[1]);}}return null;};Title.exists=function(title){var match,type=$.type(title),obj=Title.exist.pages;if(type==='string'){match=obj[title];}else if(type==='object'&&title instanceof Title){match=obj[title.toString()];}else{throw new Error('mw.Title.exists: title must be a string or an instance of Title');}if(typeof match==='boolean'){return match;}return null;};Title.exist={pages:{},set:function(titles,state){titles=$.isArray(titles)?titles:[titles];state=state===undefined?true:!!state;var pages=this.pages,i,len=titles.length;for(i=0;i<len;i++){pages[titles[i]]=state;}return true;}};Title.prototype={constructor:Title,getNamespaceId:function(){return this.namespace;},getNamespacePrefix:function(){return this.namespace===NS_MAIN?'':(mw.config.get(
'wgFormattedNamespaces')[this.namespace].replace(/ /g,'_')+':');},getName:function(){if($.inArray(this.namespace,mw.config.get('wgCaseSensitiveNamespaces'))!==-1){return this.title;}else{return $.ucFirst(this.title);}},getNameText:function(){return text(this.getName());},getExtension:function(){return this.ext;},getDotExtension:function(){return this.ext===null?'':'.'+this.ext;},getMain:function(){return this.getName()+this.getDotExtension();},getMainText:function(){return text(this.getMain());},getPrefixedDb:function(){return this.getNamespacePrefix()+this.getMain();},getPrefixedText:function(){return text(this.getPrefixedDb());},getFragment:function(){return this.fragment;},getUrl:function(params){return mw.util.getUrl(this.toString(),params);},exists:function(){return Title.exists(this);}};Title.prototype.toString=Title.prototype.getPrefixedDb;Title.prototype.toText=Title.prototype.getPrefixedText;mw.Title=Title;}(mediaWiki,jQuery));},{},{});mw.loader.implement("mediawiki.Uri",
function($,jQuery){(function(mw,$){function cat(pre,val,post,raw){if(val===undefined||val===null||val===''){return'';}return pre+(raw?val:mw.Uri.encode(val))+post;}var parser={strict:/^(?:([^:\/?#]+):)?(?:\/\/(?:(?:([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?([^:\/?#]*)(?::(\d*))?)?((?:[^?#\/]*\/)*[^?#]*)(?:\?([^#]*))?(?:#(.*))?/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?(?:(?:([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?([^:\/?#]*)(?::(\d*))?((?:\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?[^?#\/]*)(?:\?([^#]*))?(?:#(.*))?/},properties=['protocol','user','password','host','port','path','query','fragment'];mw.UriRelative=function(documentLocation){var defaultUri;function Uri(uri,options){options=typeof options==='object'?options:{strictMode:!!options};options=$.extend({strictMode:false,overrideKeys:false},options);if(uri!==undefined&&uri!==null&&uri!==''){if(typeof uri==='string'){this.parse(uri,options);}else if(typeof uri==='object'){for(var prop in uri){if(uri.hasOwnProperty(prop)){
if($.isArray(uri[prop])||$.isPlainObject(uri[prop])){this[prop]=$.extend(true,{},uri[prop]);}else{this[prop]=uri[prop];}}}if(!this.query){this.query={};}}}else{return defaultUri.clone();}if(!this.protocol){this.protocol=defaultUri.protocol;}if(!this.host){this.host=defaultUri.host;if(!this.port){this.port=defaultUri.port;}}if(this.path&&this.path.charAt(0)!=='/'){throw new Error('Bad constructor arguments');}if(!(this.protocol&&this.host&&this.path)){throw new Error('Bad constructor arguments');}}Uri.encode=function(s){return encodeURIComponent(s).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29').replace(/\*/g,'%2A').replace(/%20/g,'+');};Uri.decode=function(s){return decodeURIComponent(s.replace(/\+/g,'%20'));};Uri.prototype={parse:function(str,options){var q,matches,uri=this;matches=parser[options.strictMode?'strict':'loose'].exec(str);$.each(properties,function(i,property){uri[property]=matches[i+1];});q={};if(uri.query){uri.query.replace(
/(?:^|&)([^&=]*)(?:(=)([^&]*))?/g,function($0,$1,$2,$3){var k,v;if($1){k=Uri.decode($1);v=($2===''||$2===undefined)?null:Uri.decode($3);if(options.overrideKeys||q[k]===undefined){q[k]=v;}else{if(typeof q[k]==='string'){q[k]=[q[k]];}if($.isArray(q[k])){q[k].push(v);}}}});}uri.query=q;},getUserInfo:function(){return cat('',this.user,cat(':',this.password,''));},getHostPort:function(){return this.host+cat(':',this.port,'');},getAuthority:function(){return cat('',this.getUserInfo(),'@')+this.getHostPort();},getQueryString:function(){var args=[];$.each(this.query,function(key,val){var k=Uri.encode(key),vals=$.isArray(val)?val:[val];$.each(vals,function(i,v){if(v===null){args.push(k);}else if(k==='title'){args.push(k+'='+mw.util.wikiUrlencode(v));}else{args.push(k+'='+Uri.encode(v));}});});return args.join('&');},getRelativePath:function(){return this.path+cat('?',this.getQueryString(),'',true)+cat('#',this.fragment,'');},toString:function(){return this.protocol+'://'+this.getAuthority()+
this.getRelativePath();},clone:function(){return new Uri(this);},extend:function(parameters){$.extend(this.query,parameters);return this;}};defaultUri=new Uri(documentLocation);return Uri;};if(document&&document.location&&document.location.href){mw.Uri=mw.UriRelative(document.location.href);}}(mediaWiki,jQuery));},{},{});mw.loader.implement("mediawiki.api",function($,jQuery){(function(mw,$){var defaultOptions={parameters:{action:'query',format:'json'},ajax:{url:mw.util.wikiScript('api'),timeout:30*1000,dataType:'json'}},promises={};promises[defaultOptions.ajax.url]={};$.each(mw.user.tokens.get(),function(key,value){promises[defaultOptions.ajax.url][key]=$.Deferred().resolve(value).promise({abort:function(){}});});mw.Api=function(options){if(options===undefined){options={};}if(options.ajax&&options.ajax.url!==undefined){options.ajax.url=String(options.ajax.url);}options.parameters=$.extend({},defaultOptions.parameters,options.parameters);options.ajax=$.extend({},defaultOptions.ajax,
options.ajax);this.defaults=options;};mw.Api.prototype={normalizeAjaxOptions:function(arg){var opts=arg||{};if(typeof arg==='function'){opts={ok:arg};}return opts;},get:function(parameters,ajaxOptions){ajaxOptions=this.normalizeAjaxOptions(ajaxOptions);ajaxOptions.type='GET';return this.ajax(parameters,ajaxOptions);},post:function(parameters,ajaxOptions){ajaxOptions=this.normalizeAjaxOptions(ajaxOptions);ajaxOptions.type='POST';return this.ajax(parameters,ajaxOptions);},ajax:function(parameters,ajaxOptions){var token,apiDeferred=$.Deferred(),msg='Use of mediawiki.api callback params is deprecated. Use the Promise instead.',xhr,key,formData;parameters=$.extend({},this.defaults.parameters,parameters);ajaxOptions=$.extend({},this.defaults.ajax,ajaxOptions);if(parameters.token){token=parameters.token;delete parameters.token;}if(ajaxOptions.type==='POST'&&window.FormData&&ajaxOptions.contentType==='multipart/form-data'){formData=new FormData();for(key in parameters){formData.append(key,
parameters[key]);}if(token){formData.append('token',token);}ajaxOptions.data=formData;ajaxOptions.processData=false;ajaxOptions.contentType=false;}else{ajaxOptions.data=$.param(parameters).replace(/\./g,'%2E');if(token){ajaxOptions.data+='&token='+encodeURIComponent(token);}if(ajaxOptions.contentType==='multipart/form-data'){delete ajaxOptions.contentType;}}if(ajaxOptions.ok){mw.track('mw.deprecate','api.cbParam');mw.log.warn(msg);apiDeferred.done(ajaxOptions.ok);delete ajaxOptions.ok;}if(ajaxOptions.err){mw.track('mw.deprecate','api.cbParam');mw.log.warn(msg);apiDeferred.fail(ajaxOptions.err);delete ajaxOptions.err;}xhr=$.ajax(ajaxOptions).fail(function(xhr,textStatus,exception){apiDeferred.reject('http',{xhr:xhr,textStatus:textStatus,exception:exception});}).done(function(result,textStatus,jqXHR){if(result===undefined||result===null||result===''){apiDeferred.reject('ok-but-empty','OK response but empty result (check HTTP headers?)');}else if(result.error){var code=result.error.code
===undefined?'unknown':result.error.code;apiDeferred.reject(code,result);}else{apiDeferred.resolve(result,jqXHR);}});return apiDeferred.promise({abort:xhr.abort}).fail(function(code,details){if(code!=='abort'){mw.log('mw.Api error: ',code,details);}});},postWithToken:function(tokenType,params,ajaxOptions){var api=this;if($.isFunction(ajaxOptions)){ajaxOptions=undefined;}return api.getToken(tokenType).then(function(token){params.token=token;return api.post(params,ajaxOptions).then(null,function(code){if(code==='badtoken'){promises[api.defaults.ajax.url][tokenType+'Token']=params.token=undefined;return api.getToken(tokenType).then(function(token){params.token=token;return api.post(params,ajaxOptions);});}return this;});});},getToken:function(type){var apiPromise,promiseGroup=promises[this.defaults.ajax.url],d=promiseGroup&&promiseGroup[type+'Token'];if(!d){apiPromise=this.get({action:'tokens',type:type});d=apiPromise.then(function(data){if(data.tokens&&data.tokens[type+'token']){return data
.tokens[type+'token'];}return $.Deferred().reject('token-missing',data);},function(){delete promiseGroup[type+'Token'];return this;}).promise({abort:apiPromise.abort});if(!promiseGroup){promiseGroup=promises[this.defaults.ajax.url]={};}promiseGroup[type+'Token']=d;}return d;}};mw.Api.errors=['ok-but-empty','timeout','duplicate','duplicate-archive','noimageinfo','uploaddisabled','nomodule','mustbeposted','badaccess-groups','stashfailed','missingresult','missingparam','invalid-file-key','copyuploaddisabled','mustbeloggedin','empty-file','file-too-large','filetype-missing','filetype-banned','filetype-banned-type','filename-tooshort','illegal-filename','verification-error','hookaborted','unknown-error','internal-error','overwrite','badtoken','fetchfileerror','fileexists-shared-forbidden','invalidtitle','notloggedin'];mw.Api.warnings=['duplicate','exists'];}(mediaWiki,jQuery));},{},{});mw.loader.implement("mediawiki.cldr",function($,jQuery){(function(mw){'use strict';mw.cldr={getPluralForm:
function(number,pluralRules){var i;for(i=0;i<pluralRules.length;i++){if(mw.libs.pluralRuleParser(pluralRules[i],number)){break;}}return i;}};}(mediaWiki));},{},{});mw.loader.implement("mediawiki.jqueryMsg",function($,jQuery){(function(mw,$){var oldParser,slice=Array.prototype.slice,parserDefaults={magic:{'SITENAME':mw.config.get('wgSiteName')},allowedHtmlElements:['b','i'],allowedHtmlCommonAttributes:['id','class','style','lang','dir','title','role'],allowedHtmlAttributesByElement:{},messages:mw.messages,language:mw.language,format:'parse'};function appendWithoutParsing($parent,children){var i,len;if(!$.isArray(children)){children=[children];}for(i=0,len=children.length;i<len;i++){if(typeof children[i]!=='object'){children[i]=document.createTextNode(children[i]);}}return $parent.append(children);}function decodePrimaryHtmlEntities(encoded){return encoded.replace(/&#039;/g,'\'').replace(/&quot;/g,'"').replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&');}function
getFailableParserFn(options){var parser=new mw.jqueryMsg.parser(options);return function(args){var fallback,key=args[0],argsArray=$.isArray(args[1])?args[1]:slice.call(args,1);try{return parser.parse(key,argsArray);}catch(e){fallback=parser.settings.messages.get(key);mw.log.warn('mediawiki.jqueryMsg: '+key+': '+e.message);return $('<span>').text(fallback);}};}mw.jqueryMsg={};mw.jqueryMsg.getMessageFunction=function(options){var failableParserFn=getFailableParserFn(options),format;if(options&&options.format!==undefined){format=options.format;}else{format=parserDefaults.format;}return function(){var failableResult=failableParserFn(arguments);if(format==='text'||format==='escaped'){return failableResult.text();}else{return failableResult.html();}};};mw.jqueryMsg.getPlugin=function(options){var failableParserFn=getFailableParserFn(options);return function(){var $target=this.empty();$.each(failableParserFn(arguments).contents(),function(i,node){appendWithoutParsing($target,node);});return $target
;};};mw.jqueryMsg.parser=function(options){this.settings=$.extend({},parserDefaults,options);this.settings.onlyCurlyBraceTransform=(this.settings.format==='text'||this.settings.format==='escaped');this.emitter=new mw.jqueryMsg.htmlEmitter(this.settings.language,this.settings.magic);};mw.jqueryMsg.parser.prototype={astCache:{},parse:function(key,replacements){return this.emitter.emit(this.getAst(key),replacements);},getAst:function(key){var cacheKey=[key,this.settings.onlyCurlyBraceTransform].join(':'),wikiText;if(this.astCache[cacheKey]===undefined){wikiText=this.settings.messages.get(key);if(typeof wikiText!=='string'){wikiText='\\['+key+'\\]';}this.astCache[cacheKey]=this.wikiTextToAst(wikiText);}return this.astCache[cacheKey];},wikiTextToAst:function(input){var pos,settings=this.settings,concat=Array.prototype.concat,regularLiteral,regularLiteralWithoutBar,regularLiteralWithoutSpace,regularLiteralWithSquareBrackets,doubleQuote,singleQuote,backslash,anyCharacter,asciiAlphabetLiteral,
escapedOrLiteralWithoutSpace,escapedOrLiteralWithoutBar,escapedOrRegularLiteral,whitespace,dollar,digits,htmlDoubleQuoteAttributeValue,htmlSingleQuoteAttributeValue,htmlAttributeEquals,openHtmlStartTag,optionalForwardSlash,openHtmlEndTag,closeHtmlTag,openExtlink,closeExtlink,wikilinkPage,wikilinkContents,openWikilink,closeWikilink,templateName,pipe,colon,templateContents,openTemplate,closeTemplate,nonWhitespaceExpression,paramExpression,expression,curlyBraceTransformExpression,result;pos=0;function choice(ps){return function(){var i,result;for(i=0;i<ps.length;i++){result=ps[i]();if(result!==null){return result;}}return null;};}function sequence(ps){var i,res,originalPos=pos,result=[];for(i=0;i<ps.length;i++){res=ps[i]();if(res===null){pos=originalPos;return null;}result.push(res);}return result;}function nOrMore(n,p){return function(){var originalPos=pos,result=[],parsed=p();while(parsed!==null){result.push(parsed);parsed=p();}if(result.length<n){pos=originalPos;return null;}return result
;};}function transform(p,fn){return function(){var result=p();return result===null?null:fn(result);};}function makeStringParser(s){var len=s.length;return function(){var result=null;if(input.substr(pos,len)===s){result=s;pos+=len;}return result;};}function makeRegexParser(regex){return function(){var matches=input.substr(pos).match(regex);if(matches===null){return null;}pos+=matches[0].length;return matches[0];};}regularLiteral=makeRegexParser(/^[^{}\[\]$<\\]/);regularLiteralWithoutBar=makeRegexParser(/^[^{}\[\]$\\|]/);regularLiteralWithoutSpace=makeRegexParser(/^[^{}\[\]$\s]/);regularLiteralWithSquareBrackets=makeRegexParser(/^[^{}$\\]/);backslash=makeStringParser('\\');doubleQuote=makeStringParser('"');singleQuote=makeStringParser('\'');anyCharacter=makeRegexParser(/^./);openHtmlStartTag=makeStringParser('<');optionalForwardSlash=makeRegexParser(/^\/?/);openHtmlEndTag=makeStringParser('</');htmlAttributeEquals=makeRegexParser(/^\s*=\s*/);closeHtmlTag=makeRegexParser(/^\s*>/);function
escapedLiteral(){var result=sequence([backslash,anyCharacter]);return result===null?null:result[1];}escapedOrLiteralWithoutSpace=choice([escapedLiteral,regularLiteralWithoutSpace]);escapedOrLiteralWithoutBar=choice([escapedLiteral,regularLiteralWithoutBar]);escapedOrRegularLiteral=choice([escapedLiteral,regularLiteral]);function literalWithoutSpace(){var result=nOrMore(1,escapedOrLiteralWithoutSpace)();return result===null?null:result.join('');}function literalWithoutBar(){var result=nOrMore(1,escapedOrLiteralWithoutBar)();return result===null?null:result.join('');}function unescapedLiteralWithoutBar(){var result=nOrMore(1,regularLiteralWithoutBar)();return result===null?null:result.join('');}function literal(){var result=nOrMore(1,escapedOrRegularLiteral)();return result===null?null:result.join('');}function curlyBraceTransformExpressionLiteral(){var result=nOrMore(1,regularLiteralWithSquareBrackets)();return result===null?null:result.join('');}asciiAlphabetLiteral=makeRegexParser(
/[A-Za-z]+/);htmlDoubleQuoteAttributeValue=makeRegexParser(/^[^"]*/);htmlSingleQuoteAttributeValue=makeRegexParser(/^[^']*/);whitespace=makeRegexParser(/^\s+/);dollar=makeStringParser('$');digits=makeRegexParser(/^\d+/);function replacement(){var result=sequence([dollar,digits]);if(result===null){return null;}return['REPLACE',parseInt(result[1],10)-1];}openExtlink=makeStringParser('[');closeExtlink=makeStringParser(']');function extlink(){var result,parsedResult;result=null;parsedResult=sequence([openExtlink,nonWhitespaceExpression,whitespace,nOrMore(1,expression),closeExtlink]);if(parsedResult!==null){result=['EXTLINK',parsedResult[1]];if(parsedResult[3].length===1){result.push(parsedResult[3][0]);}else{result.push(['CONCAT'].concat(parsedResult[3]));}}return result;}function extLinkParam(){var result=sequence([openExtlink,dollar,digits,whitespace,expression,closeExtlink]);if(result===null){return null;}return['EXTLINKPARAM',parseInt(result[2],10)-1,result[4]];}openWikilink=
makeStringParser('[[');closeWikilink=makeStringParser(']]');pipe=makeStringParser('|');function template(){var result=sequence([openTemplate,templateContents,closeTemplate]);return result===null?null:result[1];}wikilinkPage=choice([unescapedLiteralWithoutBar,template]);function pipedWikilink(){var result=sequence([wikilinkPage,pipe,expression]);return result===null?null:[result[0],result[2]];}wikilinkContents=choice([pipedWikilink,wikilinkPage]);function wikilink(){var result,parsedResult,parsedLinkContents;result=null;parsedResult=sequence([openWikilink,wikilinkContents,closeWikilink]);if(parsedResult!==null){parsedLinkContents=parsedResult[1];result=['WIKILINK'].concat(parsedLinkContents);}return result;}function doubleQuotedHtmlAttributeValue(){var parsedResult=sequence([doubleQuote,htmlDoubleQuoteAttributeValue,doubleQuote]);return parsedResult===null?null:parsedResult[1];}function singleQuotedHtmlAttributeValue(){var parsedResult=sequence([singleQuote,htmlSingleQuoteAttributeValue
,singleQuote]);return parsedResult===null?null:parsedResult[1];}function htmlAttribute(){var parsedResult=sequence([whitespace,asciiAlphabetLiteral,htmlAttributeEquals,choice([doubleQuotedHtmlAttributeValue,singleQuotedHtmlAttributeValue])]);return parsedResult===null?null:[parsedResult[1],parsedResult[3]];}function isAllowedHtml(startTagName,endTagName,attributes){var i,len,attributeName;startTagName=startTagName.toLowerCase();endTagName=endTagName.toLowerCase();if(startTagName!==endTagName||$.inArray(startTagName,settings.allowedHtmlElements)===-1){return false;}for(i=0,len=attributes.length;i<len;i+=2){attributeName=attributes[i];if($.inArray(attributeName,settings.allowedHtmlCommonAttributes)===-1&&$.inArray(attributeName,settings.allowedHtmlAttributesByElement[startTagName]||[])===-1){return false;}}return true;}function htmlAttributes(){var parsedResult=nOrMore(0,htmlAttribute)();return concat.apply(['HTMLATTRIBUTES'],parsedResult);}function html(){var result=null,
parsedOpenTagResult,parsedHtmlContents,parsedCloseTagResult,wrappedAttributes,attributes,startTagName,endTagName,startOpenTagPos,startCloseTagPos,endOpenTagPos,endCloseTagPos;startOpenTagPos=pos;parsedOpenTagResult=sequence([openHtmlStartTag,asciiAlphabetLiteral,htmlAttributes,optionalForwardSlash,closeHtmlTag]);if(parsedOpenTagResult===null){return null;}endOpenTagPos=pos;startTagName=parsedOpenTagResult[1];parsedHtmlContents=nOrMore(0,expression)();startCloseTagPos=pos;parsedCloseTagResult=sequence([openHtmlEndTag,asciiAlphabetLiteral,closeHtmlTag]);if(parsedCloseTagResult===null){return['CONCAT',input.substring(startOpenTagPos,endOpenTagPos)].concat(parsedHtmlContents);}endCloseTagPos=pos;endTagName=parsedCloseTagResult[1];wrappedAttributes=parsedOpenTagResult[2];attributes=wrappedAttributes.slice(1);if(isAllowedHtml(startTagName,endTagName,attributes)){result=['HTMLELEMENT',startTagName,wrappedAttributes].concat(parsedHtmlContents);}else{result=['CONCAT',input.substring(
startOpenTagPos,endOpenTagPos)].concat(parsedHtmlContents,input.substring(startCloseTagPos,endCloseTagPos));}return result;}templateName=transform(makeRegexParser(/^[ !"$&'()*,.\/0-9;=?@A-Z\^_`a-z~\x80-\xFF+\-]+/),function(result){return result.toString();});function templateParam(){var expr,result;result=sequence([pipe,nOrMore(0,paramExpression)]);if(result===null){return null;}expr=result[1];return expr.length>1?['CONCAT'].concat(expr):expr[0];}function templateWithReplacement(){var result=sequence([templateName,colon,replacement]);return result===null?null:[result[0],result[2]];}function templateWithOutReplacement(){var result=sequence([templateName,colon,paramExpression]);return result===null?null:[result[0],result[2]];}function templateWithOutFirstParameter(){var result=sequence([templateName,colon]);return result===null?null:[result[0],''];}colon=makeStringParser(':');templateContents=choice([function(){var res=sequence([choice([templateWithReplacement,templateWithOutReplacement,
templateWithOutFirstParameter]),nOrMore(0,templateParam)]);return res===null?null:res[0].concat(res[1]);},function(){var res=sequence([templateName,nOrMore(0,templateParam)]);if(res===null){return null;}return[res[0]].concat(res[1]);}]);openTemplate=makeStringParser('{{');closeTemplate=makeStringParser('}}');nonWhitespaceExpression=choice([template,wikilink,extLinkParam,extlink,replacement,literalWithoutSpace]);paramExpression=choice([template,wikilink,extLinkParam,extlink,replacement,literalWithoutBar]);expression=choice([template,wikilink,extLinkParam,extlink,replacement,html,literal]);curlyBraceTransformExpression=choice([template,replacement,curlyBraceTransformExpressionLiteral]);function start(rootExpression){var result=nOrMore(0,rootExpression)();if(result===null){return null;}return['CONCAT'].concat(result);}result=start(this.settings.onlyCurlyBraceTransform?curlyBraceTransformExpression:expression);if(result===null||pos!==input.length){throw new Error('Parse error at position '
+pos.toString()+' in input: '+input);}return result;}};mw.jqueryMsg.htmlEmitter=function(language,magic){this.language=language;var jmsg=this;$.each(magic,function(key,val){jmsg[key.toLowerCase()]=function(){return val;};});this.emit=function(node,replacements){var ret,subnodes,operation,jmsg=this;switch(typeof node){case'string':case'number':ret=node;break;case'object':subnodes=$.map(node.slice(1),function(n){return jmsg.emit(n,replacements);});operation=node[0].toLowerCase();if(typeof jmsg[operation]==='function'){ret=jmsg[operation](subnodes,replacements);}else{throw new Error('Unknown operation "'+operation+'"');}break;case'undefined':ret='';break;default:throw new Error('Unexpected type in AST: '+typeof node);}return ret;};};mw.jqueryMsg.htmlEmitter.prototype={concat:function(nodes){var $span=$('<span>').addClass('mediaWiki_htmlEmitter');$.each(nodes,function(i,node){if(node instanceof jQuery&&node.hasClass('mediaWiki_htmlEmitter')){$.each(node.contents(),function(j,childNode){
appendWithoutParsing($span,childNode);});}else{appendWithoutParsing($span,node);}});return $span;},replace:function(nodes,replacements){var index=parseInt(nodes[0],10);if(index<replacements.length){return replacements[index];}else{return'$'+(index+1);}},wikilink:function(nodes){var page,anchor,url;page=nodes[0];url=mw.util.getUrl(page);if(nodes.length===1){anchor=page;}else{anchor=nodes[1];}return $('<a>').attr({title:page,href:url}).text(anchor);},htmlattributes:function(nodes){var i,len,mapping={};for(i=0,len=nodes.length;i<len;i+=2){mapping[nodes[i]]=decodePrimaryHtmlEntities(nodes[i+1]);}return mapping;},htmlelement:function(nodes){var tagName,attributes,contents,$element;tagName=nodes.shift();attributes=nodes.shift();contents=nodes;$element=$(document.createElement(tagName)).attr(attributes);return appendWithoutParsing($element,contents);},extlink:function(nodes){var $el,arg=nodes[0],contents=nodes[1];if(arg instanceof jQuery){$el=arg;}else{$el=$('<a>');if(typeof arg==='function')
{$el.click(arg).attr('href','#');}else{$el.attr('href',arg.toString());}}return appendWithoutParsing($el,contents);},extlinkparam:function(nodes,replacements){var replacement,index=parseInt(nodes[0],10);if(index<replacements.length){replacement=replacements[index];}else{replacement='$'+(index+1);}return this.extlink([replacement,nodes[1]]);},plural:function(nodes){var forms,count;count=parseFloat(this.language.convertNumber(nodes[0],true));forms=nodes.slice(1);return forms.length?this.language.convertPlural(count,forms):'';},gender:function(nodes){var gender,maybeUser=nodes[0],forms=nodes.slice(1);if(maybeUser===''){maybeUser=mw.user;}if(maybeUser&&maybeUser.options instanceof mw.Map){gender=maybeUser.options.get('gender');}else{gender=maybeUser;}return this.language.gender(gender,forms);},grammar:function(nodes){var form=nodes[0],word=nodes[1];return word&&form&&this.language.convertGrammar(word,form);},'int':function(nodes){return mw.jqueryMsg.getMessageFunction()(nodes[0].
toLowerCase());},formatnum:function(nodes){var isInteger=(nodes[1]&&nodes[1]==='R')?true:false,number=nodes[0];return this.language.convertNumber(number,isInteger);}};mw.log.deprecate(window,'gM',mw.jqueryMsg.getMessageFunction(),'Use mw.message( ... ).parse() instead.');$.fn.msg=mw.jqueryMsg.getPlugin();oldParser=mw.Message.prototype.parser;mw.Message.prototype.parser=function(){var messageFunction;if(this.format==='plain'||!/\{\{|[\[<>]/.test(this.map.get(this.key))){return oldParser.apply(this);}messageFunction=mw.jqueryMsg.getMessageFunction({'messages':this.map,'format':this.format});return messageFunction(this.key,this.parameters);};}(mediaWiki,jQuery));},{},{});mw.loader.implement("mediawiki.language",function($,jQuery){(function(mw,$){$.extend(mw.language,{procPLURAL:function(template){if(template.title&&template.parameters&&mw.language.convertPlural){if(template.parameters.length===0){return'';}var count=mw.language.convertNumber(template.title,true);return mw.language.
convertPlural(parseInt(count,10),template.parameters);}if(template.parameters[0]){return template.parameters[0];}return'';},convertPlural:function(count,forms){var pluralRules,formCount,form,index,equalsPosition,pluralFormIndex=0;if(!forms||forms.length===0){return'';}for(index=0;index<forms.length;index++){form=forms[index];if(/^\d+=/.test(form)){equalsPosition=form.indexOf('=');formCount=parseInt(form.substring(0,equalsPosition),10);if(formCount===count){return form.substr(equalsPosition+1);}forms[index]=undefined;}}forms=$.map(forms,function(form){return form;});if(forms.length===0){return'';}pluralRules=mw.language.getData(mw.config.get('wgUserLanguage'),'pluralRules');if(!pluralRules){return(count===1)?forms[0]:forms[1];}pluralFormIndex=mw.cldr.getPluralForm(count,pluralRules);pluralFormIndex=Math.min(pluralFormIndex,forms.length-1);return forms[pluralFormIndex];},preConvertPlural:function(forms,count){while(forms.length<count){forms.push(forms[forms.length-1]);}return forms;},
gender:function(gender,forms){if(!forms||forms.length===0){return'';}forms=mw.language.preConvertPlural(forms,2);if(gender==='male'){return forms[0];}if(gender==='female'){return forms[1];}return(forms.length===3)?forms[2]:forms[0];},convertGrammar:function(word,form){var grammarForms=mw.language.getData(mw.config.get('wgUserLanguage'),'grammarForms');if(grammarForms&&grammarForms[form]){return grammarForms[form][word]||word;}return word;}});}(mediaWiki,jQuery));(function(mw,$){function pad(text,size,ch,end){if(!ch){ch='0';}var out=String(text),padStr=replicate(ch,Math.ceil((size-out.length)/ch.length));return end?out+padStr:padStr+out;}function replicate(str,num){if(num<=0||!str){return'';}var buf=[];while(num){buf.push(str);str+=str;}return buf.join('');}function commafyNumber(value,pattern,options){options=options||{group:',',decimal:'.'};if(isNaN(value)){return value;}var padLength,patternDigits,index,whole,off,remainder,patternParts=pattern.split('.'),maxPlaces=(patternParts[1]||[
]).length,valueParts=String(Math.abs(value)).split('.'),fractional=valueParts[1]||'',groupSize=0,groupSize2=0,pieces=[];if(patternParts[1]){padLength=(patternParts[1]&&patternParts[1].lastIndexOf('0')+1);if(padLength>fractional.length){valueParts[1]=pad(fractional,padLength,'0',true);}if(maxPlaces<fractional.length){valueParts[1]=fractional.substr(0,maxPlaces);}}else{if(valueParts[1]){valueParts.pop();}}patternDigits=patternParts[0].replace(',','');padLength=patternDigits.indexOf('0');if(padLength!==-1){padLength=patternDigits.length-padLength;if(padLength>valueParts[0].length){valueParts[0]=pad(valueParts[0],padLength);}if(patternDigits.indexOf('#')===-1){valueParts[0]=valueParts[0].substr(valueParts[0].length-padLength);}}index=patternParts[0].lastIndexOf(',');if(index!==-1){groupSize=patternParts[0].length-index-1;remainder=patternParts[0].substr(0,index);index=remainder.lastIndexOf(',');if(index!==-1){groupSize2=remainder.length-index-1;}}for(whole=valueParts[0];whole;){off=whole.
length-groupSize;pieces.push((off>0)?whole.substr(off):whole);whole=(off>0)?whole.slice(0,off):'';if(groupSize2){groupSize=groupSize2;}}valueParts[0]=pieces.reverse().join(options.group);return valueParts.join(options.decimal);}$.extend(mw.language,{convertNumber:function(num,integer){var i,tmp,transformTable,numberString,convertedNumber,pattern;pattern=mw.language.getData(mw.config.get('wgUserLanguage'),'digitGroupingPattern')||'#,##0.###';transformTable=mw.language.getDigitTransformTable();if(!transformTable){return num;}if(integer){if(parseInt(num,10)===num){return num;}tmp=[];for(i in transformTable){tmp[transformTable[i]]=i;}transformTable=tmp;numberString=num+'';}else{numberString=mw.language.commafy(num,pattern);}convertedNumber='';for(i=0;i<numberString.length;i++){if(transformTable[numberString[i]]){convertedNumber+=transformTable[numberString[i]];}else{convertedNumber+=numberString[i];}}return integer?parseInt(convertedNumber,10):convertedNumber;},getDigitTransformTable:
function(){return mw.language.getData(mw.config.get('wgUserLanguage'),'digitTransformTable')||[];},getSeparatorTransformTable:function(){return mw.language.getData(mw.config.get('wgUserLanguage'),'separatorTransformTable')||[];},commafy:function(value,pattern){var numberPattern,transformTable=mw.language.getSeparatorTransformTable(),group=transformTable[',']||',',numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/,decimal=transformTable['.']||'.',patternList=pattern.split(';'),positivePattern=patternList[0];pattern=patternList[(value<0)?1:0]||('-'+positivePattern);numberPattern=positivePattern.match(numberPatternRE);if(!numberPattern){throw new Error('unable to find a number expression in pattern: '+pattern);}return pattern.replace(numberPatternRE,commafyNumber(value,numberPattern[0],{decimal:decimal,group:group}));}});}(mediaWiki,jQuery));mediaWiki.language.convertGrammar=function(word,form){'use strict';var grammarForms=mediaWiki.language.getData('ru','grammarForms');if(grammarForms&&
grammarForms[form]){return grammarForms[form][word];}switch(form){case'genitive':if(word.substr(word.length-1)==='ь'){word=word.substr(0,word.length-1)+'я';}else if(word.substr(word.length-2)==='ия'){word=word.substr(0,word.length-2)+'ии';}else if(word.substr(word.length-2)==='ка'){word=word.substr(0,word.length-2)+'ки';}else if(word.substr(word.length-2)==='ти'){word=word.substr(0,word.length-2)+'тей';}else if(word.substr(word.length-2)==='ды'){word=word.substr(0,word.length-2)+'дов';}else if(word.substr(word.length-1)==='д'){word=word.substr(0,word.length-1)+'да';}else if(word.substr(word.length-3)==='ные'){word=word.substr(0,word.length-3)+'ных';}else if(word.substr(word.length-3)==='ник'){word=word.substr(0,word.length-3)+'ника';}break;case'prepositional':if(word.substr(word.length-1)==='ь'){word=word.substr(0,word.length-1)+'е';}else if(word.substr(word.length-2)==='ия'){word=word.substr(0,word.length-2)+'ии';}else if(word.substr(word.
length-2)==='ка'){word=word.substr(0,word.length-2)+'ке';}else if(word.substr(word.length-2)==='ти'){word=word.substr(0,word.length-2)+'тях';}else if(word.substr(word.length-2)==='ды'){word=word.substr(0,word.length-2)+'дах';}else if(word.substr(word.length-1)==='д'){word=word.substr(0,word.length-1)+'де';}else if(word.substr(word.length-3)==='ные'){word=word.substr(0,word.length-3)+'ных';}else if(word.substr(word.length-3)==='ник'){word=word.substr(0,word.length-3)+'нике';}break;}return word;};},{},{});mw.loader.implement("mediawiki.notify",function($,jQuery){(function(mw,$){'use strict';mw.notify=function(message,options){var d=$.Deferred();mw.loader.using('mediawiki.notification',function(){d.resolve(mw.notification.notify(message,options));},d.reject);return d.promise();};}(mediaWiki,jQuery));},{},{});mw.loader.implement("mediawiki.user",function($,jQuery){(function(mw,$){var user,deferreds={},options=mw.user.options||new mw.Map(),tokens=mw.user.tokens
||new mw.Map();function getUserInfo(info,callback){var api;if(!deferreds[info]){deferreds.rights=$.Deferred();deferreds.groups=$.Deferred();api=new mw.Api();api.get({action:'query',meta:'userinfo',uiprop:'rights|groups'}).always(function(data){var rights,groups;if(data.query&&data.query.userinfo){rights=data.query.userinfo.rights;groups=data.query.userinfo.groups;}deferreds.rights.resolve(rights||[]);deferreds.groups.resolve(groups||[]);});}return deferreds[info].done(callback).promise();}mw.user=user={options:options,tokens:tokens,generateRandomSessionId:function(){var i,r,id='',seed='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';for(i=0;i<32;i++){r=Math.floor(Math.random()*seed.length);id+=seed.substring(r,r+1);}return id;},getId:function(){return mw.config.get('wgUserId',0);},getName:function(){return mw.config.get('wgUserName');},getRegistration:function(){var registration=mw.config.get('wgUserRegistration');if(user.isAnon()){return false;}else if(registration===
null){return null;}else{return new Date(registration);}},isAnon:function(){return user.getName()===null;},sessionId:function(){var sessionId=$.cookie('mediaWiki.user.sessionId');if(sessionId===undefined||sessionId===null){sessionId=user.generateRandomSessionId();$.cookie('mediaWiki.user.sessionId',sessionId,{expires:null,path:'/'});}return sessionId;},id:function(){return user.getName()||user.sessionId();},bucket:function(key,options){var cookie,parts,version,bucket,range,k,rand,total;options=$.extend({buckets:{},version:0,expires:30},options||{});cookie=$.cookie('mediaWiki.user.bucket:'+key);if(typeof cookie==='string'&&cookie.length>2&&cookie.indexOf(':')!==-1){parts=cookie.split(':');if(parts.length>1&&Number(parts[0])===options.version){version=Number(parts[0]);bucket=String(parts[1]);}}if(bucket===undefined){if(!$.isPlainObject(options.buckets)){throw new Error('Invalid bucket. Object expected for options.buckets.');}version=Number(options.version);range=0;for(k in options.buckets
){range+=options.buckets[k];}rand=Math.random()*range;total=0;for(k in options.buckets){bucket=k;total+=options.buckets[k];if(total>=rand){break;}}$.cookie('mediaWiki.user.bucket:'+key,version+':'+bucket,{path:'/',expires:Number(options.expires)});}return bucket;},getGroups:function(callback){return getUserInfo('groups',callback);},getRights:function(callback){return getUserInfo('rights',callback);}};mw.log.deprecate(user,'name',user.getName,'Use mw.user.getName instead.');mw.log.deprecate(user,'anonymous',user.isAnon,'Use mw.user.isAnon instead.');}(mediaWiki,jQuery));},{},{});mw.loader.implement("mediawiki.util",function($,jQuery){(function(mw,$){'use strict';var util={init:function(){util.$content=(function(){var i,l,$node,selectors;selectors=['.mw-body-primary','.mw-body','#mw-content-text','body'];for(i=0,l=selectors.length;i<l;i++){$node=$(selectors[i]);if($node.length){return $node.first();}}return util.$content;}());},rawurlencode:function(str){str=String(str);return encodeURIComponent
(str).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29').replace(/\*/g,'%2A').replace(/~/g,'%7E');},wikiUrlencode:function(str){return util.rawurlencode(str).replace(/%20/g,'_').replace(/%3B/g,';').replace(/%40/g,'@').replace(/%24/g,'$').replace(/%21/g,'!').replace(/%2A/g,'*').replace(/%28/g,'(').replace(/%29/g,')').replace(/%2C/g,',').replace(/%2F/g,'/').replace(/%3A/g,':');},getUrl:function(str,params){var url=mw.config.get('wgArticlePath').replace('$1',util.wikiUrlencode(typeof str==='string'?str:mw.config.get('wgPageName')));if(params&&!$.isEmptyObject(params)){url+=(url.indexOf('?')!==-1?'&':'?')+$.param(params);}return url;},wikiScript:function(str){str=str||'index';if(str==='index'){return mw.config.get('wgScript');}else if(str==='load'){return mw.config.get('wgLoadScript');}else{return mw.config.get('wgScriptPath')+'/'+str+mw.config.get('wgScriptExtension');}},addCSS:function(text){var s=mw.loader.addStyleTag(text);return s.sheet||s.styleSheet||s;
},getParamValue:function(param,url){if(url===undefined){url=document.location.href;}var re=new RegExp('^[^#]*[&?]'+$.escapeRE(param)+'=([^&#]*)'),m=re.exec(url);if(m){return decodeURIComponent(m[1].replace(/\+/g,'%20'));}return null;},updateTooltipAccessKeys:function($nodes){if(!$nodes){if(document.querySelectorAll){$nodes=$(document.querySelectorAll('[accesskey]'));}else{$nodes=$('#column-one a, #mw-head a, #mw-panel a, #p-logo a, input, label, button');}}else if(!($nodes instanceof $)){$nodes=$($nodes);}$nodes.updateTooltipAccessKeys();},$content:null,addPortletLink:function(portlet,href,text,id,tooltip,accesskey,nextnode){var $item,$link,$portlet,$ul;if(arguments.length<3){return null;}$link=$('<a>').attr('href',href).text(text);if(tooltip){$link.attr('title',tooltip);}$portlet=$('#'+portlet);if($portlet.length===0){return null;}$ul=$portlet.find('ul').eq(0);if($ul.length===0){$ul=$('<ul>');if($portlet.find('div:first').length===0){$portlet.append($ul);}else{$portlet.find('div').eq(
-1).append($ul);}}if($ul.length===0){return null;}$portlet.removeClass('emptyPortlet');if($portlet.hasClass('vectorTabs')){$item=$link.wrap('<li><span></span></li>').parent().parent();}else{$item=$link.wrap('<li></li>').parent();}if(id){$item.attr('id',id);}if(accesskey){$link.attr('accesskey',accesskey);}if(tooltip){$link.attr('title',tooltip).updateTooltipAccessKeys();}if(nextnode){if(nextnode.nodeType||typeof nextnode==='string'){nextnode=$ul.find(nextnode);}else if(!nextnode.jquery||(nextnode.length&&nextnode[0].parentNode!==$ul[0])){$ul.append($item);return $item[0];}if(nextnode.length===1){nextnode.before($item);return $item[0];}}$ul.append($item);return $item[0];},validateEmail:function(mailtxt){var rfc5322Atext,rfc1034LdhStr,html5EmailRegexp;if(mailtxt===''){return null;}rfc5322Atext='a-z0-9!#$%&\'*+\\-/=?^_`{|}~';rfc1034LdhStr='a-z0-9\\-';html5EmailRegexp=new RegExp('^'+'['+rfc5322Atext+'\\.]+'+'@'+'['+rfc1034LdhStr+']+'+'(?:\\.['+rfc1034LdhStr+']+)*'+'$','i');return(mailtxt.
match(html5EmailRegexp)!==null);},isIPv4Address:function(address,allowBlock){if(typeof address!=='string'){return false;}var block=allowBlock?'(?:\\/(?:3[0-2]|[12]?\\d))?':'',RE_IP_BYTE='(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|0?[0-9]?[0-9])',RE_IP_ADD='(?:'+RE_IP_BYTE+'\\.){3}'+RE_IP_BYTE;return address.search(new RegExp('^'+RE_IP_ADD+block+'$'))!==-1;},isIPv6Address:function(address,allowBlock){if(typeof address!=='string'){return false;}var block=allowBlock?'(?:\\/(?:12[0-8]|1[01][0-9]|[1-9]?\\d))?':'',RE_IPV6_ADD='(?:'+':(?::|(?::'+'[0-9A-Fa-f]{1,4}'+'){1,7})'+'|'+'[0-9A-Fa-f]{1,4}'+'(?::'+'[0-9A-Fa-f]{1,4}'+'){0,6}::'+'|'+'[0-9A-Fa-f]{1,4}'+'(?::'+'[0-9A-Fa-f]{1,4}'+'){7}'+')';if(address.search(new RegExp('^'+RE_IPV6_ADD+block+'$'))!==-1){return true;}RE_IPV6_ADD='[0-9A-Fa-f]{1,4}'+'(?:::?'+'[0-9A-Fa-f]{1,4}'+'){1,6}';return address.search(new RegExp('^'+RE_IPV6_ADD+block+'$'))!==-1&&address.search(/::/)!==-1&&address.search(/::.*::/)===-1;}};mw.log.deprecate(util,'wikiGetlink',util.
getUrl,'Use mw.util.getUrl instead.');mw.log.deprecate(util,'tooltipAccessKeyPrefix',$.fn.updateTooltipAccessKeys.getAccessKeyPrefix(),'Use jquery.accessKeyLabel instead.');mw.log.deprecate(util,'tooltipAccessKeyRegexp',/\[(ctrl-)?(option-)?(alt-)?(shift-)?(esc-)?(.)\]$/,'Use jquery.accessKeyLabel instead.');mw.log.deprecate(util,'jsMessage',function(message){if(!arguments.length||message===''||message===null){return true;}if(typeof message!=='object'){message=$.parseHTML(message);}mw.notify(message,{autoHide:true,tag:'legacy'});return true;},'Use mw.notify instead.');mw.util=util;}(mediaWiki,jQuery));},{},{});mw.loader.implement("mediawiki.language.data",function($,jQuery){mw.language.setData("ru",{"digitTransformTable":null,"separatorTransformTable":{",":" ",".":","},"grammarForms":[],"pluralRules":["v = 0 and i % 10 = 1 and i % 100 != 11 @integer 1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, …",
"v = 0 and i % 10 = 0 or v = 0 and i % 10 = 5..9 or v = 0 and i % 100 = 11..14 @integer 0, 5~19, 100, 1000, 10000, 100000, 1000000, …"],"digitGroupingPattern":null});},{},{});mw.loader.implement("mediawiki.language.init",function($,jQuery){(function(mw){mw.language={data:{},getData:function(langCode,dataKey){var langData=mw.language.data;if(langData&&langData[langCode]instanceof mw.Map){return langData[langCode].get(dataKey);}return undefined;},setData:function(langCode,dataKey,value){var langData=mw.language.data;if(!(langData[langCode]instanceof mw.Map)){langData[langCode]=new mw.Map();}langData[langCode].set(dataKey,value);}};}(mediaWiki));},{},{});mw.loader.implement("mediawiki.legacy.ajax",function($,jQuery){(function(mw){function debug(text){if(!window.sajax_debug_mode){return false;}var b,m,e=document.getElementById('sajax_debug');if(!e){e=document.createElement('p');e.className='sajax_debug';e.id='sajax_debug';b=document.getElementsByTagName('body')[0];if(b.firstChild){b.
insertBefore(e,b.firstChild);}else{b.appendChild(e);}}m=document.createElement('div');m.appendChild(document.createTextNode(text));e.appendChild(m);return true;}function createXhr(){debug('sajax_init_object() called..');var a;try{a=new XMLHttpRequest();}catch(xhrE){try{a=new window.ActiveXObject('Msxml2.XMLHTTP');}catch(msXmlE){try{a=new window.ActiveXObject('Microsoft.XMLHTTP');}catch(msXhrE){a=null;}}}if(!a){debug('Could not create connection object.');}return a;}function doAjaxRequest(func_name,args,target){var i,x,uri,post_data;uri=mw.util.wikiScript()+'?action=ajax';if(window.sajax_request_type==='GET'){if(uri.indexOf('?')===-1){uri=uri+'?rs='+encodeURIComponent(func_name);}else{uri=uri+'&rs='+encodeURIComponent(func_name);}for(i=0;i<args.length;i++){uri=uri+'&rsargs[]='+encodeURIComponent(args[i]);}post_data=null;}else{post_data='rs='+encodeURIComponent(func_name);for(i=0;i<args.length;i++){post_data=post_data+'&rsargs[]='+encodeURIComponent(args[i]);}}x=createXhr();if(!x){alert(
'AJAX not supported');return false;}try{x.open(window.sajax_request_type,uri,true);}catch(e){if(location.hostname==='localhost'){alert('Your browser blocks XMLHttpRequest to "localhost", try using a real hostname for development/testing.');}throw e;}if(window.sajax_request_type==='POST'){x.setRequestHeader('Method','POST '+uri+' HTTP/1.1');x.setRequestHeader('Content-Type','application/x-www-form-urlencoded');}x.setRequestHeader('Pragma','cache=yes');x.setRequestHeader('Cache-Control','no-transform');x.onreadystatechange=function(){if(x.readyState!==4){return;}debug('received ('+x.status+' '+x.statusText+') '+x.responseText);if(typeof target==='function'){target(x);}else if(typeof target==='object'){if(target.tagName==='INPUT'){if(x.status===200){target.value=x.responseText;}}else{if(x.status===200){target.innerHTML=x.responseText;}else{target.innerHTML='<div class="error">Error: '+x.status+' '+x.statusText+' ('+x.responseText+')</div>';}}}else{alert(
'Bad target for sajax_do_call: not a function or object: '+target);}};debug(func_name+' uri = '+uri+' / post = '+post_data);x.send(post_data);debug(func_name+' waiting..');return true;}function wfSupportsAjax(){var request=createXhr(),supportsAjax=request?true:false;request=undefined;return supportsAjax;}var deprecationNotice='Sajax is deprecated, use jQuery.ajax or mediawiki.api instead.';mw.log.deprecate(window,'sajax_debug_mode',false,deprecationNotice);mw.log.deprecate(window,'sajax_request_type','GET',deprecationNotice);mw.log.deprecate(window,'sajax_debug',debug,deprecationNotice);mw.log.deprecate(window,'sajax_init_object',createXhr,deprecationNotice);mw.log.deprecate(window,'sajax_do_call',doAjaxRequest,deprecationNotice);mw.log.deprecate(window,'wfSupportsAjax',wfSupportsAjax,deprecationNotice);}(mediaWiki));},{},{});mw.loader.implement("mediawiki.legacy.wikibits",function($,jQuery){(function(mw,$){var msg,win=window,ua=navigator.userAgent.toLowerCase(),isIE6=(
/msie ([0-9]{1,}[\.0-9]{0,})/.exec(ua)&&parseFloat(RegExp.$1)<=6.0),onloadFuncts=[];if(mw.config.get('wgBreakFrames')){if(win.top!==win.self){win.top.location=win.location;}}msg='Use feature detection or module jquery.client instead.';mw.log.deprecate(win,'clientPC',ua,msg);mw.log.deprecate(win,'is_gecko',false,msg);mw.log.deprecate(win,'is_chrome_mac',false,msg);mw.log.deprecate(win,'is_chrome',false,msg);mw.log.deprecate(win,'webkit_version',false,msg);mw.log.deprecate(win,'is_safari_win',false,msg);mw.log.deprecate(win,'is_safari',false,msg);mw.log.deprecate(win,'webkit_match',false,msg);mw.log.deprecate(win,'is_ff2',false,msg);mw.log.deprecate(win,'ff2_bugs',false,msg);mw.log.deprecate(win,'is_ff2_win',false,msg);mw.log.deprecate(win,'is_ff2_x11',false,msg);mw.log.deprecate(win,'opera95_bugs',false,msg);mw.log.deprecate(win,'opera7_bugs',false,msg);mw.log.deprecate(win,'opera6_bugs',false,msg);mw.log.deprecate(win,'is_opera_95',false,msg);mw.log.deprecate(win,'is_opera_preseven',
false,msg);mw.log.deprecate(win,'is_opera',false,msg);mw.log.deprecate(win,'ie6_bugs',false,msg);msg='Use jQuery instead.';mw.log.deprecate(win,'doneOnloadHook',undefined,msg);mw.log.deprecate(win,'onloadFuncts',[],msg);mw.log.deprecate(win,'runOnloadHook',$.noop,msg);mw.log.deprecate(win,'changeText',$.noop,msg);mw.log.deprecate(win,'killEvt',$.noop,msg);mw.log.deprecate(win,'addHandler',$.noop,msg);mw.log.deprecate(win,'hookEvent',$.noop,msg);mw.log.deprecate(win,'addClickHandler',$.noop,msg);mw.log.deprecate(win,'removeHandler',$.noop,msg);mw.log.deprecate(win,'getElementsByClassName',function(){return[];},msg);mw.log.deprecate(win,'getInnerText',function(){return'';},msg);mw.log.deprecate(win,'addOnloadHook',function(hookFunct){if(onloadFuncts){onloadFuncts.push(hookFunct);}else{hookFunct();}},msg);$(win).on('load',function(){var i,functs;if(!onloadFuncts){return;}functs=onloadFuncts.slice();onloadFuncts=undefined;for(i=0;i<functs.length;i++){functs[i]();}});msg=
'Use jquery.checkboxShiftClick instead.';mw.log.deprecate(win,'checkboxes',[],msg);mw.log.deprecate(win,'lastCheckbox',null,msg);mw.log.deprecate(win,'setupCheckboxShiftClick',$.noop,msg);mw.log.deprecate(win,'addCheckboxClickHandlers',$.noop,msg);mw.log.deprecate(win,'checkboxClickHandler',$.noop,msg);mw.log.deprecate(win,'mwEditButtons',[],'Use mw.toolbar instead.');mw.log.deprecate(win,'mwCustomEditButtons',[],'Use mw.toolbar instead.');mw.log.deprecate(win,'injectSpinner',$.noop,'Use jquery.spinner instead.');mw.log.deprecate(win,'removeSpinner',$.noop,'Use jquery.spinner instead.');mw.log.deprecate(win,'escapeQuotes',$.noop,'Use mw.html instead.');mw.log.deprecate(win,'escapeQuotesHTML',$.noop,'Use mw.html instead.');mw.log.deprecate(win,'jsMsg',function(message){if(!arguments.length||message===''||message===null){return true;}if(typeof message!=='object'){message=$.parseHTML(message);}mw.notify(message,{autoHide:true,tag:'legacy'});return true;},'Use mediawiki.notify instead.');
msg='Use mediawiki.util instead.';mw.log.deprecate(win,'updateTooltipAccessKeys',mw.util.updateTooltipAccessKeys,msg);mw.log.deprecate(win,'addPortletLink',mw.util.addPortletLink,msg);mw.log.deprecate(win,'appendCSS',mw.util.addCSS,msg);msg='Use jquery.accessKeyLabel instead.';mw.log.deprecate(win,'tooltipAccessKeyPrefix','alt-',msg);mw.log.deprecate(win,'tooltipAccessKeyRegexp',/\[(alt-)?(.)\]$/,msg);win.loadedScripts={};win.importScript=function(page){var uri=mw.config.get('wgScript')+'?title='+mw.util.wikiUrlencode(page)+'&action=raw&ctype=text/javascript';return win.importScriptURI(uri);};win.importScriptURI=function(url){if(win.loadedScripts[url]){return null;}win.loadedScripts[url]=true;var s=document.createElement('script');s.setAttribute('src',url);s.setAttribute('type','text/javascript');document.getElementsByTagName('head')[0].appendChild(s);return s;};win.importStylesheet=function(page){var uri=mw.config.get('wgScript')+'?title='+mw.util.wikiUrlencode(page)+
'&action=raw&ctype=text/css';return win.importStylesheetURI(uri);};win.importStylesheetURI=function(url,media){var l=document.createElement('link');l.rel='stylesheet';l.href=url;if(media){l.media=media;}document.getElementsByTagName('head')[0].appendChild(l);return l;};if(isIE6){win.importScriptURI(mw.config.get('stylepath')+'/common/IEFixes.js');}}(mediaWiki,jQuery));},{},{});mw.loader.implement("mediawiki.libs.pluralruleparser",function($,jQuery){(function(mw){function pluralRuleParser(rule,number){rule=rule.split('@')[0].replace(/^\s*/,'').replace(/\s*$/,'');if(!rule.length){return true;}var pos=0,operand,expression,relation,result,whitespace=makeRegexParser(/^\s+/),value=makeRegexParser(/^\d+/),_n_=makeStringParser('n'),_i_=makeStringParser('i'),_f_=makeStringParser('f'),_t_=makeStringParser('t'),_v_=makeStringParser('v'),_w_=makeStringParser('w'),_is_=makeStringParser('is'),_isnot_=makeStringParser('is not'),_isnot_sign_=makeStringParser('!='),_equal_=makeStringParser('='),_mod_=
makeStringParser('mod'),_percent_=makeStringParser('%'),_not_=makeStringParser('not'),_in_=makeStringParser('in'),_within_=makeStringParser('within'),_range_=makeStringParser('..'),_comma_=makeStringParser(','),_or_=makeStringParser('or'),_and_=makeStringParser('and');function debug(){}debug('pluralRuleParser',rule,number);function choice(parserSyntax){return function(){for(var i=0;i<parserSyntax.length;i++){var result=parserSyntax[i]();if(result!==null){return result;}}return null;};}function sequence(parserSyntax){var originalPos=pos;var result=[];for(var i=0;i<parserSyntax.length;i++){var res=parserSyntax[i]();if(res===null){pos=originalPos;return null;}result.push(res);}return result;}function nOrMore(n,p){return function(){var originalPos=pos;var result=[];var parsed=p();while(parsed!==null){result.push(parsed);parsed=p();}if(result.length<n){pos=originalPos;return null;}return result;};}function makeStringParser(s){var len=s.length;return function(){var result=null;if(rule.substr
(pos,len)===s){result=s;pos+=len;}return result;};}function makeRegexParser(regex){return function(){var matches=rule.substr(pos).match(regex);if(matches===null){return null;}pos+=matches[0].length;return matches[0];};}function i(){var result=_i_();if(result===null){debug(' -- failed i',parseInt(number,10));return result;}result=parseInt(number,10);debug(' -- passed i ',result);return result;}function n(){var result=_n_();if(result===null){debug(' -- failed n ',number);return result;}result=parseFloat(number,10);debug(' -- passed n ',result);return result;}function f(){var result=_f_();if(result===null){debug(' -- failed f ',number);return result;}result=(number+'.').split('.')[1]||0;debug(' -- passed f ',result);return result;}function t(){var result=_t_();if(result===null){debug(' -- failed t ',number);return result;}result=(number+'.').split('.')[1].replace(/0$/,'')||0;debug(' -- passed t ',result);return result;}function v(){var result=_v_();if(result===null){debug(' -- failed v ',
number);return result;}result=(number+'.').split('.')[1].length||0;debug(' -- passed v ',result);return result;}function w(){var result=_w_();if(result===null){debug(' -- failed w ',number);return result;}result=(number+'.').split('.')[1].replace(/0$/,'').length||0;debug(' -- passed w ',result);return result;}operand=choice([n,i,f,t,v,w]);expression=choice([mod,operand]);function mod(){var result=sequence([operand,whitespace,choice([_mod_,_percent_]),whitespace,value]);if(result===null){debug(' -- failed mod');return null;}debug(' -- passed '+parseInt(result[0],10)+' '+result[2]+' '+parseInt(result[4],10));return parseInt(result[0],10)%parseInt(result[4],10);}function not(){var result=sequence([whitespace,_not_]);if(result===null){debug(' -- failed not');return null;}return result[1];}function is(){var result=sequence([expression,whitespace,choice([_is_]),whitespace,value]);if(result!==null){debug(' -- passed is : '+result[0]+' == '+parseInt(result[4],10));return result[0]===parseInt(
result[4],10);}debug(' -- failed is');return null;}function isnot(){var result=sequence([expression,whitespace,choice([_isnot_,_isnot_sign_]),whitespace,value]);if(result!==null){debug(' -- passed isnot: '+result[0]+' != '+parseInt(result[4],10));return result[0]!==parseInt(result[4],10);}debug(' -- failed isnot');return null;}function not_in(){var result=sequence([expression,whitespace,_isnot_sign_,whitespace,rangeList]);if(result!==null){debug(' -- passed not_in: '+result[0]+' != '+result[4]);var range_list=result[4];for(var i=0;i<range_list.length;i++){if(parseInt(range_list[i],10)===parseInt(result[0],10)){return false;}}return true;}debug(' -- failed not_in');return null;}function rangeList(){var result=sequence([choice([range,value]),nOrMore(0,rangeTail)]);var resultList=[];if(result!==null){resultList=resultList.concat(result[0]);if(result[1][0]){resultList=resultList.concat(result[1][0]);}return resultList;}debug(' -- failed rangeList');return null;}function rangeTail(){var
result=sequence([_comma_,rangeList]);if(result!==null){return result[1];}debug(' -- failed rangeTail');return null;}function range(){var i;var result=sequence([value,_range_,value]);if(result!==null){debug(' -- passed range');var array=[];var left=parseInt(result[0],10);var right=parseInt(result[2],10);for(i=left;i<=right;i++){array.push(i);}return array;}debug(' -- failed range');return null;}function _in(){var result=sequence([expression,nOrMore(0,not),whitespace,choice([_in_,_equal_]),whitespace,rangeList]);if(result!==null){debug(' -- passed _in:'+result);var range_list=result[5];for(var i=0;i<range_list.length;i++){if(parseInt(range_list[i],10)===parseInt(result[0],10)){return(result[1][0]!=='not');}}return(result[1][0]==='not');}debug(' -- failed _in ');return null;}function within(){var result=sequence([expression,nOrMore(0,not),whitespace,_within_,whitespace,rangeList]);if(result!==null){debug(' -- passed within');var range_list=result[5];if((result[0]>=parseInt(range_list[0],
10))&&(result[0]<parseInt(range_list[range_list.length-1],10))){return(result[1][0]!=='not');}return(result[1][0]==='not');}debug(' -- failed within ');return null;}relation=choice([is,not_in,isnot,_in,within]);function and(){var result=sequence([relation,nOrMore(0,andTail)]);if(result){if(!result[0]){return false;}for(var i=0;i<result[1].length;i++){if(!result[1][i]){return false;}}return true;}debug(' -- failed and');return null;}function andTail(){var result=sequence([whitespace,_and_,whitespace,relation]);if(result!==null){debug(' -- passed andTail'+result);return result[3];}debug(' -- failed andTail');return null;}function orTail(){var result=sequence([whitespace,_or_,whitespace,and]);if(result!==null){debug(' -- passed orTail: '+result[3]);return result[3];}debug(' -- failed orTail');return null;}function condition(){var result=sequence([and,nOrMore(0,orTail)]);if(result){for(var i=0;i<result[1].length;i++){if(result[1][i]){return true;}}return result[0];}return false;}result=
condition();if(result===null){throw new Error('Parse error at position '+pos.toString()+' for rule: '+rule);}if(pos!==rule.length){debug('Warning: Rule not parsed completely. Parser stopped at '+rule.substr(0,pos)+' for rule: '+rule);}return result;}mw.libs.pluralRuleParser=pluralRuleParser;})(mediaWiki);},{},{});mw.loader.implement("mediawiki.page.startup",function($,jQuery){(function(mw,$){mw.page={};$('html').addClass('client-js').removeClass('client-nojs');$(function(){mw.util.init();mw.hook('wikipage.content').fire($('#mw-content-text'));});}(mediaWiki,jQuery));},{},{});mw.loader.implement("mmv.base",function($,jQuery){(function(mw,$){mw.mmv={isBrowserSupported:function(){var profile=$.client.profile();return!(profile.name==='msie'&&profile.versionNumber<9);}};}(mediaWiki,jQuery));},{},{});mw.loader.implement("mmv.head",function($,jQuery){(function(mw,$){var $document=$(document),start;if(!mw.mmv.isBrowserSupported()){return;}if(mw.config.get('wgMediaViewerOnClick')!==true||mw.
user.isAnon()&&window.localStorage&&localStorage.getItem('wgMediaViewerOnClick')===false){return;}$document.on('click.mmv-head','a.image',function(e){if((e.button!==0&&e.which!==1)||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey||e.replayed){return;}start=$.now();$document.ready(function(){mw.loader.using(['mmv.bootstrap.autostart','mmv.DurationLogger'],function(){mw.mmv.bootstrap.whenThumbsReady().then(function(){mw.mmv.durationLogger.stop('early-click-to-replay-click',start);$(e.target).trigger({type:'click',which:1,replayed:true});});});});e.preventDefault();});}(mediaWiki,jQuery));},{},{});mw.loader.implement("skins.vector.js",function($,jQuery){(function($){var rtl=$('html').attr('dir')==='rtl';$.fn.collapsibleTabs=function(options){if(!this.length){return this;}var settings=$.extend({},$.collapsibleTabs.defaults,options);this.each(function(){var $el=$(this);$.collapsibleTabs.instances=($.collapsibleTabs.instances.length===0?$el:$.collapsibleTabs.instances.add($el));$el.data(
'collapsibleTabsSettings',settings);$el.children(settings.collapsible).each(function(){$.collapsibleTabs.addData($(this));});});if(!$.collapsibleTabs.boundEvent){$(window).on('resize',$.debounce(500,function(){$.collapsibleTabs.handleResize();}));$.collapsibleTabs.boundEvent=true;}$.collapsibleTabs.handleResize();return this;};$.collapsibleTabs={instances:[],boundEvent:null,defaults:{expandedContainer:'#p-views ul',collapsedContainer:'#p-cactions ul',collapsible:'li.collapsible',shifting:false,expandCondition:function(eleWidth){return $.collapsibleTabs.calculateTabDistance()>=eleWidth+1;},collapseCondition:function(){return $.collapsibleTabs.calculateTabDistance()<0;}},addData:function($collapsible){var settings=$collapsible.parent().data('collapsibleTabsSettings');if(settings){$collapsible.data('collapsibleTabsSettings',{expandedContainer:settings.expandedContainer,collapsedContainer:settings.collapsedContainer,expandedWidth:$collapsible.width(),prevElement:$collapsible.prev()});}},
getSettings:function($collapsible){var settings=$collapsible.data('collapsibleTabsSettings');if(!settings){$.collapsibleTabs.addData($collapsible);settings=$collapsible.data('collapsibleTabsSettings');}return settings;},handleResize:function(){$.collapsibleTabs.instances.each(function(){var $el=$(this),data=$.collapsibleTabs.getSettings($el);if(data.shifting){return;}if($el.children(data.collapsible).length>0&&data.collapseCondition()){$el.trigger('beforeTabCollapse');$.collapsibleTabs.moveToCollapsed($el.children(data.collapsible+':last'));}if($(data.collapsedContainer+' '+data.collapsible).length>0&&data.expandCondition($.collapsibleTabs.getSettings($(data.collapsedContainer).children(data.collapsible+':first')).expandedWidth)){$el.trigger('beforeTabExpand');$.collapsibleTabs.moveToExpanded(data.collapsedContainer+' '+data.collapsible+':first');}});},moveToCollapsed:function(ele){var outerData,expContainerSettings,target,$moving=$(ele);outerData=$.collapsibleTabs.getSettings($moving)
;if(!outerData){return;}expContainerSettings=$.collapsibleTabs.getSettings($(outerData.expandedContainer));if(!expContainerSettings){return;}expContainerSettings.shifting=true;target=outerData.collapsedContainer;$moving.css('position','relative').css((rtl?'left':'right'),0).animate({width:'1px'},'normal',function(){var data,expContainerSettings;$(this).hide();$('<span class="placeholder" style="display: none;"></span>').insertAfter(this);$(this).detach().prependTo(target).data('collapsibleTabsSettings',outerData);$(this).attr('style','display: list-item;');data=$.collapsibleTabs.getSettings($(ele));if(data){expContainerSettings=$.collapsibleTabs.getSettings($(data.expandedContainer));if(expContainerSettings){expContainerSettings.shifting=false;$.collapsibleTabs.handleResize();}}});},moveToExpanded:function(ele){var data,expContainerSettings,$target,expandedWidth,$moving=$(ele);data=$.collapsibleTabs.getSettings($moving);if(!data){return;}expContainerSettings=$.collapsibleTabs.
getSettings($(data.expandedContainer));if(!expContainerSettings){return;}expContainerSettings.shifting=true;$target=$(data.expandedContainer).find('span.placeholder:first');expandedWidth=data.expandedWidth;$moving.css('position','relative').css((rtl?'right':'left'),0).css('width','1px');$target.replaceWith($moving.detach().css('width','1px').data('collapsibleTabsSettings',data).animate({width:expandedWidth+'px'},'normal',function(){$(this).attr('style','display: block;');var data,expContainerSettings;data=$.collapsibleTabs.getSettings($(this));if(data){expContainerSettings=$.collapsibleTabs.getSettings($(data.expandedContainer));if(expContainerSettings){expContainerSettings.shifting=false;$.collapsibleTabs.handleResize();}}}));},calculateTabDistance:function(){var $leftTab,$rightTab,leftEnd,rightStart;if(!rtl){$leftTab=$('#left-navigation');$rightTab=$('#right-navigation');}else{$leftTab=$('#right-navigation');$rightTab=$('#left-navigation');}leftEnd=$leftTab.offset().left+$leftTab.
width();rightStart=$rightTab.offset().left;return rightStart-leftEnd;}};}(jQuery));jQuery(function($){$('#searchInput').attr('tabindex',$(document).lastTabIndex()+1);$('div.vectorMenu').each(function(){var $el=$(this);$el.find('> h3 > a').parent().attr('tabindex','0').on('click keypress',function(e){if(e.type==='click'||e.which===13){$el.toggleClass('menuForceShow');e.preventDefault();}}).focus(function(){$el.find('> a').addClass('vectorMenuFocus');}).blur(function(){$el.find('> a').removeClass('vectorMenuFocus');}).find('> a:first').attr('tabindex','-1');});$('#mw-panel > .portal:first').addClass('first');var $cactions=$('#p-cactions'),$tabContainer=$('#p-views ul'),originalDropdownWidth=$cactions.width();$tabContainer.bind('beforeTabCollapse',function(){if($cactions.hasClass('emptyPortlet')){$cactions.removeClass('emptyPortlet').find('h3').css('width','1px').animate({'width':originalDropdownWidth},'normal');}}).bind('beforeTabExpand',function(){if($cactions.find('li').length===1){
$cactions.find('h3').animate({'width':'1px'},'normal',function(){$(this).attr('style','').parent().addClass('emptyPortlet');});}}).collapsibleTabs({expandCondition:function(eleWidth){var distance=$.collapsibleTabs.calculateTabDistance();if(distance>=eleWidth+1){return true;}else{if($cactions.find('li').length===1){return distance>=eleWidth+1-originalDropdownWidth;}else{return false;}}},collapseCondition:function(){if($.collapsibleTabs.calculateTabDistance()<0){if($cactions.hasClass('emptyPortlet')){return $tabContainer.children('li.collapsible:last').width()>originalDropdownWidth;}else{return true;}}else{return false;}}});});},{},{});
/* cache key: ruwiki:resourceloader:filter:minify-js:7:33e3d8375a4be9c470c978dcee434f80 */