From 56872cc270f6b30b85961d939d72150a867a6c72 Mon Sep 17 00:00:00 2001 From: MusikAnimal Date: Thu, 9 Aug 2018 14:34:31 -0400 Subject: [PATCH] Fix database name for sat.wikipedia use Main Page if 'Cat' and 'Dog' don't exist --- javascripts/pageviews/pageviews.js | 23 +++++++++++++++-------- javascripts/shared/site_map.js | 2 +- public_html/langviews/application.js | 2 +- public_html/massviews/application.js | 2 +- public_html/mediaviews/application.js | 2 +- public_html/metaviews/application.css | 5 +++++ public_html/metaviews/application.js | 2 +- public_html/pageviews/application.js | 18 +++++++++--------- public_html/redirectviews/application.js | 2 +- public_html/siteviews/application.js | 2 +- public_html/topviews/application.js | 2 +- public_html/userviews/application.js | 2 +- site_map.json | 2 +- 13 files changed, 39 insertions(+), 27 deletions(-) diff --git a/javascripts/pageviews/pageviews.js b/javascripts/pageviews/pageviews.js index 6926005e1..eb12fbc78 100644 --- a/javascripts/pageviews/pageviews.js +++ b/javascripts/pageviews/pageviews.js @@ -142,9 +142,7 @@ class PageViews extends mix(Pv).with(ChartHelpers) { this.setInitialChartType(pages.length); getPageInfoAndSetDefaults(pages); }).fail(() => { - // manually hide spinny since we aren't drawing the chart, - // again using setTimeout to let everything catch up - setTimeout(this.stopSpinny.bind(this)); + this.resetView(); this.setInitialChartType(); // leave Select2 empty and put focus on it so they can type in pages this.focusSelect2(); @@ -167,6 +165,12 @@ class PageViews extends mix(Pv).with(ChartHelpers) { getDefaultPages() { const dfd = $.Deferred(); + const getMainPage = () => { + this.fetchSiteInfo(this.project).done(siteInfo => { + dfd.resolve([siteInfo[this.project].general.mainpage]); + }).fail(dfd.reject); + }; + // only set default of Cat and Dog for enwiki if (this.project === 'en.wikipedia') { dfd.resolve(['Cat', 'Dog']); @@ -182,16 +186,19 @@ class PageViews extends mix(Pv).with(ChartHelpers) { const dbName = Object.keys(siteMap).find(key => siteMap[key] === `${this.project}.org`); const pages = Object.keys(data.entities).map(key => { - return data.entities[key].sitelinks[dbName].title; - }); + return data.entities[key].sitelinks[dbName] ? data.entities[key].sitelinks[dbName].title : null; + }).filter(Boolean); + + // 'Cat' and 'Dog' do not exist, so use the Main Page. + if (!pages.length) { + return getMainPage(); + } dfd.resolve(pages); }); } else { // get mainpage from siteinfo - this.fetchSiteInfo(this.project).done(siteInfo => { - dfd.resolve([siteInfo[this.project].general.mainpage]); - }).fail(dfd.reject); + getMainPage(); } return dfd; diff --git a/javascripts/shared/site_map.js b/javascripts/shared/site_map.js index fa24b571e..97655267c 100644 --- a/javascripts/shared/site_map.js +++ b/javascripts/shared/site_map.js @@ -656,7 +656,7 @@ const siteMap = { 'rwwiktionary': 'rw.wiktionary.org', 'sahwiki': 'sah.wikipedia.org', 'sahwikisource': 'sah.wikisource.org', - 'satwikipedia': 'sat.wikipedia.org', + 'satwiki': 'sat.wikipedia.org', 'sawiki': 'sa.wikipedia.org', 'sawikibooks': 'sa.wikibooks.org', 'sawikiquote': 'sa.wikiquote.org', diff --git a/public_html/langviews/application.js b/public_html/langviews/application.js index 094b0fb82..d12476f61 100644 --- a/public_html/langviews/application.js +++ b/public_html/langviews/application.js @@ -12,5 +12,5 @@ o.numberOfLabelLines=function(t){var e=1;return o.each(t,function(t){o.isArray(t d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var o=e.title;if(o.length){i.textAlign=e._titleAlign,i.textBaseline="top";var r=e.titleFontSize,s=e.titleSpacing,l=a.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=a.fontString(r,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=o.length;u>c;++c)i.fillText(o[c],t.x,t.y),t.y+=r+s,c+1===o.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var o=e.bodyFontSize,r=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=a.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=a.fontString(o,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=o+r};a.each(e.beforeBody,d);var h=s.length>1;u=h?o+2:0,a.each(s,function(r,s){a.each(r.before,d),a.each(r.lines,function(r){h&&(i.fillStyle=a.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,o,o),i.strokeStyle=a.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,o,o),i.fillStyle=a.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,o-2,o-2),i.fillStyle=c),d(r)}),a.each(r.after,d)}),u=0,a.each(e.afterBody,d),t.y-=r},drawFooter:function(t,e,i,n){var o=e.footer;if(o.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var r=a.color(e.footerFontColor);i.fillStyle=r.alpha(n*r.alpha()).rgbString(),i.font=a.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),a.each(o,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},o=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var r=a.color(e.backgroundColor);t.fillStyle=r.alpha(o*r.alpha()).rgbString(),a.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,o),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,o),this.drawBody(n,e,t,o),this.drawFooter(n,e,t,o)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;o>l;)o-=2*Math.PI;for(;s>o;)o+=2*Math.PI;var c=o>=s&&l>=o,u=r>=n.innerRadius&&r<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;!0===e._view.steppedLine?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,a=n._view,o=a.spanGaps,r=a.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,f,p;if(c.length&&a.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,a=i.isHorizontal();return n.xLabels&&a||n.yLabels&&!a?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var a=this,o=Math.max(a.maxIndex+1-a.minIndex-(a.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=a.getLabels(),s=r.indexOf(t);e=-1!==s?s:e}if(a.isHorizontal()){var l=a.width-(a.paddingLeft+a.paddingRight),c=l/o,u=c*(e-a.minIndex)+a.paddingLeft;return(a.options.gridLines.offsetGridLines&&n||a.maxIndex===a.minIndex&&n)&&(u+=c/2),a.left+Math.round(u)}var d=a.height-(a.paddingTop+a.paddingBottom),h=d/o,f=h*(e-a.minIndex)+a.paddingTop;return a.options.gridLines.offsetGridLines&&n&&(f+=h/2),a.top+Math.round(f)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,i=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),n=e.isHorizontal(),a=n?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),o=a/i;return t-=n?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=o/2),t-=n?e.paddingLeft:e.paddingTop,0>=t?0:Math.round(t/o)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var a=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var o=e.log10(Math.abs(a)),r="";if(0!==t){var s=-1*Math.floor(o);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,a=i.chart,o=a.data,r=o.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(r,function(o,r){var s=a.getDatasetMeta(r);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;a.isDatasetVisible(r)&&t(s)&&e.each(o.data,function(t,e){var a=+i.getRightValue(t);isNaN(a)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>a?u[e]+=a:c[e]+=a)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),a=e.min(n),o=e.max(n);i.min=null===i.min?a:Math.min(i.min,a),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(r,function(n,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,a=n.options.ticks;if(n.isHorizontal())i=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(n.width/50));else{var o=e.getValueOrDefault(a.fontSize,t.defaults.global.defaultFontSize);i=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(n.height/(2*o)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,a=n.paddingLeft,o=n.paddingBottom,r=n.start,s=+n.getRightValue(t),l=n.end-r;return n.isHorizontal()?(i=n.width-(a+n.paddingRight),e=n.left+i/l*(s-r),Math.round(e+a)):(i=n.height-(n.paddingTop+o),e=n.bottom-o-i/l*(s-r),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,a=e.paddingBottom,o=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+a),r=(i?t-e.left-n:e.bottom-a-t)/o;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var a=e.sign(t.min),o=e.sign(t.max);0>a&&0>o?t.max=0:a>0&&o>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],a=i.ticks,o=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var s;if(a.fixedStepSize&&a.fixedStepSize>0||a.stepSize&&a.stepSize>0)s=o(a.fixedStepSize,a.stepSize);else{var l=e.niceNum(t.max-t.min,!1);s=e.niceNum(l/(r-1),!0)}var c=Math.floor(t.min/s)*s,u=Math.ceil(t.max/s)*s,d=(u-c)/s;d=e.almostEquals(d,Math.round(d),s/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==a.min?a.min:c);for(var h=1;d>h;++h)n.push(c+h*s);n.push(void 0!==a.max?a.max:u),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),a.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,a=n.ticks,o=i.chart,r=o.data,s=r.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(a,r){var s=o.getDatasetMeta(r);o.isDatasetVisible(r)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(a.data,function(t,e){var a=u[s.type],o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(a[e]=a[e]||0,n.relativePoints?a[e]=100:a[e]+=o)}))}),e.each(u,function(t){var n=e.min(t),a=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?a:Math.max(i.max,a)})}else e.each(s,function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,a,o,r,s,l,c,u,d,h,f,p=this.options.pointLabels,g=e.getValueOrDefault(p.fontSize,i.defaultFontSize),m=e.getValueOrDefault(p.fontStyle,i.defaultFontStyle),k=e.getValueOrDefault(p.fontFamily,i.defaultFontFamily),v=e.fontString(g,m,k),y=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=v,n=0;nw&&(w=t.x+o,r=n),t.x-oD?t.x+a>w&&(w=t.x+a,r=n):t.x-ae&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,a=n.gridLines,o=n.ticks,r=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(o.fontSize,i.defaultFontSize),d=l(o.fontStyle,i.defaultFontStyle),h=l(o.fontFamily,i.defaultFontFamily),f=e.fontString(u,d,h);if(e.each(t.ticks,function(r,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(a.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(a.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(a.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var p=0;p=0;y--){if(r.display){var w=t.getPointPosition(y,p);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(y,p+5),x=l(s.fontColor,i.defaultFontColor);c.font=v,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(y)+Math.PI/2,M=360*C/(2*Math.PI)%360;c.textAlign=0===M||180===M?"center":180>M?"left":"right",c.textBaseline=90===M||270===M?"middle":M>270||90>M?"bottom":"top",c.fillText(D[y]?D[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",a,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},a={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},o=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),void 0!==i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&!1!==e.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(a,o){var r=[],s=t.chart.isDatasetVisible(o);"object"==typeof a.data[0]&&null!==a.data[0]?e.each(a.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),r.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):r=i,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var a=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):a=i,t.labelDiffs.push(a)},t)},buildTicks:function(){var n=this;n.ctx.save();var a=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),o=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(a,o,r);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width;u=u*Math.cos(e.toRadians(n.options.ticks.maxRotation))+a*Math.sin(e.toRadians(n.options.ticks.maxRotation));var d=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var h=0,f=i.units[h];h=Math.ceil(n.scaleSizeInUnits/d)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,f.steps[p]);break}break}if(!1===f.maxStep||Math.ceil(n.scaleSizeInUnits/d)y?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):y>=0&&(n.lastTick=v),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var w=1;w<=n.scaleSizeInUnits;++w){var b=k.clone().add(w,n.tickUnit);if(n.options.time.max&&b.diff(n.lastTick,n.tickUnit,!0)>=0)break;w%n.unitScale==0&&n.ticks.push(b)}(0!==n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit)||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t"+$.i18n("totals")+": "+t.formatNumber(t.outputData.sum)+"\n ("+t.formatNumber(Math.round(t.outputData.average))+"/"+$.i18n("day")+")"},logarithmicCheckbox:".logarithmic-scale-option",platformSelector:"#platform_select",projectInput:"#project_input",formStates:["initial","processing","complete","invalid"],sourceInput:"#source_input",timestampFormat:"YYYYMMDD00",validateParams:["project","platform","agent","direction","sort","view"],validParams:{direction:["-1","1"],sort:["title","views","badges","lang"],view:["list","chart"]}};e.exports=n},{}],2:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0} }),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=function(){function t(t,e){var i=[],n=!0,a=!1,o=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]&&arguments[0],e={project:$(this.config.projectInput).val(),platform:$(this.config.platformSelector).val(),agent:$(this.config.agentSelector).val()};return this.specialRange&&!t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),t?e.page=$(this.config.sourceInput).val().score():(e.sort=this.sort,e.direction=this.direction,e.view=this.view,this.noLogScale&&(e.autolog="false")),e}},{key:"pushParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(window.history&&window.history.replaceState){if(t)return history.replaceState(null,document.title,location.href.split("?")[0]);var e=$(this.config.sourceInput).val().score().replace(/[&%?+]/g,encodeURIComponent);window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&page="+e),$(".permalink").prop("href","/langviews?"+$.param(this.getPermaLink())+"&page="+e)}}},{key:"getBadgeMarkup",value:function(t){if(!this.config.badges[t])return"";var e=this.config.badges[t].image,i=$.i18n(this.config.badges[t].name);return""+i+""}},{key:"renderData",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"renderData",this).call(this,function(e){var i=Object.keys(t.outputData.badges).map(function(e){return""+t.getBadgeMarkup(e)+" × "+t.outputData.badges[e]+""}).join(", ");$(".output-totals").html(""+$.i18n("totals")+"\n "+$.i18n("num-languages",e.length)+"\n "+$.i18n("unique-titles",t.outputData.titles.length)+"\n "+i+"\n "+t.formatNumber(t.outputData.sum)+"\n "+t.formatNumber(Math.round(t.outputData.average))+""),$("#output_list").html(""),e.forEach(function(e,i){var n="";e.badges&&(n=e.badges.map(t.getBadgeMarkup.bind(t)).join()),$("#output_list").append("\n "+(i+1)+"\n "+e.lang+"\n "+t.getPageLink(e.label,e.lang+"."+t.baseProject+".org")+"\n "+n+"\n "+t.formatNumber(e.sum)+"\n "+t.formatNumber(Math.round(e.average))+"\n ")})})}},{key:"getSortProperty",value:function(t,e){switch(e){case"lang":return t.lang;case"title":return t.label;case"badges":return t.badges.sort().join("");case"views":return Number(t.sum)}}},{key:"getPageViewsData",value:function(t){var e=this,i=this.daterangepicker.startDate.startOf("day"),n=this.daterangepicker.endDate.startOf("day"),a=Object.keys(t),o=$.Deferred(),r=[],s=0,l={},c=a.length,u=[],d=[],h=function a(h){var f=t[h],p=encodeURIComponent(f.title),g="https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/"+f.lang+"."+e.baseProject+"/"+$(e.config.platformSelector).val()+"/"+$(e.config.agentSelector).val()+"/"+p+"/daily/"+i.format(e.config.timestampFormat)+"/"+n.format(e.config.timestampFormat),m=$.ajax({url:g,dataType:"json"});r.push(m),m.done(function(t){d.push({badges:f.badges,dbName:h,lang:f.lang,title:f.title,url:f.url,items:t.items})}).fail(function(t){var i=t.responseJSON&&t.responseJSON.title?t.responseJSON.title:$.i18n("unknown"),n="Error in Cassandra table storage backend"===i,o=e.getPageLink(f.title,f.lang+"."+e.baseProject+".org");if(n){if(l[h]?l[h]++:l[h]=1,l[h]<3)return c++,e.rateLimit(a,e.config.apiThrottle,e)(h);u.push(o)}else e.writeMessage(o+": "+$.i18n("api-error","Pageviews API")+" - "+i);404!==t.status&&(e.hadFailure=!0)}).always(function(){e.updateProgressBar(++s,c),s===c&&(u.length&&e.writeMessage($.i18n("api-error-timeout","
    "+u.map(function(t){return"
  • "+t+"
  • "}).join("")+"
")),o.resolve(d))})},f=this.rateLimit(h,this.config.apiThrottle,this);return a.forEach(function(t,e){f(t)}),o}},{key:"getInterwikiData",value:function(t,e){var i=this,n=$.Deferred(),a="https://www.wikidata.org/w/api.php?action=wbgetentities&sites="+t+"&titles="+encodeURIComponent(e)+"&props=sitelinks/urls|datatype&format=json&callback=?";return $.getJSON(a).done(function(t){if(t.error)return n.reject($.i18n("api-error","Wikidata")+": "+t.error.info);if(t.entities[-1])return n.reject(""+e.descore().escape()+" - "+$.i18n("api-error-no-data"));var a=Object.keys(t.entities)[0],o=t.entities[a].sitelinks,r={},s=new RegExp("^https://[\\w-]+\\."+i.baseProject+"\\.org");return Object.keys(o).forEach(function(t){var e=o[t].site.replace(/-/g,"_");s.test(o[t].url)&&u[e]&&(o[t].lang=u[e].replace(/\.wiki.*$/,""),r[t]=o[t])}),n.resolve(r)}),n}},{key:"getPageNameFromURL",value:function(t){return t.includes("?")?t.match(/\?(?:.*\b)?title=(.*?)(?:&|$)/)[1]:t.match(/\/wiki\/(.*?)(?:\?|$)/)[1]}},{key:"popParams",value:function(){var t=this,e=this.validateParams(this.parseQueryString("pages"));$(this.config.projectInput).val(e.project),this.validateDateRange(e),$(".site-notice .alert-danger").length&&delete e.page,$(this.config.platformSelector).val(e.platform),$(this.config.agentSelector).val(e.agent),["sort","direction","view"].forEach(function(i){t[i]=e[i]}),this.setupSourceInput(),e.page?this.getPageInfo([e.page]).done(function(e){var i=Object.keys(e)[0];if(e[i].missing)return t.setState("initial"),t.writeMessage(t.getPageLink(i)+": "+$.i18n("api-error-no-data"));$(t.config.sourceInput).val(i),t.processInput()}).fail(function(){t.writeMessage($.i18n("api-error-unknown","Info"))}):$(this.config.sourceInput).focus()}},{key:"setState",value:function(t){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(t),t){case"initial":this.clearMessages(),this.assignDefaults(),this.destroyChart(),$(".output").removeClass("list-mode").removeClass("chart-mode"),$(".data-links").addClass("invisible"),this.typeahead&&this.typeahead.hide(),$(this.config.sourceInput).val("").focus();break;case"processing":this.processStarted(),this.clearMessages(),document.activeElement.blur(),$(".progress-bar").addClass("active");break;case"complete":this.processEnded(),this.updateProgressBar(0),$(".progress-bar").removeClass("active"),$(".data-links").removeClass("invisible")}}},{key:"processInput",value:function(){var t=this;this.patchUsage();var e=$(this.config.sourceInput).val();this.setState("processing");var i=function(){$(".output-title").html(t.outputData.link),$(".output-params").html($(t.config.dateRangeSelector).val()),t.setInitialChartType(),t.renderData()};if(this.isRequestCached())return $(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("loading-cache")),setTimeout(function(){t.outputData=simpleStorage.get(t.getCacheKey()),i()},500);var n=Object.keys(u).find(function(e){return u[e]===$(t.config.projectInput).val()});$(".progress-counter").text($.i18n("fetching-data","Wikidata")),this.getInterwikiData(n,e).done(function(n){t.getPageViewsData(n).done(function(n){$(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("building-dataset"));var a=t.getPageLink(e,t.project);setTimeout(function(){t.buildMotherDataset(e,a,n),i()},250)})}).fail(function(e){t.setState("initial"),"string"==typeof e?t.writeMessage(e):t.writeMessage($.i18n("api-error-unknown","Wikidata"))})}},{key:"setupSourceInput",value:function(){this.typeahead&&this.typeahead.destroy(),$(this.config.sourceInput).typeahead({ajax:{url:"https://"+this.project+".org/w/api.php",timeout:200,triggerLength:1,method:"get",preDispatch:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:t}},preProcess:function(t){return t.query.prefixsearch.map(function(t){return t.title})}}})}},{key:"validateProject",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateProject",this).call(this,!0)&&(this.setState("initial"),this.setupSourceInput())}},{key:"exportCSV",value:function(){var t=this,e="data:text/csv;charset=utf-8,Language,Title,Badges,"+this.getDateHeadings(!1).join(",")+"\n";this.outputData.listData.forEach(function(i){var n='"'+i.label.descore().replace(/"/g,'""')+'"',a='"'+i.badges.map(function(e){return t.config.badges[e].name.replace(/"/g,'""')})+'"';e+=[i.lang,n,a].concat(i.data).join(",")+"\n"}),this.downloadData(e,"csv")}},{key:"baseProject",get:function(){return this.project.split(".")[1]}},{key:"typeahead",get:function(){return $(this.config.sourceInput).data("typeahead")}}]),e}(mix(d).with(h,f));$(document).ready(function(){return document.location.hash&&!document.location.search?document.location.href=document.location.href.replace("#","?"):document.location.hash?document.location.href=document.location.href.replace(/\#.*/,""):void new p})},{"../shared/chart_helpers":3,"../shared/list_helpers":5,"../shared/pv":7,"../shared/site_map":9,"./config":1}],3:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=this.getFromLocalStorage("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var a='"'+t.label.replace(/"/g,'""')+'"';e.push(a),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var a={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){a[t.replace(/\\/,"")]=i.data[e]}),e.push(a)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,o={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");o[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(o[r.format("YYYYMMDD")])t.items.push(o[r.format("YYYYMMDD")]);else{var s=r.isSame(this.maxDate)||r.isSame(moment(this.maxDate).subtract(1,"days"));t.items.push(a({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e,i){var n=this,a=void 0,o=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD",r=this.getDateHeadings(!1);return a=i||(this.isPageviews()?"views":["metaviews","mediaviews"].includes(this.app)||this.isPagecounts()?"count":"devices"),t.map(function(t,i){var s=new Array(r.length),l=0,c=void 0,u=0;t.forEach(function(t){var e=t[a],i=void 0;i="metaviews"===n.app?t.date:"mediaviews"===n.app?moment(t.date,n.config.mpcDateFormat).format(o):moment(t.timestamp,n.config.timestampFormat).format(o),s[r.indexOf(i)]=e,l+=e||0,e>u&&(u=e),(void 0===c||e";e.toastWarn($.i18n("new-article-warning",n))}});var h="siteviews"===e.app?e.getSiteLink(u):e.getPageLink(u,e.project),f="pageviews";e.isUniqueDevices()?f="unique-devices":e.isPagecounts()&&(f="pagecounts"),c.errors.push(h+": "+$.i18n("api-error",f.upcase()+" API")+" - "+n)}}).always(function(){++n===o&&(e.pageViewsData=c,i.resolve(c),r.length&&e.writeMessage($.i18n("api-error-timeout","
    "+r.map(function(t){return"
  • "+e.getPageLink(t,e.project.escape())+"
  • "}).join("")+"
")))})};return t.forEach(function(t,e){return u(t,e)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"isLogarithmic",value:function(){return $(this.config.logarithmicCheckbox).is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"printChart",value:function(){var t=window.open();t.document.write(''),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),$(this.config.chart).hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){if("line"===this.chartType){var t=this.getDateHeadings().length;Chart.defaults.global.elements.point.hitRadius=t>50?3:t>30?5:t>20?10:30}}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var a=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(a<=10)return!1;var o=!1;return i.forEach(function(t){t.push(a);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return o=!0}),o}},{key:"setupDateRangeSelector",value:function(){var t=this;if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=$(this.config.dateRangeSelector);$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"setupMonthSelector",value:function(t,e){var i=this;this.monthDatepicker&&this.monthDatepicker.destroy(),$(".month-selector").datepicker({autoclose:!0,format:"M yyyy",viewMode:"months",minViewMode:"months",startDate:this.minDate.toDate(),endDate:this.maxMonth,disableTouchKeyboard:!0}),t=t||this.initialMonthStart,e=e||this.maxMonth;var n=function(t,e){return ti.maxMonth&&(e=i.maxMonth),(ee)&&(t=e),[t,e]},a=n(t,e),o=l(a,2);t=o[0],e=o[1],this.monthStartDatepicker.setDate(t),this.monthEndDatepicker.setDate(e),this.daterangepicker.startDate=moment(t).startOf("month"),this.daterangepicker.setEndDate(moment(e).endOf("month"));var r=function(){var t=n(i.monthStartDatepicker.getDate(),i.monthEndDatepicker.getDate()),e=l(t,2),a=e[0],o=e[1];i.daterangepicker.startDate=moment(a).startOf("month"),i.daterangepicker.setEndDate(moment(o).endOf("month"))};$(".month-selector-start").on("hide",r),$(".month-selector-end").on("hide",r)}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:$(this.config.select2Input).val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var a=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));$(this.config.logarithmicCheckbox).prop("checked",a),$(".begin-at-zero").toggleClass("disabled",a)}this.outputData=this.setColorsAndLogValues(this.outputData);var o=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(o.scales=Object.assign({},o.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=$(this.config.chart)[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?o.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(o.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),o.zoom=["pageviews","siteviews","mediaviews"].includes(this.app)&&this.numDaysInRange()>1&&!this.isMonthly()),$(".show-labels-option").is(":checked")?o=this.showPointLabels(o):(delete o.animation.onComplete,delete o.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:o})}else delete o.animation.onComplete,delete o.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:o})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews","mediaviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){if(["bar","line"].includes(this.chartType)){var e=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},i=function(t,i){var n=t.chart,a=e(n.ctx);Chart.helpers.each(t.data.datasets.forEach(function(e,o){var r=n.controller.getDatasetMeta(o);Chart.helpers.each(r.data.forEach(function(t,n){a.fillStyle="rgba(68,68,68,"+i+")";var o=e._meta[Object.keys(e._meta)[0]].data[n]._yScale.maxHeight,r=(o-t._model.y)/o>=.93?t._model.y+5:t._model.y-10;a.fillText(e.data[n],t._model.x,r)}),t)}),t)};return t.animation.onComplete=function(){i(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;i(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}},{key:"monthDatepicker",get:function(){return $(".month-selector").data("datepicker")}},{key:"monthStartDatepicker",get:function(){return $(".month-selector-start").data("datepicker")}},{key:"monthEndDatepicker",get:function(){return $(".month-selector-end").data("datepicker")}}]),e}(t)};e.exports=d},{"./zoom_plugin":10}],4:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new o(t)};var o=function(){function t(e){n(this,t),this.superclass=e}return a(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ia?-e.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var a=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" .glyphicon").addClass(a).removeClass("glyphicon-sort");try{t(n)}catch(t){this.setState("complete"),this.showFatalErrors([t])}finally{this.pushParams()}this.toggleView(this.view),"complete"!==this.getState()&&this.setState("complete")}},{key:"toggleView",value:function(t){var e=this;if($(".view-btn").removeClass("active"),$(".view-btn--"+t).addClass("active"),$(".output").removeClass("list-mode").removeClass("chart-mode").addClass(t+"-mode"),"chart"===t){this.destroyChart(),this.config.circularCharts.includes(this.chartType)&&(this.chartType="bar");var i=Object.assign({},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);if(this.assignOutputDataChartOpts(),this.setChartPointDetectionRadius(),"true"===this.autoLogDetection){var n=this.shouldBeLogarithmic([this.outputData.datasets[0].data]);$(this.config.logarithmicCheckbox).prop("checked",n)}this.isLogarithmic()&&(i.scales=Object.assign({},i.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),$(".show-labels-option").is(":checked")?i=this.showPointLabels(i):(delete i.animation.onComplete,delete i.animation.onProgress),"radar"===this.chartType?i.scale.ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"):i.scales.yAxes[0].ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"),this.outputData.labels=this.getDateHeadings();var a=$(this.config.chart)[0].getContext("2d");this.chartObj=new Chart(a,{type:this.chartType,data:this.outputData,options:i}),$(".chart-specific").show(),$("#chart-legend").html(this.chartObj.generateLegend())}else $(".chart-specific").hide();this.pushParams()}},{key:"updateProgressBar",value:function(t,e){if(!e)return $(".progress-bar").css("width","0%"),$(".progress-counter").text("");var i=t/e*100;$(".progress-bar").css("width",i.toFixed(2)+"%"),t===e?$(".progress-counter").text("Building dataset..."):$(".progress-counter").text($.i18n("processing-page",t,e))}}]),e}(t)};e.exports=s},{}],6:[function(t,e,i){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t){return-1!==this.indexOf(t)}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],a=void 0,o=0;o>>0,n=arguments[1],a=n>>0,o=a<0?Math.max(i+a,0):Math.min(a,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);oThis is the staging environment!

\n

To use the staging app, append debug=true to the URL

\n

Otherwise, please update your links to use\n https://"+location.host+s+"\n

\n

\n Redirecting you to the production "+document.title+" in\n 10...\n

\n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),o(i)}return i.debug?window.app=i:i.splash(),i.loadTranslations(),$.extend($.i18n.parser.emitter,{link:function(t){return''+t[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return r(e,t),l(e,[{key:"loadTranslations",value:function(){var t=n({},i18nLang,appPath+"/"+currentApp+"/messages/"+i18nLang+".json");"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(e){t[e]=appPath+"/"+currentApp+"/messages/"+e+".json"}),t.en=appPath+"/"+currentApp+"/messages/en.json"),$.i18n({locale:i18nLang}).load(t).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var t=$(window).width(),e=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(t<768)){n+e+i>t&&$(".interapp-links--more").removeClass("hidden");for(var a=$(".interapp-links--entry").length;a>0&&n+e+i>t;){var o=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();o.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(o),n=$(".interapp-links").outerWidth()+i,a--}}}},{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+"";this.toastError("\n "+$.i18n("invalid-params")+"\n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/;t.start&&/^\d{4}-\d{2}$/.test(t.start)&&(t.start=t.start+"-01",t.monthly=!0),t.end&&/^\d{4}-\d{2}$/.test(t.end)?t.end=moment(t.end+"-01").endOf("month").format("YYYY-MM-DD"):t.monthly=!1;var i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+"\n "+$.i18n("invalid-params")+"\n "),!1;t.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(t.start).toDate(),this.monthEnd=moment(t.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(u).find(function(e){return u[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var a=this.getExportFilename()+"."+e;n.download=a,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){return"true"===(this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),a=i?"month":"day",o=i?"YYYY-MM":"YYYY-MM-DD",r=moment(this.daterangepicker.startDate);r.isBefore(n);r.add(1,a))t?e.push(r.format(this.dateFormat)):e.push(r.format(o));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e,i,n){var a=this.getExpandedPageURL(t)+"&action=history";return i&&n&&(a+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+e+""}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e,i,n){var a='target="_blank" href="'+this.getPageURL(t,e)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(e)){var o=this.getProjectLang(e);a+=" lang="+o+' dir="'+(this.config.rtlLangs.includes(o)?"rtl":"ltr")+'"'}return'"+(i||t.descore().escape())+""}},{key:"getPageURL",value:function(t){return"//"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+""}},{key:"getProjectLang",value:function(t){return(t||this.project).split(".")[0]}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(a){e.siteInfo[t]=a.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getEditData",value:function(t){var e=$.Deferred();return $.ajax({url:"/pageviews/api.php",data:{pages:t.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD")},timeout:8e3}).done(function(t){return e.resolve(t)}).fail(function(){var i={};t.forEach(function(t){return i[t]={}}),e.resolve({pages:i})}),e}},{key:"getPageAssessments",value:function(t){var e=this,i=$.Deferred();return this.config.pageAssessmentProjects.includes(this.project)?(this.massApi({prop:"pageassessments",titles:t.join("|")},this.project,"pacontinue","pages").done(function(t){if(!t.pages)return i.resolve({});var n={};return t.pages.forEach(function(t){if(t.pageassessments){var i=Object.keys(t.pageassessments),a=t.pageassessments[i[0]];if(a&&a.class.length&&!n[t.title]){var o=e.config.pageAssessmentBadges[e.project][a.class]||"";if(!o.length)return;var r=""+a.class+"";n[t.title]=r}}}),i.resolve(n)}),i):i.resolve({})}},{key:"getAssessmentBadge",value:function(t){return t.assessment?t.assessment_img?""+t.assessment+"":t.assessment:""}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===$(this.config.dataSourceSelector).val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===$(this.config.dataSourceSelector).val()}},{key:"isPagecounts",value:function(){return"pagecounts"===$(this.config.dataSourceSelector).val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(t)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var o=$.Deferred(),r={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return o.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=a):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=a||r[n].length>=a),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),o.resolve(r))}).fail(function(t){o.reject(t)})}(),o}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},a=0;a0&&void 0!==arguments[0])||arguments[0],e=$(this.config.select2Input);e.data("select2")&&(e.off("change"),e.select2("val",null),e.select2("data",null),e.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,this.setLocalStorage("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,a=void 0;if(t.includes("latest-")){a=parseInt(t.replace("latest-",""),10)||20;var o=this.config.specialRanges.latest(a),r=s(o,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(a?$.i18n("latest-days",a):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var a={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(a.dateLimit={days:this.config.dateLimit}),this.daterangepicker){$(this.config.dateRangeSelector).data("daterangepicker").remove();var o=$(this.config.dateRangeSelector).remove();$(".date-selector").append(o)}$(this.config.dateRangeSelector).daterangepicker(a),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply() -;var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),a=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:a,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")});if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&function(t){e.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)}()}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],a=t[i];void 0===n||e.config.validParams[i].includes(a)||(a&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&$(this.config.projectInput).trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t="mediaviews"===this.app?"commons.wikimedia.org":$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:o,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[o,o],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(o)?moment().startOf("week"):o],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(o)?moment().startOf("month"):o],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(o)?moment().startOf("year"):o],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),o],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:o;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return a(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"wikimediafoundation.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",satwikipedia:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org", +;var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),a=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:a,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")});if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&function(t){e.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)}()}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],a=t[i];void 0===n||e.config.validParams[i].includes(a)||(a&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&$(this.config.projectInput).trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t="mediaviews"===this.app?"commons.wikimedia.org":$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:o,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[o,o],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(o)?moment().startOf("week"):o],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(o)?moment().startOf("month"):o],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(o)?moment().startOf("year"):o],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),o],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:o;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return a(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"wikimediafoundation.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org", slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwiktionary:"tr.wiktionary.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,e.clientX)-n,o=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(a),l=r.getValueForPixel(o);if(o-a<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],a=t.zoom._dragZoomStart,o=t.zoom._dragZoomEnd,r=a.target.getBoundingClientRect().left,s=Math.min(a.clientX,o.clientX)-r,l=Math.max(a.clientX,o.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file diff --git a/public_html/massviews/application.js b/public_html/massviews/application.js index f5ed0e0d1..7e267c483 100644 --- a/public_html/massviews/application.js +++ b/public_html/massviews/application.js @@ -13,4 +13,4 @@ d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var o=e.title;if(o.length){i descriptionParams:function(){return[""+$.i18n("external-link").toLowerCase()+""]},type:"string"},search:{placeholder:'insource:"UNESCO Science Report"',descriptionParams:function(){return["CirrusSearch"]},type:"string"}},platformSelector:"#platform_select",sourceButton:"#source_button",sourceInput:"#source_input",formStates:["initial","processing","complete","invalid"],timestampFormat:"YYYYMMDD00",validateParams:["source","subjectpage","subcategories","platform","agent","direction","sort","view"],validParams:{direction:["-1","1"],sort:["title","views","original"],source:["pagepile","wikilinks","category","subpages","transclusions","quarry","hashtag","external-link","search"],view:["list","chart"],subjectpage:["0","1"],subcategories:["0","1"]}};e.exports=n},{}],2:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e"),$(this.config.sourceInput).prop("type",this.config.sources[i].type).prop("placeholder",this.config.sources[i].placeholder).val(""),$(".source-description").html((e=$).i18n.apply(e,["massviews-"+i+"-description"].concat(n(this.config.sources[i].descriptionParams())))),"category"===i?$(".category-options").show():$(".category-options").hide(),["quarry","external-link","search"].includes(i)?($(".massviews-source-input").addClass("project-enabled"),$(".project-input").prop("disabled",!1)):($(".massviews-source-input").removeClass("project-enabled"),$(".project-input").prop("disabled",!0)),$(this.config.sourceInput).focus()}},{key:"getParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e={platform:$(this.config.platformSelector).val(),agent:$(this.config.agentSelector).val(),source:$(this.config.sourceButton).data("value"),target:$(this.config.sourceInput).val().score()};return this.specialRange&&!t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),"category"===e.source?(e.subjectpage=$(".category-subject-toggle--input").is(":checked")?"1":"0",e.subcategories=$(".subcategories-toggle--input").is(":checked")?"1":"0"):["quarry","external-link","search"].includes(e.source)&&(e.project=$(".project-input").val()),t||(e.sort=this.sort,e.direction=this.direction,e.view=this.view,this.noLogScale&&(e.autolog="false")),e}},{key:"pushParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(window.history&&window.history.replaceState){if(t)return history.replaceState(null,document.title,location.href.split("?")[0]);window.history.replaceState({},document.title,"?"+$.param(this.getParams())),$(".permalink").prop("href","/massviews?"+$.param(this.getPermaLink()))}}},{key:"renderData",value:function(){var t=this;c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"renderData",this).call(this,function(e){var i=$("#source_button").data("value"),n=void 0;if(["wikilinks","subpages","transclusions"].includes(i)){var a=e.length-("subpages"===i?1:0);n=$.i18n("num-"+i,t.formatNumber(a),a)}else n=$.i18n("num-pages",t.formatNumber(e.length),e.length);$(".output-totals").html(""+$.i18n("totals")+"\n "+$.i18n(n,e.length)+"\n "+t.formatNumber(t.outputData.sum)+"\n "+t.formatNumber(Math.round(t.outputData.average))+""),$("#output_list").html(""),e.forEach(function(e,i){$("#output_list").append("\n "+(i+1)+"\n "+t.getPageLink(e.label,e.project)+'\n "+t.formatNumber(e.sum)+"\n "+t.formatNumber(Math.round(e.average))+" / "+$.i18n("day")+"\n ")})})}},{key:"getSortProperty",value:function(t,e){switch(e){case"original":return t.index;case"title":return t.label;case"views":return Number(t.sum)}}},{key:"getPageViewsData",value:function(t,e){var i=this,n=this.daterangepicker.startDate.startOf("day"),a=this.daterangepicker.endDate.startOf("day"),o=$.Deferred(),r=0,l={},c=t.length,u=[],d=[],h=function t(h){var f=void 0;if(e)f=e;else{var p=i.getWikiPageFromURL(h),g=s(p,2);f=g[0],h=g[1]}var m=encodeURIComponent(h),k="https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/"+f+"/"+$(i.config.platformSelector).val()+"/"+$(i.config.agentSelector).val()+"/"+m+"/daily/"+n.format(i.config.timestampFormat)+"/"+a.format(i.config.timestampFormat);$.ajax({url:k,dataType:"json"}).done(function(t){d.push({title:h,project:f,items:t.items})}).fail(function(e){var n=e.responseJSON&&e.responseJSON.title?e.responseJSON.title:$.i18n("unknown"),a="Error in Cassandra table storage backend"===n;if(a&&(l[h]?l[h]++:l[h]=1,l[h]<3))return c++,i.rateLimit(t,100,i)(h);a?u.push(h):i.writeMessage(i.getPageLink(h,f)+": "+$.i18n("api-error","Pageviews API")+" - "+n),404!==e.status&&(i.hadFailure=!0)}).always(function(){i.updateProgressBar(++r,c),r===c&&(u.length&&i.writeMessage($.i18n("api-error-timeout","
    "+u.map(function(t){return"
  • "+i.getPageLink(t,f)+"
  • "}).join("")+"
")),o.resolve(d))})},f=this.rateLimit(h,this.config.apiThrottle,this);return t.forEach(function(t,e){f(t)}),o}},{key:"buildMotherDataset",value:function(t,e,i){var n=this;this.outputData={link:e,listData:[]};var a=moment(this.daterangepicker.startDate),o=moment(this.daterangepicker.endDate),r=this.numDaysInRange(),l=new Array(r).fill(0),c=[];i.forEach(function(t,e){var i=n.fillInZeros(t.items,a,o),u=s(i,2),d=u[0];u[1].forEach(function(t){c.includes(t)||c.push(t)});var h=d.map(function(t){return t.views}),f=h.reduce(function(t,e){return(t||0)+(e||0)});n.outputData.listData.push({data:h,label:t.title,project:t.project,sum:f,average:f/r,index:e}),l=l.map(function(t,e){return t+d[e].views})});var u=l.reduce(function(t,e){return(t||0)+(e||0)});if(Object.assign(this.outputData,{datasets:[{label:t,data:l,sum:u,average:u/r}],datesWithoutData:c,sum:u,average:u/r}),c.length){var d=c.map(function(t){return moment(t).format(n.dateFormat)});this.writeMessage($.i18n("api-incomplete-data",d.sort().join(" · "),d.length))}return this.hadFailure||simpleStorage.set(this.getCacheKey(),this.outputData,{TTL:6e5}),this.outputData}},{key:"getPileURL",value:function(t){return"http://tools.wmflabs.org/pagepile/api.php?action=get_data&id="+t}},{key:"getPileLink",value:function(t){return"Page Pile "+t+""}},{key:"getPagePile",value:function(t){var e=this,i=$.Deferred(),n="https://tools.wmflabs.org/pagepile/api.php?id="+t+"&action=get_data&format=json&metadata=1&limit="+this.config.apiLimit;return $.ajax({url:n,dataType:"jsonp"}).done(function(n){var a=Object.keys(n.pages);return n.pages_total>e.config.apiLimit&&(e.writeMessage($.i18n("massviews-oversized-set",e.getPileLink(t),e.formatNumber(n.pages_total),e.config.apiLimit,n.pages_total)),a=a.slice(0,e.config.apiLimit)),i.resolve({id:n.id,wiki:n.wiki,pages:a})}).fail(function(n){return i.reject(e.getPileLink(t)+": "+$.i18n("api-error-no-data"))}),i}},{key:"getWikiPageFromURL",value:function(t){var e=void 0;return e=t.includes("?")?t.match(/\/\/(.*?)\/w\/.*\?(?:.*\b)?title=(.*?)(?:&|$)/):t.match(/\/\/(.*?)\/wiki\/(.*?)(?:\?|$)/),e?[e[1].replace(/^www\./,""),e[2]]:[null,null]}},{key:"popParams",value:function(){var t=this,e=this.validateParams(this.parseQueryString());this.validateDateRange(e),this.updateSourceInput($(".source-option[data-value="+e.source+"]")[0]),e.target&&$(this.config.sourceInput).val(decodeURIComponent(e.target).descore()),$(".site-notice .alert-danger").length?delete e.target:e.overflow&&"pagepile"===e.source&&e.target&&this.toastInfo($.i18n("massviews-redirect",$.i18n("title"),10,this.getPileLink(e.target))),$(this.config.platformSelector).val(e.platform),$(this.config.agentSelector).val(e.agent),["sort","direction","view","source","subjectpage"].forEach(function(i){t[i]=e[i]}),["quarry","external-link","search"].includes(e.source)&&e.project&&$(".project-input").val(e.project),"1"===e.subjectpage&&$(".category-subject-toggle--input").prop("checked",!0),"1"===e.subcategories&&$(".subcategories-toggle--input").prop("checked",!0),e.target&&this.processInput()}},{key:"setState",value:function(t,e){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(t),t){case"initial":this.updateProgressBar(0),this.clearMessages(),this.assignDefaults(),this.destroyChart(),$(".output").removeClass("list-mode").removeClass("chart-mode"),$(".data-links").addClass("invisible"),this.typeahead&&this.typeahead.hide(),$(this.config.sourceInput).val("").focus(),"function"==typeof e&&e.call(this);break;case"processing":this.processStarted(),this.clearMessages(),document.activeElement.blur(),$(".progress-bar").addClass("active");break;case"complete":this.processEnded(),this.updateProgressBar(0),$(".progress-bar").removeClass("active"),$(".data-links").removeClass("invisible")}}},{key:"apiErrorReset",value:function(t,e){var i=this;this.setState("initial",function(){var n=void 0;n=e?$.i18n("api-error",t)+": "+e:""+$.i18n("api-error-unknown",t),i.writeMessage(n)})}},{key:"processPagePile",value:function(t){var e=this,i=$(this.config.sourceInput).val();$(".progress-counter").text($.i18n("fetching-data","Page Pile API")),this.getPagePile(i).done(function(n){if(!n.pages.length)return e.setState("initial",function(){e.writeMessage($.i18n("massviews-empty-set",e.getPileLink(i)))});var a=d[n.wiki];"en.wikipedia.org"===a&&(n.pages=n.pages.map(function(t){return t.replace(/^Project:Wikipedia:/,"Wikipedia:")})),e.getPageViewsData(n.pages,a).done(function(i){var o="Page Pile #"+n.id;$(".output-params").html("\n "+$(e.config.dateRangeSelector).val()+'\n —\n \n '+a.replace(/.org$/,"").escape()+"\n \n "),t(o,e.getPileLink(n.id),i)})}).fail(function(t){e.setState("initial"),"string"==typeof t?e.writeMessage(t):e.writeMessage($.i18n("api-error-unknown","Page Pile"))})}},{key:"processCategory",value:function(t,e,i){var n=this,a=this.getPageLink(e,t);$(".progress-counter").text($.i18n("fetching-data","Category API"));var o="/massviews/api.php?project="+t+"&category="+e.replace(/^.*?:/,"")+"&limit="+this.config.apiLimit;$(".subcategories-toggle--input").is(":checked")&&(o+="&recursive=1"),$.getJSON(o).done(function(o){if(!o.length)return n.setState("initial",function(){n.writeMessage($.i18n("api-error-no-data"))});o.length>=n.config.apiLimit&&(n.writeMessage($.i18n("massviews-oversized-set-unknown",a,n.config.apiLimit)),o=o.slice(0,n.config.apiLimit));var r=$(".category-subject-toggle--input").is(":checked"),s=n.mapCategoryPageNames(o,n.getSiteInfo(t).namespaces,r);n.getPageViewsData(s,t).done(function(t){i(e,a,t)})}).fail(function(t){n.setState("initial"),n.writeMessage($.i18n("api-error-unknown",a))})}},{key:"processHashtag",value:function(t){var e=this,i=$(this.config.sourceInput).val().replace(/^#/,""),n='#'+i.escape()+"";$(".progress-counter").text($.i18n("fetching-data","Hashtag API")),$.get("//tools.wmflabs.org/hashtags/csv/"+i+"?limit=5000").done(function(a){for(var o=new RegExp('(\\,|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\,\\r\\n]*))',"gi"),r=[[]],s=void 0;s=o.exec(a);){var l=s[1];l.length&&","!==l&&r.push([]);var c=void 0;c=s[2]?s[2].replace(new RegExp('""',"g"),'"'):s[3],r[r.length-1].push(c)}if(1!==r[r.length-1].length||r[r.length-1][0]||(r=r.slice(0,-1)),1===r.length)return e.setState("initial",function(){e.writeMessage($.i18n("massviews-empty-set",n))});e.getPageURLsFromHashtagCSV(r).done(function(a){var o=a.length;o>e.config.apiLimit&&(e.writeMessage($.i18n("massviews-oversized-set",n,e.formatNumber(o),e.config.apiLimit,o)),a=a.slice(0,e.config.apiLimit)),e.getPageViewsData(a).done(function(e){t(i,n,e)})}).fail(function(){return e.apiErrorReset("Siteinfo API")})}).fail(function(){return e.apiErrorReset("Hashtag API")})}},{key:"getPageURLsFromHashtagCSV",value:function(t){var e=this,i=$.Deferred(),n=t[0].indexOf("spaced_title"),a=t[0].indexOf("rc_namespace"),o=t[0].indexOf("diff_url"),r=[];return t.slice(1).forEach(function(s){var l=s[o].match(/https:\/\/(.*?\.org)\//)[1];e.fetchSiteInfo(l).done(function(){var o=e.getSiteInfo(l).namespaces[s[a]]["*"];r.push("https://"+l+"/wiki/"+(o?o+":":"")+s[n]),r.length===t.length-1&&i.resolve(r.unique())}).fail(function(){i.reject()})}),i}},{key:"processSubpages",value:function(t,e,i){var n,a=this,o=e.descore(),r=0,s=o;for(var l in this.getSiteInfo(t).namespaces)if("0"!==l){var c=this.getSiteInfo(t).namespaces[l]["*"]+":";o.startsWith(c)&&(r=this.getSiteInfo(t).namespaces[l].id,s=e.substring(c.length))}var u=r%2==0?r+1:r-1,d=[];$(".progress-counter").text($.i18n("fetching-data","Allpages API")),[r,u].forEach(function(e){var i={list:"allpages",aplimit:500,apnamespace:e,apprefix:s+"/"};d.push(a.massApi(i,t,"apcontinue","allpages"))});var h=this.getPageLink(e,t);(n=$).when.apply(n,d).done(function(n,o){var r=[n,o].filter(function(t){return!!t.error});if(r.length)return a.setState("initial",function(){r.forEach(function(t){a.writeMessage($.i18n("api-error","Allpages API")+": "+t.error.info.escape())})}),!1;var s=n.allpages.concat(o.allpages),l=s.length;if(0===l)return a.setState("initial",function(){a.writeMessage($.i18n("api-error-no-data"))});l>a.config.apiLimit&&(a.writeMessage($.i18n("massviews-oversized-set",h,a.formatNumber(l),a.config.apiLimit,l)),s=s.slice(0,a.config.apiLimit));var c=[e].concat(s.map(function(t){return t.title}));a.getPageViewsData(c,t).done(function(t){i(e,h,t)})}).fail(function(t){a.setState("initial"),t&&"string"==typeof t.error?a.writeMessage($.i18n("api-error",h+": "+t.error)):a.writeMessage($.i18n("api-error-unknown",h))})}},{key:"processTemplate",value:function(t,e,i){var n=this,a={prop:"transcludedin",tilimit:500,titles:e},o=this.getPageLink(e,t);$(".progress-counter").text($.i18n("fetching-data","Transclusion API")),this.massApi(a,t,"ticontinue",function(t){return t.pages[0].transcludedin}).done(function(a){if(a.error)return n.apiErrorReset("Transclusion API",a.error.info);if(!a.pages[0])return n.setState("initial",function(){n.writeMessage($.i18n("api-error-no-data"))});var r=a.pages.map(function(t){return t.title});a.continue&&n.writeMessage($.i18n("massviews-oversized-set-unknown",o,n.config.apiLimit)),n.getPageViewsData(r,t).done(function(t){i(e,o,t)})}).fail(function(t){n.setState("initial"),t&&"string"==typeof t.error?n.writeMessage($.i18n("api-error",o+": "+t.error)):n.writeMessage($.i18n("api-error-unknown",o))})}},{key:"processWikiPage",value:function(t,e,i){var n=this,a={pllimit:500,prop:"links",titles:e},o=this.getPageLink(e,t);$(".progress-counter").text($.i18n("fetching-data","Links API")),this.massApi(a,t,"plcontinue",function(t){return t.pages[0].links}).done(function(a){if(a.error)return n.apiErrorReset("Links API",a.error.info);if(!a.pages[0])return n.setState("initial",function(){n.writeMessage($.i18n("api-error-no-data"))});var r=a.pages.map(function(t){return t.title});if(!r.length)return n.setState("initial",function(){n.writeMessage($.i18n("massviews-empty-set",o))});a.continue&&n.writeMessage($.i18n("massviews-oversized-set-unknown",o,n.config.apiLimit)),n.getPageViewsData(r,t).done(function(t){i(e,o,t)})}).fail(function(t){var e=t&&"string"==typeof t.error?t.error:null;n.apiErrorReset("Links API",e)})}},{key:"processQuarry",value:function(t){var e=this,i=$(".project-input").val(),n=$(this.config.sourceInput).val();if(this.validateProject(i)){var a="https://quarry.wmflabs.org/query/"+n+"/result/latest/0/json",o="Quarry "+n+"";$(".progress-counter").text($.i18n("fetching-data","Quarry API")),$.getJSON(a).done(function(a){var r=a.headers.indexOf("page_title");if(-1===r)return e.setState("initial"),e.writeMessage($.i18n("invalid-quarry-dataset","page_title"));var s=a.rows.map(function(t){return t[r]});s.length>e.config.apiLimit&&(e.writeMessage($.i18n("massviews-oversized-set",o,e.formatNumber(s.length),e.config.apiLimit,s.length)),s=s.slice(0,e.config.apiLimit)),e.getPageViewsData(s,i).done(function(e){t(n,o,e)})}).fail(function(t){return e.setState("initial"),e.writeMessage($.i18n("api-error-unknown","Quarry API"),!0)})}}},{key:"processExternalLink",value:function(t){var e=this,i=$(".project-input").val();if(this.validateProject(i)){var n=/^(?:\/\/|(ftps?|git|gopher|https?|ircs?|mms|nntp|redis|sftp|ssh|svn|telnet|worldwind):\/\/|(bitcoin|geo|magnet|mailto|news|sips?|sms|tel|urn|xmpp):)/,a=$(this.config.sourceInput).val(),o=(n.exec(a)||[,])[1]||"http",r=a.replace(n,""),s={list:"exturlusage",eulimit:500,eunamespace:0,euprotocol:o,euquery:r},l=""+a+"";$(".progress-counter").text($.i18n("fetching-data","External link API")),this.massApi(s,i,"euoffset","exturlusage").done(function(n){if(n.error)return e.apiErrorReset("External link API",n.error.info);if(!n.exturlusage[0])return e.setState("initial",function(){e.writeMessage($.i18n("api-error-no-data"))});var o=n.exturlusage.map(function(t){return t.title}).unique();if(!o.length)return e.setState("initial",function(){e.writeMessage($.i18n("massviews-empty-set",l))});n.continue&&e.writeMessage($.i18n("massviews-oversized-set-unknown",l,e.config.apiLimit)),e.getPageViewsData(o,i).done(function(e){t(a,l,e)})}).fail(function(t){e.setState("initial"),t&&"string"==typeof t.error?e.writeMessage($.i18n("api-error",l+": "+t.error)):e.writeMessage($.i18n("api-error-unknown",l))})}}},{key:"processSearch",value:function(t){var e=this,i=$(".project-input").val();if(this.validateProject(i)){var n=$(this.config.sourceInput).val(),a={list:"search",srlimit:500,srnamespace:0,srinfo:"",srprop:"",srsearch:n},o=n.length>50?n.slice(0,35)+"…":n,r=""+o+"";$(".progress-counter").text($.i18n("fetching-data","Search API")),this.massApi(a,i,"sroffset","search").done(function(n){if(n.error)return e.apiErrorReset("Search API",n.error.info);if(!n.search.length)return e.setState("initial",function(){e.writeMessage($.i18n("api-error-no-data"))});var a=n.search.map(function(t){return t.title}).unique();if(!a.length)return e.setState("initial",function(){e.writeMessage($.i18n("massviews-empty-set",r))});n.continue&&e.writeMessage($.i18n("massviews-oversized-set-unknown",r,e.config.apiLimit)),e.getPageViewsData(a,i).done(function(e){t(o,r,e)})}).fail(function(t){e.setState("initial"),t&&"string"==typeof t.error?e.writeMessage($.i18n("api-error",r+": "+t.error)):e.writeMessage($.i18n("api-error-unknown",r))})}}},{key:"validateProject",value:function(t){return!!t&&(t=t.replace(/^www\./,""),!!h.includes(t)||(this.setState("initial"),this.writeMessage($.i18n("invalid-project",""+t.escape()+""),!0),!1))}},{key:"mapCategoryPageNames",value:function(t,e,i){var n=[];return t.forEach(function(t){var a=parseInt(t.ns,10),o=void 0;o=a%2==1&&i?e[a-1]["*"]||"":e[t.ns]["*"],n.push(o+(""===o?"":":")+t.title)}),n}},{key:"processInput",value:function(){var t=this;this.patchUsage(),this.setState("processing");var e=function(){$(".output-title").html(t.outputData.link),$(".output-params").html($(t.config.dateRangeSelector).val()),t.setInitialChartType(),t.renderData()};if(this.isRequestCached())return $(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("loading-cache")),setTimeout(function(){t.outputData=simpleStorage.get(t.getCacheKey()),e()},500);var i=function(i,n,a){$(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("building-dataset")),setTimeout(function(){t.buildMotherDataset(i,n,a),e()},250)},n=$("#source_button").data("value");switch(n){case"pagepile":return this.processPagePile(i);case"quarry":return this.processQuarry(i);case"hashtag":return this.processHashtag(i);case"external-link":return this.processExternalLink(i);case"search":return this.processSearch(i)}var a=this.getWikiPageFromURL($(this.config.sourceInput).val()),o=s(a,2),r=o[0],l=o[1];if(!r||!l)return this.setState("initial",function(){t.writeMessage($.i18n("invalid-"+("category"===n?"category":"page")+"-url"))});if(this.validateProject(r))switch(l=decodeURIComponent(l).replace(/\/$/,""),n){case"category":this.fetchSiteInfo(r).then(function(){t.processCategory(r,l,i)});break;case"subpages":this.fetchSiteInfo(r).then(function(){return t.processSubpages(r,l,i)});break;case"wikilinks":this.processWikiPage(r,l,i);break;case"transclusions":this.processTemplate(r,l,i)}}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Title,"+this.getDateHeadings(!1).join(",")+"\n";this.outputData.listData.forEach(function(e){var i='"'+e.label.descore().replace(/"/g,'""')+'"';t+=[i].concat(e.data).join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"baseProject",get:function(){return this.project.split(".")[1]}}]),e}(mix(f).with(p,g));$(document).ready(function(){return document.location.hash&&!document.location.search?document.location.href=document.location.href.replace("#","?"):document.location.hash?document.location.href=document.location.href.replace(/\#.*/,""):void new m})},{"../shared/chart_helpers":3,"../shared/list_helpers":5,"../shared/pv":7,"../shared/site_map":9,"./config":1}],3:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=this.getFromLocalStorage("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var a='"'+t.label.replace(/"/g,'""')+'"';e.push(a),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var a={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){a[t.replace(/\\/,"")]=i.data[e]}),e.push(a)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,o={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");o[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(o[r.format("YYYYMMDD")])t.items.push(o[r.format("YYYYMMDD")]);else{var s=r.isSame(this.maxDate)||r.isSame(moment(this.maxDate).subtract(1,"days"));t.items.push(a({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e,i){var n=this,a=void 0,o=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD",r=this.getDateHeadings(!1);return a=i||(this.isPageviews()?"views":["metaviews","mediaviews"].includes(this.app)||this.isPagecounts()?"count":"devices"),t.map(function(t,i){var s=new Array(r.length),l=0,c=void 0,u=0;t.forEach(function(t){var e=t[a],i=void 0;i="metaviews"===n.app?t.date:"mediaviews"===n.app?moment(t.date,n.config.mpcDateFormat).format(o):moment(t.timestamp,n.config.timestampFormat).format(o),s[r.indexOf(i)]=e,l+=e||0,e>u&&(u=e),(void 0===c||e";e.toastWarn($.i18n("new-article-warning",n))}});var h="siteviews"===e.app?e.getSiteLink(u):e.getPageLink(u,e.project),f="pageviews";e.isUniqueDevices()?f="unique-devices":e.isPagecounts()&&(f="pagecounts"),c.errors.push(h+": "+$.i18n("api-error",f.upcase()+" API")+" - "+n)}}).always(function(){++n===o&&(e.pageViewsData=c,i.resolve(c),r.length&&e.writeMessage($.i18n("api-error-timeout","
    "+r.map(function(t){return"
  • "+e.getPageLink(t,e.project.escape())+"
  • "}).join("")+"
")))})};return t.forEach(function(t,e){return u(t,e)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"isLogarithmic",value:function(){return $(this.config.logarithmicCheckbox).is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"printChart",value:function(){var t=window.open();t.document.write(''),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),$(this.config.chart).hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){if("line"===this.chartType){var t=this.getDateHeadings().length;Chart.defaults.global.elements.point.hitRadius=t>50?3:t>30?5:t>20?10:30}}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var a=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(a<=10)return!1;var o=!1;return i.forEach(function(t){t.push(a);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return o=!0}),o}},{key:"setupDateRangeSelector",value:function(){var t=this;if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=$(this.config.dateRangeSelector);$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"setupMonthSelector",value:function(t,e){var i=this;this.monthDatepicker&&this.monthDatepicker.destroy(),$(".month-selector").datepicker({autoclose:!0,format:"M yyyy",viewMode:"months",minViewMode:"months",startDate:this.minDate.toDate(),endDate:this.maxMonth,disableTouchKeyboard:!0}),t=t||this.initialMonthStart,e=e||this.maxMonth;var n=function(t,e){return ti.maxMonth&&(e=i.maxMonth),(ee)&&(t=e),[t,e]},a=n(t,e),o=l(a,2);t=o[0],e=o[1],this.monthStartDatepicker.setDate(t),this.monthEndDatepicker.setDate(e),this.daterangepicker.startDate=moment(t).startOf("month"),this.daterangepicker.setEndDate(moment(e).endOf("month"));var r=function(){var t=n(i.monthStartDatepicker.getDate(),i.monthEndDatepicker.getDate()),e=l(t,2),a=e[0],o=e[1];i.daterangepicker.startDate=moment(a).startOf("month"),i.daterangepicker.setEndDate(moment(o).endOf("month"))};$(".month-selector-start").on("hide",r),$(".month-selector-end").on("hide",r)}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:$(this.config.select2Input).val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var a=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));$(this.config.logarithmicCheckbox).prop("checked",a),$(".begin-at-zero").toggleClass("disabled",a)}this.outputData=this.setColorsAndLogValues(this.outputData);var o=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(o.scales=Object.assign({},o.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=$(this.config.chart)[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?o.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(o.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),o.zoom=["pageviews","siteviews","mediaviews"].includes(this.app)&&this.numDaysInRange()>1&&!this.isMonthly()),$(".show-labels-option").is(":checked")?o=this.showPointLabels(o):(delete o.animation.onComplete,delete o.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:o})}else delete o.animation.onComplete,delete o.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:o})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews","mediaviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){if(["bar","line"].includes(this.chartType)){var e=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},i=function(t,i){var n=t.chart,a=e(n.ctx);Chart.helpers.each(t.data.datasets.forEach(function(e,o){var r=n.controller.getDatasetMeta(o);Chart.helpers.each(r.data.forEach(function(t,n){a.fillStyle="rgba(68,68,68,"+i+")";var o=e._meta[Object.keys(e._meta)[0]].data[n]._yScale.maxHeight,r=(o-t._model.y)/o>=.93?t._model.y+5:t._model.y-10;a.fillText(e.data[n],t._model.x,r)}),t)}),t)};return t.animation.onComplete=function(){i(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;i(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}},{key:"monthDatepicker",get:function(){return $(".month-selector").data("datepicker")}},{key:"monthStartDatepicker",get:function(){return $(".month-selector-start").data("datepicker")}},{key:"monthEndDatepicker",get:function(){return $(".month-selector-end").data("datepicker")}}]),e}(t)};e.exports=d},{"./zoom_plugin":10}],4:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new o(t)};var o=function(){function t(e){n(this,t),this.superclass=e}return a(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ia?-e.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var a=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" .glyphicon").addClass(a).removeClass("glyphicon-sort");try{t(n)}catch(t){this.setState("complete"),this.showFatalErrors([t])}finally{this.pushParams()}this.toggleView(this.view),"complete"!==this.getState()&&this.setState("complete")}},{key:"toggleView",value:function(t){var e=this;if($(".view-btn").removeClass("active"),$(".view-btn--"+t).addClass("active"),$(".output").removeClass("list-mode").removeClass("chart-mode").addClass(t+"-mode"),"chart"===t){this.destroyChart(),this.config.circularCharts.includes(this.chartType)&&(this.chartType="bar");var i=Object.assign({},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);if(this.assignOutputDataChartOpts(),this.setChartPointDetectionRadius(),"true"===this.autoLogDetection){var n=this.shouldBeLogarithmic([this.outputData.datasets[0].data]);$(this.config.logarithmicCheckbox).prop("checked",n)}this.isLogarithmic()&&(i.scales=Object.assign({},i.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),$(".show-labels-option").is(":checked")?i=this.showPointLabels(i):(delete i.animation.onComplete,delete i.animation.onProgress),"radar"===this.chartType?i.scale.ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"):i.scales.yAxes[0].ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"),this.outputData.labels=this.getDateHeadings();var a=$(this.config.chart)[0].getContext("2d");this.chartObj=new Chart(a,{type:this.chartType,data:this.outputData,options:i}),$(".chart-specific").show(),$("#chart-legend").html(this.chartObj.generateLegend())}else $(".chart-specific").hide();this.pushParams()}},{key:"updateProgressBar",value:function(t,e){if(!e)return $(".progress-bar").css("width","0%"),$(".progress-counter").text("");var i=t/e*100;$(".progress-bar").css("width",i.toFixed(2)+"%"),t===e?$(".progress-counter").text("Building dataset..."):$(".progress-counter").text($.i18n("processing-page",t,e))}}]),e}(t)};e.exports=s},{}],6:[function(t,e,i){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t){return-1!==this.indexOf(t)}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],a=void 0,o=0;o>>0,n=arguments[1],a=n>>0,o=a<0?Math.max(i+a,0):Math.min(a,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);oThis is the staging environment!

\n

To use the staging app, append debug=true to the URL

\n

Otherwise, please update your links to use\n https://"+location.host+s+"\n

\n

\n Redirecting you to the production "+document.title+" in\n 10...\n

\n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),o(i)}return i.debug?window.app=i:i.splash(),i.loadTranslations(),$.extend($.i18n.parser.emitter,{link:function(t){return''+t[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return r(e,t),l(e,[{key:"loadTranslations",value:function(){var t=n({},i18nLang,appPath+"/"+currentApp+"/messages/"+i18nLang+".json");"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(e){t[e]=appPath+"/"+currentApp+"/messages/"+e+".json"}),t.en=appPath+"/"+currentApp+"/messages/en.json"),$.i18n({locale:i18nLang}).load(t).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var t=$(window).width(),e=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(t<768)){n+e+i>t&&$(".interapp-links--more").removeClass("hidden");for(var a=$(".interapp-links--entry").length;a>0&&n+e+i>t;){var o=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();o.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(o),n=$(".interapp-links").outerWidth()+i,a--}}}},{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+"";this.toastError("\n "+$.i18n("invalid-params")+"\n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/;t.start&&/^\d{4}-\d{2}$/.test(t.start)&&(t.start=t.start+"-01",t.monthly=!0),t.end&&/^\d{4}-\d{2}$/.test(t.end)?t.end=moment(t.end+"-01").endOf("month").format("YYYY-MM-DD"):t.monthly=!1;var i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+"\n "+$.i18n("invalid-params")+"\n "),!1;t.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(t.start).toDate(),this.monthEnd=moment(t.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(u).find(function(e){return u[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var a=this.getExportFilename()+"."+e;n.download=a,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){return"true"===(this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),a=i?"month":"day",o=i?"YYYY-MM":"YYYY-MM-DD",r=moment(this.daterangepicker.startDate);r.isBefore(n);r.add(1,a))t?e.push(r.format(this.dateFormat)):e.push(r.format(o));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e,i,n){var a=this.getExpandedPageURL(t)+"&action=history";return i&&n&&(a+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+e+""}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e,i,n){var a='target="_blank" href="'+this.getPageURL(t,e)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(e)){var o=this.getProjectLang(e);a+=" lang="+o+' dir="'+(this.config.rtlLangs.includes(o)?"rtl":"ltr")+'"'}return'"+(i||t.descore().escape())+""}},{key:"getPageURL",value:function(t){return"//"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+""}},{key:"getProjectLang",value:function(t){return(t||this.project).split(".")[0]}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY", "zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(a){e.siteInfo[t]=a.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getEditData",value:function(t){var e=$.Deferred();return $.ajax({url:"/pageviews/api.php",data:{pages:t.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD")},timeout:8e3}).done(function(t){return e.resolve(t)}).fail(function(){var i={};t.forEach(function(t){return i[t]={}}),e.resolve({pages:i})}),e}},{key:"getPageAssessments",value:function(t){var e=this,i=$.Deferred();return this.config.pageAssessmentProjects.includes(this.project)?(this.massApi({prop:"pageassessments",titles:t.join("|")},this.project,"pacontinue","pages").done(function(t){if(!t.pages)return i.resolve({});var n={};return t.pages.forEach(function(t){if(t.pageassessments){var i=Object.keys(t.pageassessments),a=t.pageassessments[i[0]];if(a&&a.class.length&&!n[t.title]){var o=e.config.pageAssessmentBadges[e.project][a.class]||"";if(!o.length)return;var r=""+a.class+"";n[t.title]=r}}}),i.resolve(n)}),i):i.resolve({})}},{key:"getAssessmentBadge",value:function(t){return t.assessment?t.assessment_img?""+t.assessment+"":t.assessment:""}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===$(this.config.dataSourceSelector).val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===$(this.config.dataSourceSelector).val()}},{key:"isPagecounts",value:function(){return"pagecounts"===$(this.config.dataSourceSelector).val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(t)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var o=$.Deferred(),r={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return o.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=a):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=a||r[n].length>=a),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),o.resolve(r))}).fail(function(t){o.reject(t)})}(),o}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},a=0;a0&&void 0!==arguments[0])||arguments[0],e=$(this.config.select2Input);e.data("select2")&&(e.off("change"),e.select2("val",null),e.select2("data",null),e.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,this.setLocalStorage("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,a=void 0;if(t.includes("latest-")){a=parseInt(t.replace("latest-",""),10)||20;var o=this.config.specialRanges.latest(a),r=s(o,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(a?$.i18n("latest-days",a):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var a={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(a.dateLimit={days:this.config.dateLimit}),this.daterangepicker){$(this.config.dateRangeSelector).data("daterangepicker").remove();var o=$(this.config.dateRangeSelector).remove();$(".date-selector").append(o)}$(this.config.dateRangeSelector).daterangepicker(a),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),a=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:a,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")});if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&function(t){e.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)}()}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],a=t[i];void 0===n||e.config.validParams[i].includes(a)||(a&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&$(this.config.projectInput).trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t="mediaviews"===this.app?"commons.wikimedia.org":$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:o,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[o,o],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(o)?moment().startOf("week"):o],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(o)?moment().startOf("month"):o],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(o)?moment().startOf("year"):o],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),o],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:o;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return a(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"wikimediafoundation.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gorwiki:"gor.wikipedia.org", -gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",satwikipedia:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwiktionary:"tr.wiktionary.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,e.clientX)-n,o=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(a),l=r.getValueForPixel(o);if(o-a<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],a=t.zoom._dragZoomStart,o=t.zoom._dragZoomEnd,r=a.target.getBoundingClientRect().left,s=Math.min(a.clientX,o.clientX)-r,l=Math.max(a.clientX,o.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file +gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwiktionary:"tr.wiktionary.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,e.clientX)-n,o=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(a),l=r.getValueForPixel(o);if(o-a<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],a=t.zoom._dragZoomStart,o=t.zoom._dragZoomEnd,r=a.target.getBoundingClientRect().left,s=Math.min(a.clientX,o.clientX)-r,l=Math.max(a.clientX,o.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file diff --git a/public_html/mediaviews/application.js b/public_html/mediaviews/application.js index 1c62b7b4f..3bddda900 100644 --- a/public_html/mediaviews/application.js +++ b/public_html/mediaviews/application.js @@ -15,5 +15,5 @@ o.backgroundColor=n.backgroundColor?n.backgroundColor:e.getValueAtIndexOrDefault var n=this,a=n._view,o=a.spanGaps,r=a.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,p,f;if(c.length&&a.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,a=i.isHorizontal();return n.xLabels&&a||n.yLabels&&!a?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var a=this,o=Math.max(a.maxIndex+1-a.minIndex-(a.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=a.getLabels(),s=r.indexOf(t);e=-1!==s?s:e}if(a.isHorizontal()){var l=a.width-(a.paddingLeft+a.paddingRight),c=l/o,u=c*(e-a.minIndex)+a.paddingLeft;return(a.options.gridLines.offsetGridLines&&n||a.maxIndex===a.minIndex&&n)&&(u+=c/2),a.left+Math.round(u)}var d=a.height-(a.paddingTop+a.paddingBottom),h=d/o,p=h*(e-a.minIndex)+a.paddingTop;return a.options.gridLines.offsetGridLines&&n&&(p+=h/2),a.top+Math.round(p)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,i=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),n=e.isHorizontal(),a=n?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),o=a/i;return t-=n?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=o/2),t-=n?e.paddingLeft:e.paddingTop,0>=t?0:Math.round(t/o)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var a=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var o=e.log10(Math.abs(a)),r="";if(0!==t){var s=-1*Math.floor(o);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,a=i.chart,o=a.data,r=o.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(r,function(o,r){var s=a.getDatasetMeta(r);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;a.isDatasetVisible(r)&&t(s)&&e.each(o.data,function(t,e){var a=+i.getRightValue(t);isNaN(a)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>a?u[e]+=a:c[e]+=a)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),a=e.min(n),o=e.max(n);i.min=null===i.min?a:Math.min(i.min,a),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(r,function(n,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,a=n.options.ticks;if(n.isHorizontal())i=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(n.width/50));else{var o=e.getValueOrDefault(a.fontSize,t.defaults.global.defaultFontSize);i=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(n.height/(2*o)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,a=n.paddingLeft,o=n.paddingBottom,r=n.start,s=+n.getRightValue(t),l=n.end-r;return n.isHorizontal()?(i=n.width-(a+n.paddingRight),e=n.left+i/l*(s-r),Math.round(e+a)):(i=n.height-(n.paddingTop+o),e=n.bottom-o-i/l*(s-r),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,a=e.paddingBottom,o=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+a),r=(i?t-e.left-n:e.bottom-a-t)/o;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var a=e.sign(t.min),o=e.sign(t.max);0>a&&0>o?t.max=0:a>0&&o>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],a=i.ticks,o=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var s;if(a.fixedStepSize&&a.fixedStepSize>0||a.stepSize&&a.stepSize>0)s=o(a.fixedStepSize,a.stepSize);else{var l=e.niceNum(t.max-t.min,!1);s=e.niceNum(l/(r-1),!0)}var c=Math.floor(t.min/s)*s,u=Math.ceil(t.max/s)*s,d=(u-c)/s;d=e.almostEquals(d,Math.round(d),s/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==a.min?a.min:c);for(var h=1;d>h;++h)n.push(c+h*s);n.push(void 0!==a.max?a.max:u),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),a.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,a=n.ticks,o=i.chart,r=o.data,s=r.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(a,r){var s=o.getDatasetMeta(r);o.isDatasetVisible(r)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(a.data,function(t,e){var a=u[s.type],o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(a[e]=a[e]||0,n.relativePoints?a[e]=100:a[e]+=o)}))}),e.each(u,function(t){var n=e.min(t),a=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?a:Math.max(i.max,a)})}else e.each(s,function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,a,o,r,s,l,c,u,d,h,p,f=this.options.pointLabels,g=e.getValueOrDefault(f.fontSize,i.defaultFontSize),m=e.getValueOrDefault(f.fontStyle,i.defaultFontStyle),v=e.getValueOrDefault(f.fontFamily,i.defaultFontFamily),y=e.fontString(g,m,v),k=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=y,n=0;nw&&(w=t.x+o,r=n),t.x-oD?t.x+a>w&&(w=t.x+a,r=n):t.x-ae&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,a=n.gridLines,o=n.ticks,r=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(o.fontSize,i.defaultFontSize),d=l(o.fontStyle,i.defaultFontStyle),h=l(o.fontFamily,i.defaultFontFamily),p=e.fontString(u,d,h);if(e.each(t.ticks,function(r,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(a.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(a.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(a.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var f=0;f=0;k--){if(r.display){var w=t.getPointPosition(k,f);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(k,f+5),x=l(s.fontColor,i.defaultFontColor);c.font=y,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(k)+Math.PI/2,_=360*C/(2*Math.PI)%360;c.textAlign=0===_||180===_?"center":180>_?"left":"right",c.textBaseline=90===_||270===_?"middle":_>270||90>_?"bottom":"top",c.fillText(D[k]?D[k]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",a,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},a={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},o=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),void 0!==i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&!1!==e.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(a,o){var r=[],s=t.chart.isDatasetVisible(o);"object"==typeof a.data[0]&&null!==a.data[0]?e.each(a.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),r.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):r=i,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var a=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):a=i,t.labelDiffs.push(a)},t)},buildTicks:function(){var n=this;n.ctx.save();var a=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),o=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(a,o,r);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width;u=u*Math.cos(e.toRadians(n.options.ticks.maxRotation))+a*Math.sin(e.toRadians(n.options.ticks.maxRotation));var d=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var h=0,p=i.units[h];h=Math.ceil(n.scaleSizeInUnits/d)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,p.steps[f]);break}break}if(!1===p.maxStep||Math.ceil(n.scaleSizeInUnits/d)k?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):k>=0&&(n.lastTick=y),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var w=1;w<=n.scaleSizeInUnits;++w){var b=v.clone().add(w,n.tickUnit);if(n.options.time.max&&b.diff(n.lastTick,n.tickUnit,!0)>=0)break;w%n.unitScale==0&&n.ticks.push(b)}(0!==n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit)||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t10&&(e.files=e.files.slice(0,10)),i?$("#category_source").prop("checked",!0):$("#file_source").prop("checked",!0),this.setupDataSourceSelector(),this.setInitialChartType(e.category?1:e.files.length),this.getFileInfo(e.files.unique()).then(function(e){var i=Object.keys(e.entities);if(!i.length)return t.resetView(!1,!1);t.setSelect2Defaults(t.underscorePageNames(i))})}},{key:"getFileInfo",value:function(t){var e=this,i=$.Deferred(),n=Object.keys(this.entityInfo.entities);if(t=t.filter(function(t){return!n.includes(t)}),!t.length)return i.resolve({});try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent("File:"+t))})}catch(t){}return $.ajax({url:"https://commons.wikimedia.org/w/api.php?action=query&prop=imageinfo&iiprop=mediatype|size|timestamp&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).done(function(n){n.query.normalized&&n.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var a={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}var i=n.query.pages.find(function(e){return e.title===t});return i.missing?void e.writeMessage(e.getFileLink(t)+": "+$.i18n("api-error-no-data")):(i=i.imageinfo&&i.imageinfo[0]?i.imageinfo[0]:{},["AUDIO","VIDEO"].includes(i.mediatype)?void(a[t.replace(/^File:/,"")]=Object.assign({title:t},i)):void e.toastWarn($.i18n("invalid-media-file",e.getFileLink(t))))}),e.entityInfo={entities:a},i.resolve(e.entityInfo)}).fail(function(){i.resolve({})}),i}},{key:"getCategoryInfo",value:function(t){var e=this,i=$.Deferred();return t=t.replace(/^Category:/,""),$.ajax({url:"https://commons.wikimedia.org/w/api.php?action=query&prop=categoryinfo&titles=Category:"+t+"&format=json&formatversion=2",dataType:"jsonp"}).done(function(a){a.query.normalized&&(t=a.query.normalized[0].to.replace(/^Category:/,""));var o=a.query.pages[0];if(!o||o.missing)return i.reject(e.getCategoryLink(t)+": "+$.i18n("api-error-no-data"));o=o.categoryinfo;var r=n({},t.replace(/^Category:/,""),Object.assign({title:t},o));return e.entityInfo={entities:r},i.resolve(e.entityInfo)}).fail(function(){i.resolve({})}),i}},{key:"getParams",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e={};return this.specialRange&&t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),this.noLogScale&&(e.autolog="false"),e}},{key:"pushParams",value:function(){var t=this.getEntities(),e=this.isCategory()?"category":"files";window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+e+"="+t.join("|")),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+e+"="+t.join("%7C"))}},{key:"getEntities",value:function(){return this.isCategory()?[$("#category-input").val().score()]:$(this.config.select2Input).select2("val")||[]}},{key:"setupSelect2",value:function(){var t=this,e=$(this.config.select2Input),i=this.isCategory(),n={ajax:{url:"https://commons.wikimedia.org/w/api.php",dataType:"jsonp",delay:200,jsonpCallback:"fileSuggestionCallback",data:function(e){return{action:"query",list:"prefixsearch",format:"json",pssearch:e.term||"",psnamespace:t.isCategory()?14:6,cirrusUseCompletionSuggester:"yes"}}, processResults:function(e){var n=e?e.query:{},a=[];if(!n)return{results:a};if(n.prefixsearch.length){var o=n.prefixsearch.map(function(t){return t.title});i||(o=o.filter(function(t){return!/\.(png|jpe?g|gif|svg|pdf|djvu)$/.test(t.toLowerCase())})),a=o.map(function(e){var n=t.stripNamespace(e,i);return{id:n.score(),text:n}})}return{results:a}},cache:!0},placeholder:$.i18n("article-placeholder"),maximumSelectionLength:10,minimumInputLength:1};e.select2(n),e.off("select2:select").on("select2:select",this.processInput.bind(this)),e.off("select2:unselect").on("select2:unselect",function(i){t.processInput(!1,i.params.data.text),e.trigger("select2:close")})}},{key:"setupCategorySearch",value:function(){this.typeahead&&this.typeahead.destroy(),$("#category-input").typeahead({ajax:{url:"https://commons.wikimedia.org/w/api.php",timeout:200,triggerLength:1,method:"get",preDispatch:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:t,psnamespace:14}},preProcess:function(t){return t.query.prefixsearch.map(function(t){return t.title.replace(/^Category:/,"")})}}})}},{key:"setState",value:function(t,e){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(t),t){case"initial":this.updateProgressBar(0),this.clearMessages(),this.destroyChart(),$(".output").removeClass("list-mode").removeClass("chart-mode"),$("aside").removeClass("disabled"),$(".data-links").addClass("invisible"),this.typeahead&&this.typeahead.hide(),$(this.config.sourceInput).val("").focus(),"function"==typeof e&&e.call(this);break;case"processing":this.processStarted(),this.clearMessages(),document.activeElement.blur(),$(".progress-bar").addClass("active"),$("aside").addClass("disabled");break;case"complete":this.processEnded(),this.updateProgressBar(0),$(".progress-bar").removeClass("active"),$(".data-links").removeClass("invisible"),$("aside").removeClass("disabled")}}},{key:"setupListeners",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.updateTable()}),$(".clear-pages").on("click",function(){t.resetView(!0),t.focusSelect2()}),$("#pv_form").on("submit",function(e){e.preventDefault(),t.processInput()}),$(".another-query").on("click",function(){t.setState("initial"),t.pushParams(!0)})}},{key:"setupDataSourceSelector",value:function(){var t=this;$(".data-source").on("change",function(e){t.resetView(),"category"===e.target.value?t.setupCategoryInterface():t.setupFileInterface()})}},{key:"setupCategoryInterface",value:function(){this.resetSelect2(!1),$(".num-entities-info").hide(),$(".file-selector").hide(),$(".category-selector").show(),$("#category-input").val("").focus(),this.setupCategorySearch()}},{key:"setupFileInterface",value:function(){$(".num-entities-info").show(),$(".file-selector").show(),$(".category-selector").hide(),this.resetSelect2(),this.focusSelect2()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"resetView",this).call(this,t,i),$(".output-list").html(""),$(".single-entity-stats").html(""),$(".single-entity-legend").html(""),$(".file-selector").removeClass("disabled")}},{key:"processInput",value:function(t,e){this.pushParams(),(t||location.search!==this.params||this.prevChartType!==this.chartType)&&(this.prevChartType&&this.clearMessages(),this.params=location.search,this.isCategory()?this.processCategory():this.processFiles(e))}},{key:"processFiles",value:function(t){var e=this,i=$(c.select2Input).select2("val")||[];if(!i.length)return this.resetView();this.patchUsage(),this.setInitialChartType(i.length),this.prevChartType&&this.clearMessages(),this.prevChartType=this.chartType,this.destroyChart(),this.startSpinny(),t?(this.outputData=this.outputData.filter(function(e){return e.label!==t.descore()}),this.outputData=this.outputData.map(function(t){return Object.assign({},t,e.config.chartConfig[e.chartType].dataset(t.color))}),delete this.entityInfo.entities[t],this.updateChart()):this.getFileInfo(i).then(function(t){e.getPlayCounts(i,!1).done(function(t){var n=i.map(function(t){return"File:"+t});e.getPageViewsData(n).done(function(i){i=e.buildChartData(i.datasets,n,"views"),i.forEach(function(t){var i=t.label.replace(/^File:/,"");e.entityInfo.entities[i]&&Object.assign(e.entityInfo.entities[i],{pageviews:t.sum,pageviewsAvg:t.average})}),e.updateChart(t)})})})}},{key:"processCategory",value:function(){var t=this;this.setState("processing"),this.patchUsage(),this.getCategoryInfo($("#category-input").val()).then(function(){}).fail(function(e){t.setState("initial"),"string"==typeof e?t.writeMessage(e):t.writeMessage($.i18n("api-error-unknown","Wikidata"))})}},{key:"getMPCApiUrl",value:function(t,e,i){arguments.length>3&&void 0!==arguments[3]&&arguments[3];return"/mediaviews/api.php?endpoint=https://tools.wmflabs.org/mediaviews-api/api/2/file_playcount/date_range/"+t+"/"+e.format(this.config.mpcDateFormat)+"/"+i.format(this.config.mpcDateFormat)}},{key:"getPlayCounts",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=$.Deferred(),a=t.length,o=[],r=0,s=this.daterangepicker.startDate.startOf("day"),l=this.daterangepicker.endDate.startOf("day"),c={entities:t,labels:[],datasets:new Array(a),errors:[],fatalErrors:[],promises:[]},u=function(t,u){var d=e.getMPCApiUrl(t,s,l,i),h=$.ajax({url:d,dataType:"json"});c.promises.push(h),h.done(function(i){try{var n=c.entities.indexOf(t);c.datasets[n]=i.details,i.details&&!c.labels.length&&(c.labels=i.details.map(function(t){return moment(t.date,e.config.mpcDateFormat).format(e.dateFormat)}))}catch(t){return c.fatalErrors.push(t)}}).fail(function(n){var a=c.entities.indexOf(t);c.entities.splice(a,1),c.datasets.splice(a,1);var o=e.getFileLink(t,i);c.errors.push(o+": "+$.i18n("api-error","Playcounts API")+" - "+n.responseJSON.title)}).always(function(){++r===a&&(n.resolve(c),o.length&&e.writeMessage($.i18n("api-error-timeout","
    "+o.map(function(t){return"
  • "+e.getFileLink(t,i)+"
  • "}).join("")+"
")))})};return t.forEach(function(t,e){return u(t)}),n}},{key:"updateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSingleEntityLegend();$(".single-entity-stats").html(""),$(".output-list").html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),a=t.getSortProperty(i,t.sort);return na?-t.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" .glyphicon").addClass(i).removeClass("glyphicon-sort"),e.forEach(function(e,i){$(".output-list").append(t.config.templates.tableRow(t,e))});var n=e.reduce(function(t,e){return t+e.sum},0),a={label:$.i18n("num-files",this.formatNumber(e.length),e.length),sum:n,average:Math.round(n/this.numDaysInRange())};["pageviews","duration","size"].forEach(function(t){a[t]=e.reduce(function(e,i){return e+i[t]},0)}),$(".output-list").append(this.config.templates.tableRow(this,a,!0)),$(".table-view").show()}},{key:"getSortProperty",value:function(t,e){return"file"===e?t.title:"playcounts"===e?t.sum:"date"===e?moment(this.formatTimestamp(t.timestamp),this.dateFormat).unix():"type"===e?t.mediatype:Number(t[e])}},{key:"getFileLink",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"getPageLink",this).call(this,this.addNamespace(t,i),"commons.wikimedia.org",t.replace(/^(Category|File):/,""))}},{key:"getCategoryLink",value:function(t){return this.getFileLink(t,!0)}},{key:"formatTimestamp",value:function(t){return moment(t.substring(0,10),"YYYY-MM-DD").format(this.dateFormat)}},{key:"getPageviewsLink",value:function(t,e){var i=this.getParams(!1),n=this.addNamespace(encodeURIComponent(t.score()).replace("'",escape),this.isCategory());return""+e+""}},{key:"isCategory",value:function(){return $("#category_source").is(":checked")}},{key:"stripNamespace",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e?"Category":"File";return t=t.replace(new RegExp("^"+n+":"),""),i?n+":"+t:t}},{key:"addNamespace",value:function(t,e){return this.stripNamespace(t,e,!0)}},{key:"showSingleEntityLegend",value:function(){var t=this.outputData[0],e=this.isCategory();$(".table-view").hide(),$(".single-entity-stats").html("\n "+this.getFileLink(this.addNamespace(t.label,e),e)+"\n ·\n \n "+$(this.config.dateRangeSelector).val()+"\n \n ·\n "+$.i18n("num-playcounts",this.formatNumber(t.sum),t.sum)+"\n \n "),$(".single-entity-legend").html(this.config.templates.chartLegend(this))}},{key:"validateParams",value:function(t){return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateParams",this).call(this,t)}},{key:"typeahead",get:function(){return $("#category-input").data("typeahead")}}]),e}(mix(u).with(d,h));$(document).ready(function(){return document.location.hash&&!document.location.search?document.location.href=document.location.href.replace("#","?"):document.location.hash?document.location.href=document.location.href.replace(/\#.*/,""):void new p})},{"../shared/chart_helpers":4,"../shared/list_helpers":6,"../shared/pv":8,"./config":1}],3:[function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var a={chartLegend:function(t){var e=function(e){var i,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=n({},$.i18n("playcounts"),(i={},n(i,$.i18n("playcounts"),t.formatNumber(e.sum)),n(i,$.i18n("daily-average"),t.formatNumber(e.average)),i));if(e.pageviews){var r,s=a?t.formatNumber(e.pageviews):t.getPageviewsLink(e.label,t.formatNumber(e.pageviews));o[$.i18n("pageviews")]=(r={},n(r,$.i18n("pageviews"),s),n(r,$.i18n("daily-average"),t.formatNumber(e.pageviewsAvg)),r)}var l=$.i18n("statistics");if(o[l]={},t.isCategory())e.files&&(o[l][$.i18n("files")]=t.formatNumber(e.files)),e.subcats&&(o[l][$.i18n("subcategories")]=t.formatNumber(e.subcats));else{if(e.duration){var c=Math.round(e.duration);o[l][$.i18n("duration")]=$.i18n("num-seconds",c,t.formatNumber(c))}e.size&&(o[l][$.i18n("size")]=$.i18n("num-bytes",t.formatNumber(e.size),e.size)),e.timestamp&&(o[l][$.i18n("date")]=t.formatTimestamp(e.timestamp)),e.mediatype&&(o[l][$.i18n("file-type")]=e.mediatype.toLowerCase())}var u="";for(var d in o){u+="
\n
"+d+"

\n
";for(var h in o[d]){var p=o[d][h];p&&(u+='\n
\n '+h+":\n \n "+p+"\n \n
")}u+="
"}return u};if(1===t.outputData.length)return e(t.outputData[0]);var i=t.outputData.reduce(function(t,e){return t+e.sum},0),a=t.outputData.reduce(function(t,e){return t+e.pageviews},0),o=t.outputData.reduce(function(t,e){return t+e.size},0);return e({sum:i,average:Math.round(i/t.numDaysInRange()),pageviews:a,pageviewsAvg:Math.round(a/t.numDaysInRange()),duration:t.outputData.reduce(function(t,e){return t+e.duration},0),size:o,sizeAvg:Math.round(o/t.numDaysInRange())},!0)},tableRow:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=i?"th":"td";$(".sort-link--sum .col-heading").text($.i18n("playcounts"));var a="?";return e.pageviews&&(a=i?t.formatNumber(e.pageviews):t.getPageviewsLink(e.label,t.formatNumber(e.pageviews))),"\n \n <"+n+" class='table-view--color-col'>\n \n \n <"+n+" class='table-view--file'>"+(i?e.label:t.getFileLink("File:"+e.label))+"\n <"+n+" class='table-view--playcounts'>"+t.formatNumber(e.sum)+"\n <"+n+" class='table-view--average'>"+t.formatNumber(e.average)+"\n <"+n+" class='table-view--pageviews'>"+a+"\n <"+n+" class='table-view--duration'>"+t.formatNumber(Math.round(e.duration))+"\n <"+n+" class='table-view--size'>"+t.formatNumber(e.size)+"\n <"+n+" class='table-view--date'>"+(i?"":t.formatTimestamp(e.timestamp))+"\n <"+n+" class='table-view--file-type'>"+(i?"":e.mediatype)+"\n \n "}};e.exports=a},{}],4:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=this.getFromLocalStorage("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var a='"'+t.label.replace(/"/g,'""')+'"';e.push(a),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var a={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){a[t.replace(/\\/,"")]=i.data[e]}),e.push(a)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,o={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");o[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(o[r.format("YYYYMMDD")])t.items.push(o[r.format("YYYYMMDD")]);else{var s=r.isSame(this.maxDate)||r.isSame(moment(this.maxDate).subtract(1,"days"));t.items.push(a({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e,i){var n=this,a=void 0,o=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD",r=this.getDateHeadings(!1);return a=i||(this.isPageviews()?"views":["metaviews","mediaviews"].includes(this.app)||this.isPagecounts()?"count":"devices"),t.map(function(t,i){var s=new Array(r.length),l=0,c=void 0,u=0;t.forEach(function(t){var e=t[a],i=void 0;i="metaviews"===n.app?t.date:"mediaviews"===n.app?moment(t.date,n.config.mpcDateFormat).format(o):moment(t.timestamp,n.config.timestampFormat).format(o),s[r.indexOf(i)]=e,l+=e||0,e>u&&(u=e),(void 0===c||e";e.toastWarn($.i18n("new-article-warning",n))}});var h="siteviews"===e.app?e.getSiteLink(u):e.getPageLink(u,e.project),p="pageviews";e.isUniqueDevices()?p="unique-devices":e.isPagecounts()&&(p="pagecounts"),c.errors.push(h+": "+$.i18n("api-error",p.upcase()+" API")+" - "+n)}}).always(function(){++n===o&&(e.pageViewsData=c,i.resolve(c),r.length&&e.writeMessage($.i18n("api-error-timeout","
    "+r.map(function(t){return"
  • "+e.getPageLink(t,e.project.escape())+"
  • "}).join("")+"
")))})};return t.forEach(function(t,e){return u(t,e)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"isLogarithmic",value:function(){return $(this.config.logarithmicCheckbox).is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"printChart",value:function(){var t=window.open();t.document.write(''),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),$(this.config.chart).hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){if("line"===this.chartType){var t=this.getDateHeadings().length;Chart.defaults.global.elements.point.hitRadius=t>50?3:t>30?5:t>20?10:30}}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var a=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(a<=10)return!1;var o=!1;return i.forEach(function(t){t.push(a);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return o=!0}),o}},{key:"setupDateRangeSelector",value:function(){var t=this;if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=$(this.config.dateRangeSelector);$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"setupMonthSelector",value:function(t,e){var i=this;this.monthDatepicker&&this.monthDatepicker.destroy(),$(".month-selector").datepicker({autoclose:!0,format:"M yyyy",viewMode:"months",minViewMode:"months",startDate:this.minDate.toDate(),endDate:this.maxMonth,disableTouchKeyboard:!0}),t=t||this.initialMonthStart,e=e||this.maxMonth;var n=function(t,e){return ti.maxMonth&&(e=i.maxMonth),(ee)&&(t=e),[t,e]},a=n(t,e),o=l(a,2);t=o[0],e=o[1],this.monthStartDatepicker.setDate(t),this.monthEndDatepicker.setDate(e),this.daterangepicker.startDate=moment(t).startOf("month"),this.daterangepicker.setEndDate(moment(e).endOf("month"));var r=function(){var t=n(i.monthStartDatepicker.getDate(),i.monthEndDatepicker.getDate()),e=l(t,2),a=e[0],o=e[1];i.daterangepicker.startDate=moment(a).startOf("month"),i.daterangepicker.setEndDate(moment(o).endOf("month"))};$(".month-selector-start").on("hide",r),$(".month-selector-end").on("hide",r)}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:$(this.config.select2Input).val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var a=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));$(this.config.logarithmicCheckbox).prop("checked",a),$(".begin-at-zero").toggleClass("disabled",a)}this.outputData=this.setColorsAndLogValues(this.outputData);var o=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(o.scales=Object.assign({},o.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=$(this.config.chart)[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?o.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(o.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),o.zoom=["pageviews","siteviews","mediaviews"].includes(this.app)&&this.numDaysInRange()>1&&!this.isMonthly()),$(".show-labels-option").is(":checked")?o=this.showPointLabels(o):(delete o.animation.onComplete,delete o.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:o})}else delete o.animation.onComplete,delete o.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:o})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews","mediaviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){if(["bar","line"].includes(this.chartType)){var e=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},i=function(t,i){var n=t.chart,a=e(n.ctx);Chart.helpers.each(t.data.datasets.forEach(function(e,o){var r=n.controller.getDatasetMeta(o);Chart.helpers.each(r.data.forEach(function(t,n){a.fillStyle="rgba(68,68,68,"+i+")";var o=e._meta[Object.keys(e._meta)[0]].data[n]._yScale.maxHeight,r=(o-t._model.y)/o>=.93?t._model.y+5:t._model.y-10;a.fillText(e.data[n],t._model.x,r)}),t)}),t)};return t.animation.onComplete=function(){i(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;i(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}},{key:"monthDatepicker",get:function(){return $(".month-selector").data("datepicker")}},{key:"monthStartDatepicker",get:function(){return $(".month-selector-start").data("datepicker")}},{key:"monthEndDatepicker",get:function(){return $(".month-selector-end").data("datepicker")}}]),e}(t)};e.exports=d},{"./zoom_plugin":11}],5:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new o(t)};var o=function(){function t(e){n(this,t),this.superclass=e}return a(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ia?-e.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var a=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" .glyphicon").addClass(a).removeClass("glyphicon-sort");try{t(n)}catch(t){this.setState("complete"),this.showFatalErrors([t])}finally{this.pushParams()}this.toggleView(this.view),"complete"!==this.getState()&&this.setState("complete")}},{key:"toggleView",value:function(t){var e=this;if($(".view-btn").removeClass("active"),$(".view-btn--"+t).addClass("active"),$(".output").removeClass("list-mode").removeClass("chart-mode").addClass(t+"-mode"),"chart"===t){this.destroyChart(),this.config.circularCharts.includes(this.chartType)&&(this.chartType="bar");var i=Object.assign({},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);if(this.assignOutputDataChartOpts(),this.setChartPointDetectionRadius(),"true"===this.autoLogDetection){var n=this.shouldBeLogarithmic([this.outputData.datasets[0].data]);$(this.config.logarithmicCheckbox).prop("checked",n)}this.isLogarithmic()&&(i.scales=Object.assign({},i.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),$(".show-labels-option").is(":checked")?i=this.showPointLabels(i):(delete i.animation.onComplete,delete i.animation.onProgress),"radar"===this.chartType?i.scale.ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"):i.scales.yAxes[0].ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"),this.outputData.labels=this.getDateHeadings();var a=$(this.config.chart)[0].getContext("2d");this.chartObj=new Chart(a,{type:this.chartType,data:this.outputData,options:i}),$(".chart-specific").show(),$("#chart-legend").html(this.chartObj.generateLegend())}else $(".chart-specific").hide();this.pushParams()}},{key:"updateProgressBar",value:function(t,e){if(!e)return $(".progress-bar").css("width","0%"),$(".progress-counter").text("");var i=t/e*100;$(".progress-bar").css("width",i.toFixed(2)+"%"),t===e?$(".progress-counter").text("Building dataset..."):$(".progress-counter").text($.i18n("processing-page",t,e))}}]),e}(t)};e.exports=s},{}],7:[function(t,e,i){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t){return-1!==this.indexOf(t)}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],a=void 0,o=0;o>>0,n=arguments[1],a=n>>0,o=a<0?Math.max(i+a,0):Math.min(a,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);oThis is the staging environment!

\n

To use the staging app, append debug=true to the URL

\n

Otherwise, please update your links to use\n https://"+location.host+s+"\n

\n

\n Redirecting you to the production "+document.title+" in\n 10...\n

\n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),o(i)}return i.debug?window.app=i:i.splash(),i.loadTranslations(),$.extend($.i18n.parser.emitter,{link:function(t){return''+t[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return r(e,t),l(e,[{key:"loadTranslations",value:function(){var t=n({},i18nLang,appPath+"/"+currentApp+"/messages/"+i18nLang+".json");"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(e){t[e]=appPath+"/"+currentApp+"/messages/"+e+".json"}),t.en=appPath+"/"+currentApp+"/messages/en.json"),$.i18n({locale:i18nLang}).load(t).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var t=$(window).width(),e=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(t<768)){n+e+i>t&&$(".interapp-links--more").removeClass("hidden");for(var a=$(".interapp-links--entry").length;a>0&&n+e+i>t;){var o=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();o.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(o),n=$(".interapp-links").outerWidth()+i,a--}}}},{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+"";this.toastError("\n "+$.i18n("invalid-params")+"\n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/;t.start&&/^\d{4}-\d{2}$/.test(t.start)&&(t.start=t.start+"-01",t.monthly=!0),t.end&&/^\d{4}-\d{2}$/.test(t.end)?t.end=moment(t.end+"-01").endOf("month").format("YYYY-MM-DD"):t.monthly=!1;var i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+"\n "+$.i18n("invalid-params")+"\n "),!1;t.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(t.start).toDate(),this.monthEnd=moment(t.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(u).find(function(e){return u[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var a=this.getExportFilename()+"."+e;n.download=a,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){return"true"===(this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),a=i?"month":"day",o=i?"YYYY-MM":"YYYY-MM-DD",r=moment(this.daterangepicker.startDate);r.isBefore(n);r.add(1,a))t?e.push(r.format(this.dateFormat)):e.push(r.format(o));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e,i,n){var a=this.getExpandedPageURL(t)+"&action=history";return i&&n&&(a+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+e+""}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e,i,n){var a='target="_blank" href="'+this.getPageURL(t,e)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(e)){var o=this.getProjectLang(e);a+=" lang="+o+' dir="'+(this.config.rtlLangs.includes(o)?"rtl":"ltr")+'"'}return'"+(i||t.descore().escape())+""}},{key:"getPageURL",value:function(t){return"//"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+""}},{key:"getProjectLang",value:function(t){return(t||this.project).split(".")[0]}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(a){e.siteInfo[t]=a.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getEditData",value:function(t){var e=$.Deferred();return $.ajax({url:"/pageviews/api.php",data:{pages:t.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD")},timeout:8e3}).done(function(t){return e.resolve(t)}).fail(function(){var i={};t.forEach(function(t){return i[t]={}}),e.resolve({pages:i})}),e}},{key:"getPageAssessments",value:function(t){var e=this,i=$.Deferred();return this.config.pageAssessmentProjects.includes(this.project)?(this.massApi({prop:"pageassessments",titles:t.join("|")},this.project,"pacontinue","pages").done(function(t){if(!t.pages)return i.resolve({});var n={};return t.pages.forEach(function(t){if(t.pageassessments){var i=Object.keys(t.pageassessments),a=t.pageassessments[i[0]];if(a&&a.class.length&&!n[t.title]){var o=e.config.pageAssessmentBadges[e.project][a.class]||"";if(!o.length)return;var r=""+a.class+"";n[t.title]=r}}}),i.resolve(n)}),i):i.resolve({})}},{key:"getAssessmentBadge",value:function(t){return t.assessment?t.assessment_img?""+t.assessment+"":t.assessment:""}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===$(this.config.dataSourceSelector).val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===$(this.config.dataSourceSelector).val()}},{key:"isPagecounts",value:function(){return"pagecounts"===$(this.config.dataSourceSelector).val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(t)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var o=$.Deferred(),r={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return o.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=a):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=a||r[n].length>=a),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),o.resolve(r))}).fail(function(t){o.reject(t)})}(),o}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},a=0;a0&&void 0!==arguments[0])||arguments[0],e=$(this.config.select2Input);e.data("select2")&&(e.off("change"),e.select2("val",null),e.select2("data",null),e.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,this.setLocalStorage("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,a=void 0;if(t.includes("latest-")){a=parseInt(t.replace("latest-",""),10)||20;var o=this.config.specialRanges.latest(a),r=s(o,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(a?$.i18n("latest-days",a):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var a={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(a.dateLimit={days:this.config.dateLimit}),this.daterangepicker){ -$(this.config.dateRangeSelector).data("daterangepicker").remove();var o=$(this.config.dateRangeSelector).remove();$(".date-selector").append(o)}$(this.config.dateRangeSelector).daterangepicker(a),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),a=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:a,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")});if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&function(t){e.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)}()}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],a=t[i];void 0===n||e.config.validParams[i].includes(a)||(a&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&$(this.config.projectInput).trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t="mediaviews"===this.app?"commons.wikimedia.org":$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":5,"./polyfills":7,"./pv_config":9,"./site_map":10}],9:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:o,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[o,o],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(o)?moment().startOf("week"):o],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(o)?moment().startOf("month"):o],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(o)?moment().startOf("year"):o],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),o],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:o;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return a(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":10}],10:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"wikimediafoundation.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",satwikipedia:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org", +$(this.config.dateRangeSelector).data("daterangepicker").remove();var o=$(this.config.dateRangeSelector).remove();$(".date-selector").append(o)}$(this.config.dateRangeSelector).daterangepicker(a),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),a=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:a,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")});if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&function(t){e.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)}()}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],a=t[i];void 0===n||e.config.validParams[i].includes(a)||(a&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&$(this.config.projectInput).trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t="mediaviews"===this.app?"commons.wikimedia.org":$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":5,"./polyfills":7,"./pv_config":9,"./site_map":10}],9:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:o,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[o,o],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(o)?moment().startOf("week"):o],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(o)?moment().startOf("month"):o],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(o)?moment().startOf("year"):o],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),o],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:o;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return a(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":10}],10:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"wikimediafoundation.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org", sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwiktionary:"tr.wiktionary.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],11:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,e.clientX)-n,o=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(a),l=r.getValueForPixel(o);if(o-a<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],a=t.zoom._dragZoomStart,o=t.zoom._dragZoomEnd,r=a.target.getBoundingClientRect().left,s=Math.min(a.clientX,o.clientX)-r,l=Math.max(a.clientX,o.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file diff --git a/public_html/metaviews/application.css b/public_html/metaviews/application.css index 8c45b9e02..4c2e348d1 100644 --- a/public_html/metaviews/application.css +++ b/public_html/metaviews/application.css @@ -268,6 +268,11 @@ * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css *//*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ +/*! + * Bootstrap v3.3.5 (http://getbootstrap.com) + * Copyright 2011-2015 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css *//*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ /*! * Bootstrap v3.3.5 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. diff --git a/public_html/metaviews/application.js b/public_html/metaviews/application.js index cc14de577..8d9db11c1 100644 --- a/public_html/metaviews/application.js +++ b/public_html/metaviews/application.js @@ -14,4 +14,4 @@ t.plugins.notify("beforeDatasetsDraw",[n,o]),e.each(n.data.datasets,function(t,e t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],o=i.ticks,r=e.getValueOrDefault,a=t.getTickLimit();a=Math.max(2,a);var s;if(o.fixedStepSize&&o.fixedStepSize>0||o.stepSize&&o.stepSize>0)s=r(o.fixedStepSize,o.stepSize);else{var l=e.niceNum(t.max-t.min,!1);s=e.niceNum(l/(a-1),!0)}var c=Math.floor(t.min/s)*s,u=Math.ceil(t.max/s)*s,d=(u-c)/s;d=e.almostEquals(d,Math.round(d),s/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==o.min?o.min:c);for(var h=1;d>h;++h)n.push(c+h*s);n.push(void 0!==o.max?o.max:u),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),o.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=n.ticks,r=i.chart,a=r.data,s=a.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(o,a){var s=r.getDatasetMeta(a);r.isDatasetVisible(a)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(o.data,function(t,e){var o=u[s.type],r=+i.getRightValue(t);isNaN(r)||s.data[e].hidden||(o[e]=o[e]||0,n.relativePoints?o[e]=100:o[e]+=r)}))}),e.each(u,function(t){var n=e.min(t),o=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(s,function(n,o){var a=r.getDatasetMeta(o);r.isDatasetVisible(o)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,o,r,a,s,l,c,u,d,h,p,f=this.options.pointLabels,g=e.getValueOrDefault(f.fontSize,i.defaultFontSize),m=e.getValueOrDefault(f.fontStyle,i.defaultFontStyle),v=e.getValueOrDefault(f.fontFamily,i.defaultFontFamily),k=e.fontString(g,m,v),y=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=k,n=0;nw&&(w=t.x+r,a=n),t.x-rD?t.x+o>w&&(w=t.x+o,a=n):t.x-oe&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,o=n.gridLines,r=n.ticks,a=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(r.fontSize,i.defaultFontSize),d=l(r.fontStyle,i.defaultFontStyle),h=l(r.fontFamily,i.defaultFontFamily),p=e.fontString(u,d,h);if(e.each(t.ticks,function(a,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(o.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(o.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(o.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var f=0;f=0;y--){if(a.display){var w=t.getPointPosition(y,f);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(y,f+5),x=l(s.fontColor,i.defaultFontColor);c.font=k,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(y)+Math.PI/2,_=360*C/(2*Math.PI)%360;c.textAlign=0===_||180===_?"center":180>_?"left":"right",c.textBaseline=90===_||270===_?"middle":_>270||90>_?"bottom":"top",c.fillText(D[y]?D[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",o,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},o={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},r=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),void 0!==i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&!1!==e.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(o,r){var a=[],s=t.chart.isDatasetVisible(r);"object"==typeof o.data[0]&&null!==o.data[0]?e.each(o.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):a=i,t.labelMoments.push(a)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var o=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),o.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):o=i,t.labelDiffs.push(o)},t)},buildTicks:function(){var n=this;n.ctx.save();var o=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),r=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),a=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(o,r,a);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width;u=u*Math.cos(e.toRadians(n.options.ticks.maxRotation))+o*Math.sin(e.toRadians(n.options.ticks.maxRotation));var d=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var h=0,p=i.units[h];h=Math.ceil(n.scaleSizeInUnits/d)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,p.steps[f]);break}break}if(!1===p.maxStep||Math.ceil(n.scaleSizeInUnits/d)y?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):y>=0&&(n.lastTick=k),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var w=1;w<=n.scaleSizeInUnits;++w){var b=v.clone().add(w,n.tickUnit);if(n.options.time.max&&b.diff(n.lastTick,n.tickUnit,!0)>=0)break;w%n.unitScale==0&&n.ticks.push(b)}(0!==n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit)||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t0&&void 0!==arguments[0])||arguments[0],e={};return this.specialRange&&t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),this.noLogScale&&(e.autolog="false"),e}},{key:"pushParams",value:function(){var t=$(this.config.select2Input).select2("val")||[];window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&tools="+t.join("|")),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&tools="+t.join("|"))}},{key:"setupSelect2",value:function(){var t=$(this.config.select2Input),e=this.config.apps.map(function(t){return{id:t,text:t}}),i={data:e,placeholder:$.i18n("projects-placeholder"),maximumSelectionLength:this.config.apps.length,minimumInputLength:1};t.select2(i),t.on("change",this.processInput.bind(this))}},{key:"setSelect2Defaults",value:function(t){return $(this.config.select2Input).val(t).trigger("change"),t}},{key:"setupListeners",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.updateTable()})}},{key:"processInput",value:function(t){var e,i=this;if(this.pushParams(),t||location.search!==this.params||this.prevChartType!==this.chartType){var o=$(this.config.select2Input).select2("val")||[];this.setInitialChartType(o.length);var r={entities:o,labels:[],datasets:new Array(o.length),errors:[],fatalErrors:[],promises:[]};if(!r.entities.length)return this.resetView();this.params=location.search,this.prevChartType=this.chartType,this.clearMessages(),this.destroyChart(),this.startSpinny();var a=this.daterangepicker.startDate.startOf("day"),s=this.daterangepicker.endDate.startOf("day");r.entities.forEach(function(t,e){var n=$.ajax({url:"/metaviews/api.php",data:{app:t,start:a.format("YYYY-MM-DD"),end:s.format("YYYY-MM-DD")},dataType:"json"});r.promises.push(n),n.done(function(t){r.datasets[e]=t,r.labels.length||(r.labels=t.map(function(t){return moment(t.date,"YYYY-MM-DD").format(i.dateFormat)}))}).fail(function(e){i.writeMessage(""+t.escape()+" - "+$.i18n("api-error-no-data")),r.entities=r.entities.filter(function(e){return e!==t})})}),(e=$).whenAll.apply(e,n(r.promises)).always(this.updateChart.bind(this,r))}}},{key:"getSortProperty",value:function(t,e){switch(e){case"title":return t.label;case"pageloads":return Number(t.sum);case"average":return Number(t.average)}}},{key:"updateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSingleAppLegend();$(".single-page-stats").html(""),$(".output-list").html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),o=t.getSortProperty(i,t.sort);return no?-t.direction:0});$(".sort-link span").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" span").addClass(i).removeClass("glyphicon-sort"),e.forEach(function(e){$(".output-list").append("\n \n \n \n \n "+e.label+"\n "+t.formatNumber(e.sum)+"\n "+t.formatNumber(e.average)+"\n \n ")});var n=e.reduce(function(t,e){return t+e.sum},0),o={label:e.length+" app"+(1===e.length?"":"s"),sum:n,average:Math.round(n/e[0].data.length)};$(".output-list").append("\n \n \n "+o.label+"\n "+this.formatNumber(o.sum)+"\n "+this.formatNumber(o.average)+"\n \n "),$(".output-list .table-view--title a").off("click").on("click",function(e){t.showProjectUsage($(e.target).text())}),$(".table-view").show()}},{key:"showSingleAppLegend",value:function(){var t=this.outputData[0];$(".table-view").hide(),$(".single-page-stats").html("\n "+t.label+"\n ·\n \n "+$(this.config.dateRangeSelector).val()+"\n \n ·\n "+t.sum+" page load"+(1===t.sum?"":"s")+"\n \n ("+this.formatNumber(t.average)+"/"+$.i18n("day")+")\n \n ")}},{key:"showProjectUsage",value:function(t){var e=this;$(".project-output-list").html("");var i=t.charAt(0).toUpperCase()+t.slice(1),n=["siteviews","massviews"],o=n.includes(t)?"language":"project";$("#project-list-modal h4").text(i+" usage by "+o),$("th.project-table-view--title").text(o.charAt(0).toUpperCase()+o.slice(1)),$.ajax({url:"/metaviews/api.php",data:{app:t},dataType:"json"}).done(function(t){t=t.sort(function(t,e){return t.counte.count?-1:0});var i=t.reduce(function(t,e){return t+e.count},0);$(".project-output-list").append("\n \n \n "+t.length+" "+o+"s\n "+e.formatNumber(i)+" page loads\n \n "),t.forEach(function(t,i){$(".project-output-list").append("\n \n "+(i+1)+"\n \n "+t.project+"\n \n "+e.formatNumber(t.count)+"\n \n ")}),$("#project-list-modal").modal("show")})}}]),e}(mix(u).with(d));$(document).ready(function(){return document.location.hash&&!document.location.search?document.location.href=document.location.href.replace("#","?"):document.location.hash?document.location.href=document.location.href.replace(/\#.*/,""):void new h})},{"../shared/chart_helpers":3,"../shared/pv":6,"./config":1}],3:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=this.getFromLocalStorage("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var o='"'+t.label.replace(/"/g,'""')+'"';e.push(o),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var o={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){o[t.replace(/\\/,"")]=i.data[e]}),e.push(o)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e) ;this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,r={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");r[e]=t}),t.items=[];for(var a=moment(e);a<=i;a.add(1,"day"))if(r[a.format("YYYYMMDD")])t.items.push(r[a.format("YYYYMMDD")]);else{var s=a.isSame(this.maxDate)||a.isSame(moment(this.maxDate).subtract(1,"days"));t.items.push(o({timestamp:a.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e,i){var n=this,o=void 0,r=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD",a=this.getDateHeadings(!1);return o=i||(this.isPageviews()?"views":["metaviews","mediaviews"].includes(this.app)||this.isPagecounts()?"count":"devices"),t.map(function(t,i){var s=new Array(a.length),l=0,c=void 0,u=0;t.forEach(function(t){var e=t[o],i=void 0;i="metaviews"===n.app?t.date:"mediaviews"===n.app?moment(t.date,n.config.mpcDateFormat).format(r):moment(t.timestamp,n.config.timestampFormat).format(r),s[a.indexOf(i)]=e,l+=e||0,e>u&&(u=e),(void 0===c||e";e.toastWarn($.i18n("new-article-warning",n))}});var h="siteviews"===e.app?e.getSiteLink(u):e.getPageLink(u,e.project),p="pageviews";e.isUniqueDevices()?p="unique-devices":e.isPagecounts()&&(p="pagecounts"),c.errors.push(h+": "+$.i18n("api-error",p.upcase()+" API")+" - "+n)}}).always(function(){++n===r&&(e.pageViewsData=c,i.resolve(c),a.length&&e.writeMessage($.i18n("api-error-timeout","
    "+a.map(function(t){return"
  • "+e.getPageLink(t,e.project.escape())+"
  • "}).join("")+"
")))})};return t.forEach(function(t,e){return u(t,e)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"isLogarithmic",value:function(){return $(this.config.logarithmicCheckbox).is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"printChart",value:function(){var t=window.open();t.document.write(''),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),$(this.config.chart).hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){if("line"===this.chartType){var t=this.getDateHeadings().length;Chart.defaults.global.elements.point.hitRadius=t>50?3:t>30?5:t>20?10:30}}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var o=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(o<=10)return!1;var r=!1;return i.forEach(function(t){t.push(o);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return r=!0}),r}},{key:"setupDateRangeSelector",value:function(){var t=this;if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=$(this.config.dateRangeSelector);$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"setupMonthSelector",value:function(t,e){var i=this;this.monthDatepicker&&this.monthDatepicker.destroy(),$(".month-selector").datepicker({autoclose:!0,format:"M yyyy",viewMode:"months",minViewMode:"months",startDate:this.minDate.toDate(),endDate:this.maxMonth,disableTouchKeyboard:!0}),t=t||this.initialMonthStart,e=e||this.maxMonth;var n=function(t,e){return ti.maxMonth&&(e=i.maxMonth),(ee)&&(t=e),[t,e]},o=n(t,e),r=l(o,2);t=r[0],e=r[1],this.monthStartDatepicker.setDate(t),this.monthEndDatepicker.setDate(e),this.daterangepicker.startDate=moment(t).startOf("month"),this.daterangepicker.setEndDate(moment(e).endOf("month"));var a=function(){var t=n(i.monthStartDatepicker.getDate(),i.monthEndDatepicker.getDate()),e=l(t,2),o=e[0],r=e[1];i.daterangepicker.startDate=moment(o).startOf("month"),i.daterangepicker.setEndDate(moment(r).endOf("month"))};$(".month-selector-start").on("hide",a),$(".month-selector-end").on("hide",a)}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:$(this.config.select2Input).val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var o=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));$(this.config.logarithmicCheckbox).prop("checked",o),$(".begin-at-zero").toggleClass("disabled",o)}this.outputData=this.setColorsAndLogValues(this.outputData);var r=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(r.scales=Object.assign({},r.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var a=$(this.config.chart)[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?r.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(r.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),r.zoom=["pageviews","siteviews","mediaviews"].includes(this.app)&&this.numDaysInRange()>1&&!this.isMonthly()),$(".show-labels-option").is(":checked")?r=this.showPointLabels(r):(delete r.animation.onComplete,delete r.animation.onProgress),this.chartObj=new Chart(a,{type:this.chartType,data:l,options:r})}else delete r.animation.onComplete,delete r.animation.onProgress,this.chartObj=new Chart(a,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:r})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews","mediaviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){if(["bar","line"].includes(this.chartType)){var e=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},i=function(t,i){var n=t.chart,o=e(n.ctx);Chart.helpers.each(t.data.datasets.forEach(function(e,r){var a=n.controller.getDatasetMeta(r);Chart.helpers.each(a.data.forEach(function(t,n){o.fillStyle="rgba(68,68,68,"+i+")";var r=e._meta[Object.keys(e._meta)[0]].data[n]._yScale.maxHeight,a=(r-t._model.y)/r>=.93?t._model.y+5:t._model.y-10;o.fillText(e.data[n],t._model.x,a)}),t)}),t)};return t.animation.onComplete=function(){i(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;i(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}},{key:"monthDatepicker",get:function(){return $(".month-selector").data("datepicker")}},{key:"monthStartDatepicker",get:function(){return $(".month-selector-start").data("datepicker")}},{key:"monthEndDatepicker",get:function(){return $(".month-selector-end").data("datepicker")}}]),e}(t)};e.exports=d},{"./zoom_plugin":9}],4:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new r(t)};var r=function(){function t(e){n(this,t),this.superclass=e}return o(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ithis.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],o=void 0,r=0;r>>0,n=arguments[1],o=n>>0,r=o<0?Math.max(i+o,0):Math.min(o,i),a=arguments[2],s=void 0===a?i:a>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);rThis is the staging environment!

\n

To use the staging app, append debug=true to the URL

\n

Otherwise, please update your links to use\n https://"+location.host+s+"\n

\n

\n Redirecting you to the production "+document.title+" in\n 10...\n

\n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),r(i)}return i.debug?window.app=i:i.splash(),i.loadTranslations(),$.extend($.i18n.parser.emitter,{link:function(t){return''+t[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return a(e,t),l(e,[{key:"loadTranslations",value:function(){var t=n({},i18nLang,appPath+"/"+currentApp+"/messages/"+i18nLang+".json");"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(e){t[e]=appPath+"/"+currentApp+"/messages/"+e+".json"}),t.en=appPath+"/"+currentApp+"/messages/en.json"),$.i18n({locale:i18nLang}).load(t).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var t=$(window).width(),e=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(t<768)){n+e+i>t&&$(".interapp-links--more").removeClass("hidden");for(var o=$(".interapp-links--entry").length;o>0&&n+e+i>t;){var r=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();r.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(r),n=$(".interapp-links").outerWidth()+i,o--}}}},{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+"";this.toastError("\n "+$.i18n("invalid-params")+"\n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/;t.start&&/^\d{4}-\d{2}$/.test(t.start)&&(t.start=t.start+"-01",t.monthly=!0),t.end&&/^\d{4}-\d{2}$/.test(t.end)?t.end=moment(t.end+"-01").endOf("month").format("YYYY-MM-DD"):t.monthly=!1;var i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+"\n "+$.i18n("invalid-params")+"\n "),!1;t.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(t.start).toDate(),this.monthEnd=moment(t.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(u).find(function(e){return u[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var o=this.getExportFilename()+"."+e;n.download=o,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){return"true"===(this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),o=i?"month":"day",r=i?"YYYY-MM":"YYYY-MM-DD",a=moment(this.daterangepicker.startDate);a.isBefore(n);a.add(1,o))t?e.push(a.format(this.dateFormat)):e.push(a.format(r));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e,i,n){var o=this.getExpandedPageURL(t)+"&action=history";return i&&n&&(o+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+e+""}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e,i,n){var o='target="_blank" href="'+this.getPageURL(t,e)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(e)){var r=this.getProjectLang(e);o+=" lang="+r+' dir="'+(this.config.rtlLangs.includes(r)?"rtl":"ltr")+'"'}return'"+(i||t.descore().escape())+""}},{key:"getPageURL",value:function(t){return"//"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+""}},{key:"getProjectLang",value:function(t){return(t||this.project).split(".")[0]}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getEditData",value:function(t){var e=$.Deferred();return $.ajax({url:"/pageviews/api.php",data:{pages:t.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD")},timeout:8e3}).done(function(t){return e.resolve(t)}).fail(function(){var i={};t.forEach(function(t){return i[t]={}}),e.resolve({pages:i})}),e}},{key:"getPageAssessments",value:function(t){var e=this,i=$.Deferred();return this.config.pageAssessmentProjects.includes(this.project)?(this.massApi({prop:"pageassessments",titles:t.join("|")},this.project,"pacontinue","pages").done(function(t){if(!t.pages)return i.resolve({});var n={};return t.pages.forEach(function(t){if(t.pageassessments){var i=Object.keys(t.pageassessments),o=t.pageassessments[i[0]];if(o&&o.class.length&&!n[t.title]){var r=e.config.pageAssessmentBadges[e.project][o.class]||"";if(!r.length)return;var a=""+o.class+"";n[t.title]=a}}}),i.resolve(n)}),i):i.resolve({})}},{key:"getAssessmentBadge",value:function(t){ return t.assessment?t.assessment_img?""+t.assessment+"":t.assessment:""}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===$(this.config.dataSourceSelector).val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===$(this.config.dataSourceSelector).val()}},{key:"isPagecounts",value:function(){return"pagecounts"===$(this.config.dataSourceSelector).val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(t)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var r=$.Deferred(),a={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return r.resolve(t);var e=void 0;"function"==typeof n?(a.pages=a.pages.concat(n(t.query)),e=a.pages.length>=o):(t.query.pages&&(a.pages=a.pages.concat(t.query.pages)),t.query[n]&&(a[n]=(a[n]||[]).concat(t.query[n])),e=a.pages.length>=o||a[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(a.continue=!0),r.resolve(a))}).fail(function(t){r.reject(t)})}(),r}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o0&&void 0!==arguments[0])||arguments[0],e=$(this.config.select2Input);e.data("select2")&&(e.off("change"),e.select2("val",null),e.select2("data",null),e.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,this.setLocalStorage("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var r=this.config.specialRanges.latest(o),a=s(r,2);i=a[0],n=a[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var o={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(o.dateLimit={days:this.config.dateLimit}),this.daterangepicker){$(this.config.dateRangeSelector).data("daterangepicker").remove();var r=$(this.config.dateRangeSelector).remove();$(".date-selector").append(r)}$(this.config.dateRangeSelector).daterangepicker(o),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")});if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&function(t){e.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)}()}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];void 0===n||e.config.validParams[i].includes(o)||(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&$(this.config.projectInput).trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t="mediaviews"===this.app?"commons.wikimedia.org":$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":4,"./polyfills":5,"./pv_config":7,"./site_map":8}],7:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:r,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[r,r],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(r)?moment().startOf("week"):r],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:r;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a},rtlLangs:["ar","he","fa","ps","ur"]}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],o=i.labels[e.index];return Number.isNaN(n)?o+": "+$.i18n("unknown"):o+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":8}],8:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"wikimediafoundation.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org", -itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",satwikipedia:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwiktionary:"tr.wiktionary.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],9:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,r=Math.max(i.clientX,e.clientX)-n,a=t.scales["x-axis-0"],s=a.getValueForPixel(o),l=a.getValueForPixel(r);if(r-o<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,r=t.zoom._dragZoomEnd,a=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,r.clientX)-a,l=Math.max(o.clientX,r.clientX)-a,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file +itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwiktionary:"tr.wiktionary.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],9:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,r=Math.max(i.clientX,e.clientX)-n,a=t.scales["x-axis-0"],s=a.getValueForPixel(o),l=a.getValueForPixel(r);if(r-o<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,r=t.zoom._dragZoomEnd,a=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,r.clientX)-a,l=Math.max(o.clientX,r.clientX)-a,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file diff --git a/public_html/pageviews/application.js b/public_html/pageviews/application.js index d46bfe28f..3cc2a2ccc 100644 --- a/public_html/pageviews/application.js +++ b/public_html/pageviews/application.js @@ -1,18 +1,18 @@ -if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e="length"in t&&t.length,i=J.type(t);return"function"!==i&&!J.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t))}function n(t,e,i){if(J.isFunction(e))return J.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return J.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(st.test(e))return J.filter(e,t,i);e=J.filter(e,t)}return J.grep(t,function(t){return V.call(e,t)>=0!==i})}function o(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function a(t){var e=pt[t]={};return J.each(t.match(ht)||[],function(t,i){e[i]=!0}),e}function r(){X.removeEventListener("DOMContentLoaded",r,!1),t.removeEventListener("load",r,!1),J.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=J.expando+s.uid++}function l(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(yt,"-$1").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:kt.test(i)?J.parseJSON(i):i)}catch(t){}vt.set(t,e,i)}else i=void 0;return i}function c(){return!0}function u(){return!1}function d(){try{return X.activeElement}catch(t){}}function h(t,e){return J.nodeName(t,"table")&&J.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function p(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function f(t){var e=Et.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function g(t,e){for(var i=0,n=t.length;n>i;i++)mt.set(t[i],"globalEval",!e||mt.get(e[i],"globalEval"))}function m(t,e){var i,n,o,a,r,s,l,c;if(1===e.nodeType){if(mt.hasData(t)&&(a=mt.access(t),r=mt.set(e,a),c=a.events)){delete r.handle,r.events={};for(o in c)for(i=0,n=c[o].length;n>i;i++)J.event.add(e,o,c[o][i])}vt.hasData(t)&&(s=vt.access(t),l=J.extend({},s),vt.set(e,l))}}function v(t,e){var i=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&J.nodeName(t,e)?J.merge([t],i):i}function k(t,e){var i=e.nodeName.toLowerCase();"input"===i&&xt.test(t.type)?e.checked=t.checked:("input"===i||"textarea"===i)&&(e.defaultValue=t.defaultValue)}function y(e,i){var n,o=J(i.createElement(e)).appendTo(i.body),a=t.getDefaultComputedStyle&&(n=t.getDefaultComputedStyle(o[0]))?n.display:J.css(o[0],"display");return o.detach(),a}function w(t){var e=X,i=Nt[t];return i||(i=y(t,e),"none"!==i&&i||(Ft=(Ft||J("