powergrid-viewer 1.5.4 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Released under MIT license <https://lodash.com/license>
|
|
7
7
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
8
8
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
9
|
-
*/(function(){var a,i="4.17.21",s=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,g=2,y=4,v=1,m=2,b=1,w=2,x=4,_=8,k=16,P=32,S=64,C=128,M=256,B=512,A=30,R="...",L=800,O=16,j=1,z=2,D=3,E=1/0,G=9007199254740991,T=17976931348623157e292,I=NaN,N=4294967295,U=N-1,K=N>>>1,F=[["ary",C],["bind",b],["bindKey",w],["curry",_],["curryRight",k],["flip",B],["partial",P],["partialRight",S],["rearg",M]],V="[object Arguments]",W="[object Array]",H="[object AsyncFunction]",Y="[object Boolean]",$="[object Date]",q="[object DOMException]",Z="[object Error]",J="[object Function]",X="[object GeneratorFunction]",Q="[object Map]",ee="[object Number]",ne="[object Null]",te="[object Object]",re="[object Promise]",oe="[object Proxy]",ae="[object RegExp]",ie="[object Set]",se="[object String]",ue="[object Symbol]",ce="[object Undefined]",le="[object WeakMap]",fe="[object WeakSet]",de="[object ArrayBuffer]",pe="[object DataView]",he="[object Float32Array]",ge="[object Float64Array]",ye="[object Int8Array]",ve="[object Int16Array]",me="[object Int32Array]",be="[object Uint8Array]",we="[object Uint8ClampedArray]",xe="[object Uint16Array]",_e="[object Uint32Array]",ke=/\b__p \+= '';/g,Pe=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Be=RegExp(Ce.source),Ae=RegExp(Me.source),Re=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ze=/^\w*$/,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ee=/[\\^$.*+?()[\]{}|]/g,Ge=RegExp(Ee.source),Te=/^\s+/,Ie=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,Ke=/,? & /,Fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ye=/\w*$/,$e=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Ze=/^\[object .+?Constructor\]$/,Je=/^0o[0-7]+$/i,Xe=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,en=/($^)/,nn=/['\n\r\u2028\u2029\\]/g,tn="\\ud800-\\udfff",rn="\\u0300-\\u036f",on="\\ufe20-\\ufe2f",an="\\u20d0-\\u20ff",sn=rn+on+an,un="\\u2700-\\u27bf",cn="a-z\\xdf-\\xf6\\xf8-\\xff",ln="\\xac\\xb1\\xd7\\xf7",fn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dn="\\u2000-\\u206f",pn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hn="A-Z\\xc0-\\xd6\\xd8-\\xde",gn="\\ufe0e\\ufe0f",yn=ln+fn+dn+pn,vn="['’]",mn="["+tn+"]",bn="["+yn+"]",wn="["+sn+"]",xn="\\d+",_n="["+un+"]",kn="["+cn+"]",Pn="[^"+tn+yn+xn+un+cn+hn+"]",Sn="\\ud83c[\\udffb-\\udfff]",Cn="(?:"+wn+"|"+Sn+")",Mn="[^"+tn+"]",Bn="(?:\\ud83c[\\udde6-\\uddff]){2}",An="[\\ud800-\\udbff][\\udc00-\\udfff]",Rn="["+hn+"]",Ln="\\u200d",On="(?:"+kn+"|"+Pn+")",jn="(?:"+Rn+"|"+Pn+")",zn="(?:"+vn+"(?:d|ll|m|re|s|t|ve))?",Dn="(?:"+vn+"(?:D|LL|M|RE|S|T|VE))?",En=Cn+"?",Gn="["+gn+"]?",Tn="(?:"+Ln+"(?:"+[Mn,Bn,An].join("|")+")"+Gn+En+")*",In="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Un=Gn+En+Tn,Kn="(?:"+[_n,Bn,An].join("|")+")"+Un,Fn="(?:"+[Mn+wn+"?",wn,Bn,An,mn].join("|")+")",Vn=RegExp(vn,"g"),Wn=RegExp(wn,"g"),Hn=RegExp(Sn+"(?="+Sn+")|"+Fn+Un,"g"),Yn=RegExp([Rn+"?"+kn+"+"+zn+"(?="+[bn,Rn,"$"].join("|")+")",jn+"+"+Dn+"(?="+[bn,Rn+On,"$"].join("|")+")",Rn+"?"+On+"+"+zn,Rn+"+"+Dn,Nn,In,xn,Kn].join("|"),"g"),$n=RegExp("["+Ln+tn+sn+gn+"]"),qn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jn=-1,Xn={};Xn[he]=Xn[ge]=Xn[ye]=Xn[ve]=Xn[me]=Xn[be]=Xn[we]=Xn[xe]=Xn[_e]=!0,Xn[V]=Xn[W]=Xn[de]=Xn[Y]=Xn[pe]=Xn[$]=Xn[Z]=Xn[J]=Xn[Q]=Xn[ee]=Xn[te]=Xn[ae]=Xn[ie]=Xn[se]=Xn[le]=!1;var Qn={};Qn[V]=Qn[W]=Qn[de]=Qn[pe]=Qn[Y]=Qn[$]=Qn[he]=Qn[ge]=Qn[ye]=Qn[ve]=Qn[me]=Qn[Q]=Qn[ee]=Qn[te]=Qn[ae]=Qn[ie]=Qn[se]=Qn[ue]=Qn[be]=Qn[we]=Qn[xe]=Qn[_e]=!0,Qn[Z]=Qn[J]=Qn[le]=!1;var et={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},nt={"&":"&","<":"<",">":">",'"':""","'":"'"},tt={"&":"&","<":"<",">":">",""":'"',"'":"'"},rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ot=parseFloat,at=parseInt,it="object"==typeof e&&e&&e.Object===Object&&e,st="object"==typeof self&&self&&self.Object===Object&&self,ut=it||st||Function("return this")(),ct=n&&!n.nodeType&&n,lt=ct&&"object"==typeof r&&r&&!r.nodeType&&r,ft=lt&<.exports===ct,dt=ft&&it.process,pt=function(){try{var e=lt&<.require&<.require("util").types;return e||dt&&dt.binding&&dt.binding("util")}catch(n){}}(),ht=pt&&pt.isArrayBuffer,gt=pt&&pt.isDate,yt=pt&&pt.isMap,vt=pt&&pt.isRegExp,mt=pt&&pt.isSet,bt=pt&&pt.isTypedArray;function wt(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function xt(e,n,t,r){var o=-1,a=null==e?0:e.length;while(++o<a){var i=e[o];n(r,i,t(i),e)}return r}function _t(e,n){var t=-1,r=null==e?0:e.length;while(++t<r)if(!1===n(e[t],t,e))break;return e}function kt(e,n){var t=null==e?0:e.length;while(t--)if(!1===n(e[t],t,e))break;return e}function Pt(e,n){var t=-1,r=null==e?0:e.length;while(++t<r)if(!n(e[t],t,e))return!1;return!0}function St(e,n){var t=-1,r=null==e?0:e.length,o=0,a=[];while(++t<r){var i=e[t];n(i,t,e)&&(a[o++]=i)}return a}function Ct(e,n){var t=null==e?0:e.length;return!!t&&Tt(e,n,0)>-1}function Mt(e,n,t){var r=-1,o=null==e?0:e.length;while(++r<o)if(t(n,e[r]))return!0;return!1}function Bt(e,n){var t=-1,r=null==e?0:e.length,o=Array(r);while(++t<r)o[t]=n(e[t],t,e);return o}function At(e,n){var t=-1,r=n.length,o=e.length;while(++t<r)e[o+t]=n[t];return e}function Rt(e,n,t,r){var o=-1,a=null==e?0:e.length;r&&a&&(t=e[++o]);while(++o<a)t=n(t,e[o],o,e);return t}function Lt(e,n,t,r){var o=null==e?0:e.length;r&&o&&(t=e[--o]);while(o--)t=n(t,e[o],o,e);return t}function Ot(e,n){var t=-1,r=null==e?0:e.length;while(++t<r)if(n(e[t],t,e))return!0;return!1}var jt=Kt("length");function zt(e){return e.split("")}function Dt(e){return e.match(Fe)||[]}function Et(e,n,t){var r;return t(e,(function(e,t,o){if(n(e,t,o))return r=t,!1})),r}function Gt(e,n,t,r){var o=e.length,a=t+(r?1:-1);while(r?a--:++a<o)if(n(e[a],a,e))return a;return-1}function Tt(e,n,t){return n===n?hr(e,n,t):Gt(e,Nt,t)}function It(e,n,t,r){var o=t-1,a=e.length;while(++o<a)if(r(e[o],n))return o;return-1}function Nt(e){return e!==e}function Ut(e,n){var t=null==e?0:e.length;return t?Ht(e,n)/t:I}function Kt(e){return function(n){return null==n?a:n[e]}}function Ft(e){return function(n){return null==e?a:e[n]}}function Vt(e,n,t,r,o){return o(e,(function(e,o,a){t=r?(r=!1,e):n(t,e,o,a)})),t}function Wt(e,n){var t=e.length;e.sort(n);while(t--)e[t]=e[t].value;return e}function Ht(e,n){var t,r=-1,o=e.length;while(++r<o){var i=n(e[r]);i!==a&&(t=t===a?i:t+i)}return t}function Yt(e,n){var t=-1,r=Array(e);while(++t<e)r[t]=n(t);return r}function $t(e,n){return Bt(n,(function(n){return[n,e[n]]}))}function qt(e){return e?e.slice(0,mr(e)+1).replace(Te,""):e}function Zt(e){return function(n){return e(n)}}function Jt(e,n){return Bt(n,(function(n){return e[n]}))}function Xt(e,n){return e.has(n)}function Qt(e,n){var t=-1,r=e.length;while(++t<r&&Tt(n,e[t],0)>-1);return t}function er(e,n){var t=e.length;while(t--&&Tt(n,e[t],0)>-1);return t}function nr(e,n){var t=e.length,r=0;while(t--)e[t]===n&&++r;return r}var tr=Ft(et),rr=Ft(nt);function or(e){return"\\"+rt[e]}function ar(e,n){return null==e?a:e[n]}function ir(e){return $n.test(e)}function sr(e){return qn.test(e)}function ur(e){var n,t=[];while(!(n=e.next()).done)t.push(n.value);return t}function cr(e){var n=-1,t=Array(e.size);return e.forEach((function(e,r){t[++n]=[r,e]})),t}function lr(e,n){return function(t){return e(n(t))}}function fr(e,n){var t=-1,r=e.length,o=0,a=[];while(++t<r){var i=e[t];i!==n&&i!==p||(e[t]=p,a[o++]=t)}return a}function dr(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t}function pr(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=[e,e]})),t}function hr(e,n,t){var r=t-1,o=e.length;while(++r<o)if(e[r]===n)return r;return-1}function gr(e,n,t){var r=t+1;while(r--)if(e[r]===n)return r;return r}function yr(e){return ir(e)?wr(e):jt(e)}function vr(e){return ir(e)?xr(e):zt(e)}function mr(e){var n=e.length;while(n--&&Ie.test(e.charAt(n)));return n}var br=Ft(tt);function wr(e){var n=Hn.lastIndex=0;while(Hn.test(e))++n;return n}function xr(e){return e.match(Hn)||[]}function _r(e){return e.match(Yn)||[]}var kr=function e(n){n=null==n?ut:Pr.defaults(ut.Object(),n,Pr.pick(ut,Zn));var t=n.Array,r=n.Date,o=n.Error,Ie=n.Function,Fe=n.Math,tn=n.Object,rn=n.RegExp,on=n.String,an=n.TypeError,sn=t.prototype,un=Ie.prototype,cn=tn.prototype,ln=n["__core-js_shared__"],fn=un.toString,dn=cn.hasOwnProperty,pn=0,hn=function(){var e=/[^.]+$/.exec(ln&&ln.keys&&ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gn=cn.toString,yn=fn.call(tn),vn=ut._,mn=rn("^"+fn.call(dn).replace(Ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bn=ft?n.Buffer:a,wn=n.Symbol,xn=n.Uint8Array,_n=bn?bn.allocUnsafe:a,kn=lr(tn.getPrototypeOf,tn),Pn=tn.create,Sn=cn.propertyIsEnumerable,Cn=sn.splice,Mn=wn?wn.isConcatSpreadable:a,Bn=wn?wn.iterator:a,An=wn?wn.toStringTag:a,Rn=function(){try{var e=Yi(tn,"defineProperty");return e({},"",{}),e}catch(n){}}(),Ln=n.clearTimeout!==ut.clearTimeout&&n.clearTimeout,On=r&&r.now!==ut.Date.now&&r.now,jn=n.setTimeout!==ut.setTimeout&&n.setTimeout,zn=Fe.ceil,Dn=Fe.floor,En=tn.getOwnPropertySymbols,Gn=bn?bn.isBuffer:a,Tn=n.isFinite,In=sn.join,Nn=lr(tn.keys,tn),Un=Fe.max,Kn=Fe.min,Fn=r.now,Hn=n.parseInt,Yn=Fe.random,$n=sn.reverse,qn=Yi(n,"DataView"),et=Yi(n,"Map"),nt=Yi(n,"Promise"),tt=Yi(n,"Set"),rt=Yi(n,"WeakMap"),it=Yi(tn,"create"),st=rt&&new rt,ct={},lt=Os(qn),dt=Os(et),pt=Os(nt),jt=Os(tt),zt=Os(rt),Ft=wn?wn.prototype:a,hr=Ft?Ft.valueOf:a,wr=Ft?Ft.toString:a;function xr(e){if(Sl(e)&&!ul(e)&&!(e instanceof Mr)){if(e instanceof Cr)return e;if(dn.call(e,"__wrapped__"))return zs(e)}return new Cr(e)}var kr=function(){function e(){}return function(n){if(!Pl(n))return{};if(Pn)return Pn(n);e.prototype=n;var t=new e;return e.prototype=a,t}}();function Sr(){}function Cr(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=a}function Mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function Br(){var e=new Mr(this.__wrapped__);return e.__actions__=oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=oi(this.__views__),e}function Ar(){if(this.__filtered__){var e=new Mr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Rr(){var e=this.__wrapped__.value(),n=this.__dir__,t=ul(e),r=n<0,o=t?e.length:0,a=Xi(0,o,this.__views__),i=a.start,s=a.end,u=s-i,c=r?s:i-1,l=this.__iteratees__,f=l.length,d=0,p=Kn(u,this.__takeCount__);if(!t||!r&&o==u&&p==u)return Ia(e,this.__actions__);var h=[];e:while(u--&&d<p){c+=n;var g=-1,y=e[c];while(++g<f){var v=l[g],m=v.iteratee,b=v.type,w=m(y);if(b==z)y=w;else if(!w){if(b==j)continue e;break e}}h[d++]=y}return h}function Lr(e){var n=-1,t=null==e?0:e.length;this.clear();while(++n<t){var r=e[n];this.set(r[0],r[1])}}function Or(){this.__data__=it?it(null):{},this.size=0}function jr(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function zr(e){var n=this.__data__;if(it){var t=n[e];return t===f?a:t}return dn.call(n,e)?n[e]:a}function Dr(e){var n=this.__data__;return it?n[e]!==a:dn.call(n,e)}function Er(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=it&&n===a?f:n,this}function Gr(e){var n=-1,t=null==e?0:e.length;this.clear();while(++n<t){var r=e[n];this.set(r[0],r[1])}}function Tr(){this.__data__=[],this.size=0}function Ir(e){var n=this.__data__,t=lo(n,e);if(t<0)return!1;var r=n.length-1;return t==r?n.pop():Cn.call(n,t,1),--this.size,!0}function Nr(e){var n=this.__data__,t=lo(n,e);return t<0?a:n[t][1]}function Ur(e){return lo(this.__data__,e)>-1}function Kr(e,n){var t=this.__data__,r=lo(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this}function Fr(e){var n=-1,t=null==e?0:e.length;this.clear();while(++n<t){var r=e[n];this.set(r[0],r[1])}}function Vr(){this.size=0,this.__data__={hash:new Lr,map:new(et||Gr),string:new Lr}}function Wr(e){var n=Wi(this,e)["delete"](e);return this.size-=n?1:0,n}function Hr(e){return Wi(this,e).get(e)}function Yr(e){return Wi(this,e).has(e)}function $r(e,n){var t=Wi(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this}function qr(e){var n=-1,t=null==e?0:e.length;this.__data__=new Fr;while(++n<t)this.add(e[n])}function Zr(e){return this.__data__.set(e,f),this}function Jr(e){return this.__data__.has(e)}function Xr(e){var n=this.__data__=new Gr(e);this.size=n.size}function Qr(){this.__data__=new Gr,this.size=0}function eo(e){var n=this.__data__,t=n["delete"](e);return this.size=n.size,t}function no(e){return this.__data__.get(e)}function to(e){return this.__data__.has(e)}function ro(e,n){var t=this.__data__;if(t instanceof Gr){var r=t.__data__;if(!et||r.length<s-1)return r.push([e,n]),this.size=++t.size,this;t=this.__data__=new Fr(r)}return t.set(e,n),this.size=t.size,this}function oo(e,n){var t=ul(e),r=!t&&sl(e),o=!t&&!r&&pl(e),a=!t&&!r&&!o&&Nl(e),i=t||r||o||a,s=i?Yt(e.length,on):[],u=s.length;for(var c in e)!n&&!dn.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||is(c,u))||s.push(c);return s}function ao(e){var n=e.length;return n?e[ma(0,n-1)]:a}function io(e,n){return As(oi(e),vo(n,0,e.length))}function so(e){return As(oi(e))}function uo(e,n,t){(t!==a&&!ol(e[n],t)||t===a&&!(n in e))&&go(e,n,t)}function co(e,n,t){var r=e[n];dn.call(e,n)&&ol(r,t)&&(t!==a||n in e)||go(e,n,t)}function lo(e,n){var t=e.length;while(t--)if(ol(e[t][0],n))return t;return-1}function fo(e,n,t,r){return ko(e,(function(e,o,a){n(r,e,t(e),a)})),r}function po(e,n){return e&&ai(n,kf(n),e)}function ho(e,n){return e&&ai(n,Pf(n),e)}function go(e,n,t){"__proto__"==n&&Rn?Rn(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function yo(e,n){var r=-1,o=n.length,i=t(o),s=null==e;while(++r<o)i[r]=s?a:vf(e,n[r]);return i}function vo(e,n,t){return e===e&&(t!==a&&(e=e<=t?e:t),n!==a&&(e=e>=n?e:n)),e}function mo(e,n,t,r,o,i){var s,u=n&h,c=n&g,l=n&y;if(t&&(s=o?t(e,r,o,i):t(e)),s!==a)return s;if(!Pl(e))return e;var f=ul(e);if(f){if(s=ns(e),!u)return oi(e,s)}else{var d=Ji(e),p=d==J||d==X;if(pl(e))return $a(e,u);if(d==te||d==V||p&&!o){if(s=c||p?{}:ts(e),!u)return c?si(e,ho(s,e)):ii(e,po(s,e))}else{if(!Qn[d])return o?e:{};s=rs(e,d,u)}}i||(i=new Xr);var v=i.get(e);if(v)return v;i.set(e,s),Gl(e)?e.forEach((function(r){s.add(mo(r,n,t,r,e,i))})):Cl(e)&&e.forEach((function(r,o){s.set(o,mo(r,n,t,o,e,i))}));var m=l?c?Ni:Ii:c?Pf:kf,b=f?a:m(e);return _t(b||e,(function(r,o){b&&(o=r,r=e[o]),co(s,o,mo(r,n,t,o,e,i))})),s}function bo(e){var n=kf(e);return function(t){return wo(t,e,n)}}function wo(e,n,t){var r=t.length;if(null==e)return!r;e=tn(e);while(r--){var o=t[r],i=n[o],s=e[o];if(s===a&&!(o in e)||!i(s))return!1}return!0}function xo(e,n,t){if("function"!=typeof e)throw new an(c);return Ss((function(){e.apply(a,t)}),n)}function _o(e,n,t,r){var o=-1,a=Ct,i=!0,u=e.length,c=[],l=n.length;if(!u)return c;t&&(n=Bt(n,Zt(t))),r?(a=Mt,i=!1):n.length>=s&&(a=Xt,i=!1,n=new qr(n));e:while(++o<u){var f=e[o],d=null==t?f:t(f);if(f=r||0!==f?f:0,i&&d===d){var p=l;while(p--)if(n[p]===d)continue e;c.push(f)}else a(n,d,r)||c.push(f)}return c}xr.templateSettings={escape:Re,evaluate:Le,interpolate:Oe,variable:"",imports:{_:xr}},xr.prototype=Sr.prototype,xr.prototype.constructor=xr,Cr.prototype=kr(Sr.prototype),Cr.prototype.constructor=Cr,Mr.prototype=kr(Sr.prototype),Mr.prototype.constructor=Mr,Lr.prototype.clear=Or,Lr.prototype["delete"]=jr,Lr.prototype.get=zr,Lr.prototype.has=Dr,Lr.prototype.set=Er,Gr.prototype.clear=Tr,Gr.prototype["delete"]=Ir,Gr.prototype.get=Nr,Gr.prototype.has=Ur,Gr.prototype.set=Kr,Fr.prototype.clear=Vr,Fr.prototype["delete"]=Wr,Fr.prototype.get=Hr,Fr.prototype.has=Yr,Fr.prototype.set=$r,qr.prototype.add=qr.prototype.push=Zr,qr.prototype.has=Jr,Xr.prototype.clear=Qr,Xr.prototype["delete"]=eo,Xr.prototype.get=no,Xr.prototype.has=to,Xr.prototype.set=ro;var ko=li(Oo),Po=li(jo,!0);function So(e,n){var t=!0;return ko(e,(function(e,r,o){return t=!!n(e,r,o),t})),t}function Co(e,n,t){var r=-1,o=e.length;while(++r<o){var i=e[r],s=n(i);if(null!=s&&(u===a?s===s&&!Il(s):t(s,u)))var u=s,c=i}return c}function Mo(e,n,t,r){var o=e.length;t=$l(t),t<0&&(t=-t>o?0:o+t),r=r===a||r>o?o:$l(r),r<0&&(r+=o),r=t>r?0:ql(r);while(t<r)e[t++]=n;return e}function Bo(e,n){var t=[];return ko(e,(function(e,r,o){n(e,r,o)&&t.push(e)})),t}function Ao(e,n,t,r,o){var a=-1,i=e.length;t||(t=as),o||(o=[]);while(++a<i){var s=e[a];n>0&&t(s)?n>1?Ao(s,n-1,t,r,o):At(o,s):r||(o[o.length]=s)}return o}var Ro=fi(),Lo=fi(!0);function Oo(e,n){return e&&Ro(e,n,kf)}function jo(e,n){return e&&Lo(e,n,kf)}function zo(e,n){return St(n,(function(n){return xl(e[n])}))}function Do(e,n){n=Va(n,e);var t=0,r=n.length;while(null!=e&&t<r)e=e[Ls(n[t++])];return t&&t==r?e:a}function Eo(e,n,t){var r=n(e);return ul(e)?r:At(r,t(e))}function Go(e){return null==e?e===a?ce:ne:An&&An in tn(e)?$i(e):bs(e)}function To(e,n){return e>n}function Io(e,n){return null!=e&&dn.call(e,n)}function No(e,n){return null!=e&&n in tn(e)}function Uo(e,n,t){return e>=Kn(n,t)&&e<Un(n,t)}function Ko(e,n,r){var o=r?Mt:Ct,i=e[0].length,s=e.length,u=s,c=t(s),l=1/0,f=[];while(u--){var d=e[u];u&&n&&(d=Bt(d,Zt(n))),l=Kn(d.length,l),c[u]=!r&&(n||i>=120&&d.length>=120)?new qr(u&&d):a}d=e[0];var p=-1,h=c[0];e:while(++p<i&&f.length<l){var g=d[p],y=n?n(g):g;if(g=r||0!==g?g:0,!(h?Xt(h,y):o(f,y,r))){u=s;while(--u){var v=c[u];if(!(v?Xt(v,y):o(e[u],y,r)))continue e}h&&h.push(y),f.push(g)}}return f}function Fo(e,n,t,r){return Oo(e,(function(e,o,a){n(r,t(e),o,a)})),r}function Vo(e,n,t){n=Va(n,e),e=xs(e,n);var r=null==e?e:e[Ls(au(n))];return null==r?a:wt(r,e,t)}function Wo(e){return Sl(e)&&Go(e)==V}function Ho(e){return Sl(e)&&Go(e)==de}function Yo(e){return Sl(e)&&Go(e)==$}function $o(e,n,t,r,o){return e===n||(null==e||null==n||!Sl(e)&&!Sl(n)?e!==e&&n!==n:qo(e,n,t,r,$o,o))}function qo(e,n,t,r,o,a){var i=ul(e),s=ul(n),u=i?W:Ji(e),c=s?W:Ji(n);u=u==V?te:u,c=c==V?te:c;var l=u==te,f=c==te,d=u==c;if(d&&pl(e)){if(!pl(n))return!1;i=!0,l=!1}if(d&&!l)return a||(a=new Xr),i||Nl(e)?Di(e,n,t,r,o,a):Ei(e,n,u,t,r,o,a);if(!(t&v)){var p=l&&dn.call(e,"__wrapped__"),h=f&&dn.call(n,"__wrapped__");if(p||h){var g=p?e.value():e,y=h?n.value():n;return a||(a=new Xr),o(g,y,t,r,a)}}return!!d&&(a||(a=new Xr),Gi(e,n,t,r,o,a))}function Zo(e){return Sl(e)&&Ji(e)==Q}function Jo(e,n,t,r){var o=t.length,i=o,s=!r;if(null==e)return!i;e=tn(e);while(o--){var u=t[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}while(++o<i){u=t[o];var c=u[0],l=e[c],f=u[1];if(s&&u[2]){if(l===a&&!(c in e))return!1}else{var d=new Xr;if(r)var p=r(l,f,c,e,n,d);if(!(p===a?$o(f,l,v|m,r,d):p))return!1}}return!0}function Xo(e){if(!Pl(e)||fs(e))return!1;var n=xl(e)?mn:Ze;return n.test(Os(e))}function Qo(e){return Sl(e)&&Go(e)==ae}function ea(e){return Sl(e)&&Ji(e)==ie}function na(e){return Sl(e)&&kl(e.length)&&!!Xn[Go(e)]}function ta(e){return"function"==typeof e?e:null==e?Ld:"object"==typeof e?ul(e)?ua(e[0],e[1]):sa(e):Vd(e)}function ra(e){if(!ps(e))return Nn(e);var n=[];for(var t in tn(e))dn.call(e,t)&&"constructor"!=t&&n.push(t);return n}function oa(e){if(!Pl(e))return ms(e);var n=ps(e),t=[];for(var r in e)("constructor"!=r||!n&&dn.call(e,r))&&t.push(r);return t}function aa(e,n){return e<n}function ia(e,n){var r=-1,o=ll(e)?t(e.length):[];return ko(e,(function(e,t,a){o[++r]=n(e,t,a)})),o}function sa(e){var n=Hi(e);return 1==n.length&&n[0][2]?gs(n[0][0],n[0][1]):function(t){return t===e||Jo(t,e,n)}}function ua(e,n){return us(e)&&hs(n)?gs(Ls(e),n):function(t){var r=vf(t,e);return r===a&&r===n?bf(t,e):$o(n,r,v|m)}}function ca(e,n,t,r,o){e!==n&&Ro(n,(function(i,s){if(o||(o=new Xr),Pl(i))la(e,n,s,t,ca,r,o);else{var u=r?r(ks(e,s),i,s+"",e,n,o):a;u===a&&(u=i),uo(e,s,u)}}),Pf)}function la(e,n,t,r,o,i,s){var u=ks(e,t),c=ks(n,t),l=s.get(c);if(l)uo(e,t,l);else{var f=i?i(u,c,t+"",e,n,s):a,d=f===a;if(d){var p=ul(c),h=!p&&pl(c),g=!p&&!h&&Nl(c);f=c,p||h||g?ul(u)?f=u:fl(u)?f=oi(u):h?(d=!1,f=$a(c,!0)):g?(d=!1,f=Qa(c,!0)):f=[]:zl(c)||sl(c)?(f=u,sl(u)?f=Jl(u):Pl(u)&&!xl(u)||(f=ts(c))):d=!1}d&&(s.set(c,f),o(f,c,r,i,s),s["delete"](c)),uo(e,t,f)}}function fa(e,n){var t=e.length;if(t)return n+=n<0?t:0,is(n,t)?e[n]:a}function da(e,n,t){n=n.length?Bt(n,(function(e){return ul(e)?function(n){return Do(n,1===e.length?e[0]:e)}:e})):[Ld];var r=-1;n=Bt(n,Zt(Vi()));var o=ia(e,(function(e,t,o){var a=Bt(n,(function(n){return n(e)}));return{criteria:a,index:++r,value:e}}));return Wt(o,(function(e,n){return ni(e,n,t)}))}function pa(e,n){return ha(e,n,(function(n,t){return bf(e,t)}))}function ha(e,n,t){var r=-1,o=n.length,a={};while(++r<o){var i=n[r],s=Do(e,i);t(s,i)&&Pa(a,Va(i,e),s)}return a}function ga(e){return function(n){return Do(n,e)}}function ya(e,n,t,r){var o=r?It:Tt,a=-1,i=n.length,s=e;e===n&&(n=oi(n)),t&&(s=Bt(e,Zt(t)));while(++a<i){var u=0,c=n[a],l=t?t(c):c;while((u=o(s,l,u,r))>-1)s!==e&&Cn.call(s,u,1),Cn.call(e,u,1)}return e}function va(e,n){var t=e?n.length:0,r=t-1;while(t--){var o=n[t];if(t==r||o!==a){var a=o;is(o)?Cn.call(e,o,1):Ea(e,o)}}return e}function ma(e,n){return e+Dn(Yn()*(n-e+1))}function ba(e,n,r,o){var a=-1,i=Un(zn((n-e)/(r||1)),0),s=t(i);while(i--)s[o?i:++a]=e,e+=r;return s}function wa(e,n){var t="";if(!e||n<1||n>G)return t;do{n%2&&(t+=e),n=Dn(n/2),n&&(e+=e)}while(n);return t}function xa(e,n){return Cs(ws(e,n,Ld),e+"")}function _a(e){return ao(Kf(e))}function ka(e,n){var t=Kf(e);return As(t,vo(n,0,t.length))}function Pa(e,n,t,r){if(!Pl(e))return e;n=Va(n,e);var o=-1,i=n.length,s=i-1,u=e;while(null!=u&&++o<i){var c=Ls(n[o]),l=t;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var f=u[c];l=r?r(f,c,u):a,l===a&&(l=Pl(f)?f:is(n[o+1])?[]:{})}co(u,c,l),u=u[c]}return e}var Sa=st?function(e,n){return st.set(e,n),e}:Ld,Ca=Rn?function(e,n){return Rn(e,"toString",{configurable:!0,enumerable:!1,value:Md(n),writable:!0})}:Ld;function Ma(e){return As(Kf(e))}function Ba(e,n,r){var o=-1,a=e.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;var i=t(a);while(++o<a)i[o]=e[o+n];return i}function Aa(e,n){var t;return ko(e,(function(e,r,o){return t=n(e,r,o),!t})),!!t}function Ra(e,n,t){var r=0,o=null==e?r:e.length;if("number"==typeof n&&n===n&&o<=K){while(r<o){var a=r+o>>>1,i=e[a];null!==i&&!Il(i)&&(t?i<=n:i<n)?r=a+1:o=a}return o}return La(e,n,Ld,t)}function La(e,n,t,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;n=t(n);var s=n!==n,u=null===n,c=Il(n),l=n===a;while(o<i){var f=Dn((o+i)/2),d=t(e[f]),p=d!==a,h=null===d,g=d===d,y=Il(d);if(s)var v=r||g;else v=l?g&&(r||p):u?g&&p&&(r||!h):c?g&&p&&!h&&(r||!y):!h&&!y&&(r?d<=n:d<n);v?o=f+1:i=f}return Kn(i,U)}function Oa(e,n){var t=-1,r=e.length,o=0,a=[];while(++t<r){var i=e[t],s=n?n(i):i;if(!t||!ol(s,u)){var u=s;a[o++]=0===i?0:i}}return a}function ja(e){return"number"==typeof e?e:Il(e)?I:+e}function za(e){if("string"==typeof e)return e;if(ul(e))return Bt(e,za)+"";if(Il(e))return wr?wr.call(e):"";var n=e+"";return"0"==n&&1/e==-E?"-0":n}function Da(e,n,t){var r=-1,o=Ct,a=e.length,i=!0,u=[],c=u;if(t)i=!1,o=Mt;else if(a>=s){var l=n?null:Ai(e);if(l)return dr(l);i=!1,o=Xt,c=new qr}else c=n?[]:u;e:while(++r<a){var f=e[r],d=n?n(f):f;if(f=t||0!==f?f:0,i&&d===d){var p=c.length;while(p--)if(c[p]===d)continue e;n&&c.push(d),u.push(f)}else o(c,d,t)||(c!==u&&c.push(d),u.push(f))}return u}function Ea(e,n){return n=Va(n,e),e=xs(e,n),null==e||delete e[Ls(au(n))]}function Ga(e,n,t,r){return Pa(e,n,t(Do(e,n)),r)}function Ta(e,n,t,r){var o=e.length,a=r?o:-1;while((r?a--:++a<o)&&n(e[a],a,e));return t?Ba(e,r?0:a,r?a+1:o):Ba(e,r?a+1:0,r?o:a)}function Ia(e,n){var t=e;return t instanceof Mr&&(t=t.value()),Rt(n,(function(e,n){return n.func.apply(n.thisArg,At([e],n.args))}),t)}function Na(e,n,r){var o=e.length;if(o<2)return o?Da(e[0]):[];var a=-1,i=t(o);while(++a<o){var s=e[a],u=-1;while(++u<o)u!=a&&(i[a]=_o(i[a]||s,e[u],n,r))}return Da(Ao(i,1),n,r)}function Ua(e,n,t){var r=-1,o=e.length,i=n.length,s={};while(++r<o){var u=r<i?n[r]:a;t(s,e[r],u)}return s}function Ka(e){return fl(e)?e:[]}function Fa(e){return"function"==typeof e?e:Ld}function Va(e,n){return ul(e)?e:us(e,n)?[e]:Rs(Ql(e))}var Wa=xa;function Ha(e,n,t){var r=e.length;return t=t===a?r:t,!n&&t>=r?e:Ba(e,n,t)}var Ya=Ln||function(e){return ut.clearTimeout(e)};function $a(e,n){if(n)return e.slice();var t=e.length,r=_n?_n(t):new e.constructor(t);return e.copy(r),r}function qa(e){var n=new e.constructor(e.byteLength);return new xn(n).set(new xn(e)),n}function Za(e,n){var t=n?qa(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}function Ja(e){var n=new e.constructor(e.source,Ye.exec(e));return n.lastIndex=e.lastIndex,n}function Xa(e){return hr?tn(hr.call(e)):{}}function Qa(e,n){var t=n?qa(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function ei(e,n){if(e!==n){var t=e!==a,r=null===e,o=e===e,i=Il(e),s=n!==a,u=null===n,c=n===n,l=Il(n);if(!u&&!l&&!i&&e>n||i&&s&&c&&!u&&!l||r&&s&&c||!t&&c||!o)return 1;if(!r&&!i&&!l&&e<n||l&&t&&o&&!r&&!i||u&&t&&o||!s&&o||!c)return-1}return 0}function ni(e,n,t){var r=-1,o=e.criteria,a=n.criteria,i=o.length,s=t.length;while(++r<i){var u=ei(o[r],a[r]);if(u){if(r>=s)return u;var c=t[r];return u*("desc"==c?-1:1)}}return e.index-n.index}function ti(e,n,r,o){var a=-1,i=e.length,s=r.length,u=-1,c=n.length,l=Un(i-s,0),f=t(c+l),d=!o;while(++u<c)f[u]=n[u];while(++a<s)(d||a<i)&&(f[r[a]]=e[a]);while(l--)f[u++]=e[a++];return f}function ri(e,n,r,o){var a=-1,i=e.length,s=-1,u=r.length,c=-1,l=n.length,f=Un(i-u,0),d=t(f+l),p=!o;while(++a<f)d[a]=e[a];var h=a;while(++c<l)d[h+c]=n[c];while(++s<u)(p||a<i)&&(d[h+r[s]]=e[a++]);return d}function oi(e,n){var r=-1,o=e.length;n||(n=t(o));while(++r<o)n[r]=e[r];return n}function ai(e,n,t,r){var o=!t;t||(t={});var i=-1,s=n.length;while(++i<s){var u=n[i],c=r?r(t[u],e[u],u,t,e):a;c===a&&(c=e[u]),o?go(t,u,c):co(t,u,c)}return t}function ii(e,n){return ai(e,qi(e),n)}function si(e,n){return ai(e,Zi(e),n)}function ui(e,n){return function(t,r){var o=ul(t)?xt:fo,a=n?n():{};return o(t,e,Vi(r,2),a)}}function ci(e){return xa((function(n,t){var r=-1,o=t.length,i=o>1?t[o-1]:a,s=o>2?t[2]:a;i=e.length>3&&"function"==typeof i?(o--,i):a,s&&ss(t[0],t[1],s)&&(i=o<3?a:i,o=1),n=tn(n);while(++r<o){var u=t[r];u&&e(n,u,r,i)}return n}))}function li(e,n){return function(t,r){if(null==t)return t;if(!ll(t))return e(t,r);var o=t.length,a=n?o:-1,i=tn(t);while(n?a--:++a<o)if(!1===r(i[a],a,i))break;return t}}function fi(e){return function(n,t,r){var o=-1,a=tn(n),i=r(n),s=i.length;while(s--){var u=i[e?s:++o];if(!1===t(a[u],u,a))break}return n}}function di(e,n,t){var r=n&b,o=gi(e);function a(){var n=this&&this!==ut&&this instanceof a?o:e;return n.apply(r?t:this,arguments)}return a}function pi(e){return function(n){n=Ql(n);var t=ir(n)?vr(n):a,r=t?t[0]:n.charAt(0),o=t?Ha(t,1).join(""):n.slice(1);return r[e]()+o}}function hi(e){return function(n){return Rt(_d(qf(n).replace(Vn,"")),e,"")}}function gi(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var t=kr(e.prototype),r=e.apply(t,n);return Pl(r)?r:t}}function yi(e,n,r){var o=gi(e);function i(){var s=arguments.length,u=t(s),c=s,l=Fi(i);while(c--)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:fr(u,l);if(s-=f.length,s<r)return Mi(e,n,bi,i.placeholder,a,u,f,a,a,r-s);var d=this&&this!==ut&&this instanceof i?o:e;return wt(d,this,u)}return i}function vi(e){return function(n,t,r){var o=tn(n);if(!ll(n)){var i=Vi(t,3);n=kf(n),t=function(e){return i(o[e],e,o)}}var s=e(n,t,r);return s>-1?o[i?n[s]:s]:a}}function mi(e){return Ti((function(n){var t=n.length,r=t,o=Cr.prototype.thru;e&&n.reverse();while(r--){var i=n[r];if("function"!=typeof i)throw new an(c);if(o&&!s&&"wrapper"==Ki(i))var s=new Cr([],!0)}r=s?r:t;while(++r<t){i=n[r];var u=Ki(i),l="wrapper"==u?Ui(i):a;s=l&&ls(l[0])&&l[1]==(C|_|P|M)&&!l[4].length&&1==l[9]?s[Ki(l[0])].apply(s,l[3]):1==i.length&&ls(i)?s[u]():s.thru(i)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&ul(r))return s.plant(r).value();var o=0,a=t?n[o].apply(this,e):r;while(++o<t)a=n[o].call(this,a);return a}}))}function bi(e,n,r,o,i,s,u,c,l,f){var d=n&C,p=n&b,h=n&w,g=n&(_|k),y=n&B,v=h?a:gi(e);function m(){var a=arguments.length,b=t(a),w=a;while(w--)b[w]=arguments[w];if(g)var x=Fi(m),_=nr(b,x);if(o&&(b=ti(b,o,i,g)),s&&(b=ri(b,s,u,g)),a-=_,g&&a<f){var k=fr(b,x);return Mi(e,n,bi,m.placeholder,r,b,k,c,l,f-a)}var P=p?r:this,S=h?P[e]:e;return a=b.length,c?b=_s(b,c):y&&a>1&&b.reverse(),d&&l<a&&(b.length=l),this&&this!==ut&&this instanceof m&&(S=v||gi(S)),S.apply(P,b)}return m}function wi(e,n){return function(t,r){return Fo(t,e,n(r),{})}}function xi(e,n){return function(t,r){var o;if(t===a&&r===a)return n;if(t!==a&&(o=t),r!==a){if(o===a)return r;"string"==typeof t||"string"==typeof r?(t=za(t),r=za(r)):(t=ja(t),r=ja(r)),o=e(t,r)}return o}}function _i(e){return Ti((function(n){return n=Bt(n,Zt(Vi())),xa((function(t){var r=this;return e(n,(function(e){return wt(e,r,t)}))}))}))}function ki(e,n){n=n===a?" ":za(n);var t=n.length;if(t<2)return t?wa(n,e):n;var r=wa(n,zn(e/yr(n)));return ir(n)?Ha(vr(r),0,e).join(""):r.slice(0,e)}function Pi(e,n,r,o){var a=n&b,i=gi(e);function s(){var n=-1,u=arguments.length,c=-1,l=o.length,f=t(l+u),d=this&&this!==ut&&this instanceof s?i:e;while(++c<l)f[c]=o[c];while(u--)f[c++]=arguments[++n];return wt(d,a?r:this,f)}return s}function Si(e){return function(n,t,r){return r&&"number"!=typeof r&&ss(n,t,r)&&(t=r=a),n=Yl(n),t===a?(t=n,n=0):t=Yl(t),r=r===a?n<t?1:-1:Yl(r),ba(n,t,r,e)}}function Ci(e){return function(n,t){return"string"==typeof n&&"string"==typeof t||(n=Zl(n),t=Zl(t)),e(n,t)}}function Mi(e,n,t,r,o,i,s,u,c,l){var f=n&_,d=f?s:a,p=f?a:s,h=f?i:a,g=f?a:i;n|=f?P:S,n&=~(f?S:P),n&x||(n&=~(b|w));var y=[e,n,o,h,d,g,p,u,c,l],v=t.apply(a,y);return ls(e)&&Ps(v,y),v.placeholder=r,Ms(v,e,n)}function Bi(e){var n=Fe[e];return function(e,t){if(e=Zl(e),t=null==t?0:Kn($l(t),292),t&&Tn(e)){var r=(Ql(e)+"e").split("e"),o=n(r[0]+"e"+(+r[1]+t));return r=(Ql(o)+"e").split("e"),+(r[0]+"e"+(+r[1]-t))}return n(e)}}var Ai=tt&&1/dr(new tt([,-0]))[1]==E?function(e){return new tt(e)}:Id;function Ri(e){return function(n){var t=Ji(n);return t==Q?cr(n):t==ie?pr(n):$t(n,e(n))}}function Li(e,n,t,r,o,i,s,u){var l=n&w;if(!l&&"function"!=typeof e)throw new an(c);var f=r?r.length:0;if(f||(n&=~(P|S),r=o=a),s=s===a?s:Un($l(s),0),u=u===a?u:$l(u),f-=o?o.length:0,n&S){var d=r,p=o;r=o=a}var h=l?a:Ui(e),g=[e,n,t,r,o,d,p,i,s,u];if(h&&vs(g,h),e=g[0],n=g[1],t=g[2],r=g[3],o=g[4],u=g[9]=g[9]===a?l?0:e.length:Un(g[9]-f,0),!u&&n&(_|k)&&(n&=~(_|k)),n&&n!=b)y=n==_||n==k?yi(e,n,u):n!=P&&n!=(b|P)||o.length?bi.apply(a,g):Pi(e,n,t,r);else var y=di(e,n,t);var v=h?Sa:Ps;return Ms(v(y,g),e,n)}function Oi(e,n,t,r){return e===a||ol(e,cn[t])&&!dn.call(r,t)?n:e}function ji(e,n,t,r,o,i){return Pl(e)&&Pl(n)&&(i.set(n,e),ca(e,n,a,ji,i),i["delete"](n)),e}function zi(e){return zl(e)?a:e}function Di(e,n,t,r,o,i){var s=t&v,u=e.length,c=n.length;if(u!=c&&!(s&&c>u))return!1;var l=i.get(e),f=i.get(n);if(l&&f)return l==n&&f==e;var d=-1,p=!0,h=t&m?new qr:a;i.set(e,n),i.set(n,e);while(++d<u){var g=e[d],y=n[d];if(r)var b=s?r(y,g,d,n,e,i):r(g,y,d,e,n,i);if(b!==a){if(b)continue;p=!1;break}if(h){if(!Ot(n,(function(e,n){if(!Xt(h,n)&&(g===e||o(g,e,t,r,i)))return h.push(n)}))){p=!1;break}}else if(g!==y&&!o(g,y,t,r,i)){p=!1;break}}return i["delete"](e),i["delete"](n),p}function Ei(e,n,t,r,o,a,i){switch(t){case pe:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case de:return!(e.byteLength!=n.byteLength||!a(new xn(e),new xn(n)));case Y:case $:case ee:return ol(+e,+n);case Z:return e.name==n.name&&e.message==n.message;case ae:case se:return e==n+"";case Q:var s=cr;case ie:var u=r&v;if(s||(s=dr),e.size!=n.size&&!u)return!1;var c=i.get(e);if(c)return c==n;r|=m,i.set(e,n);var l=Di(s(e),s(n),r,o,a,i);return i["delete"](e),l;case ue:if(hr)return hr.call(e)==hr.call(n)}return!1}function Gi(e,n,t,r,o,i){var s=t&v,u=Ii(e),c=u.length,l=Ii(n),f=l.length;if(c!=f&&!s)return!1;var d=c;while(d--){var p=u[d];if(!(s?p in n:dn.call(n,p)))return!1}var h=i.get(e),g=i.get(n);if(h&&g)return h==n&&g==e;var y=!0;i.set(e,n),i.set(n,e);var m=s;while(++d<c){p=u[d];var b=e[p],w=n[p];if(r)var x=s?r(w,b,p,n,e,i):r(b,w,p,e,n,i);if(!(x===a?b===w||o(b,w,t,r,i):x)){y=!1;break}m||(m="constructor"==p)}if(y&&!m){var _=e.constructor,k=n.constructor;_==k||!("constructor"in e)||!("constructor"in n)||"function"==typeof _&&_ instanceof _&&"function"==typeof k&&k instanceof k||(y=!1)}return i["delete"](e),i["delete"](n),y}function Ti(e){return Cs(ws(e,a,$s),e+"")}function Ii(e){return Eo(e,kf,qi)}function Ni(e){return Eo(e,Pf,Zi)}var Ui=st?function(e){return st.get(e)}:Id;function Ki(e){var n=e.name+"",t=ct[n],r=dn.call(ct,n)?t.length:0;while(r--){var o=t[r],a=o.func;if(null==a||a==e)return o.name}return n}function Fi(e){var n=dn.call(xr,"placeholder")?xr:e;return n.placeholder}function Vi(){var e=xr.iteratee||Od;return e=e===Od?ta:e,arguments.length?e(arguments[0],arguments[1]):e}function Wi(e,n){var t=e.__data__;return cs(n)?t["string"==typeof n?"string":"hash"]:t.map}function Hi(e){var n=kf(e),t=n.length;while(t--){var r=n[t],o=e[r];n[t]=[r,o,hs(o)]}return n}function Yi(e,n){var t=ar(e,n);return Xo(t)?t:a}function $i(e){var n=dn.call(e,An),t=e[An];try{e[An]=a;var r=!0}catch(i){}var o=gn.call(e);return r&&(n?e[An]=t:delete e[An]),o}var qi=En?function(e){return null==e?[]:(e=tn(e),St(En(e),(function(n){return Sn.call(e,n)})))}:$d,Zi=En?function(e){var n=[];while(e)At(n,qi(e)),e=kn(e);return n}:$d,Ji=Go;function Xi(e,n,t){var r=-1,o=t.length;while(++r<o){var a=t[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":n-=i;break;case"take":n=Kn(n,e+i);break;case"takeRight":e=Un(e,n-i);break}}return{start:e,end:n}}function Qi(e){var n=e.match(Ue);return n?n[1].split(Ke):[]}function es(e,n,t){n=Va(n,e);var r=-1,o=n.length,a=!1;while(++r<o){var i=Ls(n[r]);if(!(a=null!=e&&t(e,i)))break;e=e[i]}return a||++r!=o?a:(o=null==e?0:e.length,!!o&&kl(o)&&is(i,o)&&(ul(e)||sl(e)))}function ns(e){var n=e.length,t=new e.constructor(n);return n&&"string"==typeof e[0]&&dn.call(e,"index")&&(t.index=e.index,t.input=e.input),t}function ts(e){return"function"!=typeof e.constructor||ps(e)?{}:kr(kn(e))}function rs(e,n,t){var r=e.constructor;switch(n){case de:return qa(e);case Y:case $:return new r(+e);case pe:return Za(e,t);case he:case ge:case ye:case ve:case me:case be:case we:case xe:case _e:return Qa(e,t);case Q:return new r;case ee:case se:return new r(e);case ae:return Ja(e);case ie:return new r;case ue:return Xa(e)}}function os(e,n){var t=n.length;if(!t)return e;var r=t-1;return n[r]=(t>1?"& ":"")+n[r],n=n.join(t>2?", ":" "),e.replace(Ne,"{\n/* [wrapped with "+n+"] */\n")}function as(e){return ul(e)||sl(e)||!!(Mn&&e&&e[Mn])}function is(e,n){var t=typeof e;return n=null==n?G:n,!!n&&("number"==t||"symbol"!=t&&Xe.test(e))&&e>-1&&e%1==0&&e<n}function ss(e,n,t){if(!Pl(t))return!1;var r=typeof n;return!!("number"==r?ll(t)&&is(n,t.length):"string"==r&&n in t)&&ol(t[n],e)}function us(e,n){if(ul(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!Il(e))||(ze.test(e)||!je.test(e)||null!=n&&e in tn(n))}function cs(e){var n=typeof e;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e}function ls(e){var n=Ki(e),t=xr[n];if("function"!=typeof t||!(n in Mr.prototype))return!1;if(e===t)return!0;var r=Ui(t);return!!r&&e===r[0]}function fs(e){return!!hn&&hn in e}(qn&&Ji(new qn(new ArrayBuffer(1)))!=pe||et&&Ji(new et)!=Q||nt&&Ji(nt.resolve())!=re||tt&&Ji(new tt)!=ie||rt&&Ji(new rt)!=le)&&(Ji=function(e){var n=Go(e),t=n==te?e.constructor:a,r=t?Os(t):"";if(r)switch(r){case lt:return pe;case dt:return Q;case pt:return re;case jt:return ie;case zt:return le}return n});var ds=ln?xl:qd;function ps(e){var n=e&&e.constructor,t="function"==typeof n&&n.prototype||cn;return e===t}function hs(e){return e===e&&!Pl(e)}function gs(e,n){return function(t){return null!=t&&(t[e]===n&&(n!==a||e in tn(t)))}}function ys(e){var n=Nc(e,(function(e){return t.size===d&&t.clear(),e})),t=n.cache;return n}function vs(e,n){var t=e[1],r=n[1],o=t|r,a=o<(b|w|C),i=r==C&&t==_||r==C&&t==M&&e[7].length<=n[8]||r==(C|M)&&n[7].length<=n[8]&&t==_;if(!a&&!i)return e;r&b&&(e[2]=n[2],o|=t&b?0:x);var s=n[3];if(s){var u=e[3];e[3]=u?ti(u,s,n[4]):s,e[4]=u?fr(e[3],p):n[4]}return s=n[5],s&&(u=e[5],e[5]=u?ri(u,s,n[6]):s,e[6]=u?fr(e[5],p):n[6]),s=n[7],s&&(e[7]=s),r&C&&(e[8]=null==e[8]?n[8]:Kn(e[8],n[8])),null==e[9]&&(e[9]=n[9]),e[0]=n[0],e[1]=o,e}function ms(e){var n=[];if(null!=e)for(var t in tn(e))n.push(t);return n}function bs(e){return gn.call(e)}function ws(e,n,r){return n=Un(n===a?e.length-1:n,0),function(){var o=arguments,a=-1,i=Un(o.length-n,0),s=t(i);while(++a<i)s[a]=o[n+a];a=-1;var u=t(n+1);while(++a<n)u[a]=o[a];return u[n]=r(s),wt(e,this,u)}}function xs(e,n){return n.length<2?e:Do(e,Ba(n,0,-1))}function _s(e,n){var t=e.length,r=Kn(n.length,t),o=oi(e);while(r--){var i=n[r];e[r]=is(i,t)?o[i]:a}return e}function ks(e,n){if(("constructor"!==n||"function"!==typeof e[n])&&"__proto__"!=n)return e[n]}var Ps=Bs(Sa),Ss=jn||function(e,n){return ut.setTimeout(e,n)},Cs=Bs(Ca);function Ms(e,n,t){var r=n+"";return Cs(e,os(r,js(Qi(r),t)))}function Bs(e){var n=0,t=0;return function(){var r=Fn(),o=O-(r-t);if(t=r,o>0){if(++n>=L)return arguments[0]}else n=0;return e.apply(a,arguments)}}function As(e,n){var t=-1,r=e.length,o=r-1;n=n===a?r:n;while(++t<n){var i=ma(t,o),s=e[i];e[i]=e[t],e[t]=s}return e.length=n,e}var Rs=ys((function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(De,(function(e,t,r,o){n.push(r?o.replace(We,"$1"):t||e)})),n}));function Ls(e){if("string"==typeof e||Il(e))return e;var n=e+"";return"0"==n&&1/e==-E?"-0":n}function Os(e){if(null!=e){try{return fn.call(e)}catch(n){}try{return e+""}catch(n){}}return""}function js(e,n){return _t(F,(function(t){var r="_."+t[0];n&t[1]&&!Ct(e,r)&&e.push(r)})),e.sort()}function zs(e){if(e instanceof Mr)return e.clone();var n=new Cr(e.__wrapped__,e.__chain__);return n.__actions__=oi(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function Ds(e,n,r){n=(r?ss(e,n,r):n===a)?1:Un($l(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];var i=0,s=0,u=t(zn(o/n));while(i<o)u[s++]=Ba(e,i,i+=n);return u}function Es(e){var n=-1,t=null==e?0:e.length,r=0,o=[];while(++n<t){var a=e[n];a&&(o[r++]=a)}return o}function Gs(){var e=arguments.length;if(!e)return[];var n=t(e-1),r=arguments[0],o=e;while(o--)n[o-1]=arguments[o];return At(ul(r)?oi(r):[r],Ao(n,1))}var Ts=xa((function(e,n){return fl(e)?_o(e,Ao(n,1,fl,!0)):[]})),Is=xa((function(e,n){var t=au(n);return fl(t)&&(t=a),fl(e)?_o(e,Ao(n,1,fl,!0),Vi(t,2)):[]})),Ns=xa((function(e,n){var t=au(n);return fl(t)&&(t=a),fl(e)?_o(e,Ao(n,1,fl,!0),a,t):[]}));function Us(e,n,t){var r=null==e?0:e.length;return r?(n=t||n===a?1:$l(n),Ba(e,n<0?0:n,r)):[]}function Ks(e,n,t){var r=null==e?0:e.length;return r?(n=t||n===a?1:$l(n),n=r-n,Ba(e,0,n<0?0:n)):[]}function Fs(e,n){return e&&e.length?Ta(e,Vi(n,3),!0,!0):[]}function Vs(e,n){return e&&e.length?Ta(e,Vi(n,3),!0):[]}function Ws(e,n,t,r){var o=null==e?0:e.length;return o?(t&&"number"!=typeof t&&ss(e,n,t)&&(t=0,r=o),Mo(e,n,t,r)):[]}function Hs(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=null==t?0:$l(t);return o<0&&(o=Un(r+o,0)),Gt(e,Vi(n,3),o)}function Ys(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return t!==a&&(o=$l(t),o=t<0?Un(r+o,0):Kn(o,r-1)),Gt(e,Vi(n,3),o,!0)}function $s(e){var n=null==e?0:e.length;return n?Ao(e,1):[]}function qs(e){var n=null==e?0:e.length;return n?Ao(e,E):[]}function Zs(e,n){var t=null==e?0:e.length;return t?(n=n===a?1:$l(n),Ao(e,n)):[]}function Js(e){var n=-1,t=null==e?0:e.length,r={};while(++n<t){var o=e[n];r[o[0]]=o[1]}return r}function Xs(e){return e&&e.length?e[0]:a}function Qs(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=null==t?0:$l(t);return o<0&&(o=Un(r+o,0)),Tt(e,n,o)}function eu(e){var n=null==e?0:e.length;return n?Ba(e,0,-1):[]}var nu=xa((function(e){var n=Bt(e,Ka);return n.length&&n[0]===e[0]?Ko(n):[]})),tu=xa((function(e){var n=au(e),t=Bt(e,Ka);return n===au(t)?n=a:t.pop(),t.length&&t[0]===e[0]?Ko(t,Vi(n,2)):[]})),ru=xa((function(e){var n=au(e),t=Bt(e,Ka);return n="function"==typeof n?n:a,n&&t.pop(),t.length&&t[0]===e[0]?Ko(t,a,n):[]}));function ou(e,n){return null==e?"":In.call(e,n)}function au(e){var n=null==e?0:e.length;return n?e[n-1]:a}function iu(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=r;return t!==a&&(o=$l(t),o=o<0?Un(r+o,0):Kn(o,r-1)),n===n?gr(e,n,o):Gt(e,Nt,o,!0)}function su(e,n){return e&&e.length?fa(e,$l(n)):a}var uu=xa(cu);function cu(e,n){return e&&e.length&&n&&n.length?ya(e,n):e}function lu(e,n,t){return e&&e.length&&n&&n.length?ya(e,n,Vi(t,2)):e}function fu(e,n,t){return e&&e.length&&n&&n.length?ya(e,n,a,t):e}var du=Ti((function(e,n){var t=null==e?0:e.length,r=yo(e,n);return va(e,Bt(n,(function(e){return is(e,t)?+e:e})).sort(ei)),r}));function pu(e,n){var t=[];if(!e||!e.length)return t;var r=-1,o=[],a=e.length;n=Vi(n,3);while(++r<a){var i=e[r];n(i,r,e)&&(t.push(i),o.push(r))}return va(e,o),t}function hu(e){return null==e?e:$n.call(e)}function gu(e,n,t){var r=null==e?0:e.length;return r?(t&&"number"!=typeof t&&ss(e,n,t)?(n=0,t=r):(n=null==n?0:$l(n),t=t===a?r:$l(t)),Ba(e,n,t)):[]}function yu(e,n){return Ra(e,n)}function vu(e,n,t){return La(e,n,Vi(t,2))}function mu(e,n){var t=null==e?0:e.length;if(t){var r=Ra(e,n);if(r<t&&ol(e[r],n))return r}return-1}function bu(e,n){return Ra(e,n,!0)}function wu(e,n,t){return La(e,n,Vi(t,2),!0)}function xu(e,n){var t=null==e?0:e.length;if(t){var r=Ra(e,n,!0)-1;if(ol(e[r],n))return r}return-1}function _u(e){return e&&e.length?Oa(e):[]}function ku(e,n){return e&&e.length?Oa(e,Vi(n,2)):[]}function Pu(e){var n=null==e?0:e.length;return n?Ba(e,1,n):[]}function Su(e,n,t){return e&&e.length?(n=t||n===a?1:$l(n),Ba(e,0,n<0?0:n)):[]}function Cu(e,n,t){var r=null==e?0:e.length;return r?(n=t||n===a?1:$l(n),n=r-n,Ba(e,n<0?0:n,r)):[]}function Mu(e,n){return e&&e.length?Ta(e,Vi(n,3),!1,!0):[]}function Bu(e,n){return e&&e.length?Ta(e,Vi(n,3)):[]}var Au=xa((function(e){return Da(Ao(e,1,fl,!0))})),Ru=xa((function(e){var n=au(e);return fl(n)&&(n=a),Da(Ao(e,1,fl,!0),Vi(n,2))})),Lu=xa((function(e){var n=au(e);return n="function"==typeof n?n:a,Da(Ao(e,1,fl,!0),a,n)}));function Ou(e){return e&&e.length?Da(e):[]}function ju(e,n){return e&&e.length?Da(e,Vi(n,2)):[]}function zu(e,n){return n="function"==typeof n?n:a,e&&e.length?Da(e,a,n):[]}function Du(e){if(!e||!e.length)return[];var n=0;return e=St(e,(function(e){if(fl(e))return n=Un(e.length,n),!0})),Yt(n,(function(n){return Bt(e,Kt(n))}))}function Eu(e,n){if(!e||!e.length)return[];var t=Du(e);return null==n?t:Bt(t,(function(e){return wt(n,a,e)}))}var Gu=xa((function(e,n){return fl(e)?_o(e,n):[]})),Tu=xa((function(e){return Na(St(e,fl))})),Iu=xa((function(e){var n=au(e);return fl(n)&&(n=a),Na(St(e,fl),Vi(n,2))})),Nu=xa((function(e){var n=au(e);return n="function"==typeof n?n:a,Na(St(e,fl),a,n)})),Uu=xa(Du);function Ku(e,n){return Ua(e||[],n||[],co)}function Fu(e,n){return Ua(e||[],n||[],Pa)}var Vu=xa((function(e){var n=e.length,t=n>1?e[n-1]:a;return t="function"==typeof t?(e.pop(),t):a,Eu(e,t)}));function Wu(e){var n=xr(e);return n.__chain__=!0,n}function Hu(e,n){return n(e),e}function Yu(e,n){return n(e)}var $u=Ti((function(e){var n=e.length,t=n?e[0]:0,r=this.__wrapped__,o=function(n){return yo(n,e)};return!(n>1||this.__actions__.length)&&r instanceof Mr&&is(t)?(r=r.slice(t,+t+(n?1:0)),r.__actions__.push({func:Yu,args:[o],thisArg:a}),new Cr(r,this.__chain__).thru((function(e){return n&&!e.length&&e.push(a),e}))):this.thru(o)}));function qu(){return Wu(this)}function Zu(){return new Cr(this.value(),this.__chain__)}function Ju(){this.__values__===a&&(this.__values__=Hl(this.value()));var e=this.__index__>=this.__values__.length,n=e?a:this.__values__[this.__index__++];return{done:e,value:n}}function Xu(){return this}function Qu(e){var n,t=this;while(t instanceof Sr){var r=zs(t);r.__index__=0,r.__values__=a,n?o.__wrapped__=r:n=r;var o=r;t=t.__wrapped__}return o.__wrapped__=e,n}function ec(){var e=this.__wrapped__;if(e instanceof Mr){var n=e;return this.__actions__.length&&(n=new Mr(this)),n=n.reverse(),n.__actions__.push({func:Yu,args:[hu],thisArg:a}),new Cr(n,this.__chain__)}return this.thru(hu)}function nc(){return Ia(this.__wrapped__,this.__actions__)}var tc=ui((function(e,n,t){dn.call(e,t)?++e[t]:go(e,t,1)}));function rc(e,n,t){var r=ul(e)?Pt:So;return t&&ss(e,n,t)&&(n=a),r(e,Vi(n,3))}function oc(e,n){var t=ul(e)?St:Bo;return t(e,Vi(n,3))}var ac=vi(Hs),ic=vi(Ys);function sc(e,n){return Ao(yc(e,n),1)}function uc(e,n){return Ao(yc(e,n),E)}function cc(e,n,t){return t=t===a?1:$l(t),Ao(yc(e,n),t)}function lc(e,n){var t=ul(e)?_t:ko;return t(e,Vi(n,3))}function fc(e,n){var t=ul(e)?kt:Po;return t(e,Vi(n,3))}var dc=ui((function(e,n,t){dn.call(e,t)?e[t].push(n):go(e,t,[n])}));function pc(e,n,t,r){e=ll(e)?e:Kf(e),t=t&&!r?$l(t):0;var o=e.length;return t<0&&(t=Un(o+t,0)),Tl(e)?t<=o&&e.indexOf(n,t)>-1:!!o&&Tt(e,n,t)>-1}var hc=xa((function(e,n,r){var o=-1,a="function"==typeof n,i=ll(e)?t(e.length):[];return ko(e,(function(e){i[++o]=a?wt(n,e,r):Vo(e,n,r)})),i})),gc=ui((function(e,n,t){go(e,t,n)}));function yc(e,n){var t=ul(e)?Bt:ia;return t(e,Vi(n,3))}function vc(e,n,t,r){return null==e?[]:(ul(n)||(n=null==n?[]:[n]),t=r?a:t,ul(t)||(t=null==t?[]:[t]),da(e,n,t))}var mc=ui((function(e,n,t){e[t?0:1].push(n)}),(function(){return[[],[]]}));function bc(e,n,t){var r=ul(e)?Rt:Vt,o=arguments.length<3;return r(e,Vi(n,4),t,o,ko)}function wc(e,n,t){var r=ul(e)?Lt:Vt,o=arguments.length<3;return r(e,Vi(n,4),t,o,Po)}function xc(e,n){var t=ul(e)?St:Bo;return t(e,Uc(Vi(n,3)))}function _c(e){var n=ul(e)?ao:_a;return n(e)}function kc(e,n,t){n=(t?ss(e,n,t):n===a)?1:$l(n);var r=ul(e)?io:ka;return r(e,n)}function Pc(e){var n=ul(e)?so:Ma;return n(e)}function Sc(e){if(null==e)return 0;if(ll(e))return Tl(e)?yr(e):e.length;var n=Ji(e);return n==Q||n==ie?e.size:ra(e).length}function Cc(e,n,t){var r=ul(e)?Ot:Aa;return t&&ss(e,n,t)&&(n=a),r(e,Vi(n,3))}var Mc=xa((function(e,n){if(null==e)return[];var t=n.length;return t>1&&ss(e,n[0],n[1])?n=[]:t>2&&ss(n[0],n[1],n[2])&&(n=[n[0]]),da(e,Ao(n,1),[])})),Bc=On||function(){return ut.Date.now()};function Ac(e,n){if("function"!=typeof n)throw new an(c);return e=$l(e),function(){if(--e<1)return n.apply(this,arguments)}}function Rc(e,n,t){return n=t?a:n,n=e&&null==n?e.length:n,Li(e,C,a,a,a,a,n)}function Lc(e,n){var t;if("function"!=typeof n)throw new an(c);return e=$l(e),function(){return--e>0&&(t=n.apply(this,arguments)),e<=1&&(n=a),t}}var Oc=xa((function(e,n,t){var r=b;if(t.length){var o=fr(t,Fi(Oc));r|=P}return Li(e,r,n,t,o)})),jc=xa((function(e,n,t){var r=b|w;if(t.length){var o=fr(t,Fi(jc));r|=P}return Li(n,r,e,t,o)}));function zc(e,n,t){n=t?a:n;var r=Li(e,_,a,a,a,a,a,n);return r.placeholder=zc.placeholder,r}function Dc(e,n,t){n=t?a:n;var r=Li(e,k,a,a,a,a,a,n);return r.placeholder=Dc.placeholder,r}function Ec(e,n,t){var r,o,i,s,u,l,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new an(c);function g(n){var t=r,i=o;return r=o=a,f=n,s=e.apply(i,t),s}function y(e){return f=e,u=Ss(b,n),d?g(e):s}function v(e){var t=e-l,r=e-f,o=n-t;return p?Kn(o,i-r):o}function m(e){var t=e-l,r=e-f;return l===a||t>=n||t<0||p&&r>=i}function b(){var e=Bc();if(m(e))return w(e);u=Ss(b,v(e))}function w(e){return u=a,h&&r?g(e):(r=o=a,s)}function x(){u!==a&&Ya(u),f=0,r=l=o=u=a}function _(){return u===a?s:w(Bc())}function k(){var e=Bc(),t=m(e);if(r=arguments,o=this,l=e,t){if(u===a)return y(l);if(p)return Ya(u),u=Ss(b,n),g(l)}return u===a&&(u=Ss(b,n)),s}return n=Zl(n)||0,Pl(t)&&(d=!!t.leading,p="maxWait"in t,i=p?Un(Zl(t.maxWait)||0,n):i,h="trailing"in t?!!t.trailing:h),k.cancel=x,k.flush=_,k}var Gc=xa((function(e,n){return xo(e,1,n)})),Tc=xa((function(e,n,t){return xo(e,Zl(n)||0,t)}));function Ic(e){return Li(e,B)}function Nc(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new an(c);var t=function(){var r=arguments,o=n?n.apply(this,r):r[0],a=t.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return t.cache=a.set(o,i)||a,i};return t.cache=new(Nc.Cache||Fr),t}function Uc(e){if("function"!=typeof e)throw new an(c);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function Kc(e){return Lc(2,e)}Nc.Cache=Fr;var Fc=Wa((function(e,n){n=1==n.length&&ul(n[0])?Bt(n[0],Zt(Vi())):Bt(Ao(n,1),Zt(Vi()));var t=n.length;return xa((function(r){var o=-1,a=Kn(r.length,t);while(++o<a)r[o]=n[o].call(this,r[o]);return wt(e,this,r)}))})),Vc=xa((function(e,n){var t=fr(n,Fi(Vc));return Li(e,P,a,n,t)})),Wc=xa((function(e,n){var t=fr(n,Fi(Wc));return Li(e,S,a,n,t)})),Hc=Ti((function(e,n){return Li(e,M,a,a,a,n)}));function Yc(e,n){if("function"!=typeof e)throw new an(c);return n=n===a?n:$l(n),xa(e,n)}function $c(e,n){if("function"!=typeof e)throw new an(c);return n=null==n?0:Un($l(n),0),xa((function(t){var r=t[n],o=Ha(t,0,n);return r&&At(o,r),wt(e,this,o)}))}function qc(e,n,t){var r=!0,o=!0;if("function"!=typeof e)throw new an(c);return Pl(t)&&(r="leading"in t?!!t.leading:r,o="trailing"in t?!!t.trailing:o),Ec(e,n,{leading:r,maxWait:n,trailing:o})}function Zc(e){return Rc(e,1)}function Jc(e,n){return Vc(Fa(n),e)}function Xc(){if(!arguments.length)return[];var e=arguments[0];return ul(e)?e:[e]}function Qc(e){return mo(e,y)}function el(e,n){return n="function"==typeof n?n:a,mo(e,y,n)}function nl(e){return mo(e,h|y)}function tl(e,n){return n="function"==typeof n?n:a,mo(e,h|y,n)}function rl(e,n){return null==n||wo(e,n,kf(n))}function ol(e,n){return e===n||e!==e&&n!==n}var al=Ci(To),il=Ci((function(e,n){return e>=n})),sl=Wo(function(){return arguments}())?Wo:function(e){return Sl(e)&&dn.call(e,"callee")&&!Sn.call(e,"callee")},ul=t.isArray,cl=ht?Zt(ht):Ho;function ll(e){return null!=e&&kl(e.length)&&!xl(e)}function fl(e){return Sl(e)&&ll(e)}function dl(e){return!0===e||!1===e||Sl(e)&&Go(e)==Y}var pl=Gn||qd,hl=gt?Zt(gt):Yo;function gl(e){return Sl(e)&&1===e.nodeType&&!zl(e)}function yl(e){if(null==e)return!0;if(ll(e)&&(ul(e)||"string"==typeof e||"function"==typeof e.splice||pl(e)||Nl(e)||sl(e)))return!e.length;var n=Ji(e);if(n==Q||n==ie)return!e.size;if(ps(e))return!ra(e).length;for(var t in e)if(dn.call(e,t))return!1;return!0}function vl(e,n){return $o(e,n)}function ml(e,n,t){t="function"==typeof t?t:a;var r=t?t(e,n):a;return r===a?$o(e,n,a,t):!!r}function bl(e){if(!Sl(e))return!1;var n=Go(e);return n==Z||n==q||"string"==typeof e.message&&"string"==typeof e.name&&!zl(e)}function wl(e){return"number"==typeof e&&Tn(e)}function xl(e){if(!Pl(e))return!1;var n=Go(e);return n==J||n==X||n==H||n==oe}function _l(e){return"number"==typeof e&&e==$l(e)}function kl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=G}function Pl(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function Sl(e){return null!=e&&"object"==typeof e}var Cl=yt?Zt(yt):Zo;function Ml(e,n){return e===n||Jo(e,n,Hi(n))}function Bl(e,n,t){return t="function"==typeof t?t:a,Jo(e,n,Hi(n),t)}function Al(e){return jl(e)&&e!=+e}function Rl(e){if(ds(e))throw new o(u);return Xo(e)}function Ll(e){return null===e}function Ol(e){return null==e}function jl(e){return"number"==typeof e||Sl(e)&&Go(e)==ee}function zl(e){if(!Sl(e)||Go(e)!=te)return!1;var n=kn(e);if(null===n)return!0;var t=dn.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t instanceof t&&fn.call(t)==yn}var Dl=vt?Zt(vt):Qo;function El(e){return _l(e)&&e>=-G&&e<=G}var Gl=mt?Zt(mt):ea;function Tl(e){return"string"==typeof e||!ul(e)&&Sl(e)&&Go(e)==se}function Il(e){return"symbol"==typeof e||Sl(e)&&Go(e)==ue}var Nl=bt?Zt(bt):na;function Ul(e){return e===a}function Kl(e){return Sl(e)&&Ji(e)==le}function Fl(e){return Sl(e)&&Go(e)==fe}var Vl=Ci(aa),Wl=Ci((function(e,n){return e<=n}));function Hl(e){if(!e)return[];if(ll(e))return Tl(e)?vr(e):oi(e);if(Bn&&e[Bn])return ur(e[Bn]());var n=Ji(e),t=n==Q?cr:n==ie?dr:Kf;return t(e)}function Yl(e){if(!e)return 0===e?e:0;if(e=Zl(e),e===E||e===-E){var n=e<0?-1:1;return n*T}return e===e?e:0}function $l(e){var n=Yl(e),t=n%1;return n===n?t?n-t:n:0}function ql(e){return e?vo($l(e),0,N):0}function Zl(e){if("number"==typeof e)return e;if(Il(e))return I;if(Pl(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=Pl(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=qt(e);var t=qe.test(e);return t||Je.test(e)?at(e.slice(2),t?2:8):$e.test(e)?I:+e}function Jl(e){return ai(e,Pf(e))}function Xl(e){return e?vo($l(e),-G,G):0===e?e:0}function Ql(e){return null==e?"":za(e)}var ef=ci((function(e,n){if(ps(n)||ll(n))ai(n,kf(n),e);else for(var t in n)dn.call(n,t)&&co(e,t,n[t])})),nf=ci((function(e,n){ai(n,Pf(n),e)})),tf=ci((function(e,n,t,r){ai(n,Pf(n),e,r)})),rf=ci((function(e,n,t,r){ai(n,kf(n),e,r)})),of=Ti(yo);function af(e,n){var t=kr(e);return null==n?t:po(t,n)}var sf=xa((function(e,n){e=tn(e);var t=-1,r=n.length,o=r>2?n[2]:a;o&&ss(n[0],n[1],o)&&(r=1);while(++t<r){var i=n[t],s=Pf(i),u=-1,c=s.length;while(++u<c){var l=s[u],f=e[l];(f===a||ol(f,cn[l])&&!dn.call(e,l))&&(e[l]=i[l])}}return e})),uf=xa((function(e){return e.push(a,ji),wt(Bf,a,e)}));function cf(e,n){return Et(e,Vi(n,3),Oo)}function lf(e,n){return Et(e,Vi(n,3),jo)}function ff(e,n){return null==e?e:Ro(e,Vi(n,3),Pf)}function df(e,n){return null==e?e:Lo(e,Vi(n,3),Pf)}function pf(e,n){return e&&Oo(e,Vi(n,3))}function hf(e,n){return e&&jo(e,Vi(n,3))}function gf(e){return null==e?[]:zo(e,kf(e))}function yf(e){return null==e?[]:zo(e,Pf(e))}function vf(e,n,t){var r=null==e?a:Do(e,n);return r===a?t:r}function mf(e,n){return null!=e&&es(e,n,Io)}function bf(e,n){return null!=e&&es(e,n,No)}var wf=wi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=gn.call(n)),e[n]=t}),Md(Ld)),xf=wi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=gn.call(n)),dn.call(e,n)?e[n].push(t):e[n]=[t]}),Vi),_f=xa(Vo);function kf(e){return ll(e)?oo(e):ra(e)}function Pf(e){return ll(e)?oo(e,!0):oa(e)}function Sf(e,n){var t={};return n=Vi(n,3),Oo(e,(function(e,r,o){go(t,n(e,r,o),e)})),t}function Cf(e,n){var t={};return n=Vi(n,3),Oo(e,(function(e,r,o){go(t,r,n(e,r,o))})),t}var Mf=ci((function(e,n,t){ca(e,n,t)})),Bf=ci((function(e,n,t,r){ca(e,n,t,r)})),Af=Ti((function(e,n){var t={};if(null==e)return t;var r=!1;n=Bt(n,(function(n){return n=Va(n,e),r||(r=n.length>1),n})),ai(e,Ni(e),t),r&&(t=mo(t,h|g|y,zi));var o=n.length;while(o--)Ea(t,n[o]);return t}));function Rf(e,n){return Of(e,Uc(Vi(n)))}var Lf=Ti((function(e,n){return null==e?{}:pa(e,n)}));function Of(e,n){if(null==e)return{};var t=Bt(Ni(e),(function(e){return[e]}));return n=Vi(n),ha(e,t,(function(e,t){return n(e,t[0])}))}function jf(e,n,t){n=Va(n,e);var r=-1,o=n.length;o||(o=1,e=a);while(++r<o){var i=null==e?a:e[Ls(n[r])];i===a&&(r=o,i=t),e=xl(i)?i.call(e):i}return e}function zf(e,n,t){return null==e?e:Pa(e,n,t)}function Df(e,n,t,r){return r="function"==typeof r?r:a,null==e?e:Pa(e,n,t,r)}var Ef=Ri(kf),Gf=Ri(Pf);function Tf(e,n,t){var r=ul(e),o=r||pl(e)||Nl(e);if(n=Vi(n,4),null==t){var a=e&&e.constructor;t=o?r?new a:[]:Pl(e)&&xl(a)?kr(kn(e)):{}}return(o?_t:Oo)(e,(function(e,r,o){return n(t,e,r,o)})),t}function If(e,n){return null==e||Ea(e,n)}function Nf(e,n,t){return null==e?e:Ga(e,n,Fa(t))}function Uf(e,n,t,r){return r="function"==typeof r?r:a,null==e?e:Ga(e,n,Fa(t),r)}function Kf(e){return null==e?[]:Jt(e,kf(e))}function Ff(e){return null==e?[]:Jt(e,Pf(e))}function Vf(e,n,t){return t===a&&(t=n,n=a),t!==a&&(t=Zl(t),t=t===t?t:0),n!==a&&(n=Zl(n),n=n===n?n:0),vo(Zl(e),n,t)}function Wf(e,n,t){return n=Yl(n),t===a?(t=n,n=0):t=Yl(t),e=Zl(e),Uo(e,n,t)}function Hf(e,n,t){if(t&&"boolean"!=typeof t&&ss(e,n,t)&&(n=t=a),t===a&&("boolean"==typeof n?(t=n,n=a):"boolean"==typeof e&&(t=e,e=a)),e===a&&n===a?(e=0,n=1):(e=Yl(e),n===a?(n=e,e=0):n=Yl(n)),e>n){var r=e;e=n,n=r}if(t||e%1||n%1){var o=Yn();return Kn(e+o*(n-e+ot("1e-"+((o+"").length-1))),n)}return ma(e,n)}var Yf=hi((function(e,n,t){return n=n.toLowerCase(),e+(t?$f(n):n)}));function $f(e){return xd(Ql(e).toLowerCase())}function qf(e){return e=Ql(e),e&&e.replace(Qe,tr).replace(Wn,"")}function Zf(e,n,t){e=Ql(e),n=za(n);var r=e.length;t=t===a?r:vo($l(t),0,r);var o=t;return t-=n.length,t>=0&&e.slice(t,o)==n}function Jf(e){return e=Ql(e),e&&Ae.test(e)?e.replace(Me,rr):e}function Xf(e){return e=Ql(e),e&&Ge.test(e)?e.replace(Ee,"\\$&"):e}var Qf=hi((function(e,n,t){return e+(t?"-":"")+n.toLowerCase()})),ed=hi((function(e,n,t){return e+(t?" ":"")+n.toLowerCase()})),nd=pi("toLowerCase");function td(e,n,t){e=Ql(e),n=$l(n);var r=n?yr(e):0;if(!n||r>=n)return e;var o=(n-r)/2;return ki(Dn(o),t)+e+ki(zn(o),t)}function rd(e,n,t){e=Ql(e),n=$l(n);var r=n?yr(e):0;return n&&r<n?e+ki(n-r,t):e}function od(e,n,t){e=Ql(e),n=$l(n);var r=n?yr(e):0;return n&&r<n?ki(n-r,t)+e:e}function ad(e,n,t){return t||null==n?n=0:n&&(n=+n),Hn(Ql(e).replace(Te,""),n||0)}function id(e,n,t){return n=(t?ss(e,n,t):n===a)?1:$l(n),wa(Ql(e),n)}function sd(){var e=arguments,n=Ql(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var ud=hi((function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}));function cd(e,n,t){return t&&"number"!=typeof t&&ss(e,n,t)&&(n=t=a),t=t===a?N:t>>>0,t?(e=Ql(e),e&&("string"==typeof n||null!=n&&!Dl(n))&&(n=za(n),!n&&ir(e))?Ha(vr(e),0,t):e.split(n,t)):[]}var ld=hi((function(e,n,t){return e+(t?" ":"")+xd(n)}));function fd(e,n,t){return e=Ql(e),t=null==t?0:vo($l(t),0,e.length),n=za(n),e.slice(t,t+n.length)==n}function dd(e,n,t){var r=xr.templateSettings;t&&ss(e,n,t)&&(n=a),e=Ql(e),n=tf({},n,r,Oi);var i,s,u=tf({},n.imports,r.imports,Oi),c=kf(u),f=Jt(u,c),d=0,p=n.interpolate||en,h="__p += '",g=rn((n.escape||en).source+"|"+p.source+"|"+(p===Oe?He:en).source+"|"+(n.evaluate||en).source+"|$","g"),y="//# sourceURL="+(dn.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jn+"]")+"\n";e.replace(g,(function(n,t,r,o,a,u){return r||(r=o),h+=e.slice(d,u).replace(nn,or),t&&(i=!0,h+="' +\n__e("+t+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=u+n.length,n})),h+="';\n";var v=dn.call(n,"variable")&&n.variable;if(v){if(Ve.test(v))throw new o(l)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(ke,""):h).replace(Pe,"$1").replace(Se,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=kd((function(){return Ie(c,y+"return "+h).apply(a,f)}));if(m.source=h,bl(m))throw m;return m}function pd(e){return Ql(e).toLowerCase()}function hd(e){return Ql(e).toUpperCase()}function gd(e,n,t){if(e=Ql(e),e&&(t||n===a))return qt(e);if(!e||!(n=za(n)))return e;var r=vr(e),o=vr(n),i=Qt(r,o),s=er(r,o)+1;return Ha(r,i,s).join("")}function yd(e,n,t){if(e=Ql(e),e&&(t||n===a))return e.slice(0,mr(e)+1);if(!e||!(n=za(n)))return e;var r=vr(e),o=er(r,vr(n))+1;return Ha(r,0,o).join("")}function vd(e,n,t){if(e=Ql(e),e&&(t||n===a))return e.replace(Te,"");if(!e||!(n=za(n)))return e;var r=vr(e),o=Qt(r,vr(n));return Ha(r,o).join("")}function md(e,n){var t=A,r=R;if(Pl(n)){var o="separator"in n?n.separator:o;t="length"in n?$l(n.length):t,r="omission"in n?za(n.omission):r}e=Ql(e);var i=e.length;if(ir(e)){var s=vr(e);i=s.length}if(t>=i)return e;var u=t-yr(r);if(u<1)return r;var c=s?Ha(s,0,u).join(""):e.slice(0,u);if(o===a)return c+r;if(s&&(u+=c.length-u),Dl(o)){if(e.slice(u).search(o)){var l,f=c;o.global||(o=rn(o.source,Ql(Ye.exec(o))+"g")),o.lastIndex=0;while(l=o.exec(f))var d=l.index;c=c.slice(0,d===a?u:d)}}else if(e.indexOf(za(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r}function bd(e){return e=Ql(e),e&&Be.test(e)?e.replace(Ce,br):e}var wd=hi((function(e,n,t){return e+(t?" ":"")+n.toUpperCase()})),xd=pi("toUpperCase");function _d(e,n,t){return e=Ql(e),n=t?a:n,n===a?sr(e)?_r(e):Dt(e):e.match(n)||[]}var kd=xa((function(e,n){try{return wt(e,a,n)}catch(t){return bl(t)?t:new o(t)}})),Pd=Ti((function(e,n){return _t(n,(function(n){n=Ls(n),go(e,n,Oc(e[n],e))})),e}));function Sd(e){var n=null==e?0:e.length,t=Vi();return e=n?Bt(e,(function(e){if("function"!=typeof e[1])throw new an(c);return[t(e[0]),e[1]]})):[],xa((function(t){var r=-1;while(++r<n){var o=e[r];if(wt(o[0],this,t))return wt(o[1],this,t)}}))}function Cd(e){return bo(mo(e,h))}function Md(e){return function(){return e}}function Bd(e,n){return null==e||e!==e?n:e}var Ad=mi(),Rd=mi(!0);function Ld(e){return e}function Od(e){return ta("function"==typeof e?e:mo(e,h))}function jd(e){return sa(mo(e,h))}function zd(e,n){return ua(e,mo(n,h))}var Dd=xa((function(e,n){return function(t){return Vo(t,e,n)}})),Ed=xa((function(e,n){return function(t){return Vo(e,t,n)}}));function Gd(e,n,t){var r=kf(n),o=zo(n,r);null!=t||Pl(n)&&(o.length||!r.length)||(t=n,n=e,e=this,o=zo(n,kf(n)));var a=!(Pl(t)&&"chain"in t)||!!t.chain,i=xl(e);return _t(o,(function(t){var r=n[t];e[t]=r,i&&(e.prototype[t]=function(){var n=this.__chain__;if(a||n){var t=e(this.__wrapped__),o=t.__actions__=oi(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),t.__chain__=n,t}return r.apply(e,At([this.value()],arguments))})})),e}function Td(){return ut._===this&&(ut._=vn),this}function Id(){}function Nd(e){return e=$l(e),xa((function(n){return fa(n,e)}))}var Ud=_i(Bt),Kd=_i(Pt),Fd=_i(Ot);function Vd(e){return us(e)?Kt(Ls(e)):ga(e)}function Wd(e){return function(n){return null==e?a:Do(e,n)}}var Hd=Si(),Yd=Si(!0);function $d(){return[]}function qd(){return!1}function Zd(){return{}}function Jd(){return""}function Xd(){return!0}function Qd(e,n){if(e=$l(e),e<1||e>G)return[];var t=N,r=Kn(e,N);n=Vi(n),e-=N;var o=Yt(r,n);while(++t<e)n(t);return o}function ep(e){return ul(e)?Bt(e,Ls):Il(e)?[e]:oi(Rs(Ql(e)))}function np(e){var n=++pn;return Ql(e)+n}var tp=xi((function(e,n){return e+n}),0),rp=Bi("ceil"),op=xi((function(e,n){return e/n}),1),ap=Bi("floor");function ip(e){return e&&e.length?Co(e,Ld,To):a}function sp(e,n){return e&&e.length?Co(e,Vi(n,2),To):a}function up(e){return Ut(e,Ld)}function cp(e,n){return Ut(e,Vi(n,2))}function lp(e){return e&&e.length?Co(e,Ld,aa):a}function fp(e,n){return e&&e.length?Co(e,Vi(n,2),aa):a}var dp=xi((function(e,n){return e*n}),1),pp=Bi("round"),hp=xi((function(e,n){return e-n}),0);function gp(e){return e&&e.length?Ht(e,Ld):0}function yp(e,n){return e&&e.length?Ht(e,Vi(n,2)):0}return xr.after=Ac,xr.ary=Rc,xr.assign=ef,xr.assignIn=nf,xr.assignInWith=tf,xr.assignWith=rf,xr.at=of,xr.before=Lc,xr.bind=Oc,xr.bindAll=Pd,xr.bindKey=jc,xr.castArray=Xc,xr.chain=Wu,xr.chunk=Ds,xr.compact=Es,xr.concat=Gs,xr.cond=Sd,xr.conforms=Cd,xr.constant=Md,xr.countBy=tc,xr.create=af,xr.curry=zc,xr.curryRight=Dc,xr.debounce=Ec,xr.defaults=sf,xr.defaultsDeep=uf,xr.defer=Gc,xr.delay=Tc,xr.difference=Ts,xr.differenceBy=Is,xr.differenceWith=Ns,xr.drop=Us,xr.dropRight=Ks,xr.dropRightWhile=Fs,xr.dropWhile=Vs,xr.fill=Ws,xr.filter=oc,xr.flatMap=sc,xr.flatMapDeep=uc,xr.flatMapDepth=cc,xr.flatten=$s,xr.flattenDeep=qs,xr.flattenDepth=Zs,xr.flip=Ic,xr.flow=Ad,xr.flowRight=Rd,xr.fromPairs=Js,xr.functions=gf,xr.functionsIn=yf,xr.groupBy=dc,xr.initial=eu,xr.intersection=nu,xr.intersectionBy=tu,xr.intersectionWith=ru,xr.invert=wf,xr.invertBy=xf,xr.invokeMap=hc,xr.iteratee=Od,xr.keyBy=gc,xr.keys=kf,xr.keysIn=Pf,xr.map=yc,xr.mapKeys=Sf,xr.mapValues=Cf,xr.matches=jd,xr.matchesProperty=zd,xr.memoize=Nc,xr.merge=Mf,xr.mergeWith=Bf,xr.method=Dd,xr.methodOf=Ed,xr.mixin=Gd,xr.negate=Uc,xr.nthArg=Nd,xr.omit=Af,xr.omitBy=Rf,xr.once=Kc,xr.orderBy=vc,xr.over=Ud,xr.overArgs=Fc,xr.overEvery=Kd,xr.overSome=Fd,xr.partial=Vc,xr.partialRight=Wc,xr.partition=mc,xr.pick=Lf,xr.pickBy=Of,xr.property=Vd,xr.propertyOf=Wd,xr.pull=uu,xr.pullAll=cu,xr.pullAllBy=lu,xr.pullAllWith=fu,xr.pullAt=du,xr.range=Hd,xr.rangeRight=Yd,xr.rearg=Hc,xr.reject=xc,xr.remove=pu,xr.rest=Yc,xr.reverse=hu,xr.sampleSize=kc,xr.set=zf,xr.setWith=Df,xr.shuffle=Pc,xr.slice=gu,xr.sortBy=Mc,xr.sortedUniq=_u,xr.sortedUniqBy=ku,xr.split=cd,xr.spread=$c,xr.tail=Pu,xr.take=Su,xr.takeRight=Cu,xr.takeRightWhile=Mu,xr.takeWhile=Bu,xr.tap=Hu,xr.throttle=qc,xr.thru=Yu,xr.toArray=Hl,xr.toPairs=Ef,xr.toPairsIn=Gf,xr.toPath=ep,xr.toPlainObject=Jl,xr.transform=Tf,xr.unary=Zc,xr.union=Au,xr.unionBy=Ru,xr.unionWith=Lu,xr.uniq=Ou,xr.uniqBy=ju,xr.uniqWith=zu,xr.unset=If,xr.unzip=Du,xr.unzipWith=Eu,xr.update=Nf,xr.updateWith=Uf,xr.values=Kf,xr.valuesIn=Ff,xr.without=Gu,xr.words=_d,xr.wrap=Jc,xr.xor=Tu,xr.xorBy=Iu,xr.xorWith=Nu,xr.zip=Uu,xr.zipObject=Ku,xr.zipObjectDeep=Fu,xr.zipWith=Vu,xr.entries=Ef,xr.entriesIn=Gf,xr.extend=nf,xr.extendWith=tf,Gd(xr,xr),xr.add=tp,xr.attempt=kd,xr.camelCase=Yf,xr.capitalize=$f,xr.ceil=rp,xr.clamp=Vf,xr.clone=Qc,xr.cloneDeep=nl,xr.cloneDeepWith=tl,xr.cloneWith=el,xr.conformsTo=rl,xr.deburr=qf,xr.defaultTo=Bd,xr.divide=op,xr.endsWith=Zf,xr.eq=ol,xr.escape=Jf,xr.escapeRegExp=Xf,xr.every=rc,xr.find=ac,xr.findIndex=Hs,xr.findKey=cf,xr.findLast=ic,xr.findLastIndex=Ys,xr.findLastKey=lf,xr.floor=ap,xr.forEach=lc,xr.forEachRight=fc,xr.forIn=ff,xr.forInRight=df,xr.forOwn=pf,xr.forOwnRight=hf,xr.get=vf,xr.gt=al,xr.gte=il,xr.has=mf,xr.hasIn=bf,xr.head=Xs,xr.identity=Ld,xr.includes=pc,xr.indexOf=Qs,xr.inRange=Wf,xr.invoke=_f,xr.isArguments=sl,xr.isArray=ul,xr.isArrayBuffer=cl,xr.isArrayLike=ll,xr.isArrayLikeObject=fl,xr.isBoolean=dl,xr.isBuffer=pl,xr.isDate=hl,xr.isElement=gl,xr.isEmpty=yl,xr.isEqual=vl,xr.isEqualWith=ml,xr.isError=bl,xr.isFinite=wl,xr.isFunction=xl,xr.isInteger=_l,xr.isLength=kl,xr.isMap=Cl,xr.isMatch=Ml,xr.isMatchWith=Bl,xr.isNaN=Al,xr.isNative=Rl,xr.isNil=Ol,xr.isNull=Ll,xr.isNumber=jl,xr.isObject=Pl,xr.isObjectLike=Sl,xr.isPlainObject=zl,xr.isRegExp=Dl,xr.isSafeInteger=El,xr.isSet=Gl,xr.isString=Tl,xr.isSymbol=Il,xr.isTypedArray=Nl,xr.isUndefined=Ul,xr.isWeakMap=Kl,xr.isWeakSet=Fl,xr.join=ou,xr.kebabCase=Qf,xr.last=au,xr.lastIndexOf=iu,xr.lowerCase=ed,xr.lowerFirst=nd,xr.lt=Vl,xr.lte=Wl,xr.max=ip,xr.maxBy=sp,xr.mean=up,xr.meanBy=cp,xr.min=lp,xr.minBy=fp,xr.stubArray=$d,xr.stubFalse=qd,xr.stubObject=Zd,xr.stubString=Jd,xr.stubTrue=Xd,xr.multiply=dp,xr.nth=su,xr.noConflict=Td,xr.noop=Id,xr.now=Bc,xr.pad=td,xr.padEnd=rd,xr.padStart=od,xr.parseInt=ad,xr.random=Hf,xr.reduce=bc,xr.reduceRight=wc,xr.repeat=id,xr.replace=sd,xr.result=jf,xr.round=pp,xr.runInContext=e,xr.sample=_c,xr.size=Sc,xr.snakeCase=ud,xr.some=Cc,xr.sortedIndex=yu,xr.sortedIndexBy=vu,xr.sortedIndexOf=mu,xr.sortedLastIndex=bu,xr.sortedLastIndexBy=wu,xr.sortedLastIndexOf=xu,xr.startCase=ld,xr.startsWith=fd,xr.subtract=hp,xr.sum=gp,xr.sumBy=yp,xr.template=dd,xr.times=Qd,xr.toFinite=Yl,xr.toInteger=$l,xr.toLength=ql,xr.toLower=pd,xr.toNumber=Zl,xr.toSafeInteger=Xl,xr.toString=Ql,xr.toUpper=hd,xr.trim=gd,xr.trimEnd=yd,xr.trimStart=vd,xr.truncate=md,xr.unescape=bd,xr.uniqueId=np,xr.upperCase=wd,xr.upperFirst=xd,xr.each=lc,xr.eachRight=fc,xr.first=Xs,Gd(xr,function(){var e={};return Oo(xr,(function(n,t){dn.call(xr.prototype,t)||(e[t]=n)})),e}(),{chain:!1}),xr.VERSION=i,_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){xr[e].placeholder=xr})),_t(["drop","take"],(function(e,n){Mr.prototype[e]=function(t){t=t===a?1:Un($l(t),0);var r=this.__filtered__&&!n?new Mr(this):this.clone();return r.__filtered__?r.__takeCount__=Kn(t,r.__takeCount__):r.__views__.push({size:Kn(t,N),type:e+(r.__dir__<0?"Right":"")}),r},Mr.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}})),_t(["filter","map","takeWhile"],(function(e,n){var t=n+1,r=t==j||t==D;Mr.prototype[e]=function(e){var n=this.clone();return n.__iteratees__.push({iteratee:Vi(e,3),type:t}),n.__filtered__=n.__filtered__||r,n}})),_t(["head","last"],(function(e,n){var t="take"+(n?"Right":"");Mr.prototype[e]=function(){return this[t](1).value()[0]}})),_t(["initial","tail"],(function(e,n){var t="drop"+(n?"":"Right");Mr.prototype[e]=function(){return this.__filtered__?new Mr(this):this[t](1)}})),Mr.prototype.compact=function(){return this.filter(Ld)},Mr.prototype.find=function(e){return this.filter(e).head()},Mr.prototype.findLast=function(e){return this.reverse().find(e)},Mr.prototype.invokeMap=xa((function(e,n){return"function"==typeof e?new Mr(this):this.map((function(t){return Vo(t,e,n)}))})),Mr.prototype.reject=function(e){return this.filter(Uc(Vi(e)))},Mr.prototype.slice=function(e,n){e=$l(e);var t=this;return t.__filtered__&&(e>0||n<0)?new Mr(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==a&&(n=$l(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},Mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Mr.prototype.toArray=function(){return this.take(N)},Oo(Mr.prototype,(function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=xr[r?"take"+("last"==n?"Right":""):n],i=r||/^find/.test(n);o&&(xr.prototype[n]=function(){var n=this.__wrapped__,s=r?[1]:arguments,u=n instanceof Mr,c=s[0],l=u||ul(n),f=function(e){var n=o.apply(xr,At([e],s));return r&&d?n[0]:n};l&&t&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=i&&!d,g=u&&!p;if(!i&&l){n=g?n:new Mr(this);var y=e.apply(n,s);return y.__actions__.push({func:Yu,args:[f],thisArg:a}),new Cr(y,d)}return h&&g?e.apply(this,s):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var n=sn[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);xr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return n.apply(ul(o)?o:[],e)}return this[t]((function(t){return n.apply(ul(t)?t:[],e)}))}})),Oo(Mr.prototype,(function(e,n){var t=xr[n];if(t){var r=t.name+"";dn.call(ct,r)||(ct[r]=[]),ct[r].push({name:n,func:t})}})),ct[bi(a,w).name]=[{name:"wrapper",func:a}],Mr.prototype.clone=Br,Mr.prototype.reverse=Ar,Mr.prototype.value=Rr,xr.prototype.at=$u,xr.prototype.chain=qu,xr.prototype.commit=Zu,xr.prototype.next=Ju,xr.prototype.plant=Qu,xr.prototype.reverse=ec,xr.prototype.toJSON=xr.prototype.valueOf=xr.prototype.value=nc,xr.prototype.first=xr.prototype.head,Bn&&(xr.prototype[Bn]=Xu),xr},Pr=kr();ut._=Pr,o=function(){return Pr}.call(n,t,n,r),o===a||(r.exports=o)}).call(this)}).call(this,t("d8fc"),t("e55b")(e))},"0be7":function(e,n,t){e.exports=t.p+"media/notification.ac905963.mp3"},"0c1b":function(e,n,t){var r=t("7f82"),o=t("d22c"),a=t("d684");r({target:"Array",proto:!0},{fill:o}),a("fill")},"0ff2":function(e,n,t){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);n.f=a?function(e){var n=o(this,e);return!!n&&n.enumerable}:r},1061:function(e,n){e.exports={}},"11ac":function(e,n,t){"use strict";t("e710")},"129e":function(e,n,t){var r=t("f246"),o={}.hasOwnProperty;e.exports=function(e,n){return o.call(r(e),n)}},"12aa":function(e,n,t){var r=t("b42f"),o=Math.max,a=Math.min;e.exports=function(e,n){var t=r(e);return t<0?o(t+n,0):a(t,n)}},"16b4":function(e,n,t){"use strict";var r,o="object"===typeof Reflect?Reflect:null,a=o&&"function"===typeof o.apply?o.apply:function(e,n,t){return Function.prototype.apply.call(e,n,t)};function i(e){console&&console.warn&&console.warn(e)}r=o&&"function"===typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function u(){u.init.call(this)}e.exports=u,e.exports.once=w,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function d(e,n,t,r){var o,a,s;if(l(t),a=e._events,void 0===a?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",n,t.listener?t.listener:t),a=e._events),s=a[n]),void 0===s)s=a[n]=t,++e._eventsCount;else if("function"===typeof s?s=a[n]=r?[t,s]:[s,t]:r?s.unshift(t):s.push(t),o=f(e),o>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=n,u.count=s.length,i(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,n,t){var r={fired:!1,wrapFn:void 0,target:e,type:n,listener:t},o=p.bind(r);return o.listener=t,r.wrapFn=o,o}function g(e,n,t){var r=e._events;if(void 0===r)return[];var o=r[n];return void 0===o?[]:"function"===typeof o?t?[o.listener||o]:[o]:t?b(o):v(o,o.length)}function y(e){var n=this._events;if(void 0!==n){var t=n[e];if("function"===typeof t)return 1;if(void 0!==t)return t.length}return 0}function v(e,n){for(var t=new Array(n),r=0;r<n;++r)t[r]=e[r];return t}function m(e,n){for(;n+1<e.length;n++)e[n]=e[n+1];e.pop()}function b(e){for(var n=new Array(e.length),t=0;t<n.length;++t)n[t]=e[t].listener||e[t];return n}function w(e,n){return new Promise((function(t,r){function o(t){e.removeListener(n,a),r(t)}function a(){"function"===typeof e.removeListener&&e.removeListener("error",o),t([].slice.call(arguments))}_(e,n,a,{once:!0}),"error"!==n&&x(e,o,{once:!0})}))}function x(e,n,t){"function"===typeof e.on&&_(e,"error",n,t)}function _(e,n,t,r){if("function"===typeof e.on)r.once?e.once(n,t):e.on(n,t);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(n,(function o(a){r.once&&e.removeEventListener(n,o),t(a)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(e){for(var n=[],t=1;t<arguments.length;t++)n.push(arguments[t]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(n.length>0&&(i=n[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var u=o[e];if(void 0===u)return!1;if("function"===typeof u)a(u,this,n);else{var c=u.length,l=v(u,c);for(t=0;t<c;++t)a(l[t],this,n)}return!0},u.prototype.addListener=function(e,n){return d(this,e,n,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,n){return d(this,e,n,!0)},u.prototype.once=function(e,n){return l(n),this.on(e,h(this,e,n)),this},u.prototype.prependOnceListener=function(e,n){return l(n),this.prependListener(e,h(this,e,n)),this},u.prototype.removeListener=function(e,n){var t,r,o,a,i;if(l(n),r=this._events,void 0===r)return this;if(t=r[e],void 0===t)return this;if(t===n||t.listener===n)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,t.listener||n));else if("function"!==typeof t){for(o=-1,a=t.length-1;a>=0;a--)if(t[a]===n||t[a].listener===n){i=t[a].listener,o=a;break}if(o<0)return this;0===o?t.shift():m(t,o),1===t.length&&(r[e]=t[0]),void 0!==r.removeListener&&this.emit("removeListener",e,i||n)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var n,t,r;if(t=this._events,void 0===t)return this;if(void 0===t.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==t[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete t[e]),this;if(0===arguments.length){var o,a=Object.keys(t);for(r=0;r<a.length;++r)o=a[r],"removeListener"!==o&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=t[e],"function"===typeof n)this.removeListener(e,n);else if(void 0!==n)for(r=n.length-1;r>=0;r--)this.removeListener(e,n[r]);return this},u.prototype.listeners=function(e){return g(this,e,!0)},u.prototype.rawListeners=function(e){return g(this,e,!1)},u.listenerCount=function(e,n){return"function"===typeof e.listenerCount?e.listenerCount(n):y.call(e,n)},u.prototype.listenerCount=y,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},"17ba":function(e,n,t){"use strict";var r=t("7f82"),o=t("ac27"),a=t("9ebe"),i=t("8dac"),s=t("f246"),u=t("43b7"),c=t("cba7"),l=t("cbe1"),f=t("2fb6"),d=t("fd86"),p=t("b168"),h=d("isConcatSpreadable"),g=9007199254740991,y="Maximum allowed index exceeded",v=p>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),m=f("concat"),b=function(e){if(!i(e))return!1;var n=e[h];return void 0!==n?!!n:a(e)},w=!v||!m;r({target:"Array",proto:!0,forced:w},{concat:function(e){var n,t,r,o,a,i=s(this),f=l(i,0),d=0;for(n=-1,r=arguments.length;n<r;n++)if(a=-1===n?i:arguments[n],b(a)){if(o=u(a.length),d+o>g)throw TypeError(y);for(t=0;t<o;t++,d++)t in a&&c(f,d,a[t])}else{if(d>=g)throw TypeError(y);c(f,d++,a)}return f.length=d,f}})},"191b":function(e,n){e.exports=function(e,n,t){if(!(e instanceof n))throw TypeError("Incorrect "+(t?t+" ":"")+"invocation");return e}},1947:function(e,n){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1af6":function(e,n,t){var r=t("8911"),o=t("8bc5");e.exports=function(e,n){var t=e.exec;if("function"===typeof t){var a=t.call(e,n);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,n)}},"1c11":function(e,n,t){var r=t("57ac"),o=t("0880");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,n=!1,t={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(t,[]),n=t instanceof Array}catch(a){}return function(t,a){return r(t),o(a),n?e.call(t,a):t.__proto__=a,t}}():void 0)},"1c52":function(e,n,t){},"1cf5":function(e,n,t){e.exports=t.p+"media/notification.55fa47dd.ogg"},"1fba":function(e,n,t){var r=t("68de"),o=t("60cb"),a=t("ca80"),i=t("ff46"),s=t("fd86"),u=s("iterator"),c=s("toStringTag"),l=a.values;for(var f in o){var d=r[f],p=d&&d.prototype;if(p){if(p[u]!==l)try{i(p,u,l)}catch(g){p[u]=l}if(p[c]||i(p,c,f),o[f])for(var h in a)if(p[h]!==a[h])try{i(p,h,a[h])}catch(g){p[h]=a[h]}}}},2044:function(e,n,t){e.exports=t.p+"img/sound-off.72ada995.svg"},2079:function(e,n,t){var r=t("b42f"),o=t("c678"),a=function(e){return function(n,t){var a,i,s=String(o(n)),u=r(t),c=s.length;return u<0||u>=c?e?"":void 0:(a=s.charCodeAt(u),a<55296||a>56319||u+1===c||(i=s.charCodeAt(u+1))<56320||i>57343?e?s.charAt(u):a:e?s.slice(u,u+2):i-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},2153:function(e,n,t){var r=t("ac27"),o=t("8911"),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a.call(e,""):Object(e)}:Object},"220a":function(e,n,t){var r=t("fd86"),o=r("iterator"),a=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){a=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(u){}e.exports=function(e,n){if(!n&&!a)return!1;var t=!1;try{var r={};r[o]=function(){return{next:function(){return{done:t=!0}}}},e(r)}catch(u){}return t}},"22b8":function(e,n,t){var r=t("ce17"),o=t("0ff2"),a=t("9f69"),i=t("9c0c"),s=t("a9eb"),u=t("129e"),c=t("6614"),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(e,n){if(e=i(e),n=s(n,!0),c)try{return l(e,n)}catch(t){}if(u(e,n))return a(!o.f.call(e,n),e[n])}},"22ea":function(e,n,t){"use strict";var r=t("5229"),o=t("d863");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"24ba":function(e,n,t){var r=t("7f82"),o=t("ac27"),a=t("f246"),i=t("9220"),s=t("d5b1"),u=o((function(){i(1)}));r({target:"Object",stat:!0,forced:u,sham:!s},{getPrototypeOf:function(e){return i(a(e))}})},2673:function(e,n,t){var r,o,a,i=t("9486"),s=t("68de"),u=t("8dac"),c=t("ff46"),l=t("129e"),f=t("28b5"),d=t("71d2"),p=t("1061"),h="Object already initialized",g=s.WeakMap,y=function(e){return a(e)?o(e):r(e,{})},v=function(e){return function(n){var t;if(!u(n)||(t=o(n)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}};if(i||f.state){var m=f.state||(f.state=new g),b=m.get,w=m.has,x=m.set;r=function(e,n){if(w.call(m,e))throw new TypeError(h);return n.facade=e,x.call(m,e,n),n},o=function(e){return b.call(m,e)||{}},a=function(e){return w.call(m,e)}}else{var _=d("state");p[_]=!0,r=function(e,n){if(l(e,_))throw new TypeError(h);return n.facade=e,c(e,_,n),n},o=function(e){return l(e,_)?e[_]:{}},a=function(e){return l(e,_)}}e.exports={set:r,get:o,has:a,enforce:y,getterFor:v}},"28b5":function(e,n,t){var r=t("68de"),o=t("853a"),a="__core-js_shared__",i=r[a]||o(a,{});e.exports=i},"2fb6":function(e,n,t){var r=t("ac27"),o=t("fd86"),a=t("b168"),i=o("species");e.exports=function(e){return a>=51||!r((function(){var n=[],t=n.constructor={};return t[i]=function(){return{foo:1}},1!==n[e](Boolean).foo}))}},"30b7":function(e,n,t){var r=t("4574");r("iterator")},"338e":function(e,n){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"33c5":function(e,n,t){"use strict";var r=t("7f82"),o=t("b222").filter,a=t("2fb6"),i=a("filter");r({target:"Array",proto:!0,forced:!i},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},3439:function(e,n,t){"use strict";var r=t("ac27");function o(e,n){return RegExp(e,n)}n.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),n.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},"34ce":function(e,n,t){var r=t("7f82"),o=t("ac27"),a=t("9c0c"),i=t("22b8").f,s=t("ce17"),u=o((function(){i(1)})),c=!s||u;r({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,n){return i(a(e),n)}})},"38b4":function(e,n,t){var r=t("c944"),o=t("8911"),a=t("fd86"),i=a("toStringTag"),s="Arguments"==o(function(){return arguments}()),u=function(e,n){try{return e[n]}catch(t){}};e.exports=r?o:function(e){var n,t,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=u(n=Object(e),i))?t:s?o(n):"Object"==(r=o(n))&&"function"==typeof n.callee?"Arguments":r}},"392e":function(e,n,t){var r=t("fd84");e.exports=function(e,n,t){for(var o in n)r(e,o,n[o],t);return e}},"3a04":function(e,n,t){var r=t("dd2b"),o=t("5a63"),a=t("f124"),i=t("9f62"),s=t("ac85"),u=t("ba03"),c=t("5451");c.alea=r,c.xor128=o,c.xorwow=a,c.xorshift7=i,c.xor4096=s,c.tychei=u,e.exports=c},"3a9a":function(e,n,t){var r=t("7f82"),o=t("a768"),a=t("1947"),i=t("57ac"),s=t("8dac"),u=t("e3d0"),c=t("9b6d"),l=t("ac27"),f=o("Reflect","construct"),d=l((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),p=!l((function(){f((function(){}))})),h=d||p;r({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,n){a(e),i(n);var t=arguments.length<3?e:a(arguments[2]);if(p&&!d)return f(e,n,t);if(e==t){switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3])}var r=[null];return r.push.apply(r,n),new(c.apply(e,r))}var o=t.prototype,l=u(s(o)?o:Object.prototype),h=Function.apply.call(e,l,n);return s(h)?h:l}})},"3aaf":function(e,n,t){var r=t("7f82"),o=t("ce17"),a=t("fbdc"),i=t("9c0c"),s=t("22b8"),u=t("cba7");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var n,t,r=i(e),o=s.f,c=a(r),l={},f=0;while(c.length>f)t=o(r,n=c[f++]),void 0!==t&&u(l,n,t);return l}})},"3df7":function(e,n){n.f=Object.getOwnPropertySymbols},"3e17":function(e,n){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},"3ef7":function(e,n,t){var r=t("7f82"),o=t("c88a");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},4037:function(e,n){e.exports={}},4116:function(e,n,t){"use strict";var r=t("7f82"),o=t("70f8"),a=t("9220"),i=t("1c11"),s=t("660e"),u=t("ff46"),c=t("fd84"),l=t("fd86"),f=t("bd5a"),d=t("4037"),p=t("5995"),h=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,y=l("iterator"),v="keys",m="values",b="entries",w=function(){return this};e.exports=function(e,n,t,l,p,x,_){o(t,n,l);var k,P,S,C=function(e){if(e===p&&L)return L;if(!g&&e in A)return A[e];switch(e){case v:return function(){return new t(this,e)};case m:return function(){return new t(this,e)};case b:return function(){return new t(this,e)}}return function(){return new t(this)}},M=n+" Iterator",B=!1,A=e.prototype,R=A[y]||A["@@iterator"]||p&&A[p],L=!g&&R||C(p),O="Array"==n&&A.entries||R;if(O&&(k=a(O.call(new e)),h!==Object.prototype&&k.next&&(f||a(k)===h||(i?i(k,h):"function"!=typeof k[y]&&u(k,y,w)),s(k,M,!0,!0),f&&(d[M]=w))),p==m&&R&&R.name!==m&&(B=!0,L=function(){return R.call(this)}),f&&!_||A[y]===L||u(A,y,L),d[n]=L,p)if(P={values:C(m),keys:x?L:C(v),entries:C(b)},_)for(S in P)(g||B||!(S in A))&&c(A,S,P[S]);else r({target:n,proto:!0,forced:g||B},P);return P}},"41d6":function(e,n,t){var r=t("ce17"),o=t("6614"),a=t("57ac"),i=t("a9eb"),s=Object.defineProperty;n.f=r?s:function(e,n,t){if(a(e),n=i(n,!0),a(t),o)try{return s(e,n,t)}catch(r){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(e[n]=t.value),e}},4311:function(e,n,t){"use strict";var r=t("7f82"),o=t("22b8").f,a=t("43b7"),i=t("ff41"),s=t("c678"),u=t("ff3f"),c=t("bd5a"),l="".endsWith,f=Math.min,d=u("endsWith"),p=!c&&!d&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!d},{endsWith:function(e){var n=String(s(this));i(e);var t=arguments.length>1?arguments[1]:void 0,r=a(n.length),o=void 0===t?r:f(a(t),r),u=String(e);return l?l.call(n,u,o):n.slice(o-u.length,o)===u}})},"43b7":function(e,n,t){var r=t("b42f"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"448a":function(e,n,t){var r=t("bd5a"),o=t("28b5");(e.exports=function(e,n){return o[e]||(o[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.12.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},4574:function(e,n,t){var r=t("8aac"),o=t("129e"),a=t("a081"),i=t("41d6").f;e.exports=function(e){var n=r.Symbol||(r.Symbol={});o(n,e)||i(n,e,{value:a.f(e)})}},4878:function(e,n,t){"use strict";
|
|
9
|
+
*/(function(){var a,i="4.17.21",s=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,g=2,y=4,v=1,m=2,b=1,w=2,x=4,_=8,k=16,P=32,S=64,C=128,M=256,B=512,R=30,A="...",L=800,O=16,z=1,j=2,D=3,E=1/0,G=9007199254740991,T=17976931348623157e292,I=NaN,N=4294967295,U=N-1,K=N>>>1,F=[["ary",C],["bind",b],["bindKey",w],["curry",_],["curryRight",k],["flip",B],["partial",P],["partialRight",S],["rearg",M]],W="[object Arguments]",H="[object Array]",V="[object AsyncFunction]",Y="[object Boolean]",$="[object Date]",q="[object DOMException]",Z="[object Error]",J="[object Function]",X="[object GeneratorFunction]",Q="[object Map]",ee="[object Number]",ne="[object Null]",te="[object Object]",re="[object Promise]",oe="[object Proxy]",ae="[object RegExp]",ie="[object Set]",se="[object String]",ue="[object Symbol]",ce="[object Undefined]",le="[object WeakMap]",fe="[object WeakSet]",de="[object ArrayBuffer]",pe="[object DataView]",he="[object Float32Array]",ge="[object Float64Array]",ye="[object Int8Array]",ve="[object Int16Array]",me="[object Int32Array]",be="[object Uint8Array]",we="[object Uint8ClampedArray]",xe="[object Uint16Array]",_e="[object Uint32Array]",ke=/\b__p \+= '';/g,Pe=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Be=RegExp(Ce.source),Re=RegExp(Me.source),Ae=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,je=/^\w*$/,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ee=/[\\^$.*+?()[\]{}|]/g,Ge=RegExp(Ee.source),Te=/^\s+/,Ie=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,Ke=/,? & /,Fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,We=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ye=/\w*$/,$e=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Ze=/^\[object .+?Constructor\]$/,Je=/^0o[0-7]+$/i,Xe=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,en=/($^)/,nn=/['\n\r\u2028\u2029\\]/g,tn="\\ud800-\\udfff",rn="\\u0300-\\u036f",on="\\ufe20-\\ufe2f",an="\\u20d0-\\u20ff",sn=rn+on+an,un="\\u2700-\\u27bf",cn="a-z\\xdf-\\xf6\\xf8-\\xff",ln="\\xac\\xb1\\xd7\\xf7",fn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dn="\\u2000-\\u206f",pn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hn="A-Z\\xc0-\\xd6\\xd8-\\xde",gn="\\ufe0e\\ufe0f",yn=ln+fn+dn+pn,vn="['’]",mn="["+tn+"]",bn="["+yn+"]",wn="["+sn+"]",xn="\\d+",_n="["+un+"]",kn="["+cn+"]",Pn="[^"+tn+yn+xn+un+cn+hn+"]",Sn="\\ud83c[\\udffb-\\udfff]",Cn="(?:"+wn+"|"+Sn+")",Mn="[^"+tn+"]",Bn="(?:\\ud83c[\\udde6-\\uddff]){2}",Rn="[\\ud800-\\udbff][\\udc00-\\udfff]",An="["+hn+"]",Ln="\\u200d",On="(?:"+kn+"|"+Pn+")",zn="(?:"+An+"|"+Pn+")",jn="(?:"+vn+"(?:d|ll|m|re|s|t|ve))?",Dn="(?:"+vn+"(?:D|LL|M|RE|S|T|VE))?",En=Cn+"?",Gn="["+gn+"]?",Tn="(?:"+Ln+"(?:"+[Mn,Bn,Rn].join("|")+")"+Gn+En+")*",In="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Un=Gn+En+Tn,Kn="(?:"+[_n,Bn,Rn].join("|")+")"+Un,Fn="(?:"+[Mn+wn+"?",wn,Bn,Rn,mn].join("|")+")",Wn=RegExp(vn,"g"),Hn=RegExp(wn,"g"),Vn=RegExp(Sn+"(?="+Sn+")|"+Fn+Un,"g"),Yn=RegExp([An+"?"+kn+"+"+jn+"(?="+[bn,An,"$"].join("|")+")",zn+"+"+Dn+"(?="+[bn,An+On,"$"].join("|")+")",An+"?"+On+"+"+jn,An+"+"+Dn,Nn,In,xn,Kn].join("|"),"g"),$n=RegExp("["+Ln+tn+sn+gn+"]"),qn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jn=-1,Xn={};Xn[he]=Xn[ge]=Xn[ye]=Xn[ve]=Xn[me]=Xn[be]=Xn[we]=Xn[xe]=Xn[_e]=!0,Xn[W]=Xn[H]=Xn[de]=Xn[Y]=Xn[pe]=Xn[$]=Xn[Z]=Xn[J]=Xn[Q]=Xn[ee]=Xn[te]=Xn[ae]=Xn[ie]=Xn[se]=Xn[le]=!1;var Qn={};Qn[W]=Qn[H]=Qn[de]=Qn[pe]=Qn[Y]=Qn[$]=Qn[he]=Qn[ge]=Qn[ye]=Qn[ve]=Qn[me]=Qn[Q]=Qn[ee]=Qn[te]=Qn[ae]=Qn[ie]=Qn[se]=Qn[ue]=Qn[be]=Qn[we]=Qn[xe]=Qn[_e]=!0,Qn[Z]=Qn[J]=Qn[le]=!1;var et={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},nt={"&":"&","<":"<",">":">",'"':""","'":"'"},tt={"&":"&","<":"<",">":">",""":'"',"'":"'"},rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ot=parseFloat,at=parseInt,it="object"==typeof e&&e&&e.Object===Object&&e,st="object"==typeof self&&self&&self.Object===Object&&self,ut=it||st||Function("return this")(),ct=n&&!n.nodeType&&n,lt=ct&&"object"==typeof r&&r&&!r.nodeType&&r,ft=lt&<.exports===ct,dt=ft&&it.process,pt=function(){try{var e=lt&<.require&<.require("util").types;return e||dt&&dt.binding&&dt.binding("util")}catch(n){}}(),ht=pt&&pt.isArrayBuffer,gt=pt&&pt.isDate,yt=pt&&pt.isMap,vt=pt&&pt.isRegExp,mt=pt&&pt.isSet,bt=pt&&pt.isTypedArray;function wt(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function xt(e,n,t,r){var o=-1,a=null==e?0:e.length;while(++o<a){var i=e[o];n(r,i,t(i),e)}return r}function _t(e,n){var t=-1,r=null==e?0:e.length;while(++t<r)if(!1===n(e[t],t,e))break;return e}function kt(e,n){var t=null==e?0:e.length;while(t--)if(!1===n(e[t],t,e))break;return e}function Pt(e,n){var t=-1,r=null==e?0:e.length;while(++t<r)if(!n(e[t],t,e))return!1;return!0}function St(e,n){var t=-1,r=null==e?0:e.length,o=0,a=[];while(++t<r){var i=e[t];n(i,t,e)&&(a[o++]=i)}return a}function Ct(e,n){var t=null==e?0:e.length;return!!t&&Tt(e,n,0)>-1}function Mt(e,n,t){var r=-1,o=null==e?0:e.length;while(++r<o)if(t(n,e[r]))return!0;return!1}function Bt(e,n){var t=-1,r=null==e?0:e.length,o=Array(r);while(++t<r)o[t]=n(e[t],t,e);return o}function Rt(e,n){var t=-1,r=n.length,o=e.length;while(++t<r)e[o+t]=n[t];return e}function At(e,n,t,r){var o=-1,a=null==e?0:e.length;r&&a&&(t=e[++o]);while(++o<a)t=n(t,e[o],o,e);return t}function Lt(e,n,t,r){var o=null==e?0:e.length;r&&o&&(t=e[--o]);while(o--)t=n(t,e[o],o,e);return t}function Ot(e,n){var t=-1,r=null==e?0:e.length;while(++t<r)if(n(e[t],t,e))return!0;return!1}var zt=Kt("length");function jt(e){return e.split("")}function Dt(e){return e.match(Fe)||[]}function Et(e,n,t){var r;return t(e,(function(e,t,o){if(n(e,t,o))return r=t,!1})),r}function Gt(e,n,t,r){var o=e.length,a=t+(r?1:-1);while(r?a--:++a<o)if(n(e[a],a,e))return a;return-1}function Tt(e,n,t){return n===n?hr(e,n,t):Gt(e,Nt,t)}function It(e,n,t,r){var o=t-1,a=e.length;while(++o<a)if(r(e[o],n))return o;return-1}function Nt(e){return e!==e}function Ut(e,n){var t=null==e?0:e.length;return t?Vt(e,n)/t:I}function Kt(e){return function(n){return null==n?a:n[e]}}function Ft(e){return function(n){return null==e?a:e[n]}}function Wt(e,n,t,r,o){return o(e,(function(e,o,a){t=r?(r=!1,e):n(t,e,o,a)})),t}function Ht(e,n){var t=e.length;e.sort(n);while(t--)e[t]=e[t].value;return e}function Vt(e,n){var t,r=-1,o=e.length;while(++r<o){var i=n(e[r]);i!==a&&(t=t===a?i:t+i)}return t}function Yt(e,n){var t=-1,r=Array(e);while(++t<e)r[t]=n(t);return r}function $t(e,n){return Bt(n,(function(n){return[n,e[n]]}))}function qt(e){return e?e.slice(0,mr(e)+1).replace(Te,""):e}function Zt(e){return function(n){return e(n)}}function Jt(e,n){return Bt(n,(function(n){return e[n]}))}function Xt(e,n){return e.has(n)}function Qt(e,n){var t=-1,r=e.length;while(++t<r&&Tt(n,e[t],0)>-1);return t}function er(e,n){var t=e.length;while(t--&&Tt(n,e[t],0)>-1);return t}function nr(e,n){var t=e.length,r=0;while(t--)e[t]===n&&++r;return r}var tr=Ft(et),rr=Ft(nt);function or(e){return"\\"+rt[e]}function ar(e,n){return null==e?a:e[n]}function ir(e){return $n.test(e)}function sr(e){return qn.test(e)}function ur(e){var n,t=[];while(!(n=e.next()).done)t.push(n.value);return t}function cr(e){var n=-1,t=Array(e.size);return e.forEach((function(e,r){t[++n]=[r,e]})),t}function lr(e,n){return function(t){return e(n(t))}}function fr(e,n){var t=-1,r=e.length,o=0,a=[];while(++t<r){var i=e[t];i!==n&&i!==p||(e[t]=p,a[o++]=t)}return a}function dr(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t}function pr(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=[e,e]})),t}function hr(e,n,t){var r=t-1,o=e.length;while(++r<o)if(e[r]===n)return r;return-1}function gr(e,n,t){var r=t+1;while(r--)if(e[r]===n)return r;return r}function yr(e){return ir(e)?wr(e):zt(e)}function vr(e){return ir(e)?xr(e):jt(e)}function mr(e){var n=e.length;while(n--&&Ie.test(e.charAt(n)));return n}var br=Ft(tt);function wr(e){var n=Vn.lastIndex=0;while(Vn.test(e))++n;return n}function xr(e){return e.match(Vn)||[]}function _r(e){return e.match(Yn)||[]}var kr=function e(n){n=null==n?ut:Pr.defaults(ut.Object(),n,Pr.pick(ut,Zn));var t=n.Array,r=n.Date,o=n.Error,Ie=n.Function,Fe=n.Math,tn=n.Object,rn=n.RegExp,on=n.String,an=n.TypeError,sn=t.prototype,un=Ie.prototype,cn=tn.prototype,ln=n["__core-js_shared__"],fn=un.toString,dn=cn.hasOwnProperty,pn=0,hn=function(){var e=/[^.]+$/.exec(ln&&ln.keys&&ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gn=cn.toString,yn=fn.call(tn),vn=ut._,mn=rn("^"+fn.call(dn).replace(Ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bn=ft?n.Buffer:a,wn=n.Symbol,xn=n.Uint8Array,_n=bn?bn.allocUnsafe:a,kn=lr(tn.getPrototypeOf,tn),Pn=tn.create,Sn=cn.propertyIsEnumerable,Cn=sn.splice,Mn=wn?wn.isConcatSpreadable:a,Bn=wn?wn.iterator:a,Rn=wn?wn.toStringTag:a,An=function(){try{var e=Yi(tn,"defineProperty");return e({},"",{}),e}catch(n){}}(),Ln=n.clearTimeout!==ut.clearTimeout&&n.clearTimeout,On=r&&r.now!==ut.Date.now&&r.now,zn=n.setTimeout!==ut.setTimeout&&n.setTimeout,jn=Fe.ceil,Dn=Fe.floor,En=tn.getOwnPropertySymbols,Gn=bn?bn.isBuffer:a,Tn=n.isFinite,In=sn.join,Nn=lr(tn.keys,tn),Un=Fe.max,Kn=Fe.min,Fn=r.now,Vn=n.parseInt,Yn=Fe.random,$n=sn.reverse,qn=Yi(n,"DataView"),et=Yi(n,"Map"),nt=Yi(n,"Promise"),tt=Yi(n,"Set"),rt=Yi(n,"WeakMap"),it=Yi(tn,"create"),st=rt&&new rt,ct={},lt=Os(qn),dt=Os(et),pt=Os(nt),zt=Os(tt),jt=Os(rt),Ft=wn?wn.prototype:a,hr=Ft?Ft.valueOf:a,wr=Ft?Ft.toString:a;function xr(e){if(Sl(e)&&!ul(e)&&!(e instanceof Mr)){if(e instanceof Cr)return e;if(dn.call(e,"__wrapped__"))return js(e)}return new Cr(e)}var kr=function(){function e(){}return function(n){if(!Pl(n))return{};if(Pn)return Pn(n);e.prototype=n;var t=new e;return e.prototype=a,t}}();function Sr(){}function Cr(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=a}function Mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function Br(){var e=new Mr(this.__wrapped__);return e.__actions__=oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=oi(this.__views__),e}function Rr(){if(this.__filtered__){var e=new Mr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Ar(){var e=this.__wrapped__.value(),n=this.__dir__,t=ul(e),r=n<0,o=t?e.length:0,a=Xi(0,o,this.__views__),i=a.start,s=a.end,u=s-i,c=r?s:i-1,l=this.__iteratees__,f=l.length,d=0,p=Kn(u,this.__takeCount__);if(!t||!r&&o==u&&p==u)return Ia(e,this.__actions__);var h=[];e:while(u--&&d<p){c+=n;var g=-1,y=e[c];while(++g<f){var v=l[g],m=v.iteratee,b=v.type,w=m(y);if(b==j)y=w;else if(!w){if(b==z)continue e;break e}}h[d++]=y}return h}function Lr(e){var n=-1,t=null==e?0:e.length;this.clear();while(++n<t){var r=e[n];this.set(r[0],r[1])}}function Or(){this.__data__=it?it(null):{},this.size=0}function zr(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function jr(e){var n=this.__data__;if(it){var t=n[e];return t===f?a:t}return dn.call(n,e)?n[e]:a}function Dr(e){var n=this.__data__;return it?n[e]!==a:dn.call(n,e)}function Er(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=it&&n===a?f:n,this}function Gr(e){var n=-1,t=null==e?0:e.length;this.clear();while(++n<t){var r=e[n];this.set(r[0],r[1])}}function Tr(){this.__data__=[],this.size=0}function Ir(e){var n=this.__data__,t=lo(n,e);if(t<0)return!1;var r=n.length-1;return t==r?n.pop():Cn.call(n,t,1),--this.size,!0}function Nr(e){var n=this.__data__,t=lo(n,e);return t<0?a:n[t][1]}function Ur(e){return lo(this.__data__,e)>-1}function Kr(e,n){var t=this.__data__,r=lo(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this}function Fr(e){var n=-1,t=null==e?0:e.length;this.clear();while(++n<t){var r=e[n];this.set(r[0],r[1])}}function Wr(){this.size=0,this.__data__={hash:new Lr,map:new(et||Gr),string:new Lr}}function Hr(e){var n=Hi(this,e)["delete"](e);return this.size-=n?1:0,n}function Vr(e){return Hi(this,e).get(e)}function Yr(e){return Hi(this,e).has(e)}function $r(e,n){var t=Hi(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this}function qr(e){var n=-1,t=null==e?0:e.length;this.__data__=new Fr;while(++n<t)this.add(e[n])}function Zr(e){return this.__data__.set(e,f),this}function Jr(e){return this.__data__.has(e)}function Xr(e){var n=this.__data__=new Gr(e);this.size=n.size}function Qr(){this.__data__=new Gr,this.size=0}function eo(e){var n=this.__data__,t=n["delete"](e);return this.size=n.size,t}function no(e){return this.__data__.get(e)}function to(e){return this.__data__.has(e)}function ro(e,n){var t=this.__data__;if(t instanceof Gr){var r=t.__data__;if(!et||r.length<s-1)return r.push([e,n]),this.size=++t.size,this;t=this.__data__=new Fr(r)}return t.set(e,n),this.size=t.size,this}function oo(e,n){var t=ul(e),r=!t&&sl(e),o=!t&&!r&&pl(e),a=!t&&!r&&!o&&Nl(e),i=t||r||o||a,s=i?Yt(e.length,on):[],u=s.length;for(var c in e)!n&&!dn.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||is(c,u))||s.push(c);return s}function ao(e){var n=e.length;return n?e[ma(0,n-1)]:a}function io(e,n){return Rs(oi(e),vo(n,0,e.length))}function so(e){return Rs(oi(e))}function uo(e,n,t){(t!==a&&!ol(e[n],t)||t===a&&!(n in e))&&go(e,n,t)}function co(e,n,t){var r=e[n];dn.call(e,n)&&ol(r,t)&&(t!==a||n in e)||go(e,n,t)}function lo(e,n){var t=e.length;while(t--)if(ol(e[t][0],n))return t;return-1}function fo(e,n,t,r){return ko(e,(function(e,o,a){n(r,e,t(e),a)})),r}function po(e,n){return e&&ai(n,kf(n),e)}function ho(e,n){return e&&ai(n,Pf(n),e)}function go(e,n,t){"__proto__"==n&&An?An(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function yo(e,n){var r=-1,o=n.length,i=t(o),s=null==e;while(++r<o)i[r]=s?a:vf(e,n[r]);return i}function vo(e,n,t){return e===e&&(t!==a&&(e=e<=t?e:t),n!==a&&(e=e>=n?e:n)),e}function mo(e,n,t,r,o,i){var s,u=n&h,c=n&g,l=n&y;if(t&&(s=o?t(e,r,o,i):t(e)),s!==a)return s;if(!Pl(e))return e;var f=ul(e);if(f){if(s=ns(e),!u)return oi(e,s)}else{var d=Ji(e),p=d==J||d==X;if(pl(e))return $a(e,u);if(d==te||d==W||p&&!o){if(s=c||p?{}:ts(e),!u)return c?si(e,ho(s,e)):ii(e,po(s,e))}else{if(!Qn[d])return o?e:{};s=rs(e,d,u)}}i||(i=new Xr);var v=i.get(e);if(v)return v;i.set(e,s),Gl(e)?e.forEach((function(r){s.add(mo(r,n,t,r,e,i))})):Cl(e)&&e.forEach((function(r,o){s.set(o,mo(r,n,t,o,e,i))}));var m=l?c?Ni:Ii:c?Pf:kf,b=f?a:m(e);return _t(b||e,(function(r,o){b&&(o=r,r=e[o]),co(s,o,mo(r,n,t,o,e,i))})),s}function bo(e){var n=kf(e);return function(t){return wo(t,e,n)}}function wo(e,n,t){var r=t.length;if(null==e)return!r;e=tn(e);while(r--){var o=t[r],i=n[o],s=e[o];if(s===a&&!(o in e)||!i(s))return!1}return!0}function xo(e,n,t){if("function"!=typeof e)throw new an(c);return Ss((function(){e.apply(a,t)}),n)}function _o(e,n,t,r){var o=-1,a=Ct,i=!0,u=e.length,c=[],l=n.length;if(!u)return c;t&&(n=Bt(n,Zt(t))),r?(a=Mt,i=!1):n.length>=s&&(a=Xt,i=!1,n=new qr(n));e:while(++o<u){var f=e[o],d=null==t?f:t(f);if(f=r||0!==f?f:0,i&&d===d){var p=l;while(p--)if(n[p]===d)continue e;c.push(f)}else a(n,d,r)||c.push(f)}return c}xr.templateSettings={escape:Ae,evaluate:Le,interpolate:Oe,variable:"",imports:{_:xr}},xr.prototype=Sr.prototype,xr.prototype.constructor=xr,Cr.prototype=kr(Sr.prototype),Cr.prototype.constructor=Cr,Mr.prototype=kr(Sr.prototype),Mr.prototype.constructor=Mr,Lr.prototype.clear=Or,Lr.prototype["delete"]=zr,Lr.prototype.get=jr,Lr.prototype.has=Dr,Lr.prototype.set=Er,Gr.prototype.clear=Tr,Gr.prototype["delete"]=Ir,Gr.prototype.get=Nr,Gr.prototype.has=Ur,Gr.prototype.set=Kr,Fr.prototype.clear=Wr,Fr.prototype["delete"]=Hr,Fr.prototype.get=Vr,Fr.prototype.has=Yr,Fr.prototype.set=$r,qr.prototype.add=qr.prototype.push=Zr,qr.prototype.has=Jr,Xr.prototype.clear=Qr,Xr.prototype["delete"]=eo,Xr.prototype.get=no,Xr.prototype.has=to,Xr.prototype.set=ro;var ko=li(Oo),Po=li(zo,!0);function So(e,n){var t=!0;return ko(e,(function(e,r,o){return t=!!n(e,r,o),t})),t}function Co(e,n,t){var r=-1,o=e.length;while(++r<o){var i=e[r],s=n(i);if(null!=s&&(u===a?s===s&&!Il(s):t(s,u)))var u=s,c=i}return c}function Mo(e,n,t,r){var o=e.length;t=$l(t),t<0&&(t=-t>o?0:o+t),r=r===a||r>o?o:$l(r),r<0&&(r+=o),r=t>r?0:ql(r);while(t<r)e[t++]=n;return e}function Bo(e,n){var t=[];return ko(e,(function(e,r,o){n(e,r,o)&&t.push(e)})),t}function Ro(e,n,t,r,o){var a=-1,i=e.length;t||(t=as),o||(o=[]);while(++a<i){var s=e[a];n>0&&t(s)?n>1?Ro(s,n-1,t,r,o):Rt(o,s):r||(o[o.length]=s)}return o}var Ao=fi(),Lo=fi(!0);function Oo(e,n){return e&&Ao(e,n,kf)}function zo(e,n){return e&&Lo(e,n,kf)}function jo(e,n){return St(n,(function(n){return xl(e[n])}))}function Do(e,n){n=Wa(n,e);var t=0,r=n.length;while(null!=e&&t<r)e=e[Ls(n[t++])];return t&&t==r?e:a}function Eo(e,n,t){var r=n(e);return ul(e)?r:Rt(r,t(e))}function Go(e){return null==e?e===a?ce:ne:Rn&&Rn in tn(e)?$i(e):bs(e)}function To(e,n){return e>n}function Io(e,n){return null!=e&&dn.call(e,n)}function No(e,n){return null!=e&&n in tn(e)}function Uo(e,n,t){return e>=Kn(n,t)&&e<Un(n,t)}function Ko(e,n,r){var o=r?Mt:Ct,i=e[0].length,s=e.length,u=s,c=t(s),l=1/0,f=[];while(u--){var d=e[u];u&&n&&(d=Bt(d,Zt(n))),l=Kn(d.length,l),c[u]=!r&&(n||i>=120&&d.length>=120)?new qr(u&&d):a}d=e[0];var p=-1,h=c[0];e:while(++p<i&&f.length<l){var g=d[p],y=n?n(g):g;if(g=r||0!==g?g:0,!(h?Xt(h,y):o(f,y,r))){u=s;while(--u){var v=c[u];if(!(v?Xt(v,y):o(e[u],y,r)))continue e}h&&h.push(y),f.push(g)}}return f}function Fo(e,n,t,r){return Oo(e,(function(e,o,a){n(r,t(e),o,a)})),r}function Wo(e,n,t){n=Wa(n,e),e=xs(e,n);var r=null==e?e:e[Ls(au(n))];return null==r?a:wt(r,e,t)}function Ho(e){return Sl(e)&&Go(e)==W}function Vo(e){return Sl(e)&&Go(e)==de}function Yo(e){return Sl(e)&&Go(e)==$}function $o(e,n,t,r,o){return e===n||(null==e||null==n||!Sl(e)&&!Sl(n)?e!==e&&n!==n:qo(e,n,t,r,$o,o))}function qo(e,n,t,r,o,a){var i=ul(e),s=ul(n),u=i?H:Ji(e),c=s?H:Ji(n);u=u==W?te:u,c=c==W?te:c;var l=u==te,f=c==te,d=u==c;if(d&&pl(e)){if(!pl(n))return!1;i=!0,l=!1}if(d&&!l)return a||(a=new Xr),i||Nl(e)?Di(e,n,t,r,o,a):Ei(e,n,u,t,r,o,a);if(!(t&v)){var p=l&&dn.call(e,"__wrapped__"),h=f&&dn.call(n,"__wrapped__");if(p||h){var g=p?e.value():e,y=h?n.value():n;return a||(a=new Xr),o(g,y,t,r,a)}}return!!d&&(a||(a=new Xr),Gi(e,n,t,r,o,a))}function Zo(e){return Sl(e)&&Ji(e)==Q}function Jo(e,n,t,r){var o=t.length,i=o,s=!r;if(null==e)return!i;e=tn(e);while(o--){var u=t[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}while(++o<i){u=t[o];var c=u[0],l=e[c],f=u[1];if(s&&u[2]){if(l===a&&!(c in e))return!1}else{var d=new Xr;if(r)var p=r(l,f,c,e,n,d);if(!(p===a?$o(f,l,v|m,r,d):p))return!1}}return!0}function Xo(e){if(!Pl(e)||fs(e))return!1;var n=xl(e)?mn:Ze;return n.test(Os(e))}function Qo(e){return Sl(e)&&Go(e)==ae}function ea(e){return Sl(e)&&Ji(e)==ie}function na(e){return Sl(e)&&kl(e.length)&&!!Xn[Go(e)]}function ta(e){return"function"==typeof e?e:null==e?Ld:"object"==typeof e?ul(e)?ua(e[0],e[1]):sa(e):Wd(e)}function ra(e){if(!ps(e))return Nn(e);var n=[];for(var t in tn(e))dn.call(e,t)&&"constructor"!=t&&n.push(t);return n}function oa(e){if(!Pl(e))return ms(e);var n=ps(e),t=[];for(var r in e)("constructor"!=r||!n&&dn.call(e,r))&&t.push(r);return t}function aa(e,n){return e<n}function ia(e,n){var r=-1,o=ll(e)?t(e.length):[];return ko(e,(function(e,t,a){o[++r]=n(e,t,a)})),o}function sa(e){var n=Vi(e);return 1==n.length&&n[0][2]?gs(n[0][0],n[0][1]):function(t){return t===e||Jo(t,e,n)}}function ua(e,n){return us(e)&&hs(n)?gs(Ls(e),n):function(t){var r=vf(t,e);return r===a&&r===n?bf(t,e):$o(n,r,v|m)}}function ca(e,n,t,r,o){e!==n&&Ao(n,(function(i,s){if(o||(o=new Xr),Pl(i))la(e,n,s,t,ca,r,o);else{var u=r?r(ks(e,s),i,s+"",e,n,o):a;u===a&&(u=i),uo(e,s,u)}}),Pf)}function la(e,n,t,r,o,i,s){var u=ks(e,t),c=ks(n,t),l=s.get(c);if(l)uo(e,t,l);else{var f=i?i(u,c,t+"",e,n,s):a,d=f===a;if(d){var p=ul(c),h=!p&&pl(c),g=!p&&!h&&Nl(c);f=c,p||h||g?ul(u)?f=u:fl(u)?f=oi(u):h?(d=!1,f=$a(c,!0)):g?(d=!1,f=Qa(c,!0)):f=[]:jl(c)||sl(c)?(f=u,sl(u)?f=Jl(u):Pl(u)&&!xl(u)||(f=ts(c))):d=!1}d&&(s.set(c,f),o(f,c,r,i,s),s["delete"](c)),uo(e,t,f)}}function fa(e,n){var t=e.length;if(t)return n+=n<0?t:0,is(n,t)?e[n]:a}function da(e,n,t){n=n.length?Bt(n,(function(e){return ul(e)?function(n){return Do(n,1===e.length?e[0]:e)}:e})):[Ld];var r=-1;n=Bt(n,Zt(Wi()));var o=ia(e,(function(e,t,o){var a=Bt(n,(function(n){return n(e)}));return{criteria:a,index:++r,value:e}}));return Ht(o,(function(e,n){return ni(e,n,t)}))}function pa(e,n){return ha(e,n,(function(n,t){return bf(e,t)}))}function ha(e,n,t){var r=-1,o=n.length,a={};while(++r<o){var i=n[r],s=Do(e,i);t(s,i)&&Pa(a,Wa(i,e),s)}return a}function ga(e){return function(n){return Do(n,e)}}function ya(e,n,t,r){var o=r?It:Tt,a=-1,i=n.length,s=e;e===n&&(n=oi(n)),t&&(s=Bt(e,Zt(t)));while(++a<i){var u=0,c=n[a],l=t?t(c):c;while((u=o(s,l,u,r))>-1)s!==e&&Cn.call(s,u,1),Cn.call(e,u,1)}return e}function va(e,n){var t=e?n.length:0,r=t-1;while(t--){var o=n[t];if(t==r||o!==a){var a=o;is(o)?Cn.call(e,o,1):Ea(e,o)}}return e}function ma(e,n){return e+Dn(Yn()*(n-e+1))}function ba(e,n,r,o){var a=-1,i=Un(jn((n-e)/(r||1)),0),s=t(i);while(i--)s[o?i:++a]=e,e+=r;return s}function wa(e,n){var t="";if(!e||n<1||n>G)return t;do{n%2&&(t+=e),n=Dn(n/2),n&&(e+=e)}while(n);return t}function xa(e,n){return Cs(ws(e,n,Ld),e+"")}function _a(e){return ao(Kf(e))}function ka(e,n){var t=Kf(e);return Rs(t,vo(n,0,t.length))}function Pa(e,n,t,r){if(!Pl(e))return e;n=Wa(n,e);var o=-1,i=n.length,s=i-1,u=e;while(null!=u&&++o<i){var c=Ls(n[o]),l=t;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var f=u[c];l=r?r(f,c,u):a,l===a&&(l=Pl(f)?f:is(n[o+1])?[]:{})}co(u,c,l),u=u[c]}return e}var Sa=st?function(e,n){return st.set(e,n),e}:Ld,Ca=An?function(e,n){return An(e,"toString",{configurable:!0,enumerable:!1,value:Md(n),writable:!0})}:Ld;function Ma(e){return Rs(Kf(e))}function Ba(e,n,r){var o=-1,a=e.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;var i=t(a);while(++o<a)i[o]=e[o+n];return i}function Ra(e,n){var t;return ko(e,(function(e,r,o){return t=n(e,r,o),!t})),!!t}function Aa(e,n,t){var r=0,o=null==e?r:e.length;if("number"==typeof n&&n===n&&o<=K){while(r<o){var a=r+o>>>1,i=e[a];null!==i&&!Il(i)&&(t?i<=n:i<n)?r=a+1:o=a}return o}return La(e,n,Ld,t)}function La(e,n,t,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;n=t(n);var s=n!==n,u=null===n,c=Il(n),l=n===a;while(o<i){var f=Dn((o+i)/2),d=t(e[f]),p=d!==a,h=null===d,g=d===d,y=Il(d);if(s)var v=r||g;else v=l?g&&(r||p):u?g&&p&&(r||!h):c?g&&p&&!h&&(r||!y):!h&&!y&&(r?d<=n:d<n);v?o=f+1:i=f}return Kn(i,U)}function Oa(e,n){var t=-1,r=e.length,o=0,a=[];while(++t<r){var i=e[t],s=n?n(i):i;if(!t||!ol(s,u)){var u=s;a[o++]=0===i?0:i}}return a}function za(e){return"number"==typeof e?e:Il(e)?I:+e}function ja(e){if("string"==typeof e)return e;if(ul(e))return Bt(e,ja)+"";if(Il(e))return wr?wr.call(e):"";var n=e+"";return"0"==n&&1/e==-E?"-0":n}function Da(e,n,t){var r=-1,o=Ct,a=e.length,i=!0,u=[],c=u;if(t)i=!1,o=Mt;else if(a>=s){var l=n?null:Ri(e);if(l)return dr(l);i=!1,o=Xt,c=new qr}else c=n?[]:u;e:while(++r<a){var f=e[r],d=n?n(f):f;if(f=t||0!==f?f:0,i&&d===d){var p=c.length;while(p--)if(c[p]===d)continue e;n&&c.push(d),u.push(f)}else o(c,d,t)||(c!==u&&c.push(d),u.push(f))}return u}function Ea(e,n){return n=Wa(n,e),e=xs(e,n),null==e||delete e[Ls(au(n))]}function Ga(e,n,t,r){return Pa(e,n,t(Do(e,n)),r)}function Ta(e,n,t,r){var o=e.length,a=r?o:-1;while((r?a--:++a<o)&&n(e[a],a,e));return t?Ba(e,r?0:a,r?a+1:o):Ba(e,r?a+1:0,r?o:a)}function Ia(e,n){var t=e;return t instanceof Mr&&(t=t.value()),At(n,(function(e,n){return n.func.apply(n.thisArg,Rt([e],n.args))}),t)}function Na(e,n,r){var o=e.length;if(o<2)return o?Da(e[0]):[];var a=-1,i=t(o);while(++a<o){var s=e[a],u=-1;while(++u<o)u!=a&&(i[a]=_o(i[a]||s,e[u],n,r))}return Da(Ro(i,1),n,r)}function Ua(e,n,t){var r=-1,o=e.length,i=n.length,s={};while(++r<o){var u=r<i?n[r]:a;t(s,e[r],u)}return s}function Ka(e){return fl(e)?e:[]}function Fa(e){return"function"==typeof e?e:Ld}function Wa(e,n){return ul(e)?e:us(e,n)?[e]:As(Ql(e))}var Ha=xa;function Va(e,n,t){var r=e.length;return t=t===a?r:t,!n&&t>=r?e:Ba(e,n,t)}var Ya=Ln||function(e){return ut.clearTimeout(e)};function $a(e,n){if(n)return e.slice();var t=e.length,r=_n?_n(t):new e.constructor(t);return e.copy(r),r}function qa(e){var n=new e.constructor(e.byteLength);return new xn(n).set(new xn(e)),n}function Za(e,n){var t=n?qa(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}function Ja(e){var n=new e.constructor(e.source,Ye.exec(e));return n.lastIndex=e.lastIndex,n}function Xa(e){return hr?tn(hr.call(e)):{}}function Qa(e,n){var t=n?qa(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function ei(e,n){if(e!==n){var t=e!==a,r=null===e,o=e===e,i=Il(e),s=n!==a,u=null===n,c=n===n,l=Il(n);if(!u&&!l&&!i&&e>n||i&&s&&c&&!u&&!l||r&&s&&c||!t&&c||!o)return 1;if(!r&&!i&&!l&&e<n||l&&t&&o&&!r&&!i||u&&t&&o||!s&&o||!c)return-1}return 0}function ni(e,n,t){var r=-1,o=e.criteria,a=n.criteria,i=o.length,s=t.length;while(++r<i){var u=ei(o[r],a[r]);if(u){if(r>=s)return u;var c=t[r];return u*("desc"==c?-1:1)}}return e.index-n.index}function ti(e,n,r,o){var a=-1,i=e.length,s=r.length,u=-1,c=n.length,l=Un(i-s,0),f=t(c+l),d=!o;while(++u<c)f[u]=n[u];while(++a<s)(d||a<i)&&(f[r[a]]=e[a]);while(l--)f[u++]=e[a++];return f}function ri(e,n,r,o){var a=-1,i=e.length,s=-1,u=r.length,c=-1,l=n.length,f=Un(i-u,0),d=t(f+l),p=!o;while(++a<f)d[a]=e[a];var h=a;while(++c<l)d[h+c]=n[c];while(++s<u)(p||a<i)&&(d[h+r[s]]=e[a++]);return d}function oi(e,n){var r=-1,o=e.length;n||(n=t(o));while(++r<o)n[r]=e[r];return n}function ai(e,n,t,r){var o=!t;t||(t={});var i=-1,s=n.length;while(++i<s){var u=n[i],c=r?r(t[u],e[u],u,t,e):a;c===a&&(c=e[u]),o?go(t,u,c):co(t,u,c)}return t}function ii(e,n){return ai(e,qi(e),n)}function si(e,n){return ai(e,Zi(e),n)}function ui(e,n){return function(t,r){var o=ul(t)?xt:fo,a=n?n():{};return o(t,e,Wi(r,2),a)}}function ci(e){return xa((function(n,t){var r=-1,o=t.length,i=o>1?t[o-1]:a,s=o>2?t[2]:a;i=e.length>3&&"function"==typeof i?(o--,i):a,s&&ss(t[0],t[1],s)&&(i=o<3?a:i,o=1),n=tn(n);while(++r<o){var u=t[r];u&&e(n,u,r,i)}return n}))}function li(e,n){return function(t,r){if(null==t)return t;if(!ll(t))return e(t,r);var o=t.length,a=n?o:-1,i=tn(t);while(n?a--:++a<o)if(!1===r(i[a],a,i))break;return t}}function fi(e){return function(n,t,r){var o=-1,a=tn(n),i=r(n),s=i.length;while(s--){var u=i[e?s:++o];if(!1===t(a[u],u,a))break}return n}}function di(e,n,t){var r=n&b,o=gi(e);function a(){var n=this&&this!==ut&&this instanceof a?o:e;return n.apply(r?t:this,arguments)}return a}function pi(e){return function(n){n=Ql(n);var t=ir(n)?vr(n):a,r=t?t[0]:n.charAt(0),o=t?Va(t,1).join(""):n.slice(1);return r[e]()+o}}function hi(e){return function(n){return At(_d(qf(n).replace(Wn,"")),e,"")}}function gi(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var t=kr(e.prototype),r=e.apply(t,n);return Pl(r)?r:t}}function yi(e,n,r){var o=gi(e);function i(){var s=arguments.length,u=t(s),c=s,l=Fi(i);while(c--)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:fr(u,l);if(s-=f.length,s<r)return Mi(e,n,bi,i.placeholder,a,u,f,a,a,r-s);var d=this&&this!==ut&&this instanceof i?o:e;return wt(d,this,u)}return i}function vi(e){return function(n,t,r){var o=tn(n);if(!ll(n)){var i=Wi(t,3);n=kf(n),t=function(e){return i(o[e],e,o)}}var s=e(n,t,r);return s>-1?o[i?n[s]:s]:a}}function mi(e){return Ti((function(n){var t=n.length,r=t,o=Cr.prototype.thru;e&&n.reverse();while(r--){var i=n[r];if("function"!=typeof i)throw new an(c);if(o&&!s&&"wrapper"==Ki(i))var s=new Cr([],!0)}r=s?r:t;while(++r<t){i=n[r];var u=Ki(i),l="wrapper"==u?Ui(i):a;s=l&&ls(l[0])&&l[1]==(C|_|P|M)&&!l[4].length&&1==l[9]?s[Ki(l[0])].apply(s,l[3]):1==i.length&&ls(i)?s[u]():s.thru(i)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&ul(r))return s.plant(r).value();var o=0,a=t?n[o].apply(this,e):r;while(++o<t)a=n[o].call(this,a);return a}}))}function bi(e,n,r,o,i,s,u,c,l,f){var d=n&C,p=n&b,h=n&w,g=n&(_|k),y=n&B,v=h?a:gi(e);function m(){var a=arguments.length,b=t(a),w=a;while(w--)b[w]=arguments[w];if(g)var x=Fi(m),_=nr(b,x);if(o&&(b=ti(b,o,i,g)),s&&(b=ri(b,s,u,g)),a-=_,g&&a<f){var k=fr(b,x);return Mi(e,n,bi,m.placeholder,r,b,k,c,l,f-a)}var P=p?r:this,S=h?P[e]:e;return a=b.length,c?b=_s(b,c):y&&a>1&&b.reverse(),d&&l<a&&(b.length=l),this&&this!==ut&&this instanceof m&&(S=v||gi(S)),S.apply(P,b)}return m}function wi(e,n){return function(t,r){return Fo(t,e,n(r),{})}}function xi(e,n){return function(t,r){var o;if(t===a&&r===a)return n;if(t!==a&&(o=t),r!==a){if(o===a)return r;"string"==typeof t||"string"==typeof r?(t=ja(t),r=ja(r)):(t=za(t),r=za(r)),o=e(t,r)}return o}}function _i(e){return Ti((function(n){return n=Bt(n,Zt(Wi())),xa((function(t){var r=this;return e(n,(function(e){return wt(e,r,t)}))}))}))}function ki(e,n){n=n===a?" ":ja(n);var t=n.length;if(t<2)return t?wa(n,e):n;var r=wa(n,jn(e/yr(n)));return ir(n)?Va(vr(r),0,e).join(""):r.slice(0,e)}function Pi(e,n,r,o){var a=n&b,i=gi(e);function s(){var n=-1,u=arguments.length,c=-1,l=o.length,f=t(l+u),d=this&&this!==ut&&this instanceof s?i:e;while(++c<l)f[c]=o[c];while(u--)f[c++]=arguments[++n];return wt(d,a?r:this,f)}return s}function Si(e){return function(n,t,r){return r&&"number"!=typeof r&&ss(n,t,r)&&(t=r=a),n=Yl(n),t===a?(t=n,n=0):t=Yl(t),r=r===a?n<t?1:-1:Yl(r),ba(n,t,r,e)}}function Ci(e){return function(n,t){return"string"==typeof n&&"string"==typeof t||(n=Zl(n),t=Zl(t)),e(n,t)}}function Mi(e,n,t,r,o,i,s,u,c,l){var f=n&_,d=f?s:a,p=f?a:s,h=f?i:a,g=f?a:i;n|=f?P:S,n&=~(f?S:P),n&x||(n&=~(b|w));var y=[e,n,o,h,d,g,p,u,c,l],v=t.apply(a,y);return ls(e)&&Ps(v,y),v.placeholder=r,Ms(v,e,n)}function Bi(e){var n=Fe[e];return function(e,t){if(e=Zl(e),t=null==t?0:Kn($l(t),292),t&&Tn(e)){var r=(Ql(e)+"e").split("e"),o=n(r[0]+"e"+(+r[1]+t));return r=(Ql(o)+"e").split("e"),+(r[0]+"e"+(+r[1]-t))}return n(e)}}var Ri=tt&&1/dr(new tt([,-0]))[1]==E?function(e){return new tt(e)}:Id;function Ai(e){return function(n){var t=Ji(n);return t==Q?cr(n):t==ie?pr(n):$t(n,e(n))}}function Li(e,n,t,r,o,i,s,u){var l=n&w;if(!l&&"function"!=typeof e)throw new an(c);var f=r?r.length:0;if(f||(n&=~(P|S),r=o=a),s=s===a?s:Un($l(s),0),u=u===a?u:$l(u),f-=o?o.length:0,n&S){var d=r,p=o;r=o=a}var h=l?a:Ui(e),g=[e,n,t,r,o,d,p,i,s,u];if(h&&vs(g,h),e=g[0],n=g[1],t=g[2],r=g[3],o=g[4],u=g[9]=g[9]===a?l?0:e.length:Un(g[9]-f,0),!u&&n&(_|k)&&(n&=~(_|k)),n&&n!=b)y=n==_||n==k?yi(e,n,u):n!=P&&n!=(b|P)||o.length?bi.apply(a,g):Pi(e,n,t,r);else var y=di(e,n,t);var v=h?Sa:Ps;return Ms(v(y,g),e,n)}function Oi(e,n,t,r){return e===a||ol(e,cn[t])&&!dn.call(r,t)?n:e}function zi(e,n,t,r,o,i){return Pl(e)&&Pl(n)&&(i.set(n,e),ca(e,n,a,zi,i),i["delete"](n)),e}function ji(e){return jl(e)?a:e}function Di(e,n,t,r,o,i){var s=t&v,u=e.length,c=n.length;if(u!=c&&!(s&&c>u))return!1;var l=i.get(e),f=i.get(n);if(l&&f)return l==n&&f==e;var d=-1,p=!0,h=t&m?new qr:a;i.set(e,n),i.set(n,e);while(++d<u){var g=e[d],y=n[d];if(r)var b=s?r(y,g,d,n,e,i):r(g,y,d,e,n,i);if(b!==a){if(b)continue;p=!1;break}if(h){if(!Ot(n,(function(e,n){if(!Xt(h,n)&&(g===e||o(g,e,t,r,i)))return h.push(n)}))){p=!1;break}}else if(g!==y&&!o(g,y,t,r,i)){p=!1;break}}return i["delete"](e),i["delete"](n),p}function Ei(e,n,t,r,o,a,i){switch(t){case pe:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case de:return!(e.byteLength!=n.byteLength||!a(new xn(e),new xn(n)));case Y:case $:case ee:return ol(+e,+n);case Z:return e.name==n.name&&e.message==n.message;case ae:case se:return e==n+"";case Q:var s=cr;case ie:var u=r&v;if(s||(s=dr),e.size!=n.size&&!u)return!1;var c=i.get(e);if(c)return c==n;r|=m,i.set(e,n);var l=Di(s(e),s(n),r,o,a,i);return i["delete"](e),l;case ue:if(hr)return hr.call(e)==hr.call(n)}return!1}function Gi(e,n,t,r,o,i){var s=t&v,u=Ii(e),c=u.length,l=Ii(n),f=l.length;if(c!=f&&!s)return!1;var d=c;while(d--){var p=u[d];if(!(s?p in n:dn.call(n,p)))return!1}var h=i.get(e),g=i.get(n);if(h&&g)return h==n&&g==e;var y=!0;i.set(e,n),i.set(n,e);var m=s;while(++d<c){p=u[d];var b=e[p],w=n[p];if(r)var x=s?r(w,b,p,n,e,i):r(b,w,p,e,n,i);if(!(x===a?b===w||o(b,w,t,r,i):x)){y=!1;break}m||(m="constructor"==p)}if(y&&!m){var _=e.constructor,k=n.constructor;_==k||!("constructor"in e)||!("constructor"in n)||"function"==typeof _&&_ instanceof _&&"function"==typeof k&&k instanceof k||(y=!1)}return i["delete"](e),i["delete"](n),y}function Ti(e){return Cs(ws(e,a,$s),e+"")}function Ii(e){return Eo(e,kf,qi)}function Ni(e){return Eo(e,Pf,Zi)}var Ui=st?function(e){return st.get(e)}:Id;function Ki(e){var n=e.name+"",t=ct[n],r=dn.call(ct,n)?t.length:0;while(r--){var o=t[r],a=o.func;if(null==a||a==e)return o.name}return n}function Fi(e){var n=dn.call(xr,"placeholder")?xr:e;return n.placeholder}function Wi(){var e=xr.iteratee||Od;return e=e===Od?ta:e,arguments.length?e(arguments[0],arguments[1]):e}function Hi(e,n){var t=e.__data__;return cs(n)?t["string"==typeof n?"string":"hash"]:t.map}function Vi(e){var n=kf(e),t=n.length;while(t--){var r=n[t],o=e[r];n[t]=[r,o,hs(o)]}return n}function Yi(e,n){var t=ar(e,n);return Xo(t)?t:a}function $i(e){var n=dn.call(e,Rn),t=e[Rn];try{e[Rn]=a;var r=!0}catch(i){}var o=gn.call(e);return r&&(n?e[Rn]=t:delete e[Rn]),o}var qi=En?function(e){return null==e?[]:(e=tn(e),St(En(e),(function(n){return Sn.call(e,n)})))}:$d,Zi=En?function(e){var n=[];while(e)Rt(n,qi(e)),e=kn(e);return n}:$d,Ji=Go;function Xi(e,n,t){var r=-1,o=t.length;while(++r<o){var a=t[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":n-=i;break;case"take":n=Kn(n,e+i);break;case"takeRight":e=Un(e,n-i);break}}return{start:e,end:n}}function Qi(e){var n=e.match(Ue);return n?n[1].split(Ke):[]}function es(e,n,t){n=Wa(n,e);var r=-1,o=n.length,a=!1;while(++r<o){var i=Ls(n[r]);if(!(a=null!=e&&t(e,i)))break;e=e[i]}return a||++r!=o?a:(o=null==e?0:e.length,!!o&&kl(o)&&is(i,o)&&(ul(e)||sl(e)))}function ns(e){var n=e.length,t=new e.constructor(n);return n&&"string"==typeof e[0]&&dn.call(e,"index")&&(t.index=e.index,t.input=e.input),t}function ts(e){return"function"!=typeof e.constructor||ps(e)?{}:kr(kn(e))}function rs(e,n,t){var r=e.constructor;switch(n){case de:return qa(e);case Y:case $:return new r(+e);case pe:return Za(e,t);case he:case ge:case ye:case ve:case me:case be:case we:case xe:case _e:return Qa(e,t);case Q:return new r;case ee:case se:return new r(e);case ae:return Ja(e);case ie:return new r;case ue:return Xa(e)}}function os(e,n){var t=n.length;if(!t)return e;var r=t-1;return n[r]=(t>1?"& ":"")+n[r],n=n.join(t>2?", ":" "),e.replace(Ne,"{\n/* [wrapped with "+n+"] */\n")}function as(e){return ul(e)||sl(e)||!!(Mn&&e&&e[Mn])}function is(e,n){var t=typeof e;return n=null==n?G:n,!!n&&("number"==t||"symbol"!=t&&Xe.test(e))&&e>-1&&e%1==0&&e<n}function ss(e,n,t){if(!Pl(t))return!1;var r=typeof n;return!!("number"==r?ll(t)&&is(n,t.length):"string"==r&&n in t)&&ol(t[n],e)}function us(e,n){if(ul(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!Il(e))||(je.test(e)||!ze.test(e)||null!=n&&e in tn(n))}function cs(e){var n=typeof e;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e}function ls(e){var n=Ki(e),t=xr[n];if("function"!=typeof t||!(n in Mr.prototype))return!1;if(e===t)return!0;var r=Ui(t);return!!r&&e===r[0]}function fs(e){return!!hn&&hn in e}(qn&&Ji(new qn(new ArrayBuffer(1)))!=pe||et&&Ji(new et)!=Q||nt&&Ji(nt.resolve())!=re||tt&&Ji(new tt)!=ie||rt&&Ji(new rt)!=le)&&(Ji=function(e){var n=Go(e),t=n==te?e.constructor:a,r=t?Os(t):"";if(r)switch(r){case lt:return pe;case dt:return Q;case pt:return re;case zt:return ie;case jt:return le}return n});var ds=ln?xl:qd;function ps(e){var n=e&&e.constructor,t="function"==typeof n&&n.prototype||cn;return e===t}function hs(e){return e===e&&!Pl(e)}function gs(e,n){return function(t){return null!=t&&(t[e]===n&&(n!==a||e in tn(t)))}}function ys(e){var n=Nc(e,(function(e){return t.size===d&&t.clear(),e})),t=n.cache;return n}function vs(e,n){var t=e[1],r=n[1],o=t|r,a=o<(b|w|C),i=r==C&&t==_||r==C&&t==M&&e[7].length<=n[8]||r==(C|M)&&n[7].length<=n[8]&&t==_;if(!a&&!i)return e;r&b&&(e[2]=n[2],o|=t&b?0:x);var s=n[3];if(s){var u=e[3];e[3]=u?ti(u,s,n[4]):s,e[4]=u?fr(e[3],p):n[4]}return s=n[5],s&&(u=e[5],e[5]=u?ri(u,s,n[6]):s,e[6]=u?fr(e[5],p):n[6]),s=n[7],s&&(e[7]=s),r&C&&(e[8]=null==e[8]?n[8]:Kn(e[8],n[8])),null==e[9]&&(e[9]=n[9]),e[0]=n[0],e[1]=o,e}function ms(e){var n=[];if(null!=e)for(var t in tn(e))n.push(t);return n}function bs(e){return gn.call(e)}function ws(e,n,r){return n=Un(n===a?e.length-1:n,0),function(){var o=arguments,a=-1,i=Un(o.length-n,0),s=t(i);while(++a<i)s[a]=o[n+a];a=-1;var u=t(n+1);while(++a<n)u[a]=o[a];return u[n]=r(s),wt(e,this,u)}}function xs(e,n){return n.length<2?e:Do(e,Ba(n,0,-1))}function _s(e,n){var t=e.length,r=Kn(n.length,t),o=oi(e);while(r--){var i=n[r];e[r]=is(i,t)?o[i]:a}return e}function ks(e,n){if(("constructor"!==n||"function"!==typeof e[n])&&"__proto__"!=n)return e[n]}var Ps=Bs(Sa),Ss=zn||function(e,n){return ut.setTimeout(e,n)},Cs=Bs(Ca);function Ms(e,n,t){var r=n+"";return Cs(e,os(r,zs(Qi(r),t)))}function Bs(e){var n=0,t=0;return function(){var r=Fn(),o=O-(r-t);if(t=r,o>0){if(++n>=L)return arguments[0]}else n=0;return e.apply(a,arguments)}}function Rs(e,n){var t=-1,r=e.length,o=r-1;n=n===a?r:n;while(++t<n){var i=ma(t,o),s=e[i];e[i]=e[t],e[t]=s}return e.length=n,e}var As=ys((function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(De,(function(e,t,r,o){n.push(r?o.replace(He,"$1"):t||e)})),n}));function Ls(e){if("string"==typeof e||Il(e))return e;var n=e+"";return"0"==n&&1/e==-E?"-0":n}function Os(e){if(null!=e){try{return fn.call(e)}catch(n){}try{return e+""}catch(n){}}return""}function zs(e,n){return _t(F,(function(t){var r="_."+t[0];n&t[1]&&!Ct(e,r)&&e.push(r)})),e.sort()}function js(e){if(e instanceof Mr)return e.clone();var n=new Cr(e.__wrapped__,e.__chain__);return n.__actions__=oi(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function Ds(e,n,r){n=(r?ss(e,n,r):n===a)?1:Un($l(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];var i=0,s=0,u=t(jn(o/n));while(i<o)u[s++]=Ba(e,i,i+=n);return u}function Es(e){var n=-1,t=null==e?0:e.length,r=0,o=[];while(++n<t){var a=e[n];a&&(o[r++]=a)}return o}function Gs(){var e=arguments.length;if(!e)return[];var n=t(e-1),r=arguments[0],o=e;while(o--)n[o-1]=arguments[o];return Rt(ul(r)?oi(r):[r],Ro(n,1))}var Ts=xa((function(e,n){return fl(e)?_o(e,Ro(n,1,fl,!0)):[]})),Is=xa((function(e,n){var t=au(n);return fl(t)&&(t=a),fl(e)?_o(e,Ro(n,1,fl,!0),Wi(t,2)):[]})),Ns=xa((function(e,n){var t=au(n);return fl(t)&&(t=a),fl(e)?_o(e,Ro(n,1,fl,!0),a,t):[]}));function Us(e,n,t){var r=null==e?0:e.length;return r?(n=t||n===a?1:$l(n),Ba(e,n<0?0:n,r)):[]}function Ks(e,n,t){var r=null==e?0:e.length;return r?(n=t||n===a?1:$l(n),n=r-n,Ba(e,0,n<0?0:n)):[]}function Fs(e,n){return e&&e.length?Ta(e,Wi(n,3),!0,!0):[]}function Ws(e,n){return e&&e.length?Ta(e,Wi(n,3),!0):[]}function Hs(e,n,t,r){var o=null==e?0:e.length;return o?(t&&"number"!=typeof t&&ss(e,n,t)&&(t=0,r=o),Mo(e,n,t,r)):[]}function Vs(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=null==t?0:$l(t);return o<0&&(o=Un(r+o,0)),Gt(e,Wi(n,3),o)}function Ys(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return t!==a&&(o=$l(t),o=t<0?Un(r+o,0):Kn(o,r-1)),Gt(e,Wi(n,3),o,!0)}function $s(e){var n=null==e?0:e.length;return n?Ro(e,1):[]}function qs(e){var n=null==e?0:e.length;return n?Ro(e,E):[]}function Zs(e,n){var t=null==e?0:e.length;return t?(n=n===a?1:$l(n),Ro(e,n)):[]}function Js(e){var n=-1,t=null==e?0:e.length,r={};while(++n<t){var o=e[n];r[o[0]]=o[1]}return r}function Xs(e){return e&&e.length?e[0]:a}function Qs(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=null==t?0:$l(t);return o<0&&(o=Un(r+o,0)),Tt(e,n,o)}function eu(e){var n=null==e?0:e.length;return n?Ba(e,0,-1):[]}var nu=xa((function(e){var n=Bt(e,Ka);return n.length&&n[0]===e[0]?Ko(n):[]})),tu=xa((function(e){var n=au(e),t=Bt(e,Ka);return n===au(t)?n=a:t.pop(),t.length&&t[0]===e[0]?Ko(t,Wi(n,2)):[]})),ru=xa((function(e){var n=au(e),t=Bt(e,Ka);return n="function"==typeof n?n:a,n&&t.pop(),t.length&&t[0]===e[0]?Ko(t,a,n):[]}));function ou(e,n){return null==e?"":In.call(e,n)}function au(e){var n=null==e?0:e.length;return n?e[n-1]:a}function iu(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=r;return t!==a&&(o=$l(t),o=o<0?Un(r+o,0):Kn(o,r-1)),n===n?gr(e,n,o):Gt(e,Nt,o,!0)}function su(e,n){return e&&e.length?fa(e,$l(n)):a}var uu=xa(cu);function cu(e,n){return e&&e.length&&n&&n.length?ya(e,n):e}function lu(e,n,t){return e&&e.length&&n&&n.length?ya(e,n,Wi(t,2)):e}function fu(e,n,t){return e&&e.length&&n&&n.length?ya(e,n,a,t):e}var du=Ti((function(e,n){var t=null==e?0:e.length,r=yo(e,n);return va(e,Bt(n,(function(e){return is(e,t)?+e:e})).sort(ei)),r}));function pu(e,n){var t=[];if(!e||!e.length)return t;var r=-1,o=[],a=e.length;n=Wi(n,3);while(++r<a){var i=e[r];n(i,r,e)&&(t.push(i),o.push(r))}return va(e,o),t}function hu(e){return null==e?e:$n.call(e)}function gu(e,n,t){var r=null==e?0:e.length;return r?(t&&"number"!=typeof t&&ss(e,n,t)?(n=0,t=r):(n=null==n?0:$l(n),t=t===a?r:$l(t)),Ba(e,n,t)):[]}function yu(e,n){return Aa(e,n)}function vu(e,n,t){return La(e,n,Wi(t,2))}function mu(e,n){var t=null==e?0:e.length;if(t){var r=Aa(e,n);if(r<t&&ol(e[r],n))return r}return-1}function bu(e,n){return Aa(e,n,!0)}function wu(e,n,t){return La(e,n,Wi(t,2),!0)}function xu(e,n){var t=null==e?0:e.length;if(t){var r=Aa(e,n,!0)-1;if(ol(e[r],n))return r}return-1}function _u(e){return e&&e.length?Oa(e):[]}function ku(e,n){return e&&e.length?Oa(e,Wi(n,2)):[]}function Pu(e){var n=null==e?0:e.length;return n?Ba(e,1,n):[]}function Su(e,n,t){return e&&e.length?(n=t||n===a?1:$l(n),Ba(e,0,n<0?0:n)):[]}function Cu(e,n,t){var r=null==e?0:e.length;return r?(n=t||n===a?1:$l(n),n=r-n,Ba(e,n<0?0:n,r)):[]}function Mu(e,n){return e&&e.length?Ta(e,Wi(n,3),!1,!0):[]}function Bu(e,n){return e&&e.length?Ta(e,Wi(n,3)):[]}var Ru=xa((function(e){return Da(Ro(e,1,fl,!0))})),Au=xa((function(e){var n=au(e);return fl(n)&&(n=a),Da(Ro(e,1,fl,!0),Wi(n,2))})),Lu=xa((function(e){var n=au(e);return n="function"==typeof n?n:a,Da(Ro(e,1,fl,!0),a,n)}));function Ou(e){return e&&e.length?Da(e):[]}function zu(e,n){return e&&e.length?Da(e,Wi(n,2)):[]}function ju(e,n){return n="function"==typeof n?n:a,e&&e.length?Da(e,a,n):[]}function Du(e){if(!e||!e.length)return[];var n=0;return e=St(e,(function(e){if(fl(e))return n=Un(e.length,n),!0})),Yt(n,(function(n){return Bt(e,Kt(n))}))}function Eu(e,n){if(!e||!e.length)return[];var t=Du(e);return null==n?t:Bt(t,(function(e){return wt(n,a,e)}))}var Gu=xa((function(e,n){return fl(e)?_o(e,n):[]})),Tu=xa((function(e){return Na(St(e,fl))})),Iu=xa((function(e){var n=au(e);return fl(n)&&(n=a),Na(St(e,fl),Wi(n,2))})),Nu=xa((function(e){var n=au(e);return n="function"==typeof n?n:a,Na(St(e,fl),a,n)})),Uu=xa(Du);function Ku(e,n){return Ua(e||[],n||[],co)}function Fu(e,n){return Ua(e||[],n||[],Pa)}var Wu=xa((function(e){var n=e.length,t=n>1?e[n-1]:a;return t="function"==typeof t?(e.pop(),t):a,Eu(e,t)}));function Hu(e){var n=xr(e);return n.__chain__=!0,n}function Vu(e,n){return n(e),e}function Yu(e,n){return n(e)}var $u=Ti((function(e){var n=e.length,t=n?e[0]:0,r=this.__wrapped__,o=function(n){return yo(n,e)};return!(n>1||this.__actions__.length)&&r instanceof Mr&&is(t)?(r=r.slice(t,+t+(n?1:0)),r.__actions__.push({func:Yu,args:[o],thisArg:a}),new Cr(r,this.__chain__).thru((function(e){return n&&!e.length&&e.push(a),e}))):this.thru(o)}));function qu(){return Hu(this)}function Zu(){return new Cr(this.value(),this.__chain__)}function Ju(){this.__values__===a&&(this.__values__=Vl(this.value()));var e=this.__index__>=this.__values__.length,n=e?a:this.__values__[this.__index__++];return{done:e,value:n}}function Xu(){return this}function Qu(e){var n,t=this;while(t instanceof Sr){var r=js(t);r.__index__=0,r.__values__=a,n?o.__wrapped__=r:n=r;var o=r;t=t.__wrapped__}return o.__wrapped__=e,n}function ec(){var e=this.__wrapped__;if(e instanceof Mr){var n=e;return this.__actions__.length&&(n=new Mr(this)),n=n.reverse(),n.__actions__.push({func:Yu,args:[hu],thisArg:a}),new Cr(n,this.__chain__)}return this.thru(hu)}function nc(){return Ia(this.__wrapped__,this.__actions__)}var tc=ui((function(e,n,t){dn.call(e,t)?++e[t]:go(e,t,1)}));function rc(e,n,t){var r=ul(e)?Pt:So;return t&&ss(e,n,t)&&(n=a),r(e,Wi(n,3))}function oc(e,n){var t=ul(e)?St:Bo;return t(e,Wi(n,3))}var ac=vi(Vs),ic=vi(Ys);function sc(e,n){return Ro(yc(e,n),1)}function uc(e,n){return Ro(yc(e,n),E)}function cc(e,n,t){return t=t===a?1:$l(t),Ro(yc(e,n),t)}function lc(e,n){var t=ul(e)?_t:ko;return t(e,Wi(n,3))}function fc(e,n){var t=ul(e)?kt:Po;return t(e,Wi(n,3))}var dc=ui((function(e,n,t){dn.call(e,t)?e[t].push(n):go(e,t,[n])}));function pc(e,n,t,r){e=ll(e)?e:Kf(e),t=t&&!r?$l(t):0;var o=e.length;return t<0&&(t=Un(o+t,0)),Tl(e)?t<=o&&e.indexOf(n,t)>-1:!!o&&Tt(e,n,t)>-1}var hc=xa((function(e,n,r){var o=-1,a="function"==typeof n,i=ll(e)?t(e.length):[];return ko(e,(function(e){i[++o]=a?wt(n,e,r):Wo(e,n,r)})),i})),gc=ui((function(e,n,t){go(e,t,n)}));function yc(e,n){var t=ul(e)?Bt:ia;return t(e,Wi(n,3))}function vc(e,n,t,r){return null==e?[]:(ul(n)||(n=null==n?[]:[n]),t=r?a:t,ul(t)||(t=null==t?[]:[t]),da(e,n,t))}var mc=ui((function(e,n,t){e[t?0:1].push(n)}),(function(){return[[],[]]}));function bc(e,n,t){var r=ul(e)?At:Wt,o=arguments.length<3;return r(e,Wi(n,4),t,o,ko)}function wc(e,n,t){var r=ul(e)?Lt:Wt,o=arguments.length<3;return r(e,Wi(n,4),t,o,Po)}function xc(e,n){var t=ul(e)?St:Bo;return t(e,Uc(Wi(n,3)))}function _c(e){var n=ul(e)?ao:_a;return n(e)}function kc(e,n,t){n=(t?ss(e,n,t):n===a)?1:$l(n);var r=ul(e)?io:ka;return r(e,n)}function Pc(e){var n=ul(e)?so:Ma;return n(e)}function Sc(e){if(null==e)return 0;if(ll(e))return Tl(e)?yr(e):e.length;var n=Ji(e);return n==Q||n==ie?e.size:ra(e).length}function Cc(e,n,t){var r=ul(e)?Ot:Ra;return t&&ss(e,n,t)&&(n=a),r(e,Wi(n,3))}var Mc=xa((function(e,n){if(null==e)return[];var t=n.length;return t>1&&ss(e,n[0],n[1])?n=[]:t>2&&ss(n[0],n[1],n[2])&&(n=[n[0]]),da(e,Ro(n,1),[])})),Bc=On||function(){return ut.Date.now()};function Rc(e,n){if("function"!=typeof n)throw new an(c);return e=$l(e),function(){if(--e<1)return n.apply(this,arguments)}}function Ac(e,n,t){return n=t?a:n,n=e&&null==n?e.length:n,Li(e,C,a,a,a,a,n)}function Lc(e,n){var t;if("function"!=typeof n)throw new an(c);return e=$l(e),function(){return--e>0&&(t=n.apply(this,arguments)),e<=1&&(n=a),t}}var Oc=xa((function(e,n,t){var r=b;if(t.length){var o=fr(t,Fi(Oc));r|=P}return Li(e,r,n,t,o)})),zc=xa((function(e,n,t){var r=b|w;if(t.length){var o=fr(t,Fi(zc));r|=P}return Li(n,r,e,t,o)}));function jc(e,n,t){n=t?a:n;var r=Li(e,_,a,a,a,a,a,n);return r.placeholder=jc.placeholder,r}function Dc(e,n,t){n=t?a:n;var r=Li(e,k,a,a,a,a,a,n);return r.placeholder=Dc.placeholder,r}function Ec(e,n,t){var r,o,i,s,u,l,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new an(c);function g(n){var t=r,i=o;return r=o=a,f=n,s=e.apply(i,t),s}function y(e){return f=e,u=Ss(b,n),d?g(e):s}function v(e){var t=e-l,r=e-f,o=n-t;return p?Kn(o,i-r):o}function m(e){var t=e-l,r=e-f;return l===a||t>=n||t<0||p&&r>=i}function b(){var e=Bc();if(m(e))return w(e);u=Ss(b,v(e))}function w(e){return u=a,h&&r?g(e):(r=o=a,s)}function x(){u!==a&&Ya(u),f=0,r=l=o=u=a}function _(){return u===a?s:w(Bc())}function k(){var e=Bc(),t=m(e);if(r=arguments,o=this,l=e,t){if(u===a)return y(l);if(p)return Ya(u),u=Ss(b,n),g(l)}return u===a&&(u=Ss(b,n)),s}return n=Zl(n)||0,Pl(t)&&(d=!!t.leading,p="maxWait"in t,i=p?Un(Zl(t.maxWait)||0,n):i,h="trailing"in t?!!t.trailing:h),k.cancel=x,k.flush=_,k}var Gc=xa((function(e,n){return xo(e,1,n)})),Tc=xa((function(e,n,t){return xo(e,Zl(n)||0,t)}));function Ic(e){return Li(e,B)}function Nc(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new an(c);var t=function(){var r=arguments,o=n?n.apply(this,r):r[0],a=t.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return t.cache=a.set(o,i)||a,i};return t.cache=new(Nc.Cache||Fr),t}function Uc(e){if("function"!=typeof e)throw new an(c);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function Kc(e){return Lc(2,e)}Nc.Cache=Fr;var Fc=Ha((function(e,n){n=1==n.length&&ul(n[0])?Bt(n[0],Zt(Wi())):Bt(Ro(n,1),Zt(Wi()));var t=n.length;return xa((function(r){var o=-1,a=Kn(r.length,t);while(++o<a)r[o]=n[o].call(this,r[o]);return wt(e,this,r)}))})),Wc=xa((function(e,n){var t=fr(n,Fi(Wc));return Li(e,P,a,n,t)})),Hc=xa((function(e,n){var t=fr(n,Fi(Hc));return Li(e,S,a,n,t)})),Vc=Ti((function(e,n){return Li(e,M,a,a,a,n)}));function Yc(e,n){if("function"!=typeof e)throw new an(c);return n=n===a?n:$l(n),xa(e,n)}function $c(e,n){if("function"!=typeof e)throw new an(c);return n=null==n?0:Un($l(n),0),xa((function(t){var r=t[n],o=Va(t,0,n);return r&&Rt(o,r),wt(e,this,o)}))}function qc(e,n,t){var r=!0,o=!0;if("function"!=typeof e)throw new an(c);return Pl(t)&&(r="leading"in t?!!t.leading:r,o="trailing"in t?!!t.trailing:o),Ec(e,n,{leading:r,maxWait:n,trailing:o})}function Zc(e){return Ac(e,1)}function Jc(e,n){return Wc(Fa(n),e)}function Xc(){if(!arguments.length)return[];var e=arguments[0];return ul(e)?e:[e]}function Qc(e){return mo(e,y)}function el(e,n){return n="function"==typeof n?n:a,mo(e,y,n)}function nl(e){return mo(e,h|y)}function tl(e,n){return n="function"==typeof n?n:a,mo(e,h|y,n)}function rl(e,n){return null==n||wo(e,n,kf(n))}function ol(e,n){return e===n||e!==e&&n!==n}var al=Ci(To),il=Ci((function(e,n){return e>=n})),sl=Ho(function(){return arguments}())?Ho:function(e){return Sl(e)&&dn.call(e,"callee")&&!Sn.call(e,"callee")},ul=t.isArray,cl=ht?Zt(ht):Vo;function ll(e){return null!=e&&kl(e.length)&&!xl(e)}function fl(e){return Sl(e)&&ll(e)}function dl(e){return!0===e||!1===e||Sl(e)&&Go(e)==Y}var pl=Gn||qd,hl=gt?Zt(gt):Yo;function gl(e){return Sl(e)&&1===e.nodeType&&!jl(e)}function yl(e){if(null==e)return!0;if(ll(e)&&(ul(e)||"string"==typeof e||"function"==typeof e.splice||pl(e)||Nl(e)||sl(e)))return!e.length;var n=Ji(e);if(n==Q||n==ie)return!e.size;if(ps(e))return!ra(e).length;for(var t in e)if(dn.call(e,t))return!1;return!0}function vl(e,n){return $o(e,n)}function ml(e,n,t){t="function"==typeof t?t:a;var r=t?t(e,n):a;return r===a?$o(e,n,a,t):!!r}function bl(e){if(!Sl(e))return!1;var n=Go(e);return n==Z||n==q||"string"==typeof e.message&&"string"==typeof e.name&&!jl(e)}function wl(e){return"number"==typeof e&&Tn(e)}function xl(e){if(!Pl(e))return!1;var n=Go(e);return n==J||n==X||n==V||n==oe}function _l(e){return"number"==typeof e&&e==$l(e)}function kl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=G}function Pl(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function Sl(e){return null!=e&&"object"==typeof e}var Cl=yt?Zt(yt):Zo;function Ml(e,n){return e===n||Jo(e,n,Vi(n))}function Bl(e,n,t){return t="function"==typeof t?t:a,Jo(e,n,Vi(n),t)}function Rl(e){return zl(e)&&e!=+e}function Al(e){if(ds(e))throw new o(u);return Xo(e)}function Ll(e){return null===e}function Ol(e){return null==e}function zl(e){return"number"==typeof e||Sl(e)&&Go(e)==ee}function jl(e){if(!Sl(e)||Go(e)!=te)return!1;var n=kn(e);if(null===n)return!0;var t=dn.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t instanceof t&&fn.call(t)==yn}var Dl=vt?Zt(vt):Qo;function El(e){return _l(e)&&e>=-G&&e<=G}var Gl=mt?Zt(mt):ea;function Tl(e){return"string"==typeof e||!ul(e)&&Sl(e)&&Go(e)==se}function Il(e){return"symbol"==typeof e||Sl(e)&&Go(e)==ue}var Nl=bt?Zt(bt):na;function Ul(e){return e===a}function Kl(e){return Sl(e)&&Ji(e)==le}function Fl(e){return Sl(e)&&Go(e)==fe}var Wl=Ci(aa),Hl=Ci((function(e,n){return e<=n}));function Vl(e){if(!e)return[];if(ll(e))return Tl(e)?vr(e):oi(e);if(Bn&&e[Bn])return ur(e[Bn]());var n=Ji(e),t=n==Q?cr:n==ie?dr:Kf;return t(e)}function Yl(e){if(!e)return 0===e?e:0;if(e=Zl(e),e===E||e===-E){var n=e<0?-1:1;return n*T}return e===e?e:0}function $l(e){var n=Yl(e),t=n%1;return n===n?t?n-t:n:0}function ql(e){return e?vo($l(e),0,N):0}function Zl(e){if("number"==typeof e)return e;if(Il(e))return I;if(Pl(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=Pl(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=qt(e);var t=qe.test(e);return t||Je.test(e)?at(e.slice(2),t?2:8):$e.test(e)?I:+e}function Jl(e){return ai(e,Pf(e))}function Xl(e){return e?vo($l(e),-G,G):0===e?e:0}function Ql(e){return null==e?"":ja(e)}var ef=ci((function(e,n){if(ps(n)||ll(n))ai(n,kf(n),e);else for(var t in n)dn.call(n,t)&&co(e,t,n[t])})),nf=ci((function(e,n){ai(n,Pf(n),e)})),tf=ci((function(e,n,t,r){ai(n,Pf(n),e,r)})),rf=ci((function(e,n,t,r){ai(n,kf(n),e,r)})),of=Ti(yo);function af(e,n){var t=kr(e);return null==n?t:po(t,n)}var sf=xa((function(e,n){e=tn(e);var t=-1,r=n.length,o=r>2?n[2]:a;o&&ss(n[0],n[1],o)&&(r=1);while(++t<r){var i=n[t],s=Pf(i),u=-1,c=s.length;while(++u<c){var l=s[u],f=e[l];(f===a||ol(f,cn[l])&&!dn.call(e,l))&&(e[l]=i[l])}}return e})),uf=xa((function(e){return e.push(a,zi),wt(Bf,a,e)}));function cf(e,n){return Et(e,Wi(n,3),Oo)}function lf(e,n){return Et(e,Wi(n,3),zo)}function ff(e,n){return null==e?e:Ao(e,Wi(n,3),Pf)}function df(e,n){return null==e?e:Lo(e,Wi(n,3),Pf)}function pf(e,n){return e&&Oo(e,Wi(n,3))}function hf(e,n){return e&&zo(e,Wi(n,3))}function gf(e){return null==e?[]:jo(e,kf(e))}function yf(e){return null==e?[]:jo(e,Pf(e))}function vf(e,n,t){var r=null==e?a:Do(e,n);return r===a?t:r}function mf(e,n){return null!=e&&es(e,n,Io)}function bf(e,n){return null!=e&&es(e,n,No)}var wf=wi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=gn.call(n)),e[n]=t}),Md(Ld)),xf=wi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=gn.call(n)),dn.call(e,n)?e[n].push(t):e[n]=[t]}),Wi),_f=xa(Wo);function kf(e){return ll(e)?oo(e):ra(e)}function Pf(e){return ll(e)?oo(e,!0):oa(e)}function Sf(e,n){var t={};return n=Wi(n,3),Oo(e,(function(e,r,o){go(t,n(e,r,o),e)})),t}function Cf(e,n){var t={};return n=Wi(n,3),Oo(e,(function(e,r,o){go(t,r,n(e,r,o))})),t}var Mf=ci((function(e,n,t){ca(e,n,t)})),Bf=ci((function(e,n,t,r){ca(e,n,t,r)})),Rf=Ti((function(e,n){var t={};if(null==e)return t;var r=!1;n=Bt(n,(function(n){return n=Wa(n,e),r||(r=n.length>1),n})),ai(e,Ni(e),t),r&&(t=mo(t,h|g|y,ji));var o=n.length;while(o--)Ea(t,n[o]);return t}));function Af(e,n){return Of(e,Uc(Wi(n)))}var Lf=Ti((function(e,n){return null==e?{}:pa(e,n)}));function Of(e,n){if(null==e)return{};var t=Bt(Ni(e),(function(e){return[e]}));return n=Wi(n),ha(e,t,(function(e,t){return n(e,t[0])}))}function zf(e,n,t){n=Wa(n,e);var r=-1,o=n.length;o||(o=1,e=a);while(++r<o){var i=null==e?a:e[Ls(n[r])];i===a&&(r=o,i=t),e=xl(i)?i.call(e):i}return e}function jf(e,n,t){return null==e?e:Pa(e,n,t)}function Df(e,n,t,r){return r="function"==typeof r?r:a,null==e?e:Pa(e,n,t,r)}var Ef=Ai(kf),Gf=Ai(Pf);function Tf(e,n,t){var r=ul(e),o=r||pl(e)||Nl(e);if(n=Wi(n,4),null==t){var a=e&&e.constructor;t=o?r?new a:[]:Pl(e)&&xl(a)?kr(kn(e)):{}}return(o?_t:Oo)(e,(function(e,r,o){return n(t,e,r,o)})),t}function If(e,n){return null==e||Ea(e,n)}function Nf(e,n,t){return null==e?e:Ga(e,n,Fa(t))}function Uf(e,n,t,r){return r="function"==typeof r?r:a,null==e?e:Ga(e,n,Fa(t),r)}function Kf(e){return null==e?[]:Jt(e,kf(e))}function Ff(e){return null==e?[]:Jt(e,Pf(e))}function Wf(e,n,t){return t===a&&(t=n,n=a),t!==a&&(t=Zl(t),t=t===t?t:0),n!==a&&(n=Zl(n),n=n===n?n:0),vo(Zl(e),n,t)}function Hf(e,n,t){return n=Yl(n),t===a?(t=n,n=0):t=Yl(t),e=Zl(e),Uo(e,n,t)}function Vf(e,n,t){if(t&&"boolean"!=typeof t&&ss(e,n,t)&&(n=t=a),t===a&&("boolean"==typeof n?(t=n,n=a):"boolean"==typeof e&&(t=e,e=a)),e===a&&n===a?(e=0,n=1):(e=Yl(e),n===a?(n=e,e=0):n=Yl(n)),e>n){var r=e;e=n,n=r}if(t||e%1||n%1){var o=Yn();return Kn(e+o*(n-e+ot("1e-"+((o+"").length-1))),n)}return ma(e,n)}var Yf=hi((function(e,n,t){return n=n.toLowerCase(),e+(t?$f(n):n)}));function $f(e){return xd(Ql(e).toLowerCase())}function qf(e){return e=Ql(e),e&&e.replace(Qe,tr).replace(Hn,"")}function Zf(e,n,t){e=Ql(e),n=ja(n);var r=e.length;t=t===a?r:vo($l(t),0,r);var o=t;return t-=n.length,t>=0&&e.slice(t,o)==n}function Jf(e){return e=Ql(e),e&&Re.test(e)?e.replace(Me,rr):e}function Xf(e){return e=Ql(e),e&&Ge.test(e)?e.replace(Ee,"\\$&"):e}var Qf=hi((function(e,n,t){return e+(t?"-":"")+n.toLowerCase()})),ed=hi((function(e,n,t){return e+(t?" ":"")+n.toLowerCase()})),nd=pi("toLowerCase");function td(e,n,t){e=Ql(e),n=$l(n);var r=n?yr(e):0;if(!n||r>=n)return e;var o=(n-r)/2;return ki(Dn(o),t)+e+ki(jn(o),t)}function rd(e,n,t){e=Ql(e),n=$l(n);var r=n?yr(e):0;return n&&r<n?e+ki(n-r,t):e}function od(e,n,t){e=Ql(e),n=$l(n);var r=n?yr(e):0;return n&&r<n?ki(n-r,t)+e:e}function ad(e,n,t){return t||null==n?n=0:n&&(n=+n),Vn(Ql(e).replace(Te,""),n||0)}function id(e,n,t){return n=(t?ss(e,n,t):n===a)?1:$l(n),wa(Ql(e),n)}function sd(){var e=arguments,n=Ql(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var ud=hi((function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}));function cd(e,n,t){return t&&"number"!=typeof t&&ss(e,n,t)&&(n=t=a),t=t===a?N:t>>>0,t?(e=Ql(e),e&&("string"==typeof n||null!=n&&!Dl(n))&&(n=ja(n),!n&&ir(e))?Va(vr(e),0,t):e.split(n,t)):[]}var ld=hi((function(e,n,t){return e+(t?" ":"")+xd(n)}));function fd(e,n,t){return e=Ql(e),t=null==t?0:vo($l(t),0,e.length),n=ja(n),e.slice(t,t+n.length)==n}function dd(e,n,t){var r=xr.templateSettings;t&&ss(e,n,t)&&(n=a),e=Ql(e),n=tf({},n,r,Oi);var i,s,u=tf({},n.imports,r.imports,Oi),c=kf(u),f=Jt(u,c),d=0,p=n.interpolate||en,h="__p += '",g=rn((n.escape||en).source+"|"+p.source+"|"+(p===Oe?Ve:en).source+"|"+(n.evaluate||en).source+"|$","g"),y="//# sourceURL="+(dn.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jn+"]")+"\n";e.replace(g,(function(n,t,r,o,a,u){return r||(r=o),h+=e.slice(d,u).replace(nn,or),t&&(i=!0,h+="' +\n__e("+t+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=u+n.length,n})),h+="';\n";var v=dn.call(n,"variable")&&n.variable;if(v){if(We.test(v))throw new o(l)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(ke,""):h).replace(Pe,"$1").replace(Se,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=kd((function(){return Ie(c,y+"return "+h).apply(a,f)}));if(m.source=h,bl(m))throw m;return m}function pd(e){return Ql(e).toLowerCase()}function hd(e){return Ql(e).toUpperCase()}function gd(e,n,t){if(e=Ql(e),e&&(t||n===a))return qt(e);if(!e||!(n=ja(n)))return e;var r=vr(e),o=vr(n),i=Qt(r,o),s=er(r,o)+1;return Va(r,i,s).join("")}function yd(e,n,t){if(e=Ql(e),e&&(t||n===a))return e.slice(0,mr(e)+1);if(!e||!(n=ja(n)))return e;var r=vr(e),o=er(r,vr(n))+1;return Va(r,0,o).join("")}function vd(e,n,t){if(e=Ql(e),e&&(t||n===a))return e.replace(Te,"");if(!e||!(n=ja(n)))return e;var r=vr(e),o=Qt(r,vr(n));return Va(r,o).join("")}function md(e,n){var t=R,r=A;if(Pl(n)){var o="separator"in n?n.separator:o;t="length"in n?$l(n.length):t,r="omission"in n?ja(n.omission):r}e=Ql(e);var i=e.length;if(ir(e)){var s=vr(e);i=s.length}if(t>=i)return e;var u=t-yr(r);if(u<1)return r;var c=s?Va(s,0,u).join(""):e.slice(0,u);if(o===a)return c+r;if(s&&(u+=c.length-u),Dl(o)){if(e.slice(u).search(o)){var l,f=c;o.global||(o=rn(o.source,Ql(Ye.exec(o))+"g")),o.lastIndex=0;while(l=o.exec(f))var d=l.index;c=c.slice(0,d===a?u:d)}}else if(e.indexOf(ja(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r}function bd(e){return e=Ql(e),e&&Be.test(e)?e.replace(Ce,br):e}var wd=hi((function(e,n,t){return e+(t?" ":"")+n.toUpperCase()})),xd=pi("toUpperCase");function _d(e,n,t){return e=Ql(e),n=t?a:n,n===a?sr(e)?_r(e):Dt(e):e.match(n)||[]}var kd=xa((function(e,n){try{return wt(e,a,n)}catch(t){return bl(t)?t:new o(t)}})),Pd=Ti((function(e,n){return _t(n,(function(n){n=Ls(n),go(e,n,Oc(e[n],e))})),e}));function Sd(e){var n=null==e?0:e.length,t=Wi();return e=n?Bt(e,(function(e){if("function"!=typeof e[1])throw new an(c);return[t(e[0]),e[1]]})):[],xa((function(t){var r=-1;while(++r<n){var o=e[r];if(wt(o[0],this,t))return wt(o[1],this,t)}}))}function Cd(e){return bo(mo(e,h))}function Md(e){return function(){return e}}function Bd(e,n){return null==e||e!==e?n:e}var Rd=mi(),Ad=mi(!0);function Ld(e){return e}function Od(e){return ta("function"==typeof e?e:mo(e,h))}function zd(e){return sa(mo(e,h))}function jd(e,n){return ua(e,mo(n,h))}var Dd=xa((function(e,n){return function(t){return Wo(t,e,n)}})),Ed=xa((function(e,n){return function(t){return Wo(e,t,n)}}));function Gd(e,n,t){var r=kf(n),o=jo(n,r);null!=t||Pl(n)&&(o.length||!r.length)||(t=n,n=e,e=this,o=jo(n,kf(n)));var a=!(Pl(t)&&"chain"in t)||!!t.chain,i=xl(e);return _t(o,(function(t){var r=n[t];e[t]=r,i&&(e.prototype[t]=function(){var n=this.__chain__;if(a||n){var t=e(this.__wrapped__),o=t.__actions__=oi(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),t.__chain__=n,t}return r.apply(e,Rt([this.value()],arguments))})})),e}function Td(){return ut._===this&&(ut._=vn),this}function Id(){}function Nd(e){return e=$l(e),xa((function(n){return fa(n,e)}))}var Ud=_i(Bt),Kd=_i(Pt),Fd=_i(Ot);function Wd(e){return us(e)?Kt(Ls(e)):ga(e)}function Hd(e){return function(n){return null==e?a:Do(e,n)}}var Vd=Si(),Yd=Si(!0);function $d(){return[]}function qd(){return!1}function Zd(){return{}}function Jd(){return""}function Xd(){return!0}function Qd(e,n){if(e=$l(e),e<1||e>G)return[];var t=N,r=Kn(e,N);n=Wi(n),e-=N;var o=Yt(r,n);while(++t<e)n(t);return o}function ep(e){return ul(e)?Bt(e,Ls):Il(e)?[e]:oi(As(Ql(e)))}function np(e){var n=++pn;return Ql(e)+n}var tp=xi((function(e,n){return e+n}),0),rp=Bi("ceil"),op=xi((function(e,n){return e/n}),1),ap=Bi("floor");function ip(e){return e&&e.length?Co(e,Ld,To):a}function sp(e,n){return e&&e.length?Co(e,Wi(n,2),To):a}function up(e){return Ut(e,Ld)}function cp(e,n){return Ut(e,Wi(n,2))}function lp(e){return e&&e.length?Co(e,Ld,aa):a}function fp(e,n){return e&&e.length?Co(e,Wi(n,2),aa):a}var dp=xi((function(e,n){return e*n}),1),pp=Bi("round"),hp=xi((function(e,n){return e-n}),0);function gp(e){return e&&e.length?Vt(e,Ld):0}function yp(e,n){return e&&e.length?Vt(e,Wi(n,2)):0}return xr.after=Rc,xr.ary=Ac,xr.assign=ef,xr.assignIn=nf,xr.assignInWith=tf,xr.assignWith=rf,xr.at=of,xr.before=Lc,xr.bind=Oc,xr.bindAll=Pd,xr.bindKey=zc,xr.castArray=Xc,xr.chain=Hu,xr.chunk=Ds,xr.compact=Es,xr.concat=Gs,xr.cond=Sd,xr.conforms=Cd,xr.constant=Md,xr.countBy=tc,xr.create=af,xr.curry=jc,xr.curryRight=Dc,xr.debounce=Ec,xr.defaults=sf,xr.defaultsDeep=uf,xr.defer=Gc,xr.delay=Tc,xr.difference=Ts,xr.differenceBy=Is,xr.differenceWith=Ns,xr.drop=Us,xr.dropRight=Ks,xr.dropRightWhile=Fs,xr.dropWhile=Ws,xr.fill=Hs,xr.filter=oc,xr.flatMap=sc,xr.flatMapDeep=uc,xr.flatMapDepth=cc,xr.flatten=$s,xr.flattenDeep=qs,xr.flattenDepth=Zs,xr.flip=Ic,xr.flow=Rd,xr.flowRight=Ad,xr.fromPairs=Js,xr.functions=gf,xr.functionsIn=yf,xr.groupBy=dc,xr.initial=eu,xr.intersection=nu,xr.intersectionBy=tu,xr.intersectionWith=ru,xr.invert=wf,xr.invertBy=xf,xr.invokeMap=hc,xr.iteratee=Od,xr.keyBy=gc,xr.keys=kf,xr.keysIn=Pf,xr.map=yc,xr.mapKeys=Sf,xr.mapValues=Cf,xr.matches=zd,xr.matchesProperty=jd,xr.memoize=Nc,xr.merge=Mf,xr.mergeWith=Bf,xr.method=Dd,xr.methodOf=Ed,xr.mixin=Gd,xr.negate=Uc,xr.nthArg=Nd,xr.omit=Rf,xr.omitBy=Af,xr.once=Kc,xr.orderBy=vc,xr.over=Ud,xr.overArgs=Fc,xr.overEvery=Kd,xr.overSome=Fd,xr.partial=Wc,xr.partialRight=Hc,xr.partition=mc,xr.pick=Lf,xr.pickBy=Of,xr.property=Wd,xr.propertyOf=Hd,xr.pull=uu,xr.pullAll=cu,xr.pullAllBy=lu,xr.pullAllWith=fu,xr.pullAt=du,xr.range=Vd,xr.rangeRight=Yd,xr.rearg=Vc,xr.reject=xc,xr.remove=pu,xr.rest=Yc,xr.reverse=hu,xr.sampleSize=kc,xr.set=jf,xr.setWith=Df,xr.shuffle=Pc,xr.slice=gu,xr.sortBy=Mc,xr.sortedUniq=_u,xr.sortedUniqBy=ku,xr.split=cd,xr.spread=$c,xr.tail=Pu,xr.take=Su,xr.takeRight=Cu,xr.takeRightWhile=Mu,xr.takeWhile=Bu,xr.tap=Vu,xr.throttle=qc,xr.thru=Yu,xr.toArray=Vl,xr.toPairs=Ef,xr.toPairsIn=Gf,xr.toPath=ep,xr.toPlainObject=Jl,xr.transform=Tf,xr.unary=Zc,xr.union=Ru,xr.unionBy=Au,xr.unionWith=Lu,xr.uniq=Ou,xr.uniqBy=zu,xr.uniqWith=ju,xr.unset=If,xr.unzip=Du,xr.unzipWith=Eu,xr.update=Nf,xr.updateWith=Uf,xr.values=Kf,xr.valuesIn=Ff,xr.without=Gu,xr.words=_d,xr.wrap=Jc,xr.xor=Tu,xr.xorBy=Iu,xr.xorWith=Nu,xr.zip=Uu,xr.zipObject=Ku,xr.zipObjectDeep=Fu,xr.zipWith=Wu,xr.entries=Ef,xr.entriesIn=Gf,xr.extend=nf,xr.extendWith=tf,Gd(xr,xr),xr.add=tp,xr.attempt=kd,xr.camelCase=Yf,xr.capitalize=$f,xr.ceil=rp,xr.clamp=Wf,xr.clone=Qc,xr.cloneDeep=nl,xr.cloneDeepWith=tl,xr.cloneWith=el,xr.conformsTo=rl,xr.deburr=qf,xr.defaultTo=Bd,xr.divide=op,xr.endsWith=Zf,xr.eq=ol,xr.escape=Jf,xr.escapeRegExp=Xf,xr.every=rc,xr.find=ac,xr.findIndex=Vs,xr.findKey=cf,xr.findLast=ic,xr.findLastIndex=Ys,xr.findLastKey=lf,xr.floor=ap,xr.forEach=lc,xr.forEachRight=fc,xr.forIn=ff,xr.forInRight=df,xr.forOwn=pf,xr.forOwnRight=hf,xr.get=vf,xr.gt=al,xr.gte=il,xr.has=mf,xr.hasIn=bf,xr.head=Xs,xr.identity=Ld,xr.includes=pc,xr.indexOf=Qs,xr.inRange=Hf,xr.invoke=_f,xr.isArguments=sl,xr.isArray=ul,xr.isArrayBuffer=cl,xr.isArrayLike=ll,xr.isArrayLikeObject=fl,xr.isBoolean=dl,xr.isBuffer=pl,xr.isDate=hl,xr.isElement=gl,xr.isEmpty=yl,xr.isEqual=vl,xr.isEqualWith=ml,xr.isError=bl,xr.isFinite=wl,xr.isFunction=xl,xr.isInteger=_l,xr.isLength=kl,xr.isMap=Cl,xr.isMatch=Ml,xr.isMatchWith=Bl,xr.isNaN=Rl,xr.isNative=Al,xr.isNil=Ol,xr.isNull=Ll,xr.isNumber=zl,xr.isObject=Pl,xr.isObjectLike=Sl,xr.isPlainObject=jl,xr.isRegExp=Dl,xr.isSafeInteger=El,xr.isSet=Gl,xr.isString=Tl,xr.isSymbol=Il,xr.isTypedArray=Nl,xr.isUndefined=Ul,xr.isWeakMap=Kl,xr.isWeakSet=Fl,xr.join=ou,xr.kebabCase=Qf,xr.last=au,xr.lastIndexOf=iu,xr.lowerCase=ed,xr.lowerFirst=nd,xr.lt=Wl,xr.lte=Hl,xr.max=ip,xr.maxBy=sp,xr.mean=up,xr.meanBy=cp,xr.min=lp,xr.minBy=fp,xr.stubArray=$d,xr.stubFalse=qd,xr.stubObject=Zd,xr.stubString=Jd,xr.stubTrue=Xd,xr.multiply=dp,xr.nth=su,xr.noConflict=Td,xr.noop=Id,xr.now=Bc,xr.pad=td,xr.padEnd=rd,xr.padStart=od,xr.parseInt=ad,xr.random=Vf,xr.reduce=bc,xr.reduceRight=wc,xr.repeat=id,xr.replace=sd,xr.result=zf,xr.round=pp,xr.runInContext=e,xr.sample=_c,xr.size=Sc,xr.snakeCase=ud,xr.some=Cc,xr.sortedIndex=yu,xr.sortedIndexBy=vu,xr.sortedIndexOf=mu,xr.sortedLastIndex=bu,xr.sortedLastIndexBy=wu,xr.sortedLastIndexOf=xu,xr.startCase=ld,xr.startsWith=fd,xr.subtract=hp,xr.sum=gp,xr.sumBy=yp,xr.template=dd,xr.times=Qd,xr.toFinite=Yl,xr.toInteger=$l,xr.toLength=ql,xr.toLower=pd,xr.toNumber=Zl,xr.toSafeInteger=Xl,xr.toString=Ql,xr.toUpper=hd,xr.trim=gd,xr.trimEnd=yd,xr.trimStart=vd,xr.truncate=md,xr.unescape=bd,xr.uniqueId=np,xr.upperCase=wd,xr.upperFirst=xd,xr.each=lc,xr.eachRight=fc,xr.first=Xs,Gd(xr,function(){var e={};return Oo(xr,(function(n,t){dn.call(xr.prototype,t)||(e[t]=n)})),e}(),{chain:!1}),xr.VERSION=i,_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){xr[e].placeholder=xr})),_t(["drop","take"],(function(e,n){Mr.prototype[e]=function(t){t=t===a?1:Un($l(t),0);var r=this.__filtered__&&!n?new Mr(this):this.clone();return r.__filtered__?r.__takeCount__=Kn(t,r.__takeCount__):r.__views__.push({size:Kn(t,N),type:e+(r.__dir__<0?"Right":"")}),r},Mr.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}})),_t(["filter","map","takeWhile"],(function(e,n){var t=n+1,r=t==z||t==D;Mr.prototype[e]=function(e){var n=this.clone();return n.__iteratees__.push({iteratee:Wi(e,3),type:t}),n.__filtered__=n.__filtered__||r,n}})),_t(["head","last"],(function(e,n){var t="take"+(n?"Right":"");Mr.prototype[e]=function(){return this[t](1).value()[0]}})),_t(["initial","tail"],(function(e,n){var t="drop"+(n?"":"Right");Mr.prototype[e]=function(){return this.__filtered__?new Mr(this):this[t](1)}})),Mr.prototype.compact=function(){return this.filter(Ld)},Mr.prototype.find=function(e){return this.filter(e).head()},Mr.prototype.findLast=function(e){return this.reverse().find(e)},Mr.prototype.invokeMap=xa((function(e,n){return"function"==typeof e?new Mr(this):this.map((function(t){return Wo(t,e,n)}))})),Mr.prototype.reject=function(e){return this.filter(Uc(Wi(e)))},Mr.prototype.slice=function(e,n){e=$l(e);var t=this;return t.__filtered__&&(e>0||n<0)?new Mr(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==a&&(n=$l(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},Mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Mr.prototype.toArray=function(){return this.take(N)},Oo(Mr.prototype,(function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=xr[r?"take"+("last"==n?"Right":""):n],i=r||/^find/.test(n);o&&(xr.prototype[n]=function(){var n=this.__wrapped__,s=r?[1]:arguments,u=n instanceof Mr,c=s[0],l=u||ul(n),f=function(e){var n=o.apply(xr,Rt([e],s));return r&&d?n[0]:n};l&&t&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=i&&!d,g=u&&!p;if(!i&&l){n=g?n:new Mr(this);var y=e.apply(n,s);return y.__actions__.push({func:Yu,args:[f],thisArg:a}),new Cr(y,d)}return h&&g?e.apply(this,s):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var n=sn[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);xr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return n.apply(ul(o)?o:[],e)}return this[t]((function(t){return n.apply(ul(t)?t:[],e)}))}})),Oo(Mr.prototype,(function(e,n){var t=xr[n];if(t){var r=t.name+"";dn.call(ct,r)||(ct[r]=[]),ct[r].push({name:n,func:t})}})),ct[bi(a,w).name]=[{name:"wrapper",func:a}],Mr.prototype.clone=Br,Mr.prototype.reverse=Rr,Mr.prototype.value=Ar,xr.prototype.at=$u,xr.prototype.chain=qu,xr.prototype.commit=Zu,xr.prototype.next=Ju,xr.prototype.plant=Qu,xr.prototype.reverse=ec,xr.prototype.toJSON=xr.prototype.valueOf=xr.prototype.value=nc,xr.prototype.first=xr.prototype.head,Bn&&(xr.prototype[Bn]=Xu),xr},Pr=kr();ut._=Pr,o=function(){return Pr}.call(n,t,n,r),o===a||(r.exports=o)}).call(this)}).call(this,t("d8fc"),t("e55b")(e))},"0be7":function(e,n,t){e.exports=t.p+"media/notification.ac905963.mp3"},"0c1b":function(e,n,t){var r=t("7f82"),o=t("d22c"),a=t("d684");r({target:"Array",proto:!0},{fill:o}),a("fill")},"0ff2":function(e,n,t){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);n.f=a?function(e){var n=o(this,e);return!!n&&n.enumerable}:r},1061:function(e,n){e.exports={}},"11ac":function(e,n,t){"use strict";t("e710")},"129e":function(e,n,t){var r=t("f246"),o={}.hasOwnProperty;e.exports=function(e,n){return o.call(r(e),n)}},"12aa":function(e,n,t){var r=t("b42f"),o=Math.max,a=Math.min;e.exports=function(e,n){var t=r(e);return t<0?o(t+n,0):a(t,n)}},"16b4":function(e,n,t){"use strict";var r,o="object"===typeof Reflect?Reflect:null,a=o&&"function"===typeof o.apply?o.apply:function(e,n,t){return Function.prototype.apply.call(e,n,t)};function i(e){console&&console.warn&&console.warn(e)}r=o&&"function"===typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function u(){u.init.call(this)}e.exports=u,e.exports.once=w,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function d(e,n,t,r){var o,a,s;if(l(t),a=e._events,void 0===a?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",n,t.listener?t.listener:t),a=e._events),s=a[n]),void 0===s)s=a[n]=t,++e._eventsCount;else if("function"===typeof s?s=a[n]=r?[t,s]:[s,t]:r?s.unshift(t):s.push(t),o=f(e),o>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=n,u.count=s.length,i(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,n,t){var r={fired:!1,wrapFn:void 0,target:e,type:n,listener:t},o=p.bind(r);return o.listener=t,r.wrapFn=o,o}function g(e,n,t){var r=e._events;if(void 0===r)return[];var o=r[n];return void 0===o?[]:"function"===typeof o?t?[o.listener||o]:[o]:t?b(o):v(o,o.length)}function y(e){var n=this._events;if(void 0!==n){var t=n[e];if("function"===typeof t)return 1;if(void 0!==t)return t.length}return 0}function v(e,n){for(var t=new Array(n),r=0;r<n;++r)t[r]=e[r];return t}function m(e,n){for(;n+1<e.length;n++)e[n]=e[n+1];e.pop()}function b(e){for(var n=new Array(e.length),t=0;t<n.length;++t)n[t]=e[t].listener||e[t];return n}function w(e,n){return new Promise((function(t,r){function o(t){e.removeListener(n,a),r(t)}function a(){"function"===typeof e.removeListener&&e.removeListener("error",o),t([].slice.call(arguments))}_(e,n,a,{once:!0}),"error"!==n&&x(e,o,{once:!0})}))}function x(e,n,t){"function"===typeof e.on&&_(e,"error",n,t)}function _(e,n,t,r){if("function"===typeof e.on)r.once?e.once(n,t):e.on(n,t);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(n,(function o(a){r.once&&e.removeEventListener(n,o),t(a)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(e){for(var n=[],t=1;t<arguments.length;t++)n.push(arguments[t]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(n.length>0&&(i=n[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var u=o[e];if(void 0===u)return!1;if("function"===typeof u)a(u,this,n);else{var c=u.length,l=v(u,c);for(t=0;t<c;++t)a(l[t],this,n)}return!0},u.prototype.addListener=function(e,n){return d(this,e,n,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,n){return d(this,e,n,!0)},u.prototype.once=function(e,n){return l(n),this.on(e,h(this,e,n)),this},u.prototype.prependOnceListener=function(e,n){return l(n),this.prependListener(e,h(this,e,n)),this},u.prototype.removeListener=function(e,n){var t,r,o,a,i;if(l(n),r=this._events,void 0===r)return this;if(t=r[e],void 0===t)return this;if(t===n||t.listener===n)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,t.listener||n));else if("function"!==typeof t){for(o=-1,a=t.length-1;a>=0;a--)if(t[a]===n||t[a].listener===n){i=t[a].listener,o=a;break}if(o<0)return this;0===o?t.shift():m(t,o),1===t.length&&(r[e]=t[0]),void 0!==r.removeListener&&this.emit("removeListener",e,i||n)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var n,t,r;if(t=this._events,void 0===t)return this;if(void 0===t.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==t[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete t[e]),this;if(0===arguments.length){var o,a=Object.keys(t);for(r=0;r<a.length;++r)o=a[r],"removeListener"!==o&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=t[e],"function"===typeof n)this.removeListener(e,n);else if(void 0!==n)for(r=n.length-1;r>=0;r--)this.removeListener(e,n[r]);return this},u.prototype.listeners=function(e){return g(this,e,!0)},u.prototype.rawListeners=function(e){return g(this,e,!1)},u.listenerCount=function(e,n){return"function"===typeof e.listenerCount?e.listenerCount(n):y.call(e,n)},u.prototype.listenerCount=y,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},"17ba":function(e,n,t){"use strict";var r=t("7f82"),o=t("ac27"),a=t("9ebe"),i=t("8dac"),s=t("f246"),u=t("43b7"),c=t("cba7"),l=t("cbe1"),f=t("2fb6"),d=t("fd86"),p=t("b168"),h=d("isConcatSpreadable"),g=9007199254740991,y="Maximum allowed index exceeded",v=p>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),m=f("concat"),b=function(e){if(!i(e))return!1;var n=e[h];return void 0!==n?!!n:a(e)},w=!v||!m;r({target:"Array",proto:!0,forced:w},{concat:function(e){var n,t,r,o,a,i=s(this),f=l(i,0),d=0;for(n=-1,r=arguments.length;n<r;n++)if(a=-1===n?i:arguments[n],b(a)){if(o=u(a.length),d+o>g)throw TypeError(y);for(t=0;t<o;t++,d++)t in a&&c(f,d,a[t])}else{if(d>=g)throw TypeError(y);c(f,d++,a)}return f.length=d,f}})},"191b":function(e,n){e.exports=function(e,n,t){if(!(e instanceof n))throw TypeError("Incorrect "+(t?t+" ":"")+"invocation");return e}},1947:function(e,n){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1af6":function(e,n,t){var r=t("8911"),o=t("8bc5");e.exports=function(e,n){var t=e.exec;if("function"===typeof t){var a=t.call(e,n);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,n)}},"1c11":function(e,n,t){var r=t("57ac"),o=t("0880");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,n=!1,t={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(t,[]),n=t instanceof Array}catch(a){}return function(t,a){return r(t),o(a),n?e.call(t,a):t.__proto__=a,t}}():void 0)},"1c52":function(e,n,t){},"1cf5":function(e,n,t){e.exports=t.p+"media/notification.55fa47dd.ogg"},"1fba":function(e,n,t){var r=t("68de"),o=t("60cb"),a=t("ca80"),i=t("ff46"),s=t("fd86"),u=s("iterator"),c=s("toStringTag"),l=a.values;for(var f in o){var d=r[f],p=d&&d.prototype;if(p){if(p[u]!==l)try{i(p,u,l)}catch(g){p[u]=l}if(p[c]||i(p,c,f),o[f])for(var h in a)if(p[h]!==a[h])try{i(p,h,a[h])}catch(g){p[h]=a[h]}}}},2044:function(e,n,t){e.exports=t.p+"img/sound-off.72ada995.svg"},2079:function(e,n,t){var r=t("b42f"),o=t("c678"),a=function(e){return function(n,t){var a,i,s=String(o(n)),u=r(t),c=s.length;return u<0||u>=c?e?"":void 0:(a=s.charCodeAt(u),a<55296||a>56319||u+1===c||(i=s.charCodeAt(u+1))<56320||i>57343?e?s.charAt(u):a:e?s.slice(u,u+2):i-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},2153:function(e,n,t){var r=t("ac27"),o=t("8911"),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a.call(e,""):Object(e)}:Object},"220a":function(e,n,t){var r=t("fd86"),o=r("iterator"),a=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){a=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(u){}e.exports=function(e,n){if(!n&&!a)return!1;var t=!1;try{var r={};r[o]=function(){return{next:function(){return{done:t=!0}}}},e(r)}catch(u){}return t}},"22b8":function(e,n,t){var r=t("ce17"),o=t("0ff2"),a=t("9f69"),i=t("9c0c"),s=t("a9eb"),u=t("129e"),c=t("6614"),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(e,n){if(e=i(e),n=s(n,!0),c)try{return l(e,n)}catch(t){}if(u(e,n))return a(!o.f.call(e,n),e[n])}},"22ea":function(e,n,t){"use strict";var r=t("5229"),o=t("d863");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"24ba":function(e,n,t){var r=t("7f82"),o=t("ac27"),a=t("f246"),i=t("9220"),s=t("d5b1"),u=o((function(){i(1)}));r({target:"Object",stat:!0,forced:u,sham:!s},{getPrototypeOf:function(e){return i(a(e))}})},2673:function(e,n,t){var r,o,a,i=t("9486"),s=t("68de"),u=t("8dac"),c=t("ff46"),l=t("129e"),f=t("28b5"),d=t("71d2"),p=t("1061"),h="Object already initialized",g=s.WeakMap,y=function(e){return a(e)?o(e):r(e,{})},v=function(e){return function(n){var t;if(!u(n)||(t=o(n)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}};if(i||f.state){var m=f.state||(f.state=new g),b=m.get,w=m.has,x=m.set;r=function(e,n){if(w.call(m,e))throw new TypeError(h);return n.facade=e,x.call(m,e,n),n},o=function(e){return b.call(m,e)||{}},a=function(e){return w.call(m,e)}}else{var _=d("state");p[_]=!0,r=function(e,n){if(l(e,_))throw new TypeError(h);return n.facade=e,c(e,_,n),n},o=function(e){return l(e,_)?e[_]:{}},a=function(e){return l(e,_)}}e.exports={set:r,get:o,has:a,enforce:y,getterFor:v}},"28b5":function(e,n,t){var r=t("68de"),o=t("853a"),a="__core-js_shared__",i=r[a]||o(a,{});e.exports=i},"2fb6":function(e,n,t){var r=t("ac27"),o=t("fd86"),a=t("b168"),i=o("species");e.exports=function(e){return a>=51||!r((function(){var n=[],t=n.constructor={};return t[i]=function(){return{foo:1}},1!==n[e](Boolean).foo}))}},"30b7":function(e,n,t){var r=t("4574");r("iterator")},"338e":function(e,n){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"33c5":function(e,n,t){"use strict";var r=t("7f82"),o=t("b222").filter,a=t("2fb6"),i=a("filter");r({target:"Array",proto:!0,forced:!i},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},3439:function(e,n,t){"use strict";var r=t("ac27");function o(e,n){return RegExp(e,n)}n.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),n.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},"34ce":function(e,n,t){var r=t("7f82"),o=t("ac27"),a=t("9c0c"),i=t("22b8").f,s=t("ce17"),u=o((function(){i(1)})),c=!s||u;r({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,n){return i(a(e),n)}})},"38b4":function(e,n,t){var r=t("c944"),o=t("8911"),a=t("fd86"),i=a("toStringTag"),s="Arguments"==o(function(){return arguments}()),u=function(e,n){try{return e[n]}catch(t){}};e.exports=r?o:function(e){var n,t,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=u(n=Object(e),i))?t:s?o(n):"Object"==(r=o(n))&&"function"==typeof n.callee?"Arguments":r}},"392e":function(e,n,t){var r=t("fd84");e.exports=function(e,n,t){for(var o in n)r(e,o,n[o],t);return e}},"3a04":function(e,n,t){var r=t("dd2b"),o=t("5a63"),a=t("f124"),i=t("9f62"),s=t("ac85"),u=t("ba03"),c=t("5451");c.alea=r,c.xor128=o,c.xorwow=a,c.xorshift7=i,c.xor4096=s,c.tychei=u,e.exports=c},"3a9a":function(e,n,t){var r=t("7f82"),o=t("a768"),a=t("1947"),i=t("57ac"),s=t("8dac"),u=t("e3d0"),c=t("9b6d"),l=t("ac27"),f=o("Reflect","construct"),d=l((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),p=!l((function(){f((function(){}))})),h=d||p;r({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,n){a(e),i(n);var t=arguments.length<3?e:a(arguments[2]);if(p&&!d)return f(e,n,t);if(e==t){switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3])}var r=[null];return r.push.apply(r,n),new(c.apply(e,r))}var o=t.prototype,l=u(s(o)?o:Object.prototype),h=Function.apply.call(e,l,n);return s(h)?h:l}})},"3aaf":function(e,n,t){var r=t("7f82"),o=t("ce17"),a=t("fbdc"),i=t("9c0c"),s=t("22b8"),u=t("cba7");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var n,t,r=i(e),o=s.f,c=a(r),l={},f=0;while(c.length>f)t=o(r,n=c[f++]),void 0!==t&&u(l,n,t);return l}})},"3df7":function(e,n){n.f=Object.getOwnPropertySymbols},"3e17":function(e,n){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},"3ef7":function(e,n,t){var r=t("7f82"),o=t("c88a");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},4037:function(e,n){e.exports={}},4116:function(e,n,t){"use strict";var r=t("7f82"),o=t("70f8"),a=t("9220"),i=t("1c11"),s=t("660e"),u=t("ff46"),c=t("fd84"),l=t("fd86"),f=t("bd5a"),d=t("4037"),p=t("5995"),h=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,y=l("iterator"),v="keys",m="values",b="entries",w=function(){return this};e.exports=function(e,n,t,l,p,x,_){o(t,n,l);var k,P,S,C=function(e){if(e===p&&L)return L;if(!g&&e in R)return R[e];switch(e){case v:return function(){return new t(this,e)};case m:return function(){return new t(this,e)};case b:return function(){return new t(this,e)}}return function(){return new t(this)}},M=n+" Iterator",B=!1,R=e.prototype,A=R[y]||R["@@iterator"]||p&&R[p],L=!g&&A||C(p),O="Array"==n&&R.entries||A;if(O&&(k=a(O.call(new e)),h!==Object.prototype&&k.next&&(f||a(k)===h||(i?i(k,h):"function"!=typeof k[y]&&u(k,y,w)),s(k,M,!0,!0),f&&(d[M]=w))),p==m&&A&&A.name!==m&&(B=!0,L=function(){return A.call(this)}),f&&!_||R[y]===L||u(R,y,L),d[n]=L,p)if(P={values:C(m),keys:x?L:C(v),entries:C(b)},_)for(S in P)(g||B||!(S in R))&&c(R,S,P[S]);else r({target:n,proto:!0,forced:g||B},P);return P}},"41d6":function(e,n,t){var r=t("ce17"),o=t("6614"),a=t("57ac"),i=t("a9eb"),s=Object.defineProperty;n.f=r?s:function(e,n,t){if(a(e),n=i(n,!0),a(t),o)try{return s(e,n,t)}catch(r){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(e[n]=t.value),e}},4311:function(e,n,t){"use strict";var r=t("7f82"),o=t("22b8").f,a=t("43b7"),i=t("ff41"),s=t("c678"),u=t("ff3f"),c=t("bd5a"),l="".endsWith,f=Math.min,d=u("endsWith"),p=!c&&!d&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!d},{endsWith:function(e){var n=String(s(this));i(e);var t=arguments.length>1?arguments[1]:void 0,r=a(n.length),o=void 0===t?r:f(a(t),r),u=String(e);return l?l.call(n,u,o):n.slice(o-u.length,o)===u}})},"43b7":function(e,n,t){var r=t("b42f"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"448a":function(e,n,t){var r=t("bd5a"),o=t("28b5");(e.exports=function(e,n){return o[e]||(o[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.12.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},4574:function(e,n,t){var r=t("8aac"),o=t("129e"),a=t("a081"),i=t("41d6").f;e.exports=function(e){var n=r.Symbol||(r.Symbol={});o(n,e)||i(n,e,{value:a.f(e)})}},4878:function(e,n,t){"use strict";
|
|
10
10
|
/*
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
@@ -17,13 +17,13 @@ object-assign
|
|
|
17
17
|
*
|
|
18
18
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
19
19
|
* @license MIT
|
|
20
|
-
*/function o(e,n){if(e===n)return 0;for(var t=e.length,r=n.length,o=0,a=Math.min(t,r);o<a;++o)if(e[o]!==n[o]){t=e[o],r=n[o];break}return t<r?-1:r<t?1:0}function a(e){return n.Buffer&&"function"===typeof n.Buffer.isBuffer?n.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var i=t("e908"),s=Object.prototype.hasOwnProperty,u=Array.prototype.slice,c=function(){return"foo"===function(){}.name}();function l(e){return Object.prototype.toString.call(e)}function f(e){return!a(e)&&("function"===typeof n.ArrayBuffer&&("function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var d=e.exports=b,p=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(i.isFunction(e)){if(c)return e.name;var n=e.toString(),t=n.match(p);return t&&t[1]}}function g(e,n){return"string"===typeof e?e.length<n?e:e.slice(0,n):e}function y(e){if(c||!i.isFunction(e))return i.inspect(e);var n=h(e),t=n?": "+n:"";return"[Function"+t+"]"}function v(e){return g(y(e.actual),128)+" "+e.operator+" "+g(y(e.expected),128)}function m(e,n,t,r,o){throw new d.AssertionError({message:t,actual:e,expected:n,operator:r,stackStartFunction:o})}function b(e,n){e||m(e,!0,n,"==",d.ok)}function w(e,n,t,r){if(e===n)return!0;if(a(e)&&a(n))return 0===o(e,n);if(i.isDate(e)&&i.isDate(n))return e.getTime()===n.getTime();if(i.isRegExp(e)&&i.isRegExp(n))return e.source===n.source&&e.global===n.global&&e.multiline===n.multiline&&e.lastIndex===n.lastIndex&&e.ignoreCase===n.ignoreCase;if(null!==e&&"object"===typeof e||null!==n&&"object"===typeof n){if(f(e)&&f(n)&&l(e)===l(n)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===o(new Uint8Array(e.buffer),new Uint8Array(n.buffer));if(a(e)!==a(n))return!1;r=r||{actual:[],expected:[]};var s=r.actual.indexOf(e);return-1!==s&&s===r.expected.indexOf(n)||(r.actual.push(e),r.expected.push(n),_(e,n,t,r))}return t?e===n:e==n}function x(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,n,t,r){if(null===e||void 0===e||null===n||void 0===n)return!1;if(i.isPrimitive(e)||i.isPrimitive(n))return e===n;if(t&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(n))return!1;var o=x(e),a=x(n);if(o&&!a||!o&&a)return!1;if(o)return e=u.call(e),n=u.call(n),w(e,n,t);var s,c,l=B(e),f=B(n);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),c=l.length-1;c>=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(s=l[c],!w(e[s],n[s],t,r))return!1;return!0}function k(e,n,t){w(e,n,!0)&&m(e,n,t,"notDeepStrictEqual",k)}function P(e,n){if(!e||!n)return!1;if("[object RegExp]"==Object.prototype.toString.call(n))return n.test(e);try{if(e instanceof n)return!0}catch(t){}return!Error.isPrototypeOf(n)&&!0===n.call({},e)}function S(e){var n;try{e()}catch(t){n=t}return n}function C(e,n,t,r){var o;if("function"!==typeof n)throw new TypeError('"block" argument must be a function');"string"===typeof t&&(r=t,t=null),o=S(n),r=(t&&t.name?" ("+t.name+").":".")+(r?" "+r:"."),e&&!o&&m(o,t,"Missing expected exception"+r);var a="string"===typeof r,s=!e&&i.isError(o),u=!e&&o&&!t;if((s&&a&&P(o,t)||u)&&m(o,t,"Got unwanted exception"+r),e&&o&&t&&!P(o,t)||!e&&o)throw o}function M(e,n){e||m(e,!0,n,"==",M)}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=v(this),this.generatedMessage=!0);var n=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var t=new Error;if(t.stack){var r=t.stack,o=h(n),a=r.indexOf("\n"+o);if(a>=0){var i=r.indexOf("\n",a+1);r=r.substring(i+1)}this.stack=r}}},i.inherits(d.AssertionError,Error),d.fail=m,d.ok=b,d.equal=function(e,n,t){e!=n&&m(e,n,t,"==",d.equal)},d.notEqual=function(e,n,t){e==n&&m(e,n,t,"!=",d.notEqual)},d.deepEqual=function(e,n,t){w(e,n,!1)||m(e,n,t,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,n,t){w(e,n,!0)||m(e,n,t,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,n,t){w(e,n,!1)&&m(e,n,t,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=k,d.strictEqual=function(e,n,t){e!==n&&m(e,n,t,"===",d.strictEqual)},d.notStrictEqual=function(e,n,t){e===n&&m(e,n,t,"!==",d.notStrictEqual)},d.throws=function(e,n,t){C(!0,e,n,t)},d.doesNotThrow=function(e,n,t){C(!1,e,n,t)},d.ifError=function(e){if(e)throw e},d.strict=r(M,d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var B=Object.keys||function(e){var n=[];for(var t in e)s.call(e,t)&&n.push(t);return n}}).call(this,t("d8fc"))},"4f51":function(e,n,t){"use strict";var r=t("7f82"),o=t("8bc5");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},"50b1":function(e,n,t){},5116:function(e,n,t){"use strict";var r=t("c944"),o=t("38b4");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},5229:function(e,n,t){"use strict";var r=t("7f82"),o=t("68de"),a=t("0015"),i=t("fd84"),s=t("ca24"),u=t("5c27"),c=t("191b"),l=t("8dac"),f=t("ac27"),d=t("220a"),p=t("660e"),h=t("6034");e.exports=function(e,n,t){var g=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),v=g?"set":"add",m=o[e],b=m&&m.prototype,w=m,x={},_=function(e){var n=b[e];i(b,e,"add"==e?function(e){return n.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!l(e))&&n.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:n.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!l(e))&&n.call(this,0===e?0:e)}:function(e,t){return n.call(this,0===e?0:e,t),this})},k=a(e,"function"!=typeof m||!(y||b.forEach&&!f((function(){(new m).entries().next()}))));if(k)w=t.getConstructor(n,e,g,v),s.REQUIRED=!0;else if(a(e,!0)){var P=new w,S=P[v](y?{}:-0,1)!=P,C=f((function(){P.has(1)})),M=d((function(e){new m(e)})),B=!y&&f((function(){var e=new m,n=5;while(n--)e[v](n,n);return!e.has(-0)}));M||(w=n((function(n,t){c(n,w,e);var r=h(new m,n,w);return void 0!=t&&u(t,r[v],{that:r,AS_ENTRIES:g}),r})),w.prototype=b,b.constructor=w),(C||B)&&(_("delete"),_("has"),g&&_("get")),(B||S)&&_(v),y&&b.clear&&delete b.clear}return x[e]=w,r({global:!0,forced:w!=m},x),p(w,e),y||t.setStrong(w,e,g),w}},5451:function(e,n,t){var r;(function(o,a,i){var s,u=256,c=6,l=52,f="random",d=i.pow(u,c),p=i.pow(2,l),h=2*p,g=u-1;function y(e,n,t){var r=[];n=1==n?{entropy:!0}:n||{};var o=w(b(n.entropy?[e,_(a)]:null==e?x():e,3),r),s=new v(r),l=function(){var e=s.g(c),n=d,t=0;while(e<p)e=(e+t)*u,n*=u,t=s.g(1);while(e>=h)e/=2,n/=2,t>>>=1;return(e+t)/n};return l.int32=function(){return 0|s.g(4)},l.quick=function(){return s.g(4)/4294967296},l.double=l,w(_(s.S),a),(n.pass||t||function(e,n,t,r){return r&&(r.S&&m(r,s),e.state=function(){return m(s,{})}),t?(i[f]=e,n):e})(l,o,"global"in n?n.global:this==i,n.state)}function v(e){var n,t=e.length,r=this,o=0,a=r.i=r.j=0,i=r.S=[];t||(e=[t++]);while(o<u)i[o]=o++;for(o=0;o<u;o++)i[o]=i[a=g&a+e[o%t]+(n=i[o])],i[a]=n;(r.g=function(e){var n,t=0,o=r.i,a=r.j,i=r.S;while(e--)n=i[o=g&o+1],t=t*u+i[g&(i[o]=i[a=g&a+n])+(i[a]=n)];return r.i=o,r.j=a,t})(u)}function m(e,n){return n.i=e.i,n.j=e.j,n.S=e.S.slice(),n}function b(e,n){var t,r=[],o=typeof e;if(n&&"object"==o)for(t in e)try{r.push(b(e[t],n-1))}catch(a){}return r.length?r:"string"==o?e:e+"\0"}function w(e,n){var t,r=e+"",o=0;while(o<r.length)n[g&o]=g&(t^=19*n[g&o])+r.charCodeAt(o++);return _(n)}function x(){try{var e;return s&&(e=s.randomBytes)?e=e(u):(e=new Uint8Array(u),(o.crypto||o.msCrypto).getRandomValues(e)),_(e)}catch(r){var n=o.navigator,t=n&&n.plugins;return[+new Date,o,t,o.screen,_(a)]}}function _(e){return String.fromCharCode.apply(0,e)}if(w(i.random(),a),e.exports){e.exports=y;try{s=t(0)}catch(k){}}else r=function(){return y}.call(n,t,n,e),void 0===r||(e.exports=r)})("undefined"!==typeof self?self:this,[],Math)},"57ac":function(e,n,t){var r=t("8dac");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},5995:function(e,n,t){"use strict";var r,o,a,i=t("ac27"),s=t("9220"),u=t("ff46"),c=t("129e"),l=t("fd86"),f=t("bd5a"),d=l("iterator"),p=!1,h=function(){return this};[].keys&&(a=[].keys(),"next"in a?(o=s(s(a)),o!==Object.prototype&&(r=o)):p=!0);var g=void 0==r||i((function(){var e={};return r[d].call(e)!==e}));g&&(r={}),f&&!g||c(r,d)||u(r,d,h),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},"5a40":function(e,n,t){var r=t("b168"),o=t("ac27");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())||!Symbol.sham&&r&&r<41}))},"5a63":function(e,n,t){(function(e){var r;(function(e,o,a){function i(e){var n=this,t="";n.x=0,n.y=0,n.z=0,n.w=0,n.next=function(){var e=n.x^n.x<<11;return n.x=n.y,n.y=n.z,n.z=n.w,n.w^=n.w>>>19^e^e>>>8},e===(0|e)?n.x=e:t+=e;for(var r=0;r<t.length+64;r++)n.x^=0|t.charCodeAt(r),n.next()}function s(e,n){return n.x=e.x,n.y=e.y,n.z=e.z,n.w=e.w,n}function u(e,n){var t=new i(e),r=n&&n.state,o=function(){return(t.next()>>>0)/4294967296};return o.double=function(){do{var e=t.next()>>>11,n=(t.next()>>>0)/4294967296,r=(e+n)/(1<<21)}while(0===r);return r},o.int32=t.next,o.quick=o,r&&("object"==typeof r&&s(r,t),o.state=function(){return s(t,{})}),o}o&&o.exports?o.exports=u:t("f9ad")&&t("ba96")?(r=function(){return u}.call(n,t,n,o),void 0===r||(o.exports=r)):this.xor128=u})(0,e,t("f9ad"))}).call(this,t("e55b")(e))},"5b4c":function(e,n,t){var r=t("57ac");e.exports=function(e){var n=e["return"];if(void 0!==n)return r(n.call(e)).value}},"5c27":function(e,n,t){var r=t("57ac"),o=t("6e92"),a=t("43b7"),i=t("6e4e"),s=t("dbf5"),u=t("5b4c"),c=function(e,n){this.stopped=e,this.result=n};e.exports=function(e,n,t){var l,f,d,p,h,g,y,v=t&&t.that,m=!(!t||!t.AS_ENTRIES),b=!(!t||!t.IS_ITERATOR),w=!(!t||!t.INTERRUPTED),x=i(n,v,1+m+w),_=function(e){return l&&u(l),new c(!0,e)},k=function(e){return m?(r(e),w?x(e[0],e[1],_):x(e[0],e[1])):w?x(e,_):x(e)};if(b)l=e;else{if(f=s(e),"function"!=typeof f)throw TypeError("Target is not iterable");if(o(f)){for(d=0,p=a(e.length);p>d;d++)if(h=k(e[d]),h&&h instanceof c)return h;return new c(!1)}l=f.call(e)}g=l.next;while(!(y=g.call(l)).done){try{h=k(y.value)}catch(P){throw u(l),P}if("object"==typeof h&&h&&h instanceof c)return h}return new c(!1)}},6034:function(e,n,t){var r=t("8dac"),o=t("1c11");e.exports=function(e,n,t){var a,i;return o&&"function"==typeof(a=n.constructor)&&a!==t&&r(i=a.prototype)&&i!==t.prototype&&o(e,i),e}},"60cb":function(e,n){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},6210:function(e,n,t){"use strict";var r=t("7f82"),o=t("68de"),a=t("a768"),i=t("bd5a"),s=t("ce17"),u=t("5a40"),c=t("7a4c"),l=t("ac27"),f=t("129e"),d=t("9ebe"),p=t("8dac"),h=t("57ac"),g=t("f246"),y=t("9c0c"),v=t("a9eb"),m=t("9f69"),b=t("e3d0"),w=t("ba28"),x=t("97cc"),_=t("b2a1"),k=t("3df7"),P=t("22b8"),S=t("41d6"),C=t("0ff2"),M=t("ff46"),B=t("fd84"),A=t("448a"),R=t("71d2"),L=t("1061"),O=t("ddc5"),j=t("fd86"),z=t("a081"),D=t("4574"),E=t("660e"),G=t("2673"),T=t("b222").forEach,I=R("hidden"),N="Symbol",U="prototype",K=j("toPrimitive"),F=G.set,V=G.getterFor(N),W=Object[U],H=o.Symbol,Y=a("JSON","stringify"),$=P.f,q=S.f,Z=_.f,J=C.f,X=A("symbols"),Q=A("op-symbols"),ee=A("string-to-symbol-registry"),ne=A("symbol-to-string-registry"),te=A("wks"),re=o.QObject,oe=!re||!re[U]||!re[U].findChild,ae=s&&l((function(){return 7!=b(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(e,n,t){var r=$(W,n);r&&delete W[n],q(e,n,t),r&&e!==W&&q(W,n,r)}:q,ie=function(e,n){var t=X[e]=b(H[U]);return F(t,{type:N,tag:e,description:n}),s||(t.description=n),t},se=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},ue=function(e,n,t){e===W&&ue(Q,n,t),h(e);var r=v(n,!0);return h(t),f(X,r)?(t.enumerable?(f(e,I)&&e[I][r]&&(e[I][r]=!1),t=b(t,{enumerable:m(0,!1)})):(f(e,I)||q(e,I,m(1,{})),e[I][r]=!0),ae(e,r,t)):q(e,r,t)},ce=function(e,n){h(e);var t=y(n),r=w(t).concat(he(t));return T(r,(function(n){s&&!fe.call(t,n)||ue(e,n,t[n])})),e},le=function(e,n){return void 0===n?b(e):ce(b(e),n)},fe=function(e){var n=v(e,!0),t=J.call(this,n);return!(this===W&&f(X,n)&&!f(Q,n))&&(!(t||!f(this,n)||!f(X,n)||f(this,I)&&this[I][n])||t)},de=function(e,n){var t=y(e),r=v(n,!0);if(t!==W||!f(X,r)||f(Q,r)){var o=$(t,r);return!o||!f(X,r)||f(t,I)&&t[I][r]||(o.enumerable=!0),o}},pe=function(e){var n=Z(y(e)),t=[];return T(n,(function(e){f(X,e)||f(L,e)||t.push(e)})),t},he=function(e){var n=e===W,t=Z(n?Q:y(e)),r=[];return T(t,(function(e){!f(X,e)||n&&!f(W,e)||r.push(X[e])})),r};if(u||(H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,n=O(e),t=function(e){this===W&&t.call(Q,e),f(this,I)&&f(this[I],n)&&(this[I][n]=!1),ae(this,n,m(1,e))};return s&&oe&&ae(W,n,{configurable:!0,set:t}),ie(n,e)},B(H[U],"toString",(function(){return V(this).tag})),B(H,"withoutSetter",(function(e){return ie(O(e),e)})),C.f=fe,S.f=ue,P.f=de,x.f=_.f=pe,k.f=he,z.f=function(e){return ie(j(e),e)},s&&(q(H[U],"description",{configurable:!0,get:function(){return V(this).description}}),i||B(W,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:H}),T(w(te),(function(e){D(e)})),r({target:N,stat:!0,forced:!u},{for:function(e){var n=String(e);if(f(ee,n))return ee[n];var t=H(n);return ee[n]=t,ne[t]=n,t},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(f(ne,e))return ne[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:le,defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe,getOwnPropertySymbols:he}),r({target:"Object",stat:!0,forced:l((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(g(e))}}),Y){var ge=!u||l((function(){var e=H();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))}));r({target:"JSON",stat:!0,forced:ge},{stringify:function(e,n,t){var r,o=[e],a=1;while(arguments.length>a)o.push(arguments[a++]);if(r=n,(p(n)||void 0!==e)&&!se(e))return d(n)||(n=function(e,n){if("function"==typeof r&&(n=r.call(this,e,n)),!se(n))return n}),o[1]=n,Y.apply(null,o)}})}H[U][K]||M(H[U],K,H[U].valueOf),E(H,N),L[I]=!0},"660e":function(e,n,t){var r=t("41d6").f,o=t("129e"),a=t("fd86"),i=a("toStringTag");e.exports=function(e,n,t){e&&!o(e=t?e:e.prototype,i)&&r(e,i,{configurable:!0,value:n})}},6614:function(e,n,t){var r=t("ce17"),o=t("ac27"),a=t("77cc");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"68de":function(e,n,t){(function(n){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,t("d8fc"))},"6e4e":function(e,n,t){var r=t("1947");e.exports=function(e,n,t){if(r(e),void 0===n)return e;switch(t){case 0:return function(){return e.call(n)};case 1:return function(t){return e.call(n,t)};case 2:return function(t,r){return e.call(n,t,r)};case 3:return function(t,r,o){return e.call(n,t,r,o)}}return function(){return e.apply(n,arguments)}}},"6e92":function(e,n,t){var r=t("fd86"),o=t("4037"),a=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},"70f8":function(e,n,t){"use strict";var r=t("5995").IteratorPrototype,o=t("e3d0"),a=t("9f69"),i=t("660e"),s=t("4037"),u=function(){return this};e.exports=function(e,n,t){var c=n+" Iterator";return e.prototype=o(r,{next:a(1,t)}),i(e,c,!1,!0),s[c]=u,e}},"71d2":function(e,n,t){var r=t("448a"),o=t("ddc5"),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},"727c":function(e,n,t){var r=t("ce17"),o=t("41d6"),a=t("57ac"),i=t("ba28");e.exports=r?Object.defineProperties:function(e,n){a(e);var t,r=i(n),s=r.length,u=0;while(s>u)o.f(e,t=r[u++],n[t]);return e}},7743:function(e,n,t){"use strict";var r=t("2079").charAt;e.exports=function(e,n,t){return n+(t?r(e,n).length:1)}},"77cc":function(e,n,t){var r=t("68de"),o=t("8dac"),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},"7a4c":function(e,n,t){var r=t("5a40");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"7da5":function(e,n,t){var r,o,a;(function(t,i){o=[],r=i,a="function"===typeof r?r.apply(n,o):r,void 0===a||(e.exports=a)})("undefined"!==typeof self&&self,(function(){function e(){var n=Object.getOwnPropertyDescriptor(document,"currentScript");if(!n&&"currentScript"in document&&document.currentScript)return document.currentScript;if(n&&n.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var t,r,o,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,s=a.exec(p.stack)||i.exec(p.stack),u=s&&s[1]||!1,c=s&&s[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");u===l&&(t=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=t.replace(r,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===u)return f[d];if(u===l&&f[d].innerHTML&&f[d].innerHTML.trim()===o)return f[d]}return null}}return e}))},"7f32":function(e,n,t){"use strict";var r=t("fd84"),o=t("57ac"),a=t("ac27"),i=t("9807"),s="toString",u=RegExp.prototype,c=u[s],l=a((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=s;(l||f)&&r(RegExp.prototype,s,(function(){var e=o(this),n=String(e.source),t=e.flags,r=String(void 0===t&&e instanceof RegExp&&!("flags"in u)?i.call(e):t);return"/"+n+"/"+r}),{unsafe:!0})},"7f82":function(e,n,t){var r=t("68de"),o=t("22b8").f,a=t("ff46"),i=t("fd84"),s=t("853a"),u=t("03aa"),c=t("0015");e.exports=function(e,n){var t,l,f,d,p,h,g=e.target,y=e.global,v=e.stat;if(l=y?r:v?r[g]||s(g,{}):(r[g]||{}).prototype,l)for(f in n){if(p=n[f],e.noTargetGet?(h=o(l,f),d=h&&h.value):d=l[f],t=c(y?f:g+(v?".":"#")+f,e.forced),!t&&void 0!==d){if(typeof p===typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&a(p,"sham",!0),i(l,f,p,e)}}},"853a":function(e,n,t){var r=t("68de"),o=t("ff46");e.exports=function(e,n){try{o(r,e,n)}catch(t){r[e]=n}return n}},"85cf":function(e,n,t){"use strict";t("1c52")},"872f":function(e,n,t){"use strict";var r=t("7f82"),o=t("b222").map,a=t("2fb6"),i=a("map");r({target:"Array",proto:!0,forced:!i},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"87ee":function(e,n,t){"use strict";var r=t("6e4e"),o=t("f246"),a=t("f320"),i=t("6e92"),s=t("43b7"),u=t("cba7"),c=t("dbf5");e.exports=function(e){var n,t,l,f,d,p,h=o(e),g="function"==typeof this?this:Array,y=arguments.length,v=y>1?arguments[1]:void 0,m=void 0!==v,b=c(h),w=0;if(m&&(v=r(v,y>2?arguments[2]:void 0,2)),void 0==b||g==Array&&i(b))for(n=s(h.length),t=new g(n);n>w;w++)p=m?v(h[w],w):h[w],u(t,w,p);else for(f=b.call(h),d=f.next,t=new g;!(l=d.call(f)).done;w++)p=m?a(f,v,[l.value,w],!0):l.value,u(t,w,p);return t.length=w,t}},8911:function(e,n){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},"8aac":function(e,n,t){var r=t("68de");e.exports=r},"8bbf":function(n,t){n.exports=e},"8bc0":function(e,n,t){"use strict";var r=t("7f82"),o=t("ff41"),a=t("c678"),i=t("ff3f");r({target:"String",proto:!0,forced:!i("includes")},{includes:function(e){return!!~String(a(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},"8bc5":function(e,n,t){"use strict";var r=t("9807"),o=t("3439"),a=t("448a"),i=RegExp.prototype.exec,s=a("native-string-replace",String.prototype.replace),u=i,c=function(){var e=/a/,n=/b*/g;return i.call(e,"a"),i.call(n,"a"),0!==e.lastIndex||0!==n.lastIndex}(),l=o.UNSUPPORTED_Y||o.BROKEN_CARET,f=void 0!==/()??/.exec("")[1],d=c||f||l;d&&(u=function(e){var n,t,o,a,u=this,d=l&&u.sticky,p=r.call(u),h=u.source,g=0,y=e;return d&&(p=p.replace("y",""),-1===p.indexOf("g")&&(p+="g"),y=String(e).slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==e[u.lastIndex-1])&&(h="(?: "+h+")",y=" "+y,g++),t=new RegExp("^(?:"+h+")",p)),f&&(t=new RegExp("^"+h+"$(?!\\s)",p)),c&&(n=u.lastIndex),o=i.call(d?t:u,y),d?o?(o.input=o.input.slice(g),o[0]=o[0].slice(g),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:c&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),f&&o&&o.length>1&&s.call(o[0],t,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o}),e.exports=u},"8c99":function(e,n,t){var r=t("129e"),o=t("9c0c"),a=t("cd16").indexOf,i=t("1061");e.exports=function(e,n){var t,s=o(e),u=0,c=[];for(t in s)!r(i,t)&&r(s,t)&&c.push(t);while(n.length>u)r(s,t=n[u++])&&(~a(c,t)||c.push(t));return c}},"8dac":function(e,n){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"8e1e":function(e,n,t){"use strict";var r=t("7f82"),o=t("8dac"),a=t("9ebe"),i=t("12aa"),s=t("43b7"),u=t("9c0c"),c=t("cba7"),l=t("fd86"),f=t("2fb6"),d=f("slice"),p=l("species"),h=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,n){var t,r,l,f=u(this),d=s(f.length),y=i(e,d),v=i(void 0===n?d:n,d);if(a(f)&&(t=f.constructor,"function"!=typeof t||t!==Array&&!a(t.prototype)?o(t)&&(t=t[p],null===t&&(t=void 0)):t=void 0,t===Array||void 0===t))return h.call(f,y,v);for(r=new(void 0===t?Array:t)(g(v-y,0)),l=0;y<v;y++,l++)y in f&&c(r,l,f[y]);return r.length=l,r}})},9200:function(e,n,t){var r=t("ac27");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9220:function(e,n,t){var r=t("129e"),o=t("f246"),a=t("71d2"),i=t("d5b1"),s=a("IE_PROTO"),u=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},"92cf":function(e,n,t){e.exports=t.p+"img/undo.208666d2.svg"},9416:function(e,n){"function"===typeof Object.create?e.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,n){e.super_=n;var t=function(){};t.prototype=n.prototype,e.prototype=new t,e.prototype.constructor=e}},9486:function(e,n,t){var r=t("68de"),o=t("dd7c"),a=r.WeakMap;e.exports="function"===typeof a&&/native code/.test(o(a))},"97cc":function(e,n,t){var r=t("8c99"),o=t("338e"),a=o.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},9807:function(e,n,t){"use strict";var r=t("57ac");e.exports=function(){var e=r(this),n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.sticky&&(n+="y"),n}},9876:function(e,n,t){function r(n){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=r=function(e){return typeof e},e.exports["default"]=e.exports,e.exports.__esModule=!0):(e.exports=r=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports["default"]=e.exports,e.exports.__esModule=!0),r(n)}t("6210"),t("4b3e"),t("c981"),t("30b7"),t("ca80"),t("a901"),t("1fba"),e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},"997e":function(e,n,t){e.exports=t.p+"img/help.ba7779cc.svg"},"9b6d":function(e,n,t){"use strict";var r=t("1947"),o=t("8dac"),a=[].slice,i={},s=function(e,n,t){if(!(n in i)){for(var r=[],o=0;o<n;o++)r[o]="a["+o+"]";i[n]=Function("C,a","return new C("+r.join(",")+")")}return i[n](e,t)};e.exports=Function.bind||function(e){var n=r(this),t=a.call(arguments,1),i=function(){var r=t.concat(a.call(arguments));return this instanceof i?s(n,r.length,r):n.apply(e,r)};return o(n.prototype)&&(i.prototype=n.prototype),i}},"9c0c":function(e,n,t){var r=t("2153"),o=t("c678");e.exports=function(e){return r(o(e))}},"9cd8":function(e,n,t){"use strict";var r=t("5229"),o=t("d863");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"9daf":function(e,n,t){"use strict";var r=t("b222").forEach,o=t("d0b1"),a=o("forEach");e.exports=a?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"9ebe":function(e,n,t){var r=t("8911");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"9f62":function(e,n,t){(function(e){var r;(function(e,o,a){function i(e){var n=this;function t(e,n){var t,r=[];if(n===(0|n))r[0]=n;else for(n=""+n,t=0;t<n.length;++t)r[7&t]=r[7&t]<<15^n.charCodeAt(t)+r[t+1&7]<<13;while(r.length<8)r.push(0);for(t=0;t<8&&0===r[t];++t);for(8==t?r[7]=-1:r[t],e.x=r,e.i=0,t=256;t>0;--t)e.next()}n.next=function(){var e,t,r=n.x,o=n.i;return e=r[o],e^=e>>>7,t=e^e<<24,e=r[o+1&7],t^=e^e>>>10,e=r[o+3&7],t^=e^e>>>3,e=r[o+4&7],t^=e^e<<7,e=r[o+7&7],e^=e<<13,t^=e^e<<9,r[o]=t,n.i=o+1&7,t},t(n,e)}function s(e,n){return n.x=e.x.slice(),n.i=e.i,n}function u(e,n){null==e&&(e=+new Date);var t=new i(e),r=n&&n.state,o=function(){return(t.next()>>>0)/4294967296};return o.double=function(){do{var e=t.next()>>>11,n=(t.next()>>>0)/4294967296,r=(e+n)/(1<<21)}while(0===r);return r},o.int32=t.next,o.quick=o,r&&(r.x&&s(r,t),o.state=function(){return s(t,{})}),o}o&&o.exports?o.exports=u:t("f9ad")&&t("ba96")?(r=function(){return u}.call(n,t,n,o),void 0===r||(o.exports=r)):this.xorshift7=u})(0,e,t("f9ad"))}).call(this,t("e55b")(e))},"9f69":function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},"9fd9":function(e,n,t){e.exports=t.p+"img/sound-on.c55edd90.svg"},a081:function(e,n,t){var r=t("fd86");n.f=r},a0e6:function(e,n,t){"use strict";if(t.r(n),"undefined"!==typeof window){var r=window.document.currentScript,o=t("7da5");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(t.p=a[1])}t("0a56"),t("6210"),t("33c5"),t("34ce"),t("df11"),t("3aaf");function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var c=t("16b4"),l=t("8bbf"),f=t.n(l),d=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["game",{fitToScreen:e.preferences.fitToScreen}]},[t("div",{staticClass:"statusBar"},[e._v(" "+e._s(e.getStatusMessage())+" ")]),e._m(0),e._m(1),e.G?t("svg",{staticStyle:{width:"100%"},attrs:{id:"scene",viewBox:e.G.map.viewBox?"0 0 "+e.G.map.viewBox[0]+" "+e.G.map.viewBox[1]:"0 0 1500 800"}},[t("rect",{attrs:{width:"100%",height:"100%",x:"0",y:"0",fill:"yellowgreen"}}),t("PlayerOrder",{ref:"playerOrder",attrs:{transform:"translate("+e.G.map.playerOrderPosition[0]+", "+e.G.map.playerOrderPosition[1]+")",playerColors:e.playerColors}}),t("CityCount",{ref:"cityCount",attrs:{transform:"translate("+e.G.map.cityCountPosition[0]+", "+e.G.map.cityCountPosition[1]+")",playerColors:e.playerColors,citiesToEndGame:e.G.citiesToEndGame,citiesToStep2:e.G.citiesToStep2}}),t("PowerPlantMarket",{ref:"powerPlantMarket",attrs:{transform:"translate("+e.G.map.powerPlantMarketPosition[0]+", "+e.G.map.powerPlantMarketPosition[1]+")",canBid:e.canBid(),canChoose:e.canChoose(),chooseablePowerPlants:e.getChooseablePowerPlants(),cardsLeft:e.G.cardsLeft,minBid:e.G.currentBid+1||e.G.minimunBid,maxBid:e.G.players[e.player]?e.G.players[e.player].money:0,nextCardWeak:e.G.nextCardWeak,plantDiscountActive:e.G.plantDiscountActive},on:{choosePowerPlant:function(n){return e.choosePowerPlant(n)},bid:function(n){return e.bid(n)}}}),t("Map",{ref:"map",attrs:{transform:"translate("+e.G.map.mapPosition[0]+", "+e.G.map.mapPosition[1]+")",playerColors:e.playerColors,cities:e.G.map.cities,connections:e.G.map.connections,polygons:e.G.map.polygons,buildableCities:e.getBuildableCities()},on:{build:function(n){return e.build(n)}}}),t("Resources",{ref:"resources",attrs:{transform:"translate("+e.G.map.supplyPosition[0]+", "+e.G.map.supplyPosition[1]+")",isUsaRecharged:"recharged"==e.G.options.variant&&"USA"==e.G.map.name,isMiddleEast:"Middle East"==e.G.map.name,isIndiaResourceMarket:"India"==e.G.map.name&&e.G.coalPrices&&e.G.garbagePrices&&e.G.uraniumPrices,availableSurplusOil:"Middle East"==e.G.map.name?Math.max(e.G.oilMarket-e.G.oilPrices.filter((function(e){return e>1})).length,0):0,buyableResources:e.buyableResources(),resourceResupply:e.getResourceResupply()},on:{buyResource:function(n){return e.buyResource(n)}}}),t("g",{attrs:{transform:"translate("+e.G.map.roundInfoPosition[0]+", "+e.G.map.roundInfoPosition[1]+")"}},[e.gameEnded(e.G)?[t("Button",{attrs:{transform:"translate(20, 50)",width:130,text:"Final Score"},on:{click:function(n){e.endScoreVisible=!0}}}),e.G.options.trackTotalSpent?[t("Button",{attrs:{transform:"translate(180, 50)",width:120,text:"Game Stats"},on:{click:function(n){e.spendingVisible=!0}}})]:e._e()]:[t("text",{staticStyle:{"font-size":"32px"},attrs:{x:"10",y:"20","font-weight":"600",fill:"black"}},[e._v(" Round: "+e._s(e.G.round)+" ")]),t("text",{staticStyle:{"font-size":"32px"},attrs:{x:"10",y:"60","font-weight":"600",fill:"black"}},[e._v("Step: "+e._s(e.G.step))]),t("text",{staticStyle:{"font-size":"32px"},attrs:{x:"10",y:"100","font-weight":"600",fill:"black"}},[e._v(" Phase: "+e._s(e.G.phase)+" ")])]],2),t("g",{attrs:{transform:"translate("+e.G.map.buttonsPosition[0]+", "+e.G.map.buttonsPosition[1]+")"}},[t("PassButton",{attrs:{transform:"translate(15, 15)",enabled:e.canPass(),highlightButton:e.canPass()&&!e.preferences.disableHelp,text:e.canUndo()?"Done":"Pass"},on:{click:function(n){return e.checkPass()}}}),t("UndoButton",{attrs:{transform:"translate(15, 56)",enabled:e.canUndo(),highlightButton:e.canUndo()&&!e.preferences.disableHelp},on:{click:function(n){return e.undo()}}}),t("LogButton",{attrs:{transform:"translate(15, 97)"},on:{click:function(n){return e.showLog()}}}),t("SoundButton",{attrs:{transform:"translate(110, 13)",isOn:e.preferences.sound},on:{click:function(n){return e.toggleSound()}}}),t("HelpButton",{attrs:{transform:"translate(110, 54)",isOn:!e.preferences.disableHelp},on:{click:function(n){return e.toggleHelp()}}}),t("RulesButton",{attrs:{transform:"translate(110, 95)"},on:{click:function(n){e.rulesVisible=!0}}})],1),e._l(e.adjustedPlayerOrder,(function(n,r){return[t("PlayerBoard",{key:"B"+n,attrs:{transform:"translate("+e.G.map.playerBoardsPosition[0]+", "+(e.G.map.playerBoardsPosition[1]+110*r)+")",player:e.G.players[n],color:e.playerColors[n],avatar:e.avatars[n],owner:n,isCurrentPlayer:e.isCurrentPlayer(n),ended:e.gameEnded(e.G),isPlayer:e.player==n,ranking:e.sortedPlayers.findIndex((function(t){return t.id==e.G.players[n].id}))+1,showMoney:e.player==n||e.gameEnded(e.G)||e.G.options.showMoney,showBid:!e.G.options.fastBid,phase:e.G.phase},on:{powerPlantClick:function(n){return e.powerPlantClick(n)},discardResource:function(n){return e.discardResource(n)}}})]}))],2):e._e(),e.G?t("div",{class:["modal",{visible:e.logVisible}]},[t("div",{staticClass:"modal-content"},[t("span",{staticClass:"close",on:{click:function(n){e.logVisible=!1}}},[e._v("×")]),t("div",{staticClass:"modal-title"},[e._v("Log")]),t("div",{staticClass:"modal-log"},e._l(e.logReversed,(function(n,r){return t("div",{key:"L"+r,staticClass:"log-line",domProps:{innerHTML:e._s(n)}})})),0)])]):e._e(),e.G?t("div",{class:["modal",{visible:e.confirmVisible}]},[t("div",{staticClass:"modal-content"},[t("span",{staticClass:"close",on:{click:function(n){e.confirmVisible=!1}}},[e._v("×")]),t("div",{staticClass:"modal-title"},[e._v("Confirm")]),t("div",{staticClass:"confirm-message"},[e._v(e._s(e.confirmMessage))]),t("div",{staticClass:"confirm-buttons"},[t("button",{staticClass:"confirm-button",on:{click:function(n){return e.confirmPass()}}},[e._v("OK")]),t("button",{staticClass:"confirm-button",on:{click:function(n){e.confirmVisible=!1}}},[e._v("Cancel")])])])]):e._e(),e.G&&e.discardedPowerPlant?t("div",{class:["modal",{visible:e.discardVisible}]},[t("div",{staticClass:"modal-content"},[t("div",{staticClass:"modal-title"},[e._v("Discard Resources")]),t("div",{staticClass:"confirm-message"},[e._v("Choose which resources to discard:")]),e._l(e.resourcesToDiscard,(function(n,r){return t("div",{key:"R"+r,staticClass:"confirm-message",staticStyle:{"text-align":"center"}},[e._v(" "+e._s(n.name)+": "),t("input",{directives:[{name:"model",rawName:"v-model",value:n.value,expression:"r.value"}],staticStyle:{width:"3em"},attrs:{type:"number",min:"0",max:n.max},domProps:{value:n.value},on:{input:function(t){t.target.composing||e.$set(n,"value",t.target.value)}}})])})),t("div",{staticClass:"confirm-buttons"},[t("button",{staticClass:"confirm-button",attrs:{disabled:e.discardInvalid()},on:{click:function(n){return e.confirmDiscard()}}},[e._v("OK")])])],2)]):e._e(),e.G&&e.gameEnded(e.G)?t("div",{class:["modal",{visible:e.endScoreVisible}]},[t("div",{staticClass:"modal-content"},[t("span",{staticClass:"close",on:{click:function(n){e.endScoreVisible=!1}}},[e._v("×")]),t("div",{staticClass:"modal-title"},[e._v("Final Score")]),t("table",{staticClass:"final-score-table"},[t("tr",[e._m(2),e._l(e.sortedPlayers,(function(n){return t("th",{key:"FS"+n.id},[t("div",{style:"background-color: "+e.playerColors[n.id]},[e._v(e._s(n.name))])])}))],2),e._l(["Cities Powered","Money","Total Cities"],(function(n,r){return t("tr",{key:"FC_"+n},[t("td",[e._v(e._s(n))]),e._l(e.sortedPlayers,(function(n){return t("td",{key:"FS"+n.id+r},[t("div",[e._v(" "+e._s(0==r?n.citiesPowered:1==r?n.money:n.cities.length)+" ")])])}))],2)}))],2)])]):e._e(),e.G&&e.gameEnded(e.G)?t("div",{class:["modal",{visible:e.spendingVisible}]},[t("div",{staticClass:"modal-content"},[t("span",{staticClass:"close",on:{click:function(n){e.spendingVisible=!1}}},[e._v("×")]),t("div",{staticClass:"modal-title"},[e._v("Spending")]),t("table",{staticClass:"spending-table"},[t("tr",[e._m(3),e._l(e.sortedPlayers,(function(n){return t("th",{key:"FS"+n.id},[t("div",{style:"background-color: "+e.playerColors[n.id]},[e._v(e._s(n.name))])])}))],2),e._l(["Income","Spending: Cities","Spending: Connections","Spending: Plants","Spending: Resources"],(function(n,r){return t("tr",{key:"FC_"+n},[t("td",[e._v(e._s(n))]),e._l(e.sortedPlayers,(function(n){return t("td",{key:"FS"+n.id+r},[t("div",[e._v(" "+e._s(0==r?n.totalIncome:1==r?n.totalSpentCities:2==r?n.totalSpentConnections:3==r?n.totalSpentPlants:n.totalSpentResources)+" ")])])}))],2)}))],2)])]):e._e(),e.G?t("div",{class:["modal",{visible:e.rulesVisible}]},[t("div",{staticClass:"modal-content"},[t("span",{staticClass:"close",on:{click:function(n){e.rulesVisible=!1}}},[e._v("×")]),t("div",{staticClass:"modal-title"},[e._v("Rules Summary: "+e._s(e.G.map.name))]),t("div",{staticClass:"modal-body"},[e._m(4),t("div",[t("strong",[e._v("Steps:")]),t("ul",[t("li",[t("strong",[e._v("Step 1:")]),t("ul",[e._m(5),t("li",[e._v(" Resource Resupply: "),t("strong",[e._v(e._s(e.G.resourceResupply[0]))])]),e._m(6)])]),t("li",[t("strong",[e._v("Step 2:")]),t("ul",[t("li",[e._v(" Starts after building phase where a player has "),t("strong",[e._v(e._s(e.G.citiesToStep2))]),e._v(" or more cities ")]),e._m(7),t("li",[e._v(" Resource Resupply: "),t("strong",[e._v(e._s(e.G.resourceResupply[1]))])]),e._m(8)])]),t("li",[t("strong",[e._v("Step 3:")]),t("ul",[t("li",[e._v('Starts after the "Step 3" card is drawn from the deck')]),e._m(9),t("li",[e._v(" Resource Resupply: "),t("strong",[e._v(e._s(e.G.resourceResupply[2]))])]),e._m(10),t("li",[e._v("All power plants available for auction")])])])])]),t("div",[e._v(" Game ends after building phase where a player has "),t("strong",[e._v(e._s(e.G.citiesToEndGame))]),e._v(" or more cities."),t("br"),e._v(" The winner is the player that can power the most cities. Money and number of cities built are tiebreakers. ")]),e.G.map.mapSpecificRules?[t("br"),t("div",[t("strong",[e._v("Map Specific Rules:")]),t("br"),t("span",{staticStyle:{"white-space":"pre"}},[e._v(e._s(e.G.map.mapSpecificRules))])])]:e._e(),t("br"),t("div",[t("strong",[e._v("Payment Table")]),t("table",{staticClass:"payment-table"},[t("tr",[e._m(11),e._l(e.G.citiesToEndGame,(function(n){return[t("td",{key:"cities"+n},[e._v(e._s(n-1))])]}))],2),t("tr",[e._m(12),e._l(e.G.citiesToEndGame,(function(n){return[t("td",{key:"payment"+n},[e._v("$"+e._s(e.G.paymentTable[n-1]))])]}))],2)])])],2)])]):e._e()])},p=[function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("audio",{attrs:{id:"piece-drop",preload:"none"}},[r("source",{attrs:{src:t("f168"),type:"audio/mpeg"}})])},function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("audio",{attrs:{id:"notification",preload:"none"}},[r("source",{attrs:{src:t("0be7"),type:"audio/mpeg"}}),r("source",{attrs:{src:t("1cf5"),type:"audio/ogg"}})])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("th",[t("div",[e._v("Player")])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("th",[t("div",[e._v("Player")])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("strong",[e._v("Phases:")]),t("ul",[t("li",[t("strong",[e._v("Determine Turn Order")]),e._v(" by number of cities built and highest power plant owned ")]),t("li",[t("strong",[e._v("Buy Power Plants")]),e._v(" from the actual market (minimun bid is power plant number) ")]),t("li",[t("strong",[e._v("Buy Resources")]),e._v(" in "),t("strong",[e._v("reverse")]),e._v(" turn order from the resource market ")]),t("li",[t("strong",[e._v("Build Cities")]),e._v(" in "),t("strong",[e._v("reverse")]),e._v(" turn order paying "),t("strong",[e._v("10/15/20")]),e._v(" plus connection cost ")]),t("li",[t("strong",[e._v("Bureaucracy:")]),e._v(" spend resources to use power plants, collect money according to cities supplied, resupply resource market ")])])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",[t("strong",[e._v("One")]),e._v(" player per city")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",[e._v("Bureaucracy: remove "),t("strong",[e._v("highest")]),e._v(" power plant from market")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",[t("strong",[e._v("Two")]),e._v(" players per city")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",[e._v("Bureaucracy: remove "),t("strong",[e._v("highest")]),e._v(" power plant from market")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",[t("strong",[e._v("Three")]),e._v(" players per city")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",[e._v("Bureaucracy: remove "),t("strong",[e._v("lowest")]),e._v(" power plant from market")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("td",[t("strong",[e._v("Cities")])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("td",[t("strong",[e._v("Payment")])])}];function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function g(e){if(Array.isArray(e))return h(e)}t("4b3e"),t("c981"),t("30b7"),t("ca80"),t("a901"),t("1fba"),t("f688");function y(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}t("8e1e"),t("0a0d");function v(e,n){if(e){if("string"===typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,n):void 0}}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e){return g(e)||y(e)||v(e)||m()}function w(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=v(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==t["return"]||t["return"]()}finally{if(s)throw a}}}}function x(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,n,t){return n&&_(e.prototype,n),t&&_(e,t),e}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,n){return S=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},S(e,n)}function C(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&S(e,n)}t("3a9a"),t("24ba");function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function B(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var A=t("9876"),R=t.n(A);function L(e,n){return!n||"object"!==R()(n)&&"function"!==typeof n?P(e):n}function O(e){var n=B();return function(){var t,r=M(e);if(n){var o=M(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return L(this,t)}}t("17ba"),t("3ef7"),t("872f"),t("07de"),t("8bc0"),t("b0d4"),t("0c1b"),t("4f51"),t("b07d");function j(e,n,t,r){var o,a=arguments.length,i=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)i=Reflect.decorate(e,n,t,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(n,t,i):o(n,t))||i);return a>3&&i&&Object.defineProperty(n,t,i),i}Object.create;Object.create;
|
|
20
|
+
*/function o(e,n){if(e===n)return 0;for(var t=e.length,r=n.length,o=0,a=Math.min(t,r);o<a;++o)if(e[o]!==n[o]){t=e[o],r=n[o];break}return t<r?-1:r<t?1:0}function a(e){return n.Buffer&&"function"===typeof n.Buffer.isBuffer?n.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var i=t("e908"),s=Object.prototype.hasOwnProperty,u=Array.prototype.slice,c=function(){return"foo"===function(){}.name}();function l(e){return Object.prototype.toString.call(e)}function f(e){return!a(e)&&("function"===typeof n.ArrayBuffer&&("function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var d=e.exports=b,p=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(i.isFunction(e)){if(c)return e.name;var n=e.toString(),t=n.match(p);return t&&t[1]}}function g(e,n){return"string"===typeof e?e.length<n?e:e.slice(0,n):e}function y(e){if(c||!i.isFunction(e))return i.inspect(e);var n=h(e),t=n?": "+n:"";return"[Function"+t+"]"}function v(e){return g(y(e.actual),128)+" "+e.operator+" "+g(y(e.expected),128)}function m(e,n,t,r,o){throw new d.AssertionError({message:t,actual:e,expected:n,operator:r,stackStartFunction:o})}function b(e,n){e||m(e,!0,n,"==",d.ok)}function w(e,n,t,r){if(e===n)return!0;if(a(e)&&a(n))return 0===o(e,n);if(i.isDate(e)&&i.isDate(n))return e.getTime()===n.getTime();if(i.isRegExp(e)&&i.isRegExp(n))return e.source===n.source&&e.global===n.global&&e.multiline===n.multiline&&e.lastIndex===n.lastIndex&&e.ignoreCase===n.ignoreCase;if(null!==e&&"object"===typeof e||null!==n&&"object"===typeof n){if(f(e)&&f(n)&&l(e)===l(n)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===o(new Uint8Array(e.buffer),new Uint8Array(n.buffer));if(a(e)!==a(n))return!1;r=r||{actual:[],expected:[]};var s=r.actual.indexOf(e);return-1!==s&&s===r.expected.indexOf(n)||(r.actual.push(e),r.expected.push(n),_(e,n,t,r))}return t?e===n:e==n}function x(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,n,t,r){if(null===e||void 0===e||null===n||void 0===n)return!1;if(i.isPrimitive(e)||i.isPrimitive(n))return e===n;if(t&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(n))return!1;var o=x(e),a=x(n);if(o&&!a||!o&&a)return!1;if(o)return e=u.call(e),n=u.call(n),w(e,n,t);var s,c,l=B(e),f=B(n);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),c=l.length-1;c>=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(s=l[c],!w(e[s],n[s],t,r))return!1;return!0}function k(e,n,t){w(e,n,!0)&&m(e,n,t,"notDeepStrictEqual",k)}function P(e,n){if(!e||!n)return!1;if("[object RegExp]"==Object.prototype.toString.call(n))return n.test(e);try{if(e instanceof n)return!0}catch(t){}return!Error.isPrototypeOf(n)&&!0===n.call({},e)}function S(e){var n;try{e()}catch(t){n=t}return n}function C(e,n,t,r){var o;if("function"!==typeof n)throw new TypeError('"block" argument must be a function');"string"===typeof t&&(r=t,t=null),o=S(n),r=(t&&t.name?" ("+t.name+").":".")+(r?" "+r:"."),e&&!o&&m(o,t,"Missing expected exception"+r);var a="string"===typeof r,s=!e&&i.isError(o),u=!e&&o&&!t;if((s&&a&&P(o,t)||u)&&m(o,t,"Got unwanted exception"+r),e&&o&&t&&!P(o,t)||!e&&o)throw o}function M(e,n){e||m(e,!0,n,"==",M)}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=v(this),this.generatedMessage=!0);var n=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var t=new Error;if(t.stack){var r=t.stack,o=h(n),a=r.indexOf("\n"+o);if(a>=0){var i=r.indexOf("\n",a+1);r=r.substring(i+1)}this.stack=r}}},i.inherits(d.AssertionError,Error),d.fail=m,d.ok=b,d.equal=function(e,n,t){e!=n&&m(e,n,t,"==",d.equal)},d.notEqual=function(e,n,t){e==n&&m(e,n,t,"!=",d.notEqual)},d.deepEqual=function(e,n,t){w(e,n,!1)||m(e,n,t,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,n,t){w(e,n,!0)||m(e,n,t,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,n,t){w(e,n,!1)&&m(e,n,t,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=k,d.strictEqual=function(e,n,t){e!==n&&m(e,n,t,"===",d.strictEqual)},d.notStrictEqual=function(e,n,t){e===n&&m(e,n,t,"!==",d.notStrictEqual)},d.throws=function(e,n,t){C(!0,e,n,t)},d.doesNotThrow=function(e,n,t){C(!1,e,n,t)},d.ifError=function(e){if(e)throw e},d.strict=r(M,d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var B=Object.keys||function(e){var n=[];for(var t in e)s.call(e,t)&&n.push(t);return n}}).call(this,t("d8fc"))},"4f51":function(e,n,t){"use strict";var r=t("7f82"),o=t("8bc5");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},"50b1":function(e,n,t){},5116:function(e,n,t){"use strict";var r=t("c944"),o=t("38b4");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},5229:function(e,n,t){"use strict";var r=t("7f82"),o=t("68de"),a=t("0015"),i=t("fd84"),s=t("ca24"),u=t("5c27"),c=t("191b"),l=t("8dac"),f=t("ac27"),d=t("220a"),p=t("660e"),h=t("6034");e.exports=function(e,n,t){var g=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),v=g?"set":"add",m=o[e],b=m&&m.prototype,w=m,x={},_=function(e){var n=b[e];i(b,e,"add"==e?function(e){return n.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!l(e))&&n.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:n.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!l(e))&&n.call(this,0===e?0:e)}:function(e,t){return n.call(this,0===e?0:e,t),this})},k=a(e,"function"!=typeof m||!(y||b.forEach&&!f((function(){(new m).entries().next()}))));if(k)w=t.getConstructor(n,e,g,v),s.REQUIRED=!0;else if(a(e,!0)){var P=new w,S=P[v](y?{}:-0,1)!=P,C=f((function(){P.has(1)})),M=d((function(e){new m(e)})),B=!y&&f((function(){var e=new m,n=5;while(n--)e[v](n,n);return!e.has(-0)}));M||(w=n((function(n,t){c(n,w,e);var r=h(new m,n,w);return void 0!=t&&u(t,r[v],{that:r,AS_ENTRIES:g}),r})),w.prototype=b,b.constructor=w),(C||B)&&(_("delete"),_("has"),g&&_("get")),(B||S)&&_(v),y&&b.clear&&delete b.clear}return x[e]=w,r({global:!0,forced:w!=m},x),p(w,e),y||t.setStrong(w,e,g),w}},5451:function(e,n,t){var r;(function(o,a,i){var s,u=256,c=6,l=52,f="random",d=i.pow(u,c),p=i.pow(2,l),h=2*p,g=u-1;function y(e,n,t){var r=[];n=1==n?{entropy:!0}:n||{};var o=w(b(n.entropy?[e,_(a)]:null==e?x():e,3),r),s=new v(r),l=function(){var e=s.g(c),n=d,t=0;while(e<p)e=(e+t)*u,n*=u,t=s.g(1);while(e>=h)e/=2,n/=2,t>>>=1;return(e+t)/n};return l.int32=function(){return 0|s.g(4)},l.quick=function(){return s.g(4)/4294967296},l.double=l,w(_(s.S),a),(n.pass||t||function(e,n,t,r){return r&&(r.S&&m(r,s),e.state=function(){return m(s,{})}),t?(i[f]=e,n):e})(l,o,"global"in n?n.global:this==i,n.state)}function v(e){var n,t=e.length,r=this,o=0,a=r.i=r.j=0,i=r.S=[];t||(e=[t++]);while(o<u)i[o]=o++;for(o=0;o<u;o++)i[o]=i[a=g&a+e[o%t]+(n=i[o])],i[a]=n;(r.g=function(e){var n,t=0,o=r.i,a=r.j,i=r.S;while(e--)n=i[o=g&o+1],t=t*u+i[g&(i[o]=i[a=g&a+n])+(i[a]=n)];return r.i=o,r.j=a,t})(u)}function m(e,n){return n.i=e.i,n.j=e.j,n.S=e.S.slice(),n}function b(e,n){var t,r=[],o=typeof e;if(n&&"object"==o)for(t in e)try{r.push(b(e[t],n-1))}catch(a){}return r.length?r:"string"==o?e:e+"\0"}function w(e,n){var t,r=e+"",o=0;while(o<r.length)n[g&o]=g&(t^=19*n[g&o])+r.charCodeAt(o++);return _(n)}function x(){try{var e;return s&&(e=s.randomBytes)?e=e(u):(e=new Uint8Array(u),(o.crypto||o.msCrypto).getRandomValues(e)),_(e)}catch(r){var n=o.navigator,t=n&&n.plugins;return[+new Date,o,t,o.screen,_(a)]}}function _(e){return String.fromCharCode.apply(0,e)}if(w(i.random(),a),e.exports){e.exports=y;try{s=t(0)}catch(k){}}else r=function(){return y}.call(n,t,n,e),void 0===r||(e.exports=r)})("undefined"!==typeof self?self:this,[],Math)},"57ac":function(e,n,t){var r=t("8dac");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},5995:function(e,n,t){"use strict";var r,o,a,i=t("ac27"),s=t("9220"),u=t("ff46"),c=t("129e"),l=t("fd86"),f=t("bd5a"),d=l("iterator"),p=!1,h=function(){return this};[].keys&&(a=[].keys(),"next"in a?(o=s(s(a)),o!==Object.prototype&&(r=o)):p=!0);var g=void 0==r||i((function(){var e={};return r[d].call(e)!==e}));g&&(r={}),f&&!g||c(r,d)||u(r,d,h),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},"5a40":function(e,n,t){var r=t("b168"),o=t("ac27");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())||!Symbol.sham&&r&&r<41}))},"5a63":function(e,n,t){(function(e){var r;(function(e,o,a){function i(e){var n=this,t="";n.x=0,n.y=0,n.z=0,n.w=0,n.next=function(){var e=n.x^n.x<<11;return n.x=n.y,n.y=n.z,n.z=n.w,n.w^=n.w>>>19^e^e>>>8},e===(0|e)?n.x=e:t+=e;for(var r=0;r<t.length+64;r++)n.x^=0|t.charCodeAt(r),n.next()}function s(e,n){return n.x=e.x,n.y=e.y,n.z=e.z,n.w=e.w,n}function u(e,n){var t=new i(e),r=n&&n.state,o=function(){return(t.next()>>>0)/4294967296};return o.double=function(){do{var e=t.next()>>>11,n=(t.next()>>>0)/4294967296,r=(e+n)/(1<<21)}while(0===r);return r},o.int32=t.next,o.quick=o,r&&("object"==typeof r&&s(r,t),o.state=function(){return s(t,{})}),o}o&&o.exports?o.exports=u:t("f9ad")&&t("ba96")?(r=function(){return u}.call(n,t,n,o),void 0===r||(o.exports=r)):this.xor128=u})(0,e,t("f9ad"))}).call(this,t("e55b")(e))},"5b4c":function(e,n,t){var r=t("57ac");e.exports=function(e){var n=e["return"];if(void 0!==n)return r(n.call(e)).value}},"5c27":function(e,n,t){var r=t("57ac"),o=t("6e92"),a=t("43b7"),i=t("6e4e"),s=t("dbf5"),u=t("5b4c"),c=function(e,n){this.stopped=e,this.result=n};e.exports=function(e,n,t){var l,f,d,p,h,g,y,v=t&&t.that,m=!(!t||!t.AS_ENTRIES),b=!(!t||!t.IS_ITERATOR),w=!(!t||!t.INTERRUPTED),x=i(n,v,1+m+w),_=function(e){return l&&u(l),new c(!0,e)},k=function(e){return m?(r(e),w?x(e[0],e[1],_):x(e[0],e[1])):w?x(e,_):x(e)};if(b)l=e;else{if(f=s(e),"function"!=typeof f)throw TypeError("Target is not iterable");if(o(f)){for(d=0,p=a(e.length);p>d;d++)if(h=k(e[d]),h&&h instanceof c)return h;return new c(!1)}l=f.call(e)}g=l.next;while(!(y=g.call(l)).done){try{h=k(y.value)}catch(P){throw u(l),P}if("object"==typeof h&&h&&h instanceof c)return h}return new c(!1)}},6034:function(e,n,t){var r=t("8dac"),o=t("1c11");e.exports=function(e,n,t){var a,i;return o&&"function"==typeof(a=n.constructor)&&a!==t&&r(i=a.prototype)&&i!==t.prototype&&o(e,i),e}},"60cb":function(e,n){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},6210:function(e,n,t){"use strict";var r=t("7f82"),o=t("68de"),a=t("a768"),i=t("bd5a"),s=t("ce17"),u=t("5a40"),c=t("7a4c"),l=t("ac27"),f=t("129e"),d=t("9ebe"),p=t("8dac"),h=t("57ac"),g=t("f246"),y=t("9c0c"),v=t("a9eb"),m=t("9f69"),b=t("e3d0"),w=t("ba28"),x=t("97cc"),_=t("b2a1"),k=t("3df7"),P=t("22b8"),S=t("41d6"),C=t("0ff2"),M=t("ff46"),B=t("fd84"),R=t("448a"),A=t("71d2"),L=t("1061"),O=t("ddc5"),z=t("fd86"),j=t("a081"),D=t("4574"),E=t("660e"),G=t("2673"),T=t("b222").forEach,I=A("hidden"),N="Symbol",U="prototype",K=z("toPrimitive"),F=G.set,W=G.getterFor(N),H=Object[U],V=o.Symbol,Y=a("JSON","stringify"),$=P.f,q=S.f,Z=_.f,J=C.f,X=R("symbols"),Q=R("op-symbols"),ee=R("string-to-symbol-registry"),ne=R("symbol-to-string-registry"),te=R("wks"),re=o.QObject,oe=!re||!re[U]||!re[U].findChild,ae=s&&l((function(){return 7!=b(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(e,n,t){var r=$(H,n);r&&delete H[n],q(e,n,t),r&&e!==H&&q(H,n,r)}:q,ie=function(e,n){var t=X[e]=b(V[U]);return F(t,{type:N,tag:e,description:n}),s||(t.description=n),t},se=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof V},ue=function(e,n,t){e===H&&ue(Q,n,t),h(e);var r=v(n,!0);return h(t),f(X,r)?(t.enumerable?(f(e,I)&&e[I][r]&&(e[I][r]=!1),t=b(t,{enumerable:m(0,!1)})):(f(e,I)||q(e,I,m(1,{})),e[I][r]=!0),ae(e,r,t)):q(e,r,t)},ce=function(e,n){h(e);var t=y(n),r=w(t).concat(he(t));return T(r,(function(n){s&&!fe.call(t,n)||ue(e,n,t[n])})),e},le=function(e,n){return void 0===n?b(e):ce(b(e),n)},fe=function(e){var n=v(e,!0),t=J.call(this,n);return!(this===H&&f(X,n)&&!f(Q,n))&&(!(t||!f(this,n)||!f(X,n)||f(this,I)&&this[I][n])||t)},de=function(e,n){var t=y(e),r=v(n,!0);if(t!==H||!f(X,r)||f(Q,r)){var o=$(t,r);return!o||!f(X,r)||f(t,I)&&t[I][r]||(o.enumerable=!0),o}},pe=function(e){var n=Z(y(e)),t=[];return T(n,(function(e){f(X,e)||f(L,e)||t.push(e)})),t},he=function(e){var n=e===H,t=Z(n?Q:y(e)),r=[];return T(t,(function(e){!f(X,e)||n&&!f(H,e)||r.push(X[e])})),r};if(u||(V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,n=O(e),t=function(e){this===H&&t.call(Q,e),f(this,I)&&f(this[I],n)&&(this[I][n]=!1),ae(this,n,m(1,e))};return s&&oe&&ae(H,n,{configurable:!0,set:t}),ie(n,e)},B(V[U],"toString",(function(){return W(this).tag})),B(V,"withoutSetter",(function(e){return ie(O(e),e)})),C.f=fe,S.f=ue,P.f=de,x.f=_.f=pe,k.f=he,j.f=function(e){return ie(z(e),e)},s&&(q(V[U],"description",{configurable:!0,get:function(){return W(this).description}}),i||B(H,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:V}),T(w(te),(function(e){D(e)})),r({target:N,stat:!0,forced:!u},{for:function(e){var n=String(e);if(f(ee,n))return ee[n];var t=V(n);return ee[n]=t,ne[t]=n,t},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(f(ne,e))return ne[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:le,defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe,getOwnPropertySymbols:he}),r({target:"Object",stat:!0,forced:l((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(g(e))}}),Y){var ge=!u||l((function(){var e=V();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))}));r({target:"JSON",stat:!0,forced:ge},{stringify:function(e,n,t){var r,o=[e],a=1;while(arguments.length>a)o.push(arguments[a++]);if(r=n,(p(n)||void 0!==e)&&!se(e))return d(n)||(n=function(e,n){if("function"==typeof r&&(n=r.call(this,e,n)),!se(n))return n}),o[1]=n,Y.apply(null,o)}})}V[U][K]||M(V[U],K,V[U].valueOf),E(V,N),L[I]=!0},"660e":function(e,n,t){var r=t("41d6").f,o=t("129e"),a=t("fd86"),i=a("toStringTag");e.exports=function(e,n,t){e&&!o(e=t?e:e.prototype,i)&&r(e,i,{configurable:!0,value:n})}},6614:function(e,n,t){var r=t("ce17"),o=t("ac27"),a=t("77cc");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"68de":function(e,n,t){(function(n){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,t("d8fc"))},"6e4e":function(e,n,t){var r=t("1947");e.exports=function(e,n,t){if(r(e),void 0===n)return e;switch(t){case 0:return function(){return e.call(n)};case 1:return function(t){return e.call(n,t)};case 2:return function(t,r){return e.call(n,t,r)};case 3:return function(t,r,o){return e.call(n,t,r,o)}}return function(){return e.apply(n,arguments)}}},"6e92":function(e,n,t){var r=t("fd86"),o=t("4037"),a=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},"70f8":function(e,n,t){"use strict";var r=t("5995").IteratorPrototype,o=t("e3d0"),a=t("9f69"),i=t("660e"),s=t("4037"),u=function(){return this};e.exports=function(e,n,t){var c=n+" Iterator";return e.prototype=o(r,{next:a(1,t)}),i(e,c,!1,!0),s[c]=u,e}},"71d2":function(e,n,t){var r=t("448a"),o=t("ddc5"),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},"727c":function(e,n,t){var r=t("ce17"),o=t("41d6"),a=t("57ac"),i=t("ba28");e.exports=r?Object.defineProperties:function(e,n){a(e);var t,r=i(n),s=r.length,u=0;while(s>u)o.f(e,t=r[u++],n[t]);return e}},7743:function(e,n,t){"use strict";var r=t("2079").charAt;e.exports=function(e,n,t){return n+(t?r(e,n).length:1)}},"77cc":function(e,n,t){var r=t("68de"),o=t("8dac"),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},"7a4c":function(e,n,t){var r=t("5a40");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"7da5":function(e,n,t){var r,o,a;(function(t,i){o=[],r=i,a="function"===typeof r?r.apply(n,o):r,void 0===a||(e.exports=a)})("undefined"!==typeof self&&self,(function(){function e(){var n=Object.getOwnPropertyDescriptor(document,"currentScript");if(!n&&"currentScript"in document&&document.currentScript)return document.currentScript;if(n&&n.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var t,r,o,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,s=a.exec(p.stack)||i.exec(p.stack),u=s&&s[1]||!1,c=s&&s[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");u===l&&(t=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=t.replace(r,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===u)return f[d];if(u===l&&f[d].innerHTML&&f[d].innerHTML.trim()===o)return f[d]}return null}}return e}))},"7f32":function(e,n,t){"use strict";var r=t("fd84"),o=t("57ac"),a=t("ac27"),i=t("9807"),s="toString",u=RegExp.prototype,c=u[s],l=a((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=s;(l||f)&&r(RegExp.prototype,s,(function(){var e=o(this),n=String(e.source),t=e.flags,r=String(void 0===t&&e instanceof RegExp&&!("flags"in u)?i.call(e):t);return"/"+n+"/"+r}),{unsafe:!0})},"7f82":function(e,n,t){var r=t("68de"),o=t("22b8").f,a=t("ff46"),i=t("fd84"),s=t("853a"),u=t("03aa"),c=t("0015");e.exports=function(e,n){var t,l,f,d,p,h,g=e.target,y=e.global,v=e.stat;if(l=y?r:v?r[g]||s(g,{}):(r[g]||{}).prototype,l)for(f in n){if(p=n[f],e.noTargetGet?(h=o(l,f),d=h&&h.value):d=l[f],t=c(y?f:g+(v?".":"#")+f,e.forced),!t&&void 0!==d){if(typeof p===typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&a(p,"sham",!0),i(l,f,p,e)}}},"853a":function(e,n,t){var r=t("68de"),o=t("ff46");e.exports=function(e,n){try{o(r,e,n)}catch(t){r[e]=n}return n}},"85cf":function(e,n,t){"use strict";t("1c52")},"872f":function(e,n,t){"use strict";var r=t("7f82"),o=t("b222").map,a=t("2fb6"),i=a("map");r({target:"Array",proto:!0,forced:!i},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"87ee":function(e,n,t){"use strict";var r=t("6e4e"),o=t("f246"),a=t("f320"),i=t("6e92"),s=t("43b7"),u=t("cba7"),c=t("dbf5");e.exports=function(e){var n,t,l,f,d,p,h=o(e),g="function"==typeof this?this:Array,y=arguments.length,v=y>1?arguments[1]:void 0,m=void 0!==v,b=c(h),w=0;if(m&&(v=r(v,y>2?arguments[2]:void 0,2)),void 0==b||g==Array&&i(b))for(n=s(h.length),t=new g(n);n>w;w++)p=m?v(h[w],w):h[w],u(t,w,p);else for(f=b.call(h),d=f.next,t=new g;!(l=d.call(f)).done;w++)p=m?a(f,v,[l.value,w],!0):l.value,u(t,w,p);return t.length=w,t}},8911:function(e,n){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},"8aac":function(e,n,t){var r=t("68de");e.exports=r},"8bbf":function(n,t){n.exports=e},"8bc0":function(e,n,t){"use strict";var r=t("7f82"),o=t("ff41"),a=t("c678"),i=t("ff3f");r({target:"String",proto:!0,forced:!i("includes")},{includes:function(e){return!!~String(a(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},"8bc5":function(e,n,t){"use strict";var r=t("9807"),o=t("3439"),a=t("448a"),i=RegExp.prototype.exec,s=a("native-string-replace",String.prototype.replace),u=i,c=function(){var e=/a/,n=/b*/g;return i.call(e,"a"),i.call(n,"a"),0!==e.lastIndex||0!==n.lastIndex}(),l=o.UNSUPPORTED_Y||o.BROKEN_CARET,f=void 0!==/()??/.exec("")[1],d=c||f||l;d&&(u=function(e){var n,t,o,a,u=this,d=l&&u.sticky,p=r.call(u),h=u.source,g=0,y=e;return d&&(p=p.replace("y",""),-1===p.indexOf("g")&&(p+="g"),y=String(e).slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==e[u.lastIndex-1])&&(h="(?: "+h+")",y=" "+y,g++),t=new RegExp("^(?:"+h+")",p)),f&&(t=new RegExp("^"+h+"$(?!\\s)",p)),c&&(n=u.lastIndex),o=i.call(d?t:u,y),d?o?(o.input=o.input.slice(g),o[0]=o[0].slice(g),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:c&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),f&&o&&o.length>1&&s.call(o[0],t,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o}),e.exports=u},"8c99":function(e,n,t){var r=t("129e"),o=t("9c0c"),a=t("cd16").indexOf,i=t("1061");e.exports=function(e,n){var t,s=o(e),u=0,c=[];for(t in s)!r(i,t)&&r(s,t)&&c.push(t);while(n.length>u)r(s,t=n[u++])&&(~a(c,t)||c.push(t));return c}},"8dac":function(e,n){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"8e1e":function(e,n,t){"use strict";var r=t("7f82"),o=t("8dac"),a=t("9ebe"),i=t("12aa"),s=t("43b7"),u=t("9c0c"),c=t("cba7"),l=t("fd86"),f=t("2fb6"),d=f("slice"),p=l("species"),h=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,n){var t,r,l,f=u(this),d=s(f.length),y=i(e,d),v=i(void 0===n?d:n,d);if(a(f)&&(t=f.constructor,"function"!=typeof t||t!==Array&&!a(t.prototype)?o(t)&&(t=t[p],null===t&&(t=void 0)):t=void 0,t===Array||void 0===t))return h.call(f,y,v);for(r=new(void 0===t?Array:t)(g(v-y,0)),l=0;y<v;y++,l++)y in f&&c(r,l,f[y]);return r.length=l,r}})},9200:function(e,n,t){var r=t("ac27");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9220:function(e,n,t){var r=t("129e"),o=t("f246"),a=t("71d2"),i=t("d5b1"),s=a("IE_PROTO"),u=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},"92cf":function(e,n,t){e.exports=t.p+"img/undo.208666d2.svg"},9416:function(e,n){"function"===typeof Object.create?e.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,n){e.super_=n;var t=function(){};t.prototype=n.prototype,e.prototype=new t,e.prototype.constructor=e}},9486:function(e,n,t){var r=t("68de"),o=t("dd7c"),a=r.WeakMap;e.exports="function"===typeof a&&/native code/.test(o(a))},"97cc":function(e,n,t){var r=t("8c99"),o=t("338e"),a=o.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},9807:function(e,n,t){"use strict";var r=t("57ac");e.exports=function(){var e=r(this),n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.sticky&&(n+="y"),n}},9876:function(e,n,t){function r(n){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=r=function(e){return typeof e},e.exports["default"]=e.exports,e.exports.__esModule=!0):(e.exports=r=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports["default"]=e.exports,e.exports.__esModule=!0),r(n)}t("6210"),t("4b3e"),t("c981"),t("30b7"),t("ca80"),t("a901"),t("1fba"),e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},"997e":function(e,n,t){e.exports=t.p+"img/help.ba7779cc.svg"},"9b6d":function(e,n,t){"use strict";var r=t("1947"),o=t("8dac"),a=[].slice,i={},s=function(e,n,t){if(!(n in i)){for(var r=[],o=0;o<n;o++)r[o]="a["+o+"]";i[n]=Function("C,a","return new C("+r.join(",")+")")}return i[n](e,t)};e.exports=Function.bind||function(e){var n=r(this),t=a.call(arguments,1),i=function(){var r=t.concat(a.call(arguments));return this instanceof i?s(n,r.length,r):n.apply(e,r)};return o(n.prototype)&&(i.prototype=n.prototype),i}},"9c0c":function(e,n,t){var r=t("2153"),o=t("c678");e.exports=function(e){return r(o(e))}},"9cd8":function(e,n,t){"use strict";var r=t("5229"),o=t("d863");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"9daf":function(e,n,t){"use strict";var r=t("b222").forEach,o=t("d0b1"),a=o("forEach");e.exports=a?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"9ebe":function(e,n,t){var r=t("8911");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"9f62":function(e,n,t){(function(e){var r;(function(e,o,a){function i(e){var n=this;function t(e,n){var t,r=[];if(n===(0|n))r[0]=n;else for(n=""+n,t=0;t<n.length;++t)r[7&t]=r[7&t]<<15^n.charCodeAt(t)+r[t+1&7]<<13;while(r.length<8)r.push(0);for(t=0;t<8&&0===r[t];++t);for(8==t?r[7]=-1:r[t],e.x=r,e.i=0,t=256;t>0;--t)e.next()}n.next=function(){var e,t,r=n.x,o=n.i;return e=r[o],e^=e>>>7,t=e^e<<24,e=r[o+1&7],t^=e^e>>>10,e=r[o+3&7],t^=e^e>>>3,e=r[o+4&7],t^=e^e<<7,e=r[o+7&7],e^=e<<13,t^=e^e<<9,r[o]=t,n.i=o+1&7,t},t(n,e)}function s(e,n){return n.x=e.x.slice(),n.i=e.i,n}function u(e,n){null==e&&(e=+new Date);var t=new i(e),r=n&&n.state,o=function(){return(t.next()>>>0)/4294967296};return o.double=function(){do{var e=t.next()>>>11,n=(t.next()>>>0)/4294967296,r=(e+n)/(1<<21)}while(0===r);return r},o.int32=t.next,o.quick=o,r&&(r.x&&s(r,t),o.state=function(){return s(t,{})}),o}o&&o.exports?o.exports=u:t("f9ad")&&t("ba96")?(r=function(){return u}.call(n,t,n,o),void 0===r||(o.exports=r)):this.xorshift7=u})(0,e,t("f9ad"))}).call(this,t("e55b")(e))},"9f69":function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},"9fd9":function(e,n,t){e.exports=t.p+"img/sound-on.c55edd90.svg"},a081:function(e,n,t){var r=t("fd86");n.f=r},a0e6:function(e,n,t){"use strict";if(t.r(n),"undefined"!==typeof window){var r=window.document.currentScript,o=t("7da5");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(t.p=a[1])}t("0a56"),t("6210"),t("33c5"),t("34ce"),t("df11"),t("3aaf");function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var c=t("16b4"),l=t("8bbf"),f=t.n(l),d=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["game",{fitToScreen:e.preferences.fitToScreen}]},[t("div",{staticClass:"statusBar"},[e._v(" "+e._s(e.getStatusMessage())+" ")]),e._m(0),e._m(1),e.G?t("svg",{staticStyle:{width:"100%"},attrs:{id:"scene",viewBox:e.G.map.viewBox?"0 0 "+e.G.map.viewBox[0]+" "+e.G.map.viewBox[1]:"0 0 1500 800"}},[t("rect",{attrs:{width:"100%",height:"100%",x:"0",y:"0",fill:"yellowgreen"}}),t("PlayerOrder",{ref:"playerOrder",attrs:{transform:"translate("+e.G.map.playerOrderPosition[0]+", "+e.G.map.playerOrderPosition[1]+")",playerColors:e.playerColors}}),t("CityCount",{ref:"cityCount",attrs:{transform:"translate("+e.G.map.cityCountPosition[0]+", "+e.G.map.cityCountPosition[1]+")",playerColors:e.playerColors,citiesToEndGame:e.G.citiesToEndGame,citiesToStep2:e.G.citiesToStep2}}),t("PowerPlantMarket",{ref:"powerPlantMarket",attrs:{transform:"translate("+e.G.map.powerPlantMarketPosition[0]+", "+e.G.map.powerPlantMarketPosition[1]+")",canBid:e.canBid(),canChoose:e.canChoose(),chooseablePowerPlants:e.getChooseablePowerPlants(),cardsLeft:e.G.cardsLeft,minBid:e.G.currentBid+1||e.G.minimunBid,maxBid:e.G.players[e.player]?e.G.players[e.player].money:0,nextCardWeak:e.G.nextCardWeak,plantDiscountActive:e.G.plantDiscountActive},on:{choosePowerPlant:function(n){return e.choosePowerPlant(n)},bid:function(n){return e.bid(n)}}}),t("Map",{ref:"map",attrs:{transform:"translate("+e.G.map.mapPosition[0]+", "+e.G.map.mapPosition[1]+")",playerColors:e.playerColors,cities:e.G.map.cities,connections:e.G.map.connections,polygons:e.G.map.polygons,buildableCities:e.getBuildableCities()},on:{build:function(n){return e.build(n)}}}),t("Resources",{ref:"resources",attrs:{transform:"translate("+e.G.map.supplyPosition[0]+", "+e.G.map.supplyPosition[1]+")",isUsaRecharged:"recharged"==e.G.options.variant&&"USA"==e.G.map.name,isMiddleEast:"Middle East"==e.G.map.name,isIndiaResourceMarket:"India"==e.G.map.name&&e.G.coalPrices&&e.G.garbagePrices&&e.G.uraniumPrices,availableSurplusOil:"Middle East"==e.G.map.name?Math.max(e.G.oilMarket-e.G.oilPrices.filter((function(e){return e>1})).length,0):0,buyableResources:e.buyableResources(),resourceResupply:e.getResourceResupply()},on:{buyResource:function(n){return e.buyResource(n)}}}),t("g",{attrs:{transform:"translate("+e.G.map.roundInfoPosition[0]+", "+e.G.map.roundInfoPosition[1]+")"}},[e.gameEnded(e.G)?[t("Button",{attrs:{transform:"translate(20, 50)",width:130,text:"Final Score"},on:{click:function(n){e.endScoreVisible=!0}}}),e.G.options.trackTotalSpent?[t("Button",{attrs:{transform:"translate(180, 50)",width:120,text:"Game Stats"},on:{click:function(n){e.spendingVisible=!0}}})]:e._e()]:[t("text",{staticStyle:{"font-size":"32px"},attrs:{x:"10",y:"20","font-weight":"600",fill:"black"}},[e._v(" Round: "+e._s(e.G.round)+" ")]),t("text",{staticStyle:{"font-size":"32px"},attrs:{x:"10",y:"60","font-weight":"600",fill:"black"}},[e._v("Step: "+e._s(e.G.step))]),t("text",{staticStyle:{"font-size":"32px"},attrs:{x:"10",y:"100","font-weight":"600",fill:"black"}},[e._v(" Phase: "+e._s(e.G.phase)+" ")])]],2),t("g",{attrs:{transform:"translate("+e.G.map.buttonsPosition[0]+", "+e.G.map.buttonsPosition[1]+")"}},[t("PassButton",{attrs:{transform:"translate(15, 15)",enabled:e.canPass(),highlightButton:e.canPass()&&!e.preferences.disableHelp,text:e.canUndo()?"Done":"Pass"},on:{click:function(n){return e.checkPass()}}}),t("UndoButton",{attrs:{transform:"translate(15, 56)",enabled:e.canUndo(),highlightButton:e.canUndo()&&!e.preferences.disableHelp},on:{click:function(n){return e.undo()}}}),t("LogButton",{attrs:{transform:"translate(15, 97)"},on:{click:function(n){return e.showLog()}}}),t("SoundButton",{attrs:{transform:"translate(110, 13)",isOn:e.preferences.sound},on:{click:function(n){return e.toggleSound()}}}),t("HelpButton",{attrs:{transform:"translate(110, 54)",isOn:!e.preferences.disableHelp},on:{click:function(n){return e.toggleHelp()}}}),t("RulesButton",{attrs:{transform:"translate(110, 95)"},on:{click:function(n){e.rulesVisible=!0}}})],1),e._l(e.adjustedPlayerOrder,(function(n,r){return[t("PlayerBoard",{key:"B"+n,attrs:{transform:"translate("+e.G.map.playerBoardsPosition[0]+", "+(e.G.map.playerBoardsPosition[1]+110*r)+")",player:e.G.players[n],color:e.playerColors[n],avatar:e.avatars[n],owner:n,isCurrentPlayer:e.isCurrentPlayer(n),ended:e.gameEnded(e.G),isPlayer:e.player==n,ranking:e.sortedPlayers.findIndex((function(t){return t.id==e.G.players[n].id}))+1,showMoney:e.player==n||e.gameEnded(e.G)||e.G.options.showMoney,showBid:!e.G.options.fastBid,phase:e.G.phase},on:{powerPlantClick:function(n){return e.powerPlantClick(n)},discardResource:function(n){return e.discardResource(n)}}})]}))],2):e._e(),e.G?t("div",{class:["modal",{visible:e.logVisible}]},[t("div",{staticClass:"modal-content"},[t("span",{staticClass:"close",on:{click:function(n){e.logVisible=!1}}},[e._v("×")]),t("div",{staticClass:"modal-title"},[e._v("Log")]),t("div",{staticClass:"modal-log"},e._l(e.logReversed,(function(n,r){return t("div",{key:"L"+r,staticClass:"log-line",domProps:{innerHTML:e._s(n)}})})),0)])]):e._e(),e.G?t("div",{class:["modal",{visible:e.confirmVisible}]},[t("div",{staticClass:"modal-content"},[t("span",{staticClass:"close",on:{click:function(n){e.confirmVisible=!1}}},[e._v("×")]),t("div",{staticClass:"modal-title"},[e._v("Confirm")]),t("div",{staticClass:"confirm-message"},[e._v(e._s(e.confirmMessage))]),t("div",{staticClass:"confirm-buttons"},[t("button",{staticClass:"confirm-button",on:{click:function(n){return e.confirmPass()}}},[e._v("OK")]),t("button",{staticClass:"confirm-button",on:{click:function(n){e.confirmVisible=!1}}},[e._v("Cancel")])])])]):e._e(),e.G&&e.discardedPowerPlant?t("div",{class:["modal",{visible:e.discardVisible}]},[t("div",{staticClass:"modal-content"},[t("div",{staticClass:"modal-title"},[e._v("Discard Resources")]),t("div",{staticClass:"confirm-message"},[e._v("Choose which resources to discard:")]),e._l(e.resourcesToDiscard,(function(n,r){return t("div",{key:"R"+r,staticClass:"confirm-message",staticStyle:{"text-align":"center"}},[e._v(" "+e._s(n.name)+": "),t("input",{directives:[{name:"model",rawName:"v-model",value:n.value,expression:"r.value"}],staticStyle:{width:"3em"},attrs:{type:"number",min:"0",max:n.max},domProps:{value:n.value},on:{input:function(t){t.target.composing||e.$set(n,"value",t.target.value)}}})])})),t("div",{staticClass:"confirm-buttons"},[t("button",{staticClass:"confirm-button",attrs:{disabled:e.discardInvalid()},on:{click:function(n){return e.confirmDiscard()}}},[e._v("OK")])])],2)]):e._e(),e.G&&e.gameEnded(e.G)?t("div",{class:["modal",{visible:e.endScoreVisible}]},[t("div",{staticClass:"modal-content"},[t("span",{staticClass:"close",on:{click:function(n){e.endScoreVisible=!1}}},[e._v("×")]),t("div",{staticClass:"modal-title"},[e._v("Final Score")]),t("table",{staticClass:"final-score-table"},[t("tr",[e._m(2),e._l(e.sortedPlayers,(function(n){return t("th",{key:"FS"+n.id},[t("div",{style:"background-color: "+e.playerColors[n.id]},[e._v(e._s(n.name))])])}))],2),e._l(["Cities Powered","Money","Total Cities"],(function(n,r){return t("tr",{key:"FC_"+n},[t("td",[e._v(e._s(n))]),e._l(e.sortedPlayers,(function(n){return t("td",{key:"FS"+n.id+r},[t("div",[e._v(" "+e._s(0==r?n.citiesPowered:1==r?n.money:n.cities.length)+" ")])])}))],2)}))],2)])]):e._e(),e.G&&e.gameEnded(e.G)?t("div",{class:["modal",{visible:e.spendingVisible}]},[t("div",{staticClass:"modal-content"},[t("span",{staticClass:"close",on:{click:function(n){e.spendingVisible=!1}}},[e._v("×")]),t("div",{staticClass:"modal-title"},[e._v("Spending")]),t("table",{staticClass:"spending-table"},[t("tr",[e._m(3),e._l(e.sortedPlayers,(function(n){return t("th",{key:"FS"+n.id},[t("div",{style:"background-color: "+e.playerColors[n.id]},[e._v(e._s(n.name))])])}))],2),e._l(["Income","Spending: Cities","Spending: Connections","Spending: Plants","Spending: Resources"],(function(n,r){return t("tr",{key:"FC_"+n},[t("td",[e._v(e._s(n))]),e._l(e.sortedPlayers,(function(n){return t("td",{key:"FS"+n.id+r},[t("div",[e._v(" "+e._s(0==r?n.totalIncome:1==r?n.totalSpentCities:2==r?n.totalSpentConnections:3==r?n.totalSpentPlants:n.totalSpentResources)+" ")])])}))],2)}))],2)])]):e._e(),e.G?t("div",{class:["modal",{visible:e.rulesVisible}]},[t("div",{staticClass:"modal-content"},[t("span",{staticClass:"close",on:{click:function(n){e.rulesVisible=!1}}},[e._v("×")]),t("div",{staticClass:"modal-title"},[e._v("Rules Summary: "+e._s(e.G.map.name))]),t("div",{staticClass:"modal-body"},[e._m(4),t("div",[t("strong",[e._v("Steps:")]),t("ul",[t("li",[t("strong",[e._v("Step 1:")]),t("ul",[e._m(5),t("li",[e._v(" Resource Resupply: "),t("strong",[e._v(e._s(e.G.resourceResupply[0]))])]),e._m(6)])]),t("li",[t("strong",[e._v("Step 2:")]),t("ul",[t("li",[e._v(" Starts after building phase where a player has "),t("strong",[e._v(e._s(e.G.citiesToStep2))]),e._v(" or more cities ")]),e._m(7),t("li",[e._v(" Resource Resupply: "),t("strong",[e._v(e._s(e.G.resourceResupply[1]))])]),e._m(8)])]),t("li",[t("strong",[e._v("Step 3:")]),t("ul",[t("li",[e._v('Starts after the "Step 3" card is drawn from the deck')]),e._m(9),t("li",[e._v(" Resource Resupply: "),t("strong",[e._v(e._s(e.G.resourceResupply[2]))])]),e._m(10),t("li",[e._v("All power plants available for auction")])])])])]),t("div",[e._v(" Game ends after building phase where a player has "),t("strong",[e._v(e._s(e.G.citiesToEndGame))]),e._v(" or more cities."),t("br"),e._v(" The winner is the player that can power the most cities. Money and number of cities built are tiebreakers. ")]),e.G.map.mapSpecificRules?[t("br"),t("div",[t("strong",[e._v("Map Specific Rules:")]),t("br"),t("span",{staticStyle:{"white-space":"pre"}},[e._v(e._s(e.G.map.mapSpecificRules))])])]:e._e(),t("br"),t("div",[t("strong",[e._v("Payment Table")]),t("table",{staticClass:"payment-table"},[t("tr",[e._m(11),e._l(e.G.citiesToEndGame,(function(n){return[t("td",{key:"cities"+n},[e._v(e._s(n-1))])]}))],2),t("tr",[e._m(12),e._l(e.G.citiesToEndGame,(function(n){return[t("td",{key:"payment"+n},[e._v("$"+e._s(e.G.paymentTable[n-1]))])]}))],2)])])],2)])]):e._e()])},p=[function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("audio",{attrs:{id:"piece-drop",preload:"none"}},[r("source",{attrs:{src:t("f168"),type:"audio/mpeg"}})])},function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("audio",{attrs:{id:"notification",preload:"none"}},[r("source",{attrs:{src:t("0be7"),type:"audio/mpeg"}}),r("source",{attrs:{src:t("1cf5"),type:"audio/ogg"}})])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("th",[t("div",[e._v("Player")])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("th",[t("div",[e._v("Player")])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("strong",[e._v("Phases:")]),t("ul",[t("li",[t("strong",[e._v("Determine Turn Order")]),e._v(" by number of cities built and highest power plant owned ")]),t("li",[t("strong",[e._v("Buy Power Plants")]),e._v(" from the actual market (minimun bid is power plant number) ")]),t("li",[t("strong",[e._v("Buy Resources")]),e._v(" in "),t("strong",[e._v("reverse")]),e._v(" turn order from the resource market ")]),t("li",[t("strong",[e._v("Build Cities")]),e._v(" in "),t("strong",[e._v("reverse")]),e._v(" turn order paying "),t("strong",[e._v("10/15/20")]),e._v(" plus connection cost ")]),t("li",[t("strong",[e._v("Bureaucracy:")]),e._v(" spend resources to use power plants, collect money according to cities supplied, resupply resource market ")])])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",[t("strong",[e._v("One")]),e._v(" player per city")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",[e._v("Bureaucracy: remove "),t("strong",[e._v("highest")]),e._v(" power plant from market")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",[t("strong",[e._v("Two")]),e._v(" players per city")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",[e._v("Bureaucracy: remove "),t("strong",[e._v("highest")]),e._v(" power plant from market")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",[t("strong",[e._v("Three")]),e._v(" players per city")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",[e._v("Bureaucracy: remove "),t("strong",[e._v("lowest")]),e._v(" power plant from market")])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("td",[t("strong",[e._v("Cities")])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("td",[t("strong",[e._v("Payment")])])}];function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function g(e){if(Array.isArray(e))return h(e)}t("4b3e"),t("c981"),t("30b7"),t("ca80"),t("a901"),t("1fba"),t("f688");function y(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}t("8e1e"),t("0a0d");function v(e,n){if(e){if("string"===typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,n):void 0}}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e){return g(e)||y(e)||v(e)||m()}function w(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=v(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==t["return"]||t["return"]()}finally{if(s)throw a}}}}function x(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,n,t){return n&&_(e.prototype,n),t&&_(e,t),e}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,n){return S=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},S(e,n)}function C(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&S(e,n)}t("3a9a"),t("24ba");function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function B(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var R=t("9876"),A=t.n(R);function L(e,n){return!n||"object"!==A()(n)&&"function"!==typeof n?P(e):n}function O(e){var n=B();return function(){var t,r=M(e);if(n){var o=M(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return L(this,t)}}t("17ba"),t("3ef7"),t("872f"),t("07de"),t("8bc0"),t("b0d4"),t("0c1b"),t("4f51"),t("b07d");function z(e,n,t,r){var o,a=arguments.length,i=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)i=Reflect.decorate(e,n,t,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(n,t,i):o(n,t))||i);return a>3&&i&&Object.defineProperty(n,t,i),i}Object.create;Object.create;
|
|
21
21
|
/**
|
|
22
22
|
* vue-class-component v7.2.6
|
|
23
23
|
* (c) 2015-present Evan You
|
|
24
24
|
* @license MIT
|
|
25
25
|
*/
|
|
26
|
-
function z(e){return z="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function D(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function E(e){return G(e)||T(e)||I()}function G(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}function T(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function I(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function N(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function U(e,n){K(e,n),Object.getOwnPropertyNames(n.prototype).forEach((function(t){K(e.prototype,n.prototype,t)})),Object.getOwnPropertyNames(n).forEach((function(t){K(e,n,t)}))}function K(e,n,t){var r=t?Reflect.getOwnMetadataKeys(n,t):Reflect.getOwnMetadataKeys(n);r.forEach((function(r){var o=t?Reflect.getOwnMetadata(r,n,t):Reflect.getOwnMetadata(r,n);t?Reflect.defineMetadata(r,o,e,t):Reflect.defineMetadata(r,o,e)}))}var F={__proto__:[]},V=F instanceof Array;function W(e){return function(n,t,r){var o="function"===typeof n?n:n.constructor;o.__decorators__||(o.__decorators__=[]),"number"!==typeof r&&(r=void 0),o.__decorators__.push((function(n){return e(n,t,r)}))}}function H(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return f.a.extend({mixins:n})}function Y(e){var n=z(e);return null==e||"object"!==n&&"function"!==n}function $(e,n){var t=n.prototype._init;n.prototype._init=function(){var n=this,t=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||t.push(r);t.forEach((function(t){Object.defineProperty(n,t,{get:function(){return e[t]},set:function(n){e[t]=n},configurable:!0})}))};var r=new n;n.prototype._init=t;var o={};return Object.keys(r).forEach((function(e){void 0!==r[e]&&(o[e]=r[e])})),o}var q=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function Z(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.name=n.name||e._componentTag||e.name;var t=e.prototype;Object.getOwnPropertyNames(t).forEach((function(e){if("constructor"!==e)if(q.indexOf(e)>-1)n[e]=t[e];else{var r=Object.getOwnPropertyDescriptor(t,e);void 0!==r.value?"function"===typeof r.value?(n.methods||(n.methods={}))[e]=r.value:(n.mixins||(n.mixins=[])).push({data:function(){return D({},e,r.value)}}):(r.get||r.set)&&((n.computed||(n.computed={}))[e]={get:r.get,set:r.set})}})),(n.mixins||(n.mixins=[])).push({data:function(){return $(this,e)}});var r=e.__decorators__;r&&(r.forEach((function(e){return e(n)})),delete e.__decorators__);var o=Object.getPrototypeOf(e.prototype),a=o instanceof f.a?o.constructor:f.a,i=a.extend(n);return X(i,e,a),N()&&U(i,e),i}var J={prototype:!0,arguments:!0,callee:!0,caller:!0};function X(e,n,t){Object.getOwnPropertyNames(n).forEach((function(r){if(!J[r]){var o=Object.getOwnPropertyDescriptor(e,r);if(!o||o.configurable){var a=Object.getOwnPropertyDescriptor(n,r);if(!V){if("cid"===r)return;var i=Object.getOwnPropertyDescriptor(t,r);if(!Y(a.value)&&i&&i.value===a.value)return}0,Object.defineProperty(e,r,a)}}}))}function Q(e){return"function"===typeof e?Z(e):function(n){return Z(n,e)}}Q.registerHooks=function(e){q.push.apply(q,E(e))};var ee=Q,ne="__reactiveInject__";function te(e){return W((function(n,t){"undefined"===typeof n.inject&&(n.inject={}),Array.isArray(n.inject)||(n.inject[t]=e||t)}))}function re(e){return W((function(n,t){if("undefined"===typeof n.inject&&(n.inject={}),!Array.isArray(n.inject)){var r=e?e.from||e:t,o=!!e&&e.default||void 0;n.computed||(n.computed={}),n.computed[t]=function(){var e=this[ne];return e?e[r]:o},n.inject[ne]=ne}}))}function oe(e){var n=function(){var t=this,r="function"===typeof e?e.call(this):e;for(var o in r=Object.create(r||null),r[ne]=this[ne]||{},n.managed)r[n.managed[o]]=this[o];var a=function(e){r[n.managedReactive[e]]=i[e],Object.defineProperty(r[ne],n.managedReactive[e],{enumerable:!0,get:function(){return t[e]}})},i=this;for(var o in n.managedReactive)a(o);return r};return n.managed={},n.managedReactive={},n}function ae(e){return"function"!==typeof e||!e.managed&&!e.managedReactive}function ie(e){return W((function(n,t){var r=n.provide;ae(r)&&(r=n.provide=oe(r)),r.managed[t]=e||t}))}function se(e){return W((function(n,t){var r=n.provide;Array.isArray(n.inject)||(n.inject=n.inject||{},n.inject[ne]={from:ne,default:{}}),ae(r)&&(r=n.provide=oe(r)),r.managedReactive[t]=e||t}))}var ue="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function ce(e,n,t){if(ue&&!Array.isArray(e)&&"function"!==typeof e&&"undefined"===typeof e.type){var r=Reflect.getMetadata("design:type",n,t);r!==Object&&(e.type=r)}}function le(e){return void 0===e&&(e={}),function(n,t){ce(e,n,t),W((function(n,t){(n.props||(n.props={}))[t]=e}))(n,t)}}function fe(e,n){void 0===n&&(n={});var t=n.deep,r=void 0!==t&&t,o=n.immediate,a=void 0!==o&&o;return W((function(n,t){"object"!==typeof n.watch&&(n.watch=Object.create(null));var o=n.watch;"object"!==typeof o[e]||Array.isArray(o[e])?"undefined"===typeof o[e]&&(o[e]=[]):o[e]=[o[e]],o[e].push({handler:t,deep:r,immediate:a})}))}function de(e){return W((function(n,t){n.computed=n.computed||{},n.computed[t]={cache:!1,get:function(){return this.$refs[e||t]}}}))}var pe,he,ge,ye,ve,me=t("0b6f");(function(e){e["Coal"]="coal",e["Oil"]="oil",e["Garbage"]="garbage",e["Uranium"]="uranium"})(pe||(pe={})),function(e){e[e["Coal"]=0]="Coal",e[e["Oil"]=1]="Oil",e[e["Garbage"]=2]="Garbage",e[e["Uranium"]=3]="Uranium",e[e["Hybrid"]=4]="Hybrid",e[e["Wind"]=5]="Wind",e[e["Nuclear"]=6]="Nuclear",e[e["Step3"]=7]="Step3"}(he||(he={})),function(e){e["Order"]="Order",e["Auction"]="Auction",e["Resources"]="Resources",e["Building"]="Building",e["Bureaucracy"]="Bureaucracy",e["GameEnd"]="Game End"}(ge||(ge={})),function(e){e["ChoosePowerPlant"]="ChoosePowerPlant",e["Bid"]="Bid",e["DiscardPowerPlant"]="DiscardPowerPlant",e["DiscardResources"]="DiscardResources",e["BuyResource"]="BuyResource",e["Build"]="Build",e["UsePowerPlant"]="UsePowerPlant",e["Pass"]="Pass",e["Undo"]="Undo"}(ye||(ye={}));var be=(ve={},i(ve,pe.Coal,[1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8]),i(ve,pe.Oil,[1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8]),i(ve,pe.Garbage,[1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8]),i(ve,pe.Uranium,[1,2,3,4,5,6,7,8,10,12,14,16]),ve),we=be;function xe(e,n){var t,r,o={},a=e.log[e.log.length-1];"move"==a.type&&e.currentPlayers.includes(n.id)&&((a.player==n.id&&(null===(t=n.lastMove)||void 0===t?void 0:t.name)!=ye.Pass||e.phase==ge.Bureaucracy&&(null===(r=n.lastMove)||void 0===r?void 0:r.name)==ye.UsePowerPlant)&&(o[ye.Undo]=[!0,!1]));switch(e.phase){case ge.Auction:if(n.powerPlants.length>4||e.players.length>2&&n.powerPlants.length>3)o[ye.DiscardPowerPlant]=n.powerPlants.filter((function(e,t){return t!=n.powerPlants.length-1})).map((function(e){return e.number}));else{var i=[],s=Math.max(0,n.oilLeft-n.oilCapacity);if(n.coalCapacity+n.hybridCapacity<n.coalLeft+s&&i.push(pe.Coal),s=Math.max(0,n.coalLeft-n.coalCapacity),n.oilCapacity+n.hybridCapacity<n.oilLeft+s&&i.push(pe.Oil),n.garbageCapacity<n.garbageLeft&&i.push(pe.Garbage),n.uraniumCapacity<n.uraniumLeft&&i.push(pe.Uranium),i.length>0)o[ye.DiscardResources]=i;else if(void 0==e.chosenPowerPlant){var u=e.actualMarket.filter((function(e){return n.money>=e.number}));if("Spain & Portugal"==e.map.name){var c=n.cities.map((function(n){return e.map.cities.find((function(e){return e.name==n.name}))}));c.every((function(e){return"yellow"==e.region}))&&(u=u.filter((function(e){return e.type!=he.Uranium})))}if("Central Europe"==e.map.name){var l=n.cities.map((function(n){return e.map.cities.find((function(e){return e.name==n.name}))})).filter((function(e){return"green"==e.region||"brown"==e.region||"purple"==e.region}));0==l.length&&(u=u.filter((function(e){return e.type!=he.Uranium})))}u.length>0&&(o[ye.ChoosePowerPlant]=u.map((function(e){return e.number}))),e.round>1&&(o[ye.Pass]=[!0])}else{if(e.options.fastBid?e.minimunBid<=n.money&&(o[ye.Bid]=Object(me["range"])(e.minimunBid,n.money+1)):e.currentBid?e.currentBid<n.money&&(o[ye.Bid]=Object(me["range"])(e.currentBid+1,n.money+1)):o[ye.Bid]=Object(me["range"])(e.minimunBid,n.money+1),"Spain & Portugal"==e.map.name){var f=n.cities.map((function(n){return e.map.cities.find((function(e){return e.name==n.name}))}));f.every((function(e){return"yellow"==e.region}))&&e.chosenPowerPlant.type==he.Uranium&&(o[ye.Bid]=void 0)}if("Central Europe"==e.map.name){var d=n.cities.map((function(n){return e.map.cities.find((function(e){return e.name==n.name}))})).filter((function(e){return"green"==e.region||"brown"==e.region||"purple"==e.region}));0==d.length&&e.chosenPowerPlant.type==he.Uranium&&(o[ye.Bid]=void 0)}e.options.fastBid?n.id!=e.auctioningPlayer&&(o[ye.Pass]=[!0]):null!=e.currentBid&&(o[ye.Pass]=[!0])}}break;case ge.Resources:if("India"==e.map.name&&void 0!==e.chosenResource){o[ye.Pass]=[!0];break}var p,h=[];if(p=e.map.maxPriceAvailable?e.map.maxPriceAvailable[e.step-1]:16,e.coalMarket>0){var g,y=n.hybridCapacity>0?Math.max(0,n.oilLeft-n.oilCapacity):0,v=null!==(g=e.coalPrices)&&void 0!==g?g:we[pe.Coal],m=v[v.length-e.coalMarket];n.money>=m&&n.coalCapacity+n.hybridCapacity>y+n.coalLeft&&m<=p&&h.push({resource:pe.Coal})}else if("recharged"==e.options.variant&&"USA"==e.map.name&&e.coalSupply>0){var b=n.hybridCapacity>0?Math.max(0,n.oilLeft-n.oilCapacity):0;n.money>=8&&n.coalCapacity+n.hybridCapacity>b+n.coalLeft&&h.push({resource:pe.Coal})}if(e.oilMarket>0){var w,x=n.hybridCapacity>0?Math.max(0,n.coalLeft-n.coalCapacity):0,_=null!==(w=e.oilPrices)&&void 0!==w?w:we[pe.Oil],k=_[_.length-e.oilMarket];n.money>=k&&n.oilCapacity+n.hybridCapacity>x+n.oilLeft&&k<=p&&h.push({resource:pe.Oil})}if(e.garbageMarket>0){var P,S=null!==(P=e.garbagePrices)&&void 0!==P?P:we[pe.Garbage],C=S[S.length-e.garbageMarket];if("Central Europe"==e.map.name){var M=n.cities.filter((function(e){return"Wien"==e.name}));(null===M||void 0===M?void 0:M.length)>0&&C--}n.money>=C&&n.garbageCapacity>n.garbageLeft&&C<=p&&h.push({resource:pe.Garbage})}if(e.uraniumMarket>0){var B,A=null!==(B=e.uraniumPrices)&&void 0!==B?B:we[pe.Uranium],R=A[A.length-e.uraniumMarket];n.money>=R&&n.uraniumCapacity>n.uraniumLeft&&R<=p&&h.push({resource:pe.Uranium})}h.length>0&&(o[ye.BuyResource]=h),o[ye.Pass]=[!0];break;case ge.Building:if(n.cities.length<21){var L=0==n.cities.length?e.map.cities.map((function(e){return{name:e.name,price:0}})):_e(e,n).map((function(e){return{name:e.name,price:e.price}}));L.forEach((function(t){var r=e.players.filter((function(e){return e.cities.find((function(e){return t.name==e.name}))})).length;t.price+=10+5*r,r==e.step&&(t.price=9999),n.cities.find((function(e){return e.name==t.name}))&&(t.price=9999)})),L=L.filter((function(e){return e.price<=n.money})),L.length>0&&(o[ye.Build]=L)}o[ye.Pass]=[!0];break;case ge.Bureaucracy:var O=[];n.powerPlants.forEach((function(e){if(n.powerPlantsNotUsed.includes(e.number))switch(e.type){case he.Coal:n.coalLeft>=e.cost&&O.push({powerPlant:e.number,resourcesSpent:new Array(e.cost).fill(pe.Coal),citiesPowered:e.citiesPowered});break;case he.Oil:n.oilLeft>=e.cost&&O.push({powerPlant:e.number,resourcesSpent:new Array(e.cost).fill(pe.Oil),citiesPowered:e.citiesPowered});break;case he.Garbage:n.garbageLeft>=e.cost&&O.push({powerPlant:e.number,resourcesSpent:new Array(e.cost).fill(pe.Garbage),citiesPowered:e.citiesPowered});break;case he.Uranium:n.uraniumLeft>=e.cost&&O.push({powerPlant:e.number,resourcesSpent:new Array(e.cost).fill(pe.Uranium),citiesPowered:e.citiesPowered});break;case he.Wind:case he.Nuclear:O.push({powerPlant:e.number,resourcesSpent:[],citiesPowered:e.citiesPowered});break;case he.Hybrid:var t;if(n.coalLeft+n.oilLeft>=e.cost)t=1==e.cost?[[pe.Coal],[pe.Oil]]:2==e.cost?[[pe.Coal,pe.Coal],[pe.Coal,pe.Oil],[pe.Oil,pe.Oil]]:[[pe.Coal,pe.Coal,pe.Coal],[pe.Coal,pe.Coal,pe.Oil],[pe.Coal,pe.Oil,pe.Oil],[pe.Oil,pe.Oil,pe.Oil]],t.forEach((function(t){t.filter((function(e){return e==pe.Coal})).length<=n.coalLeft&&t.filter((function(e){return e==pe.Oil})).length<=n.oilLeft&&O.push({powerPlant:e.number,resourcesSpent:t,citiesPowered:e.citiesPowered})}))}})),O.length>0&&(o[ye.UsePowerPlant]=O),("India"!=e.map.name||n.citiesPowered>=n.targetCitiesPowered||n.isAI)&&(o[ye.Pass]=[!0]);break}return o}function _e(e,n){var t=e.map.cities.map((function(e){return{name:e.name,price:n.cities.find((function(n){return n.name==e.name}))?0:9999,visited:!1}})),r=t.find((function(e){return e.name==n.cities[0].name}));r.price=0;while(t.some((function(e){return!e.visited}))){var o=e.map.connections.filter((function(e){return e.nodes.includes(r.name)}));if(o.forEach((function(e){var o=e.nodes.filter((function(e){return e!=r.name}))[0],a=t.find((function(e){return e.name==o})),i=n.cities.find((function(e){return e.name==a.name}))?0:r.price+e.cost;!a.visited&&a.price>i&&(a.price=i)})),r.visited=!0,!t.some((function(e){return!e.visited})))break;if(r=t.reduce((function(e,n){return e.visited?n:n.visited||e.price<=n.price?e:n})),r.price>n.money)break}return t}t("a516"),t("7f32"),t("ec9f"),t("22ea"),t("da71"),t("4311");var ke,Pe,Se=t("4cd2"),Ce=t.n(Se),Me=t("3a04"),Be=t.n(Me);(function(e){e["Purple"]="purple",e["Green"]="green",e["Red"]="red",e["Yellow"]="yellow",e["Cyan"]="cyan",e["Brown"]="brown"})(ke||(ke={})),function(e){e["Seattle"]="Seattle",e["Portland"]="Portland",e["Boise"]="Boise",e["Billings"]="Billings",e["Cheyenne"]="Cheyenne",e["Denver"]="Denver",e["Omaha"]="Omaha",e["SanFrancisco"]="San Francisco",e["LosAngeles"]="Los Angeles",e["SanDiego"]="San Diego",e["LasVegas"]="Las Vegas",e["SaltLakeCity"]="Salt Lake City",e["Phoenix"]="Phoenix",e["SantaFe"]="Santa Fe",e["KansasCity"]="Kansas City",e["OklahomaCity"]="Oklahoma City",e["Dallas"]="Dallas",e["Houston"]="Houston",e["Memphis"]="Memphis",e["Birmingham"]="Birmingham",e["NewOrleans"]="New Orleans",e["Fargo"]="Fargo",e["Duluth"]="Duluth",e["Minneapolis"]="Minneapolis",e["Chicago"]="Chicago",e["StLouis"]="St. Louis",e["Cincinnati"]="Cincinnati",e["Knoxvile"]="Knoxvile",e["Detroit"]="Detroit",e["Buffalo"]="Buffalo",e["Pittsburgh"]="Pittsburgh",e["Boston"]="Boston",e["NewYork"]="New York",e["Philadelphia"]="Philadelphia",e["Washington"]="Washington",e["Norfolk"]="Norfolk",e["Raleigh"]="Raleigh",e["Atlanta"]="Atlanta",e["Savannah"]="Savannah",e["Jacksonvile"]="Jacksonvile",e["Tampa"]="Tampa",e["Miami"]="Miami"}(Pe||(Pe={}));var Ae,Re,Le={name:"USA",cities:[{name:Pe.Seattle,region:ke.Purple,x:74,y:99},{name:Pe.Portland,region:ke.Purple,x:45,y:167},{name:Pe.Boise,region:ke.Purple,x:180,y:220},{name:Pe.Billings,region:ke.Purple,x:345,y:180},{name:Pe.Cheyenne,region:ke.Purple,x:410,y:280},{name:Pe.Denver,region:ke.Purple,x:400,y:333},{name:Pe.Omaha,region:ke.Purple,x:566,y:293},{name:Pe.SanFrancisco,region:ke.Cyan,x:48,y:371},{name:Pe.LosAngeles,region:ke.Cyan,x:116,y:460},{name:Pe.SanDiego,region:ke.Cyan,x:157,y:507},{name:Pe.LasVegas,region:ke.Cyan,x:200,y:410},{name:Pe.SaltLakeCity,region:ke.Cyan,x:266,y:311},{name:Pe.Phoenix,region:ke.Cyan,x:260,y:486},{name:Pe.SantaFe,region:ke.Cyan,x:371,y:435},{name:Pe.KansasCity,region:ke.Red,x:587,y:356},{name:Pe.OklahomaCity,region:ke.Red,x:550,y:437},{name:Pe.Dallas,region:ke.Red,x:560,y:504},{name:Pe.Houston,region:ke.Red,x:569,y:571},{name:Pe.Memphis,region:ke.Red,x:678,y:449},{name:Pe.Birmingham,region:ke.Red,x:739,y:486},{name:Pe.NewOrleans,region:ke.Red,x:674,y:570},{name:Pe.Fargo,region:ke.Yellow,x:551,y:152},{name:Pe.Duluth,region:ke.Yellow,x:637,y:133},{name:Pe.Minneapolis,region:ke.Yellow,x:621,y:190},{name:Pe.Chicago,region:ke.Yellow,x:716,y:281},{name:Pe.StLouis,region:ke.Yellow,x:678,y:362},{name:Pe.Cincinnati,region:ke.Yellow,x:795,y:348},{name:Pe.Knoxvile,region:ke.Yellow,x:796,y:422},{name:Pe.Detroit,region:ke.Brown,x:803,y:262},{name:Pe.Buffalo,region:ke.Brown,x:913,y:251},{name:Pe.Pittsburgh,region:ke.Brown,x:884,y:316},{name:Pe.Boston,region:ke.Brown,x:1052,y:252},{name:Pe.NewYork,region:ke.Brown,x:1010,y:290},{name:Pe.Philadelphia,region:ke.Brown,x:985,y:330},{name:Pe.Washington,region:ke.Brown,x:934,y:357},{name:Pe.Norfolk,region:ke.Green,x:969,y:405},{name:Pe.Raleigh,region:ke.Green,x:915,y:437},{name:Pe.Atlanta,region:ke.Green,x:801,y:487},{name:Pe.Savannah,region:ke.Green,x:867,y:507},{name:Pe.Jacksonvile,region:ke.Green,x:861,y:559},{name:Pe.Tampa,region:ke.Green,x:819,y:621},{name:Pe.Miami,region:ke.Green,x:883,y:670}],connections:[{nodes:[Pe.Seattle,Pe.Portland],cost:3},{nodes:[Pe.Seattle,Pe.Boise],cost:12},{nodes:[Pe.Seattle,Pe.Billings],cost:9},{nodes:[Pe.Portland,Pe.Boise],cost:13},{nodes:[Pe.Portland,Pe.SanFrancisco],cost:24},{nodes:[Pe.Boise,Pe.Billings],cost:12},{nodes:[Pe.Boise,Pe.Cheyenne],cost:24},{nodes:[Pe.Boise,Pe.SanFrancisco],cost:23},{nodes:[Pe.Boise,Pe.SaltLakeCity],cost:8},{nodes:[Pe.Billings,Pe.Cheyenne],cost:9},{nodes:[Pe.Billings,Pe.Fargo],cost:17},{nodes:[Pe.Billings,Pe.Minneapolis],cost:18},{nodes:[Pe.Cheyenne,Pe.Denver],cost:0},{nodes:[Pe.Cheyenne,Pe.Omaha],cost:14},{nodes:[Pe.Cheyenne,Pe.Minneapolis],cost:18},{nodes:[Pe.Denver,Pe.SaltLakeCity],cost:21},{nodes:[Pe.Denver,Pe.SantaFe],cost:13},{nodes:[Pe.Denver,Pe.KansasCity],cost:16},{nodes:[Pe.Omaha,Pe.KansasCity],cost:5},{nodes:[Pe.Omaha,Pe.Minneapolis],cost:8},{nodes:[Pe.Omaha,Pe.Chicago],cost:13},{nodes:[Pe.SanFrancisco,Pe.LosAngeles],cost:9},{nodes:[Pe.SanFrancisco,Pe.LasVegas],cost:14},{nodes:[Pe.SanFrancisco,Pe.SaltLakeCity],cost:27},{nodes:[Pe.LosAngeles,Pe.SanDiego],cost:3},{nodes:[Pe.LosAngeles,Pe.LasVegas],cost:9},{nodes:[Pe.SanDiego,Pe.LasVegas],cost:9},{nodes:[Pe.SanDiego,Pe.Phoenix],cost:14},{nodes:[Pe.LasVegas,Pe.SaltLakeCity],cost:18},{nodes:[Pe.LasVegas,Pe.Phoenix],cost:15},{nodes:[Pe.LasVegas,Pe.SantaFe],cost:27},{nodes:[Pe.SaltLakeCity,Pe.SantaFe],cost:28},{nodes:[Pe.Phoenix,Pe.SantaFe],cost:18},{nodes:[Pe.SantaFe,Pe.KansasCity],cost:16},{nodes:[Pe.SantaFe,Pe.OklahomaCity],cost:15},{nodes:[Pe.SantaFe,Pe.Dallas],cost:16},{nodes:[Pe.SantaFe,Pe.Houston],cost:21},{nodes:[Pe.KansasCity,Pe.OklahomaCity],cost:8},{nodes:[Pe.KansasCity,Pe.Memphis],cost:12},{nodes:[Pe.KansasCity,Pe.Chicago],cost:8},{nodes:[Pe.KansasCity,Pe.StLouis],cost:6},{nodes:[Pe.OklahomaCity,Pe.Dallas],cost:3},{nodes:[Pe.OklahomaCity,Pe.Memphis],cost:14},{nodes:[Pe.Dallas,Pe.Houston],cost:5},{nodes:[Pe.Dallas,Pe.Memphis],cost:12},{nodes:[Pe.Dallas,Pe.NewOrleans],cost:12},{nodes:[Pe.Houston,Pe.NewOrleans],cost:8},{nodes:[Pe.Memphis,Pe.Birmingham],cost:6},{nodes:[Pe.Memphis,Pe.NewOrleans],cost:7},{nodes:[Pe.Memphis,Pe.StLouis],cost:7},{nodes:[Pe.Birmingham,Pe.NewOrleans],cost:11},{nodes:[Pe.Birmingham,Pe.Atlanta],cost:3},{nodes:[Pe.Birmingham,Pe.Jacksonvile],cost:9},{nodes:[Pe.NewOrleans,Pe.Jacksonvile],cost:16},{nodes:[Pe.Fargo,Pe.Duluth],cost:6},{nodes:[Pe.Fargo,Pe.Minneapolis],cost:6},{nodes:[Pe.Duluth,Pe.Minneapolis],cost:5},{nodes:[Pe.Duluth,Pe.Chicago],cost:12},{nodes:[Pe.Duluth,Pe.Detroit],cost:15},{nodes:[Pe.Minneapolis,Pe.Chicago],cost:8},{nodes:[Pe.Chicago,Pe.StLouis],cost:10},{nodes:[Pe.Chicago,Pe.Cincinnati],cost:7},{nodes:[Pe.Chicago,Pe.Detroit],cost:7},{nodes:[Pe.StLouis,Pe.Cincinnati],cost:12},{nodes:[Pe.StLouis,Pe.Atlanta],cost:12},{nodes:[Pe.Cincinnati,Pe.Knoxvile],cost:6},{nodes:[Pe.Cincinnati,Pe.Detroit],cost:4},{nodes:[Pe.Cincinnati,Pe.Pittsburgh],cost:7},{nodes:[Pe.Cincinnati,Pe.Raleigh],cost:15},{nodes:[Pe.Knoxvile,Pe.Atlanta],cost:5},{nodes:[Pe.Detroit,Pe.Buffalo],cost:7},{nodes:[Pe.Detroit,Pe.Pittsburgh],cost:6},{nodes:[Pe.Buffalo,Pe.Pittsburgh],cost:7},{nodes:[Pe.Buffalo,Pe.NewYork],cost:8},{nodes:[Pe.Pittsburgh,Pe.Washington],cost:6},{nodes:[Pe.Pittsburgh,Pe.Raleigh],cost:7},{nodes:[Pe.Boston,Pe.NewYork],cost:3},{nodes:[Pe.NewYork,Pe.Philadelphia],cost:0},{nodes:[Pe.Philadelphia,Pe.Washington],cost:3},{nodes:[Pe.Washington,Pe.Norfolk],cost:5},{nodes:[Pe.Norfolk,Pe.Raleigh],cost:3},{nodes:[Pe.Raleigh,Pe.Atlanta],cost:7},{nodes:[Pe.Raleigh,Pe.Savannah],cost:7},{nodes:[Pe.Atlanta,Pe.Savannah],cost:7},{nodes:[Pe.Savannah,Pe.Jacksonvile],cost:0},{nodes:[Pe.Jacksonvile,Pe.Tampa],cost:4},{nodes:[Pe.Tampa,Pe.Miami],cost:4}],layout:"Landscape",polygons:[{region:ke.Brown,points:[[930,423],[1082,331],[1075,231],[716,249],[758,303],[897,406]]},{region:ke.Green,points:[[898,405],[762,499],[758,643],[887,744],[938,688],[889,618],[1014,432],[985,387],[929,420]]},{region:ke.Yellow,points:[[895,403],[760,499],[630,393],[607,345],[608,275],[439,162],[654,114],[771,245],[716,247],[758,301]]},{region:ke.Red,points:[[606,344],[476,371],[445,597],[546,664],[758,641],[760,497],[629,391]]},{region:ke.Purple,points:[[606,342],[476,369],[347,395],[313,301],[18,287],[18,165],[76,74],[438,160],[607,275]]},{region:ke.Cyan,points:[[18,285],[20,429],[142,583],[445,594],[476,368],[346,392],[312,300]]}]},Oe={name:"USA",cities:[{name:Pe.Seattle,region:ke.Purple,x:74,y:99},{name:Pe.Portland,region:ke.Purple,x:45,y:167},{name:Pe.Boise,region:ke.Purple,x:180,y:220},{name:Pe.Billings,region:ke.Purple,x:345,y:180},{name:Pe.Cheyenne,region:ke.Purple,x:410,y:280},{name:Pe.Denver,region:ke.Purple,x:400,y:333},{name:Pe.Omaha,region:ke.Purple,x:566,y:293},{name:Pe.SanFrancisco,region:ke.Cyan,x:48,y:371},{name:Pe.LosAngeles,region:ke.Cyan,x:116,y:460},{name:Pe.SanDiego,region:ke.Cyan,x:157,y:507},{name:Pe.LasVegas,region:ke.Cyan,x:200,y:410},{name:Pe.SaltLakeCity,region:ke.Cyan,x:266,y:311},{name:Pe.Phoenix,region:ke.Cyan,x:260,y:486},{name:Pe.SantaFe,region:ke.Cyan,x:371,y:435},{name:Pe.KansasCity,region:ke.Red,x:587,y:356},{name:Pe.OklahomaCity,region:ke.Red,x:550,y:437},{name:Pe.Dallas,region:ke.Red,x:560,y:504},{name:Pe.Houston,region:ke.Red,x:569,y:571},{name:Pe.Memphis,region:ke.Red,x:678,y:449},{name:Pe.Birmingham,region:ke.Red,x:739,y:486},{name:Pe.NewOrleans,region:ke.Red,x:674,y:570},{name:Pe.Fargo,region:ke.Yellow,x:551,y:152},{name:Pe.Duluth,region:ke.Yellow,x:637,y:133},{name:Pe.Minneapolis,region:ke.Yellow,x:621,y:190},{name:Pe.Chicago,region:ke.Yellow,x:716,y:281},{name:Pe.StLouis,region:ke.Yellow,x:678,y:362},{name:Pe.Cincinnati,region:ke.Yellow,x:795,y:348},{name:Pe.Knoxvile,region:ke.Yellow,x:796,y:422},{name:Pe.Detroit,region:ke.Brown,x:803,y:262},{name:Pe.Buffalo,region:ke.Brown,x:913,y:251},{name:Pe.Pittsburgh,region:ke.Brown,x:884,y:316},{name:Pe.Boston,region:ke.Brown,x:1052,y:252},{name:Pe.NewYork,region:ke.Brown,x:1010,y:290},{name:Pe.Philadelphia,region:ke.Brown,x:985,y:330},{name:Pe.Washington,region:ke.Brown,x:934,y:357},{name:Pe.Norfolk,region:ke.Green,x:969,y:405},{name:Pe.Raleigh,region:ke.Green,x:915,y:437},{name:Pe.Atlanta,region:ke.Green,x:801,y:487},{name:Pe.Savannah,region:ke.Green,x:867,y:507},{name:Pe.Jacksonvile,region:ke.Green,x:861,y:559},{name:Pe.Tampa,region:ke.Green,x:819,y:621},{name:Pe.Miami,region:ke.Green,x:883,y:670}],connections:[{nodes:[Pe.Seattle,Pe.Portland],cost:3},{nodes:[Pe.Seattle,Pe.Boise],cost:12},{nodes:[Pe.Seattle,Pe.Billings],cost:9},{nodes:[Pe.Portland,Pe.Boise],cost:13},{nodes:[Pe.Portland,Pe.SanFrancisco],cost:24},{nodes:[Pe.Boise,Pe.Billings],cost:12},{nodes:[Pe.Boise,Pe.SanFrancisco],cost:23},{nodes:[Pe.Boise,Pe.SaltLakeCity],cost:8},{nodes:[Pe.Billings,Pe.Cheyenne],cost:9},{nodes:[Pe.Billings,Pe.Fargo],cost:17},{nodes:[Pe.Billings,Pe.Minneapolis],cost:18},{nodes:[Pe.Cheyenne,Pe.Denver],cost:0},{nodes:[Pe.Cheyenne,Pe.Omaha],cost:14},{nodes:[Pe.Cheyenne,Pe.Minneapolis],cost:18},{nodes:[Pe.Denver,Pe.SaltLakeCity],cost:21},{nodes:[Pe.Denver,Pe.SantaFe],cost:13},{nodes:[Pe.Denver,Pe.KansasCity],cost:16},{nodes:[Pe.Omaha,Pe.KansasCity],cost:5},{nodes:[Pe.Omaha,Pe.Minneapolis],cost:8},{nodes:[Pe.Omaha,Pe.Chicago],cost:12},{nodes:[Pe.SanFrancisco,Pe.LosAngeles],cost:9},{nodes:[Pe.SanFrancisco,Pe.LasVegas],cost:14},{nodes:[Pe.SanFrancisco,Pe.SaltLakeCity],cost:27},{nodes:[Pe.LosAngeles,Pe.SanDiego],cost:3},{nodes:[Pe.LosAngeles,Pe.LasVegas],cost:9},{nodes:[Pe.SanDiego,Pe.LasVegas],cost:9},{nodes:[Pe.SanDiego,Pe.Phoenix],cost:14},{nodes:[Pe.LasVegas,Pe.SaltLakeCity],cost:18},{nodes:[Pe.LasVegas,Pe.Phoenix],cost:15},{nodes:[Pe.LasVegas,Pe.SantaFe],cost:27},{nodes:[Pe.SaltLakeCity,Pe.SantaFe],cost:28},{nodes:[Pe.Phoenix,Pe.SantaFe],cost:18},{nodes:[Pe.SantaFe,Pe.KansasCity],cost:16},{nodes:[Pe.SantaFe,Pe.OklahomaCity],cost:15},{nodes:[Pe.SantaFe,Pe.Dallas],cost:16},{nodes:[Pe.SantaFe,Pe.Houston],cost:20},{nodes:[Pe.KansasCity,Pe.OklahomaCity],cost:8},{nodes:[Pe.KansasCity,Pe.Memphis],cost:12},{nodes:[Pe.KansasCity,Pe.Chicago],cost:8},{nodes:[Pe.KansasCity,Pe.StLouis],cost:6},{nodes:[Pe.OklahomaCity,Pe.Dallas],cost:3},{nodes:[Pe.OklahomaCity,Pe.Memphis],cost:14},{nodes:[Pe.Dallas,Pe.Houston],cost:5},{nodes:[Pe.Dallas,Pe.Memphis],cost:12},{nodes:[Pe.Dallas,Pe.NewOrleans],cost:12},{nodes:[Pe.Houston,Pe.NewOrleans],cost:8},{nodes:[Pe.Memphis,Pe.Birmingham],cost:6},{nodes:[Pe.Memphis,Pe.NewOrleans],cost:7},{nodes:[Pe.Memphis,Pe.StLouis],cost:7},{nodes:[Pe.Birmingham,Pe.NewOrleans],cost:11},{nodes:[Pe.Birmingham,Pe.Atlanta],cost:3},{nodes:[Pe.Birmingham,Pe.Jacksonvile],cost:9},{nodes:[Pe.NewOrleans,Pe.Jacksonvile],cost:16},{nodes:[Pe.Fargo,Pe.Duluth],cost:6},{nodes:[Pe.Fargo,Pe.Minneapolis],cost:6},{nodes:[Pe.Duluth,Pe.Minneapolis],cost:5},{nodes:[Pe.Duluth,Pe.Chicago],cost:12},{nodes:[Pe.Duluth,Pe.Detroit],cost:15},{nodes:[Pe.Minneapolis,Pe.Chicago],cost:8},{nodes:[Pe.Chicago,Pe.StLouis],cost:10},{nodes:[Pe.Chicago,Pe.Cincinnati],cost:7},{nodes:[Pe.Chicago,Pe.Detroit],cost:7},{nodes:[Pe.StLouis,Pe.Cincinnati],cost:12},{nodes:[Pe.StLouis,Pe.Atlanta],cost:12},{nodes:[Pe.Cincinnati,Pe.Knoxvile],cost:6},{nodes:[Pe.Cincinnati,Pe.Detroit],cost:4},{nodes:[Pe.Cincinnati,Pe.Pittsburgh],cost:7},{nodes:[Pe.Knoxvile,Pe.Atlanta],cost:5},{nodes:[Pe.Knoxvile,Pe.Raleigh],cost:11},{nodes:[Pe.Detroit,Pe.Buffalo],cost:7},{nodes:[Pe.Detroit,Pe.Pittsburgh],cost:6},{nodes:[Pe.Buffalo,Pe.Pittsburgh],cost:7},{nodes:[Pe.Buffalo,Pe.NewYork],cost:8},{nodes:[Pe.Pittsburgh,Pe.Washington],cost:6},{nodes:[Pe.Pittsburgh,Pe.Raleigh],cost:7},{nodes:[Pe.Boston,Pe.NewYork],cost:3},{nodes:[Pe.NewYork,Pe.Philadelphia],cost:0},{nodes:[Pe.Philadelphia,Pe.Washington],cost:3},{nodes:[Pe.Washington,Pe.Norfolk],cost:5},{nodes:[Pe.Norfolk,Pe.Raleigh],cost:3},{nodes:[Pe.Raleigh,Pe.Atlanta],cost:7},{nodes:[Pe.Raleigh,Pe.Savannah],cost:7},{nodes:[Pe.Atlanta,Pe.Savannah],cost:7},{nodes:[Pe.Savannah,Pe.Jacksonvile],cost:0},{nodes:[Pe.Jacksonvile,Pe.Tampa],cost:4},{nodes:[Pe.Tampa,Pe.Miami],cost:4}],layout:"Landscape",mapSpecificRules:"You can buy coal from the supply for $8."};(function(e){e["Green"]="green",e["Brown"]="brown",e["Yellow"]="yellow",e["Red"]="red",e["Blue"]="blue"})(Ae||(Ae={})),function(e){e["Groningen"]="Groningen",e["Enschede"]="Enschede",e["Apeldoorn"]="Apeldoorn",e["Arnhem"]="Arnhem",e["Leeuwarden"]="Leeuwarden",e["Nijmegen"]="Nijmegen",e["Denhelder"]="Den Helder",e["Zaanstad"]="Zaanstad",e["Amsterdam"]="Amsterdam",e["Utrecht"]="Utrecht",e["Haarlem"]="Haarlem",e["Leiden"]="Leiden",e["Denhaas"]="Den Haas",e["Rotterdam"]="Rotterdam",e["Enbosch"]="En Bosch",e["Venlo"]="Venlo",e["Eindhoven"]="Eindhoven",e["Tilburg"]="Tilburg",e["Breda"]="Breda",e["Middelburg"]="Middelburg",e["Maastricht"]="Maastricht",e["Leuven"]="Leuven",e["Brussel"]="Brussel",e["Antwerpen"]="Antwerpen",e["Gent"]="Gent",e["Kortrijk"]="Kortrijk",e["Brugge"]="Brugge",e["Dostende"]="Dostende",e["Liege"]="Liege",e["Namur"]="Namur",e["Bruxelles"]="Bruxelles",e["Charleroi"]="Charleroi",e["Mons"]="Mons",e["Arlon"]="Arlon",e["Luxembourg"]="Luxembourg"}(Re||(Re={}));var je={name:"Benelux",cities:[{name:Re.Groningen,region:Ae.Green,x:654,y:147},{name:Re.Enschede,region:Ae.Green,x:659,y:369},{name:Re.Apeldoorn,region:Ae.Green,x:552,y:329},{name:Re.Arnhem,region:Ae.Green,x:541,y:386},{name:Re.Leeuwarden,region:Ae.Green,x:560,y:136},{name:Re.Nijmegen,region:Ae.Green,x:518,y:445},{name:Re.Denhelder,region:Ae.Green,x:411,y:169},{name:Re.Zaanstad,region:Ae.Brown,x:432,y:245},{name:Re.Amsterdam,region:Ae.Brown,x:437,y:299},{name:Re.Utrecht,region:Ae.Brown,x:429,y:361},{name:Re.Haarlem,region:Ae.Brown,x:373,y:259},{name:Re.Leiden,region:Ae.Brown,x:355,y:322},{name:Re.Denhaas,region:Ae.Brown,x:300,y:347},{name:Re.Rotterdam,region:Ae.Brown,x:338,y:400},{name:Re.Enbosch,region:Ae.Yellow,x:448,y:447},{name:Re.Venlo,region:Ae.Yellow,x:550,y:526},{name:Re.Eindhoven,region:Ae.Yellow,x:463,y:539},{name:Re.Tilburg,region:Ae.Yellow,x:404,y:497},{name:Re.Breda,region:Ae.Yellow,x:349,y:466},{name:Re.Middelburg,region:Ae.Yellow,x:210,y:453},{name:Re.Maastricht,region:Ae.Yellow,x:480,y:640},{name:Re.Leuven,region:Ae.Red,x:352,y:619},{name:Re.Brussel,region:Ae.Red,x:286,y:595},{name:Re.Antwerpen,region:Ae.Red,x:304,y:526},{name:Re.Gent,region:Ae.Red,x:206,y:562},{name:Re.Kortrijk,region:Ae.Red,x:132,y:589},{name:Re.Brugge,region:Ae.Red,x:160,y:511},{name:Re.Dostende,region:Ae.Red,x:94,y:495},{name:Re.Liege,region:Ae.Blue,x:445,y:705},{name:Re.Namur,region:Ae.Blue,x:361,y:713},{name:Re.Bruxelles,region:Ae.Blue,x:283,y:642},{name:Re.Charleroi,region:Ae.Blue,x:278,y:725},{name:Re.Mons,region:Ae.Blue,x:212,y:686},{name:Re.Arlon,region:Ae.Blue,x:431,y:876},{name:Re.Luxembourg,region:Ae.Blue,x:502,y:918}],connections:[{nodes:[Re.Denhelder,Re.Leeuwarden],cost:13},{nodes:[Re.Leeuwarden,Re.Groningen],cost:6},{nodes:[Re.Groningen,Re.Enschede],cost:12},{nodes:[Re.Enschede,Re.Apeldoorn],cost:9},{nodes:[Re.Apeldoorn,Re.Arnhem],cost:3},{nodes:[Re.Arnhem,Re.Nijmegen],cost:2},{nodes:[Re.Nijmegen,Re.Enbosch],cost:6},{nodes:[Re.Nijmegen,Re.Venlo],cost:7},{nodes:[Re.Nijmegen,Re.Eindhoven],cost:7},{nodes:[Re.Eindhoven,Re.Enbosch],cost:4},{nodes:[Re.Enbosch,Re.Utrecht],cost:8},{nodes:[Re.Apeldoorn,Re.Leeuwarden],cost:15},{nodes:[Re.Leeuwarden,Re.Enschede],cost:13},{nodes:[Re.Enschede,Re.Arnhem],cost:7},{nodes:[Re.Arnhem,Re.Utrecht],cost:6},{nodes:[Re.Utrecht,Re.Amsterdam],cost:4},{nodes:[Re.Amsterdam,Re.Haarlem],cost:2},{nodes:[Re.Haarlem,Re.Zaanstad],cost:2},{nodes:[Re.Zaanstad,Re.Denhelder],cost:6},{nodes:[Re.Denhelder,Re.Haarlem],cost:7},{nodes:[Re.Haarlem,Re.Leiden],cost:3},{nodes:[Re.Leiden,Re.Denhaas],cost:2},{nodes:[Re.Denhaas,Re.Rotterdam],cost:3},{nodes:[Re.Rotterdam,Re.Leiden],cost:3},{nodes:[Re.Leiden,Re.Amsterdam],cost:4},{nodes:[Re.Leiden,Re.Utrecht],cost:4},{nodes:[Re.Utrecht,Re.Rotterdam],cost:5},{nodes:[Re.Rotterdam,Re.Enbosch],cost:11},{nodes:[Re.Breda,Re.Rotterdam],cost:8},{nodes:[Re.Breda,Re.Middelburg],cost:9},{nodes:[Re.Middelburg,Re.Antwerpen],cost:8},{nodes:[Re.Antwerpen,Re.Brugge],cost:9},{nodes:[Re.Brugge,Re.Dostende],cost:2},{nodes:[Re.Amsterdam,Re.Zaanstad],cost:1},{nodes:[Re.Amsterdam,Re.Apeldoorn],cost:7},{nodes:[Re.Apeldoorn,Re.Utrecht],cost:6},{nodes:[Re.Venlo,Re.Eindhoven],cost:5},{nodes:[Re.Eindhoven,Re.Tilburg],cost:4},{nodes:[Re.Tilburg,Re.Breda],cost:2},{nodes:[Re.Breda,Re.Enbosch],cost:5},{nodes:[Re.Breda,Re.Antwerpen],cost:5},{nodes:[Re.Antwerpen,Re.Tilburg],cost:6},{nodes:[Re.Antwerpen,Re.Eindhoven],cost:8},{nodes:[Re.Eindhoven,Re.Maastricht],cost:8},{nodes:[Re.Maastricht,Re.Venlo],cost:10},{nodes:[Re.Maastricht,Re.Leuven],cost:7},{nodes:[Re.Leuven,Re.Eindhoven],cost:9},{nodes:[Re.Leuven,Re.Brussel],cost:2},{nodes:[Re.Brussel,Re.Bruxelles],cost:0},{nodes:[Re.Bruxelles,Re.Charleroi],cost:5},{nodes:[Re.Charleroi,Re.Namur],cost:3},{nodes:[Re.Namur,Re.Bruxelles],cost:5},{nodes:[Re.Leuven,Re.Namur],cost:5},{nodes:[Re.Leuven,Re.Liege],cost:7},{nodes:[Re.Liege,Re.Namur],cost:6},{nodes:[Re.Liege,Re.Maastricht],cost:3},{nodes:[Re.Kortrijk,Re.Dostende],cost:5},{nodes:[Re.Brugge,Re.Kortrijk],cost:4},{nodes:[Re.Kortrijk,Re.Gent],cost:4},{nodes:[Re.Gent,Re.Brugge],cost:3},{nodes:[Re.Kortrijk,Re.Bruxelles],cost:10},{nodes:[Re.Bruxelles,Re.Mons],cost:5},{nodes:[Re.Mons,Re.Kortrijk],cost:8},{nodes:[Re.Gent,Re.Antwerpen],cost:5},{nodes:[Re.Antwerpen,Re.Brussel],cost:4},{nodes:[Re.Brussel,Re.Gent],cost:7},{nodes:[Re.Antwerpen,Re.Leuven],cost:4},{nodes:[Re.Mons,Re.Charleroi],cost:4},{nodes:[Re.Charleroi,Re.Arlon],cost:18},{nodes:[Re.Arlon,Re.Luxembourg],cost:5},{nodes:[Re.Luxembourg,Re.Liege],cost:20},{nodes:[Re.Liege,Re.Arlon],cost:18},{nodes:[Re.Arlon,Re.Namur],cost:16},{nodes:[Re.Tilburg,Re.Enbosch],cost:3}],layout:"Portrait",mapPosition:[0,-50],adjustRatio:[1.15,1.15],resupply:[[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],[[3,4,3],[4,5,3],[5,6,4],[5,7,5],[7,9,6]],[[1,2,3],[2,2,3],[2,3,4],[3,3,5],[3,5,6]],[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]],startingResources:[18,24,6,2],viewBox:[1530,1060],playerOrderPosition:[1225,140],buttonsPosition:[1370,0],playerBoardsPosition:[1170,200],actualMarketWidth:495,mapSpecificRules:"Ecological plants can enter the market earlier. Remove smallest power plant after each round (unless discount plant was removed)."};t("9cd8");function ze(e){}function De(e,n){var t=Be.a.alea(n),r=new Map;return e.forEach((function(e,n){var o=t.int32();while(r.has(o))o=t.int32();r.set(o,n)})),b(r.keys()).sort().map((function(n){return e[r.get(n)]}))}var Ee,Ge,Te=[{number:3,type:he.Oil,cost:2,citiesPowered:1},{number:4,type:he.Coal,cost:2,citiesPowered:1},{number:5,type:he.Hybrid,cost:2,citiesPowered:1},{number:6,type:he.Garbage,cost:1,citiesPowered:1},{number:7,type:he.Oil,cost:3,citiesPowered:2},{number:8,type:he.Coal,cost:3,citiesPowered:2},{number:9,type:he.Oil,cost:1,citiesPowered:1},{number:10,type:he.Coal,cost:2,citiesPowered:2},{number:11,type:he.Uranium,cost:1,citiesPowered:2},{number:12,type:he.Hybrid,cost:2,citiesPowered:2},{number:13,type:he.Wind,cost:0,citiesPowered:1},{number:14,type:he.Garbage,cost:2,citiesPowered:2},{number:15,type:he.Coal,cost:2,citiesPowered:3},{number:16,type:he.Oil,cost:2,citiesPowered:3},{number:17,type:he.Uranium,cost:1,citiesPowered:2},{number:18,type:he.Wind,cost:0,citiesPowered:2},{number:19,type:he.Garbage,cost:2,citiesPowered:3},{number:20,type:he.Coal,cost:3,citiesPowered:5},{number:21,type:he.Hybrid,cost:2,citiesPowered:4},{number:22,type:he.Wind,cost:0,citiesPowered:2},{number:23,type:he.Uranium,cost:1,citiesPowered:3},{number:24,type:he.Garbage,cost:2,citiesPowered:4},{number:25,type:he.Coal,cost:2,citiesPowered:5},{number:26,type:he.Oil,cost:2,citiesPowered:5},{number:27,type:he.Wind,cost:0,citiesPowered:3},{number:28,type:he.Uranium,cost:1,citiesPowered:4},{number:29,type:he.Hybrid,cost:1,citiesPowered:4},{number:30,type:he.Garbage,cost:3,citiesPowered:6},{number:31,type:he.Coal,cost:3,citiesPowered:6},{number:32,type:he.Oil,cost:3,citiesPowered:6},{number:33,type:he.Wind,cost:0,citiesPowered:4},{number:34,type:he.Uranium,cost:1,citiesPowered:5},{number:35,type:he.Oil,cost:1,citiesPowered:5},{number:36,type:he.Coal,cost:3,citiesPowered:7},{number:37,type:he.Wind,cost:0,citiesPowered:4},{number:38,type:he.Garbage,cost:3,citiesPowered:7},{number:39,type:he.Uranium,cost:1,citiesPowered:6},{number:40,type:he.Oil,cost:2,citiesPowered:6},{number:42,type:he.Coal,cost:2,citiesPowered:6},{number:44,type:he.Wind,cost:0,citiesPowered:5},{number:46,type:he.Hybrid,cost:3,citiesPowered:7},{number:50,type:he.Nuclear,cost:0,citiesPowered:6},{number:99,type:he.Step3,cost:0,citiesPowered:6}],Ie=Object(me["cloneDeep"])(Te).filter((function(e){return 11!=e.number}));Ie.forEach((function(e){e.type==he.Garbage&&(e.storage=2*e.cost,e.cost++)})),function(e){e["Red"]="red",e["Pink"]="pink",e["Purple"]="purple",e["Green"]="green",e["Brown"]="brown",e["Yellow"]="yellow"}(Ee||(Ee={})),function(e){e["Parnaiba"]="Parnaiba",e["Fortaleza"]="Fortaleza",e["Sadluis"]="Sadluis",e["Belem"]="Belem",e["Teresina"]="Teresina",e["Imperatriz"]="Imperatriz",e["Maraba"]="Maraba",e["Campinagrande"]="Campina Grande",e["Petrolina"]="Petrolina",e["Natal"]="Natal",e["Joaopessoa"]="Joaopessoa",e["Recife"]="Recife",e["Maceio"]="Maceio",e["Aracaju"]="Aracaju",e["Salvadordabahia"]="Salvador Da Bahia",e["Montesclaros"]="Montes Claros",e["Brasilia"]="Brasilia",e["Palmas"]="Palmas",e["Porangatu"]="Porangatu",e["Goiania"]="Goiania",e["Uberlandia"]="Uberlandia",e["Vitoria"]="Vitoria",e["Riodejaneiro"]="Rio De Janeiro",e["Saogoncalo"]="Sao Goncalo",e["Saopaulo"]="Sao Paulo",e["Guarulhos"]="Guarulhos",e["Campinas"]="Campinas",e["Belohorizonte"]="Belo Horizonte",e["Curitiba"]="Curitiba",e["Florianopolis"]="Florianopolis",e["Portoalecre"]="Porto Alecre",e["Pelotas"]="Pelotas",e["Urucuaiana"]="Urucuaiana",e["Londrina"]="Londrina",e["Campogrande"]="Campo Grande",e["Macapa"]="Macapa",e["Boavista"]="Boavista",e["Manaus"]="Manaus",e["Portovelho"]="Porto Velho",e["Cuiaba"]="Cuiaba",e["Vilhena"]="Vilhena",e["Riobranco"]="Rio Branco"}(Ge||(Ge={}));var Ne,Ue,Ke={name:"Brazil",cities:[{name:Ge.Parnaiba,region:Ee.Red,x:855,y:458},{name:Ge.Fortaleza,region:Ee.Red,x:961,y:478},{name:Ge.Sadluis,region:Ee.Red,x:772,y:418},{name:Ge.Belem,region:Ee.Red,x:655,y:378},{name:Ge.Teresina,region:Ee.Red,x:846,y:548},{name:Ge.Imperatriz,region:Ee.Red,x:697,y:535},{name:Ge.Maraba,region:Ee.Red,x:581,y:492},{name:Ge.Campinagrande,region:Ee.Pink,x:976,y:587},{name:Ge.Petrolina,region:Ee.Pink,x:872,y:648},{name:Ge.Natal,region:Ee.Pink,x:1061,y:518},{name:Ge.Joaopessoa,region:Ee.Pink,x:1097,y:576},{name:Ge.Recife,region:Ee.Pink,x:1083,y:637},{name:Ge.Maceio,region:Ee.Pink,x:1040,y:699},{name:Ge.Aracaju,region:Ee.Pink,x:995,y:750},{name:Ge.Salvadordabahia,region:Ee.Purple,x:960,y:808},{name:Ge.Montesclaros,region:Ee.Purple,x:795,y:847},{name:Ge.Brasilia,region:Ee.Purple,x:671,y:817},{name:Ge.Palmas,region:Ee.Purple,x:648,y:663},{name:Ge.Porangatu,region:Ee.Purple,x:598,y:762},{name:Ge.Goiania,region:Ee.Purple,x:601,y:889},{name:Ge.Uberlandia,region:Ee.Purple,x:646,y:964},{name:Ge.Vitoria,region:Ee.Green,x:910,y:971},{name:Ge.Riodejaneiro,region:Ee.Green,x:795,y:1076},{name:Ge.Saogoncalo,region:Ee.Green,x:843,y:1033},{name:Ge.Saopaulo,region:Ee.Green,x:721,y:1134},{name:Ge.Guarulhos,region:Ee.Green,x:678,y:1089},{name:Ge.Campinas,region:Ee.Green,x:629,y:1037},{name:Ge.Belohorizonte,region:Ee.Green,x:771,y:960},{name:Ge.Curitiba,region:Ee.Brown,x:615,y:1144},{name:Ge.Florianopolis,region:Ee.Brown,x:665,y:1214},{name:Ge.Portoalecre,region:Ee.Brown,x:590,y:1281},{name:Ge.Pelotas,region:Ee.Brown,x:551,y:1346},{name:Ge.Urucuaiana,region:Ee.Brown,x:444,y:1250},{name:Ge.Londrina,region:Ee.Brown,x:516,y:1075},{name:Ge.Campogrande,region:Ee.Brown,x:440,y:983},{name:Ge.Macapa,region:Ee.Yellow,x:561,y:317},{name:Ge.Boavista,region:Ee.Yellow,x:308,y:269},{name:Ge.Manaus,region:Ee.Yellow,x:258,y:466},{name:Ge.Portovelho,region:Ee.Yellow,x:238,y:620},{name:Ge.Cuiaba,region:Ee.Yellow,x:432,y:850},{name:Ge.Vilhena,region:Ee.Yellow,x:328,y:741},{name:Ge.Riobranco,region:Ee.Yellow,x:87,y:666}],connections:[{nodes:[Ge.Boavista,Ge.Macapa],cost:22},{nodes:[Ge.Macapa,Ge.Belem],cost:10},{nodes:[Ge.Belem,Ge.Sadluis],cost:10},{nodes:[Ge.Sadluis,Ge.Imperatriz],cost:9},{nodes:[Ge.Belem,Ge.Imperatriz],cost:9},{nodes:[Ge.Belem,Ge.Maraba],cost:9},{nodes:[Ge.Macapa,Ge.Maraba],cost:16},{nodes:[Ge.Maraba,Ge.Manaus],cost:22},{nodes:[Ge.Macapa,Ge.Manaus],cost:18},{nodes:[Ge.Boavista,Ge.Manaus],cost:13},{nodes:[Ge.Boavista,Ge.Riobranco],cost:30},{nodes:[Ge.Riobranco,Ge.Manaus],cost:23},{nodes:[Ge.Manaus,Ge.Portovelho],cost:15},{nodes:[Ge.Portovelho,Ge.Riobranco],cost:10},{nodes:[Ge.Riobranco,Ge.Vilhena],cost:18},{nodes:[Ge.Portovelho,Ge.Vilhena],cost:12},{nodes:[Ge.Manaus,Ge.Vilhena],cost:21},{nodes:[Ge.Vilhena,Ge.Cuiaba],cost:10},{nodes:[Ge.Vilhena,Ge.Maraba],cost:31},{nodes:[Ge.Maraba,Ge.Imperatriz],cost:4},{nodes:[Ge.Sadluis,Ge.Teresina],cost:8},{nodes:[Ge.Teresina,Ge.Imperatriz],cost:11},{nodes:[Ge.Imperatriz,Ge.Palmas],cost:9},{nodes:[Ge.Palmas,Ge.Maraba],cost:10},{nodes:[Ge.Maraba,Ge.Porangatu],cost:17},{nodes:[Ge.Porangatu,Ge.Goiania],cost:8},{nodes:[Ge.Porangatu,Ge.Vilhena],cost:23},{nodes:[Ge.Cuiaba,Ge.Porangatu],cost:16},{nodes:[Ge.Porangatu,Ge.Palmas],cost:8},{nodes:[Ge.Palmas,Ge.Brasilia],cost:13},{nodes:[Ge.Brasilia,Ge.Porangatu],cost:6},{nodes:[Ge.Brasilia,Ge.Goiania],cost:4},{nodes:[Ge.Goiania,Ge.Cuiaba],cost:15},{nodes:[Ge.Sadluis,Ge.Parnaiba],cost:5},{nodes:[Ge.Parnaiba,Ge.Teresina],cost:5},{nodes:[Ge.Parnaiba,Ge.Fortaleza],cost:7},{nodes:[Ge.Fortaleza,Ge.Natal],cost:8},{nodes:[Ge.Natal,Ge.Joaopessoa],cost:3},{nodes:[Ge.Joaopessoa,Ge.Recife],cost:2},{nodes:[Ge.Recife,Ge.Maceio],cost:3},{nodes:[Ge.Maceio,Ge.Aracaju],cost:3},{nodes:[Ge.Aracaju,Ge.Salvadordabahia],cost:4},{nodes:[Ge.Natal,Ge.Campinagrande],cost:4},{nodes:[Ge.Fortaleza,Ge.Teresina],cost:10},{nodes:[Ge.Teresina,Ge.Petrolina],cost:12},{nodes:[Ge.Petrolina,Ge.Palmas],cost:19},{nodes:[Ge.Petrolina,Ge.Brasilia],cost:22},{nodes:[Ge.Petrolina,Ge.Montesclaros],cost:19},{nodes:[Ge.Montesclaros,Ge.Salvadordabahia],cost:16},{nodes:[Ge.Salvadordabahia,Ge.Petrolina],cost:10},{nodes:[Ge.Petrolina,Ge.Campinagrande],cost:12},{nodes:[Ge.Petrolina,Ge.Aracaju],cost:11},{nodes:[Ge.Vitoria,Ge.Salvadordabahia],cost:16},{nodes:[Ge.Montesclaros,Ge.Vitoria],cost:14},{nodes:[Ge.Vitoria,Ge.Saogoncalo],cost:6},{nodes:[Ge.Vitoria,Ge.Belohorizonte],cost:9},{nodes:[Ge.Belohorizonte,Ge.Montesclaros],cost:8},{nodes:[Ge.Montesclaros,Ge.Brasilia],cost:9},{nodes:[Ge.Brasilia,Ge.Uberlandia],cost:8},{nodes:[Ge.Uberlandia,Ge.Goiania],cost:7},{nodes:[Ge.Goiania,Ge.Campogrande],cost:16},{nodes:[Ge.Campogrande,Ge.Cuiaba],cost:13},{nodes:[Ge.Campogrande,Ge.Londrina],cost:10},{nodes:[Ge.Campogrande,Ge.Uberlandia],cost:13},{nodes:[Ge.Uberlandia,Ge.Londrina],cost:12},{nodes:[Ge.Londrina,Ge.Campinas],cost:9},{nodes:[Ge.Campinas,Ge.Uberlandia],cost:9},{nodes:[Ge.Uberlandia,Ge.Belohorizonte],cost:10},{nodes:[Ge.Uberlandia,Ge.Brasilia],cost:8},{nodes:[Ge.Brasilia,Ge.Belohorizonte],cost:14},{nodes:[Ge.Belohorizonte,Ge.Saogoncalo],cost:7},{nodes:[Ge.Saogoncalo,Ge.Riodejaneiro],cost:0},{nodes:[Ge.Riodejaneiro,Ge.Saopaulo],cost:7},{nodes:[Ge.Saopaulo,Ge.Guarulhos],cost:0},{nodes:[Ge.Guarulhos,Ge.Campinas],cost:0},{nodes:[Ge.Campinas,Ge.Curitiba],cost:6},{nodes:[Ge.Curitiba,Ge.Londrina],cost:7},{nodes:[Ge.Saopaulo,Ge.Florianopolis],cost:9},{nodes:[Ge.Florianopolis,Ge.Curitiba],cost:4},{nodes:[Ge.Londrina,Ge.Urucuaiana],cost:18},{nodes:[Ge.Urucuaiana,Ge.Pelotas],cost:9},{nodes:[Ge.Pelotas,Ge.Portoalecre],cost:4},{nodes:[Ge.Portoalecre,Ge.Urucuaiana],cost:10},{nodes:[Ge.Londrina,Ge.Portoalecre],cost:16},{nodes:[Ge.Portoalecre,Ge.Curitiba],cost:11},{nodes:[Ge.Portoalecre,Ge.Florianopolis],cost:7},{nodes:[Ge.Guarulhos,Ge.Belohorizonte],cost:10},{nodes:[Ge.Maceio,Ge.Campinagrande],cost:6},{nodes:[Ge.Petrolina,Ge.Fortaleza],cost:14},{nodes:[Ge.Recife,Ge.Campinagrande],cost:3}],layout:"Portrait",adjustRatio:[.85,.85],mapPosition:[-20,-130],resupply:[[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],[[3,4,3],[4,5,3],[5,6,4],[5,7,5],[7,9,6]],[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]],startingResources:[24,18,6,2],setupDeck:function(e,n,t){var r,o,a=Object(me["cloneDeep"])(Te),i=a.filter((function(e){return e.type==he.Garbage&&e.number>14}));if("original"==n){a=a.slice(8);var s=a.splice(2,1)[0],u=a.splice(2,1)[0],c=a.pop();a=De(a.filter((function(e){return e.type!=he.Garbage})),t()+""),2==e||3==e?a=a.slice(8):4==e&&(a=a.slice(4)),a=a.concat(i),a=De(a,t()+""),a.unshift(u),a.unshift(s),a.push(c),r=[et(3),et(4),et(5),et(6)],o=[et(7),et(8),et(9),et(10)]}else{var l=a.splice(3,1)[0],f=a.splice(10,1)[0],d=De(a.splice(0,11),t()+""),p=d.splice(0,6);p.push(l,f),p=p.sort((function(e,n){return e.number-n.number})),r=p.slice(0,4),o=p.slice(4);var h=d.shift(),g=a.pop();a=De(a.filter((function(e){return e.type!=he.Garbage})),t()+""),2==e||3==e?(d=d.slice(2),a=De(a.slice(6).concat(d),t()+"")):4==e?(d=d.slice(1),a=De(a.slice(3).concat(d),t()+"")):a=De(a.concat(d),t()+""),a=a.concat(i),a=De(a,t()+""),a.unshift(h),a.push(g)}return{actualMarket:r,futureMarket:o,powerPlantsDeck:a}},mapSpecificRules:"Play with all garbage power plants."};(function(e){e["Blue"]="blue",e["Brown"]="brown",e["Purple"]="purple",e["Red"]="red",e["Yellow"]="yellow",e["Green"]="green"})(Ne||(Ne={})),function(e){e["Bialystok"]="Bialystok",e["Lublin"]="Lublin",e["Warszawa"]="Warszawa",e["Krakow"]="Krakow",e["Sosnowiec"]="Sosnowiec",e["Katowice"]="Katowice",e["Czestochowa"]="Czesto Chowa",e["Presov"]="Presov",e["Kosice"]="Kosice",e["Poprad"]="Poprad",e["Zilina"]="Zilina",e["Bratislava"]="Bratislava",e["Trnava"]="Trnava",e["Nyiregyhaza"]="Nyiregyhaza",e["Miskolc"]="Miskolc",e["Szeged"]="Szeged",e["Kecskeme"]="Kecskeme",e["Budapest"]="Budapest",e["Pecs"]="Pecs",e["Gyor"]="Gyor",e["Banskabystrica"]="Banska Bystrica",e["Goansk"]="Goansk",e["Goynia"]="Goynia",e["Byogoszcz"]="Byogoszcz",e["Wroclaw"]="Wroclaw",e["Poznan"]="Poznan",e["Szczecin"]="Szczecin",e["Lodz"]="Lodz",e["Graz"]="Graz",e["Klagenfurt"]="Klagenfurt",e["Villach"]="Villach",e["Innsbruck"]="Innsbruck",e["Salzburg"]="Salzburg",e["Linz"]="Linz",e["Wien"]="Wien",e["Hradeckralove"]="Hradec Kralove",e["Brno"]="Brno",e["Ceskebudejovice"]="Ceske Budejovice",e["Praha"]="Praha",e["Ostrava"]="Ostrava",e["Plzen"]="Plzen",e["Ustinadlaben"]="Ustinad Laben"}(Ue||(Ue={}));var Fe,Ve,We={name:"Central Europe",cities:[{name:Ue.Bialystok,region:Ne.Blue,x:543,y:135},{name:Ue.Lublin,region:Ne.Blue,x:590,y:294},{name:Ue.Warszawa,region:Ne.Blue,x:482,y:253},{name:Ue.Krakow,region:Ne.Blue,x:533,y:443},{name:Ue.Sosnowiec,region:Ne.Blue,x:468,y:443},{name:Ue.Katowice,region:Ne.Blue,x:446,y:483},{name:Ue.Czestochowa,region:Ne.Blue,x:419,y:397},{name:Ue.Presov,region:Ne.Brown,x:619,y:487},{name:Ue.Kosice,region:Ne.Brown,x:646,y:538},{name:Ue.Poprad,region:Ne.Brown,x:565,y:529},{name:Ue.Zilina,region:Ne.Brown,x:476,y:551},{name:Ue.Bratislava,region:Ne.Brown,x:423,y:693},{name:Ue.Trnava,region:Ne.Brown,x:452,y:638},{name:Ue.Nyiregyhaza,region:Ne.Purple,x:698,y:582},{name:Ue.Miskolc,region:Ne.Purple,x:621,y:597},{name:Ue.Szeged,region:Ne.Purple,x:680,y:764},{name:Ue.Kecskeme,region:Ne.Purple,x:630,y:727},{name:Ue.Budapest,region:Ne.Purple,x:557,y:689},{name:Ue.Pecs,region:Ne.Purple,x:566,y:832},{name:Ue.Gyor,region:Ne.Purple,x:489,y:729},{name:Ue.Banskabystrica,region:Ne.Brown,x:525,y:601},{name:Ue.Goansk,region:Ne.Red,x:286,y:158},{name:Ue.Goynia,region:Ne.Red,x:249,y:131},{name:Ue.Byogoszcz,region:Ne.Red,x:297,y:257},{name:Ue.Wroclaw,region:Ne.Red,x:321,y:445},{name:Ue.Poznan,region:Ne.Red,x:261,y:342},{name:Ue.Szczecin,region:Ne.Red,x:110,y:316},{name:Ue.Lodz,region:Ne.Red,x:420,y:337},{name:Ue.Graz,region:Ne.Yellow,x:376,y:811},{name:Ue.Klagenfurt,region:Ne.Yellow,x:340,y:875},{name:Ue.Villach,region:Ne.Yellow,x:272,y:875},{name:Ue.Innsbruck,region:Ne.Yellow,x:140,y:879},{name:Ue.Salzburg,region:Ne.Yellow,x:209,y:805},{name:Ue.Linz,region:Ne.Yellow,x:265,y:744},{name:Ue.Wien,region:Ne.Yellow,x:366,y:701},{name:Ue.Hradeckralove,region:Ne.Green,x:291,y:546},{name:Ue.Brno,region:Ne.Green,x:354,y:597},{name:Ue.Ceskebudejovice,region:Ne.Green,x:248,y:670},{name:Ue.Praha,region:Ne.Green,x:220,y:593},{name:Ue.Ostrava,region:Ne.Green,x:413,y:535},{name:Ue.Plzen,region:Ne.Green,x:158,y:645},{name:Ue.Ustinadlaben,region:Ne.Green,x:165,y:537}],connections:[{nodes:[Ue.Goynia,Ue.Goansk],cost:0},{nodes:[Ue.Goansk,Ue.Byogoszcz],cost:8},{nodes:[Ue.Goynia,Ue.Szczecin],cost:17},{nodes:[Ue.Szczecin,Ue.Poznan],cost:14},{nodes:[Ue.Szczecin,Ue.Wroclaw],cost:22},{nodes:[Ue.Wroclaw,Ue.Poznan],cost:9},{nodes:[Ue.Poznan,Ue.Lodz],cost:13},{nodes:[Ue.Lodz,Ue.Byogoszcz],cost:12},{nodes:[Ue.Byogoszcz,Ue.Szczecin],cost:15},{nodes:[Ue.Wroclaw,Ue.Lodz],cost:12},{nodes:[Ue.Lodz,Ue.Czestochowa],cost:7},{nodes:[Ue.Czestochowa,Ue.Wroclaw],cost:9},{nodes:[Ue.Wroclaw,Ue.Ostrava],cost:11},{nodes:[Ue.Ostrava,Ue.Hradeckralove],cost:16},{nodes:[Ue.Hradeckralove,Ue.Wroclaw],cost:10},{nodes:[Ue.Wroclaw,Ue.Ustinadlaben],cost:17},{nodes:[Ue.Ustinadlaben,Ue.Hradeckralove],cost:10},{nodes:[Ue.Hradeckralove,Ue.Brno],cost:9},{nodes:[Ue.Brno,Ue.Ostrava],cost:12},{nodes:[Ue.Ostrava,Ue.Katowice],cost:4},{nodes:[Ue.Czestochowa,Ue.Lublin],cost:17},{nodes:[Ue.Lublin,Ue.Presov],cost:20},{nodes:[Ue.Presov,Ue.Krakow],cost:13},{nodes:[Ue.Krakow,Ue.Poprad],cost:11},{nodes:[Ue.Poprad,Ue.Zilina],cost:11},{nodes:[Ue.Zilina,Ue.Krakow],cost:12},{nodes:[Ue.Krakow,Ue.Sosnowiec],cost:4},{nodes:[Ue.Warszawa,Ue.Bialystok],cost:14},{nodes:[Ue.Bialystok,Ue.Goansk],cost:20},{nodes:[Ue.Byogoszcz,Ue.Warszawa],cost:15},{nodes:[Ue.Warszawa,Ue.Lublin],cost:10},{nodes:[Ue.Lodz,Ue.Warszawa],cost:7},{nodes:[Ue.Bialystok,Ue.Lublin],cost:15},{nodes:[Ue.Lublin,Ue.Krakow],cost:16},{nodes:[Ue.Poprad,Ue.Kosice],cost:6},{nodes:[Ue.Kosice,Ue.Nyiregyhaza],cost:8},{nodes:[Ue.Kosice,Ue.Miskolc],cost:4},{nodes:[Ue.Miskolc,Ue.Poprad],cost:9},{nodes:[Ue.Poprad,Ue.Banskabystrica],cost:11},{nodes:[Ue.Banskabystrica,Ue.Zilina],cost:6},{nodes:[Ue.Zilina,Ue.Trnava],cost:10},{nodes:[Ue.Zilina,Ue.Brno],cost:14},{nodes:[Ue.Brno,Ue.Wien],cost:8},{nodes:[Ue.Bratislava,Ue.Brno],cost:10},{nodes:[Ue.Brno,Ue.Trnava],cost:10},{nodes:[Ue.Trnava,Ue.Banskabystrica],cost:10},{nodes:[Ue.Banskabystrica,Ue.Miskolc],cost:11},{nodes:[Ue.Miskolc,Ue.Nyiregyhaza],cost:7},{nodes:[Ue.Nyiregyhaza,Ue.Szeged],cost:16},{nodes:[Ue.Szeged,Ue.Kecskeme],cost:5},{nodes:[Ue.Budapest,Ue.Trnava],cost:9},{nodes:[Ue.Trnava,Ue.Bratislava],cost:2},{nodes:[Ue.Bratislava,Ue.Wien],cost:3},{nodes:[Ue.Wien,Ue.Ceskebudejovice],cost:14},{nodes:[Ue.Ceskebudejovice,Ue.Praha],cost:10},{nodes:[Ue.Praha,Ue.Brno],cost:13},{nodes:[Ue.Brno,Ue.Ceskebudejovice],cost:15},{nodes:[Ue.Ceskebudejovice,Ue.Plzen],cost:11},{nodes:[Ue.Plzen,Ue.Praha],cost:7},{nodes:[Ue.Praha,Ue.Ustinadlaben],cost:6},{nodes:[Ue.Ustinadlaben,Ue.Plzen],cost:9},{nodes:[Ue.Ceskebudejovice,Ue.Linz],cost:8},{nodes:[Ue.Linz,Ue.Wien],cost:11},{nodes:[Ue.Wien,Ue.Graz],cost:12},{nodes:[Ue.Graz,Ue.Linz],cost:16},{nodes:[Ue.Linz,Ue.Salzburg],cost:9},{nodes:[Ue.Salzburg,Ue.Graz],cost:22},{nodes:[Ue.Graz,Ue.Gyor],cost:14},{nodes:[Ue.Gyor,Ue.Wien],cost:8},{nodes:[Ue.Bratislava,Ue.Gyor],cost:6},{nodes:[Ue.Gyor,Ue.Trnava],cost:5},{nodes:[Ue.Banskabystrica,Ue.Budapest],cost:12},{nodes:[Ue.Budapest,Ue.Gyor],cost:5},{nodes:[Ue.Budapest,Ue.Kecskeme],cost:6},{nodes:[Ue.Kecskeme,Ue.Miskolc],cost:10},{nodes:[Ue.Miskolc,Ue.Budapest],cost:9},{nodes:[Ue.Szeged,Ue.Pecs],cost:12},{nodes:[Ue.Pecs,Ue.Kecskeme],cost:11},{nodes:[Ue.Budapest,Ue.Pecs],cost:12},{nodes:[Ue.Pecs,Ue.Gyor],cost:15},{nodes:[Ue.Graz,Ue.Pecs],cost:19},{nodes:[Ue.Graz,Ue.Klagenfurt],cost:10},{nodes:[Ue.Klagenfurt,Ue.Villach],cost:4},{nodes:[Ue.Klagenfurt,Ue.Salzburg],cost:20},{nodes:[Ue.Salzburg,Ue.Innsbruck],cost:15},{nodes:[Ue.Innsbruck,Ue.Villach],cost:22},{nodes:[Ue.Poznan,Ue.Byogoszcz],cost:7},{nodes:[Ue.Lublin,Ue.Lodz],cost:16},{nodes:[Ue.Czestochowa,Ue.Sosnowiec],cost:4},{nodes:[Ue.Sosnowiec,Ue.Katowice],cost:0},{nodes:[Ue.Czestochowa,Ue.Krakow],cost:6},{nodes:[Ue.Poprad,Ue.Presov],cost:7},{nodes:[Ue.Presov,Ue.Kosice],cost:2},{nodes:[Ue.Ostrava,Ue.Zilina],cost:7},{nodes:[Ue.Ostrava,Ue.Krakow],cost:7},{nodes:[Ue.Praha,Ue.Hradeckralove],cost:8}],layout:"Portrait",mapPosition:[70,-60],adjustRatio:[1.15,1.15],startingResources:[24,18,6,5],resupply:[[[4,5,3],[5,6,3],[6,7,5],[7,8,5],[8,10,6]],[[1,2,3],[2,2,3],[2,3,4],[3,4,5],[4,5,6]],[[1,3,3],[1,3,3],[2,4,4],[3,4,5],[3,6,6]],[[1,1,1],[1,1,1],[1,2,1],[2,2,2],[2,3,2]]]};(function(e){e["Pink"]="pink",e["Green"]="green",e["Red"]="red",e["Brown"]="brown",e["Purple"]="purple",e["Yellow"]="yellow"})(Fe||(Fe={})),function(e){e["Hegang"]="Hegang",e["Qiqhaer"]="Qiqhaer",e["Haerbin"]="Haerbin",e["Jilin"]="Jilin",e["Fushun"]="Fushun",e["Anshan"]="Anshan",e["Dalian"]="Dalian",e["Shanghai"]="Shanghai",e["Hangzhou"]="Hangzhou",e["Nanjing"]="Nanjing",e["Qingoad"]="Qingoad",e["Jinan"]="Jinan",e["Zhengzhou"]="Zhengzhou",e["Shijiazhuang"]="Shijiazhuang",e["Changchun"]="Changchun",e["Shenyang"]="Shenyang",e["Tangshan"]="Tangshan",e["Tianjin"]="Tianjin",e["Beijing"]="Beijing",e["Taiyuan"]="Taiyuan",e["Badtou"]="Badtou",e["Fuzhou"]="Fuzhou",e["Nanchang"]="Nanchang",e["Chaozhou"]="Chaozhou",e["Hongkong"]="Hong Kong",e["Guangzhou"]="Guangzhou",e["Changsha"]="Changsha",e["Wuhan"]="Wuhan",e["Hami"]="Hami",e["Karamay"]="Karamay",e["Wulumuqi"]="Wulumuqi",e["Kuerle"]="Kuerle",e["Yinchjan"]="Yinchjan",e["Xining"]="Xining",e["Lanzhou"]="Lanzhou",e["Kunming"]="Kunming",e["Chengou"]="Chengou",e["Xian"]="Xian",e["Chongqing"]="Chongqing",e["Nanning"]="Nanning",e["Haikou"]="Haikou",e["Chiyang"]="Chiyang"}(Ve||(Ve={}));var He,Ye,$e={name:"China",cities:[{name:Ve.Hegang,region:Fe.Pink,x:3920,y:290},{name:Ve.Qiqhaer,region:Fe.Pink,x:3422,y:262},{name:Ve.Haerbin,region:Fe.Pink,x:3672,y:434},{name:Ve.Jilin,region:Fe.Pink,x:3744,y:614},{name:Ve.Fushun,region:Fe.Pink,x:3712,y:784},{name:Ve.Anshan,region:Fe.Pink,x:3510,y:902},{name:Ve.Dalian,region:Fe.Pink,x:3424,y:1052},{name:Ve.Shanghai,region:Fe.Green,x:3462,y:1672},{name:Ve.Hangzhou,region:Fe.Green,x:3280,y:1824},{name:Ve.Nanjing,region:Fe.Green,x:3130,y:1632},{name:Ve.Qingoad,region:Fe.Green,x:3322,y:1316},{name:Ve.Jinan,region:Fe.Green,x:3002,y:1292},{name:Ve.Zhengzhou,region:Fe.Green,x:2778,y:1438},{name:Ve.Shijiazhuang,region:Fe.Green,x:2866,y:1152},{name:Ve.Changchun,region:Fe.Red,x:3504,y:590},{name:Ve.Shenyang,region:Fe.Red,x:3458,y:778},{name:Ve.Tangshan,region:Fe.Red,x:3158,y:908},{name:Ve.Tianjin,region:Fe.Red,x:3134,y:1016},{name:Ve.Beijing,region:Fe.Red,x:2886,y:910},{name:Ve.Taiyuan,region:Fe.Red,x:2588,y:1130},{name:Ve.Badtou,region:Fe.Red,x:2500,y:862},{name:Ve.Fuzhou,region:Fe.Brown,x:3290,y:2132},{name:Ve.Nanchang,region:Fe.Brown,x:3004,y:1974},{name:Ve.Chaozhou,region:Fe.Brown,x:3096,y:2322},{name:Ve.Hongkong,region:Fe.Brown,x:2902,y:2552},{name:Ve.Guangzhou,region:Fe.Brown,x:2694,y:2352},{name:Ve.Changsha,region:Fe.Brown,x:2682,y:1988},{name:Ve.Wuhan,region:Fe.Brown,x:2810,y:1786},{name:Ve.Hami,region:Fe.Purple,x:1816,y:698},{name:Ve.Karamay,region:Fe.Purple,x:1304,y:372},{name:Ve.Wulumuqi,region:Fe.Purple,x:1520,y:558},{name:Ve.Kuerle,region:Fe.Purple,x:1326,y:756},{name:Ve.Yinchjan,region:Fe.Purple,x:2208,y:1058},{name:Ve.Xining,region:Fe.Purple,x:1868,y:1226},{name:Ve.Lanzhou,region:Fe.Purple,x:2142,y:1328},{name:Ve.Kunming,region:Fe.Yellow,x:1840,y:2248},{name:Ve.Chengou,region:Fe.Yellow,x:1988,y:1736},{name:Ve.Xian,region:Fe.Yellow,x:2440,y:1478},{name:Ve.Chongqing,region:Fe.Yellow,x:2300,y:1880},{name:Ve.Nanning,region:Fe.Yellow,x:2318,y:2452},{name:Ve.Haikou,region:Fe.Yellow,x:2524,y:2680},{name:Ve.Chiyang,region:Fe.Yellow,x:2212,y:2112}],connections:[{nodes:[Ve.Kunming,Ve.Chengou],cost:16},{nodes:[Ve.Nanning,Ve.Haikou],cost:10},{nodes:[Ve.Guangzhou,Ve.Hongkong],cost:4},{nodes:[Ve.Guangzhou,Ve.Chaozhou],cost:7},{nodes:[Ve.Chaozhou,Ve.Hongkong],cost:7},{nodes:[Ve.Guangzhou,Ve.Haikou],cost:13},{nodes:[Ve.Nanning,Ve.Guangzhou],cost:11},{nodes:[Ve.Xining,Ve.Chengou],cost:20},{nodes:[Ve.Chengou,Ve.Chongqing],cost:6},{nodes:[Ve.Chongqing,Ve.Chiyang],cost:9},{nodes:[Ve.Chiyang,Ve.Kunming],cost:12},{nodes:[Ve.Chiyang,Ve.Nanning],cost:12},{nodes:[Ve.Chiyang,Ve.Guangzhou],cost:18},{nodes:[Ve.Guangzhou,Ve.Changsha],cost:14},{nodes:[Ve.Changsha,Ve.Chongqing],cost:16},{nodes:[Ve.Changsha,Ve.Wuhan],cost:6},{nodes:[Ve.Wuhan,Ve.Nanchang],cost:6},{nodes:[Ve.Nanchang,Ve.Changsha],cost:7},{nodes:[Ve.Changsha,Ve.Chiyang],cost:15},{nodes:[Ve.Chiyang,Ve.Chengou],cost:13},{nodes:[Ve.Guangzhou,Ve.Nanchang],cost:16},{nodes:[Ve.Nanchang,Ve.Chaozhou],cost:14},{nodes:[Ve.Chaozhou,Ve.Fuzhou],cost:9},{nodes:[Ve.Fuzhou,Ve.Nanchang],cost:13},{nodes:[Ve.Wuhan,Ve.Hangzhou],cost:13},{nodes:[Ve.Hangzhou,Ve.Fuzhou],cost:13},{nodes:[Ve.Hangzhou,Ve.Shanghai],cost:4},{nodes:[Ve.Shanghai,Ve.Nanjing],cost:6},{nodes:[Ve.Nanjing,Ve.Hangzhou],cost:5},{nodes:[Ve.Hangzhou,Ve.Nanchang],cost:10},{nodes:[Ve.Chongqing,Ve.Wuhan],cost:18},{nodes:[Ve.Lanzhou,Ve.Chengou],cost:16},{nodes:[Ve.Chengou,Ve.Xian],cost:14},{nodes:[Ve.Xian,Ve.Chongqing],cost:14},{nodes:[Ve.Xian,Ve.Wuhan],cost:15},{nodes:[Ve.Wuhan,Ve.Zhengzhou],cost:10},{nodes:[Ve.Zhengzhou,Ve.Xian],cost:10},{nodes:[Ve.Xian,Ve.Lanzhou],cost:15},{nodes:[Ve.Lanzhou,Ve.Yinchjan],cost:9},{nodes:[Ve.Yinchjan,Ve.Xining],cost:11},{nodes:[Ve.Lanzhou,Ve.Taiyuan],cost:18},{nodes:[Ve.Taiyuan,Ve.Xian],cost:12},{nodes:[Ve.Taiyuan,Ve.Zhengzhou],cost:11},{nodes:[Ve.Taiyuan,Ve.Shijiazhuang],cost:5},{nodes:[Ve.Shijiazhuang,Ve.Tianjin],cost:5},{nodes:[Ve.Shijiazhuang,Ve.Jinan],cost:6},{nodes:[Ve.Shijiazhuang,Ve.Zhengzhou],cost:9},{nodes:[Ve.Zhengzhou,Ve.Jinan],cost:7},{nodes:[Ve.Zhengzhou,Ve.Nanjing],cost:12},{nodes:[Ve.Nanjing,Ve.Wuhan],cost:10},{nodes:[Ve.Jinan,Ve.Nanjing],cost:11},{nodes:[Ve.Nanjing,Ve.Qingoad],cost:12},{nodes:[Ve.Qingoad,Ve.Jinan],cost:6},{nodes:[Ve.Jinan,Ve.Tianjin],cost:6},{nodes:[Ve.Xining,Ve.Lanzhou],cost:6},{nodes:[Ve.Yinchjan,Ve.Badtou],cost:9},{nodes:[Ve.Badtou,Ve.Taiyuan],cost:9},{nodes:[Ve.Taiyuan,Ve.Yinchjan],cost:14},{nodes:[Ve.Yinchjan,Ve.Hami],cost:25},{nodes:[Ve.Hami,Ve.Xining],cost:25},{nodes:[Ve.Wulumuqi,Ve.Kuerle],cost:9},{nodes:[Ve.Kuerle,Ve.Karamay],cost:12},{nodes:[Ve.Karamay,Ve.Wulumuqi],cost:7},{nodes:[Ve.Wulumuqi,Ve.Hami],cost:12},{nodes:[Ve.Hami,Ve.Kuerle],cost:15},{nodes:[Ve.Taiyuan,Ve.Beijing],cost:10},{nodes:[Ve.Beijing,Ve.Shijiazhuang],cost:6},{nodes:[Ve.Beijing,Ve.Tangshan],cost:3},{nodes:[Ve.Tangshan,Ve.Tianjin],cost:0},{nodes:[Ve.Beijing,Ve.Badtou],cost:14},{nodes:[Ve.Tangshan,Ve.Shenyang],cost:11},{nodes:[Ve.Dalian,Ve.Anshan],cost:6},{nodes:[Ve.Qiqhaer,Ve.Hegang],cost:11},{nodes:[Ve.Hegang,Ve.Haerbin],cost:7},{nodes:[Ve.Haerbin,Ve.Qiqhaer],cost:6},{nodes:[Ve.Changchun,Ve.Jilin],cost:5},{nodes:[Ve.Jilin,Ve.Haerbin],cost:5},{nodes:[Ve.Haerbin,Ve.Changchun],cost:5},{nodes:[Ve.Changchun,Ve.Shenyang],cost:5},{nodes:[Ve.Shenyang,Ve.Anshan],cost:2},{nodes:[Ve.Jilin,Ve.Fushun],cost:6},{nodes:[Ve.Fushun,Ve.Shenyang],cost:0},{nodes:[Ve.Changchun,Ve.Qiqhaer],cost:9}],layout:"Portrait",mapPosition:[-400,70],adjustRatio:[.35,.35],resupply:[[[4,4,3],[5,5,3],[6,6,4],[7,7,5],[9,9,6]],[[2,2,4],[3,3,4],[4,4,5],[5,5,6],[6,6,7]],[[2,2,1],[2,2,1],[3,3,2],[3,3,3],[5,5,3]],[[1,1,1],[1,1,1],[2,2,2],[3,3,2],[3,3,3]]],startingResources:[12,12,6,0],setupDeck:function(e,n,t){var r=Object(me["cloneDeep"])(Te),o=[];2==e||3==e?o=[3,4,9,11,16,18,20,24,30,33,46]:4==e?o=[3,4,11,18,24,33,46]:5!=e&&6!=e||(o=[3,4,33]);var a=r.filter((function(e){return!o.includes(e.number)})),i=a.filter((function(e){return e.number<=30})),s=a.filter((function(e){return e.type==he.Step3})),u=De(a.filter((function(e){return e.number>=31&&e.number<=35})).concat(s),t()+""),c=De(a.filter((function(e){return e.number>=36&&e.number<=50})),t()+""),l=i.splice(0,e),f=[],d=i.concat(u).concat(c);return{actualMarket:l,futureMarket:f,powerPlantsDeck:d}},mapSpecificRules:"The power plant deck is arranged as follows: plants from 3-30 in order, plants from 31-35 and step 3 card shuffled, plants from 36-50 shuffled.\nThe same set of plants are removed in every game.\nThere are several changes to when new plants are drawn. In particular, during steps 1 and 2, plants are only drawn from the deck during the bureaucracy phase."};(function(e){e["Brown"]="brown",e["Purple"]="purple",e["Blue"]="blue",e["Yellow"]="yellow",e["Green"]="green",e["Red"]="red"})(He||(He={})),function(e){e["Calais"]="Calais",e["Lile"]="Lile",e["Amiens"]="Amiens",e["Reims"]="Reims",e["Metz"]="Metz",e["Nancy"]="Nancy",e["Strasbourg"]="Strasbourg",e["Havre"]="Havre",e["Caen"]="Caen",e["Brest"]="Brest",e["Rennes"]="Rennes",e["Lemans"]="Le Mans",e["Angers"]="Angers",e["Rouen"]="Rouen",e["Paris1"]="Paris 1",e["Paris2"]="Paris 2",e["Paris3"]="Paris 3",e["Orleans"]="Orleans",e["Tours"]="Tours",e["Limoges"]="Limoges",e["Clermontferrand"]="Clermont-Ferrand",e["Besancon"]="Besancon",e["Dijon"]="Dijon",e["Lyon"]="Lyon",e["Chamonix"]="Chamonix",e["Mulhouse"]="Mulhouse",e["Grenoble"]="Grenoble",e["Saintetienne"]="Saint-Etienne",e["Nice"]="Nice",e["Toulon"]="Toulon",e["Aimenprovence"]="Aim-En-Provence",e["Marseille"]="Marseille",e["Nimes"]="Nimes",e["Montpellier"]="Montpellier",e["Perpignan"]="Perpignan",e["Nantes"]="Nantes",e["Larochelle"]="La Rochelle",e["Bordeaux"]="Bordeaux",e["Biarritz"]="Biarritz",e["Toulous"]="Toulous",e["Carcassone"]="Carcas Sone",e["Lourdes"]="Lourdes"}(Ye||(Ye={}));var qe,Ze,Je={name:"France",cities:[{name:Ye.Calais,region:He.Brown,x:661,y:294},{name:Ye.Lile,region:He.Brown,x:791,y:328},{name:Ye.Amiens,region:He.Brown,x:700,y:433},{name:Ye.Reims,region:He.Brown,x:888,y:531},{name:Ye.Metz,region:He.Brown,x:1076,y:528},{name:Ye.Nancy,region:He.Brown,x:1078,y:643},{name:Ye.Strasbourg,region:He.Brown,x:1208,y:615},{name:Ye.Havre,region:He.Purple,x:487,y:471},{name:Ye.Caen,region:He.Purple,x:423,y:567},{name:Ye.Brest,region:He.Purple,x:79,y:654},{name:Ye.Rennes,region:He.Purple,x:326,y:695},{name:Ye.Lemans,region:He.Purple,x:516,y:699},{name:Ye.Angers,region:He.Purple,x:446,y:798},{name:Ye.Rouen,region:He.Purple,x:598,y:506},{name:Ye.Paris1,region:He.Blue,x:693,y:553},{name:Ye.Paris2,region:He.Blue,x:779,y:566},{name:Ye.Paris3,region:He.Blue,x:722,y:633},{name:Ye.Orleans,region:He.Blue,x:684,y:736},{name:Ye.Tours,region:He.Blue,x:564,y:813},{name:Ye.Limoges,region:He.Blue,x:605,y:1009},{name:Ye.Clermontferrand,region:He.Blue,x:777,y:1017},{name:Ye.Besancon,region:He.Yellow,x:1084,y:828},{name:Ye.Dijon,region:He.Yellow,x:964,y:801},{name:Ye.Lyon,region:He.Yellow,x:964,y:973},{name:Ye.Chamonix,region:He.Yellow,x:1153,y:987},{name:Ye.Mulhouse,region:He.Yellow,x:1180,y:742},{name:Ye.Grenoble,region:He.Yellow,x:1048,y:1116},{name:Ye.Saintetienne,region:He.Yellow,x:892,y:1088},{name:Ye.Nice,region:He.Green,x:1178,y:1302},{name:Ye.Toulon,region:He.Green,x:1070,y:1397},{name:Ye.Aimenprovence,region:He.Green,x:1016,y:1304},{name:Ye.Marseille,region:He.Green,x:954,y:1369},{name:Ye.Nimes,region:He.Green,x:889,y:1256},{name:Ye.Montpellier,region:He.Green,x:816,y:1330},{name:Ye.Perpignan,region:He.Green,x:767,y:1460},{name:Ye.Nantes,region:He.Red,x:330,y:833},{name:Ye.Larochelle,region:He.Red,x:379,y:959},{name:Ye.Bordeaux,region:He.Red,x:435,y:1148},{name:Ye.Biarritz,region:He.Red,x:345,y:1328},{name:Ye.Toulous,region:He.Red,x:621,y:1309},{name:Ye.Carcassone,region:He.Red,x:700,y:1382},{name:Ye.Lourdes,region:He.Red,x:479,y:1393}],connections:[{nodes:[Ye.Calais,Ye.Havre],cost:13},{nodes:[Ye.Calais,Ye.Lile],cost:7},{nodes:[Ye.Calais,Ye.Amiens],cost:8},{nodes:[Ye.Lile,Ye.Reims],cost:9},{nodes:[Ye.Havre,Ye.Rouen],cost:5},{nodes:[Ye.Havre,Ye.Caen],cost:5},{nodes:[Ye.Caen,Ye.Rennes],cost:12},{nodes:[Ye.Rennes,Ye.Brest],cost:16},{nodes:[Ye.Brest,Ye.Nantes],cost:19},{nodes:[Ye.Rennes,Ye.Nantes],cost:7},{nodes:[Ye.Rennes,Ye.Angers],cost:7},{nodes:[Ye.Rennes,Ye.Lemans],cost:9},{nodes:[Ye.Caen,Ye.Lemans],cost:10},{nodes:[Ye.Lemans,Ye.Paris3],cost:10},{nodes:[Ye.Paris3,Ye.Caen],cost:12},{nodes:[Ye.Caen,Ye.Rouen],cost:9},{nodes:[Ye.Rouen,Ye.Paris1],cost:9},{nodes:[Ye.Rouen,Ye.Amiens],cost:6},{nodes:[Ye.Lile,Ye.Amiens],cost:7},{nodes:[Ye.Amiens,Ye.Reims],cost:11},{nodes:[Ye.Reims,Ye.Metz],cost:12},{nodes:[Ye.Metz,Ye.Strasbourg],cost:11},{nodes:[Ye.Strasbourg,Ye.Nancy],cost:10},{nodes:[Ye.Strasbourg,Ye.Mulhouse],cost:6},{nodes:[Ye.Mulhouse,Ye.Besancon],cost:8},{nodes:[Ye.Besancon,Ye.Nancy],cost:14},{nodes:[Ye.Nancy,Ye.Dijon],cost:15},{nodes:[Ye.Reims,Ye.Nancy],cost:13},{nodes:[Ye.Nancy,Ye.Paris2],cost:21},{nodes:[Ye.Paris1,Ye.Paris2],cost:0},{nodes:[Ye.Paris1,Ye.Paris3],cost:0},{nodes:[Ye.Paris2,Ye.Dijon],cost:20},{nodes:[Ye.Dijon,Ye.Orleans],cost:18},{nodes:[Ye.Orleans,Ye.Lemans],cost:8},{nodes:[Ye.Lemans,Ye.Tours],cost:5},{nodes:[Ye.Tours,Ye.Orleans],cost:7},{nodes:[Ye.Paris1,Ye.Amiens],cost:9},{nodes:[Ye.Dijon,Ye.Clermontferrand],cost:19},{nodes:[Ye.Clermontferrand,Ye.Limoges],cost:12},{nodes:[Ye.Limoges,Ye.Toulous],cost:19},{nodes:[Ye.Toulous,Ye.Clermontferrand],cost:24},{nodes:[Ye.Clermontferrand,Ye.Montpellier],cost:22},{nodes:[Ye.Montpellier,Ye.Nimes],cost:3},{nodes:[Ye.Saintetienne,Ye.Grenoble],cost:10},{nodes:[Ye.Grenoble,Ye.Chamonix],cost:12},{nodes:[Ye.Chamonix,Ye.Besancon],cost:19},{nodes:[Ye.Besancon,Ye.Dijon],cost:6},{nodes:[Ye.Dijon,Ye.Lyon],cost:13},{nodes:[Ye.Lyon,Ye.Clermontferrand],cost:11},{nodes:[Ye.Saintetienne,Ye.Montpellier],cost:18},{nodes:[Ye.Saintetienne,Ye.Nimes],cost:16},{nodes:[Ye.Nimes,Ye.Aimenprovence],cost:8},{nodes:[Ye.Aimenprovence,Ye.Nice],cost:8},{nodes:[Ye.Nice,Ye.Toulon],cost:7},{nodes:[Ye.Toulon,Ye.Marseille],cost:3},{nodes:[Ye.Marseille,Ye.Aimenprovence],cost:0},{nodes:[Ye.Nice,Ye.Grenoble],cost:19},{nodes:[Ye.Grenoble,Ye.Aimenprovence],cost:17},{nodes:[Ye.Grenoble,Ye.Nimes],cost:18},{nodes:[Ye.Montpellier,Ye.Toulous],cost:14},{nodes:[Ye.Toulous,Ye.Bordeaux],cost:14},{nodes:[Ye.Bordeaux,Ye.Limoges],cost:13},{nodes:[Ye.Limoges,Ye.Tours],cost:13},{nodes:[Ye.Tours,Ye.Larochelle],cost:13},{nodes:[Ye.Larochelle,Ye.Angers],cost:12},{nodes:[Ye.Angers,Ye.Lemans],cost:5},{nodes:[Ye.Angers,Ye.Nantes],cost:5},{nodes:[Ye.Nantes,Ye.Larochelle],cost:9},{nodes:[Ye.Larochelle,Ye.Bordeaux],cost:13},{nodes:[Ye.Bordeaux,Ye.Biarritz],cost:12},{nodes:[Ye.Bordeaux,Ye.Lourdes],cost:14},{nodes:[Ye.Lourdes,Ye.Biarritz],cost:9},{nodes:[Ye.Lourdes,Ye.Toulous],cost:10},{nodes:[Ye.Lourdes,Ye.Carcassone],cost:15},{nodes:[Ye.Lourdes,Ye.Perpignan],cost:20},{nodes:[Ye.Perpignan,Ye.Carcassone],cost:6},{nodes:[Ye.Carcassone,Ye.Toulous],cost:6},{nodes:[Ye.Carcassone,Ye.Montpellier],cost:9},{nodes:[Ye.Montpellier,Ye.Perpignan],cost:11},{nodes:[Ye.Orleans,Ye.Limoges],cost:19},{nodes:[Ye.Orleans,Ye.Clermontferrand],cost:18},{nodes:[Ye.Paris3,Ye.Orleans],cost:7},{nodes:[Ye.Angers,Ye.Tours],cost:6},{nodes:[Ye.Larochelle,Ye.Limoges],cost:13},{nodes:[Ye.Nancy,Ye.Metz],cost:3},{nodes:[Ye.Nancy,Ye.Mulhouse],cost:12},{nodes:[Ye.Besancon,Ye.Lyon],cost:16},{nodes:[Ye.Lyon,Ye.Grenoble],cost:7},{nodes:[Ye.Lyon,Ye.Chamonix],cost:13},{nodes:[Ye.Lyon,Ye.Saintetienne],cost:6},{nodes:[Ye.Saintetienne,Ye.Clermontferrand],cost:10},{nodes:[Ye.Paris2,Ye.Reims],cost:9},{nodes:[Ye.Paris3,Ye.Paris2],cost:0}],layout:"Portrait",mapPosition:[50,-100],adjustRatio:[.7,.7],resupply:[[[3,4,3],[4,5,3],[5,6,4],[5,7,5],[7,9,6]],[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]],startingResources:[24,18,6,8],setupDeck:function(e,n,t){var r,o,a=Object(me["cloneDeep"])(Te);if("original"==n){a=a.slice(8);var i=a.splice(0,1)[0];a.splice(1,1)[0];var s=a.pop();a=De(a,t()+""),2==e||3==e?a=a.slice(8):4==e&&(a=a.slice(4)),a.unshift(i),a.push(s),r=[et(3),et(4),et(5),et(6)],o=[et(7),et(8),et(9),et(10)]}else{a.splice(10,1)[0];var u=a.splice(8,1)[0],c=De(a.splice(0,11),t()+""),l=c.splice(0,7);l.push(u),l=l.sort((function(e,n){return e.number-n.number})),r=l.slice(0,4),o=l.slice(4);var f=c.shift(),d=a.pop();a=De(a,t()+""),2==e?a=De(a.slice(6).concat(c),t()+""):3==e?(c=c.slice(1),a=De(a.slice(6).concat(c),t()+"")):a=De(4==e?a.slice(3).concat(c):a.concat(c),t()+""),a.unshift(f),a.push(d)}return{actualMarket:r,futureMarket:o,powerPlantsDeck:a}},mapSpecificRules:"Remove power plant 13. Put power plant 11 on top of the deck."};(function(e){e["Purple"]="purple",e["Green"]="green",e["Red"]="red",e["Yellow"]="yellow",e["Cyan"]="cyan",e["Brown"]="brown"})(qe||(qe={})),function(e){e["Flensburg"]="Flensburg",e["Kiel"]="Kiel",e["Hamburg"]="Hamburg",e["Hannover"]="Hannover",e["Bremen"]="Bremen",e["Wilhelmshaven"]="Wilhelmshaven",e["Cuxhaven"]="Cuxhaven",e["Lubeck"]="Lubeck",e["Rostock"]="Rostock",e["Schwerin"]="Schwerin",e["Torgelow"]="Torgelow",e["Magdeburg"]="Magdeburg",e["Berlin"]="Berlin",e["FrankfurtO"]="Frankfurt-O",e["Halle"]="Halle",e["Leipzig"]="Leipzig",e["Dresden"]="Dresden",e["Erfurt"]="Erfurt",e["Fulda"]="Fulda",e["Würzburg"]="Würzburg",e["Nurnberg"]="Nurnberg",e["Osnabrück"]="Osnabrück",e["Münster"]="Münster",e["Essen"]="Essen",e["Duisburg"]="Duisburg",e["Dortmund"]="Dortmund",e["Dusseldorf"]="Dusseldorf",e["Kassel"]="Kassel",e["Aachen"]="Aachen",e["Köln"]="Köln",e["Trier"]="Trier",e["Wiesbaden"]="Wiesbaden",e["FrankfurtM"]="Frankfurt-M",e["Saarbrücken"]="Saarbrücken",e["Mannheim"]="Mannheim",e["Freiburg"]="Freiburg",e["Stuttgart"]="Stuttgart",e["Konstanz"]="Konstanz",e["Augsburg"]="Augsburg",e["Regensburg"]="Regensburg",e["München"]="München",e["Passau"]="Passau",e["Stralsund"]="Stralsund",e["Mainz"]="Mainz"}(Ze||(Ze={}));var Xe,Qe,en={name:"Germany",cities:[{name:Ze.Flensburg,region:qe.Green,x:37,y:427},{name:Ze.Kiel,region:qe.Green,x:106,y:392},{name:Ze.Hamburg,region:qe.Green,x:212,y:396},{name:Ze.Hannover,region:qe.Green,x:378,y:395},{name:Ze.Bremen,region:qe.Green,x:276,y:463},{name:Ze.Wilhelmshaven,region:qe.Green,x:211,y:521},{name:Ze.Cuxhaven,region:qe.Green,x:168,y:474},{name:Ze.Lubeck,region:qe.Brown,x:153,y:341},{name:Ze.Rostock,region:qe.Brown,x:128,y:256},{name:Ze.Schwerin,region:qe.Brown,x:217,y:297},{name:Ze.Torgelow,region:qe.Brown,x:210,y:126},{name:Ze.Magdeburg,region:qe.Brown,x:389,y:271},{name:Ze.Berlin,region:qe.Brown,x:355,y:170},{name:Ze.FrankfurtO,region:qe.Brown,x:381,y:99},{name:Ze.Halle,region:qe.Yellow,x:493,y:259},{name:Ze.Leipzig,region:qe.Yellow,x:526,y:222},{name:Ze.Dresden,region:qe.Yellow,x:572,y:126},{name:Ze.Erfurt,region:qe.Yellow,x:567,y:309},{name:Ze.Fulda,region:qe.Yellow,x:628,y:398},{name:Ze.Würzburg,region:qe.Yellow,x:735,y:386},{name:Ze.Nurnberg,region:qe.Yellow,x:780,y:309},{name:Ze.Osnabrück,region:qe.Red,x:359,y:516},{name:Ze.Münster,region:qe.Red,x:427,y:554},{name:Ze.Essen,region:qe.Red,x:475,y:603},{name:Ze.Duisburg,region:qe.Red,x:456,y:645},{name:Ze.Dortmund,region:qe.Red,x:505,y:543},{name:Ze.Dusseldorf,region:qe.Red,x:537,y:635},{name:Ze.Kassel,region:qe.Red,x:524,y:430},{name:Ze.Aachen,region:qe.Cyan,x:614,y:654},{name:Ze.Köln,region:qe.Cyan,x:590,y:589},{name:Ze.Trier,region:qe.Cyan,x:739,y:628},{name:Ze.Wiesbaden,region:qe.Cyan,x:697,y:514},{name:Ze.FrankfurtM,region:qe.Cyan,x:672,y:473},{name:Ze.Saarbrücken,region:qe.Cyan,x:818,y:568},{name:Ze.Mannheim,region:qe.Cyan,x:796,y:479},{name:Ze.Freiburg,region:qe.Purple,x:966,y:537},{name:Ze.Stuttgart,region:qe.Purple,x:884,y:458},{name:Ze.Konstanz,region:qe.Purple,x:1011,y:459},{name:Ze.Augsburg,region:qe.Purple,x:911,y:346},{name:Ze.Regensburg,region:qe.Purple,x:846,y:256},{name:Ze.München,region:qe.Purple,x:967,y:278},{name:Ze.Passau,region:qe.Purple,x:904,y:153}],connections:[{nodes:[Ze.Flensburg,Ze.Kiel],cost:4},{nodes:[Ze.Kiel,Ze.Hamburg],cost:8},{nodes:[Ze.Kiel,Ze.Lubeck],cost:4},{nodes:[Ze.Hamburg,Ze.Hannover],cost:17},{nodes:[Ze.Hamburg,Ze.Bremen],cost:11},{nodes:[Ze.Hamburg,Ze.Cuxhaven],cost:11},{nodes:[Ze.Hamburg,Ze.Lubeck],cost:6},{nodes:[Ze.Hamburg,Ze.Schwerin],cost:8},{nodes:[Ze.Bremen,Ze.Wilhelmshaven],cost:11},{nodes:[Ze.Bremen,Ze.Hannover],cost:10},{nodes:[Ze.Bremen,Ze.Cuxhaven],cost:8},{nodes:[Ze.Bremen,Ze.Osnabrück],cost:11},{nodes:[Ze.Hannover,Ze.Schwerin],cost:19},{nodes:[Ze.Hannover,Ze.Magdeburg],cost:15},{nodes:[Ze.Hannover,Ze.Erfurt],cost:19},{nodes:[Ze.Hannover,Ze.Osnabrück],cost:16},{nodes:[Ze.Hannover,Ze.Kassel],cost:15},{nodes:[Ze.Wilhelmshaven,Ze.Osnabrück],cost:14},{nodes:[Ze.Lubeck,Ze.Schwerin],cost:6},{nodes:[Ze.Schwerin,Ze.Rostock],cost:6},{nodes:[Ze.Schwerin,Ze.Torgelow],cost:19},{nodes:[Ze.Schwerin,Ze.Berlin],cost:18},{nodes:[Ze.Schwerin,Ze.Magdeburg],cost:16},{nodes:[Ze.Torgelow,Ze.Rostock],cost:19},{nodes:[Ze.Torgelow,Ze.Berlin],cost:15},{nodes:[Ze.Berlin,Ze.Magdeburg],cost:10},{nodes:[Ze.Berlin,Ze.FrankfurtO],cost:6},{nodes:[Ze.Berlin,Ze.Halle],cost:17},{nodes:[Ze.Magdeburg,Ze.Halle],cost:11},{nodes:[Ze.FrankfurtO,Ze.Leipzig],cost:21},{nodes:[Ze.FrankfurtO,Ze.Dresden],cost:16},{nodes:[Ze.Halle,Ze.Leipzig],cost:0},{nodes:[Ze.Leipzig,Ze.Dresden],cost:13},{nodes:[Ze.Erfurt,Ze.Halle],cost:6},{nodes:[Ze.Erfurt,Ze.Dresden],cost:19},{nodes:[Ze.Erfurt,Ze.Nurnberg],cost:21},{nodes:[Ze.Erfurt,Ze.Fulda],cost:13},{nodes:[Ze.Erfurt,Ze.Kassel],cost:15},{nodes:[Ze.Fulda,Ze.Würzburg],cost:11},{nodes:[Ze.Fulda,Ze.Kassel],cost:8},{nodes:[Ze.Fulda,Ze.FrankfurtM],cost:8},{nodes:[Ze.Würzburg,Ze.Nurnberg],cost:8},{nodes:[Ze.Würzburg,Ze.FrankfurtM],cost:13},{nodes:[Ze.Würzburg,Ze.Mannheim],cost:10},{nodes:[Ze.Würzburg,Ze.Stuttgart],cost:12},{nodes:[Ze.Würzburg,Ze.Augsburg],cost:19},{nodes:[Ze.Nurnberg,Ze.Augsburg],cost:18},{nodes:[Ze.Nurnberg,Ze.Regensburg],cost:12},{nodes:[Ze.Osnabrück,Ze.Münster],cost:7},{nodes:[Ze.Osnabrück,Ze.Kassel],cost:20},{nodes:[Ze.Münster,Ze.Essen],cost:6},{nodes:[Ze.Münster,Ze.Dortmund],cost:2},{nodes:[Ze.Essen,Ze.Duisburg],cost:0},{nodes:[Ze.Essen,Ze.Dusseldorf],cost:2},{nodes:[Ze.Essen,Ze.Dortmund],cost:4},{nodes:[Ze.Dortmund,Ze.Kassel],cost:18},{nodes:[Ze.Dortmund,Ze.Köln],cost:10},{nodes:[Ze.Dortmund,Ze.FrankfurtM],cost:20},{nodes:[Ze.Kassel,Ze.FrankfurtM],cost:13},{nodes:[Ze.Dusseldorf,Ze.Aachen],cost:9},{nodes:[Ze.Dusseldorf,Ze.Köln],cost:4},{nodes:[Ze.Aachen,Ze.Köln],cost:7},{nodes:[Ze.Aachen,Ze.Trier],cost:19},{nodes:[Ze.Trier,Ze.Köln],cost:20},{nodes:[Ze.Trier,Ze.Wiesbaden],cost:18},{nodes:[Ze.Trier,Ze.Saarbrücken],cost:11},{nodes:[Ze.Wiesbaden,Ze.FrankfurtM],cost:0},{nodes:[Ze.Wiesbaden,Ze.Köln],cost:21},{nodes:[Ze.Wiesbaden,Ze.Saarbrücken],cost:10},{nodes:[Ze.Wiesbaden,Ze.Mannheim],cost:11},{nodes:[Ze.Mannheim,Ze.Saarbrücken],cost:11},{nodes:[Ze.Mannheim,Ze.Stuttgart],cost:6},{nodes:[Ze.Stuttgart,Ze.Saarbrücken],cost:17},{nodes:[Ze.Stuttgart,Ze.Freiburg],cost:16},{nodes:[Ze.Stuttgart,Ze.Konstanz],cost:16},{nodes:[Ze.Stuttgart,Ze.Augsburg],cost:15},{nodes:[Ze.Konstanz,Ze.Freiburg],cost:14},{nodes:[Ze.Konstanz,Ze.Augsburg],cost:17},{nodes:[Ze.Regensburg,Ze.Augsburg],cost:13},{nodes:[Ze.Regensburg,Ze.München],cost:10},{nodes:[Ze.Regensburg,Ze.Passau],cost:12},{nodes:[Ze.Augsburg,Ze.München],cost:6},{nodes:[Ze.Passau,Ze.München],cost:14}],layout:"Landscape",mapPosition:[20,20]},nn={name:"Germany",cities:[{name:Ze.Flensburg,region:qe.Green,x:37,y:427},{name:Ze.Kiel,region:qe.Green,x:106,y:392},{name:Ze.Hamburg,region:qe.Green,x:212,y:396},{name:Ze.Hannover,region:qe.Green,x:378,y:395},{name:Ze.Bremen,region:qe.Green,x:276,y:463},{name:Ze.Wilhelmshaven,region:qe.Green,x:211,y:521},{name:Ze.Cuxhaven,region:qe.Green,x:168,y:474},{name:Ze.Lubeck,region:qe.Brown,x:153,y:341},{name:Ze.Rostock,region:qe.Brown,x:128,y:256},{name:Ze.Schwerin,region:qe.Brown,x:217,y:297},{name:Ze.Stralsund,region:qe.Brown,x:210,y:126},{name:Ze.Magdeburg,region:qe.Brown,x:389,y:271},{name:Ze.Berlin,region:qe.Brown,x:355,y:170},{name:Ze.FrankfurtO,region:qe.Brown,x:381,y:99},{name:Ze.Halle,region:qe.Yellow,x:493,y:259},{name:Ze.Leipzig,region:qe.Yellow,x:526,y:222},{name:Ze.Dresden,region:qe.Yellow,x:572,y:126},{name:Ze.Erfurt,region:qe.Yellow,x:567,y:309},{name:Ze.Fulda,region:qe.Yellow,x:628,y:398},{name:Ze.Würzburg,region:qe.Yellow,x:735,y:386},{name:Ze.Nurnberg,region:qe.Yellow,x:780,y:309},{name:Ze.Osnabrück,region:qe.Red,x:359,y:516},{name:Ze.Münster,region:qe.Red,x:427,y:554},{name:Ze.Essen,region:qe.Red,x:475,y:603},{name:Ze.Duisburg,region:qe.Red,x:456,y:645},{name:Ze.Dortmund,region:qe.Red,x:505,y:543},{name:Ze.Dusseldorf,region:qe.Red,x:537,y:635},{name:Ze.Kassel,region:qe.Red,x:524,y:430},{name:Ze.Aachen,region:qe.Cyan,x:614,y:654},{name:Ze.Köln,region:qe.Cyan,x:590,y:589},{name:Ze.Trier,region:qe.Cyan,x:739,y:628},{name:Ze.Mainz,region:qe.Cyan,x:697,y:514},{name:Ze.FrankfurtM,region:qe.Cyan,x:672,y:473},{name:Ze.Saarbrücken,region:qe.Cyan,x:818,y:568},{name:Ze.Mannheim,region:qe.Cyan,x:796,y:479},{name:Ze.Freiburg,region:qe.Purple,x:966,y:537},{name:Ze.Stuttgart,region:qe.Purple,x:884,y:458},{name:Ze.Konstanz,region:qe.Purple,x:1011,y:459},{name:Ze.Augsburg,region:qe.Purple,x:911,y:346},{name:Ze.Regensburg,region:qe.Purple,x:846,y:256},{name:Ze.München,region:qe.Purple,x:967,y:278},{name:Ze.Passau,region:qe.Purple,x:904,y:153}],connections:[{nodes:[Ze.Flensburg,Ze.Kiel],cost:4},{nodes:[Ze.Kiel,Ze.Hamburg],cost:8},{nodes:[Ze.Kiel,Ze.Lubeck],cost:4},{nodes:[Ze.Hamburg,Ze.Hannover],cost:17},{nodes:[Ze.Hamburg,Ze.Bremen],cost:11},{nodes:[Ze.Hamburg,Ze.Cuxhaven],cost:11},{nodes:[Ze.Hamburg,Ze.Lubeck],cost:6},{nodes:[Ze.Hamburg,Ze.Schwerin],cost:8},{nodes:[Ze.Bremen,Ze.Wilhelmshaven],cost:11},{nodes:[Ze.Bremen,Ze.Hannover],cost:10},{nodes:[Ze.Bremen,Ze.Cuxhaven],cost:8},{nodes:[Ze.Bremen,Ze.Osnabrück],cost:11},{nodes:[Ze.Hannover,Ze.Schwerin],cost:19},{nodes:[Ze.Hannover,Ze.Magdeburg],cost:15},{nodes:[Ze.Hannover,Ze.Erfurt],cost:19},{nodes:[Ze.Hannover,Ze.Osnabrück],cost:16},{nodes:[Ze.Hannover,Ze.Kassel],cost:15},{nodes:[Ze.Wilhelmshaven,Ze.Osnabrück],cost:14},{nodes:[Ze.Lubeck,Ze.Schwerin],cost:6},{nodes:[Ze.Schwerin,Ze.Rostock],cost:6},{nodes:[Ze.Schwerin,Ze.Stralsund],cost:19},{nodes:[Ze.Schwerin,Ze.Berlin],cost:18},{nodes:[Ze.Schwerin,Ze.Magdeburg],cost:16},{nodes:[Ze.Stralsund,Ze.Rostock],cost:19},{nodes:[Ze.Stralsund,Ze.Berlin],cost:15},{nodes:[Ze.Berlin,Ze.Magdeburg],cost:10},{nodes:[Ze.Berlin,Ze.FrankfurtO],cost:6},{nodes:[Ze.Berlin,Ze.Halle],cost:17},{nodes:[Ze.Magdeburg,Ze.Halle],cost:11},{nodes:[Ze.FrankfurtO,Ze.Leipzig],cost:21},{nodes:[Ze.FrankfurtO,Ze.Dresden],cost:16},{nodes:[Ze.Halle,Ze.Leipzig],cost:0},{nodes:[Ze.Leipzig,Ze.Dresden],cost:13},{nodes:[Ze.Erfurt,Ze.Halle],cost:6},{nodes:[Ze.Erfurt,Ze.Dresden],cost:19},{nodes:[Ze.Erfurt,Ze.Nurnberg],cost:21},{nodes:[Ze.Erfurt,Ze.Fulda],cost:13},{nodes:[Ze.Erfurt,Ze.Kassel],cost:15},{nodes:[Ze.Fulda,Ze.Würzburg],cost:11},{nodes:[Ze.Fulda,Ze.Kassel],cost:8},{nodes:[Ze.Fulda,Ze.FrankfurtM],cost:8},{nodes:[Ze.Würzburg,Ze.Nurnberg],cost:8},{nodes:[Ze.Würzburg,Ze.FrankfurtM],cost:13},{nodes:[Ze.Würzburg,Ze.Mannheim],cost:10},{nodes:[Ze.Würzburg,Ze.Stuttgart],cost:12},{nodes:[Ze.Würzburg,Ze.Augsburg],cost:19},{nodes:[Ze.Nurnberg,Ze.Augsburg],cost:18},{nodes:[Ze.Nurnberg,Ze.Regensburg],cost:12},{nodes:[Ze.Osnabrück,Ze.Münster],cost:7},{nodes:[Ze.Osnabrück,Ze.Kassel],cost:20},{nodes:[Ze.Münster,Ze.Essen],cost:6},{nodes:[Ze.Münster,Ze.Dortmund],cost:2},{nodes:[Ze.Essen,Ze.Duisburg],cost:0},{nodes:[Ze.Essen,Ze.Dusseldorf],cost:2},{nodes:[Ze.Essen,Ze.Dortmund],cost:5},{nodes:[Ze.Dortmund,Ze.Kassel],cost:18},{nodes:[Ze.Dortmund,Ze.Köln],cost:10},{nodes:[Ze.Dortmund,Ze.FrankfurtM],cost:20},{nodes:[Ze.Kassel,Ze.FrankfurtM],cost:13},{nodes:[Ze.Dusseldorf,Ze.Aachen],cost:9},{nodes:[Ze.Dusseldorf,Ze.Köln],cost:4},{nodes:[Ze.Aachen,Ze.Köln],cost:7},{nodes:[Ze.Aachen,Ze.Trier],cost:19},{nodes:[Ze.Trier,Ze.Köln],cost:20},{nodes:[Ze.Trier,Ze.Mainz],cost:18},{nodes:[Ze.Trier,Ze.Saarbrücken],cost:11},{nodes:[Ze.Mainz,Ze.FrankfurtM],cost:0},{nodes:[Ze.Mainz,Ze.Köln],cost:21},{nodes:[Ze.Mainz,Ze.Saarbrücken],cost:10},{nodes:[Ze.Mainz,Ze.Mannheim],cost:11},{nodes:[Ze.Mannheim,Ze.Saarbrücken],cost:16},{nodes:[Ze.Mannheim,Ze.Stuttgart],cost:6},{nodes:[Ze.Stuttgart,Ze.Saarbrücken],cost:17},{nodes:[Ze.Stuttgart,Ze.Freiburg],cost:16},{nodes:[Ze.Stuttgart,Ze.Konstanz],cost:16},{nodes:[Ze.Stuttgart,Ze.Augsburg],cost:15},{nodes:[Ze.Konstanz,Ze.Freiburg],cost:14},{nodes:[Ze.Konstanz,Ze.Augsburg],cost:17},{nodes:[Ze.Regensburg,Ze.Augsburg],cost:13},{nodes:[Ze.Regensburg,Ze.München],cost:10},{nodes:[Ze.Regensburg,Ze.Passau],cost:12},{nodes:[Ze.Augsburg,Ze.München],cost:6},{nodes:[Ze.Passau,Ze.München],cost:14}],layout:"Landscape",mapPosition:[20,20],mapSpecificRules:"Stop resupplying uranium after power plant 39 has been bought."};(function(e){e["Red"]="red",e["Brown"]="brown",e["Green"]="green",e["Orange"]="orange",e["Yellow"]="yellow",e["Pink"]="pink"})(Xe||(Xe={})),function(e){e["Thiruvananthapuram"]="Thiruvananthapuram",e["Madurai"]="Madurai",e["Coimbatore"]="Coimbatore",e["Chennai"]="Chennai",e["Hyderabad"]="Hyderabad",e["Bangalore1"]="Bangalore 1",e["Bangalore2"]="Bangalore 2",e["Dibrugarh"]="Dibrugarh",e["Imphal"]="Imphal",e["Aizawi"]="Aizawi",e["Chittagong"]="Chittagong",e["Shillong"]="Shillong",e["Dhaka"]="Dhaka",e["Khulna"]="Khulna",e["Darjeeling"]="Darjeeling",e["Kathmandu"]="Kathmandu",e["Patna"]="Patna",e["Lakhnau"]="Lakhnau",e["Varanasi"]="Varanasi",e["Agra"]="Agra",e["Kanpur"]="Kanpur",e["Srinagar"]="Srinagar",e["Ludhiana"]="Ludhiana",e["Delhi1"]="Delhi 1",e["Delhi2"]="Delhi 2",e["Jaipur"]="Jaipur",e["Udaipur"]="Udaipur",e["Ahmedabad"]="Ahmedabad",e["Dhanbad"]="Dhanbad",e["Kolkata"]="Kolkata",e["Bhudaneswar"]="Bhudaneswar",e["Sambalpur"]="Sambalpur",e["Jabalpur"]="Jabalpur",e["Nagpur"]="Nagpur",e["Visakhapatnam"]="Visakhapatnam",e["Goa"]="Goa",e["Pune"]="Pune",e["Surat"]="Surat",e["Indore"]="Indore",e["Bhopal"]="Bhopal",e["Mumbai1"]="Mumbai 1",e["Mumbai2"]="Mumbai 2"}(Qe||(Qe={}));var tn,rn,on={name:"India",cities:[{name:Qe.Thiruvananthapuram,region:Xe.Red,x:217,y:868},{name:Qe.Madurai,region:Xe.Red,x:230,y:829},{name:Qe.Coimbatore,region:Xe.Red,x:197,y:797},{name:Qe.Chennai,region:Xe.Red,x:289,y:740},{name:Qe.Hyderabad,region:Xe.Red,x:232,y:618},{name:Qe.Bangalore1,region:Xe.Red,x:205,y:710},{name:Qe.Bangalore2,region:Xe.Red,x:205,y:735},{name:Qe.Dibrugarh,region:Xe.Brown,x:669,y:328},{name:Qe.Imphal,region:Xe.Brown,x:658,y:392},{name:Qe.Aizawi,region:Xe.Brown,x:625,y:427},{name:Qe.Chittagong,region:Xe.Brown,x:589,y:483},{name:Qe.Shillong,region:Xe.Brown,x:586,y:395},{name:Qe.Dhaka,region:Xe.Brown,x:548,y:432},{name:Qe.Khulna,region:Xe.Brown,x:528,y:468},{name:Qe.Darjeeling,region:Xe.Green,x:496,y:333},{name:Qe.Kathmandu,region:Xe.Green,x:418,y:307},{name:Qe.Patna,region:Xe.Green,x:416,y:373},{name:Qe.Lakhnau,region:Xe.Green,x:310,y:338},{name:Qe.Varanasi,region:Xe.Green,x:350,y:385},{name:Qe.Agra,region:Xe.Green,x:228,y:335},{name:Qe.Kanpur,region:Xe.Green,x:269,y:373},{name:Qe.Srinagar,region:Xe.Orange,x:135,y:115},{name:Qe.Ludhiana,region:Xe.Orange,x:186,y:215},{name:Qe.Delhi1,region:Xe.Orange,x:190,y:281},{name:Qe.Delhi2,region:Xe.Orange,x:190,y:303},{name:Qe.Jaipur,region:Xe.Orange,x:158,y:341},{name:Qe.Udaipur,region:Xe.Orange,x:105,y:410},{name:Qe.Ahmedabad,region:Xe.Orange,x:75,y:456},{name:Qe.Dhanbad,region:Xe.Yellow,x:424,y:427},{name:Qe.Kolkata,region:Xe.Yellow,x:463,y:477},{name:Qe.Bhudaneswar,region:Xe.Yellow,x:428,y:533},{name:Qe.Sambalpur,region:Xe.Yellow,x:376,y:494},{name:Qe.Jabalpur,region:Xe.Yellow,x:293,y:478},{name:Qe.Nagpur,region:Xe.Yellow,x:250,y:510},{name:Qe.Visakhapatnam,region:Xe.Yellow,x:358,y:597},{name:Qe.Goa,region:Xe.Pink,x:109,y:677},{name:Qe.Pune,region:Xe.Pink,x:133,y:587},{name:Qe.Surat,region:Xe.Pink,x:80,y:510},{name:Qe.Indore,region:Xe.Pink,x:160,y:476},{name:Qe.Bhopal,region:Xe.Pink,x:208,y:437},{name:Qe.Mumbai1,region:Xe.Pink,x:58,y:570},{name:Qe.Mumbai2,region:Xe.Pink,x:58,y:593}],connections:[{nodes:[Qe.Srinagar,Qe.Ludhiana],cost:15},{nodes:[Qe.Ludhiana,Qe.Delhi1],cost:9},{nodes:[Qe.Delhi1,Qe.Delhi2],cost:0},{nodes:[Qe.Delhi2,Qe.Jaipur],cost:7},{nodes:[Qe.Delhi2,Qe.Agra],cost:6},{nodes:[Qe.Jaipur,Qe.Bhopal],cost:12},{nodes:[Qe.Jaipur,Qe.Kanpur],cost:12},{nodes:[Qe.Agra,Qe.Lakhnau],cost:8},{nodes:[Qe.Lakhnau,Qe.Kathmandu],cost:15},{nodes:[Qe.Kathmandu,Qe.Darjeeling],cost:13},{nodes:[Qe.Darjeeling,Qe.Shillong],cost:12},{nodes:[Qe.Shillong,Qe.Patna],cost:18},{nodes:[Qe.Patna,Qe.Kathmandu],cost:10},{nodes:[Qe.Imphal,Qe.Dibrugarh],cost:11},{nodes:[Qe.Dibrugarh,Qe.Shillong],cost:9},{nodes:[Qe.Shillong,Qe.Imphal],cost:12},{nodes:[Qe.Imphal,Qe.Aizawi],cost:7},{nodes:[Qe.Shillong,Qe.Dhaka],cost:10},{nodes:[Qe.Dhaka,Qe.Khulna],cost:6},{nodes:[Qe.Khulna,Qe.Kolkata],cost:3},{nodes:[Qe.Dhanbad,Qe.Dhaka],cost:14},{nodes:[Qe.Jabalpur,Qe.Sambalpur],cost:13},{nodes:[Qe.Sambalpur,Qe.Nagpur],cost:13},{nodes:[Qe.Nagpur,Qe.Visakhapatnam],cost:17},{nodes:[Qe.Visakhapatnam,Qe.Sambalpur],cost:12},{nodes:[Qe.Jabalpur,Qe.Kanpur],cost:11},{nodes:[Qe.Varanasi,Qe.Jabalpur],cost:11},{nodes:[Qe.Kanpur,Qe.Varanasi],cost:8},{nodes:[Qe.Varanasi,Qe.Patna],cost:5},{nodes:[Qe.Patna,Qe.Lakhnau],cost:11},{nodes:[Qe.Kanpur,Qe.Bhopal],cost:13},{nodes:[Qe.Ahmedabad,Qe.Bhopal],cost:11},{nodes:[Qe.Bhopal,Qe.Udaipur],cost:11},{nodes:[Qe.Udaipur,Qe.Jaipur],cost:9},{nodes:[Qe.Ahmedabad,Qe.Surat],cost:7},{nodes:[Qe.Ahmedabad,Qe.Indore],cost:8},{nodes:[Qe.Indore,Qe.Surat],cost:10},{nodes:[Qe.Mumbai1,Qe.Mumbai2],cost:0},{nodes:[Qe.Mumbai2,Qe.Pune],cost:4},{nodes:[Qe.Pune,Qe.Hyderabad],cost:13},{nodes:[Qe.Pune,Qe.Nagpur],cost:17},{nodes:[Qe.Pune,Qe.Indore],cost:15},{nodes:[Qe.Goa,Qe.Coimbatore],cost:18},{nodes:[Qe.Bangalore1,Qe.Bangalore2],cost:0},{nodes:[Qe.Bangalore2,Qe.Coimbatore],cost:9},{nodes:[Qe.Coimbatore,Qe.Thiruvananthapuram],cost:10},{nodes:[Qe.Thiruvananthapuram,Qe.Madurai],cost:7},{nodes:[Qe.Madurai,Qe.Chennai],cost:12},{nodes:[Qe.Chennai,Qe.Bangalore1],cost:9},{nodes:[Qe.Bangalore1,Qe.Hyderabad],cost:14},{nodes:[Qe.Hyderabad,Qe.Goa],cost:15},{nodes:[Qe.Goa,Qe.Bangalore2],cost:14},{nodes:[Qe.Mumbai2,Qe.Goa],cost:11},{nodes:[Qe.Indore,Qe.Nagpur],cost:10},{nodes:[Qe.Sambalpur,Qe.Dhanbad],cost:8},{nodes:[Qe.Sambalpur,Qe.Bhudaneswar],cost:7},{nodes:[Qe.Bhudaneswar,Qe.Kolkata],cost:11},{nodes:[Qe.Kolkata,Qe.Dhanbad],cost:9},{nodes:[Qe.Dhanbad,Qe.Patna],cost:8},{nodes:[Qe.Nagpur,Qe.Hyderabad],cost:12},{nodes:[Qe.Hyderabad,Qe.Visakhapatnam],cost:13},{nodes:[Qe.Visakhapatnam,Qe.Chennai],cost:17},{nodes:[Qe.Chittagong,Qe.Aizawi],cost:7},{nodes:[Qe.Dhaka,Qe.Aizawi],cost:8},{nodes:[Qe.Dhaka,Qe.Chittagong],cost:7},{nodes:[Qe.Patna,Qe.Darjeeling],cost:11},{nodes:[Qe.Visakhapatnam,Qe.Bhudaneswar],cost:12},{nodes:[Qe.Udaipur,Qe.Ahmedabad],cost:6},{nodes:[Qe.Madurai,Qe.Coimbatore],cost:6},{nodes:[Qe.Bangalore2,Qe.Madurai],cost:10},{nodes:[Qe.Bhopal,Qe.Jabalpur],cost:8},{nodes:[Qe.Bhopal,Qe.Nagpur],cost:7},{nodes:[Qe.Bhopal,Qe.Indore],cost:4},{nodes:[Qe.Surat,Qe.Mumbai1],cost:6},{nodes:[Qe.Agra,Qe.Kanpur],cost:8},{nodes:[Qe.Kanpur,Qe.Lakhnau],cost:3},{nodes:[Qe.Lakhnau,Qe.Varanasi],cost:7}],layout:"Portrait",mapPosition:[200,-60],adjustRatio:[1.25,1.25],resupply:[[[4,5,4],[5,6,4],[6,7,5],[7,8,6],[8,10,7]],[[1,2,2],[2,2,2],[2,3,3],[3,4,4],[4,5,5]],[[1,3,4],[1,3,4],[3,4,6],[4,5,7],[4,7,9]],[[1,1,1],[1,1,1],[1,2,1],[2,2,2],[2,3,2]]],startingResources:[24,21,20,2],startingSupply:[24,24,24,8],maxPriceAvailable:[3,5,8],coalPrices:[1,1,1,1,2,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,8,8],garbagePrices:[1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6],uraniumPrices:[1,2,3,4,5,6,7,8],setupDeck:function(e,n,t){var r,o,a=Object(me["cloneDeep"])(Ie);if("original"==n){a=a.slice(8);var i=a.splice(2,1)[0],s=a.pop();a=De(a,t()+""),2==e||3==e?a=a.slice(8):4==e&&(a=a.slice(4)),a.unshift(i),a.push(s),r=[et(3,"India"),et(4,"India"),et(5,"India"),et(6,"India")],o=[et(7,"India"),et(8,"India"),et(9,"India"),et(10,"India")]}else{var u=De(a.splice(0,12),t()+""),c=u.splice(0,8);c=c.sort((function(e,n){return e.number-n.number})),r=c.slice(0,4),o=c.slice(4);var l=u.shift(),f=a.pop();a=De(a,t()+""),2==e||3==e?(u=u.slice(2),a=De(a.slice(6).concat(u),t()+"")):4==e?(u=u.slice(1),a=De(a.slice(3).concat(u),t()+"")):a=De(a.concat(u),t()+""),a.unshift(l),a.push(f)}return{actualMarket:r,futureMarket:o,powerPlantsDeck:a}},mapSpecificRules:"The power grid will suffer a power outage if too many cities are built in one round, penalizing players $3 per city built.\nPlayers take turns buying one resource at a time. The resource market is limited in steps 1 and 2.\nGarbage plants are less efficient. Their cost is one higher, but their storage capacity is not changed.\nPlayers must power as many cities as possible in each round."};(function(e){e["Brown"]="brown",e["Purple"]="purple",e["Red"]="red",e["Green"]="green",e["Yellow"]="yellow",e["Blue"]="blue"})(tn||(tn={})),function(e){e["Siracusa"]="Siracusa",e["Reggiodical"]="Reggio Di Cal",e["Cosenza"]="Cosenza",e["Messina"]="Messina",e["Palermo"]="Palermo",e["Catania"]="Catania",e["Brindisi"]="Brindisi",e["Taranto"]="Taranto",e["Bari"]="Bari",e["Foggia"]="Foggia",e["Pesara"]="Pesara",e["Napoli"]="Napoli",e["Salerno"]="Salerno",e["Roma"]="Roma",e["Ancona"]="Ancona",e["Rimini"]="Rimini",e["Ravenna"]="Ravenna",e["Sanmarino"]="San Marino",e["Perugia"]="Perugia",e["Frienze"]="Frienze",e["Udine"]="Udine",e["Trieste"]="Trieste",e["Bolanzo"]="Bolanzo",e["Mestre"]="Mestre",e["Venezia"]="Venezia",e["Vicenza"]="Vicenza",e["Padua"]="Padua",e["Ferrara"]="Ferrara",e["Bologna"]="Bologna",e["Modena"]="Modena",e["Reggio"]="Reggio",e["Pisa"]="Pisa",e["Parma"]="Parma",e["Laspezia"]="La Spezia",e["Torino"]="Torino",e["Bergamo"]="Bergamo",e["Milano"]="Milano",e["Brescia"]="Brescia",e["Picenza"]="Picenza",e["Genova"]="Genova",e["Verona"]="Verona",e["Lovorno"]="Lovorno"}(rn||(rn={}));var an,sn,un={name:"Italy",cities:[{name:rn.Siracusa,region:tn.Brown,x:1048,y:471},{name:rn.Reggiodical,region:tn.Brown,x:1013,y:346},{name:rn.Cosenza,region:tn.Brown,x:960,y:240},{name:rn.Messina,region:tn.Brown,x:975,y:365},{name:rn.Palermo,region:tn.Brown,x:875,y:468},{name:rn.Catania,region:tn.Brown,x:1007,y:460},{name:rn.Brindisi,region:tn.Purple,x:945,y:4},{name:rn.Taranto,region:tn.Brown,x:933,y:92},{name:rn.Bari,region:tn.Purple,x:871,y:32},{name:rn.Foggia,region:tn.Purple,x:777,y:69},{name:rn.Pesara,region:tn.Purple,x:646,y:76},{name:rn.Napoli,region:tn.Purple,x:747,y:222},{name:rn.Salerno,region:tn.Purple,x:799,y:212},{name:rn.Roma,region:tn.Purple,x:583,y:228},{name:rn.Ancona,region:tn.Red,x:549,y:16},{name:rn.Rimini,region:tn.Red,x:459,y:13},{name:rn.Ravenna,region:tn.Red,x:401,y:-5},{name:rn.Sanmarino,region:tn.Red,x:456,y:88},{name:rn.Perugia,region:tn.Red,x:507,y:123},{name:rn.Frienze,region:tn.Red,x:389,y:159},{name:rn.Udine,region:tn.Green,x:358,y:-207},{name:rn.Trieste,region:tn.Green,x:410,y:-181},{name:rn.Bolanzo,region:tn.Green,x:197,y:-172},{name:rn.Mestre,region:tn.Green,x:318,y:-115},{name:rn.Venezia,region:tn.Green,x:349,y:-103},{name:rn.Vicenza,region:tn.Green,x:235,y:-89},{name:rn.Padua,region:tn.Green,x:279,y:-72},{name:rn.Torino,region:tn.Blue,x:57,y:215},{name:rn.Bergamo,region:tn.Blue,x:125,y:14},{name:rn.Milano,region:tn.Blue,x:123,y:102},{name:rn.Brescia,region:tn.Blue,x:182,y:2},{name:rn.Picenza,region:tn.Blue,x:182,y:105},{name:rn.Genova,region:tn.Blue,x:182,y:217},{name:rn.Verona,region:tn.Blue,x:231,y:-13},{name:rn.Lovorno,region:tn.Red,x:333,y:216},{name:rn.Ferrara,region:tn.Yellow,x:333,y:-3},{name:rn.Bologna,region:tn.Yellow,x:350,y:85},{name:rn.Modena,region:tn.Yellow,x:303,y:72},{name:rn.Reggio,region:tn.Yellow,x:263,y:96},{name:rn.Pisa,region:tn.Yellow,x:304,y:197},{name:rn.Parma,region:tn.Yellow,x:224,y:81},{name:rn.Laspezia,region:tn.Yellow,x:245,y:206}],connections:[{nodes:[rn.Palermo,rn.Catania],cost:15},{nodes:[rn.Catania,rn.Siracusa],cost:3},{nodes:[rn.Catania,rn.Messina],cost:6},{nodes:[rn.Messina,rn.Palermo],cost:15},{nodes:[rn.Messina,rn.Reggiodical],cost:3},{nodes:[rn.Reggiodical,rn.Cosenza],cost:13},{nodes:[rn.Cosenza,rn.Salerno],cost:18},{nodes:[rn.Cosenza,rn.Taranto],cost:15},{nodes:[rn.Taranto,rn.Brindisi],cost:4},{nodes:[rn.Brindisi,rn.Bari],cost:7},{nodes:[rn.Bari,rn.Taranto],cost:7},{nodes:[rn.Taranto,rn.Salerno],cost:19},{nodes:[rn.Salerno,rn.Bari],cost:16},{nodes:[rn.Bari,rn.Foggia],cost:8},{nodes:[rn.Foggia,rn.Salerno],cost:10},{nodes:[rn.Salerno,rn.Napoli],cost:3},{nodes:[rn.Napoli,rn.Foggia],cost:12},{nodes:[rn.Napoli,rn.Roma],cost:14},{nodes:[rn.Roma,rn.Foggia],cost:22},{nodes:[rn.Foggia,rn.Pesara],cost:10},{nodes:[rn.Pesara,rn.Roma],cost:14},{nodes:[rn.Roma,rn.Ancona],cost:17},{nodes:[rn.Roma,rn.Perugia],cost:13},{nodes:[rn.Perugia,rn.Sanmarino],cost:12},{nodes:[rn.Sanmarino,rn.Rimini],cost:0},{nodes:[rn.Rimini,rn.Ancona],cost:6},{nodes:[rn.Ancona,rn.Perugia],cost:10},{nodes:[rn.Ancona,rn.Pesara],cost:9},{nodes:[rn.Roma,rn.Frienze],cost:20},{nodes:[rn.Lovorno,rn.Roma],cost:19},{nodes:[rn.Frienze,rn.Perugia],cost:13},{nodes:[rn.Frienze,rn.Sanmarino],cost:12},{nodes:[rn.Genova,rn.Torino],cost:12},{nodes:[rn.Torino,rn.Milano],cost:8},{nodes:[rn.Milano,rn.Bergamo],cost:3},{nodes:[rn.Bergamo,rn.Bolanzo],cost:12},{nodes:[rn.Bolanzo,rn.Brescia],cost:12},{nodes:[rn.Bolanzo,rn.Mestre],cost:12},{nodes:[rn.Bolanzo,rn.Udine],cost:14},{nodes:[rn.Udine,rn.Trieste],cost:4},{nodes:[rn.Udine,rn.Venezia],cost:7},{nodes:[rn.Venezia,rn.Mestre],cost:0},{nodes:[rn.Genova,rn.Laspezia],cost:5},{nodes:[rn.Laspezia,rn.Pisa],cost:5},{nodes:[rn.Pisa,rn.Lovorno],cost:0},{nodes:[rn.Genova,rn.Milano],cost:9},{nodes:[rn.Milano,rn.Picenza],cost:4},{nodes:[rn.Picenza,rn.Parma],cost:4},{nodes:[rn.Parma,rn.Reggio],cost:2},{nodes:[rn.Reggio,rn.Modena],cost:2},{nodes:[rn.Modena,rn.Bologna],cost:3},{nodes:[rn.Bologna,rn.Pisa],cost:12},{nodes:[rn.Pisa,rn.Reggio],cost:10},{nodes:[rn.Laspezia,rn.Parma],cost:9},{nodes:[rn.Laspezia,rn.Reggio],cost:9},{nodes:[rn.Genova,rn.Picenza],cost:7},{nodes:[rn.Genova,rn.Parma],cost:11},{nodes:[rn.Milano,rn.Brescia],cost:4},{nodes:[rn.Brescia,rn.Bergamo],cost:3},{nodes:[rn.Brescia,rn.Verona],cost:4},{nodes:[rn.Brescia,rn.Picenza],cost:5},{nodes:[rn.Bolanzo,rn.Vicenza],cost:10},{nodes:[rn.Vicenza,rn.Padua],cost:3},{nodes:[rn.Vicenza,rn.Verona],cost:3},{nodes:[rn.Verona,rn.Parma],cost:6},{nodes:[rn.Parma,rn.Brescia],cost:6},{nodes:[rn.Verona,rn.Padua],cost:5},{nodes:[rn.Padua,rn.Mestre],cost:3},{nodes:[rn.Venezia,rn.Ravenna],cost:12},{nodes:[rn.Ravenna,rn.Ferrara],cost:4},{nodes:[rn.Ferrara,rn.Venezia],cost:9},{nodes:[rn.Ferrara,rn.Padua],cost:7},{nodes:[rn.Ferrara,rn.Verona],cost:7},{nodes:[rn.Verona,rn.Modena],cost:8},{nodes:[rn.Frienze,rn.Pisa],cost:5},{nodes:[rn.Frienze,rn.Ravenna],cost:10},{nodes:[rn.Ravenna,rn.Rimini],cost:4},{nodes:[rn.Frienze,rn.Bologna],cost:8},{nodes:[rn.Bologna,rn.Ravenna],cost:4},{nodes:[rn.Bologna,rn.Ferrara],cost:3},{nodes:[rn.Ferrara,rn.Modena],cost:4}],mapPosition:[-20,320],mapSpecificRules:"Stop resupplying uranium after power plant 39 has been bought.",startingResources:[18,15,12,2]};(function(e){e["Pink"]="pink",e["Green"]="green",e["Orange"]="orange",e["Yellow"]="yellow",e["Red"]="red",e["Brown"]="brown"})(an||(an={})),function(e){e["Mashhad"]="Mashhad",e["Corgan"]="Corgan",e["Tehran"]="Tehran",e["Tabriz"]="Tabriz",e["Mosul"]="Mosul",e["Kermanshah"]="Kermanshah",e["Baghdad"]="Baghdad",e["Isfahan"]="Isfahan",e["Yazo"]="Yazo",e["Zahedan"]="Zahedan",e["Kerman"]="Kerman",e["Shiraz"]="Shiraz",e["Bandarabbas"]="Bandar Abbas",e["Chabahar"]="Chabahar",e["Dubai"]="Dubai",e["Muscat"]="Muscat",e["Abudhari"]="Abu Dhari",e["Alain"]="Alain",e["Salalah"]="Salalah",e["Doha"]="Doha",e["Manama"]="Manama",e["Ahvaz"]="Ahvaz",e["Basra"]="Basra",e["Najaf"]="Najaf",e["Kuwaitcity"]="Kuwait City",e["Buraydah"]="Buraydah",e["Riyadh"]="Riyadh",e["Medina"]="Medina",e["Alhasahah"]="Al Hasahah",e["Aleppo"]="Aleppo",e["Damascus"]="Damascus",e["Amman"]="Amman",e["Beirut"]="Beirut",e["Jerusalem"]="Jerusalem",e["Aqaba"]="Aqaba",e["Mukalla"]="Mukalla",e["Sanaa"]="Sanaa",e["Aden"]="Aden",e["Alhudaydah"]="Al-Hudaydah",e["Abha"]="Abha",e["Mecca"]="Mecca",e["Jeddah"]="Jeddah"}(sn||(sn={}));var cn,ln,fn={name:"Middle East",cities:[{name:sn.Mashhad,region:an.Pink,x:859,y:327},{name:sn.Corgan,region:an.Pink,x:734,y:287},{name:sn.Tehran,region:an.Pink,x:633,y:342},{name:sn.Tabriz,region:an.Pink,x:450,y:251},{name:sn.Mosul,region:an.Pink,x:352,y:307},{name:sn.Kermanshah,region:an.Pink,x:503,y:391},{name:sn.Baghdad,region:an.Pink,x:393,y:406},{name:sn.Isfahan,region:an.Green,x:621,y:436},{name:sn.Yazo,region:an.Green,x:720,y:472},{name:sn.Zahedan,region:an.Green,x:896,y:547},{name:sn.Kerman,region:an.Green,x:784,y:534},{name:sn.Shiraz,region:an.Green,x:651,y:557},{name:sn.Bandarabbas,region:an.Green,x:756,y:629},{name:sn.Chabahar,region:an.Green,x:898,y:687},{name:sn.Dubai,region:an.Orange,x:752,y:690},{name:sn.Muscat,region:an.Orange,x:828,y:773},{name:sn.Abudhari,region:an.Orange,x:692,y:747},{name:sn.Alain,region:an.Orange,x:715,y:812},{name:sn.Salalah,region:an.Orange,x:694,y:981},{name:sn.Doha,region:an.Orange,x:596,y:713},{name:sn.Manama,region:an.Orange,x:532,y:652},{name:sn.Ahvaz,region:an.Yellow,x:555,y:499},{name:sn.Basra,region:an.Yellow,x:452,y:519},{name:sn.Najaf,region:an.Yellow,x:356,y:478},{name:sn.Kuwaitcity,region:an.Yellow,x:500,y:580},{name:sn.Buraydah,region:an.Yellow,x:360,y:674},{name:sn.Riyadh,region:an.Yellow,x:443,y:741},{name:sn.Medina,region:an.Yellow,x:264,y:738},{name:sn.Alhasahah,region:an.Red,x:248,y:300},{name:sn.Aleppo,region:an.Red,x:132,y:315},{name:sn.Damascus,region:an.Red,x:186,y:433},{name:sn.Amman,region:an.Red,x:171,y:493},{name:sn.Beirut,region:an.Red,x:94,y:401},{name:sn.Jerusalem,region:an.Red,x:76,y:481},{name:sn.Aqaba,region:an.Red,x:103,y:563},{name:sn.Mukalla,region:an.Brown,x:555,y:1059},{name:sn.Sanaa,region:an.Brown,x:426,y:1018},{name:sn.Aden,region:an.Brown,x:431,y:1105},{name:sn.Alhudaydah,region:an.Brown,x:317,y:1057},{name:sn.Abha,region:an.Brown,x:306,y:938},{name:sn.Mecca,region:an.Brown,x:280,y:850},{name:sn.Jeddah,region:an.Brown,x:190,y:800}],connections:[{nodes:[sn.Tabriz,sn.Tehran],cost:13},{nodes:[sn.Tehran,sn.Corgan],cost:9},{nodes:[sn.Corgan,sn.Mashhad],cost:12},{nodes:[sn.Mashhad,sn.Zahedan],cost:20},{nodes:[sn.Zahedan,sn.Kerman],cost:10},{nodes:[sn.Kerman,sn.Yazo],cost:7},{nodes:[sn.Yazo,sn.Mashhad],cost:18},{nodes:[sn.Mashhad,sn.Tehran],cost:19},{nodes:[sn.Tehran,sn.Yazo],cost:12},{nodes:[sn.Yazo,sn.Shiraz],cost:9},{nodes:[sn.Shiraz,sn.Kerman],cost:11},{nodes:[sn.Yazo,sn.Isfahan],cost:7},{nodes:[sn.Isfahan,sn.Shiraz],cost:10},{nodes:[sn.Isfahan,sn.Tehran],cost:9},{nodes:[sn.Tehran,sn.Kermanshah],cost:13},{nodes:[sn.Kermanshah,sn.Isfahan],cost:13},{nodes:[sn.Isfahan,sn.Ahvaz],cost:11},{nodes:[sn.Ahvaz,sn.Shiraz],cost:11},{nodes:[sn.Ahvaz,sn.Kermanshah],cost:11},{nodes:[sn.Kermanshah,sn.Tabriz],cost:13},{nodes:[sn.Tabriz,sn.Mosul],cost:13},{nodes:[sn.Mosul,sn.Baghdad],cost:8},{nodes:[sn.Baghdad,sn.Kermanshah],cost:8},{nodes:[sn.Basra,sn.Ahvaz],cost:3},{nodes:[sn.Ahvaz,sn.Kuwaitcity],cost:7},{nodes:[sn.Kuwaitcity,sn.Basra],cost:5},{nodes:[sn.Basra,sn.Najaf],cost:10},{nodes:[sn.Najaf,sn.Baghdad],cost:4},{nodes:[sn.Baghdad,sn.Basra],cost:12},{nodes:[sn.Alhasahah,sn.Mosul],cost:4},{nodes:[sn.Alhasahah,sn.Baghdad],cost:11},{nodes:[sn.Baghdad,sn.Damascus],cost:16},{nodes:[sn.Damascus,sn.Najaf],cost:15},{nodes:[sn.Alhasahah,sn.Damascus],cost:14},{nodes:[sn.Damascus,sn.Amman],cost:4},{nodes:[sn.Amman,sn.Aqaba],cost:7},{nodes:[sn.Aqaba,sn.Jerusalem],cost:6},{nodes:[sn.Jerusalem,sn.Amman],cost:3},{nodes:[sn.Jerusalem,sn.Beirut],cost:6},{nodes:[sn.Beirut,sn.Damascus],cost:4},{nodes:[sn.Damascus,sn.Aleppo],cost:8},{nodes:[sn.Aleppo,sn.Beirut],cost:9},{nodes:[sn.Aleppo,sn.Alhasahah],cost:7},{nodes:[sn.Baghdad,sn.Tabriz],cost:18},{nodes:[sn.Zahedan,sn.Chabahar],cost:13},{nodes:[sn.Zahedan,sn.Bandarabbas],cost:14},{nodes:[sn.Bandarabbas,sn.Kerman],cost:13},{nodes:[sn.Shiraz,sn.Bandarabbas],cost:14},{nodes:[sn.Bandarabbas,sn.Chabahar],cost:15},{nodes:[sn.Kuwaitcity,sn.Manama],cost:12},{nodes:[sn.Manama,sn.Doha],cost:6},{nodes:[sn.Doha,sn.Abudhari],cost:9},{nodes:[sn.Abudhari,sn.Dubai],cost:2},{nodes:[sn.Dubai,sn.Muscat],cost:9},{nodes:[sn.Muscat,sn.Alain],cost:7},{nodes:[sn.Alain,sn.Abudhari],cost:3},{nodes:[sn.Alain,sn.Dubai],cost:3},{nodes:[sn.Riyadh,sn.Alain],cost:23},{nodes:[sn.Doha,sn.Riyadh],cost:12},{nodes:[sn.Riyadh,sn.Manama],cost:10},{nodes:[sn.Riyadh,sn.Kuwaitcity],cost:12},{nodes:[sn.Kuwaitcity,sn.Buraydah],cost:12},{nodes:[sn.Buraydah,sn.Riyadh],cost:7},{nodes:[sn.Buraydah,sn.Medina],cost:10},{nodes:[sn.Medina,sn.Riyadh],cost:15},{nodes:[sn.Buraydah,sn.Najaf],cost:14},{nodes:[sn.Aqaba,sn.Jeddah],cost:23},{nodes:[sn.Aqaba,sn.Medina],cost:17},{nodes:[sn.Medina,sn.Jeddah],cost:7},{nodes:[sn.Jeddah,sn.Mecca],cost:1},{nodes:[sn.Mecca,sn.Medina],cost:7},{nodes:[sn.Mecca,sn.Riyadh],cost:17},{nodes:[sn.Riyadh,sn.Abha],cost:19},{nodes:[sn.Abha,sn.Mecca],cost:12},{nodes:[sn.Salalah,sn.Muscat],cost:21},{nodes:[sn.Alain,sn.Salalah],cost:18},{nodes:[sn.Salalah,sn.Mukalla],cost:15},{nodes:[sn.Salalah,sn.Sanaa],cost:25},{nodes:[sn.Sanaa,sn.Mukalla],cost:14},{nodes:[sn.Mukalla,sn.Aden],cost:13},{nodes:[sn.Aden,sn.Alhudaydah],cost:9},{nodes:[sn.Alhudaydah,sn.Abha],cost:10},{nodes:[sn.Abha,sn.Sanaa],cost:11},{nodes:[sn.Sanaa,sn.Alhudaydah],cost:5}],layout:"Portrait",mapPosition:[0,-100],resupply:[[[2,1,1],[2,1,1],[3,2,2],[4,3,2],[5,4,3]],[[5,3,2],[5,3,2],[6,3,2],[8,4,3],[9,5,4]],[[1,3,4],[1,3,4],[1,4,6],[1,4,8],[1,6,9]],[[0,2,2],[0,2,2],[0,3,3],[0,3,4],[0,4,5]]],startingResources:[21,21,3,3],startingSupply:[24,24,21,11],mapSpecificRules:"Only coal and oil can be bought for $1, and any number of oil can restock at $1.\nDuring step 1, garbage and uranium plants will be removed from the current market.\nStep 2 will be triggered after going through the deck once rather than by a specific number of cities.\nStep 3 will be triggered after going through the deck a second time."};(function(e){e["Green"]="green",e["Brown"]="brown",e["Pink"]="pink",e["Red"]="red",e["Yellow"]="yellow",e["Purple"]="purple"})(cn||(cn={})),function(e){e["Septiles"]="Sept-Iles",e["Portcartier"]="Port-Cartier",e["Baiecomeau"]="Baie-Comeau",e["Chicoutimi"]="Chicoutimi",e["Alma"]="Alma",e["Roberval"]="Roberval",e["Jonquiere"]="Jonquiere",e["Gaspe"]="Gaspe",e["Steannedesmonts"]="Ste-Anne-Des-Monts",e["Matane"]="Matane",e["Rimouski"]="Rimouski",e["Pointealacroix"]="Pointe-A-La-Croix",e["Riviereduloup"]="Riviere-Du-Loup",e["Montmagny"]="Montmagny",e["Stgeorges"]="St-Georges",e["Sherbrooke"]="Sherbrooke",e["Victoriaville"]="Victoriaville",e["Stsimeon"]="St-Simeon",e["Charlesbourg"]="Charlesbourg",e["Quebec"]="Quebec",e["Beauport"]="Beauport",e["Granby"]="Granby",e["Sthyacinthe"]="St-Hyacinthe",e["Brossard"]="Brossard",e["Valleyfield"]="Valleyfield",e["Vaudreuildorion"]="Vaudreuil-Dorion",e["Montreal"]="Montreal",e["Pointeclaire"]="Pointe-Claire",e["Shawinigan"]="Shawinigan",e["Troisrivieres"]="Trois-Rivieres",e["Drummondville"]="Drummond-Ville",e["Repentigny"]="Repentigny",e["Longueuil"]="Longueuil",e["Laval"]="Laval",e["Lachute"]="Lachute",e["Amos"]="Amos",e["Valdor"]="Val-Dor",e["Rouynnoranda"]="Rouyn-Noranda",e["Montlaurier"]="Mont-Laurier",e["Maniwaki"]="Maniwaki",e["Gatineau"]="Gatineau",e["Hull"]="Hull"}(ln||(ln={}));var dn,pn,hn={name:"Quebec",cities:[{name:ln.Septiles,region:cn.Green,x:3524,y:228},{name:ln.Portcartier,region:cn.Green,x:3328,y:370},{name:ln.Baiecomeau,region:cn.Green,x:3066,y:630},{name:ln.Chicoutimi,region:cn.Green,x:2392,y:898},{name:ln.Alma,region:cn.Green,x:2172,y:844},{name:ln.Roberval,region:cn.Green,x:1944,y:950},{name:ln.Jonquiere,region:cn.Green,x:2240,y:1052},{name:ln.Gaspe,region:cn.Brown,x:4014,y:808},{name:ln.Steannedesmonts,region:cn.Brown,x:3512,y:708},{name:ln.Matane,region:cn.Brown,x:3244,y:808},{name:ln.Rimouski,region:cn.Brown,x:2990,y:946},{name:ln.Pointealacroix,region:cn.Brown,x:3492,y:1094},{name:ln.Riviereduloup,region:cn.Brown,x:2780,y:1208},{name:ln.Montmagny,region:cn.Brown,x:2522,y:1534},{name:ln.Stgeorges,region:cn.Pink,x:2506,y:1836},{name:ln.Sherbrooke,region:cn.Pink,x:2242,y:2128},{name:ln.Victoriaville,region:cn.Pink,x:2178,y:1822},{name:ln.Stsimeon,region:cn.Pink,x:2576,y:1146},{name:ln.Charlesbourg,region:cn.Pink,x:2246,y:1434},{name:ln.Quebec,region:cn.Pink,x:2302,y:1536},{name:ln.Beauport,region:cn.Pink,x:2196,y:1524},{name:ln.Granby,region:cn.Red,x:1974,y:2160},{name:ln.Sthyacinthe,region:cn.Red,x:1796,y:2038},{name:ln.Brossard,region:cn.Red,x:1790,y:2296},{name:ln.Valleyfield,region:cn.Red,x:1576,y:2306},{name:ln.Vaudreuildorion,region:cn.Red,x:1414,y:2186},{name:ln.Montreal,region:cn.Red,x:1624,y:2052},{name:ln.Pointeclaire,region:cn.Red,x:1510,y:2060},{name:ln.Shawinigan,region:cn.Yellow,x:1864,y:1448},{name:ln.Troisrivieres,region:cn.Yellow,x:1918,y:1650},{name:ln.Drummondville,region:cn.Yellow,x:1984,y:1886},{name:ln.Repentigny,region:cn.Yellow,x:1696,y:1820},{name:ln.Longueuil,region:cn.Yellow,x:1598,y:1964},{name:ln.Laval,region:cn.Yellow,x:1512,y:1990},{name:ln.Lachute,region:cn.Yellow,x:1364,y:1944},{name:ln.Amos,region:cn.Purple,x:492,y:868},{name:ln.Valdor,region:cn.Purple,x:570,y:1098},{name:ln.Rouynnoranda,region:cn.Purple,x:236,y:1028},{name:ln.Montlaurier,region:cn.Purple,x:1180,y:1630},{name:ln.Maniwaki,region:cn.Purple,x:964,y:1760},{name:ln.Gatineau,region:cn.Purple,x:1076,y:2096},{name:ln.Hull,region:cn.Purple,x:862,y:2104}],connections:[{nodes:[ln.Maniwaki,ln.Montlaurier],cost:5},{nodes:[ln.Maniwaki,ln.Valdor],cost:24},{nodes:[ln.Valdor,ln.Amos],cost:8},{nodes:[ln.Amos,ln.Rouynnoranda],cost:9},{nodes:[ln.Rouynnoranda,ln.Valdor],cost:12},{nodes:[ln.Hull,ln.Maniwaki],cost:15},{nodes:[ln.Hull,ln.Gatineau],cost:0},{nodes:[ln.Gatineau,ln.Montlaurier],cost:16},{nodes:[ln.Montlaurier,ln.Lachute],cost:18},{nodes:[ln.Shawinigan,ln.Troisrivieres],cost:3},{nodes:[ln.Troisrivieres,ln.Drummondville],cost:9},{nodes:[ln.Drummondville,ln.Victoriaville],cost:6},{nodes:[ln.Victoriaville,ln.Stgeorges],cost:10},{nodes:[ln.Stgeorges,ln.Sherbrooke],cost:15},{nodes:[ln.Sherbrooke,ln.Granby],cost:8},{nodes:[ln.Granby,ln.Sthyacinthe],cost:4},{nodes:[ln.Sthyacinthe,ln.Drummondville],cost:6},{nodes:[ln.Troisrivieres,ln.Victoriaville],cost:9},{nodes:[ln.Victoriaville,ln.Sherbrooke],cost:9},{nodes:[ln.Sherbrooke,ln.Drummondville],cost:9},{nodes:[ln.Sthyacinthe,ln.Repentigny],cost:7},{nodes:[ln.Sthyacinthe,ln.Brossard],cost:5},{nodes:[ln.Brossard,ln.Valleyfield],cost:8},{nodes:[ln.Valleyfield,ln.Vaudreuildorion],cost:4},{nodes:[ln.Gatineau,ln.Lachute],cost:14},{nodes:[ln.Montlaurier,ln.Shawinigan],cost:28},{nodes:[ln.Shawinigan,ln.Beauport],cost:14},{nodes:[ln.Beauport,ln.Troisrivieres],cost:15},{nodes:[ln.Troisrivieres,ln.Repentigny],cost:13},{nodes:[ln.Repentigny,ln.Longueuil],cost:3},{nodes:[ln.Laval,ln.Lachute],cost:6},{nodes:[ln.Vaudreuildorion,ln.Pointeclaire],cost:3},{nodes:[ln.Montreal,ln.Brossard],cost:4},{nodes:[ln.Laval,ln.Longueuil],cost:0},{nodes:[ln.Pointeclaire,ln.Montreal],cost:0},{nodes:[ln.Montreal,ln.Longueuil],cost:0},{nodes:[ln.Pointeclaire,ln.Laval],cost:0},{nodes:[ln.Beauport,ln.Charlesbourg],cost:0},{nodes:[ln.Charlesbourg,ln.Quebec],cost:0},{nodes:[ln.Quebec,ln.Beauport],cost:0},{nodes:[ln.Victoriaville,ln.Beauport],cost:12},{nodes:[ln.Quebec,ln.Stgeorges],cost:12},{nodes:[ln.Stgeorges,ln.Montmagny],cost:12},{nodes:[ln.Montmagny,ln.Riviereduloup],cost:16},{nodes:[ln.Jonquiere,ln.Charlesbourg],cost:21},{nodes:[ln.Montmagny,ln.Quebec],cost:5},{nodes:[ln.Stsimeon,ln.Charlesbourg],cost:18},{nodes:[ln.Drummondville,ln.Granby],cost:4},{nodes:[ln.Roberval,ln.Shawinigan],cost:25},{nodes:[ln.Jonquiere,ln.Stsimeon],cost:16},{nodes:[ln.Roberval,ln.Jonquiere],cost:10},{nodes:[ln.Jonquiere,ln.Alma],cost:4},{nodes:[ln.Alma,ln.Chicoutimi],cost:4},{nodes:[ln.Jonquiere,ln.Chicoutimi],cost:0},{nodes:[ln.Chicoutimi,ln.Baiecomeau],cost:23},{nodes:[ln.Stsimeon,ln.Baiecomeau],cost:23},{nodes:[ln.Baiecomeau,ln.Portcartier],cost:16},{nodes:[ln.Septiles,ln.Portcartier],cost:6},{nodes:[ln.Riviereduloup,ln.Rimouski],cost:12},{nodes:[ln.Rimouski,ln.Matane],cost:11},{nodes:[ln.Matane,ln.Pointealacroix],cost:15},{nodes:[ln.Matane,ln.Steannedesmonts],cost:10},{nodes:[ln.Pointealacroix,ln.Steannedesmonts],cost:16},{nodes:[ln.Steannedesmonts,ln.Gaspe],cost:21},{nodes:[ln.Gaspe,ln.Pointealacroix],cost:25}],layout:"Portrait",adjustRatio:[.25,.35],mapPosition:[-20,75],resupply:[[[3,3,3],[4,4,3],[5,4,4],[5,5,5],[7,6,6]],[[2,2,3],[2,3,3],[3,4,4],[4,5,4],[5,6,5]],[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]],startingResources:[21,21,6,2],setupDeck:function(e,n,t){var r,o,a=Object(me["cloneDeep"])(Te);if("original"==n){var i=a.filter((function(e){return[13,18,22].includes(e.number)})),s=a.filter((function(e){return(e.type==he.Wind||e.type==he.Nuclear)&&![13,18,22].includes(e.number)})),u=a.filter((function(e){return e.type!=he.Wind&&e.type!=he.Nuclear}));a=u.slice(8),r=[et(3),et(4),et(5),et(6)],o=[et(7),et(8),et(9),et(10)];var c=a.pop();a=De(a,t()+""),2==e||3==e?a=a.slice(8):4==e&&(a=a.slice(4)),a=a.concat(s),a=De(a,t()+""),a=i.concat(a),a.push(c)}else{var l=a.pop(),f=a.filter((function(e){return e.number>=3&&e.number<=10})),d=a.filter((function(e){return 13==e.number})),p=a.filter((function(e){return 18==e.number||22==e.number})),h=a.filter((function(e){return![13,18,22].includes(e.number)&&(e.type==he.Wind||e.type==he.Nuclear)})),g=a.filter((function(e){return e.type!=he.Wind&&e.number>=11&&e.number<=15})),y=a.filter((function(e){return e.type!=he.Wind&&e.type!=he.Nuclear&&e.number>=16}));2==e?(g=De(g,t()+"").slice(1),y=De(y,t()+"").slice(5)):3==e?(g=De(g,t()+"").slice(2),y=De(y,t()+"").slice(6)):4==e&&(g=De(g,t()+"").slice(1),y=De(y,t()+"").slice(3));var v=De(f.concat(d).concat(g),t()+""),m=v.splice(0,8);m=m.sort((function(e,n){return e.number-n.number})),r=m.splice(0,4),o=m;var b=v.splice(0,1);a=v.concat(h).concat(y),a=De(a,t()+""),a=b.concat(p).concat(a).concat([l])}return{actualMarket:r,futureMarket:o,powerPlantsDeck:a}},mapSpecificRules:"Put power plants 13, 18, 22 on top of the deck. Ecological power plants will never be put on the bottom of the deck."};(function(e){e["Green"]="green",e["Pink"]="pink",e["Red"]="red",e["Yellow"]="yellow",e["Purple"]="purple",e["Brown"]="brown"})(dn||(dn={})),function(e){e["Murmansk"]="Murmansk",e["Arkhangelsk"]="Arkhangelsk",e["Syktyvkar"]="Syktyvkar",e["Kirov"]="Kirov",e["Kazan"]="Kazan",e["Cheboksary"]="Cheboksary",e["Ulyanovsk"]="Ulyanovsk",e["Tula"]="Tula",e["Kaliningrad"]="Kaliningrad",e["Ryazan"]="Ryazan",e["Nizhnynovgorod"]="Nizhny Novgorod",e["Moscow"]="Moscow",e["Stpetersburg"]="St Petersburg",e["Yaroslavl"]="Yaroslavl",e["Chita"]="Chita",e["Bratsk"]="Bratsk",e["Krasnoyarsk"]="Krasnoyarsk",e["Kemerovd"]="Kemerovd",e["Novokuznetsk"]="Novokuznetsk",e["Irkutsk"]="Irkutsk",e["Ulanude"]="Ulan Ude",e["Norilsk"]="Norilsk",e["Surgut"]="Surgut",e["Tyumen"]="Tyumen",e["Tomsk"]="Tomsk",e["Novosibirsk"]="Novosibirsk",e["Barnaul"]="Barnaul",e["Omsk"]="Omsk",e["Chelyabinsk"]="Chelyabinsk",e["Ufa"]="Ufa",e["Perm"]="Perm",e["Yekaterinburg"]="Yekaterinburg",e["Orenburg"]="Orenburg",e["Naberezhnyechelny"]="Naberezhnye Chelny",e["Samara"]="Samara",e["Astrakhan"]="Astrakhan",e["Makhachkala"]="Makhachkala",e["Saratov"]="Saratov",e["Volgograd"]="Volgograd",e["Krasnodar"]="Krasnodar",e["Rostov"]="Rostov",e["Voronezh"]="Voronezh"}(pn||(pn={}));var gn,yn,vn={name:"Russia",cities:[{name:pn.Murmansk,region:dn.Green,x:1574,y:351},{name:pn.Arkhangelsk,region:dn.Green,x:1456,y:695},{name:pn.Syktyvkar,region:dn.Green,x:1669,y:1005},{name:pn.Kirov,region:dn.Green,x:1457,y:1172},{name:pn.Kazan,region:dn.Green,x:1378,y:1478},{name:pn.Cheboksary,region:dn.Green,x:1200,y:1328},{name:pn.Ulyanovsk,region:dn.Green,x:884,y:1448},{name:pn.Tula,region:dn.Pink,x:485,y:1077},{name:pn.Kaliningrad,region:dn.Pink,x:394,y:606},{name:pn.Ryazan,region:dn.Pink,x:793,y:1193},{name:pn.Nizhnynovgorod,region:dn.Pink,x:1129,y:1116},{name:pn.Moscow,region:dn.Pink,x:763,y:961},{name:pn.Stpetersburg,region:dn.Pink,x:883,y:597},{name:pn.Yaroslavl,region:dn.Pink,x:1018,y:915},{name:pn.Chita,region:dn.Red,x:4168,y:2048},{name:pn.Bratsk,region:dn.Red,x:3599,y:1808},{name:pn.Krasnoyarsk,region:dn.Red,x:3230,y:1930},{name:pn.Kemerovd,region:dn.Red,x:2953,y:1987},{name:pn.Novokuznetsk,region:dn.Red,x:3041,y:2159},{name:pn.Irkutsk,region:dn.Red,x:3721,y:2162},{name:pn.Ulanude,region:dn.Red,x:4030,y:2228},{name:pn.Norilsk,region:dn.Yellow,x:3001,y:856},{name:pn.Surgut,region:dn.Yellow,x:2348,y:1411},{name:pn.Tyumen,region:dn.Yellow,x:2060,y:1627},{name:pn.Tomsk,region:dn.Yellow,x:2773,y:1835},{name:pn.Novosibirsk,region:dn.Yellow,x:2647,y:2005},{name:pn.Barnaul,region:dn.Yellow,x:2662,y:2191},{name:pn.Omsk,region:dn.Yellow,x:2195,y:1957},{name:pn.Chelyabinsk,region:dn.Purple,x:1768,y:1865},{name:pn.Ufa,region:dn.Purple,x:1472,y:1907},{name:pn.Perm,region:dn.Purple,x:1688,y:1388},{name:pn.Yekaterinburg,region:dn.Purple,x:1757,y:1620},{name:pn.Orenburg,region:dn.Purple,x:1250,y:1997},{name:pn.Naberezhnyechelny,region:dn.Purple,x:1427,y:1709},{name:pn.Samara,region:dn.Purple,x:1132,y:1701},{name:pn.Astrakhan,region:dn.Brown,x:619,y:2092},{name:pn.Makhachkala,region:dn.Brown,x:317,y:2262},{name:pn.Saratov,region:dn.Brown,x:808,y:1661},{name:pn.Volgograd,region:dn.Brown,x:589,y:1795},{name:pn.Krasnodar,region:dn.Brown,x:260,y:1865},{name:pn.Rostov,region:dn.Brown,x:311,y:1658},{name:pn.Voronezh,region:dn.Brown,x:485,y:1409}],connections:[{nodes:[pn.Kaliningrad,pn.Stpetersburg],cost:15},{nodes:[pn.Stpetersburg,pn.Murmansk],cost:19},{nodes:[pn.Murmansk,pn.Arkhangelsk],cost:15},{nodes:[pn.Arkhangelsk,pn.Stpetersburg],cost:14},{nodes:[pn.Tula,pn.Kaliningrad],cost:20},{nodes:[pn.Tula,pn.Moscow],cost:3},{nodes:[pn.Moscow,pn.Ryazan],cost:3},{nodes:[pn.Ryazan,pn.Voronezh],cost:5},{nodes:[pn.Voronezh,pn.Tula],cost:5},{nodes:[pn.Tula,pn.Stpetersburg],cost:13},{nodes:[pn.Tula,pn.Ryazan],cost:0},{nodes:[pn.Stpetersburg,pn.Moscow],cost:10},{nodes:[pn.Moscow,pn.Yaroslavl],cost:3},{nodes:[pn.Yaroslavl,pn.Nizhnynovgorod],cost:4},{nodes:[pn.Nizhnynovgorod,pn.Moscow],cost:7},{nodes:[pn.Yaroslavl,pn.Stpetersburg],cost:9},{nodes:[pn.Yaroslavl,pn.Arkhangelsk],cost:12},{nodes:[pn.Arkhangelsk,pn.Syktyvkar],cost:10},{nodes:[pn.Syktyvkar,pn.Surgut],cost:21},{nodes:[pn.Perm,pn.Syktyvkar],cost:8},{nodes:[pn.Syktyvkar,pn.Kirov],cost:6},{nodes:[pn.Syktyvkar,pn.Nizhnynovgorod],cost:11},{nodes:[pn.Nizhnynovgorod,pn.Arkhangelsk],cost:15},{nodes:[pn.Nizhnynovgorod,pn.Cheboksary],cost:3},{nodes:[pn.Cheboksary,pn.Ulyanovsk],cost:4},{nodes:[pn.Ulyanovsk,pn.Voronezh],cost:11},{nodes:[pn.Voronezh,pn.Volgograd],cost:8},{nodes:[pn.Volgograd,pn.Saratov],cost:6},{nodes:[pn.Saratov,pn.Samara],cost:5},{nodes:[pn.Samara,pn.Ulyanovsk],cost:3},{nodes:[pn.Ulyanovsk,pn.Kazan],cost:3},{nodes:[pn.Kazan,pn.Samara],cost:4},{nodes:[pn.Samara,pn.Naberezhnyechelny],cost:5},{nodes:[pn.Cheboksary,pn.Kazan],cost:2},{nodes:[pn.Cheboksary,pn.Kirov],cost:5},{nodes:[pn.Kirov,pn.Kazan],cost:5},{nodes:[pn.Kazan,pn.Perm],cost:8},{nodes:[pn.Kazan,pn.Naberezhnyechelny],cost:3},{nodes:[pn.Naberezhnyechelny,pn.Ufa],cost:4},{nodes:[pn.Ufa,pn.Orenburg],cost:6},{nodes:[pn.Orenburg,pn.Samara],cost:6},{nodes:[pn.Orenburg,pn.Naberezhnyechelny],cost:7},{nodes:[pn.Ufa,pn.Chelyabinsk],cost:8},{nodes:[pn.Chelyabinsk,pn.Yekaterinburg],cost:3},{nodes:[pn.Yekaterinburg,pn.Perm],cost:5},{nodes:[pn.Perm,pn.Kirov],cost:6},{nodes:[pn.Chelyabinsk,pn.Tyumen],cost:5},{nodes:[pn.Tyumen,pn.Surgut],cost:10},{nodes:[pn.Syktyvkar,pn.Tyumen],cost:17},{nodes:[pn.Tyumen,pn.Yekaterinburg],cost:5},{nodes:[pn.Chelyabinsk,pn.Omsk],cost:13},{nodes:[pn.Omsk,pn.Tyumen],cost:9},{nodes:[pn.Tyumen,pn.Tomsk],cost:19},{nodes:[pn.Tomsk,pn.Surgut],cost:15},{nodes:[pn.Tomsk,pn.Novosibirsk],cost:4},{nodes:[pn.Novosibirsk,pn.Barnaul],cost:4},{nodes:[pn.Barnaul,pn.Omsk],cost:11},{nodes:[pn.Omsk,pn.Novosibirsk],cost:10},{nodes:[pn.Omsk,pn.Tomsk],cost:12},{nodes:[pn.Rostov,pn.Krasnodar],cost:4},{nodes:[pn.Krasnodar,pn.Volgograd],cost:9},{nodes:[pn.Volgograd,pn.Astrakhan],cost:6},{nodes:[pn.Krasnodar,pn.Makhachkala],cost:14},{nodes:[pn.Makhachkala,pn.Astrakhan],cost:8},{nodes:[pn.Makhachkala,pn.Volgograd],cost:11},{nodes:[pn.Rostov,pn.Volgograd],cost:7},{nodes:[pn.Ryazan,pn.Ulyanovsk],cost:9},{nodes:[pn.Ulyanovsk,pn.Saratov],cost:6},{nodes:[pn.Saratov,pn.Voronezh],cost:8},{nodes:[pn.Rostov,pn.Voronezh],cost:9},{nodes:[pn.Naberezhnyechelny,pn.Perm],cost:6},{nodes:[pn.Naberezhnyechelny,pn.Yekaterinburg],cost:8},{nodes:[pn.Ufa,pn.Yekaterinburg],cost:6},{nodes:[pn.Chita,pn.Ulanude],cost:6},{nodes:[pn.Ulanude,pn.Irkutsk],cost:6},{nodes:[pn.Irkutsk,pn.Novokuznetsk],cost:21},{nodes:[pn.Novokuznetsk,pn.Kemerovd],cost:3},{nodes:[pn.Kemerovd,pn.Tomsk],cost:3},{nodes:[pn.Novosibirsk,pn.Novokuznetsk],cost:5},{nodes:[pn.Novosibirsk,pn.Kemerovd],cost:4},{nodes:[pn.Novokuznetsk,pn.Barnaul],cost:6},{nodes:[pn.Kemerovd,pn.Krasnoyarsk],cost:7},{nodes:[pn.Krasnoyarsk,pn.Novokuznetsk],cost:7},{nodes:[pn.Krasnoyarsk,pn.Irkutsk],cost:17},{nodes:[pn.Krasnoyarsk,pn.Bratsk],cost:10},{nodes:[pn.Bratsk,pn.Tomsk],cost:17},{nodes:[pn.Bratsk,pn.Irkutsk],cost:10},{nodes:[pn.Bratsk,pn.Ulanude],cost:14},{nodes:[pn.Tomsk,pn.Norilsk],cost:24},{nodes:[pn.Norilsk,pn.Bratsk],cost:29},{nodes:[pn.Norilsk,pn.Surgut],cost:19}],adjustRatio:[.25,.25],resupply:[[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],[[3,4,3],[3,4,3],[5,6,4],[5,7,5],[7,9,6]],[[2,2,3],[2,2,3],[3,3,4],[4,3,5],[4,5,6]],[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]],startingResources:[18,24,0,7],setupDeck:function(e,n,t){var r=Object(me["cloneDeep"])(Te),o=[],a=[],i=r.pop();if("original"==n){o=r.filter((function(e){return e.number>=3&&e.number<=5})),a=r.filter((function(e){return e.number>=7&&e.number<=9}));var s=et(10),u=et(11),c=et(13),l=r.filter((function(e){return 12==e.number||e.number>=15})),f=De(l,t()+"");2==e||3==e?f=f.slice(8):4==e&&(f=f.slice(4));var d=f.slice(0,3).concat(s,u);d=De(d,t()+""),r=[c].concat(d,f.slice(3),i)}else{var p=r.filter((function(e){return e.number<=15&&6!=e.number&&14!=e.number})),h=De(p,t()+""),g=r.filter((function(e){return e.number>=16})),y=De(g,t()+"");2==e?y=y.slice(6):3==e?y=y.slice(8):4==e&&(y=y.slice(4));var v=h.slice(0,6),m=h.slice(6);v=v.sort((function(e,n){return e.number-n.number})),o=v.slice(0,3),a=v.slice(3),r=m.concat(y,i)}return{actualMarket:o,futureMarket:a,powerPlantsDeck:r}},mapSpecificRules:"The power plant market is restricted, and the rules for removing old plants are changed."};(function(e){e["Pink"]="pink",e["Brown"]="brown",e["Green"]="green",e["Purple"]="purple",e["Red"]="red",e["Yellow"]="yellow"})(gn||(gn={})),function(e){e["Gerona"]="Gerona",e["Barcelona"]="Barcelona",e["Tarragona"]="Tarragona",e["Lerida"]="Lerida",e["Castellondelaplana"]="Castellon De La Plana",e["Valencia"]="Valencia",e["Alicante"]="Alicante",e["Sansebastian"]="San Sebastian",e["Pamplona"]="Pamplona",e["Zaragoza"]="Zaragoza",e["Madrid"]="Madrid",e["Logrono"]="Logrono",e["Bilbao"]="Bilbao",e["Santander"]="Santander",e["Gijon"]="Gijon",e["Leon"]="Leon",e["Valladolid"]="Valladolid",e["Salamanca"]="Salamanca",e["Orense"]="Orense",e["Lacoruna"]="La Coruna",e["Santiagodecompostela"]="Santiago De Compostela",e["Cuenca"]="Cuenca",e["Albacete"]="Albacete",e["Murcia"]="Murcia",e["Toledo"]="Toledo",e["Ciudadreal"]="Ciudad Real",e["Caceres"]="Caceres",e["Merida"]="Merida",e["Almeria"]="Almeria",e["Granada"]="Granada",e["Cordoba"]="Cordoba",e["Malaga"]="Malaga",e["Cadiz"]="Cadiz",e["Sevilla"]="Sevilla",e["Huelva"]="Huelva",e["Evora"]="Evora",e["Faro"]="Faro",e["Portimao"]="Portimao",e["Setubal"]="Setubal",e["Lisboa"]="Lisboa",e["Porto"]="Porto",e["Braga"]="Braga"}(yn||(yn={}));var mn={name:"Spain & Portugal",cities:[{name:yn.Evora,region:gn.Yellow,x:890,y:1780},{name:yn.Faro,region:gn.Yellow,x:822,y:2348},{name:yn.Portimao,region:gn.Yellow,x:592,y:2218},{name:yn.Setubal,region:gn.Yellow,x:578,y:1864},{name:yn.Lisboa,region:gn.Yellow,x:572,y:1586},{name:yn.Porto,region:gn.Yellow,x:736,y:1052},{name:yn.Braga,region:gn.Yellow,x:990,y:828},{name:yn.Gerona,region:gn.Pink,x:3728,y:666},{name:yn.Barcelona,region:gn.Pink,x:3538,y:848},{name:yn.Tarragona,region:gn.Pink,x:3312,y:970},{name:yn.Lerida,region:gn.Pink,x:3166,y:752},{name:yn.Castellondelaplana,region:gn.Pink,x:3010,y:1284},{name:yn.Valencia,region:gn.Pink,x:2938,y:1580},{name:yn.Alicante,region:gn.Pink,x:2936,y:1922},{name:yn.Sansebastian,region:gn.Brown,x:2498,y:278},{name:yn.Pamplona,region:gn.Brown,x:2648,y:484},{name:yn.Zaragoza,region:gn.Brown,x:2760,y:810},{name:yn.Madrid,region:gn.Brown,x:2088,y:1170},{name:yn.Logrono,region:gn.Brown,x:2310,y:622},{name:yn.Bilbao,region:gn.Brown,x:2264,y:226},{name:yn.Santander,region:gn.Brown,x:2022,y:252},{name:yn.Gijon,region:gn.Green,x:1672,y:190},{name:yn.Leon,region:gn.Green,x:1604,y:518},{name:yn.Valladolid,region:gn.Green,x:1850,y:782},{name:yn.Salamanca,region:gn.Green,x:1564,y:1032},{name:yn.Orense,region:gn.Green,x:1072,y:532},{name:yn.Lacoruna,region:gn.Green,x:982,y:184},{name:yn.Santiagodecompostela,region:gn.Green,x:772,y:394},{name:yn.Cuenca,region:gn.Purple,x:2464,y:1300},{name:yn.Albacete,region:gn.Purple,x:2532,y:1684},{name:yn.Murcia,region:gn.Purple,x:2678,y:2056},{name:yn.Toledo,region:gn.Purple,x:1920,y:1400},{name:yn.Ciudadreal,region:gn.Purple,x:1982,y:1714},{name:yn.Caceres,region:gn.Purple,x:1354,y:1432},{name:yn.Merida,region:gn.Purple,x:1318,y:1764},{name:yn.Almeria,region:gn.Red,x:2402,y:2440},{name:yn.Granada,region:gn.Red,x:2044,y:2272},{name:yn.Cordoba,region:gn.Red,x:1728,y:2074},{name:yn.Malaga,region:gn.Red,x:1782,y:2484},{name:yn.Cadiz,region:gn.Red,x:1290,y:2552},{name:yn.Sevilla,region:gn.Red,x:1390,y:2168},{name:yn.Huelva,region:gn.Red,x:1082,y:2196}],connections:[{nodes:[yn.Huelva,yn.Faro],cost:6},{nodes:[yn.Faro,yn.Portimao],cost:4},{nodes:[yn.Portimao,yn.Setubal],cost:12},{nodes:[yn.Setubal,yn.Evora],cost:6},{nodes:[yn.Evora,yn.Merida],cost:9},{nodes:[yn.Merida,yn.Sevilla],cost:14},{nodes:[yn.Sevilla,yn.Cadiz],cost:8},{nodes:[yn.Cadiz,yn.Malaga],cost:12},{nodes:[yn.Malaga,yn.Granada],cost:7},{nodes:[yn.Granada,yn.Almeria],cost:9},{nodes:[yn.Almeria,yn.Murcia],cost:13},{nodes:[yn.Murcia,yn.Alicante],cost:4},{nodes:[yn.Alicante,yn.Valencia],cost:9},{nodes:[yn.Valencia,yn.Castellondelaplana],cost:4},{nodes:[yn.Albacete,yn.Almeria],cost:19},{nodes:[yn.Albacete,yn.Murcia],cost:10},{nodes:[yn.Albacete,yn.Alicante],cost:11},{nodes:[yn.Albacete,yn.Valencia],cost:11},{nodes:[yn.Albacete,yn.Cuenca],cost:8},{nodes:[yn.Albacete,yn.Ciudadreal],cost:13},{nodes:[yn.Albacete,yn.Granada],cost:19},{nodes:[yn.Albacete,yn.Toledo],cost:14},{nodes:[yn.Toledo,yn.Madrid],cost:6},{nodes:[yn.Madrid,yn.Cuenca],cost:11},{nodes:[yn.Cuenca,yn.Valencia],cost:13},{nodes:[yn.Cuenca,yn.Castellondelaplana],cost:14},{nodes:[yn.Castellondelaplana,yn.Tarragona],cost:12},{nodes:[yn.Toledo,yn.Caceres],cost:16},{nodes:[yn.Caceres,yn.Merida],cost:4},{nodes:[yn.Merida,yn.Ciudadreal],cost:16},{nodes:[yn.Ciudadreal,yn.Granada],cost:16},{nodes:[yn.Granada,yn.Cordoba],cost:11},{nodes:[yn.Cordoba,yn.Malaga],cost:11},{nodes:[yn.Malaga,yn.Sevilla],cost:12},{nodes:[yn.Sevilla,yn.Cordoba],cost:8},{nodes:[yn.Cordoba,yn.Ciudadreal],cost:10},{nodes:[yn.Merida,yn.Cordoba],cost:14},{nodes:[yn.Huelva,yn.Cadiz],cost:9},{nodes:[yn.Huelva,yn.Sevilla],cost:6},{nodes:[yn.Merida,yn.Huelva],cost:15},{nodes:[yn.Huelva,yn.Evora],cost:12},{nodes:[yn.Evora,yn.Faro],cost:13},{nodes:[yn.Faro,yn.Setubal],cost:14},{nodes:[yn.Setubal,yn.Lisboa],cost:4},{nodes:[yn.Lisboa,yn.Evora],cost:9},{nodes:[yn.Lisboa,yn.Merida],cost:16},{nodes:[yn.Caceres,yn.Ciudadreal],cost:16},{nodes:[yn.Toledo,yn.Cuenca],cost:13},{nodes:[yn.Salamanca,yn.Toledo],cost:14},{nodes:[yn.Salamanca,yn.Madrid],cost:14},{nodes:[yn.Salamanca,yn.Caceres],cost:13},{nodes:[yn.Porto,yn.Lisboa],cost:18},{nodes:[yn.Porto,yn.Salamanca],cost:19},{nodes:[yn.Porto,yn.Caceres],cost:21},{nodes:[yn.Caceres,yn.Lisboa],cost:19},{nodes:[yn.Ciudadreal,yn.Toledo],cost:7},{nodes:[yn.Braga,yn.Porto],cost:3},{nodes:[yn.Braga,yn.Salamanca],cost:19},{nodes:[yn.Salamanca,yn.Valladolid],cost:7},{nodes:[yn.Valladolid,yn.Madrid],cost:13},{nodes:[yn.Madrid,yn.Zaragoza],cost:19},{nodes:[yn.Zaragoza,yn.Lerida],cost:8},{nodes:[yn.Lerida,yn.Tarragona],cost:6},{nodes:[yn.Tarragona,yn.Barcelona],cost:6},{nodes:[yn.Lerida,yn.Castellondelaplana],cost:13},{nodes:[yn.Castellondelaplana,yn.Zaragoza],cost:15},{nodes:[yn.Zaragoza,yn.Cuenca],cost:16},{nodes:[yn.Braga,yn.Valladolid],cost:24},{nodes:[yn.Lerida,yn.Barcelona],cost:10},{nodes:[yn.Barcelona,yn.Gerona],cost:6},{nodes:[yn.Gerona,yn.Lerida],cost:13},{nodes:[yn.Lerida,yn.Pamplona],cost:17},{nodes:[yn.Pamplona,yn.Zaragoza],cost:11},{nodes:[yn.Zaragoza,yn.Logrono],cost:11},{nodes:[yn.Logrono,yn.Madrid],cost:18},{nodes:[yn.Santiagodecompostela,yn.Braga],cost:11},{nodes:[yn.Braga,yn.Orense],cost:9},{nodes:[yn.Orense,yn.Santiagodecompostela],cost:7},{nodes:[yn.Santiagodecompostela,yn.Lacoruna],cost:4},{nodes:[yn.Lacoruna,yn.Gijon],cost:9},{nodes:[yn.Gijon,yn.Santander],cost:11},{nodes:[yn.Santander,yn.Bilbao],cost:6},{nodes:[yn.Bilbao,yn.Sansebastian],cost:5},{nodes:[yn.Sansebastian,yn.Pamplona],cost:6},{nodes:[yn.Pamplona,yn.Logrono],cost:7},{nodes:[yn.Logrono,yn.Sansebastian],cost:9},{nodes:[yn.Bilbao,yn.Logrono],cost:9},{nodes:[yn.Logrono,yn.Santander],cost:13},{nodes:[yn.Santander,yn.Valladolid],cost:16},{nodes:[yn.Valladolid,yn.Logrono],cost:15},{nodes:[yn.Leon,yn.Santander],cost:13},{nodes:[yn.Gijon,yn.Leon],cost:9},{nodes:[yn.Leon,yn.Valladolid],cost:9},{nodes:[yn.Valladolid,yn.Orense],cost:22},{nodes:[yn.Orense,yn.Leon],cost:14},{nodes:[yn.Gijon,yn.Orense],cost:10},{nodes:[yn.Orense,yn.Lacoruna],cost:6}],layout:"Portrait",adjustRatio:[.315,.315],mapPosition:[-135,60],resupply:[[[3,4,2],[4,5,2],[4,6,3],[4,7,3],[6,8,4]],[[2,3,5],[2,4,5],[3,5,6],[4,6,7],[5,7,9]],[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],[[0,2,1],[0,2,1],[0,4,1],[0,5,1],[0,5,2]]],startingResources:[24,18,9,8],setupDeck:function(e,n,t){var r,o,a=Object(me["cloneDeep"])(Te);if(a=a.filter((function(e){return![18,22,27].includes(e.number)})),"original"==n){a=a.slice(8);var i=a.splice(2,1)[0],s=a.pop();a=De(a,t()+""),2==e||3==e?a=a.slice(8):4==e&&(a=a.slice(4)),a.unshift(i),a.push(s),r=[et(3),et(4),et(5),et(6)],o=[et(7),et(8),et(9),et(10)]}else{var u=De(a.splice(0,13),t()+""),c=u.splice(0,8);c=c.sort((function(e,n){return e.number-n.number})),r=c.slice(0,4),o=c.slice(4);var l=u.shift(),f=a.pop();a=De(a,t()+""),2==e||3==e?(u=u.slice(2),a=De(a.slice(6).concat(u),t()+"")):4==e?(u=u.slice(1),a=De(a.slice(3).concat(u),t()+"")):a=De(a.concat(u),t()+""),a.unshift(l),a.push(f)}return{actualMarket:r,futureMarket:o,powerPlantsDeck:a}},mapSpecificRules:"Remove power plants 18, 22 and 27 from the deck. Place them on top of the deck at the start of Step 2.\nYou cannot buy a nuclear power plant if you only have cities in Portugal."},bn=[Le,en,Ke,mn,Je,on,un,hn,fn,$e,je,vn,We],wn=[Oe,nn,Ke,mn,Je,on,un,hn,fn,$e,je,vn,We];const xn=Math.pow(2,-52),_n=new Uint32Array(512);class kn{static from(e,n=jn,t=zn){const r=e.length,o=new Float64Array(2*r);for(let a=0;a<r;a++){const r=e[a];o[2*a]=n(r),o[2*a+1]=t(r)}return new kn(o)}constructor(e){const n=e.length>>1;if(n>0&&"number"!==typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const t=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*t),this._halfedges=new Int32Array(3*t),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:e,_hullPrev:n,_hullNext:t,_hullTri:r,_hullHash:o}=this,a=e.length>>1;let i=1/0,s=1/0,u=-1/0,c=-1/0;for(let S=0;S<a;S++){const n=e[2*S],t=e[2*S+1];n<i&&(i=n),t<s&&(s=t),n>u&&(u=n),t>c&&(c=t),this._ids[S]=S}const l=(i+u)/2,f=(s+c)/2;let d,p,h,g=1/0;for(let S=0;S<a;S++){const n=Sn(l,f,e[2*S],e[2*S+1]);n<g&&(d=S,g=n)}const y=e[2*d],v=e[2*d+1];g=1/0;for(let S=0;S<a;S++){if(S===d)continue;const n=Sn(y,v,e[2*S],e[2*S+1]);n<g&&n>0&&(p=S,g=n)}let m=e[2*p],b=e[2*p+1],w=1/0;for(let S=0;S<a;S++){if(S===d||S===p)continue;const n=An(y,v,m,b,e[2*S],e[2*S+1]);n<w&&(h=S,w=n)}let x=e[2*h],_=e[2*h+1];if(w===1/0){for(let r=0;r<a;r++)this._dists[r]=e[2*r]-e[0]||e[2*r+1]-e[1];Ln(this._ids,this._dists,0,a-1);const n=new Uint32Array(a);let t=0;for(let e=0,r=-1/0;e<a;e++){const o=this._ids[e];this._dists[o]>r&&(n[t++]=o,r=this._dists[o])}return this.hull=n.subarray(0,t),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Mn(y,v,m,b,x,_)){const e=p,n=m,t=b;p=h,m=x,b=_,h=e,x=n,_=t}const k=Rn(y,v,m,b,x,_);this._cx=k.x,this._cy=k.y;for(let S=0;S<a;S++)this._dists[S]=Sn(e[2*S],e[2*S+1],k.x,k.y);Ln(this._ids,this._dists,0,a-1),this._hullStart=d;let P=3;t[d]=n[h]=p,t[p]=n[d]=h,t[h]=n[p]=d,r[d]=0,r[p]=1,r[h]=2,o.fill(-1),o[this._hashKey(y,v)]=d,o[this._hashKey(m,b)]=p,o[this._hashKey(x,_)]=h,this.trianglesLen=0,this._addTriangle(d,p,h,-1,-1,-1);for(let S,C,M=0;M<this._ids.length;M++){const a=this._ids[M],i=e[2*a],s=e[2*a+1];if(M>0&&Math.abs(i-S)<=xn&&Math.abs(s-C)<=xn)continue;if(S=i,C=s,a===d||a===p||a===h)continue;let u=0;for(let e=0,n=this._hashKey(i,s);e<this._hashSize;e++)if(u=o[(n+e)%this._hashSize],-1!==u&&u!==t[u])break;u=n[u];let c,l=u;while(c=t[l],!Mn(i,s,e[2*l],e[2*l+1],e[2*c],e[2*c+1]))if(l=c,l===u){l=-1;break}if(-1===l)continue;let f=this._addTriangle(l,a,t[l],-1,-1,r[l]);r[a]=this._legalize(f+2),r[l]=f,P++;let g=t[l];while(c=t[g],Mn(i,s,e[2*g],e[2*g+1],e[2*c],e[2*c+1]))f=this._addTriangle(g,a,c,r[a],-1,r[g]),r[a]=this._legalize(f+2),t[g]=g,P--,g=c;if(l===u)while(c=n[l],Mn(i,s,e[2*c],e[2*c+1],e[2*l],e[2*l+1]))f=this._addTriangle(c,a,l,-1,r[l],r[c]),this._legalize(f+2),r[c]=f,t[l]=l,P--,l=c;this._hullStart=n[a]=l,t[l]=n[g]=a,t[a]=g,o[this._hashKey(i,s)]=a,o[this._hashKey(e[2*l],e[2*l+1])]=l}this.hull=new Uint32Array(P);for(let S=0,C=this._hullStart;S<P;S++)this.hull[S]=C,C=t[C];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,n){return Math.floor(Pn(e-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:n,_halfedges:t,coords:r}=this;let o=0,a=0;while(1){const i=t[e],s=e-e%3;if(a=s+(e+2)%3,-1===i){if(0===o)break;e=_n[--o];continue}const u=i-i%3,c=s+(e+1)%3,l=u+(i+2)%3,f=n[a],d=n[e],p=n[c],h=n[l],g=Bn(r[2*f],r[2*f+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1],r[2*h],r[2*h+1]);if(g){n[e]=h,n[i]=f;const r=t[l];if(-1===r){let n=this._hullStart;do{if(this._hullTri[n]===l){this._hullTri[n]=e;break}n=this._hullPrev[n]}while(n!==this._hullStart)}this._link(e,r),this._link(i,t[a]),this._link(a,l);const s=u+(i+1)%3;o<_n.length&&(_n[o++]=s)}else{if(0===o)break;e=_n[--o]}}return a}_link(e,n){this._halfedges[e]=n,-1!==n&&(this._halfedges[n]=e)}_addTriangle(e,n,t,r,o,a){const i=this.trianglesLen;return this._triangles[i]=e,this._triangles[i+1]=n,this._triangles[i+2]=t,this._link(i,r),this._link(i+1,o),this._link(i+2,a),this.trianglesLen+=3,i}}function Pn(e,n){const t=e/(Math.abs(e)+Math.abs(n));return(n>0?3-t:1+t)/4}function Sn(e,n,t,r){const o=e-t,a=n-r;return o*o+a*a}function Cn(e,n,t,r,o,a){const i=(r-n)*(o-e),s=(t-e)*(a-n);return Math.abs(i-s)>=33306690738754716e-32*Math.abs(i+s)?i-s:0}function Mn(e,n,t,r,o,a){const i=Cn(o,a,e,n,t,r)||Cn(e,n,t,r,o,a)||Cn(t,r,o,a,e,n);return i<0}function Bn(e,n,t,r,o,a,i,s){const u=e-i,c=n-s,l=t-i,f=r-s,d=o-i,p=a-s,h=u*u+c*c,g=l*l+f*f,y=d*d+p*p;return u*(f*y-g*p)-c*(l*y-g*d)+h*(l*p-f*d)<0}function An(e,n,t,r,o,a){const i=t-e,s=r-n,u=o-e,c=a-n,l=i*i+s*s,f=u*u+c*c,d=.5/(i*c-s*u),p=(c*l-s*f)*d,h=(i*f-u*l)*d;return p*p+h*h}function Rn(e,n,t,r,o,a){const i=t-e,s=r-n,u=o-e,c=a-n,l=i*i+s*s,f=u*u+c*c,d=.5/(i*c-s*u),p=e+(c*l-s*f)*d,h=n+(i*f-u*l)*d;return{x:p,y:h}}function Ln(e,n,t,r){if(r-t<=20)for(let o=t+1;o<=r;o++){const r=e[o],a=n[r];let i=o-1;while(i>=t&&n[e[i]]>a)e[i+1]=e[i--];e[i+1]=r}else{const o=t+r>>1;let a=t+1,i=r;On(e,o,a),n[e[t]]>n[e[r]]&&On(e,t,r),n[e[a]]>n[e[r]]&&On(e,a,r),n[e[t]]>n[e[a]]&&On(e,t,a);const s=e[a],u=n[s];while(1){do{a++}while(n[e[a]]<u);do{i--}while(n[e[i]]>u);if(i<a)break;On(e,a,i)}e[t+1]=e[i],e[i]=s,r-a+1>=i-t?(Ln(e,n,a,r),Ln(e,n,t,i-1)):(Ln(e,n,t,i-1),Ln(e,n,a,r))}}function On(e,n,t){const r=e[n];e[n]=e[t],e[t]=r}function jn(e){return e[0]}function zn(e){return e[1]}function Dn(e,n,t){var r=b(new Set(e.cities.map((function(e){return e.region})))),o=Array(7*n).fill(0).map((function(e){return{name:"",region:"",x:0,y:0}})),a=[420,490,490],i=[490,560,700],s=a[n-3],u=i[n-3],c=70,l=Math.ceil(s/c),f=Math.ceil(u/c),d=l*f,p=Array(d).fill(-1);e.mapPosition=[100,200],e.layout="Portrait";var h=Array(d).fill(0).map((function(e,n){return n}));o.forEach((function(e,n){var r=h[Math.floor(t()*h.length)],o=Math.floor(r/l),a=r%l;e.x=Math.floor(2*a*c),e.y=Math.floor(o*c),o%2===0&&(e.x+=c);var i=2*t()*Math.PI,s=t()*c/2;e.x+=s*Math.cos(i),e.y+=s*Math.sin(i),h=h.filter((function(e){return e!==r})),p[r]=n}));for(var g=Array(o.length).fill(0).map((function(e){return Array(o.length).fill(0)})),y=Array(o.length).fill(0).map((function(e){return Array(o.length).fill(null)})),v=kn.from(o,(function(e){return e.x}),(function(e){return e.y})),m=0;m<v.triangles.length;m+=3){var w=o[v.triangles[m]],x=o[v.triangles[m+1]],_=o[v.triangles[m+2]],k=g[v.triangles[m]][v.triangles[m+1]],P=k?Math.pow(k,2):Math.pow(w.x-x.x,2)+Math.pow(w.y-x.y,2),S=k||(g[v.triangles[m+1]][v.triangles[m]]=g[v.triangles[m]][v.triangles[m+1]]=Math.sqrt(P));k=g[v.triangles[m]][v.triangles[m+2]];var C=k?Math.pow(k,2):Math.pow(w.x-_.x,2)+Math.pow(w.y-_.y,2),M=k||(g[v.triangles[m+2]][v.triangles[m]]=g[v.triangles[m]][v.triangles[m+2]]=Math.sqrt(C));k=g[v.triangles[m+1]][v.triangles[m+2]];var B=k?Math.pow(k,2):Math.pow(x.x-_.x,2)+Math.pow(x.y-_.y,2),A=k||(g[v.triangles[m+2]][v.triangles[m+1]]=g[v.triangles[m+1]][v.triangles[m+2]]=Math.sqrt(B)),R=Math.acos((P+C-B)/(2*S*M)),L=Math.acos((P+B-C)/(2*S*A)),O=Math.PI-R-L,j=105*Math.PI/180;!1!==y[v.triangles[m]][v.triangles[m+1]]&&O<j?(y[v.triangles[m]][v.triangles[m+1]]=!0,y[v.triangles[m+1]][v.triangles[m]]=!0):(y[v.triangles[m]][v.triangles[m+1]]=!1,y[v.triangles[m+1]][v.triangles[m]]=!1),!1!==y[v.triangles[m]][v.triangles[m+2]]&&L<j?(y[v.triangles[m]][v.triangles[m+2]]=!0,y[v.triangles[m+2]][v.triangles[m]]=!0):(y[v.triangles[m]][v.triangles[m+2]]=!1,y[v.triangles[m+2]][v.triangles[m]]=!1),!1!==y[v.triangles[m+1]][v.triangles[m+2]]&&R<j?(y[v.triangles[m+1]][v.triangles[m+2]]=!0,y[v.triangles[m+2]][v.triangles[m+1]]=!0):(y[v.triangles[m+1]][v.triangles[m+2]]=!1,y[v.triangles[m+2]][v.triangles[m+1]]=!1)}for(var z=0,D=1e3,E=0;E<o.length;E++)for(var G=0;G<E;G++)if(y[E][G]){var T=g[E][G];z=Math.max(z,T),D=Math.min(D,T)}var I=5===n?[[s/4,u/4],[s/4,3*u/4],[s/2,u/2],[3*s/4,u/4],[3*s/4,3*u/4]]:4===n?[[s/4,u/4],[s/4,3*u/4],[3*s/4,u/4],[3*s/4,3*u/4]]:[[s/4,u/4],[s/2,u/2],[3*s/4,3*u/4]],N=En(o.map((function(e){return[e.x,e.y]})),n,I,y),U=Array(n).fill(0);o.forEach((function(e,n){e.region=r[N[n]],e.name=Object(me["upperFirst"])(e.region)+" "+(1+U[N[n]]++)}));for(var K=[],F=0;F<o.length;F++)for(var V=0;V<F;V++)if(y[F][V]){var W=o[F],H=o[V],Y=g[F][V];K.push({nodes:[W.name,H.name],cost:Math.floor(5*Y/c)})}return e.cities=o,e.connections=K,e}function En(e,n,t,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100,a=Array(e.length).fill(0),i=Math.ceil(e.length/n),s=!1,u=function(){var r=Array(n).fill(0),u=Array(e.length).fill(0).map((function(e){return Array(n).fill(0)}));e.forEach((function(e,n){var o=null,s=0;t.forEach((function(t,a){var c=Gn(e,t);(null===o||c<o)&&r[a]<i&&(o=c,s=a),u[n][a]=c})),a[n]=s,r[s]++}));var c=Array(t.length).fill(0).map((function(e){return[0,0]})),l=Array(t.length).fill(0);e.forEach((function(e,n){c[a[n]][0]+=e[0],c[a[n]][1]+=e[1],l[a[n]]++})),s=!0,t.forEach((function(e,n){c[n][0]=c[n][0]/l[n],c[n][1]=c[n][1]/l[n],e[0]===c[n][0]&&e[1]===c[n][1]||(s=!1)})),t=c,console.log("iterations",o),console.log("centroids",t),s=s||0===--o};do{u()}while(!s);var c=10;do{console.log("Refining"),s=!0,e.forEach((function(n,o){var i=a[o],u=r[o].some((function(e,n){return e&&i===a[n]}));if(!u){var c=t[i],l=null,f=null;r[o].forEach((function(n,t){if(n){var r=e[t],o=Gn(r,c);(null===l||o<l)&&(l=o,f=t)}})),a[o]=a[f],a[f]=i,s=!1}})),s=s||0===--c}while(!s);return a}function Gn(e,n){return(e[0]-n[0])*(e[0]-n[0])+(e[1]-n[1])*(e[1]-n[1])}var Tn=["limegreen","mediumorchid","red","dodgerblue","yellow","brown"],In=[10,7,7,7,6],Nn=[21,17,17,15,14],Un=[10,22,33,44,54,64,73,82,90,98,105,112,118,124,129,134,138,142,145,148,150,150],Kn=[3,3,4,5,5];function Fn(e,n,t,r){var o,a,i=Object(me["cloneDeep"])(Te);if("original"==n){i=i.slice(8);var s=i.splice(2,1)[0],u=i.pop();i=De(i,t()+""),2==e||3==e?i=i.slice(8):4==e&&(i=i.slice(4)),i.unshift(s),i.push(u),o=[et(3),et(4),et(5),et(6)],a=[et(7),et(8),et(9),et(10)]}else{var c=De(i.splice(0,13),t()+""),l=c.splice(0,8);l=l.sort((function(e,n){return e.number-n.number})),o=l.slice(0,4),a=l.slice(4);var f=c.shift(),d=i.pop();i=De(i,t()+""),2==e||3==e?(c=c.slice(2),i=De(i.slice(6).concat(c),t()+"")):4==e?(c=c.slice(1),i=De(i.slice(3).concat(c),t()+"")):r&&(i=De(i.concat(c),t()+"")),i.unshift(f),i.push(d)}return{actualMarket:o,futureMarket:a,powerPlantsDeck:i}}function Vn(e,n,t,r,o){var a,i,s,c,l,f=n.fastBid,d=void 0!==f&&f,p=n.map,h=void 0===p?"USA":p,g=n.variant,y=void 0===g?"original":g,v=n.showMoney,m=void 0!==v&&v,b=n.useNewRechargedSetup,w=void 0===b||b,x=n.trackTotalSpent,_=void 0===x||x,k=n.randomizeMap,P=void 0!==k&&k;t=null!==(a=t)&&void 0!==a?a:Math.random().toString();var S,C,M,B=Be()(t),A=Object(me["cloneDeep"])("original"==y?bn.find((function(e){return e.name==h})):wn.find((function(e){return e.name==h})));if(r)M=r,S=M.splice(0,4),C=M.splice(0,4);else if(A.setupDeck){var R=A.setupDeck(e,y,B);S=R.actualMarket,C=R.futureMarket,M=R.powerPlantsDeck}else{var L=Fn(e,y,B,w);S=L.actualMarket,C=L.futureMarket,M=L.powerPlantsDeck}var O,j,z,D,E,G=Object(me["range"])(e).map((function(e){return{id:e,powerPlants:[],coalCapacity:0,coalLeft:0,oilCapacity:0,oilLeft:0,garbageCapacity:0,garbageLeft:0,uraniumCapacity:0,uraniumLeft:0,hybridCapacity:0,hybridLeft:0,money:50,housesLeft:22,cities:[],powerPlantsNotUsed:[],availableMoves:null,lastMove:null,isDropped:!1,isAI:!1,bid:0,passed:!1,skipAuction:!1,citiesPowered:0,resourcesUsed:[],totalIncome:0,totalSpentCities:0,totalSpentConnections:0,totalSpentPlants:0,totalSpentResources:0}})),T=G.length-2,I=Object(me["range"])(e),N=I[0];if(A.resupply?(O=A.resupply[0],j=A.resupply[1],z=A.resupply[2],D=A.resupply[3]):(O=[[3,4,3],[4,5,3],[5,6,4],[5,7,5],[7,9,6]],j=[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],z=[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],D=[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]),"Portrait"==A.layout||P){var U="USA"===A.name&&"recharged"===y;A.viewBox=A.viewBox||[1480,1060],A.adjustRatio=A.adjustRatio||[1,1],A.playerOrderPosition=A.playerOrderPosition||[1160,160],A.cityCountPosition=A.cityCountPosition||[0,0],A.powerPlantMarketPosition=A.powerPlantMarketPosition||[745,0],A.actualMarketWidth=A.actualMarketWidth||430,A.mapPosition=A.mapPosition||[0,0],A.buttonsPosition=A.buttonsPosition||[1305,0],A.playerBoardsPosition=A.playerBoardsPosition||[1105,240],A.roundInfoPosition=A.roundInfoPosition||[20,920],A.supplyPosition=A.supplyPosition||[U?480:675,920]}else A.viewBox=A.viewBox||[1465,860],A.adjustRatio=A.adjustRatio||[1,1],A.playerOrderPosition=A.playerOrderPosition||[1160,140],A.cityCountPosition=A.cityCountPosition||[0,0],A.powerPlantMarketPosition=A.powerPlantMarketPosition||[745,0],A.actualMarketWidth=A.actualMarketWidth||430,A.mapPosition=A.mapPosition||[-10,0],A.buttonsPosition=A.buttonsPosition||[1305,0],A.playerBoardsPosition=A.playerBoardsPosition||[1105,200],A.roundInfoPosition=A.roundInfoPosition||[20,590],A.supplyPosition=A.supplyPosition||[0,720];P?E=Dn(A,Kn[T],B):function(){A.cities=A.cities.map((function(e){return u(u({},e),{},{x:e.x*A.adjustRatio[0],y:e.y*A.adjustRatio[1]})}));var e=A.cities.filter((function(e,n){return A.cities.findIndex((function(n){return n.region==e.region}))==n})).map((function(e){return e.region})),n=A.connections.map((function(e){return e.nodes.map((function(e){return A.cities.find((function(n){return n.name==e})).region}))})),t=e.map((function(t){return e.filter((function(e){return t!=e&&n.some((function(n){return n.includes(t)&&n.includes(e)}))}))})),r=new Set;while(r.size!=Math.min(Kn[T],e.length)){var o=e[Math.floor(B()*e.length)];(0==r.size||t[e.indexOf(o)].some((function(e){return r.has(e)})))&&(r.add(o),"Italy"===A.name&&r.has("red")&&r.has("green")&&r.has("blue")&&r.clear())}var a=Object(me["cloneDeep"])(A);a.cities=a.cities.filter((function(e){return r.has(e.region)})),a.connections=a.connections.filter((function(e){return e.nodes.map((function(e){return A.cities.find((function(n){return n.name==e})).region})).every((function(e){return r.has(e)}))})),E=a}();var K=A.startingResources?A.startingResources[0]:24,F=A.startingResources?A.startingResources[1]:18,V=A.startingResources?A.startingResources[2]:"original"==y?6:9,W=A.startingResources?A.startingResources[3]:2,H=A.startingSupply?A.startingSupply[0]:24,Y=A.startingSupply?A.startingSupply[1]:24,$=A.startingSupply?A.startingSupply[2]:24,q=A.startingSupply?A.startingSupply[3]:12,Z=H-K,J=Y-F,X=$-V,Q=q-W,ee=Object(me["cloneDeep"])(null!==(i=A.coalPrices)&&void 0!==i?i:we.coal),ne=Object(me["cloneDeep"])(null!==(s=A.oilPrices)&&void 0!==s?s:we.oil),te=Object(me["cloneDeep"])(null!==(c=A.garbagePrices)&&void 0!==c?c:we.garbage),re=Object(me["cloneDeep"])(null!==(l=A.uraniumPrices)&&void 0!==l?l:we.uranium),oe={map:o||E,players:G,playerOrder:I,currentPlayers:[N],powerPlantsDeck:M,coalSupply:Z,oilSupply:J,garbageSupply:X,uraniumSupply:Q,coalResupply:O,oilResupply:j,garbageResupply:z,uraniumResupply:D,coalMarket:K,oilMarket:F,garbageMarket:V,uraniumMarket:W,coalPrices:ee,oilPrices:ne,garbagePrices:te,uraniumPrices:re,actualMarket:S,futureMarket:C,chosenPowerPlant:void 0,currentBid:void 0,highestBidders:[],auctioningPlayer:void 0,step:1,phase:ge.Auction,options:{fastBid:d,map:h,variant:y,showMoney:m,useNewRechargedSetup:w,trackTotalSpent:_},log:[],hiddenLog:[],seed:t,round:1,auctionSkips:0,citiesToStep2:In[e-2],citiesToEndGame:Nn[e-2],resourceResupply:["[".concat(O[T][0],", ").concat(j[T][0],", ").concat(z[T][0],", ").concat(D[T][0],"]"),"[".concat(O[T][1],", ").concat(j[T][1],", ").concat(z[T][1],", ").concat(D[T][1],"]"),"[".concat(O[T][2],", ").concat(j[T][2],", ").concat(z[T][2],", ").concat(D[T][2],"]")],paymentTable:Un,variant:y,minimunBid:0,plantDiscountActive:"recharged"==y&&"China"!=(o||E).name&&"Russia"!=(o||E).name,discardSmallestPlant:!1,cardsLeft:M.length,nextCardWeak:"recharged"==y,card39Bought:!1,knownPowerPlantDeck:S.concat(C),knownPowerPlantDeckStep3:[],powerPlantDeckAfterStep3:void 0};return oe.log.push({type:"event",event:"Game Start!"}),"Middle East"==oe.map.name&&Zn(oe),oe.players[N].availableMoves=xe(oe,oe.players[N]),oe}function Wn(e,n,t){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=e.players[t],i=null===(r=a.availableMoves)||void 0===r?void 0:r[n.name];switch(gt(e),Ce()(e.currentPlayers.includes(t),"It is not your turn!"),Ce()(i,"You are not allowed to run the command "+n.name),o&&n.name==ye.DiscardPowerPlant&&a.powerPlants[a.powerPlants.length-1].number==n.data||Ce()(i.some((function(e){return Object(me["isEqual"])(e,n.data)})),"Wrong argument for the command "+n.name),n.name){case ye.ChoosePowerPlant:ze(n),e.chosenPowerPlant=et(n.data,e.map.name),e.auctioningPlayer=a.id,39==n.data&&(e.card39Bought=!0),"recharged"==e.options.variant&&e.plantDiscountActive&&e.chosenPowerPlant.number==e.actualMarket[0].number?(e.minimunBid=1,e.plantDiscountActive=!1,n.usedPlantDiscount=!0):e.minimunBid=n.data;var s=e.players.filter((function(e){return!e.skipAuction&&!e.isDropped}));if(1==s.length){e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," chooses Power Plant ").concat(n.data,"."),pretty:"".concat(tt(a)," chooses Power Plant <b>").concat(n.data,"</b>.")});var u=s[0];ut(e,u,e.minimunBid),1==e.round&&ct(e),(u.powerPlants.length<=3||2==e.players.length&&4==u.powerPlants.length)&&("China"==e.map.name&&3!=e.step||qn(e),st(e))}else e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," chooses Power Plant ").concat(n.data," to initiate an auction."),pretty:"".concat(tt(a)," chooses Power Plant <b>").concat(n.data,"</b> to initiate an auction.")}),e.options.fastBid&&(e.currentPlayers=e.playerOrder.filter((function(n){return!e.players[n].skipAuction&&!e.players[n].isDropped})));break;case ye.Bid:ze(n),e.options.fastBid?(e.hiddenLog.push({type:"move",player:t,move:n,simple:"".concat(a.name," bids $").concat(n.data,"."),pretty:"".concat(tt(a),' bids <span style="color: green">$').concat(n.data,"</span>.")}),yt(e,a,n.data)):(e.currentBid=a.bid=n.data,e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," bids $").concat(n.data,"."),pretty:"".concat(tt(a),' bids <span style="color: green">$').concat(n.data,"</span>.")}),dt(e));break;case ye.Pass:switch(ze(n),e.options.fastBid&&e.phase==ge.Auction&&e.chosenPowerPlant||e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," passes."),pretty:"".concat(tt(a)," passes.")}),e.phase){case ge.Auction:var c;if(void 0==e.chosenPowerPlant)a.skipAuction=!0,e.auctionSkips++,1==e.auctionSkips&&"Russia"==e.map.name&&(null===(c=e.actualMarket)||void 0===c?void 0:c.length)>0&&(e.log.push({type:"event",event:"First pass, removing lowest numbered Power Plant (".concat(e.actualMarket[0].number,").")}),e.actualMarket.shift(),qn(e)),e.players.some((function(e){return!e.skipAuction&&!e.isDropped}))?ht(e):(e.auctionSkips==e.players.length&&"original"==e.options.variant&&"China"!=e.map.name&&"Russia"!=e.map.name&&(e.log.push({type:"event",event:"Everyone passed, removing lowest numbered Power Plant (".concat(e.actualMarket[0].number,").")}),e.actualMarket.shift(),qn(e)),st(e));else if(e.options.fastBid)e.hiddenLog.push({type:"move",player:t,move:n,simple:"".concat(a.name," passes."),pretty:"".concat(tt(a)," passes.")}),yt(e,a,0);else{a.passed=!0;var l=e.players.filter((function(e){return!e.passed&&!e.skipAuction&&!e.isDropped}));if(1==l.length){var f=l[0];ut(e,f,f.bid),(f.powerPlants.length>4||e.players.length>2&&f.powerPlants.length>3)&&!f.isDropped?lt(e,f.id):("China"==e.map.name&&3!=e.step||qn(e),e.players.some((function(e){return!e.skipAuction&&!e.isDropped}))?(e.players.forEach((function(e){e.bid=0,e.passed=e.isDropped})),ht(e,!0)):st(e))}else dt(e)}break;case ge.Resources:if("India"==e.map.name&&e.chosenResource?e.chosenResource=void 0:a.passed=!0,0==e.players.filter((function(e){return!e.passed&&!e.isDropped})).length?(e.players.forEach((function(e){e.passed=e.isDropped})),e.phase=ge.Building,"India"==e.map.name&&(e.citiesBuiltInCurrentRound=0),lt(e,e.playerOrder[e.players.length-1]),e.players[e.currentPlayers[0]].isDropped&&e.players.some((function(e){return!e.isDropped}))&&(e.players[e.currentPlayers[0]].passed=!0,pt(e))):pt(e),"India"==e.map.name)while(e.players[e.currentPlayers[0]].passed)pt(e);break;case ge.Building:if(a.passed=!0,0==e.players.filter((function(e){return!e.passed&&!e.isDropped})).length){var d=Math.max.apply(Math,b(e.players.map((function(e){return e.cities.length}))));if(1==e.step&&d>=e.citiesToStep2&&"Middle East"!=e.map.name){var p=e.actualMarket.shift();e.log.push({type:"event",event:"Starting Step 2, Power Plant ".concat(null===p||void 0===p?void 0:p.number," discarded.")}),e.step=2,"Spain & Portugal"==e.map.name&&(e.powerPlantsDeck.find((function(e){return 18==e.number}))||(e.powerPlantsDeck.unshift(et(27)),e.powerPlantsDeck.unshift(et(22)),e.powerPlantsDeck.unshift(et(18)))),qn(e)}d>=e.citiesToEndGame?(e.phase=ge.GameEnd,e.currentPlayers=[],ot(e),"India"==e.map.name&&e.citiesBuiltInCurrentRound>2*e.players.length&&e.players.forEach((function(n){var t=e.paymentTable[n.citiesPowered]-3*n.cities.length;n.money+=Math.max(t,0),n.totalIncome+=Math.max(t,0)})),e.log.push({type:"event",event:"Game Ended!"})):(e.players.forEach((function(e){e.passed=e.isDropped,e.powerPlantsNotUsed=e.powerPlants.map((function(e){return e.number}))})),e.phase=ge.Bureaucracy,e.currentPlayers=e.playerOrder.filter((function(n){return!e.players[n].passed&&!e.players[n].isDropped})),"India"==e.map.name&&(e.players.forEach((function(e){return e.targetCitiesPowered=at(e)})),e.citiesBuiltInCurrentRound>2*e.players.length&&e.log.push({type:"event",event:"Power outage! ".concat(e.citiesBuiltInCurrentRound," built this round, which is more than twice the number of players.")})),"China"==e.map.name&&e.step<=2?Xn(e):0==e.futureMarket.length&&(e.step=3))}else pt(e);break;case ge.Bureaucracy:a.passed=!0;var h=Math.min(a.cities.length,a.citiesPowered),g=e.paymentTable[h];if("India"==e.map.name&&e.citiesBuiltInCurrentRound>2*e.players.length&&(g-=3*a.cities.length,g=Math.max(g,0)),a.money+=g,e.options.trackTotalSpent&&(a.totalIncome+=g),a.citiesPowered=0,"India"==e.map.name&&(a.targetCitiesPowered=0),0==e.players.filter((function(e){return!e.passed&&!e.isDropped})).length){var y,v=Math.min(e.coalSupply,e.coalResupply[e.players.length-2][e.step-1]);if(e.coalMarket+=v,e.coalSupply-=v,"Middle East"==e.map.name){0==e.oilMarket&&(e.oilPrices=we[pe.Oil]),y=e.oilResupply[e.players.length-2][e.step-1];for(var m=0;m<y;m++)e.oilSupply>0?(e.oilMarket++,e.oilSupply--):(e.oilPrices.pop(),e.oilPrices.unshift(1))}else y=Math.min(e.oilSupply,e.oilResupply[e.players.length-2][e.step-1]),e.oilMarket+=y,e.oilSupply-=y;var w=Math.min(e.garbageSupply,e.garbageResupply[e.players.length-2][e.step-1]);e.garbageMarket+=w,e.garbageSupply-=w;var x=0;if(("recharged"!=e.options.variant||"Germany"!=e.options.map&&"Italy"!=e.options.map||!e.card39Bought)&&(x=Math.min(e.uraniumSupply,e.uraniumResupply[e.players.length-2][e.step-1]),e.uraniumMarket+=x,e.uraniumSupply-=x),e.log.push({type:"event",event:"Resupplying resources: [".concat(v,", ").concat(y,", ").concat(w,", ").concat(x,"].")}),"Middle East"==e.map.name&&2==e.step&&e.futureMarket.length>0){var _=e.futureMarket.pop();e.log.push({type:"event",event:"Putting Power Plant ".concat(_.number," on the bottom of the deck.")}),e.powerPlantsDeck.push(_),qn(e),_=e.futureMarket.length?e.futureMarket.pop():e.actualMarket.pop(),e.log.push({type:"event",event:"Putting Power Plant ".concat(_.number," on the bottom of the deck.")}),e.powerPlantsDeck.push(_),qn(e)}else if(e.futureMarket.length>0){if("Benelux"==e.map.name&&("original"==e.options.variant||e.discardSmallestPlant)){var k=e.actualMarket[0];e.log.push({type:"event",event:"Removing smallest plant, Power Plant ".concat(k.number,".")}),e.actualMarket.shift(),qn(e),e.discardSmallestPlant=!1}var P;if("Quebec"==e.map.name){var S=e.futureMarket.filter((function(e){return e.type!=he.Wind}));if(P=S.pop(),P)e.futureMarket=e.futureMarket.filter((function(e){var n;return e.number!=(null===(n=P)||void 0===n?void 0:n.number)}));else{var C=e.actualMarket.filter((function(e){return e.type!=he.Wind}));P=C.pop(),P&&(e.actualMarket=e.actualMarket.filter((function(e){var n;return e.number!=(null===(n=P)||void 0===n?void 0:n.number)})))}}else P=e.futureMarket.pop();P&&(e.log.push({type:"event",event:"Putting Power Plant ".concat(P.number," on the bottom of the deck.")}),e.powerPlantsDeck.push(P),qn(e))}else e.actualMarket.length>0&&("China"!=e.map.name||3==e.step)&&(e.log.push({type:"event",event:"Discarding Power Plant ".concat(e.actualMarket[0].number,".")}),e.actualMarket.shift(),qn(e));e.round++,ct(e),e.players.forEach((function(e){e.passed=e.isDropped})),e.auctionSkips=0,e.actualMarket.length>0?(e.phase=ge.Auction,0==e.futureMarket.length&&"China"!=e.map.name&&(e.step=3),e.plantDiscountActive="recharged"==e.options.variant&&"China"!=e.map.name&&"Russia"!=e.map.name,lt(e,e.playerOrder[0])):st(e)}else e.currentPlayers=e.playerOrder.filter((function(n){return!e.players[n].passed&&!e.players[n].isDropped}));break}break;case ye.DiscardPowerPlant:ze(n),n.extra||e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," discards Power Plant ").concat(n.data,"."),pretty:"".concat(tt(a)," discards Power Plant <b>").concat(n.data,"</b>.")});var M=a.powerPlants.find((function(e){return e.number==n.data}));if(a.powerPlants=a.powerPlants.filter((function(e){return e.number!=n.data})),$n(a),n.extra){var B=[];switch(M.type){case he.Coal:e.coalSupply+=n.extra[0],a.coalLeft-=n.extra[0],B.push(n.extra[0]+" Coal");break;case he.Oil:e.oilSupply+=n.extra[0],a.oilLeft-=n.extra[0],B.push(n.extra[0]+" Oil");break;case he.Garbage:e.garbageSupply+=n.extra[0],a.garbageLeft-=n.extra[0],B.push(n.extra[0]+" Garbage");break;case he.Uranium:e.uraniumSupply+=n.extra[0],a.uraniumLeft-=n.extra[0],B.push(n.extra[0]+" Uranium");break;case he.Hybrid:n.extra[0]>0&&(e.coalSupply+=n.extra[0],a.coalLeft-=n.extra[0],B.push(n.extra[0]+" Coal")),n.extra[1]>0&&(e.oilSupply+=n.extra[1],a.oilLeft-=n.extra[1],B.push(n.extra[1]+" Oil"));break}e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," discards Power Plant ").concat(n.data," and ").concat(B.join(", "),"."),pretty:"".concat(tt(a)," discards Power Plant <b>").concat(n.data,"</b> and ").concat(B.join(", "),".")}),"China"==e.map.name&&3!=e.step||qn(e),e.players.forEach((function(e){e.bid=0,e.passed=e.isDropped})),e.players.some((function(e){return!e.skipAuction&&!e.isDropped}))?ht(e,!0):st(e)}else{var A=[],R=a.hybridCapacity>0?Math.max(0,a.oilLeft-a.oilCapacity):0;a.coalCapacity+a.hybridCapacity<a.coalLeft+R&&A.push(pe.Coal),R=a.hybridCapacity>0?Math.max(0,a.coalLeft-a.coalCapacity):0,a.oilCapacity+a.hybridCapacity<a.oilLeft+R&&A.push(pe.Oil),a.garbageLeft>a.garbageCapacity&&(e.garbageSupply+=a.garbageLeft-a.garbageCapacity,a.garbageLeft=a.garbageCapacity),a.uraniumLeft>a.uraniumCapacity&&(e.uraniumSupply+=a.uraniumLeft-a.uraniumCapacity,a.uraniumLeft=a.uraniumCapacity),1==A.length&&(A[0]==pe.Coal?(e.coalSupply+=a.coalLeft-a.coalCapacity,a.coalLeft=a.coalCapacity):A[0]==pe.Oil&&(e.oilSupply+=a.oilLeft-a.oilCapacity,a.oilLeft=a.oilCapacity),A.pop()),0==A.length&&("China"==e.map.name&&3!=e.step||qn(e),e.players.forEach((function(e){e.bid=0,e.passed=e.isDropped})),e.players.some((function(e){return!e.skipAuction&&!e.isDropped}))?ht(e,!0):st(e))}break;case ye.DiscardResources:ze(n),e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," discarded a ").concat(n.data,"."),pretty:"".concat(tt(a)," discarded a <b>").concat(n.data,"</b>.")}),n.data==pe.Coal?(a.coalLeft--,e.coalSupply++):n.data==pe.Oil&&(a.oilLeft--,e.oilSupply++);var L=[],O=a.hybridCapacity>0?Math.max(0,a.oilLeft-a.oilCapacity):0;a.coalCapacity+a.hybridCapacity<a.coalLeft+O&&L.push(pe.Coal),O=a.hybridCapacity>0?Math.max(0,a.coalLeft-a.coalCapacity):0,a.oilCapacity+a.hybridCapacity<a.oilLeft+O&&L.push(pe.Oil),1==L.length&&(L[0]==pe.Coal?a.coalLeft--:L[0]==pe.Oil&&a.oilLeft--,L.pop()),0==L.length&&("China"==e.map.name&&3!=e.step||qn(e),e.players.forEach((function(e){e.bid=0,e.passed=e.isDropped})),e.players.some((function(e){return!e.skipAuction&&!e.isDropped}))?ht(e,!0):st(e));break;case ye.BuyResource:var j;switch(ze(n),e.chosenResource=n.data.resource,n.data.resource){case pe.Coal:if(0==e.coalMarket)j=8,a.coalLeft++,e.coalSupply--,n.fromSupply=!0;else{var z,D=null!==(z=e.coalPrices)&&void 0!==z?z:we[pe.Coal];j=D[D.length-e.coalMarket],a.coalLeft++,e.coalMarket--}break;case pe.Oil:var E,G=null!==(E=e.oilPrices)&&void 0!==E?E:we[pe.Oil];j=G[G.length-e.oilMarket],a.oilLeft++,e.oilMarket--;break;case pe.Garbage:var T,I=null!==(T=e.garbagePrices)&&void 0!==T?T:we[pe.Garbage];if(j=I[I.length-e.garbageMarket],"Central Europe"==e.map.name){var N=a.cities.filter((function(e){return"Wien"==e.name}));(null===N||void 0===N?void 0:N.length)>0&&j--}a.garbageLeft++,e.garbageMarket--;break;case pe.Uranium:var U,K=null!==(U=e.uraniumPrices)&&void 0!==U?U:we[pe.Uranium];j=K[K.length-e.uraniumMarket],a.uraniumLeft++,e.uraniumMarket--;break}a.money-=j,e.options.trackTotalSpent&&(a.totalSpentResources+=j),e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," buys ").concat(n.data.resource," for $").concat(j,"."),pretty:"".concat(tt(a)," buys <b>").concat(n.data.resource,'</b> for <span style="color: green">$').concat(j,"</span>.")});break;case ye.Build:ze(n);var F=e.players.filter((function(e){return e.cities.find((function(e){return e.name==n.data.name}))})).length;a.cities.push({name:n.data.name,position:F}),a.money-=n.data.price,e.options.trackTotalSpent&&(a.totalSpentCities+=10+5*F,a.totalSpentConnections+=n.data.price-(10+5*F)),e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," builds on ").concat(n.data.name," for $").concat(n.data.price,"."),pretty:"".concat(tt(a)," builds on <b>").concat(n.data.name,'</b> for <span style="color: green">$').concat(n.data.price,"</span>.")}),"India"==e.map.name&&e.citiesBuiltInCurrentRound++,"original"==e.options.variant&&e.actualMarket.length>0&&a.cities.length>=e.actualMarket[0].number&&"China"!=e.map.name&&"Russia"!=e.map.name&&(e.actualMarket.shift(),qn(e));break;case ye.UsePowerPlant:ze(n),a.powerPlantsNotUsed=a.powerPlantsNotUsed.filter((function(e){return e!=n.data.powerPlant})),n.data.resourcesSpent.forEach((function(n){switch(n){case pe.Coal:a.coalLeft--,e.coalSupply++;break;case pe.Oil:a.oilLeft--,e.oilSupply++;break;case pe.Garbage:a.garbageLeft--,e.garbageSupply++;break;case pe.Uranium:a.uraniumLeft--,e.uraniumSupply++;break}})),a.citiesPowered+=n.data.citiesPowered,e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," uses Power Plant ").concat(n.data.powerPlant,"."),pretty:"".concat(tt(a)," uses Power Plant <b>").concat(n.data.powerPlant,"</b>.")});break;case ye.Undo:ze(n);var V=a.lastMove;switch(null===V||void 0===V?void 0:V.name){case ye.ChoosePowerPlant:39==V.data&&(e.card39Bought=!1),V.usedPlantDiscount&&(e.plantDiscountActive=!0),e.chosenPowerPlant=void 0,e.auctioningPlayer=void 0,e.currentPlayers=[a.id],e.log.pop();break;case ye.BuyResource:var W;switch(V.data.resource){case pe.Coal:if(V.fromSupply)W=8,a.coalLeft--,e.coalSupply++;else{var H;a.coalLeft--,e.coalMarket++;var Y=null!==(H=e.coalPrices)&&void 0!==H?H:we[pe.Coal];W=Y[Y.length-e.coalMarket]}break;case pe.Oil:var $;a.oilLeft--,e.oilMarket++;var q=null!==($=e.oilPrices)&&void 0!==$?$:we[pe.Oil];W=q[q.length-e.oilMarket];break;case pe.Garbage:var Z;a.garbageLeft--,e.garbageMarket++;var J=null!==(Z=e.garbagePrices)&&void 0!==Z?Z:we[pe.Garbage];if(W=J[J.length-e.garbageMarket],"Central Europe"==e.map.name){var X=a.cities.filter((function(e){return"Wien"==e.name}));(null===X||void 0===X?void 0:X.length)>0&&W--}break;case pe.Uranium:var Q;a.uraniumLeft--,e.uraniumMarket++;var ee=null!==(Q=e.uraniumPrices)&&void 0!==Q?Q:we[pe.Uranium];W=ee[ee.length-e.uraniumMarket];break}a.money+=W,e.options.trackTotalSpent&&(a.totalSpentResources-=W),"India"==e.map.name&&(e.chosenResource=void 0),e.log.pop();break;case ye.Build:a.cities.pop(),a.money+=V.data.price;var ne=e.players.filter((function(e){return e.cities.find((function(e){return e.name==V.data.name}))})).length;e.options.trackTotalSpent&&(a.totalSpentCities-=10+5*ne,a.totalSpentConnections-=V.data.price-(10+5*ne)),e.log.pop(),"India"==e.map.name&&e.citiesBuiltInCurrentRound--;break;case ye.UsePowerPlant:a.powerPlantsNotUsed.push(V.data.powerPlant),V.data.resourcesSpent.forEach((function(n){switch(n){case pe.Coal:a.coalLeft++,e.coalSupply--;break;case pe.Oil:a.oilLeft++,e.oilSupply--;break;case pe.Garbage:a.garbageLeft++,e.garbageSupply--;break;case pe.Uranium:a.uraniumLeft++,e.uraniumSupply--;break}})),a.citiesPowered-=V.data.citiesPowered;var te=e.log.slice().reverse(),re=e.log.length-te.findIndex((function(e){return"move"==e.type&&e.player==a.id}))-1;e.log.splice(re,1);break}}if(a.availableMoves=null,n.name==ye.Undo){var oe=e.log.slice().reverse(),ae=oe.find((function(e){return"move"==e.type&&e.player==a.id}));a.lastMove=null===ae||void 0===ae?void 0:ae.move}else a.lastMove=n;return e.cardsLeft=e.powerPlantsDeck.length,e.nextCardWeak="recharged"==e.options.variant&&e.cardsLeft>0&&e.powerPlantsDeck[0].number<=15,e.currentPlayers.forEach((function(n){return e.players[n].availableMoves=xe(e,e.players[n])})),e}function Hn(e){return e.phase==ge.GameEnd}function Yn(e,n){var t=nt(e),r=Object(me["cloneDeep"])(t);void 0!=n&&"secret"==e.seed&&e.knownPowerPlantDeck&&(r.map=e.map,r.powerPlantsDeck=Object(me["cloneDeep"])(e.knownPowerPlantDeck),r.actualMarket=r.powerPlantsDeck.splice(0,4),r.futureMarket=r.powerPlantsDeck.splice(0,4),r.players[r.currentPlayers[0]].availableMoves=xe(r,r.players[r.currentPlayers[0]]),r.powerPlantDeckAfterStep3=e.knownPowerPlantDeckStep3,r.knownPowerPlantDeck=r.actualMarket.concat(r.futureMarket));var o,a=null!=n?e.log.slice(0,n):e.log,i=w(a);try{for(i.s();!(o=i.n()).done;){var s=o.value;switch(s.type){case"event":if(s.event.endsWith("was dropped")){var u=+s.event.split(" ")[1];r.players[u].isDropped=!0}break;case"move":Wn(r,s.move,s.player,!0);break}}}catch(c){i.e(c)}finally{i.f()}return r}function $n(e){e.coalCapacity=e.oilCapacity=e.garbageCapacity=e.uraniumCapacity=e.hybridCapacity=0,e.powerPlants.forEach((function(n){switch(n.type){case he.Coal:e.coalCapacity+=2*n.cost;break;case he.Oil:e.oilCapacity+=2*n.cost;break;case he.Garbage:n.storage?e.garbageCapacity+=n.storage:e.garbageCapacity+=2*n.cost;break;case he.Uranium:e.uraniumCapacity+=2*n.cost;break;case he.Hybrid:e.hybridCapacity+=2*n.cost;break}}))}function qn(e){var n=e.powerPlantsDeck.shift();if(n){if(3==e.step?e.knownPowerPlantDeckStep3&&e.knownPowerPlantDeckStep3.push(n):e.knownPowerPlantDeck&&e.knownPowerPlantDeck.push(n),"original"==e.options.variant&&"China"!=e.map.name){var t=Math.max.apply(Math,b(e.players.map((function(e){return e.cities.length}))));while(n.number<=t){var r;if(e.log.push({type:"event",event:"Power plant ".concat(null===(r=n)||void 0===r?void 0:r.number," discarded.")}),!(e.powerPlantsDeck.length>0))break;n=e.powerPlantsDeck.shift(),3==e.step?e.knownPowerPlantDeckStep3&&e.knownPowerPlantDeckStep3.push(n):e.knownPowerPlantDeck&&e.knownPowerPlantDeck.push(n)}}var o=!1;if(99==n.number){if(e.powerPlantDeckAfterStep3?e.powerPlantsDeck=e.powerPlantDeckAfterStep3:"China"==e.map.name?e.step=3:e.powerPlantsDeck=De(e.powerPlantsDeck,e.seed),e.phase!=ge.Auction)if("Middle East"==e.map.name&&1==e.step){var a=[].concat(b(e.actualMarket),b(e.futureMarket),[n]);a.sort((function(e,n){return e.number-n.number})),e.actualMarket=a.slice(0,4),e.futureMarket=a.slice(4),Jn(e),o=!0}else{var i=e.actualMarket.shift();e.log.push({type:"event",event:"Step 3 will begin next phase, Power Plant ".concat(null===i||void 0===i?void 0:i.number," discarded.")});var s=[].concat(b(e.actualMarket),b(e.futureMarket));s.sort((function(e,n){return e.number-n.number})),e.actualMarket=s,e.futureMarket=[]}}else{if(e.plantDiscountActive&&n.number<e.actualMarket[0].number)return e.log.push({type:"event",event:"Power Plant ".concat(n.number," drawn from the deck and discarded.")}),e.plantDiscountActive=!1,void qn(e);e.log.push({type:"event",event:"Power Plant ".concat(n.number," drawn from the deck.")})}if("China"==e.map.name&&n.type!=he.Step3){var u=[].concat(b(e.actualMarket),[n]);u.sort((function(e,n){return e.number-n.number})),e.actualMarket=u}else if(!o){var c=[].concat(b(e.actualMarket),b(e.futureMarket),[n]);c.sort((function(e,n){return e.number-n.number})),0==e.futureMarket.length?"Russia"==e.map.name?(e.actualMarket=c.slice(0,4),e.futureMarket=[]):(e.actualMarket=c.slice(0,6),e.futureMarket=[]):"Russia"==e.map.name?(e.actualMarket=c.slice(0,3),e.futureMarket=c.slice(3)):"Benelux"==e.map.name&&c[4].type==he.Wind?(e.actualMarket=c.slice(0,5),e.futureMarket=c.slice(5)):(e.actualMarket=c.slice(0,4),e.futureMarket=c.slice(4)),"Middle East"==e.map.name&&1==e.step&&Zn(e)}}}function Zn(e){var n=e.actualMarket.find((function(e){return e.type==he.Garbage||e.type==he.Uranium})),t=function(){Qn(e,n),[6,11,14].includes(n.number)?e.log.push({type:"event",event:"Removing Power Plant ".concat(n.number," from game.")}):(e.powerPlantsDeck.push(n),e.log.push({type:"event",event:"Sending Power Plant ".concat(n.number," to the bottom of the deck.")}));var t=e.futureMarket.filter((function(e){return e.type!=he.Garbage&&e.type!=he.Uranium})),r=t.length>0?t[0].number:100;if(0==e.powerPlantsDeck.filter((function(e){return e.type!=he.Garbage&&e.type!=he.Uranium||e.number>r})).length)return e.log.push({type:"event",event:"No suitable power plants available to draw."}),"break";qn(e),n=e.actualMarket.find((function(e){return e.type==he.Garbage||e.type==he.Uranium}))};while(n){var r=t();if("break"===r)break}}function Jn(e){var n=e.futureMarket.pop();e.powerPlantsDeck=De(e.powerPlantsDeck,e.seed),e.powerPlantsDeck.push(n),qn(e),e.log.push({type:"event",event:"Step 2 will begin next phase, discarding two power plants."}),e.step=2;var t=e.actualMarket.shift();t&&(e.log.push({type:"event",event:"Power Plant ".concat(t.number," discarded to start step 2.")}),qn(e));var r=e.actualMarket.shift();r&&(e.log.push({type:"event",event:"Power Plant ".concat(r.number," discarded to start step 2.")}),qn(e))}function Xn(e){var n=0;2==e.players.length||3==e.players.length?n=1:4==e.players.length||5==e.players.length?n=2:6==e.players.length&&(n=3);for(var t=e.actualMarket.length,r=e.players.length-1,o=Math.max(n,r-t),a=0;a<o;a++){if(3==e.step)break;qn(e)}while(2==e.players.length&&e.actualMarket.length<2&&3!=e.step)qn(e);if(3==e.step){e.actualMarket=e.actualMarket.filter((function(e){return e.type!=he.Step3}));while(e.actualMarket.length<4&&e.powerPlantsDeck.length>0)qn(e)}else{var i=Math.max(2,e.players.length-1);while(e.actualMarket.length>i)e.actualMarket.shift()}}function Qn(e,n){e.actualMarket.splice(e.actualMarket.findIndex((function(e){return e.number==n.number})),1)}function et(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"India"==n?Ie.find((function(n){return n.number==e})):Te.find((function(n){return n.number==e}))}function nt(e){var n=Vn(e.players.length,e.options,e.seed);return n.players.forEach((function(n,t){n.name=e.players[t].name,n.isAI=e.players[t].isAI})),n}function tt(e){return'<span style="background-color: '.concat(Tn[e.id],'; font-weight: bold; padding: 0 3px;">').concat(e.name,"</span>")}function rt(e){return Object(me["cloneDeep"])(e.players).sort((function(e,n){return e.citiesPowered==n.citiesPowered?e.money==n.money?e.cities.length-n.cities.length:e.money-n.money:e.citiesPowered-n.citiesPowered})).reverse()}function ot(e){e.players.forEach((function(e){e.citiesPowered=at(e)}))}function at(e){for(var n=[],t=function(t){var r=[];e.powerPlants.forEach((function(e,n){t&Math.pow(2,n)&&r.push(e)})),n.push(r)},r=0;r<Math.pow(2,e.powerPlants.length);r++)t(r);var o=0;return n.forEach((function(n){if(it(e,n)){var t=n.map((function(e){return e.citiesPowered})).reduce((function(e,n){return e+n}),0);o=Math.max(o,t)}})),Math.min(e.cities.length,o)}function it(e,n){var t=n.filter((function(e){return e.type==he.Coal})).map((function(e){return e.cost})).reduce((function(e,n){return e+n}),0),r=n.filter((function(e){return e.type==he.Oil})).map((function(e){return e.cost})).reduce((function(e,n){return e+n}),0),o=n.filter((function(e){return e.type==he.Garbage})).map((function(e){return e.cost})).reduce((function(e,n){return e+n}),0),a=n.filter((function(e){return e.type==he.Uranium})).map((function(e){return e.cost})).reduce((function(e,n){return e+n}),0),i=n.filter((function(e){return e.type==he.Hybrid})).map((function(e){return e.cost})).reduce((function(e,n){return e+n}),0);return!(t>e.coalLeft||r>e.oilLeft||o>e.garbageLeft||a>e.uraniumLeft)&&!(i>e.coalLeft-t+e.oilLeft-r)}function st(e){if(e.players.forEach((function(e){e.bid=0,e.passed=e.isDropped})),e.players.forEach((function(e){e.skipAuction=!1})),"recharged"==e.options.variant&&(e.plantDiscountActive?(e.plantDiscountActive=!1,e.actualMarket.length>0&&(e.log.push({type:"event",event:"Discarding Power Plant ".concat(e.actualMarket[0].number,".")}),e.actualMarket.shift(),qn(e))):"Benelux"==e.map.name&&(e.discardSmallestPlant=!0)),e.futureMarket.find((function(e){return 99==e.number})))if("Middle East"==e.map.name&&1==e.step)Jn(e);else{var n=e.actualMarket.shift();e.futureMarket.pop(),e.log.push({type:"event",event:"Starting Step 3, Power Plant ".concat(null===n||void 0===n?void 0:n.number," discarded.")}),e.step=3,e.actualMarket=[].concat(b(e.actualMarket),b(e.futureMarket)),e.futureMarket=[]}e.phase=ge.Resources,lt(e,e.playerOrder[e.players.length-1])}function ut(e,n,t){n.powerPlants.push(e.chosenPowerPlant),n.money-=t,e.options.trackTotalSpent&&(n.totalSpentPlants+=t),n.skipAuction=!0,$n(n),e.log.push({type:"event",event:"".concat(n.name," wins the bid and pays ").concat(t,"."),pretty:"".concat(tt(n),' wins the bid and pays <span style="color: green">$').concat(t,"</span>.")}),Qn(e,e.chosenPowerPlant),e.chosenPowerPlant=e.currentBid=void 0}function ct(e){e.playerOrder=Object(me["cloneDeep"])(e.players).sort((function(e,n){var t=e.cities.length,r=n.cities.length;return t==r?Math.max.apply(Math,b(e.powerPlants.map((function(e){return e.number}))))-Math.max.apply(Math,b(n.powerPlants.map((function(e){return e.number})))):t-r})).map((function(e){return e.id})).reverse()}function lt(e,n){e.currentPlayers=[n],e.players[n].isDropped&&e.players.some((function(e){return!e.isDropped}))&&(e.players[n].passed=!0,ft(e))}function ft(e){e.phase==ge.Auction?void 0==e.chosenPowerPlant?ht(e):dt(e):pt(e)}function dt(e){var n=e.currentPlayers[0];e.currentPlayers=[(n+1)%e.players.length],e.players[e.currentPlayers[0]].isDropped&&e.players.some((function(e){return!e.isDropped}))&&(e.players[e.currentPlayers[0]].passed=!0,e.players[e.currentPlayers[0]].skipAuction=!0,dt(e)),(e.players[e.currentPlayers[0]].skipAuction||e.players[e.currentPlayers[0]].passed)&&e.players.some((function(e){return!e.skipAuction&&!e.passed&&!e.isDropped}))&&dt(e)}function pt(e){var n=e.playerOrder.indexOf(e.currentPlayers[0]);e.currentPlayers=[e.playerOrder[(n-1+e.players.length)%e.players.length]],e.players[e.currentPlayers[0]].isDropped&&e.players.some((function(e){return!e.isDropped}))&&(e.players[e.currentPlayers[0]].passed=!0,pt(e))}function ht(e){var n,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)n=e.playerOrder[0];else{var r=e.playerOrder.indexOf(e.currentPlayers[0]);n=e.playerOrder[(r+1)%e.players.length]}e.currentPlayers=[n];var o=e.players[n];o.isDropped&&(o.passed=!0,o.skipAuction=!0),(o.skipAuction||o.passed)&&e.players.some((function(e){return!e.skipAuction&&!e.passed&&!e.isDropped}))&&ht(e)}function gt(e){if(!e.coalResupply){var n=bn.find((function(n){return n.name===e.map.name}));null!==n&&void 0!==n&&n.resupply?(e.coalResupply=n.resupply[0],e.oilResupply=n.resupply[1],e.garbageResupply=n.resupply[2],e.uraniumResupply=n.resupply[3]):(e.coalResupply=[[3,4,3],[4,5,3],[5,6,4],[5,7,5],[7,9,6]],e.oilResupply=[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],e.garbageResupply=[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],e.uraniumResupply=[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]);var t=e.players.length-2;e.resourceResupply=["[".concat(e.coalResupply[t][0],", ").concat(e.oilResupply[t][0],", ").concat(e.garbageResupply[t][0],", ").concat(e.uraniumResupply[t][0],"]"),"[".concat(e.coalResupply[t][1],", ").concat(e.oilResupply[t][1],", ").concat(e.garbageResupply[t][1],", ").concat(e.uraniumResupply[t][1],"]"),"[".concat(e.coalResupply[t][2],", ").concat(e.oilResupply[t][2],", ").concat(e.garbageResupply[t][2],", ").concat(e.uraniumResupply[t][2],"]")]}}function yt(e,n,t){if(n.bid=t,e.currentPlayers=e.currentPlayers.filter((function(e){return e!==n.id})),0===e.currentPlayers.length){var r;(r=e.log).push.apply(r,b(e.hiddenLog)),e.hiddenLog=[];var o=e.players.map((function(e){return e.bid})).filter((function(e){return e>0})),a=e.minimunBid,i=Math.max.apply(Math,b(o)),s=e.players.filter((function(e){return!e.isDropped&&e.bid===i})),u=s[0].id;if(o.length>1){o.splice(o.indexOf(i),1);var c=Math.max.apply(Math,b(o));if(s.length>1)(function(){var n=e.auctioningPlayer;while(!s.find((function(e){return e.id==n})))n=(n+1)%e.players.length;a=c,u=n})();else{var l=e.auctioningPlayer;a=0;while(0==a)s[0].id==l?a=c:e.players[l].bid==c&&(a=c+1),l=(l+1)%e.players.length}}var f=e.players[u];ut(e,f,a),(f.powerPlants.length>4||e.players.length>2&&f.powerPlants.length>3)&&!f.isDropped?lt(e,f.id):("China"==e.map.name&&3!=e.step||qn(e),e.players.some((function(e){return!e.skipAuction&&!e.isDropped}))?(e.players.forEach((function(e){e.bid=0,e.passed=e.isDropped})),ht(e,!0)):st(e))}}var vt,mt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return 99==e.powerPlant.number?t("g",{attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+")"}},[t("rect",{attrs:{width:"60",height:"40",fill:e.getColor(),stroke:"black","stroke-width":"2",rx:"4"}}),t("text",{attrs:{"text-anchor":"middle",x:"30",y:"20",fill:"black"}},[e._v("Step 3")])]):t("g",{class:[{canClick:e.canClick}],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+")"},on:{click:function(n){e.canClick&&e.$emit("click")}}},[t("rect",{attrs:{width:"60",height:"40",fill:e.getColor(),stroke:e.hasDiscount?"palegreen":"black","stroke-width":"2",rx:"4"}}),e.hasDiscount?t("g",[t("rect",{attrs:{width:"12",height:"12",rx:"4",fill:"palegreen"}}),t("text",{staticStyle:{"font-size":"12px"},attrs:{"text-anchor":"middle",x:"6",y:"6",fill:"black"}},[e._v("$")])]):e._e(),t("g",{attrs:{transform:"translate(30, 10)"}},[t("text",{attrs:{"text-anchor":"middle",x:"1",y:"1",fill:"gray"}},[e._v(e._s(e.powerPlant.number))]),t("text",{attrs:{"text-anchor":"middle",fill:"white"}},[e._v(e._s(e.powerPlant.number))])]),t("g",{class:["piece"],attrs:{id:e.elId,transform:"translate(40, 20) scale(0.035)"}},[t("path",{attrs:{d:"M187.698 263.636V456.017L3 341.204V169.522L80.8579 108.141L187.698 263.636Z",fill:"white",stroke:"white","stroke-width":"12","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M395.724 136.361V300.164L187.698 456.017V263.636L395.724 136.361Z",fill:"white",stroke:"white","stroke-width":"12","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M395.724 136.361L187.698 263.636L80.8579 108.141L304.771 4L395.724 136.361Z",fill:"white",stroke:"white","stroke-width":"12","stroke-miterlimit":"10"}})]),t("text",{staticStyle:{"font-size":"12px"},attrs:{"text-anchor":"middle",x:"47",y:"28",fill:"black"}},[e._v(" "+e._s(e.powerPlant.citiesPowered)+" ")]),t("g",{attrs:{transform:"translate(5, 20)"}},[t("path",{attrs:{d:e.getResourcePath(),fill:"white"}})]),e.powerPlant.cost>0?t("text",{staticStyle:{"font-size":"12px"},attrs:{"text-anchor":"middle",x:"12.5",y:"27.5",fill:"black"}},[e._v(" "+e._s(e.powerPlant.cost)+" ")]):e._e(),t("g",{attrs:{transform:"translate(24, 22)"}},[t("path",{attrs:{d:"M0,3 L8,3 L8,0 L14,6 L8,12 L8,9 L0,9Z",fill:"white"}})]),t("defs",[t("linearGradient",{attrs:{id:"hybrid",x1:"0",y1:"0",x2:"100%",y2:"100%"}},[t("stop",{attrs:{offset:"50%","stop-color":"#8b4513"}}),t("stop",{attrs:{offset:"50%","stop-color":"#445"}})],1)],1)])},bt=[];(function(e){e[e["House"]=0]="House",e[e["Card"]=1]="Card",e[e["Coal"]=2]="Coal",e[e["Oil"]=3]="Oil",e[e["Garbage"]=4]="Garbage",e[e["Uranium"]=5]="Uranium",e[e["Hybrid"]=6]="Hybrid"})(vt||(vt={}));var wt=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"targetState",void 0),i(P(e),"pieceId",void 0),i(P(e),"transparent",void 0),i(P(e),"communicator",void 0),i(P(e),"ui",void 0),i(P(e),"pieceType",void 0),i(P(e),"currentX",0),i(P(e),"currentY",0),i(P(e),"mounted",!1),i(P(e),"transitioning",!1),i(P(e),"transitionCount",0),i(P(e),"moving",!1),e}return k(t,[{key:"startTransitioning",value:function(){var e=this;if(!this.transitioning){this.ui.waitingAnimations+=1,this.transitioning=!0,this.transitionCount+=1;var n=this.transitionCount;setTimeout((function(){n===e.transitionCount&&e.onTransitionEnd()}),1e3)}}},{key:"onTargetChanged",value:function(e,n){var t=this;this.targetState.x===this.currentX&&this.targetState.y===this.currentY||(!this.transitioning&&this.mounted&&(!n||e?this.startTransitioning():(this.moving=!0,setTimeout((function(){return t.moving=!1}),800))),this.mounted?setTimeout((function(){t.currentX=t.targetState.x,t.currentY=t.targetState.y})):(this.currentX=this.targetState.x,this.currentY=this.targetState.y))}},{key:"onTransitionEnd",value:function(){this.transitioning&&(this.transitioning=!1,this.ui.waitingAnimations=Math.max(this.ui.waitingAnimations-1,0))}},{key:"elId",get:function(){return this.transitioning||this.moving?"moving":void 0}}]),t}(f.a);j([le({default:function(){return{x:0,y:0,rotate:0}}})],wt.prototype,"targetState",void 0),j([le()],wt.prototype,"pieceId",void 0),j([le()],wt.prototype,"transparent",void 0),j([te()],wt.prototype,"communicator",void 0),j([te()],wt.prototype,"ui",void 0),j([fe("dragging"),fe("targetState",{immediate:!0})],wt.prototype,"onTargetChanged",null),wt=j([ee({created:function(){},mounted:function(){this.mounted=!0},beforeDestroy:function(){this.onTransitionEnd()}})],wt);var xt,_t,kt=wt,Pt=kt;function St(e,n,t,r,o,a,i,s){var u,c="function"===typeof e?e.options:e;if(n&&(c.render=n,c.staticRenderFns=t,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),i?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=u):o&&(u=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,n){return u.call(n),l(e,n)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}var Ct=St(Pt,xt,_t,!1,null,null,null),Mt=Ct.exports,Bt=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"owner",void 0),i(P(e),"powerPlant",void 0),i(P(e),"canClick",void 0),i(P(e),"hasDiscount",void 0),e}return k(t,[{key:"getColor",value:function(){var e;switch(null===(e=this.powerPlant)||void 0===e?void 0:e.type){case he.Coal:return"#8b4513";case he.Oil:return"#445";case he.Garbage:return"goldenrod";case he.Uranium:return"red";case he.Hybrid:return"url(#hybrid)";case he.Wind:return"limegreen";case he.Nuclear:return"dodgerblue";case he.Step3:return"dodgerblue"}}},{key:"getResourcePath",value:function(){var e;switch(null===(e=this.powerPlant)||void 0===e?void 0:e.type){case he.Coal:return"M0,3 L7.5,0 L15,3 L15,12 L7.5,15 L0,12Z";case he.Oil:return"M3,2 A6,3 0 0,1 12,2 L12,12 A6,3 0 0,1 3,12Z";case he.Garbage:return"M0,3 A7.5,3 0 0,1 15,3 L15,12 A7.5,3 0 0,1 0,12Z";case he.Uranium:return"M1,2 l4,-2 l6,0 l4,2 l0,11 l-4,2 l-6,0 l-4,-2Z";case he.Hybrid:return"M0,3 L7.5,0 L15,3 L15,12 L7.5,15 L0,12Z M9,1 A6,3 0 0,1 18,1 L18,10 A6,3 0 0,1 10,10Z";case he.Wind:return"";case he.Nuclear:return"";case he.Step3:return""}}}]),t}(H(Mt));j([le()],Bt.prototype,"owner",void 0),j([le()],Bt.prototype,"powerPlant",void 0),j([le()],Bt.prototype,"canClick",void 0),j([le({default:!1})],Bt.prototype,"hasDiscount",void 0),Bt=j([ee({created:function(){this.pieceType=vt.Card}})],Bt);var At=Bt,Rt=At,Lt=(t("11ac"),St(Rt,mt,bt,!1,null,null,null)),Ot=Lt.exports,jt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:[{canClick:e.canClick}],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+") scale("+e.scale+")",opacity:e.transparent?.3:1},on:{click:function(n){e.canClick&&e.$emit("click")}}},[t("path",{attrs:{d:"M136.8 21.2L43.1001 48.9L43.2001 167.2L135.2 210.3L228.8 174V55.7L136.8 21.2Z",fill:"#5a2d0c",stroke:"black","stroke-width":"20","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M135.2 210.3L43.2001 167.2L43.1001 48.8999L135.1 83.4999L135.2 210.3Z",fill:"#70380f"}}),t("path",{attrs:{d:"M135.1 83.5L43.1001 48.9L136.8 21.2L228.8 55.7L135.1 83.5Z",fill:"#8b4513"}}),t("path",{attrs:{d:"M228.8 55.7V174L135.2 210.3L135.1 83.5L228.8 55.7Z",fill:"#5a2d0c"}}),t("title",[e._v("Coal")])])},zt=[],Dt=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"canClick",void 0),i(P(e),"scale",void 0),e}return t}(H(Mt));j([le()],Dt.prototype,"canClick",void 0),j([le({default:.08})],Dt.prototype,"scale",void 0),Dt=j([ee({created:function(){this.pieceType=vt.Coal}})],Dt);var Et=Dt,Gt=Et,Tt=St(Gt,jt,zt,!1,null,null,null),It=Tt.exports,Nt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:[{canClick:e.canClick}],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+") scale("+e.scale+")",opacity:e.transparent?.3:1},on:{click:function(n){e.canClick&&e.$emit("click")}}},[t("path",{attrs:{d:"M2,5 A9,5,0 0,1 18,5 L18,15 A9,5 0 0,1 2,15Z",fill:"none",stroke:"black","stroke-miterlimit":"0"}}),t("path",{attrs:{d:"M2,5 A9,5 0 0,0 18,5 A9,5 0 0,0 2,5",fill:"#FF0"}}),t("path",{attrs:{d:"M2,5 A9,5 0 0,0 2,5 L2,15 A9,5,0 0,0 18,15 L18,5 A9,5 0 0,1 2,5",fill:"url(#garbage-linear)"}}),t("title",[e._v("Garbage")]),t("defs",[t("linearGradient",{attrs:{id:"garbage-linear",x1:"0",y1:"10",x2:"20",y2:"10",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#DD0"}}),t("stop",{attrs:{offset:"1","stop-color":"#AA0"}})],1)],1)])},Ut=[],Kt=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"canClick",void 0),i(P(e),"scale",void 0),e}return t}(H(Mt));j([le()],Kt.prototype,"canClick",void 0),j([le({default:1})],Kt.prototype,"scale",void 0),Kt=j([ee({created:function(){this.pieceType=vt.Garbage}})],Kt);var Ft=Kt,Vt=Ft,Wt=St(Vt,Nt,Ut,!1,null,null,null),Ht=Wt.exports,Yt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:["piece"],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+") scale(0.035)"}},[t("path",{attrs:{d:"M187.698 263.636V456.017L3 341.204V169.522L80.8579 108.141L187.698 263.636Z",fill:e.color,stroke:"#010101","stroke-width":"12","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M395.724 136.361V300.164L187.698 456.017V263.636L395.724 136.361Z",fill:e.color,stroke:"#010101","stroke-width":"12","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M395.724 136.361L187.698 263.636L80.8579 108.141L304.771 4L395.724 136.361Z",fill:e.color,stroke:"#010101","stroke-width":"12","stroke-miterlimit":"10"}}),t("title",[e._v(e._s(e.ownerName)+"'s House")])])},$t=[],qt=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"player",void 0),i(P(e),"color",void 0),i(P(e),"owner",void 0),i(P(e),"ownerName",void 0),e}return t}(H(Mt));j([re()],qt.prototype,"player",void 0),j([le()],qt.prototype,"color",void 0),j([le()],qt.prototype,"owner",void 0),j([le()],qt.prototype,"ownerName",void 0),qt=j([ee({created:function(){this.pieceType=vt.House}})],qt);var Zt=qt,Jt=Zt,Xt=St(Jt,Yt,$t,!1,null,null,null),Qt=Xt.exports,er=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:["piece"],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+")"}},[t("g",{attrs:{transform:"scale(0.08)"}},[t("path",{attrs:{d:"M136.8 21.2L43.1001 48.9L43.2001 167.2L135.2 210.3L228.8 174V55.7L136.8 21.2Z",fill:"#5a2d0c",stroke:"black","stroke-width":"20","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M135.2 210.3L43.2001 167.2L43.1001 48.8999L135.1 83.4999L135.2 210.3Z",fill:"#70380f"}}),t("path",{attrs:{d:"M135.1 83.5L43.1001 48.9L136.8 21.2L228.8 55.7L135.1 83.5Z",fill:"#8b4513"}}),t("path",{attrs:{d:"M228.8 55.7V174L135.2 210.3L135.1 83.5L228.8 55.7Z",fill:"#5a2d0c"}})]),t("g",{attrs:{transform:"translate(5, 0)"}},[t("path",{attrs:{d:"M6,4 A6,4,0 0,1 14,4 L14,16 A6,4 0 0,1 6,16Z",fill:"none",stroke:"black"}}),t("path",{attrs:{d:"M6,4 A6,4 0 0,0 14,4 A6,4 0 0,0 6,4",fill:"#556"}}),t("path",{attrs:{d:"M6,4 A6,4 0 0,0 6,4 L6,16 A6,4,0 0,0 14,16 L14,4 A6,4 0 0,1 6,4",fill:"url(#oil-linear)"}})]),t("title",[e._v("Coal/Oil")])])},nr=[],tr=function(e){C(t,e);var n=O(t);function t(){return x(this,t),n.apply(this,arguments)}return t}(H(Mt));tr=j([ee({created:function(){this.pieceType=vt.Hybrid}})],tr);var rr=tr,or=rr,ar=St(or,er,nr,!1,null,null,null),ir=(ar.exports,function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:[{canClick:e.canClick}],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+") scale("+e.scale+")",opacity:e.transparent?.3:1},on:{click:function(n){e.canClick&&e.$emit("click")}}},[t("path",{attrs:{d:"M6,4 A6,4,0 0,1 14,4 L14,16 A6,4 0 0,1 6,16Z",fill:"none",stroke:"black"}}),t("path",{attrs:{d:"M6,4 A6,4 0 0,0 14,4 A6,4 0 0,0 6,4",fill:"#556"}}),t("path",{attrs:{d:"M6,4 A6,4 0 0,0 6,4 L6,16 A6,4,0 0,0 14,16 L14,4 A6,4 0 0,1 6,4",fill:"url(#oil-linear)"}}),t("title",[e._v("Oil")]),t("defs",[t("linearGradient",{attrs:{id:"oil-linear",x1:"0",y1:"10",x2:"20",y2:"10",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#445"}}),t("stop",{attrs:{offset:"1","stop-color":"#223"}})],1)],1)])}),sr=[],ur=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"canClick",void 0),i(P(e),"scale",void 0),e}return t}(H(Mt));j([le()],ur.prototype,"canClick",void 0),j([le({default:1})],ur.prototype,"scale",void 0),ur=j([ee({created:function(){this.pieceType=vt.Oil}})],ur);var cr=ur,lr=cr,fr=St(lr,ir,sr,!1,null,null,null),dr=fr.exports,pr=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:[{canClick:e.canClick}],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+")",opacity:e.transparent?.3:1},on:{click:function(n){e.canClick&&e.$emit("click")}}},[t("path",{attrs:{d:"M3,3 l4,-2 l6,0 l4,2 l0,11 l-4,2 l-6,0 l-4,-2Z",fill:"#F00",stroke:"black"}}),t("path",{attrs:{d:"M3,3 l4,-2 l6,0 l4,2 l0,2.1 l-4,2 l-6,0 l-4,-2 l0,-2.1",fill:"#F00"}}),t("path",{attrs:{d:"M3,5 l0,9 l4.1,2 l0,-9 l-4.1,-2",fill:"#e60000"}}),t("path",{attrs:{d:"M7,7 l6.1,0 l0,9 l-6.1,0 l0,-9",fill:"#cc0000"}}),t("path",{attrs:{d:"M13,7 l4.1,-2 l0,9 l-4.1,2 l0,-9",fill:"#b30000"}}),t("title",[e._v("Uranium")])])},hr=[],gr=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"canClick",void 0),e}return t}(H(Mt));j([le()],gr.prototype,"canClick",void 0),gr=j([ee({created:function(){this.pieceType=vt.Uranium}})],gr);var yr=gr,vr=yr,mr=St(vr,pr,hr,!1,null,null,null),br=mr.exports,wr=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:["button",{enabled:e.enabled}],on:{click:function(n){e.enabled&&e.$emit("click")}}},[t("rect",{attrs:{width:e.width,height:"30",fill:"gainsboro",stroke:"black",rx:"2"}}),t("text",{attrs:{"text-anchor":"middle",fill:"black",x:e.width/2,y:"16"}},[e._v(e._s(e.getText()))]),t("title",[e._v(e._s(e.text))])])},xr=[],_r=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"text",void 0),i(P(e),"width",void 0),i(P(e),"enabled",void 0),e}return k(t,[{key:"getText",value:function(){var e;return this.text.length>15?null===(e=this.text)||void 0===e?void 0:e.substring(0,12).concat("..."):this.text}}]),t}(f.a);j([le()],_r.prototype,"text",void 0),j([le()],_r.prototype,"width",void 0),j([le({default:!0})],_r.prototype,"enabled",void 0),_r=j([ee],_r);var kr=_r,Pr=kr,Sr=St(Pr,wr,xr,!1,null,null,null),Cr=Sr.exports,Mr=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("g",{staticClass:"button enabled",on:{click:function(n){return e.$emit("click")}}},[r("circle",{attrs:{cx:"15",cy:"15",r:"15",fill:"gainsboro",stroke:"black","stroke-width":"2px"}}),r("image",{attrs:{x:"5",y:"5",width:"20",height:"20",href:t("997e")}}),e.isOn?e._e():r("line",{attrs:{x1:"5",y1:"25",x2:"25",y2:"5",stroke:"black","stroke-width":"3px","stroke-linecap":"round"}}),e.isOn?r("title",[e._v("Help off")]):r("title",[e._v("Help on")])])},Br=[],Ar=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"isOn",void 0),e}return t}(f.a);j([le()],Ar.prototype,"isOn",void 0),Ar=j([ee],Ar);var Rr=Ar,Lr=Rr,Or=St(Lr,Mr,Br,!1,null,null,null),jr=Or.exports,zr=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("g",{staticClass:"button enabled",on:{click:function(n){return e.$emit("click")}}},[r("rect",{attrs:{width:"80",height:"26",fill:"gainsboro",stroke:"black",rx:"2"}}),r("image",{attrs:{x:"11",y:"5",width:"16",height:"16",href:t("b67b")}}),r("text",{attrs:{"text-anchor":"middle",fill:"black",x:"47",y:"13"}},[e._v("Log")]),r("title",[e._v("Show log")])])},Dr=[],Er=function(e){C(t,e);var n=O(t);function t(){return x(this,t),n.apply(this,arguments)}return t}(f.a);Er=j([ee],Er);var Gr=Er,Tr=Gr,Ir=St(Tr,zr,Dr,!1,null,null,null),Nr=Ir.exports,Ur=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("g",{class:["button",{enabled:e.enabled,highlightButton:e.highlightButton}],on:{click:function(n){e.enabled&&e.$emit("click")}}},[r("rect",{attrs:{width:"80",height:"26",fill:"gainsboro",stroke:"black",rx:"2"}}),r("image",{attrs:{x:"15",y:"8",width:"10",height:"10",href:t("fd65")}}),r("text",{attrs:{"text-anchor":"middle",fill:"black",x:"47",y:"13"}},[e._v(e._s(e.text))]),r("title",[e._v("Pass turn")])])},Kr=[],Fr=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"enabled",void 0),i(P(e),"highlightButton",void 0),i(P(e),"text",void 0),e}return t}(f.a);j([le()],Fr.prototype,"enabled",void 0),j([le()],Fr.prototype,"highlightButton",void 0),j([le()],Fr.prototype,"text",void 0),Fr=j([ee],Fr);var Vr=Fr,Wr=Vr,Hr=St(Wr,Ur,Kr,!1,null,null,null),Yr=Hr.exports,$r=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("g",{staticClass:"button enabled",on:{click:function(n){return e.$emit("click")}}},[r("circle",{attrs:{cx:"15",cy:"15",r:"15",fill:"gainsboro",stroke:"black","stroke-width":"2px"}}),e.isOn?r("image",{attrs:{x:"5",y:"5",width:"20",height:"20",href:t("9fd9")}}):r("image",{attrs:{x:"5",y:"5",width:"20",height:"20",href:t("2044")}}),e.isOn?r("title",[e._v("Sound off")]):r("title",[e._v("Sound on")])])},qr=[],Zr=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"isOn",void 0),e}return t}(f.a);j([le()],Zr.prototype,"isOn",void 0),Zr=j([ee],Zr);var Jr=Zr,Xr=Jr,Qr=St(Xr,$r,qr,!1,null,null,null),eo=Qr.exports,no=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("g",{staticClass:"button enabled",on:{click:function(n){return e.$emit("click")}}},[r("circle",{attrs:{cx:"15",cy:"15",r:"15",fill:"gainsboro",stroke:"black","stroke-width":"2px"}}),r("image",{attrs:{x:"5",y:"5",width:"20",height:"20",href:t("b85b")}}),r("title",[e._v("Rules")])])},to=[],ro=function(e){C(t,e);var n=O(t);function t(){return x(this,t),n.apply(this,arguments)}return t}(f.a);ro=j([ee],ro);var oo=ro,ao=oo,io=St(ao,no,to,!1,null,null,null),so=io.exports,uo=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("g",{class:["button",{enabled:e.enabled,highlightButton:e.highlightButton}],on:{click:function(n){e.enabled&&e.$emit("click")}}},[r("rect",{attrs:{width:"80",height:"26",fill:"gainsboro",stroke:"black",rx:"2"}}),r("image",{attrs:{x:"11",y:"4",width:"16",height:"16",href:t("92cf")}}),r("text",{attrs:{"text-anchor":"middle",fill:"black",x:"47",y:"13"}},[e._v("Undo")]),r("title",[e._v("Undo last move")])])},co=[],lo=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"enabled",void 0),i(P(e),"highlightButton",void 0),e}return t}(f.a);j([le()],lo.prototype,"enabled",void 0),j([le()],lo.prototype,"highlightButton",void 0),lo=j([ee],lo);var fo=lo,po=fo,ho=St(po,uo,co,!1,null,null,null),go=ho.exports,yo=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{staticClass:"player-board"},[t("rect",{attrs:{width:"350",height:"100",x:"0",y:"0",fill:"gold",stroke:e.color}}),t("rect",{attrs:{width:"350",height:"25",x:"0",y:"0",fill:e.color}}),t("foreignObject",{attrs:{height:"30",width:"30",x:"-30",y:"-5"}},[t("img",{staticStyle:{"border-radius":"50%"},attrs:{src:e.avatar||"https://avatars.dicebear.com/api/pixel-art/"+e.player.name+".svg",width:"100%",height:"100%"}})]),t("text",{attrs:{x:"5",y:"13","font-weight":"600",fill:"black"}},[e._v(" "+e._s(e.getPlayerName())+" ")]),e.showMoney?t("text",{attrs:{x:"250",y:"13","font-weight":"600",fill:"black"}},[e._v("Money: $"+e._s(e.player.money))]):e._e(),e._l(e.player.powerPlants,(function(n,r){return t("Card",{key:"powerPlant_"+n.number,attrs:{targetState:{x:e.player.powerPlants.length<5?20+80*r:5+70*r,y:30},owner:e.owner,powerPlant:n,canClick:e.canUse(n)},on:{click:function(t){return e.powerPlantClick(n)}}})})),e.preferences.disableHelp?e._e():[e._l(e.player.powerPlants,(function(n,r){return[e.canUse(n)?t("rect",{key:r+"_"+r+"_helper",attrs:{x:e.player.powerPlants.length<5?20+80*r:5+70*r,y:30,width:"60",height:"40",fill:"none",stroke:"blue","stroke-width":"4px",rx:"2px"}}):e._e()]}))],e.canClickResources?t("g",[t("rect",{attrs:{width:"30",height:"30",x:"0",y:"71",fill:"none",stroke:"blue","stroke-width":"2px",rx:"2px"}}),t("rect",{attrs:{width:"30",height:"30",x:"70",y:"71",fill:"none",stroke:"blue","stroke-width":"2px",rx:"2px"}})]):e._e(),t("Coal",{attrs:{pieceId:"Coal"+e.player.id,targetState:{x:5,y:76},canClick:e.canClickResources},on:{click:function(n){return e.clickResource("coal")}}}),t("text",{attrs:{"text-anchor":"middle",x:"40",y:"85",fill:"black"}},[e._v(e._s(e.player.coalLeft))]),t("Oil",{attrs:{pieceId:"Oil"+e.player.id,targetState:{x:75,y:76},canClick:e.canClickResources},on:{click:function(n){return e.clickResource("oil")}}}),t("text",{attrs:{"text-anchor":"middle",x:"110",y:"85",fill:"black"}},[e._v(e._s(e.player.oilLeft))]),t("Garbage",{attrs:{pieceId:"Garbage"+e.player.id,targetState:{x:145,y:76}}}),t("text",{attrs:{"text-anchor":"middle",x:"180",y:"85",fill:"black"}},[e._v(e._s(e.player.garbageLeft))]),t("Uranium",{attrs:{pieceId:"Uranium"+e.player.id,targetState:{x:215,y:76}}}),t("text",{attrs:{"text-anchor":"middle",x:"250",y:"85",fill:"black"}},[e._v(e._s(e.player.uraniumLeft))])],2)},vo=[],mo=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"color",void 0),i(P(e),"avatar",void 0),i(P(e),"player",void 0),i(P(e),"isCurrentPlayer",void 0),i(P(e),"owner",void 0),i(P(e),"ended",void 0),i(P(e),"isPlayer",void 0),i(P(e),"ranking",void 0),i(P(e),"showMoney",void 0),i(P(e),"showBid",void 0),i(P(e),"phase",void 0),i(P(e),"preferences",void 0),i(P(e),"powerPlantClicked",void 0),e}return k(t,[{key:"getPlayerName",value:function(){var e="";if(this.isCurrentPlayer&&(e+="• "),e+=this.player.name,this.ended)switch(this.ranking){case 1:e+=" (1st)";break;case 2:e+=" (2nd)";break;case 3:e+=" (3rd)";break;case 4:case 5:case 6:e+=" (".concat(this.ranking,"th)");break}else this.player.skipAuction?e+=" (Skipping)":this.player.passed?e+=" (Passed)":this.player.bid&&!this.isCurrentPlayer&&this.showBid&&(e+=" (Bid: $"+this.player.bid+")");return e}},{key:"canUse",value:function(e){var n,t;if(!this.isCurrentPlayer)return!1;if(null!==(n=this.player.availableMoves)&&void 0!==n&&n[ye.DiscardPowerPlant])return e.number!==this.player.powerPlants[this.player.powerPlants.length-1].number;if(null===(t=this.player.availableMoves)||void 0===t||!t[ye.UsePowerPlant])return!1;if(!this.player.powerPlantsNotUsed.includes(e.number)||this.player.resourcesUsed.length>0)return!1;switch(e.type){case he.Coal:return this.player.coalLeft>=e.cost;case he.Oil:return this.player.oilLeft>=e.cost;case he.Garbage:return this.player.garbageLeft>=e.cost;case he.Uranium:return this.player.uraniumLeft>=e.cost;case he.Hybrid:return this.player.coalLeft+this.player.oilLeft>=e.cost;case he.Wind:case he.Nuclear:return this.player.coalLeft+this.player.oilLeft>=e.cost}}},{key:"powerPlantClick",value:function(e){this.phase==ge.Bureaucracy&&e.type==he.Hybrid?0==this.player.coalLeft||0==this.player.oilLeft||this.player.coalLeft+this.player.oilLeft==e.cost?(this.player.resourcesUsed=Array(Math.min(e.cost,this.player.coalLeft)).fill(pe.Coal).concat(Array(e.cost-Math.min(e.cost,this.player.coalLeft)).fill(pe.Oil)),this.$emit("powerPlantClick",e)):(this.powerPlantClicked=e,this.player.resourcesUsed=Array(e.cost).fill(null)):this.$emit("powerPlantClick",e)}},{key:"canClickResources",get:function(){return this.player.availableMoves&&this.player.availableMoves["DiscardResources"]||this.player.resourcesUsed.some((function(e){return null==e}))}},{key:"clickResource",value:function(e){if(this.player.availableMoves&&this.player.availableMoves["DiscardResources"])this.$emit("discardResource",e);else if(this.player.resourcesUsed.some((function(e){return null==e}))){var n=this.player.resourcesUsed.findIndex((function(e){return null==e}));this.player.resourcesUsed[n]=e,"coal"==e?this.player.coalLeft--:"oil"==e&&this.player.oilLeft--,this.player.resourcesUsed.some((function(e){return null==e}))||this.$emit("powerPlantClick",this.powerPlantClicked)}}}]),t}(f.a);j([le()],mo.prototype,"color",void 0),j([le()],mo.prototype,"avatar",void 0),j([le()],mo.prototype,"player",void 0),j([le()],mo.prototype,"isCurrentPlayer",void 0),j([le()],mo.prototype,"owner",void 0),j([le()],mo.prototype,"ended",void 0),j([le()],mo.prototype,"isPlayer",void 0),j([le()],mo.prototype,"ranking",void 0),j([le()],mo.prototype,"showMoney",void 0),j([le()],mo.prototype,"showBid",void 0),j([le()],mo.prototype,"phase",void 0),j([te()],mo.prototype,"preferences",void 0),mo=j([ee({components:{Coal:It,Oil:dr,Garbage:Ht,Uranium:br,Card:Ot}})],mo);var bo=mo,wo=bo,xo=St(wo,yo,vo,!1,null,null,null),_o=xo.exports,ko=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{staticClass:"calculator"},[t("rect",{attrs:{width:"125",height:"50",rx:"4"}}),t("rect",{attrs:{x:"10",y:"10",width:"30",height:"30",fill:"lime",rx:"2"}}),t("text",{staticClass:"visor",attrs:{x:"25",y:"25",fill:"black","text-anchor":"middle"}},[e._v(e._s(e.value))]),t("g",{style:e.value<e.maxValue?"cursor: pointer":"",on:{click:function(n){return e.add()}}},[t("rect",{attrs:{x:"48",y:"7",width:"24",height:"15",fill:"gray",stroke:"gray",rx:"2"}}),t("path",{attrs:{d:"M52,17 l8,-6 l8,6",fill:"none",stroke:"white","stroke-width":"3"}})]),t("g",{style:e.value>e.minValue?"cursor: pointer":"",on:{click:function(n){return e.sub()}}},[t("rect",{attrs:{x:"48",y:"28",width:"24",height:"15",fill:"gray",stroke:"gray",rx:"2"}}),t("path",{attrs:{d:"M52,32 l8,6 l8,-6",fill:"none",stroke:"white","stroke-width":"3"}})]),t("g",{staticStyle:{cursor:"pointer"},on:{click:function(n){return e.bid()}}},[t("rect",{staticClass:"button",attrs:{x:"80",y:"7",width:"36",height:"36",fill:"gray",rx:"2"}}),t("text",{attrs:{x:"97",y:"25",fill:"white","text-anchor":"middle"}},[e._v("OK")])])])},Po=[],So=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"minValue",void 0),i(P(e),"maxValue",void 0),i(P(e),"value",0),e}return k(t,[{key:"add",value:function(){this.value=Math.min(this.maxValue,this.value+1)}},{key:"sub",value:function(){this.value=Math.max(this.minValue,this.value-1)}},{key:"bid",value:function(){this.$emit("bid",this.value)}}]),t}(f.a);j([le()],So.prototype,"minValue",void 0),j([le()],So.prototype,"maxValue",void 0),So=j([ee({created:function(){this.value=this.minValue}})],So);var Co=So,Mo=Co,Bo=(t("85cf"),St(Mo,ko,Po,!1,null,null,null)),Ao=Bo.exports,Ro=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",[t("text",{attrs:{x:"10",y:"14","font-weight":"600",fill:"black"}},[e._v("Power Plant Deck:")]),e.cardsLeft>0?[e._l(e.cardsLeft,(function(e){return t("rect",{key:"card"+e,attrs:{x:35+e/5,y:38-e/10,width:"60",height:"40",fill:"gray",stroke:"black","stroke-width":"2",rx:"4"}})})),t("rect",{attrs:{x:35+e.cardsLeft/5,y:38-e.cardsLeft/10,width:"60",height:"40",fill:e.nextCardWeak?"gray":"lightgray",stroke:"black","stroke-width":"2",rx:"4"}},[t("title",[e._v(e._s(e.cardsLeft)+" cards left"+e._s(e.nextCardWeak?", next is an initial plant":""))])])]:e._e(),t("text",{attrs:{x:"165",y:"14","font-weight":"600",fill:"black"}},[e._v("Actual Market:")]),e._l(e.actualMarketCards,(function(n,r){return[t("Card",{key:n.id,attrs:{targetState:{x:n.x,y:n.y},powerPlant:n.powerPlant,canClick:e.chooseablePowerPlants&&e.chooseablePowerPlants.includes(n.powerPlant.number),hasDiscount:e.plantDiscountActive&&0==r},on:{click:function(t){return e.choosePowerPlant(n.powerPlant)}}})]})),e.futureMarketCards.length>0?[t("text",{attrs:{x:"165",y:"80","font-weight":"600",fill:"black"}},[e._v("Future Market:")]),e._l(e.futureMarketCards,(function(e){return[t("Card",{key:e.id,attrs:{targetState:{x:e.x,y:e.y},powerPlant:e.powerPlant}})]}))]:e._e(),e.chosenPowerPlant?[t("text",{attrs:{x:e.actualMarketWidth,y:"14","font-weight":"600",fill:"black"}},[e._v("Current Auction:")]),t("Card",{key:e.chosenPowerPlant.id,attrs:{targetState:{x:e.chosenPowerPlant.x,y:e.chosenPowerPlant.y},powerPlant:e.chosenPowerPlant.powerPlant}}),e.canBid?t("Calculator",{attrs:{transform:"translate("+e.actualMarketWidth+", 80)",minValue:e.minBid,maxValue:e.maxBid},on:{bid:function(n){return e.bid(n)}}}):e._e()]:e._e(),e.preferences.disableHelp?e._e():[e.canChoose?t("g",[e.futureMarketCards.length>0?t("rect",{attrs:{x:"160",y:"5",width:65*e.actualMarketCards.length+5,height:"65",fill:"none",stroke:"blue","stroke-width":"2px",rx:"2px"}}):t("rect",{attrs:{x:"160",y:"5",width:"200",height:"120",fill:"none",stroke:"blue","stroke-width":"2px",rx:"2px"}})]):e._e()]],2)},Lo=[],Oo=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"cardsLeft",void 0),i(P(e),"nextCardWeak",void 0),i(P(e),"plantDiscountActive",void 0),i(P(e),"canBid",void 0),i(P(e),"canChoose",void 0),i(P(e),"chooseablePowerPlants",void 0),i(P(e),"minBid",void 0),i(P(e),"maxBid",void 0),i(P(e),"preferences",void 0),i(P(e),"actualMarketCards",[]),i(P(e),"futureMarketCards",[]),i(P(e),"chosenPowerPlant",null),i(P(e),"actualMarketWidth",430),e}return k(t,[{key:"createPieces",value:function(e){var n,t=this;this.actualMarketWidth=null!==(n=e.map.actualMarketWidth)&&void 0!==n?n:430,this.actualMarketCards=[],e.actualMarket.forEach((function(n,r){var o,a;e.futureMarket.length>0?n.number!=(null===(o=e.chosenPowerPlant)||void 0===o?void 0:o.number)&&t.actualMarketCards.push({id:"actual_"+r,x:165+65*r,y:24,powerPlant:n}):n.number!=(null===(a=e.chosenPowerPlant)||void 0===a?void 0:a.number)&&t.actualMarketCards.push({id:"actual_"+r,x:165+r%3*65,y:r<3?24:80,powerPlant:n})})),this.futureMarketCards=[],e.futureMarket.forEach((function(n,r){var o;n.number!=(null===(o=e.chosenPowerPlant)||void 0===o?void 0:o.number)&&t.futureMarketCards.push({id:"future_"+r,x:165+65*r,y:90,powerPlant:n})})),e.chosenPowerPlant?this.chosenPowerPlant={id:"chosen",x:this.actualMarketWidth+30,y:30,powerPlant:e.chosenPowerPlant}:this.chosenPowerPlant=null}},{key:"choosePowerPlant",value:function(e){this.$emit("choosePowerPlant",e)}},{key:"bid",value:function(e){this.$emit("bid",e)}}]),t}(f.a);j([le()],Oo.prototype,"cardsLeft",void 0),j([le()],Oo.prototype,"nextCardWeak",void 0),j([le()],Oo.prototype,"plantDiscountActive",void 0),j([le()],Oo.prototype,"canBid",void 0),j([le()],Oo.prototype,"canChoose",void 0),j([le()],Oo.prototype,"chooseablePowerPlants",void 0),j([le()],Oo.prototype,"minBid",void 0),j([le()],Oo.prototype,"maxBid",void 0),j([te()],Oo.prototype,"preferences",void 0),Oo=j([ee({components:{Card:Ot,Calculator:Ao}})],Oo);var jo=Oo,zo=jo,Do=St(zo,Ro,Lo,!1,null,null,null),Eo=Do.exports,Go=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",[t("rect",{attrs:{x:"10",y:"10",width:"185",height:"40",rx:"3",fill:"goldenrod"}}),e._l(6,(function(n){return[t("rect",{key:"playerOrder"+n,attrs:{x:15+30*(n-1),y:"15",width:"24",height:"30",rx:"2",fill:"darkgoldenrod"}}),t("text",{key:"playerOrderText"+n,staticStyle:{"font-size":"32px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:27+30*(n-1),y:"30",fill:"gold"}},[e._v(" "+e._s(n)+" ")])]})),e._l(e.houses,(function(e){return[t("House",{key:e.id,attrs:{pieceId:e.id,targetState:{x:e.x,y:e.y},owner:e.owner,ownerName:e.ownerName,color:e.color}})]}))],2)},To=[],Io=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"playerColors",void 0),i(P(e),"houses",[]),e}return k(t,[{key:"createPieces",value:function(e){var n=this;this.houses=[],e.playerOrder.forEach((function(t,r){n.houses.push({id:t+"_order",x:20+30*r,y:22,color:n.playerColors[t],owner:t,ownerName:e.players[t].name})}))}}]),t}(f.a);j([le()],Io.prototype,"playerColors",void 0),Io=j([ee({components:{House:Qt}})],Io);var No=Io,Uo=No,Ko=St(Uo,Go,To,!1,null,null,null),Fo=Ko.exports,Vo=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",[t("rect",{attrs:{width:"730",height:"50",x:"10",y:"10",rx:"3",fill:"goldenrod"}}),e._l(21,(function(n){return[t("rect",{key:"playerCityCount"+n,attrs:{width:"28",height:"38",x:46+33*(n-1),y:"16",rx:"2",fill:"darkgoldenrod",stroke:n==e.citiesToStep2||n==e.citiesToEndGame?"#916a08":"darkgoldenrod","stroke-width":"2px"}}),t("text",{key:"playerCityCountText"+n,staticStyle:{"font-size":"24px","font-family":"monospace"},attrs:{"text-anchor":"middle","letter-spacing":"-2",x:59+33*(n-1),y:"35",fill:"gold"}},[e._v(" "+e._s(n)+" ")])]})),e._l(e.houses,(function(e){return[t("House",{key:e.id,attrs:{pieceId:e.id,targetState:{x:e.x,y:e.y},owner:e.owner,ownerName:e.ownerName,color:e.color}})]}))],2)},Wo=[],Ho=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"citiesToStep2",void 0),i(P(e),"citiesToEndGame",void 0),i(P(e),"playerColors",void 0),i(P(e),"houses",[]),e}return k(t,[{key:"createPieces",value:function(e){var n=this;this.houses=[];for(var t=[],r=0;r<22;r++)t[r]=[];e.players.forEach((function(e,n){return t[e.cities.length].push(n)})),e.players.forEach((function(e,r){var o=(1==t[e.cities.length].length?23:20)+33*e.cities.length;o+=t[e.cities.length].indexOf(r)%2*6,n.houses.push({id:r+"_cityCount",x:o,y:15+30*t[e.cities.length].indexOf(r)/t[e.cities.length].length,color:n.playerColors[r],owner:r})}))}}]),t}(f.a);j([le()],Ho.prototype,"citiesToStep2",void 0),j([le()],Ho.prototype,"citiesToEndGame",void 0),j([le()],Ho.prototype,"playerColors",void 0),Ho=j([ee({components:{House:Qt}})],Ho);var Yo=Ho,$o=Yo,qo=St($o,Vo,Wo,!1,null,null,null),Zo=qo.exports,Jo=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",[e._l(e.cities,(function(n){return[t("circle",{key:n.name+"_region",attrs:{r:"25",cx:n.x,cy:n.y,fill:n.region,stroke:"black"}},[t("title",[e._v(e._s(n.name))])]),t("circle",{key:n.name+"_circle",attrs:{r:"20",cx:n.x,cy:n.y,fill:"gray",stroke:"black"}},[t("title",[e._v(e._s(n.name))])])]})),e._l(e.connections,(function(n){return[t("line",{key:n.nodes[0]+"_"+n.nodes[1]+"_line1",attrs:{x1:e.getX1(n),y1:e.getY1(n),x2:e.getX2(n),y2:e.getY2(n),"stroke-width":"10",stroke:"black"}}),t("line",{key:n.nodes[0]+"_"+n.nodes[1]+"_line2",attrs:{x1:e.getX1(n),y1:e.getY1(n),x2:e.getX2(n),y2:e.getY2(n),"stroke-width":"9",stroke:"gray"}})]})),e._l(e.cities,(function(n){return[t("circle",{key:n.name+"_circle2",class:[{canClick:e.canBuild(n)}],attrs:{r:"20",cx:n.x,cy:n.y,fill:"gray"},on:{click:function(t){e.canBuild(n)&&e.build(n)}}},[t("title",[e._v(e._s(n.name))])])]})),e._l(e.connections,(function(n){return[n.cost>0?t("circle",{key:n.nodes[0]+"_"+n.nodes[1]+"_border",attrs:{stroke:"black",r:10+10*n.cost/28,cx:(e.getX1(n)+e.getX2(n))/2,cy:(e.getY1(n)+e.getY2(n))/2,fill:n.cost>15?"gold":n.cost>10?"lightgray":"tan"}}):e._e(),n.cost>0?t("circle",{key:n.nodes[0]+"_"+n.nodes[1]+"_circle",attrs:{r:6+10*n.cost/28,cx:(e.getX1(n)+e.getX2(n))/2,cy:(e.getY1(n)+e.getY2(n))/2,fill:"gray",stroke:"black"}}):e._e(),n.cost>0?t("text",{key:n.nodes[0]+"_"+n.nodes[1]+"_text",style:"font-size: "+(12+6*n.cost/28)+"px",attrs:{"text-anchor":"middle",fill:"black",x:(e.getX1(n)+e.getX2(n))/2,y:(e.getY1(n)+e.getY2(n))/2}},[e._v(" "+e._s(n.cost)+" ")]):e._e()]})),e._l(e.houses,(function(e){return[t("House",{key:e.id,attrs:{pieceId:e.id,targetState:{x:e.x,y:e.y},owner:e.owner,ownerName:e.ownerName,color:e.color}})]})),e.preferences.disableHelp?e._e():[e._l(e.cities,(function(n){return[e.canBuild(n)?t("circle",{key:n.name+"_circleHelp",class:[{canClick:e.canBuild(n)}],attrs:{r:"18",cx:n.x,cy:n.y,fill:"none",stroke:"blue","stroke-width":"4px"}}):e._e()]}))]],2)},Xo=[],Qo=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"polygons",void 0),i(P(e),"cities",void 0),i(P(e),"connections",void 0),i(P(e),"playerColors",void 0),i(P(e),"buildableCities",void 0),i(P(e),"preferences",void 0),i(P(e),"houses",[]),e}return k(t,[{key:"createPieces",value:function(e){var n=this;this.houses=[],e.players.forEach((function(t,r){t.cities.forEach((function(t){var o,a,i=e.map.cities.find((function(e){return e.name==t.name}));0==t.position?(o=-6,a=-18):1==t.position?(o=-15,a=-4):(o=1,a=-4),n.houses.push({id:r+"_"+t.name,x:i.x+o,y:i.y+a,color:n.playerColors[r],owner:r})}))}))}},{key:"getX1",value:function(e){var n=this.cities.find((function(n){return n.name==e.nodes[0]}));return n.x}},{key:"getY1",value:function(e){var n=this.cities.find((function(n){return n.name==e.nodes[0]}));return n.y}},{key:"getX2",value:function(e){var n=this.cities.find((function(n){return n.name==e.nodes[1]}));return n.x}},{key:"getY2",value:function(e){var n=this.cities.find((function(n){return n.name==e.nodes[1]}));return n.y}},{key:"canBuild",value:function(e){return!!this.buildableCities.find((function(n){return n==e.name}))}},{key:"build",value:function(e){this.$emit("build",e)}}]),t}(f.a);j([le()],Qo.prototype,"polygons",void 0),j([le()],Qo.prototype,"cities",void 0),j([le()],Qo.prototype,"connections",void 0),j([le()],Qo.prototype,"playerColors",void 0),j([le()],Qo.prototype,"buildableCities",void 0),j([te()],Qo.prototype,"preferences",void 0),Qo=j([ee({components:{House:Qt}})],Qo);var ea=Qo,na=ea,ta=St(na,Jo,Xo,!1,null,null,null),ra=ta.exports,oa=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",[e.resourceResupply[0]<10?t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"30",y:"20","font-weight":"600",fill:"black"}},[e._v("Resource Resupply:")]):t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"20",y:"20","font-weight":"600",fill:"black"}},[e._v("Resource Resupply:")]),e.resourceResupply[0]<10?t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"276",y:"20","font-weight":"600",fill:"black"}},[e._v(" "+e._s(e.resourceResupply[0])+" ")]):t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"262",y:"20","font-weight":"600",fill:"black"}},[e._v(" "+e._s(e.resourceResupply[0])+" ")]),t("Coal",{attrs:{pieceId:-1,targetState:{x:288,y:12},canClick:!1,transparent:!1}}),t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"321",y:"20","font-weight":"600",fill:"black"}},[e._v(" "+e._s(e.resourceResupply[1])+" ")]),t("Oil",{attrs:{pieceId:-1,targetState:{x:331,y:11},canClick:!1,transparent:!1}}),t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"368",y:"20","font-weight":"600",fill:"black"}},[e._v(" "+e._s(e.resourceResupply[2])+" ")]),t("Garbage",{attrs:{pieceId:-1,targetState:{x:382,y:11},canClick:!1,transparent:!1}}),t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"414",y:"20","font-weight":"600",fill:"black"}},[e._v(" "+e._s(e.resourceResupply[3])+" ")]),t("Uranium",{attrs:{pieceId:-1,targetState:{x:428,y:12},canClick:!1,transparent:!1}}),e.isIndiaResourceMarket?e._e():t("rect",{attrs:{width:"760",height:"80",x:"20",y:"40",rx:"3",fill:"goldenrod"}}),e.isIndiaResourceMarket?t("rect",{attrs:{width:"680",height:"80",x:"20",y:"40",rx:"3",fill:"goldenrod"}}):e._e(),e._l(8,(function(n){return[t("rect",{key:"resources"+n,attrs:{width:"70",height:"70",x:25+85*(n-1),y:"45",rx:"2",fill:"darkgoldenrod"}}),t("circle",{key:"resourcesCircle"+n,attrs:{r:"10",cx:92+85*(n-1),cy:"48",fill:"yellow"}}),t("text",{key:"resourcesText"+n,staticStyle:{"font-size":"16px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:92+85*(n-1),y:"48",fill:"darkgoldenrod"}},[e._v(" "+e._s(n)+" ")]),e.isIndiaResourceMarket?e._e():t("g",{key:"lines"+n},[t("line",{attrs:{x1:25+85*(n-1),y1:"68",x2:95+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:25+85*(n-1),y1:"92",x2:95+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:48+85*(n-1),y1:"40",x2:48+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:72+85*(n-1),y1:"40",x2:72+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:42+85*(n-1),y1:"68",x2:42+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:58+85*(n-1),y1:"68",x2:58+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:74+85*(n-1),y1:"68",x2:74+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:48+85*(n-1),y1:"92",x2:48+85*(n-1),y2:"120",stroke:"goldenrod"}}),t("line",{attrs:{x1:72+85*(n-1),y1:"92",x2:72+85*(n-1),y2:"120",stroke:"goldenrod"}})]),e.isIndiaResourceMarket?t("g",{key:"lines"+n},[t("line",{attrs:{x1:25+85*(n-1),y1:"68",x2:95+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:25+85*(n-1),y1:"92",x2:95+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:42+85*(n-1),y1:"40",x2:42+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:59+85*(n-1),y1:"40",x2:59+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:76+85*(n-1),y1:"40",x2:76+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:42+85*(n-1),y1:"68",x2:42+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:58+85*(n-1),y1:"68",x2:58+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:74+85*(n-1),y1:"68",x2:74+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:42+85*(n-1),y1:"92",x2:42+85*(n-1),y2:"120",stroke:"goldenrod"}}),t("line",{attrs:{x1:59+85*(n-1),y1:"92",x2:59+85*(n-1),y2:"120",stroke:"goldenrod"}}),t("line",{attrs:{x1:76+85*(n-1),y1:"92",x2:76+85*(n-1),y2:"120",stroke:"goldenrod"}})]):e._e()]})),e.isIndiaResourceMarket?[t("g",{key:"separators"},[t("line",{attrs:{x1:"275",y1:"40",x2:"275",y2:"140",stroke:"red"}}),t("line",{attrs:{x1:"445",y1:"40",x2:"445",y2:"140",stroke:"red"}}),t("text",{attrs:{x:"220",y:"130",stroke:"red"}},[e._v("Step 1")]),t("text",{attrs:{x:"390",y:"130",stroke:"red"}},[e._v("Step 2")])])]:e._e(),e.isIndiaResourceMarket?e._e():[t("rect",{attrs:{width:"30",height:"30",x:"705",y:"45",rx:"2",fill:"darkgoldenrod"}}),t("circle",{attrs:{r:"10",cx:"732",cy:"48",fill:"yellow"}}),t("text",{staticStyle:{"font-size":"12px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:"732",y:"48",fill:"darkgoldenrod"}},[e._v(" 10 ")]),t("rect",{attrs:{width:"30",height:"30",x:"745",y:"45",rx:"2",fill:"darkgoldenrod"}}),t("circle",{attrs:{r:"10",cx:"772",cy:"48",fill:"yellow"}}),t("text",{staticStyle:{"font-size":"12px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:"772",y:"48",fill:"darkgoldenrod"}},[e._v(" 12 ")]),t("rect",{attrs:{width:"30",height:"30",x:"705",y:"85",rx:"2",fill:"darkgoldenrod"}}),t("circle",{attrs:{r:"10",cx:"732",cy:"88",fill:"yellow"}}),t("text",{staticStyle:{"font-size":"12px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:"732",y:"88",fill:"darkgoldenrod"}},[e._v(" 14 ")]),t("rect",{attrs:{width:"30",height:"30",x:"745",y:"85",rx:"2",fill:"darkgoldenrod"}}),t("circle",{attrs:{r:"10",cx:"772",cy:"88",fill:"yellow"}}),t("text",{staticStyle:{"font-size":"12px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:"772",y:"88",fill:"darkgoldenrod"}},[e._v(" 16 ")])],e.isUsaRecharged?[t("rect",{attrs:{width:"180",height:"70",x:"795",y:"45",rx:"2",fill:"chocolate",stroke:"sandybrown","stroke-width":"4px"}}),t("circle",{attrs:{r:"10",cx:"973",cy:"45",fill:"yellow"}}),t("text",{staticStyle:{"font-size":"16px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:"973",y:"45",fill:"darkgoldenrod"}},[e._v(" 8 ")]),t("Coal",{attrs:{pieceId:-1,targetState:{x:858,y:57},canClick:!1,transparent:!0,scale:.2}})]:e._e(),e._l(e.coals,(function(n){return[t("Coal",{key:n.id,attrs:{pieceId:n.id,targetState:{x:n.x,y:n.y},canClick:!n.transparent&&e.canBuyResource("coal"),transparent:n.transparent,scale:e.isIndiaResourceMarket?.06:.08},on:{click:function(n){return e.buyResource("coal")}}})]})),e._l(e.oils,(function(n){return[t("Oil",{key:n.id,attrs:{pieceId:n.id,targetState:{x:n.x,y:n.y},canClick:!n.transparent&&e.canBuyResource("oil"),transparent:n.transparent},on:{click:function(n){return e.buyResource("oil")}}})]})),e._l(e.garbages,(function(n){return[t("Garbage",{key:n.id,attrs:{pieceId:n.id,targetState:{x:n.x,y:n.y},canClick:!n.transparent&&e.canBuyResource("garbage"),transparent:n.transparent,scale:e.isIndiaResourceMarket?.8:1},on:{click:function(n){return e.buyResource("garbage")}}})]})),e._l(e.uraniums,(function(n){return[t("Uranium",{key:n.id,attrs:{pieceId:n.id,targetState:{x:n.x,y:n.y},canClick:!n.transparent&&e.canBuyResource("uranium"),transparent:n.transparent},on:{click:function(n){return e.buyResource("uranium")}}})]})),e.isMiddleEast?[t("rect",{attrs:{width:"80",height:"50",x:"20",y:"70",rx:"2",fill:"gray",stroke:"darkgray","stroke-width":"4px"}}),t("Oil",{attrs:{pieceId:-1,targetState:{x:35,y:80},scale:1.5,canClick:e.availableSurplusOil>0&&e.canBuyResource("oil"),transparent:0==e.availableSurplusOil},on:{click:function(n){return e.buyResource("oil")}}}),t("text",{staticStyle:{"font-size":"16px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:"70",y:"93.5"}},[e._v(" x"+e._s(e.availableSurplusOil)+" ")])]:e._e(),e.preferences.disableHelp?e._e():[e.buyableResources.length>0?t("rect",{attrs:{x:"15",y:"35",width:"770",height:"90",rx:"2",fill:"none",stroke:"blue","stroke-width":"2px"}}):e._e()]],2)},aa=[],ia=t("bcba"),sa=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"resourceResupply",void 0),i(P(e),"isUsaRecharged",void 0),i(P(e),"isMiddleEast",void 0),i(P(e),"isIndiaResourceMarket",void 0),i(P(e),"availableSurplusOil",void 0),i(P(e),"buyableResources",void 0),i(P(e),"preferences",void 0),i(P(e),"coals",[]),i(P(e),"oils",[]),i(P(e),"garbages",[]),i(P(e),"uraniums",[]),e}return k(t,[{key:"createPieces",value:function(e){var n=this;if(e){var t,r,o,a,i;if(this.coals=[],"India"==(null===(t=e.map)||void 0===t?void 0:t.name)?Array(24).fill(0).forEach((function(t,r){var o=r;r>=0&&(o+=2),r>=2&&(o+=2),r>=4&&o++,r>=7&&o++,r>=10&&o++,r>=13&&o++,n.coals.push({id:"coal_"+r,x:672-17*o-17*Math.floor(o/4),y:48,transparent:r>=e.coalMarket})})):Array(24).fill(0).forEach((function(t,r){n.coals.push({id:"coal_"+r,x:668-23.5*r-14.5*Math.floor(r/3),y:48,transparent:r>=e.coalMarket})})),"recharged"==e.options.variant&&"USA"==(null===(r=e.map)||void 0===r?void 0:r.name)&&Object(ia["range"])(e.coalSupply).forEach((function(e){n.coals.push({id:"coal_supply_"+e,x:800+e%8*20+(e>=8&&e<16?10:0),y:50+20*Math.floor(e/8),transparent:!1})})),this.oils=[],"Middle East"==(null===(o=e.map)||void 0===o?void 0:o.name)){var s=e.oilPrices.filter((function(e){return e>1})).length,u=e.oilPrices.filter((function(e){return 1==e})).length,c=Math.min(s,e.oilMarket);Array(s).fill(0).forEach((function(e,t){var r=t+(u-3);n.oils.push({id:"normal_oil_"+r,x:651-16*r-37*Math.floor(r/3),y:70,transparent:t>=c})}))}else Array(24).fill(0).forEach((function(t,r){n.oils.push({id:"oil_"+r,x:651-16*r-37*Math.floor(r/3),y:70,transparent:r>=e.oilMarket})}));this.garbages=[],"India"==(null===(a=e.map)||void 0===a?void 0:a.name)?Array(24).fill(0).forEach((function(t,r){var o=r+8;n.garbages.push({id:"garbage_"+r,x:672-17*o-17*Math.floor(o/4),y:94,transparent:r>=e.garbageMarket})})):Array(24).fill(0).forEach((function(t,r){n.garbages.push({id:"garbage_"+r,x:668-23.5*r-14.5*Math.floor(r/3),y:94,transparent:r>=e.garbageMarket})})),this.uraniums=[],"India"==(null===(i=e.map)||void 0===i?void 0:i.name)?Array(8).fill(0).forEach((function(t,r){n.uraniums.push({id:"uranium_"+r,x:670-85*r,y:72,transparent:r>=e.uraniumMarket})})):Array(12).fill(0).forEach((function(t,r){0==r?n.uraniums.push({id:"uranium_"+r,x:750,y:91,transparent:r>=e.uraniumMarket}):1==r?n.uraniums.push({id:"uranium_"+r,x:710,y:91,transparent:r>=e.uraniumMarket}):2==r?n.uraniums.push({id:"uranium_"+r,x:750,y:52,transparent:r>=e.uraniumMarket}):3==r?n.uraniums.push({id:"uranium_"+r,x:710,y:52,transparent:r>=e.uraniumMarket}):n.uraniums.push({id:"uranium_"+r,x:1010-85*r,y:72,transparent:r>=e.uraniumMarket})}))}}},{key:"canBuyResource",value:function(e){return!!this.buyableResources.find((function(n){return n==e}))}},{key:"buyResource",value:function(e){this.$emit("buyResource",e)}}]),t}(f.a);j([le()],sa.prototype,"resourceResupply",void 0),j([le()],sa.prototype,"isUsaRecharged",void 0),j([le()],sa.prototype,"isMiddleEast",void 0),j([le()],sa.prototype,"isIndiaResourceMarket",void 0),j([le()],sa.prototype,"availableSurplusOil",void 0),j([le()],sa.prototype,"buyableResources",void 0),j([te()],sa.prototype,"preferences",void 0),sa=j([ee({components:{Coal:It,Oil:dr,Garbage:Ht,Uranium:br}})],sa);var ua=sa,ca=ua,la=St(ca,oa,aa,!1,null,null,null),fa=la.exports,da=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"state",void 0),i(P(e),"player",void 0),i(P(e),"emitter",void 0),i(P(e),"avatars",void 0),i(P(e),"preferences",void 0),i(P(e),"ui",{waitingAnimations:0}),i(P(e),"paused",!1),i(P(e),"communicator",new c["EventEmitter"]),i(P(e),"G",null),i(P(e),"_futureState",void 0),i(P(e),"playerColors",["limegreen","mediumorchid","red","dodgerblue","yellow","brown"]),i(P(e),"animationQueue",[]),i(P(e),"logVisible",!1),i(P(e),"endScoreVisible",!1),i(P(e),"spendingVisible",!1),i(P(e),"rulesVisible",!1),i(P(e),"totalBid",0),i(P(e),"confirmMessage",""),i(P(e),"confirmVisible",!1),i(P(e),"discardedPowerPlant",null),i(P(e),"discardVisible",!1),i(P(e),"resourcesToDiscard",[]),i(P(e),"disablePass",!1),i(P(e),"powerPlantMarket",void 0),i(P(e),"playerOrder",void 0),i(P(e),"cityCount",void 0),i(P(e),"map",void 0),i(P(e),"resources",void 0),e}return k(t,[{key:"onStateChanged",value:function(e){this.replaceState(e)}},{key:"replaceState",value:function(e){var n,t,r,o=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(a&&(this._futureState=e),null!=this.player&&this.G&&this.G.players&&this.G.players[this.player].resourcesUsed.some((function(e){return null==e}))&&(r={coalLeft:this.G.players[this.player].coalLeft,oilLeft:this.G.players[this.player].oilLeft,resourcesUsed:this.G.players[this.player].resourcesUsed}),this.G=JSON.parse(JSON.stringify(e)),r&&Object.assign(this.G.players[this.player],r),this.G&&this.$nextTick((function(){o.powerPlantMarket.createPieces(o.G),o.playerOrder.createPieces(o.G),o.cityCount.createPieces(o.G),o.map.createPieces(o.G),o.resources.createPieces(o.G)})),this.preferences.sound&&"move"==(null===(n=this.G)||void 0===n?void 0:n.log[(null===(t=this.G)||void 0===t?void 0:t.log.length)-1].type)){var i,s,u=null===(i=this.G)||void 0===i?void 0:i.log[(null===(s=this.G)||void 0===s?void 0:s.log.length)-1].move;u.name==ye.Pass&&this.G.currentPlayers.includes(this.player)?document.getElementById("notification").cloneNode(!0).play():u.name==ye.Build&&setTimeout((function(){document.getElementById("piece-drop").cloneNode(!0).play()}),800)}}},{key:"updateUI",value:function(){var e=this;if(!(this.ui.waitingAnimations>0))return this.animationQueue.length>0?(this.animationQueue.shift()(),void setTimeout((function(){return e.updateUI()}))):void 0}},{key:"checkPass",value:function(){if(this.G&&null!=this.player&&!this.G.chosenPowerPlant){var e=this.G.players[this.player];if(e&&e.availableMoves&&Object.keys(e.availableMoves).length>1){if(this.G.phase==ge.Bureaucracy&&e.powerPlantsNotUsed.length>0&&Object.keys(e.availableMoves).includes("UsePowerPlant"))return this.confirmMessage="Are you sure you want to pass? You have unused power plants!",void(this.confirmVisible=!0);if(this.G.phase==ge.Resources&&!this.canPowerAllPlants(e))return this.confirmMessage="Are you sure you want to skip buying resources without enough to power all your plants?",void(this.confirmVisible=!0);if(this.G.phase!=ge.Bureaucracy||e.powerPlantsNotUsed.length==e.powerPlants.length){var n=this.G.log[this.G.log.length-1];if(n.player!=this.player||n.move.name==ye.Pass){switch(this.G.phase){case ge.Auction:this.confirmMessage="Are you sure you want to skip auctions?";break;case ge.Resources:this.confirmMessage="Are you sure you want to skip buying resources?";break;case ge.Building:this.confirmMessage="Are you sure you want to skip building?";break;case ge.Bureaucracy:this.confirmMessage="Are you sure you want to pass? You didn't use any power plant!";break;default:this.confirmMessage="Are you sure you want to pass?"}return void(this.confirmVisible=!0)}}}}this.pass()}},{key:"confirmPass",value:function(){this.confirmVisible=!1,this.pass()}},{key:"pass",value:function(){this.sendMove({name:ye.Pass,data:!0})}},{key:"undo",value:function(){this.sendMove({name:ye.Undo,data:this.preferences.undoWholeTurn})}},{key:"choosePowerPlant",value:function(e){var n=this.G.players[this.player],t=n.availableMoves;t.ChoosePowerPlant&&t.ChoosePowerPlant.includes(e.number)&&this.sendMove({name:ye.ChoosePowerPlant,data:e.number})}},{key:"buyResource",value:function(e){this.sendMove({name:ye.BuyResource,data:{resource:e}})}},{key:"bid",value:function(e){this.sendMove({name:ye.Bid,data:e})}},{key:"build",value:function(e){var n=this.G.players[this.player],t=n.availableMoves,r=t[ye.Build].find((function(n){return n.name==e.name}));this.sendMove({name:ye.Build,data:{name:e.name,price:r.price}})}},{key:"confirmDiscard",value:function(){var e=this.resourcesToDiscard.map((function(e){return parseInt(e.value)}));e.reduce((function(e,n){return e+n}),0)>0?this.sendMove({name:ye.DiscardPowerPlant,data:this.discardedPowerPlant.number,extra:e}):this.sendMove({name:ye.DiscardPowerPlant,data:this.discardedPowerPlant.number}),this.discardedPowerPlant=null,this.discardVisible=!1}},{key:"discardInvalid",value:function(){var e,n=this.G.players[this.player];switch(this.discardedPowerPlant.type){case he.Coal:return e=n.hybridCapacity-2*this.discardedPowerPlant.cost>0?Math.max(0,n.oilLeft-n.oilCapacity):0,n.coalCapacity+n.hybridCapacity-2*this.discardedPowerPlant.cost+parseInt(this.resourcesToDiscard[0].value)<n.coalLeft+e;case he.Oil:return e=n.hybridCapacity-2*this.discardedPowerPlant.cost>0?Math.max(0,n.coalLeft-n.coalCapacity):0,n.oilCapacity+n.hybridCapacity-2*this.discardedPowerPlant.cost+parseInt(this.resourcesToDiscard[0].value)<n.oilLeft+e;case he.Garbage:return n.garbageCapacity-2*this.discardedPowerPlant.cost-n.garbageLeft+parseInt(this.resourcesToDiscard[0].value)<0;case he.Uranium:return n.uraniumCapacity-2*this.discardedPowerPlant.cost-n.uraniumLeft+parseInt(this.resourcesToDiscard[0].value)<0;case he.Hybrid:var t=parseInt(this.resourcesToDiscard[0].value),r=parseInt(this.resourcesToDiscard[1].value),o=n.hybridCapacity-2*this.discardedPowerPlant.cost,a=Math.max(0,n.coalLeft-n.coalCapacity-t),i=Math.max(0,n.oilLeft-n.oilCapacity-r);return o<a+i}return!0}},{key:"powerPlantClick",value:function(e){var n,t,r=this;if((null===(n=this.G)||void 0===n?void 0:n.phase)==ge.Auction)if(e.type==he.Wind||e.type==he.Nuclear)this.sendMove({name:ye.DiscardPowerPlant,data:e.number});else{var o=this.G.players[this.player];switch(e.type){case he.Coal:if(o.powerPlants.filter((function(n){return n.type==e.type})).length+o.powerPlants.filter((function(e){return e.type==he.Hybrid})).length==1)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});if(0==o.coalLeft)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});this.resourcesToDiscard=[{name:"Coal",value:"0",max:o.coalLeft}];break;case he.Oil:if(o.powerPlants.filter((function(n){return n.type==e.type})).length+o.powerPlants.filter((function(e){return e.type==he.Hybrid})).length==1)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});if(0==o.oilLeft)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});this.resourcesToDiscard=[{name:"Oil",value:"0",max:o.oilLeft}];break;case he.Garbage:if(1==o.powerPlants.filter((function(n){return n.type==e.type})).length)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});if(0==o.garbageLeft)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});this.resourcesToDiscard=[{name:"Garbage",value:"0",max:o.garbageLeft}];break;case he.Uranium:if(1==o.powerPlants.filter((function(n){return n.type==e.type})).length)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});if(0==o.uraniumLeft)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});this.resourcesToDiscard=[{name:"Uranium",value:"0",max:o.uraniumLeft}];break;case he.Hybrid:if(o.powerPlants.filter((function(n){return n.type==e.type})).length+o.powerPlants.filter((function(e){return e.type==he.Coal})).length+o.powerPlants.filter((function(e){return e.type==he.Oil})).length==1)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});if(o.coalLeft+o.oilLeft==0)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});this.resourcesToDiscard=[{name:"Coal",value:"0",max:o.coalLeft},{name:"Oil",value:"0",max:o.oilLeft}];break}this.discardedPowerPlant=e,this.discardVisible=!0}else if((null===(t=this.G)||void 0===t?void 0:t.phase)==ge.Bureaucracy){var a=[];switch(e.type){case he.Coal:a=Array(e.cost).fill(pe.Coal);break;case he.Oil:a=Array(e.cost).fill(pe.Oil);break;case he.Garbage:a=Array(e.cost).fill(pe.Garbage);break;case he.Uranium:a=Array(e.cost).fill(pe.Uranium);break;case he.Hybrid:var i=this.G.players[this.player];a=i.resourcesUsed,a.sort(),i.resourcesUsed=[],i.powerPlantsNotUsed=i.powerPlantsNotUsed.filter((function(n){return n!=e.number}));break}this.sendMove({name:ye.UsePowerPlant,data:{powerPlant:e.number,resourcesSpent:a,citiesPowered:e.citiesPowered}}),this.disablePass=!0,setTimeout((function(){return r.disablePass=!1}),1e3)}}},{key:"discardResource",value:function(e){this.sendMove({name:ye.DiscardResources,data:e})}},{key:"sendMove",value:function(e){this.paused||this.emitter.emit("move",e)}},{key:"gameEnded",value:function(e){return Hn(e)}},{key:"canMove",value:function(){return void 0!=this.player&&this.G&&this.G.currentPlayers.includes(this.player)&&this.G.players[this.player]&&this.G.players[this.player].availableMoves}},{key:"canPass",value:function(){if(!this.canMove())return!1;if(this.disablePass)return!1;var e=this.G.players[this.player],n=e.availableMoves;return!!n[ye.Pass]}},{key:"canUndo",value:function(){if(!this.canMove())return!1;var e=this.G.players[this.player],n=e.availableMoves;return!!n[ye.Undo]}},{key:"canBid",value:function(){if(!this.canMove())return!1;var e=this.G.players[this.player],n=e.availableMoves;return!!n[ye.Bid]}},{key:"canChoose",value:function(){if(!this.canMove())return!1;var e=this.G.players[this.player],n=e.availableMoves;return!!n[ye.ChoosePowerPlant]}},{key:"buyableResources",value:function(){if(!this.canMove())return[];var e=this.G.players[this.player],n=e.availableMoves;return!!n[ye.BuyResource]&&n[ye.BuyResource].map((function(e){return e.resource}))||[]}},{key:"canBuyResource",value:function(e){if(!this.canMove())return!1;var n=this.G.players[this.player],t=n.availableMoves;return e?!!t[ye.BuyResource]&&t[ye.BuyResource].find((function(n){return n.resource==e})):!!t[ye.BuyResource]}},{key:"getChooseablePowerPlants",value:function(){if(!this.canMove())return[];var e=this.G.players[this.player],n=e.availableMoves;return n[ye.ChoosePowerPlant]}},{key:"getBuildableCities",value:function(){if(!this.canMove())return[];var e=this.G.players[this.player],n=e.availableMoves;return n[ye.Build]&&n[ye.Build].map((function(e){return e.name}))||[]}},{key:"canBuild",value:function(e){if(!this.canMove())return!1;var n=this.G.players[this.player],t=n.availableMoves;return!!t[ye.Build]&&t[ye.Build].find((function(n){return n.name==e.name}))}},{key:"canUsePowerPlant",value:function(e){var n,t;if(!this.canMove())return!1;var r=this.G.players[this.player],o=r.availableMoves;return!(r.resourcesUsed.length>0)&&((null===(n=this.G)||void 0===n?void 0:n.phase)==ge.Bureaucracy?!!o[ye.UsePowerPlant]&&o[ye.UsePowerPlant].find((function(n){return n.powerPlant==e.number})):(null===(t=this.G)||void 0===t?void 0:t.phase)==ge.Auction?!!o[ye.DiscardPowerPlant]&&o[ye.DiscardPowerPlant].find((function(n){return n==e.number})):void 0)}},{key:"canPowerAllPlants",value:function(e){var n,t=0,r=0,o=0,a=0,i=0,s=w(e.powerPlants);try{for(s.s();!(n=s.n()).done;){var u=n.value;switch(u.type){case he.Coal:t+=u.cost;break;case he.Oil:r+=u.cost;break;case he.Garbage:o+=u.cost;break;case he.Uranium:a+=u.cost;break;case he.Hybrid:i+=u.cost;break}}}catch(f){s.e(f)}finally{s.f()}if(t>e.coalLeft||r>e.oilLeft||o>e.garbageLeft||a>e.uraniumLeft)return!1;var c=e.coalLeft-t,l=e.oilLeft-r;return!(i>c+l)}},{key:"toggleSound",value:function(){var e=!this.preferences.sound;this.emitter.emit("update:preference",{name:"sound",value:e}),this.preferences.sound=e}},{key:"toggleHelp",value:function(){var e=!this.preferences.disableHelp;this.emitter.emit("update:preference",{name:"disableHelp",value:e}),this.preferences.disableHelp=e}},{key:"showLog",value:function(){this.logVisible=!0}},{key:"getStatusMessage",value:function(){var e;if(!this.G||1==this.G.log.length)return"Game Start!";if(this.G.currentPlayers==[])return"Game ended!";if(void 0!==this.player&&null!==(e=this.G)&&void 0!==e&&e.currentPlayers.includes(this.player)){var n=this.G.players[this.player];return n.availableMoves[ye.ChoosePowerPlant]?n.availableMoves[ye.Pass]?"Choose a Power Plant to start an auction, or pass.":"Choose a Power Plant to start an auction.":n.availableMoves[ye.Bid]?"It's your turn to bid!":n.availableMoves[ye.BuyResource]?"Buy resources on the market, or pass.":n.availableMoves[ye.Build]?"Build a new city, or pass.":n.availableMoves[ye.UsePowerPlant]?0!=n.resourcesUsed.length?"Choose which resources to spend.":"Choose which Power Plant to use.":n.availableMoves[ye.DiscardPowerPlant]?"Choose which Power Plant to discard.":n.availableMoves[ye.DiscardResources]?"Choose which resources to discard.":"It's your turn!"}var t=this.G.log[this.G.log.length-1];return"move"==t.type?t.simple:"event"==t.type?t.event:void 0}},{key:"isCurrentPlayer",value:function(e){return this.G&&this.G.currentPlayers.includes(e)}},{key:"logReversed",get:function(){var e=[];return this.G&&this.G.log&&(this.G.log.forEach((function(n){"event"==n.type?e.push(n.pretty||n.event):"move"==n.type&&e.push(n.pretty)})),e.reverse()),e}},{key:"logReversedSimple",get:function(){var e=[];return this.G&&this.G.log&&(this.G.log.forEach((function(n){"event"==n.type?e.push(n.event):"move"==n.type&&e.push(n.simple)})),e.reverse()),e}},{key:"onLogChanged",value:function(){this.emitter.emit("replaceLog",b(this.logReversedSimple).reverse())}},{key:"sortedPlayers",get:function(){return rt(this.G)}},{key:"adjustedPlayerOrder",get:function(){return this.G?this.preferences.adjustPlayerOrder?this.G.phase==ge.Auction?this.G.playerOrder:this.G.playerOrder.reverse():this.G.players.map((function(e,n){return n})):[]}},{key:"getResourceResupply",value:function(){if(this.G){var e=this.G.resourceResupply[this.G.step-1];return e=e.substr(1,e.length-2),e.split(",")}return[0,0,0,0]}}]),t}(f.a);j([le()],da.prototype,"state",void 0),j([le(),se()],da.prototype,"player",void 0),j([le()],da.prototype,"emitter",void 0),j([le()],da.prototype,"avatars",void 0),j([le(),se()],da.prototype,"preferences",void 0),j([ie()],da.prototype,"ui",void 0),j([ie()],da.prototype,"communicator",void 0),j([se()],da.prototype,"G",void 0),j([de()],da.prototype,"powerPlantMarket",void 0),j([de()],da.prototype,"playerOrder",void 0),j([de()],da.prototype,"cityCount",void 0),j([de()],da.prototype,"map",void 0),j([de()],da.prototype,"resources",void 0),j([fe("state",{immediate:!0})],da.prototype,"onStateChanged",null),j([fe("ui.waitingAnimations")],da.prototype,"updateUI",null),j([fe("G.log")],da.prototype,"onLogChanged",null),da=j([ee({created:function(){var e=this;this.emitter.on("replayStart",(function(){e.paused=!0,e.emitter.emit("replay:info",{start:1,current:e.G.log.filter((function(e){return"move"==e.type})).length,end:e._futureState.log.filter((function(e){return"move"==e.type})).length})})),this.emitter.on("replayTo",(function(n){var t=e._futureState.log.map((function(e,n){return u({index:n},e)})).filter((function(e){return"move"==e.type}));n=t[n-1].index,e.replaceState(Yn(e._futureState,n+1),!1),e.emitter.emit("replay:info",{start:1,current:e.G.log.filter((function(e){return"move"==e.type})).length+e.G.hiddenLog.length,end:e._futureState.log.filter((function(e){return"move"==e.type})).length})})),this.emitter.on("replayEnd",(function(){e.paused=!1,e.emitter.emit("fetchState")}))},components:{PlayerBoard:_o,Card:Ot,House:Qt,Coal:It,Oil:dr,Garbage:Ht,Uranium:br,PassButton:Yr,UndoButton:go,LogButton:Nr,SoundButton:eo,HelpButton:jr,RulesButton:so,Button:Cr,Calculator:Ao,PowerPlantMarket:Eo,PlayerOrder:Fo,CityCount:Zo,Map:ra,Resources:fa}})],da);var pa=da,ha=pa,ga=(t("bb9a"),St(ha,d,p,!1,null,null,null)),ya=ga.exports;function va(e){var n={state:null,emitter:new c["EventEmitter"],preferences:{sound:!0,disableHelp:!1,adjustPlayerOrder:!1,undoWholeTurn:!0,fitToScreen:!0},avatars:[]},t=new f.a({render:function(e){return e(ya,{props:n},[])}}).$mount(e),r=new c["EventEmitter"],o=!1;return n.emitter.on("move",(function(e){return r.emit("move",e)})),n.emitter.on("fetchState",(function(){return r.emit("fetchState")})),n.emitter.on("addLog",(function(e){return r.emit("addLog",e)})),n.emitter.on("replaceLog",(function(e){return r.emit("replaceLog",e)})),n.emitter.on("replay:info",(function(e){return r.emit("replay:info",e)})),n.emitter.on("update:preference",(function(e){return r.emit("update:preference",e)})),r.addListener("avatars",(function(e){n.avatars=e,t.$forceUpdate()})),r.addListener("state",(function(e){n.state=e,t.$forceUpdate(),t.$nextTick().then((function(){return r.emit("ready")}))})),r.addListener("state:updated",(function(){return r.emit("fetchState")})),r.addListener("player",(function(e){n.player=e.index,t.$forceUpdate()})),r.addListener("preferences",(function(e){n.preferences=u(u({},n.preferences),e),t.$forceUpdate()})),r.addListener("gamelog",(function(e){o||r.emit("fetchState")})),r.addListener("replay:start",(function(){n.emitter.emit("replayStart"),o=!0})),r.addListener("replay:to",(function(e){n.emitter.emit("replayTo",e)})),r.addListener("replay:end",(function(){n.emitter.emit("replayEnd"),o=!1,r.emit("fetchState")})),r}var ma=va;"undefined"!==typeof window&&(window.powergrid={launch:ma});var ba=ma;n["default"]=ba},a1a4:function(e,n,t){"use strict";var r=t("a768"),o=t("41d6"),a=t("fd86"),i=t("ce17"),s=a("species");e.exports=function(e){var n=r(e),t=o.f;i&&n&&!n[s]&&t(n,s,{configurable:!0,get:function(){return this}})}},a516:function(e,n,t){"use strict";var r=t("7f82"),o=t("12aa"),a=t("b42f"),i=t("43b7"),s=t("f246"),u=t("cbe1"),c=t("cba7"),l=t("2fb6"),f=l("splice"),d=Math.max,p=Math.min,h=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!f},{splice:function(e,n){var t,r,l,f,y,v,m=s(this),b=i(m.length),w=o(e,b),x=arguments.length;if(0===x?t=r=0:1===x?(t=0,r=b-w):(t=x-2,r=p(d(a(n),0),b-w)),b+t-r>h)throw TypeError(g);for(l=u(m,r),f=0;f<r;f++)y=w+f,y in m&&c(l,f,m[y]);if(l.length=r,t<r){for(f=w;f<b-r;f++)y=f+r,v=f+t,y in m?m[v]=m[y]:delete m[v];for(f=b;f>b-r+t;f--)delete m[f-1]}else if(t>r)for(f=b-r;f>w;f--)y=f+r-1,v=f+t-1,y in m?m[v]=m[y]:delete m[v];for(f=0;f<t;f++)m[f+w]=arguments[f+2];return m.length=b-r+t,l}})},a768:function(e,n,t){var r=t("8aac"),o=t("68de"),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,n){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][n]||o[e]&&o[e][n]}},a901:function(e,n,t){"use strict";var r=t("2079").charAt,o=t("2673"),a=t("4116"),i="String Iterator",s=o.set,u=o.getterFor(i);a(String,"String",(function(e){s(this,{type:i,string:String(e),index:0})}),(function(){var e,n=u(this),t=n.string,o=n.index;return o>=t.length?{value:void 0,done:!0}:(e=r(t,o),n.index+=e.length,{value:e,done:!1})}))},a9eb:function(e,n,t){var r=t("8dac");e.exports=function(e,n){if(!r(e))return e;var t,o;if(n&&"function"==typeof(t=e.toString)&&!r(o=t.call(e)))return o;if("function"==typeof(t=e.valueOf)&&!r(o=t.call(e)))return o;if(!n&&"function"==typeof(t=e.toString)&&!r(o=t.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},ac27:function(e,n){e.exports=function(e){try{return!!e()}catch(n){return!0}}},ac85:function(e,n,t){(function(e){var r;(function(e,o,a){function i(e){var n=this;function t(e,n){var t,r,o,a,i,s=[],u=128;for(n===(0|n)?(r=n,n=null):(n+="\0",r=0,u=Math.max(u,n.length)),o=0,a=-32;a<u;++a)n&&(r^=n.charCodeAt((a+32)%n.length)),0===a&&(i=r),r^=r<<10,r^=r>>>15,r^=r<<4,r^=r>>>13,a>=0&&(i=i+1640531527|0,t=s[127&a]^=r+i,o=0==t?o+1:0);for(o>=128&&(s[127&(n&&n.length||0)]=-1),o=127,a=512;a>0;--a)r=s[o+34&127],t=s[o=o+1&127],r^=r<<13,t^=t<<17,r^=r>>>15,t^=t>>>12,s[o]=r^t;e.w=i,e.X=s,e.i=o}n.next=function(){var e,t,r=n.w,o=n.X,a=n.i;return n.w=r=r+1640531527|0,t=o[a+34&127],e=o[a=a+1&127],t^=t<<13,e^=e<<17,t^=t>>>15,e^=e>>>12,t=o[a]=t^e,n.i=a,t+(r^r>>>16)|0},t(n,e)}function s(e,n){return n.i=e.i,n.w=e.w,n.X=e.X.slice(),n}function u(e,n){null==e&&(e=+new Date);var t=new i(e),r=n&&n.state,o=function(){return(t.next()>>>0)/4294967296};return o.double=function(){do{var e=t.next()>>>11,n=(t.next()>>>0)/4294967296,r=(e+n)/(1<<21)}while(0===r);return r},o.int32=t.next,o.quick=o,r&&(r.X&&s(r,t),o.state=function(){return s(t,{})}),o}o&&o.exports?o.exports=u:t("f9ad")&&t("ba96")?(r=function(){return u}.call(n,t,n,o),void 0===r||(o.exports=r)):this.xor4096=u})(0,e,t("f9ad"))}).call(this,t("e55b")(e))},b07d:function(e,n,t){"use strict";var r=t("cbdb"),o=t("0540"),a=t("57ac"),i=t("c678"),s=t("c698"),u=t("7743"),c=t("43b7"),l=t("1af6"),f=t("8bc5"),d=t("3439"),p=d.UNSUPPORTED_Y,h=[].push,g=Math.min,y=4294967295;r("split",2,(function(e,n,t){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var r=String(i(this)),a=void 0===t?y:t>>>0;if(0===a)return[];if(void 0===e)return[r];if(!o(e))return n.call(r,e,a);var s,u,c,l=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=new RegExp(e.source,d+"g");while(s=f.call(g,r)){if(u=g.lastIndex,u>p&&(l.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&h.apply(l,s.slice(1)),c=s[0].length,p=u,l.length>=a))break;g.lastIndex===s.index&&g.lastIndex++}return p===r.length?!c&&g.test("")||l.push(""):l.push(r.slice(p)),l.length>a?l.slice(0,a):l}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,t){var o=i(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,o,t):r.call(String(o),n,t)},function(e,o){var i=t(r,e,this,o,r!==n);if(i.done)return i.value;var f=a(e),d=String(this),h=s(f,RegExp),v=f.unicode,m=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(p?"g":"y"),b=new h(p?"^(?:"+f.source+")":f,m),w=void 0===o?y:o>>>0;if(0===w)return[];if(0===d.length)return null===l(b,d)?[d]:[];var x=0,_=0,k=[];while(_<d.length){b.lastIndex=p?0:_;var P,S=l(b,p?d.slice(_):d);if(null===S||(P=g(c(b.lastIndex+(p?_:0)),d.length))===x)_=u(d,_,v);else{if(k.push(d.slice(x,_)),k.length===w)return k;for(var C=1;C<=S.length-1;C++)if(k.push(S[C]),k.length===w)return k;_=x=P}}return k.push(d.slice(x)),k}]}),p)},b0d4:function(e,n,t){"use strict";var r=t("7f82"),o=t("b222").find,a=t("d684"),i="find",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},b168:function(e,n,t){var r,o,a=t("68de"),i=t("fd70"),s=a.process,u=s&&s.versions,c=u&&u.v8;c?(r=c.split("."),o=r[0]<4?1:r[0]+r[1]):i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=r[1]))),e.exports=o&&+o},b222:function(e,n,t){var r=t("6e4e"),o=t("2153"),a=t("f246"),i=t("43b7"),s=t("cbe1"),u=[].push,c=function(e){var n=1==e,t=2==e,c=3==e,l=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,g,y,v){for(var m,b,w=a(h),x=o(w),_=r(g,y,3),k=i(x.length),P=0,S=v||s,C=n?S(h,k):t||d?S(h,0):void 0;k>P;P++)if((p||P in x)&&(m=x[P],b=_(m,P,w),e))if(n)C[P]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return P;case 2:u.call(C,m)}else switch(e){case 4:return!1;case 7:u.call(C,m)}return f?-1:c||l?l:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},b2a1:function(e,n,t){var r=t("9c0c"),o=t("97cc").f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(n){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?s(e):o(r(e))}},b42f:function(e,n){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},b67b:function(e,n,t){e.exports=t.p+"img/log.04ef6981.svg"},b85b:function(e,n,t){e.exports=t.p+"img/rules.64f9aae5.svg"},ba03:function(e,n,t){(function(e){var r;(function(e,o,a){function i(e){var n=this,t="";n.next=function(){var e=n.b,t=n.c,r=n.d,o=n.a;return e=e<<25^e>>>7^t,t=t-r|0,r=r<<24^r>>>8^o,o=o-e|0,n.b=e=e<<20^e>>>12^t,n.c=t=t-r|0,n.d=r<<16^t>>>16^o,n.a=o-e|0},n.a=0,n.b=0,n.c=-1640531527,n.d=1367130551,e===Math.floor(e)?(n.a=e/4294967296|0,n.b=0|e):t+=e;for(var r=0;r<t.length+20;r++)n.b^=0|t.charCodeAt(r),n.next()}function s(e,n){return n.a=e.a,n.b=e.b,n.c=e.c,n.d=e.d,n}function u(e,n){var t=new i(e),r=n&&n.state,o=function(){return(t.next()>>>0)/4294967296};return o.double=function(){do{var e=t.next()>>>11,n=(t.next()>>>0)/4294967296,r=(e+n)/(1<<21)}while(0===r);return r},o.int32=t.next,o.quick=o,r&&("object"==typeof r&&s(r,t),o.state=function(){return s(t,{})}),o}o&&o.exports?o.exports=u:t("f9ad")&&t("ba96")?(r=function(){return u}.call(n,t,n,o),void 0===r||(o.exports=r)):this.tychei=u})(0,e,t("f9ad"))}).call(this,t("e55b")(e))},ba28:function(e,n,t){var r=t("8c99"),o=t("338e");e.exports=Object.keys||function(e){return r(e,o)}},ba96:function(e,n){(function(n){e.exports=n}).call(this,{})},bb9a:function(e,n,t){"use strict";t("50b1")},bcba:function(e,n,t){(function(e,r){var o;
|
|
26
|
+
function j(e){return j="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function D(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function E(e){return G(e)||T(e)||I()}function G(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}function T(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function I(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function N(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function U(e,n){K(e,n),Object.getOwnPropertyNames(n.prototype).forEach((function(t){K(e.prototype,n.prototype,t)})),Object.getOwnPropertyNames(n).forEach((function(t){K(e,n,t)}))}function K(e,n,t){var r=t?Reflect.getOwnMetadataKeys(n,t):Reflect.getOwnMetadataKeys(n);r.forEach((function(r){var o=t?Reflect.getOwnMetadata(r,n,t):Reflect.getOwnMetadata(r,n);t?Reflect.defineMetadata(r,o,e,t):Reflect.defineMetadata(r,o,e)}))}var F={__proto__:[]},W=F instanceof Array;function H(e){return function(n,t,r){var o="function"===typeof n?n:n.constructor;o.__decorators__||(o.__decorators__=[]),"number"!==typeof r&&(r=void 0),o.__decorators__.push((function(n){return e(n,t,r)}))}}function V(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return f.a.extend({mixins:n})}function Y(e){var n=j(e);return null==e||"object"!==n&&"function"!==n}function $(e,n){var t=n.prototype._init;n.prototype._init=function(){var n=this,t=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||t.push(r);t.forEach((function(t){Object.defineProperty(n,t,{get:function(){return e[t]},set:function(n){e[t]=n},configurable:!0})}))};var r=new n;n.prototype._init=t;var o={};return Object.keys(r).forEach((function(e){void 0!==r[e]&&(o[e]=r[e])})),o}var q=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function Z(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.name=n.name||e._componentTag||e.name;var t=e.prototype;Object.getOwnPropertyNames(t).forEach((function(e){if("constructor"!==e)if(q.indexOf(e)>-1)n[e]=t[e];else{var r=Object.getOwnPropertyDescriptor(t,e);void 0!==r.value?"function"===typeof r.value?(n.methods||(n.methods={}))[e]=r.value:(n.mixins||(n.mixins=[])).push({data:function(){return D({},e,r.value)}}):(r.get||r.set)&&((n.computed||(n.computed={}))[e]={get:r.get,set:r.set})}})),(n.mixins||(n.mixins=[])).push({data:function(){return $(this,e)}});var r=e.__decorators__;r&&(r.forEach((function(e){return e(n)})),delete e.__decorators__);var o=Object.getPrototypeOf(e.prototype),a=o instanceof f.a?o.constructor:f.a,i=a.extend(n);return X(i,e,a),N()&&U(i,e),i}var J={prototype:!0,arguments:!0,callee:!0,caller:!0};function X(e,n,t){Object.getOwnPropertyNames(n).forEach((function(r){if(!J[r]){var o=Object.getOwnPropertyDescriptor(e,r);if(!o||o.configurable){var a=Object.getOwnPropertyDescriptor(n,r);if(!W){if("cid"===r)return;var i=Object.getOwnPropertyDescriptor(t,r);if(!Y(a.value)&&i&&i.value===a.value)return}0,Object.defineProperty(e,r,a)}}}))}function Q(e){return"function"===typeof e?Z(e):function(n){return Z(n,e)}}Q.registerHooks=function(e){q.push.apply(q,E(e))};var ee=Q,ne="__reactiveInject__";function te(e){return H((function(n,t){"undefined"===typeof n.inject&&(n.inject={}),Array.isArray(n.inject)||(n.inject[t]=e||t)}))}function re(e){return H((function(n,t){if("undefined"===typeof n.inject&&(n.inject={}),!Array.isArray(n.inject)){var r=e?e.from||e:t,o=!!e&&e.default||void 0;n.computed||(n.computed={}),n.computed[t]=function(){var e=this[ne];return e?e[r]:o},n.inject[ne]=ne}}))}function oe(e){var n=function(){var t=this,r="function"===typeof e?e.call(this):e;for(var o in r=Object.create(r||null),r[ne]=this[ne]||{},n.managed)r[n.managed[o]]=this[o];var a=function(e){r[n.managedReactive[e]]=i[e],Object.defineProperty(r[ne],n.managedReactive[e],{enumerable:!0,get:function(){return t[e]}})},i=this;for(var o in n.managedReactive)a(o);return r};return n.managed={},n.managedReactive={},n}function ae(e){return"function"!==typeof e||!e.managed&&!e.managedReactive}function ie(e){return H((function(n,t){var r=n.provide;ae(r)&&(r=n.provide=oe(r)),r.managed[t]=e||t}))}function se(e){return H((function(n,t){var r=n.provide;Array.isArray(n.inject)||(n.inject=n.inject||{},n.inject[ne]={from:ne,default:{}}),ae(r)&&(r=n.provide=oe(r)),r.managedReactive[t]=e||t}))}var ue="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function ce(e,n,t){if(ue&&!Array.isArray(e)&&"function"!==typeof e&&"undefined"===typeof e.type){var r=Reflect.getMetadata("design:type",n,t);r!==Object&&(e.type=r)}}function le(e){return void 0===e&&(e={}),function(n,t){ce(e,n,t),H((function(n,t){(n.props||(n.props={}))[t]=e}))(n,t)}}function fe(e,n){void 0===n&&(n={});var t=n.deep,r=void 0!==t&&t,o=n.immediate,a=void 0!==o&&o;return H((function(n,t){"object"!==typeof n.watch&&(n.watch=Object.create(null));var o=n.watch;"object"!==typeof o[e]||Array.isArray(o[e])?"undefined"===typeof o[e]&&(o[e]=[]):o[e]=[o[e]],o[e].push({handler:t,deep:r,immediate:a})}))}function de(e){return H((function(n,t){n.computed=n.computed||{},n.computed[t]={cache:!1,get:function(){return this.$refs[e||t]}}}))}var pe,he,ge,ye,ve,me=t("0b6f");(function(e){e["Coal"]="coal",e["Oil"]="oil",e["Garbage"]="garbage",e["Uranium"]="uranium"})(pe||(pe={})),function(e){e[e["Coal"]=0]="Coal",e[e["Oil"]=1]="Oil",e[e["Garbage"]=2]="Garbage",e[e["Uranium"]=3]="Uranium",e[e["Hybrid"]=4]="Hybrid",e[e["Wind"]=5]="Wind",e[e["Nuclear"]=6]="Nuclear",e[e["Step3"]=7]="Step3"}(he||(he={})),function(e){e["Order"]="Order",e["Auction"]="Auction",e["Resources"]="Resources",e["Building"]="Building",e["Bureaucracy"]="Bureaucracy",e["GameEnd"]="Game End"}(ge||(ge={})),function(e){e["ChoosePowerPlant"]="ChoosePowerPlant",e["Bid"]="Bid",e["DiscardPowerPlant"]="DiscardPowerPlant",e["DiscardResources"]="DiscardResources",e["BuyResource"]="BuyResource",e["Build"]="Build",e["UsePowerPlant"]="UsePowerPlant",e["Pass"]="Pass",e["Undo"]="Undo"}(ye||(ye={}));var be=(ve={},i(ve,pe.Coal,[1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8]),i(ve,pe.Oil,[1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8]),i(ve,pe.Garbage,[1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8]),i(ve,pe.Uranium,[1,2,3,4,5,6,7,8,10,12,14,16]),ve),we=be;function xe(e,n){var t,r,o={},a=e.log[e.log.length-1];"move"==a.type&&e.currentPlayers.includes(n.id)&&((a.player==n.id&&(null===(t=n.lastMove)||void 0===t?void 0:t.name)!=ye.Pass||e.phase==ge.Bureaucracy&&(null===(r=n.lastMove)||void 0===r?void 0:r.name)==ye.UsePowerPlant)&&(o[ye.Undo]=[!0,!1]));switch(e.phase){case ge.Auction:if(n.powerPlants.length>4||e.players.length>2&&n.powerPlants.length>3)o[ye.DiscardPowerPlant]=n.powerPlants.filter((function(e,t){return t!=n.powerPlants.length-1})).map((function(e){return e.number}));else{var i=[],s=Math.max(0,n.oilLeft-n.oilCapacity);if(n.coalCapacity+n.hybridCapacity<n.coalLeft+s&&i.push(pe.Coal),s=Math.max(0,n.coalLeft-n.coalCapacity),n.oilCapacity+n.hybridCapacity<n.oilLeft+s&&i.push(pe.Oil),n.garbageCapacity<n.garbageLeft&&i.push(pe.Garbage),n.uraniumCapacity<n.uraniumLeft&&i.push(pe.Uranium),i.length>0)o[ye.DiscardResources]=i;else if(void 0==e.chosenPowerPlant){var u=e.actualMarket.filter((function(e){return n.money>=e.number}));if("Spain & Portugal"==e.map.name){var c=n.cities.map((function(n){return e.map.cities.find((function(e){return e.name==n.name}))}));c.every((function(e){return"yellow"==e.region}))&&(u=u.filter((function(e){return e.type!=he.Uranium})))}if("Central Europe"==e.map.name){var l=n.cities.map((function(n){return e.map.cities.find((function(e){return e.name==n.name}))})).filter((function(e){return"green"==e.region||"brown"==e.region||"purple"==e.region}));0==l.length&&(u=u.filter((function(e){return e.type!=he.Uranium})))}u.length>0&&(o[ye.ChoosePowerPlant]=u.map((function(e){return e.number}))),e.round>1&&(o[ye.Pass]=[!0])}else{if(e.options.fastBid?e.minimunBid<=n.money&&(o[ye.Bid]=Object(me["range"])(e.minimunBid,n.money+1)):e.currentBid?e.currentBid<n.money&&(o[ye.Bid]=Object(me["range"])(e.currentBid+1,n.money+1)):o[ye.Bid]=Object(me["range"])(e.minimunBid,n.money+1),"Spain & Portugal"==e.map.name){var f=n.cities.map((function(n){return e.map.cities.find((function(e){return e.name==n.name}))}));f.every((function(e){return"yellow"==e.region}))&&e.chosenPowerPlant.type==he.Uranium&&(o[ye.Bid]=void 0)}if("Central Europe"==e.map.name){var d=n.cities.map((function(n){return e.map.cities.find((function(e){return e.name==n.name}))})).filter((function(e){return"green"==e.region||"brown"==e.region||"purple"==e.region}));0==d.length&&e.chosenPowerPlant.type==he.Uranium&&(o[ye.Bid]=void 0)}e.options.fastBid?n.id!=e.auctioningPlayer&&(o[ye.Pass]=[!0]):null!=e.currentBid&&(o[ye.Pass]=[!0])}}break;case ge.Resources:if("India"==e.map.name&&void 0!==e.chosenResource){o[ye.Pass]=[!0];break}var p,h=[];if(p=e.map.maxPriceAvailable?e.map.maxPriceAvailable[e.step-1]:16,e.coalMarket>0){var g,y=n.hybridCapacity>0?Math.max(0,n.oilLeft-n.oilCapacity):0,v=null!==(g=e.coalPrices)&&void 0!==g?g:we[pe.Coal],m=v[v.length-e.coalMarket];n.money>=m&&n.coalCapacity+n.hybridCapacity>y+n.coalLeft&&m<=p&&h.push({resource:pe.Coal})}else if("recharged"==e.options.variant&&"USA"==e.map.name&&e.coalSupply>0){var b=n.hybridCapacity>0?Math.max(0,n.oilLeft-n.oilCapacity):0;n.money>=8&&n.coalCapacity+n.hybridCapacity>b+n.coalLeft&&h.push({resource:pe.Coal})}if(e.oilMarket>0){var w,x=n.hybridCapacity>0?Math.max(0,n.coalLeft-n.coalCapacity):0,_=null!==(w=e.oilPrices)&&void 0!==w?w:we[pe.Oil],k=_[_.length-e.oilMarket];n.money>=k&&n.oilCapacity+n.hybridCapacity>x+n.oilLeft&&k<=p&&h.push({resource:pe.Oil})}if(e.garbageMarket>0){var P,S=null!==(P=e.garbagePrices)&&void 0!==P?P:we[pe.Garbage],C=S[S.length-e.garbageMarket];if("Central Europe"==e.map.name){var M=n.cities.filter((function(e){return"Wien"==e.name}));(null===M||void 0===M?void 0:M.length)>0&&C--}n.money>=C&&n.garbageCapacity>n.garbageLeft&&C<=p&&h.push({resource:pe.Garbage})}if(e.uraniumMarket>0){var B,R=null!==(B=e.uraniumPrices)&&void 0!==B?B:we[pe.Uranium],A=R[R.length-e.uraniumMarket];n.money>=A&&n.uraniumCapacity>n.uraniumLeft&&A<=p&&h.push({resource:pe.Uranium})}h.length>0&&(o[ye.BuyResource]=h),o[ye.Pass]=[!0];break;case ge.Building:if(n.cities.length<21){var L=0==n.cities.length?e.map.cities.map((function(e){return{name:e.name,price:0}})):_e(e,n).map((function(e){return{name:e.name,price:e.price}}));L.forEach((function(t){var r=e.map.cities.find((function(e){return e.name==t.name})),o=e.players.filter((function(e){return e.cities.find((function(e){return t.name==e.name}))})).length;if(r.transregional)return e.step<2?void(t.price=9999):(t.price+=3==e.step?20:15,o==e.step&&(t.price=9999),void(n.cities.find((function(e){return e.name==t.name}))&&(t.price=9999)));t.price+=10+5*o,o==e.step&&(t.price=9999),n.cities.find((function(e){return e.name==t.name}))&&(t.price=9999)})),L=L.filter((function(e){return e.price<=n.money})),L.length>0&&(o[ye.Build]=L)}o[ye.Pass]=[!0];break;case ge.Bureaucracy:var O=[];n.powerPlants.forEach((function(e){if(n.powerPlantsNotUsed.includes(e.number))switch(e.type){case he.Coal:n.coalLeft>=e.cost&&O.push({powerPlant:e.number,resourcesSpent:new Array(e.cost).fill(pe.Coal),citiesPowered:e.citiesPowered});break;case he.Oil:n.oilLeft>=e.cost&&O.push({powerPlant:e.number,resourcesSpent:new Array(e.cost).fill(pe.Oil),citiesPowered:e.citiesPowered});break;case he.Garbage:n.garbageLeft>=e.cost&&O.push({powerPlant:e.number,resourcesSpent:new Array(e.cost).fill(pe.Garbage),citiesPowered:e.citiesPowered});break;case he.Uranium:n.uraniumLeft>=e.cost&&O.push({powerPlant:e.number,resourcesSpent:new Array(e.cost).fill(pe.Uranium),citiesPowered:e.citiesPowered});break;case he.Wind:case he.Nuclear:O.push({powerPlant:e.number,resourcesSpent:[],citiesPowered:e.citiesPowered});break;case he.Hybrid:var t;if(n.coalLeft+n.oilLeft>=e.cost)t=1==e.cost?[[pe.Coal],[pe.Oil]]:2==e.cost?[[pe.Coal,pe.Coal],[pe.Coal,pe.Oil],[pe.Oil,pe.Oil]]:[[pe.Coal,pe.Coal,pe.Coal],[pe.Coal,pe.Coal,pe.Oil],[pe.Coal,pe.Oil,pe.Oil],[pe.Oil,pe.Oil,pe.Oil]],t.forEach((function(t){t.filter((function(e){return e==pe.Coal})).length<=n.coalLeft&&t.filter((function(e){return e==pe.Oil})).length<=n.oilLeft&&O.push({powerPlant:e.number,resourcesSpent:t,citiesPowered:e.citiesPowered})}))}})),O.length>0&&(o[ye.UsePowerPlant]=O),("India"!=e.map.name||n.citiesPowered>=n.targetCitiesPowered||n.isAI)&&(o[ye.Pass]=[!0]);break}return o}function _e(e,n){var t=e.map.cities.map((function(e){return{name:e.name,price:n.cities.find((function(n){return n.name==e.name}))?0:9999,visited:!1}})),r=t.find((function(e){return e.name==n.cities[0].name}));r.price=0;while(t.some((function(e){return!e.visited}))){var o=e.map.connections.filter((function(e){return e.nodes.includes(r.name)}));if(o.forEach((function(e){var o=e.nodes.filter((function(e){return e!=r.name}))[0],a=t.find((function(e){return e.name==o})),i=n.cities.find((function(e){return e.name==a.name}))?0:r.price+e.cost;!a.visited&&a.price>i&&(a.price=i)})),r.visited=!0,!t.some((function(e){return!e.visited})))break;if(r=t.reduce((function(e,n){return e.visited?n:n.visited||e.price<=n.price?e:n})),r.price>n.money)break}return t}t("a516"),t("7f32"),t("ec9f"),t("22ea"),t("da71"),t("4311");var ke,Pe,Se=t("4cd2"),Ce=t.n(Se),Me=t("3a04"),Be=t.n(Me);(function(e){e["Purple"]="purple",e["Green"]="green",e["Red"]="red",e["Yellow"]="yellow",e["Cyan"]="cyan",e["Brown"]="brown"})(ke||(ke={})),function(e){e["Seattle"]="Seattle",e["Portland"]="Portland",e["Boise"]="Boise",e["Billings"]="Billings",e["Cheyenne"]="Cheyenne",e["Denver"]="Denver",e["Omaha"]="Omaha",e["SanFrancisco"]="San Francisco",e["LosAngeles"]="Los Angeles",e["SanDiego"]="San Diego",e["LasVegas"]="Las Vegas",e["SaltLakeCity"]="Salt Lake City",e["Phoenix"]="Phoenix",e["SantaFe"]="Santa Fe",e["KansasCity"]="Kansas City",e["OklahomaCity"]="Oklahoma City",e["Dallas"]="Dallas",e["Houston"]="Houston",e["Memphis"]="Memphis",e["Birmingham"]="Birmingham",e["NewOrleans"]="New Orleans",e["Fargo"]="Fargo",e["Duluth"]="Duluth",e["Minneapolis"]="Minneapolis",e["Chicago"]="Chicago",e["StLouis"]="St. Louis",e["Cincinnati"]="Cincinnati",e["Knoxvile"]="Knoxvile",e["Detroit"]="Detroit",e["Buffalo"]="Buffalo",e["Pittsburgh"]="Pittsburgh",e["Boston"]="Boston",e["NewYork"]="New York",e["Philadelphia"]="Philadelphia",e["Washington"]="Washington",e["Norfolk"]="Norfolk",e["Raleigh"]="Raleigh",e["Atlanta"]="Atlanta",e["Savannah"]="Savannah",e["Jacksonvile"]="Jacksonvile",e["Tampa"]="Tampa",e["Miami"]="Miami"}(Pe||(Pe={}));var Re,Ae,Le={name:"USA",cities:[{name:Pe.Seattle,region:ke.Purple,x:74,y:99},{name:Pe.Portland,region:ke.Purple,x:45,y:167},{name:Pe.Boise,region:ke.Purple,x:180,y:220},{name:Pe.Billings,region:ke.Purple,x:345,y:180},{name:Pe.Cheyenne,region:ke.Purple,x:410,y:280},{name:Pe.Denver,region:ke.Purple,x:400,y:333},{name:Pe.Omaha,region:ke.Purple,x:566,y:293},{name:Pe.SanFrancisco,region:ke.Cyan,x:48,y:371},{name:Pe.LosAngeles,region:ke.Cyan,x:116,y:460},{name:Pe.SanDiego,region:ke.Cyan,x:157,y:507},{name:Pe.LasVegas,region:ke.Cyan,x:200,y:410},{name:Pe.SaltLakeCity,region:ke.Cyan,x:266,y:311},{name:Pe.Phoenix,region:ke.Cyan,x:260,y:486},{name:Pe.SantaFe,region:ke.Cyan,x:371,y:435},{name:Pe.KansasCity,region:ke.Red,x:587,y:356},{name:Pe.OklahomaCity,region:ke.Red,x:550,y:437},{name:Pe.Dallas,region:ke.Red,x:560,y:504},{name:Pe.Houston,region:ke.Red,x:569,y:571},{name:Pe.Memphis,region:ke.Red,x:678,y:449},{name:Pe.Birmingham,region:ke.Red,x:739,y:486},{name:Pe.NewOrleans,region:ke.Red,x:674,y:570},{name:Pe.Fargo,region:ke.Yellow,x:551,y:152},{name:Pe.Duluth,region:ke.Yellow,x:637,y:133},{name:Pe.Minneapolis,region:ke.Yellow,x:621,y:190},{name:Pe.Chicago,region:ke.Yellow,x:716,y:281},{name:Pe.StLouis,region:ke.Yellow,x:678,y:362},{name:Pe.Cincinnati,region:ke.Yellow,x:795,y:348},{name:Pe.Knoxvile,region:ke.Yellow,x:796,y:422},{name:Pe.Detroit,region:ke.Brown,x:803,y:262},{name:Pe.Buffalo,region:ke.Brown,x:913,y:251},{name:Pe.Pittsburgh,region:ke.Brown,x:884,y:316},{name:Pe.Boston,region:ke.Brown,x:1052,y:252},{name:Pe.NewYork,region:ke.Brown,x:1010,y:290},{name:Pe.Philadelphia,region:ke.Brown,x:985,y:330},{name:Pe.Washington,region:ke.Brown,x:934,y:357},{name:Pe.Norfolk,region:ke.Green,x:969,y:405},{name:Pe.Raleigh,region:ke.Green,x:915,y:437},{name:Pe.Atlanta,region:ke.Green,x:801,y:487},{name:Pe.Savannah,region:ke.Green,x:867,y:507},{name:Pe.Jacksonvile,region:ke.Green,x:861,y:559},{name:Pe.Tampa,region:ke.Green,x:819,y:621},{name:Pe.Miami,region:ke.Green,x:883,y:670}],connections:[{nodes:[Pe.Seattle,Pe.Portland],cost:3},{nodes:[Pe.Seattle,Pe.Boise],cost:12},{nodes:[Pe.Seattle,Pe.Billings],cost:9},{nodes:[Pe.Portland,Pe.Boise],cost:13},{nodes:[Pe.Portland,Pe.SanFrancisco],cost:24},{nodes:[Pe.Boise,Pe.Billings],cost:12},{nodes:[Pe.Boise,Pe.Cheyenne],cost:24},{nodes:[Pe.Boise,Pe.SanFrancisco],cost:23},{nodes:[Pe.Boise,Pe.SaltLakeCity],cost:8},{nodes:[Pe.Billings,Pe.Cheyenne],cost:9},{nodes:[Pe.Billings,Pe.Fargo],cost:17},{nodes:[Pe.Billings,Pe.Minneapolis],cost:18},{nodes:[Pe.Cheyenne,Pe.Denver],cost:0},{nodes:[Pe.Cheyenne,Pe.Omaha],cost:14},{nodes:[Pe.Cheyenne,Pe.Minneapolis],cost:18},{nodes:[Pe.Denver,Pe.SaltLakeCity],cost:21},{nodes:[Pe.Denver,Pe.SantaFe],cost:13},{nodes:[Pe.Denver,Pe.KansasCity],cost:16},{nodes:[Pe.Omaha,Pe.KansasCity],cost:5},{nodes:[Pe.Omaha,Pe.Minneapolis],cost:8},{nodes:[Pe.Omaha,Pe.Chicago],cost:13},{nodes:[Pe.SanFrancisco,Pe.LosAngeles],cost:9},{nodes:[Pe.SanFrancisco,Pe.LasVegas],cost:14},{nodes:[Pe.SanFrancisco,Pe.SaltLakeCity],cost:27},{nodes:[Pe.LosAngeles,Pe.SanDiego],cost:3},{nodes:[Pe.LosAngeles,Pe.LasVegas],cost:9},{nodes:[Pe.SanDiego,Pe.LasVegas],cost:9},{nodes:[Pe.SanDiego,Pe.Phoenix],cost:14},{nodes:[Pe.LasVegas,Pe.SaltLakeCity],cost:18},{nodes:[Pe.LasVegas,Pe.Phoenix],cost:15},{nodes:[Pe.LasVegas,Pe.SantaFe],cost:27},{nodes:[Pe.SaltLakeCity,Pe.SantaFe],cost:28},{nodes:[Pe.Phoenix,Pe.SantaFe],cost:18},{nodes:[Pe.SantaFe,Pe.KansasCity],cost:16},{nodes:[Pe.SantaFe,Pe.OklahomaCity],cost:15},{nodes:[Pe.SantaFe,Pe.Dallas],cost:16},{nodes:[Pe.SantaFe,Pe.Houston],cost:21},{nodes:[Pe.KansasCity,Pe.OklahomaCity],cost:8},{nodes:[Pe.KansasCity,Pe.Memphis],cost:12},{nodes:[Pe.KansasCity,Pe.Chicago],cost:8},{nodes:[Pe.KansasCity,Pe.StLouis],cost:6},{nodes:[Pe.OklahomaCity,Pe.Dallas],cost:3},{nodes:[Pe.OklahomaCity,Pe.Memphis],cost:14},{nodes:[Pe.Dallas,Pe.Houston],cost:5},{nodes:[Pe.Dallas,Pe.Memphis],cost:12},{nodes:[Pe.Dallas,Pe.NewOrleans],cost:12},{nodes:[Pe.Houston,Pe.NewOrleans],cost:8},{nodes:[Pe.Memphis,Pe.Birmingham],cost:6},{nodes:[Pe.Memphis,Pe.NewOrleans],cost:7},{nodes:[Pe.Memphis,Pe.StLouis],cost:7},{nodes:[Pe.Birmingham,Pe.NewOrleans],cost:11},{nodes:[Pe.Birmingham,Pe.Atlanta],cost:3},{nodes:[Pe.Birmingham,Pe.Jacksonvile],cost:9},{nodes:[Pe.NewOrleans,Pe.Jacksonvile],cost:16},{nodes:[Pe.Fargo,Pe.Duluth],cost:6},{nodes:[Pe.Fargo,Pe.Minneapolis],cost:6},{nodes:[Pe.Duluth,Pe.Minneapolis],cost:5},{nodes:[Pe.Duluth,Pe.Chicago],cost:12},{nodes:[Pe.Duluth,Pe.Detroit],cost:15},{nodes:[Pe.Minneapolis,Pe.Chicago],cost:8},{nodes:[Pe.Chicago,Pe.StLouis],cost:10},{nodes:[Pe.Chicago,Pe.Cincinnati],cost:7},{nodes:[Pe.Chicago,Pe.Detroit],cost:7},{nodes:[Pe.StLouis,Pe.Cincinnati],cost:12},{nodes:[Pe.StLouis,Pe.Atlanta],cost:12},{nodes:[Pe.Cincinnati,Pe.Knoxvile],cost:6},{nodes:[Pe.Cincinnati,Pe.Detroit],cost:4},{nodes:[Pe.Cincinnati,Pe.Pittsburgh],cost:7},{nodes:[Pe.Cincinnati,Pe.Raleigh],cost:15},{nodes:[Pe.Knoxvile,Pe.Atlanta],cost:5},{nodes:[Pe.Detroit,Pe.Buffalo],cost:7},{nodes:[Pe.Detroit,Pe.Pittsburgh],cost:6},{nodes:[Pe.Buffalo,Pe.Pittsburgh],cost:7},{nodes:[Pe.Buffalo,Pe.NewYork],cost:8},{nodes:[Pe.Pittsburgh,Pe.Washington],cost:6},{nodes:[Pe.Pittsburgh,Pe.Raleigh],cost:7},{nodes:[Pe.Boston,Pe.NewYork],cost:3},{nodes:[Pe.NewYork,Pe.Philadelphia],cost:0},{nodes:[Pe.Philadelphia,Pe.Washington],cost:3},{nodes:[Pe.Washington,Pe.Norfolk],cost:5},{nodes:[Pe.Norfolk,Pe.Raleigh],cost:3},{nodes:[Pe.Raleigh,Pe.Atlanta],cost:7},{nodes:[Pe.Raleigh,Pe.Savannah],cost:7},{nodes:[Pe.Atlanta,Pe.Savannah],cost:7},{nodes:[Pe.Savannah,Pe.Jacksonvile],cost:0},{nodes:[Pe.Jacksonvile,Pe.Tampa],cost:4},{nodes:[Pe.Tampa,Pe.Miami],cost:4}],layout:"Landscape",polygons:[{region:ke.Brown,points:[[930,423],[1082,331],[1075,231],[716,249],[758,303],[897,406]]},{region:ke.Green,points:[[898,405],[762,499],[758,643],[887,744],[938,688],[889,618],[1014,432],[985,387],[929,420]]},{region:ke.Yellow,points:[[895,403],[760,499],[630,393],[607,345],[608,275],[439,162],[654,114],[771,245],[716,247],[758,301]]},{region:ke.Red,points:[[606,344],[476,371],[445,597],[546,664],[758,641],[760,497],[629,391]]},{region:ke.Purple,points:[[606,342],[476,369],[347,395],[313,301],[18,287],[18,165],[76,74],[438,160],[607,275]]},{region:ke.Cyan,points:[[18,285],[20,429],[142,583],[445,594],[476,368],[346,392],[312,300]]}]},Oe={name:"USA",cities:[{name:Pe.Seattle,region:ke.Purple,x:74,y:99},{name:Pe.Portland,region:ke.Purple,x:45,y:167},{name:Pe.Boise,region:ke.Purple,x:180,y:220},{name:Pe.Billings,region:ke.Purple,x:345,y:180},{name:Pe.Cheyenne,region:ke.Purple,x:410,y:280},{name:Pe.Denver,region:ke.Purple,x:400,y:333},{name:Pe.Omaha,region:ke.Purple,x:566,y:293},{name:Pe.SanFrancisco,region:ke.Cyan,x:48,y:371},{name:Pe.LosAngeles,region:ke.Cyan,x:116,y:460},{name:Pe.SanDiego,region:ke.Cyan,x:157,y:507},{name:Pe.LasVegas,region:ke.Cyan,x:200,y:410},{name:Pe.SaltLakeCity,region:ke.Cyan,x:266,y:311},{name:Pe.Phoenix,region:ke.Cyan,x:260,y:486},{name:Pe.SantaFe,region:ke.Cyan,x:371,y:435},{name:Pe.KansasCity,region:ke.Red,x:587,y:356},{name:Pe.OklahomaCity,region:ke.Red,x:550,y:437},{name:Pe.Dallas,region:ke.Red,x:560,y:504},{name:Pe.Houston,region:ke.Red,x:569,y:571},{name:Pe.Memphis,region:ke.Red,x:678,y:449},{name:Pe.Birmingham,region:ke.Red,x:739,y:486},{name:Pe.NewOrleans,region:ke.Red,x:674,y:570},{name:Pe.Fargo,region:ke.Yellow,x:551,y:152},{name:Pe.Duluth,region:ke.Yellow,x:637,y:133},{name:Pe.Minneapolis,region:ke.Yellow,x:621,y:190},{name:Pe.Chicago,region:ke.Yellow,x:716,y:281},{name:Pe.StLouis,region:ke.Yellow,x:678,y:362},{name:Pe.Cincinnati,region:ke.Yellow,x:795,y:348},{name:Pe.Knoxvile,region:ke.Yellow,x:796,y:422},{name:Pe.Detroit,region:ke.Brown,x:803,y:262},{name:Pe.Buffalo,region:ke.Brown,x:913,y:251},{name:Pe.Pittsburgh,region:ke.Brown,x:884,y:316},{name:Pe.Boston,region:ke.Brown,x:1052,y:252},{name:Pe.NewYork,region:ke.Brown,x:1010,y:290},{name:Pe.Philadelphia,region:ke.Brown,x:985,y:330},{name:Pe.Washington,region:ke.Brown,x:934,y:357},{name:Pe.Norfolk,region:ke.Green,x:969,y:405},{name:Pe.Raleigh,region:ke.Green,x:915,y:437},{name:Pe.Atlanta,region:ke.Green,x:801,y:487},{name:Pe.Savannah,region:ke.Green,x:867,y:507},{name:Pe.Jacksonvile,region:ke.Green,x:861,y:559},{name:Pe.Tampa,region:ke.Green,x:819,y:621},{name:Pe.Miami,region:ke.Green,x:883,y:670}],connections:[{nodes:[Pe.Seattle,Pe.Portland],cost:3},{nodes:[Pe.Seattle,Pe.Boise],cost:12},{nodes:[Pe.Seattle,Pe.Billings],cost:9},{nodes:[Pe.Portland,Pe.Boise],cost:13},{nodes:[Pe.Portland,Pe.SanFrancisco],cost:24},{nodes:[Pe.Boise,Pe.Billings],cost:12},{nodes:[Pe.Boise,Pe.SanFrancisco],cost:23},{nodes:[Pe.Boise,Pe.SaltLakeCity],cost:8},{nodes:[Pe.Billings,Pe.Cheyenne],cost:9},{nodes:[Pe.Billings,Pe.Fargo],cost:17},{nodes:[Pe.Billings,Pe.Minneapolis],cost:18},{nodes:[Pe.Cheyenne,Pe.Denver],cost:0},{nodes:[Pe.Cheyenne,Pe.Omaha],cost:14},{nodes:[Pe.Cheyenne,Pe.Minneapolis],cost:18},{nodes:[Pe.Denver,Pe.SaltLakeCity],cost:21},{nodes:[Pe.Denver,Pe.SantaFe],cost:13},{nodes:[Pe.Denver,Pe.KansasCity],cost:16},{nodes:[Pe.Omaha,Pe.KansasCity],cost:5},{nodes:[Pe.Omaha,Pe.Minneapolis],cost:8},{nodes:[Pe.Omaha,Pe.Chicago],cost:12},{nodes:[Pe.SanFrancisco,Pe.LosAngeles],cost:9},{nodes:[Pe.SanFrancisco,Pe.LasVegas],cost:14},{nodes:[Pe.SanFrancisco,Pe.SaltLakeCity],cost:27},{nodes:[Pe.LosAngeles,Pe.SanDiego],cost:3},{nodes:[Pe.LosAngeles,Pe.LasVegas],cost:9},{nodes:[Pe.SanDiego,Pe.LasVegas],cost:9},{nodes:[Pe.SanDiego,Pe.Phoenix],cost:14},{nodes:[Pe.LasVegas,Pe.SaltLakeCity],cost:18},{nodes:[Pe.LasVegas,Pe.Phoenix],cost:15},{nodes:[Pe.LasVegas,Pe.SantaFe],cost:27},{nodes:[Pe.SaltLakeCity,Pe.SantaFe],cost:28},{nodes:[Pe.Phoenix,Pe.SantaFe],cost:18},{nodes:[Pe.SantaFe,Pe.KansasCity],cost:16},{nodes:[Pe.SantaFe,Pe.OklahomaCity],cost:15},{nodes:[Pe.SantaFe,Pe.Dallas],cost:16},{nodes:[Pe.SantaFe,Pe.Houston],cost:20},{nodes:[Pe.KansasCity,Pe.OklahomaCity],cost:8},{nodes:[Pe.KansasCity,Pe.Memphis],cost:12},{nodes:[Pe.KansasCity,Pe.Chicago],cost:8},{nodes:[Pe.KansasCity,Pe.StLouis],cost:6},{nodes:[Pe.OklahomaCity,Pe.Dallas],cost:3},{nodes:[Pe.OklahomaCity,Pe.Memphis],cost:14},{nodes:[Pe.Dallas,Pe.Houston],cost:5},{nodes:[Pe.Dallas,Pe.Memphis],cost:12},{nodes:[Pe.Dallas,Pe.NewOrleans],cost:12},{nodes:[Pe.Houston,Pe.NewOrleans],cost:8},{nodes:[Pe.Memphis,Pe.Birmingham],cost:6},{nodes:[Pe.Memphis,Pe.NewOrleans],cost:7},{nodes:[Pe.Memphis,Pe.StLouis],cost:7},{nodes:[Pe.Birmingham,Pe.NewOrleans],cost:11},{nodes:[Pe.Birmingham,Pe.Atlanta],cost:3},{nodes:[Pe.Birmingham,Pe.Jacksonvile],cost:9},{nodes:[Pe.NewOrleans,Pe.Jacksonvile],cost:16},{nodes:[Pe.Fargo,Pe.Duluth],cost:6},{nodes:[Pe.Fargo,Pe.Minneapolis],cost:6},{nodes:[Pe.Duluth,Pe.Minneapolis],cost:5},{nodes:[Pe.Duluth,Pe.Chicago],cost:12},{nodes:[Pe.Duluth,Pe.Detroit],cost:15},{nodes:[Pe.Minneapolis,Pe.Chicago],cost:8},{nodes:[Pe.Chicago,Pe.StLouis],cost:10},{nodes:[Pe.Chicago,Pe.Cincinnati],cost:7},{nodes:[Pe.Chicago,Pe.Detroit],cost:7},{nodes:[Pe.StLouis,Pe.Cincinnati],cost:12},{nodes:[Pe.StLouis,Pe.Atlanta],cost:12},{nodes:[Pe.Cincinnati,Pe.Knoxvile],cost:6},{nodes:[Pe.Cincinnati,Pe.Detroit],cost:4},{nodes:[Pe.Cincinnati,Pe.Pittsburgh],cost:7},{nodes:[Pe.Knoxvile,Pe.Atlanta],cost:5},{nodes:[Pe.Knoxvile,Pe.Raleigh],cost:11},{nodes:[Pe.Detroit,Pe.Buffalo],cost:7},{nodes:[Pe.Detroit,Pe.Pittsburgh],cost:6},{nodes:[Pe.Buffalo,Pe.Pittsburgh],cost:7},{nodes:[Pe.Buffalo,Pe.NewYork],cost:8},{nodes:[Pe.Pittsburgh,Pe.Washington],cost:6},{nodes:[Pe.Pittsburgh,Pe.Raleigh],cost:7},{nodes:[Pe.Boston,Pe.NewYork],cost:3},{nodes:[Pe.NewYork,Pe.Philadelphia],cost:0},{nodes:[Pe.Philadelphia,Pe.Washington],cost:3},{nodes:[Pe.Washington,Pe.Norfolk],cost:5},{nodes:[Pe.Norfolk,Pe.Raleigh],cost:3},{nodes:[Pe.Raleigh,Pe.Atlanta],cost:7},{nodes:[Pe.Raleigh,Pe.Savannah],cost:7},{nodes:[Pe.Atlanta,Pe.Savannah],cost:7},{nodes:[Pe.Savannah,Pe.Jacksonvile],cost:0},{nodes:[Pe.Jacksonvile,Pe.Tampa],cost:4},{nodes:[Pe.Tampa,Pe.Miami],cost:4}],layout:"Landscape",mapSpecificRules:"You can buy coal from the supply for $8."};(function(e){e["Purple"]="purple",e["Green"]="green",e["Red"]="red",e["Blue"]="blue",e["Yellow"]="yellow"})(Re||(Re={})),function(e){e["Friedrichshafen"]="Friedrichshafen",e["Ravensburg"]="Ravensburg",e["Biberach"]="Biberach",e["Sigmarincen"]="Sigmaringen",e["Konstanz"]="Konstanz",e["Ulm"]="Ulm",e["Augsburg"]="Augsburg",e["Basel"]="Basel",e["Waldshuttiencen"]="Waldshut-Tiengen",e["Singen"]="Singen",e["Tuttlincen"]="Tuttlingen",e["Donaueschingen"]="Donaueschingen",e["Freiburg"]="Freiburg",e["Lorrach"]="Lorrach",e["Tauberbischofsheim"]="Tauberbischofsheim",e["Schwabischhall"]="Schwabisch Hall",e["Heilbronn"]="Heilbronn",e["Sinsheim"]="Sinsheim",e["Heidelber"]="Heidelberg",e["Mannheim"]="Mannheim",e["Luowigshafen"]="Ludwigshafen",e["Nurnberg"]="Nurnberg",e["Ellwangen"]="Ellwangen",e["Coppingen"]="Göppingen",e["Reutlincen"]="Reutlingen",e["Stuttgart"]="Stuttgart",e["Ludwigsburg"]="Ludwigsburg",e["Boblingen"]="Boblingen",e["Laha"]="Lahr",e["Badenbaden"]="Baden-Baden",e["Offenburg"]="Offenburg",e["Strasbourg"]="Strasbourg",e["Pforzheim"]="Pforzheim",e["Rastatt"]="Rastatt",e["Karlsruhf"]="Karlsruhe"}(Ae||(Ae={}));var ze,je,De={name:"Baden-Württemberg",cities:[{name:Ae.Friedrichshafen,region:Re.Purple,x:1286,y:2177},{name:Ae.Ravensburg,region:Re.Purple,x:1365,y:2023},{name:Ae.Biberach,region:Re.Purple,x:1451,y:1779},{name:Ae.Sigmarincen,region:Re.Purple,x:1111,y:1803},{name:Ae.Konstanz,region:Re.Purple,x:1088,y:2163},{name:Ae.Ulm,region:Re.Purple,x:1541,y:1499},{name:Ae.Augsburg,region:Re.Purple,x:1830,y:1505,transregional:!0},{name:Ae.Basel,region:Re.Green,x:103,y:2271,transregional:!0},{name:Ae.Waldshuttiencen,region:Re.Green,x:502,y:2166},{name:Ae.Singen,region:Re.Green,x:874,y:2084},{name:Ae.Tuttlincen,region:Re.Green,x:870,y:1854},{name:Ae.Donaueschingen,region:Re.Green,x:669,y:1923},{name:Ae.Freiburg,region:Re.Green,x:290,y:1828},{name:Ae.Lorrach,region:Re.Green,x:212,y:2141},{name:Ae.Tauberbischofsheim,region:Re.Red,x:1354,y:450},{name:Ae.Schwabischhall,region:Re.Red,x:1415,y:899},{name:Ae.Heilbronn,region:Re.Red,x:1115,y:872},{name:Ae.Sinsheim,region:Re.Red,x:920,y:785},{name:Ae.Heidelber,region:Re.Red,x:817,y:660},{name:Ae.Mannheim,region:Re.Red,x:710,y:540},{name:Ae.Luowigshafen,region:Re.Red,x:579,y:588,transregional:!0},{name:Ae.Nurnberg,region:Re.Blue,x:1837,y:771,transregional:!0},{name:Ae.Ellwangen,region:Re.Blue,x:1637,y:1030},{name:Ae.Coppingen,region:Re.Blue,x:1387,y:1233},{name:Ae.Reutlincen,region:Re.Blue,x:1107,y:1443},{name:Ae.Stuttgart,region:Re.Blue,x:1106,y:1217},{name:Ae.Ludwigsburg,region:Re.Blue,x:1099,y:1047},{name:Ae.Boblingen,region:Re.Blue,x:956,y:1277},{name:Ae.Laha,region:Re.Yellow,x:296,y:1575},{name:Ae.Badenbaden,region:Re.Yellow,x:554,y:1259},{name:Ae.Offenburg,region:Re.Yellow,x:395,y:1422},{name:Ae.Strasbourg,region:Re.Yellow,x:211,y:1330,transregional:!0},{name:Ae.Pforzheim,region:Re.Yellow,x:794,y:1095},{name:Ae.Rastatt,region:Re.Yellow,x:509,y:1109},{name:Ae.Karlsruhf,region:Re.Yellow,x:638,y:974}],connections:[{nodes:[Ae.Luowigshafen,Ae.Mannheim],cost:0},{nodes:[Ae.Mannheim,Ae.Heidelber],cost:4},{nodes:[Ae.Mannheim,Ae.Karlsruhf],cost:10},{nodes:[Ae.Karlsruhf,Ae.Heidelber],cost:9},{nodes:[Ae.Heidelber,Ae.Sinsheim],cost:5},{nodes:[Ae.Sinsheim,Ae.Tauberbischofsheim],cost:15},{nodes:[Ae.Tauberbischofsheim,Ae.Heilbronn],cost:13},{nodes:[Ae.Heilbronn,Ae.Sinsheim],cost:6},{nodes:[Ae.Sinsheim,Ae.Karlsruhf],cost:9},{nodes:[Ae.Karlsruhf,Ae.Rastatt],cost:4},{nodes:[Ae.Karlsruhf,Ae.Pforzheim],cost:6},{nodes:[Ae.Pforzheim,Ae.Sinsheim],cost:10},{nodes:[Ae.Tauberbischofsheim,Ae.Schwabischhall],cost:13},{nodes:[Ae.Schwabischhall,Ae.Ellwangen],cost:8},{nodes:[Ae.Ellwangen,Ae.Nurnberg],cost:18},{nodes:[Ae.Schwabischhall,Ae.Coppingen],cost:11},{nodes:[Ae.Coppingen,Ae.Ellwangen],cost:10},{nodes:[Ae.Ludwigsburg,Ae.Heilbronn],cost:5},{nodes:[Ae.Heilbronn,Ae.Schwabischhall],cost:9},{nodes:[Ae.Schwabischhall,Ae.Ludwigsburg],cost:10},{nodes:[Ae.Ludwigsburg,Ae.Coppingen],cost:9},{nodes:[Ae.Coppingen,Ae.Stuttgart],cost:8},{nodes:[Ae.Ludwigsburg,Ae.Sinsheim],cost:10},{nodes:[Ae.Ludwigsburg,Ae.Pforzheim],cost:8},{nodes:[Ae.Pforzheim,Ae.Badenbaden],cost:9},{nodes:[Ae.Badenbaden,Ae.Rastatt],cost:2},{nodes:[Ae.Strasbourg,Ae.Offenburg],cost:5},{nodes:[Ae.Offenburg,Ae.Badenbaden],cost:8},{nodes:[Ae.Pforzheim,Ae.Stuttgart],cost:8},{nodes:[Ae.Stuttgart,Ae.Ludwigsburg],cost:2},{nodes:[Ae.Stuttgart,Ae.Boblingen],cost:4},{nodes:[Ae.Boblingen,Ae.Pforzheim],cost:7},{nodes:[Ae.Boblingen,Ae.Badenbaden],cost:15},{nodes:[Ae.Reutlincen,Ae.Stuttgart],cost:9},{nodes:[Ae.Boblingen,Ae.Reutlincen],cost:8},{nodes:[Ae.Reutlincen,Ae.Badenbaden],cost:22},{nodes:[Ae.Offenburg,Ae.Reutlincen],cost:30},{nodes:[Ae.Reutlincen,Ae.Coppingen],cost:10},{nodes:[Ae.Coppingen,Ae.Ulm],cost:10},{nodes:[Ae.Ulm,Ae.Reutlincen],cost:16},{nodes:[Ae.Ellwangen,Ae.Ulm],cost:19},{nodes:[Ae.Ulm,Ae.Augsburg],cost:16},{nodes:[Ae.Reutlincen,Ae.Tuttlincen],cost:17},{nodes:[Ae.Reutlincen,Ae.Sigmarincen],cost:11},{nodes:[Ae.Sigmarincen,Ae.Ulm],cost:14},{nodes:[Ae.Ulm,Ae.Biberach],cost:8},{nodes:[Ae.Biberach,Ae.Sigmarincen],cost:11},{nodes:[Ae.Biberach,Ae.Ravensburg],cost:9},{nodes:[Ae.Ravensburg,Ae.Sigmarincen],cost:10},{nodes:[Ae.Sigmarincen,Ae.Tuttlincen],cost:7},{nodes:[Ae.Tuttlincen,Ae.Offenburg],cost:27},{nodes:[Ae.Offenburg,Ae.Laha],cost:3},{nodes:[Ae.Laha,Ae.Freiburg],cost:8},{nodes:[Ae.Laha,Ae.Donaueschingen],cost:19},{nodes:[Ae.Donaueschingen,Ae.Tuttlincen],cost:6},{nodes:[Ae.Tuttlincen,Ae.Singen],cost:7},{nodes:[Ae.Singen,Ae.Donaueschingen],cost:7},{nodes:[Ae.Donaueschingen,Ae.Freiburg],cost:13},{nodes:[Ae.Freiburg,Ae.Lorrach],cost:10},{nodes:[Ae.Freiburg,Ae.Waldshuttiencen],cost:15},{nodes:[Ae.Waldshuttiencen,Ae.Lorrach],cost:9},{nodes:[Ae.Lorrach,Ae.Basel],cost:2},{nodes:[Ae.Waldshuttiencen,Ae.Donaueschingen],cost:11},{nodes:[Ae.Singen,Ae.Konstanz],cost:6},{nodes:[Ae.Konstanz,Ae.Friedrichshafen],cost:9},{nodes:[Ae.Friedrichshafen,Ae.Ravensburg],cost:3},{nodes:[Ae.Friedrichshafen,Ae.Sigmarincen],cost:11},{nodes:[Ae.Sigmarincen,Ae.Konstanz],cost:14},{nodes:[Ae.Konstanz,Ae.Tuttlincen],cost:11}],layout:"Portrait",adjustRatio:[.425,.425],mapPosition:[100,-90],resupply:[[[3,4,3],[4,5,3],[5,6,4],[5,7,5],[7,9,6]],[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]],mapSpecificRules:"Phase order change: buy power plants first, then determine player order. If no power plant is sold in a round, remove the two lowest-numbered plants from the market and replace them from the draw stack. Never remove a power plant whose number is equal to or lower than the number of cities any player has powered. Transregional cities (e.g. Strasbourg) are only available starting in Step 2. Step 2 begins when any player connects to 9 cities (2 players), 6 cities (3–5 players), or 5 cities (6 players)."};(function(e){e["Green"]="green",e["Brown"]="brown",e["Yellow"]="yellow",e["Red"]="red",e["Blue"]="blue"})(ze||(ze={})),function(e){e["Groningen"]="Groningen",e["Enschede"]="Enschede",e["Apeldoorn"]="Apeldoorn",e["Arnhem"]="Arnhem",e["Leeuwarden"]="Leeuwarden",e["Nijmegen"]="Nijmegen",e["Denhelder"]="Den Helder",e["Zaanstad"]="Zaanstad",e["Amsterdam"]="Amsterdam",e["Utrecht"]="Utrecht",e["Haarlem"]="Haarlem",e["Leiden"]="Leiden",e["Denhaas"]="Den Haas",e["Rotterdam"]="Rotterdam",e["Enbosch"]="En Bosch",e["Venlo"]="Venlo",e["Eindhoven"]="Eindhoven",e["Tilburg"]="Tilburg",e["Breda"]="Breda",e["Middelburg"]="Middelburg",e["Maastricht"]="Maastricht",e["Leuven"]="Leuven",e["Brussel"]="Brussel",e["Antwerpen"]="Antwerpen",e["Gent"]="Gent",e["Kortrijk"]="Kortrijk",e["Brugge"]="Brugge",e["Dostende"]="Dostende",e["Liege"]="Liege",e["Namur"]="Namur",e["Bruxelles"]="Bruxelles",e["Charleroi"]="Charleroi",e["Mons"]="Mons",e["Arlon"]="Arlon",e["Luxembourg"]="Luxembourg"}(je||(je={}));var Ee={name:"Benelux",cities:[{name:je.Groningen,region:ze.Green,x:654,y:147},{name:je.Enschede,region:ze.Green,x:659,y:369},{name:je.Apeldoorn,region:ze.Green,x:552,y:329},{name:je.Arnhem,region:ze.Green,x:541,y:386},{name:je.Leeuwarden,region:ze.Green,x:560,y:136},{name:je.Nijmegen,region:ze.Green,x:518,y:445},{name:je.Denhelder,region:ze.Green,x:411,y:169},{name:je.Zaanstad,region:ze.Brown,x:432,y:245},{name:je.Amsterdam,region:ze.Brown,x:437,y:299},{name:je.Utrecht,region:ze.Brown,x:429,y:361},{name:je.Haarlem,region:ze.Brown,x:373,y:259},{name:je.Leiden,region:ze.Brown,x:355,y:322},{name:je.Denhaas,region:ze.Brown,x:300,y:347},{name:je.Rotterdam,region:ze.Brown,x:338,y:400},{name:je.Enbosch,region:ze.Yellow,x:448,y:447},{name:je.Venlo,region:ze.Yellow,x:550,y:526},{name:je.Eindhoven,region:ze.Yellow,x:463,y:539},{name:je.Tilburg,region:ze.Yellow,x:404,y:497},{name:je.Breda,region:ze.Yellow,x:349,y:466},{name:je.Middelburg,region:ze.Yellow,x:210,y:453},{name:je.Maastricht,region:ze.Yellow,x:480,y:640},{name:je.Leuven,region:ze.Red,x:352,y:619},{name:je.Brussel,region:ze.Red,x:286,y:595},{name:je.Antwerpen,region:ze.Red,x:304,y:526},{name:je.Gent,region:ze.Red,x:206,y:562},{name:je.Kortrijk,region:ze.Red,x:132,y:589},{name:je.Brugge,region:ze.Red,x:160,y:511},{name:je.Dostende,region:ze.Red,x:94,y:495},{name:je.Liege,region:ze.Blue,x:445,y:705},{name:je.Namur,region:ze.Blue,x:361,y:713},{name:je.Bruxelles,region:ze.Blue,x:283,y:642},{name:je.Charleroi,region:ze.Blue,x:278,y:725},{name:je.Mons,region:ze.Blue,x:212,y:686},{name:je.Arlon,region:ze.Blue,x:431,y:876},{name:je.Luxembourg,region:ze.Blue,x:502,y:918}],connections:[{nodes:[je.Denhelder,je.Leeuwarden],cost:13},{nodes:[je.Leeuwarden,je.Groningen],cost:6},{nodes:[je.Groningen,je.Enschede],cost:12},{nodes:[je.Enschede,je.Apeldoorn],cost:9},{nodes:[je.Apeldoorn,je.Arnhem],cost:3},{nodes:[je.Arnhem,je.Nijmegen],cost:2},{nodes:[je.Nijmegen,je.Enbosch],cost:6},{nodes:[je.Nijmegen,je.Venlo],cost:7},{nodes:[je.Nijmegen,je.Eindhoven],cost:7},{nodes:[je.Eindhoven,je.Enbosch],cost:4},{nodes:[je.Enbosch,je.Utrecht],cost:8},{nodes:[je.Apeldoorn,je.Leeuwarden],cost:15},{nodes:[je.Leeuwarden,je.Enschede],cost:13},{nodes:[je.Enschede,je.Arnhem],cost:7},{nodes:[je.Arnhem,je.Utrecht],cost:6},{nodes:[je.Utrecht,je.Amsterdam],cost:4},{nodes:[je.Amsterdam,je.Haarlem],cost:2},{nodes:[je.Haarlem,je.Zaanstad],cost:2},{nodes:[je.Zaanstad,je.Denhelder],cost:6},{nodes:[je.Denhelder,je.Haarlem],cost:7},{nodes:[je.Haarlem,je.Leiden],cost:3},{nodes:[je.Leiden,je.Denhaas],cost:2},{nodes:[je.Denhaas,je.Rotterdam],cost:3},{nodes:[je.Rotterdam,je.Leiden],cost:3},{nodes:[je.Leiden,je.Amsterdam],cost:4},{nodes:[je.Leiden,je.Utrecht],cost:4},{nodes:[je.Utrecht,je.Rotterdam],cost:5},{nodes:[je.Rotterdam,je.Enbosch],cost:11},{nodes:[je.Breda,je.Rotterdam],cost:8},{nodes:[je.Breda,je.Middelburg],cost:9},{nodes:[je.Middelburg,je.Antwerpen],cost:8},{nodes:[je.Antwerpen,je.Brugge],cost:9},{nodes:[je.Brugge,je.Dostende],cost:2},{nodes:[je.Amsterdam,je.Zaanstad],cost:1},{nodes:[je.Amsterdam,je.Apeldoorn],cost:7},{nodes:[je.Apeldoorn,je.Utrecht],cost:6},{nodes:[je.Venlo,je.Eindhoven],cost:5},{nodes:[je.Eindhoven,je.Tilburg],cost:4},{nodes:[je.Tilburg,je.Breda],cost:2},{nodes:[je.Breda,je.Enbosch],cost:5},{nodes:[je.Breda,je.Antwerpen],cost:5},{nodes:[je.Antwerpen,je.Tilburg],cost:6},{nodes:[je.Antwerpen,je.Eindhoven],cost:8},{nodes:[je.Eindhoven,je.Maastricht],cost:8},{nodes:[je.Maastricht,je.Venlo],cost:10},{nodes:[je.Maastricht,je.Leuven],cost:7},{nodes:[je.Leuven,je.Eindhoven],cost:9},{nodes:[je.Leuven,je.Brussel],cost:2},{nodes:[je.Brussel,je.Bruxelles],cost:0},{nodes:[je.Bruxelles,je.Charleroi],cost:5},{nodes:[je.Charleroi,je.Namur],cost:3},{nodes:[je.Namur,je.Bruxelles],cost:5},{nodes:[je.Leuven,je.Namur],cost:5},{nodes:[je.Leuven,je.Liege],cost:7},{nodes:[je.Liege,je.Namur],cost:6},{nodes:[je.Liege,je.Maastricht],cost:3},{nodes:[je.Kortrijk,je.Dostende],cost:5},{nodes:[je.Brugge,je.Kortrijk],cost:4},{nodes:[je.Kortrijk,je.Gent],cost:4},{nodes:[je.Gent,je.Brugge],cost:3},{nodes:[je.Kortrijk,je.Bruxelles],cost:10},{nodes:[je.Bruxelles,je.Mons],cost:5},{nodes:[je.Mons,je.Kortrijk],cost:8},{nodes:[je.Gent,je.Antwerpen],cost:5},{nodes:[je.Antwerpen,je.Brussel],cost:4},{nodes:[je.Brussel,je.Gent],cost:7},{nodes:[je.Antwerpen,je.Leuven],cost:4},{nodes:[je.Mons,je.Charleroi],cost:4},{nodes:[je.Charleroi,je.Arlon],cost:18},{nodes:[je.Arlon,je.Luxembourg],cost:5},{nodes:[je.Luxembourg,je.Liege],cost:20},{nodes:[je.Liege,je.Arlon],cost:18},{nodes:[je.Arlon,je.Namur],cost:16},{nodes:[je.Tilburg,je.Enbosch],cost:3}],layout:"Portrait",mapPosition:[0,-50],adjustRatio:[1.15,1.15],resupply:[[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],[[3,4,3],[4,5,3],[5,6,4],[5,7,5],[7,9,6]],[[1,2,3],[2,2,3],[2,3,4],[3,3,5],[3,5,6]],[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]],startingResources:[18,24,6,2],viewBox:[1530,1060],playerOrderPosition:[1225,140],buttonsPosition:[1370,0],playerBoardsPosition:[1170,200],actualMarketWidth:495,mapSpecificRules:"Ecological plants can enter the market earlier. Remove smallest power plant after each round (unless discount plant was removed)."};t("9cd8");function Ge(e){}function Te(e,n){var t=Be.a.alea(n),r=new Map;return e.forEach((function(e,n){var o=t.int32();while(r.has(o))o=t.int32();r.set(o,n)})),b(r.keys()).sort().map((function(n){return e[r.get(n)]}))}var Ie,Ne,Ue=[{number:3,type:he.Oil,cost:2,citiesPowered:1},{number:4,type:he.Coal,cost:2,citiesPowered:1},{number:5,type:he.Hybrid,cost:2,citiesPowered:1},{number:6,type:he.Garbage,cost:1,citiesPowered:1},{number:7,type:he.Oil,cost:3,citiesPowered:2},{number:8,type:he.Coal,cost:3,citiesPowered:2},{number:9,type:he.Oil,cost:1,citiesPowered:1},{number:10,type:he.Coal,cost:2,citiesPowered:2},{number:11,type:he.Uranium,cost:1,citiesPowered:2},{number:12,type:he.Hybrid,cost:2,citiesPowered:2},{number:13,type:he.Wind,cost:0,citiesPowered:1},{number:14,type:he.Garbage,cost:2,citiesPowered:2},{number:15,type:he.Coal,cost:2,citiesPowered:3},{number:16,type:he.Oil,cost:2,citiesPowered:3},{number:17,type:he.Uranium,cost:1,citiesPowered:2},{number:18,type:he.Wind,cost:0,citiesPowered:2},{number:19,type:he.Garbage,cost:2,citiesPowered:3},{number:20,type:he.Coal,cost:3,citiesPowered:5},{number:21,type:he.Hybrid,cost:2,citiesPowered:4},{number:22,type:he.Wind,cost:0,citiesPowered:2},{number:23,type:he.Uranium,cost:1,citiesPowered:3},{number:24,type:he.Garbage,cost:2,citiesPowered:4},{number:25,type:he.Coal,cost:2,citiesPowered:5},{number:26,type:he.Oil,cost:2,citiesPowered:5},{number:27,type:he.Wind,cost:0,citiesPowered:3},{number:28,type:he.Uranium,cost:1,citiesPowered:4},{number:29,type:he.Hybrid,cost:1,citiesPowered:4},{number:30,type:he.Garbage,cost:3,citiesPowered:6},{number:31,type:he.Coal,cost:3,citiesPowered:6},{number:32,type:he.Oil,cost:3,citiesPowered:6},{number:33,type:he.Wind,cost:0,citiesPowered:4},{number:34,type:he.Uranium,cost:1,citiesPowered:5},{number:35,type:he.Oil,cost:1,citiesPowered:5},{number:36,type:he.Coal,cost:3,citiesPowered:7},{number:37,type:he.Wind,cost:0,citiesPowered:4},{number:38,type:he.Garbage,cost:3,citiesPowered:7},{number:39,type:he.Uranium,cost:1,citiesPowered:6},{number:40,type:he.Oil,cost:2,citiesPowered:6},{number:42,type:he.Coal,cost:2,citiesPowered:6},{number:44,type:he.Wind,cost:0,citiesPowered:5},{number:46,type:he.Hybrid,cost:3,citiesPowered:7},{number:50,type:he.Nuclear,cost:0,citiesPowered:6},{number:99,type:he.Step3,cost:0,citiesPowered:6}],Ke=Object(me["cloneDeep"])(Ue).filter((function(e){return 11!=e.number}));Ke.forEach((function(e){e.type==he.Garbage&&(e.storage=2*e.cost,e.cost++)})),function(e){e["Red"]="red",e["Pink"]="pink",e["Purple"]="purple",e["Green"]="green",e["Brown"]="brown",e["Yellow"]="yellow"}(Ie||(Ie={})),function(e){e["Parnaiba"]="Parnaiba",e["Fortaleza"]="Fortaleza",e["Sadluis"]="Sadluis",e["Belem"]="Belem",e["Teresina"]="Teresina",e["Imperatriz"]="Imperatriz",e["Maraba"]="Maraba",e["Campinagrande"]="Campina Grande",e["Petrolina"]="Petrolina",e["Natal"]="Natal",e["Joaopessoa"]="Joaopessoa",e["Recife"]="Recife",e["Maceio"]="Maceio",e["Aracaju"]="Aracaju",e["Salvadordabahia"]="Salvador Da Bahia",e["Montesclaros"]="Montes Claros",e["Brasilia"]="Brasilia",e["Palmas"]="Palmas",e["Porangatu"]="Porangatu",e["Goiania"]="Goiania",e["Uberlandia"]="Uberlandia",e["Vitoria"]="Vitoria",e["Riodejaneiro"]="Rio De Janeiro",e["Saogoncalo"]="Sao Goncalo",e["Saopaulo"]="Sao Paulo",e["Guarulhos"]="Guarulhos",e["Campinas"]="Campinas",e["Belohorizonte"]="Belo Horizonte",e["Curitiba"]="Curitiba",e["Florianopolis"]="Florianopolis",e["Portoalecre"]="Porto Alecre",e["Pelotas"]="Pelotas",e["Urucuaiana"]="Urucuaiana",e["Londrina"]="Londrina",e["Campogrande"]="Campo Grande",e["Macapa"]="Macapa",e["Boavista"]="Boavista",e["Manaus"]="Manaus",e["Portovelho"]="Porto Velho",e["Cuiaba"]="Cuiaba",e["Vilhena"]="Vilhena",e["Riobranco"]="Rio Branco"}(Ne||(Ne={}));var Fe,We,He={name:"Brazil",cities:[{name:Ne.Parnaiba,region:Ie.Red,x:855,y:458},{name:Ne.Fortaleza,region:Ie.Red,x:961,y:478},{name:Ne.Sadluis,region:Ie.Red,x:772,y:418},{name:Ne.Belem,region:Ie.Red,x:655,y:378},{name:Ne.Teresina,region:Ie.Red,x:846,y:548},{name:Ne.Imperatriz,region:Ie.Red,x:697,y:535},{name:Ne.Maraba,region:Ie.Red,x:581,y:492},{name:Ne.Campinagrande,region:Ie.Pink,x:976,y:587},{name:Ne.Petrolina,region:Ie.Pink,x:872,y:648},{name:Ne.Natal,region:Ie.Pink,x:1061,y:518},{name:Ne.Joaopessoa,region:Ie.Pink,x:1097,y:576},{name:Ne.Recife,region:Ie.Pink,x:1083,y:637},{name:Ne.Maceio,region:Ie.Pink,x:1040,y:699},{name:Ne.Aracaju,region:Ie.Pink,x:995,y:750},{name:Ne.Salvadordabahia,region:Ie.Purple,x:960,y:808},{name:Ne.Montesclaros,region:Ie.Purple,x:795,y:847},{name:Ne.Brasilia,region:Ie.Purple,x:671,y:817},{name:Ne.Palmas,region:Ie.Purple,x:648,y:663},{name:Ne.Porangatu,region:Ie.Purple,x:598,y:762},{name:Ne.Goiania,region:Ie.Purple,x:601,y:889},{name:Ne.Uberlandia,region:Ie.Purple,x:646,y:964},{name:Ne.Vitoria,region:Ie.Green,x:910,y:971},{name:Ne.Riodejaneiro,region:Ie.Green,x:795,y:1076},{name:Ne.Saogoncalo,region:Ie.Green,x:843,y:1033},{name:Ne.Saopaulo,region:Ie.Green,x:721,y:1134},{name:Ne.Guarulhos,region:Ie.Green,x:678,y:1089},{name:Ne.Campinas,region:Ie.Green,x:629,y:1037},{name:Ne.Belohorizonte,region:Ie.Green,x:771,y:960},{name:Ne.Curitiba,region:Ie.Brown,x:615,y:1144},{name:Ne.Florianopolis,region:Ie.Brown,x:665,y:1214},{name:Ne.Portoalecre,region:Ie.Brown,x:590,y:1281},{name:Ne.Pelotas,region:Ie.Brown,x:551,y:1346},{name:Ne.Urucuaiana,region:Ie.Brown,x:444,y:1250},{name:Ne.Londrina,region:Ie.Brown,x:516,y:1075},{name:Ne.Campogrande,region:Ie.Brown,x:440,y:983},{name:Ne.Macapa,region:Ie.Yellow,x:561,y:317},{name:Ne.Boavista,region:Ie.Yellow,x:308,y:269},{name:Ne.Manaus,region:Ie.Yellow,x:258,y:466},{name:Ne.Portovelho,region:Ie.Yellow,x:238,y:620},{name:Ne.Cuiaba,region:Ie.Yellow,x:432,y:850},{name:Ne.Vilhena,region:Ie.Yellow,x:328,y:741},{name:Ne.Riobranco,region:Ie.Yellow,x:87,y:666}],connections:[{nodes:[Ne.Boavista,Ne.Macapa],cost:22},{nodes:[Ne.Macapa,Ne.Belem],cost:10},{nodes:[Ne.Belem,Ne.Sadluis],cost:10},{nodes:[Ne.Sadluis,Ne.Imperatriz],cost:9},{nodes:[Ne.Belem,Ne.Imperatriz],cost:9},{nodes:[Ne.Belem,Ne.Maraba],cost:9},{nodes:[Ne.Macapa,Ne.Maraba],cost:16},{nodes:[Ne.Maraba,Ne.Manaus],cost:22},{nodes:[Ne.Macapa,Ne.Manaus],cost:18},{nodes:[Ne.Boavista,Ne.Manaus],cost:13},{nodes:[Ne.Boavista,Ne.Riobranco],cost:30},{nodes:[Ne.Riobranco,Ne.Manaus],cost:23},{nodes:[Ne.Manaus,Ne.Portovelho],cost:15},{nodes:[Ne.Portovelho,Ne.Riobranco],cost:10},{nodes:[Ne.Riobranco,Ne.Vilhena],cost:18},{nodes:[Ne.Portovelho,Ne.Vilhena],cost:12},{nodes:[Ne.Manaus,Ne.Vilhena],cost:21},{nodes:[Ne.Vilhena,Ne.Cuiaba],cost:10},{nodes:[Ne.Vilhena,Ne.Maraba],cost:31},{nodes:[Ne.Maraba,Ne.Imperatriz],cost:4},{nodes:[Ne.Sadluis,Ne.Teresina],cost:8},{nodes:[Ne.Teresina,Ne.Imperatriz],cost:11},{nodes:[Ne.Imperatriz,Ne.Palmas],cost:9},{nodes:[Ne.Palmas,Ne.Maraba],cost:10},{nodes:[Ne.Maraba,Ne.Porangatu],cost:17},{nodes:[Ne.Porangatu,Ne.Goiania],cost:8},{nodes:[Ne.Porangatu,Ne.Vilhena],cost:23},{nodes:[Ne.Cuiaba,Ne.Porangatu],cost:16},{nodes:[Ne.Porangatu,Ne.Palmas],cost:8},{nodes:[Ne.Palmas,Ne.Brasilia],cost:13},{nodes:[Ne.Brasilia,Ne.Porangatu],cost:6},{nodes:[Ne.Brasilia,Ne.Goiania],cost:4},{nodes:[Ne.Goiania,Ne.Cuiaba],cost:15},{nodes:[Ne.Sadluis,Ne.Parnaiba],cost:5},{nodes:[Ne.Parnaiba,Ne.Teresina],cost:5},{nodes:[Ne.Parnaiba,Ne.Fortaleza],cost:7},{nodes:[Ne.Fortaleza,Ne.Natal],cost:8},{nodes:[Ne.Natal,Ne.Joaopessoa],cost:3},{nodes:[Ne.Joaopessoa,Ne.Recife],cost:2},{nodes:[Ne.Recife,Ne.Maceio],cost:3},{nodes:[Ne.Maceio,Ne.Aracaju],cost:3},{nodes:[Ne.Aracaju,Ne.Salvadordabahia],cost:4},{nodes:[Ne.Natal,Ne.Campinagrande],cost:4},{nodes:[Ne.Fortaleza,Ne.Teresina],cost:10},{nodes:[Ne.Teresina,Ne.Petrolina],cost:12},{nodes:[Ne.Petrolina,Ne.Palmas],cost:19},{nodes:[Ne.Petrolina,Ne.Brasilia],cost:22},{nodes:[Ne.Petrolina,Ne.Montesclaros],cost:19},{nodes:[Ne.Montesclaros,Ne.Salvadordabahia],cost:16},{nodes:[Ne.Salvadordabahia,Ne.Petrolina],cost:10},{nodes:[Ne.Petrolina,Ne.Campinagrande],cost:12},{nodes:[Ne.Petrolina,Ne.Aracaju],cost:11},{nodes:[Ne.Vitoria,Ne.Salvadordabahia],cost:16},{nodes:[Ne.Montesclaros,Ne.Vitoria],cost:14},{nodes:[Ne.Vitoria,Ne.Saogoncalo],cost:6},{nodes:[Ne.Vitoria,Ne.Belohorizonte],cost:9},{nodes:[Ne.Belohorizonte,Ne.Montesclaros],cost:8},{nodes:[Ne.Montesclaros,Ne.Brasilia],cost:9},{nodes:[Ne.Brasilia,Ne.Uberlandia],cost:8},{nodes:[Ne.Uberlandia,Ne.Goiania],cost:7},{nodes:[Ne.Goiania,Ne.Campogrande],cost:16},{nodes:[Ne.Campogrande,Ne.Cuiaba],cost:13},{nodes:[Ne.Campogrande,Ne.Londrina],cost:10},{nodes:[Ne.Campogrande,Ne.Uberlandia],cost:13},{nodes:[Ne.Uberlandia,Ne.Londrina],cost:12},{nodes:[Ne.Londrina,Ne.Campinas],cost:9},{nodes:[Ne.Campinas,Ne.Uberlandia],cost:9},{nodes:[Ne.Uberlandia,Ne.Belohorizonte],cost:10},{nodes:[Ne.Uberlandia,Ne.Brasilia],cost:8},{nodes:[Ne.Brasilia,Ne.Belohorizonte],cost:14},{nodes:[Ne.Belohorizonte,Ne.Saogoncalo],cost:7},{nodes:[Ne.Saogoncalo,Ne.Riodejaneiro],cost:0},{nodes:[Ne.Riodejaneiro,Ne.Saopaulo],cost:7},{nodes:[Ne.Saopaulo,Ne.Guarulhos],cost:0},{nodes:[Ne.Guarulhos,Ne.Campinas],cost:0},{nodes:[Ne.Campinas,Ne.Curitiba],cost:6},{nodes:[Ne.Curitiba,Ne.Londrina],cost:7},{nodes:[Ne.Saopaulo,Ne.Florianopolis],cost:9},{nodes:[Ne.Florianopolis,Ne.Curitiba],cost:4},{nodes:[Ne.Londrina,Ne.Urucuaiana],cost:18},{nodes:[Ne.Urucuaiana,Ne.Pelotas],cost:9},{nodes:[Ne.Pelotas,Ne.Portoalecre],cost:4},{nodes:[Ne.Portoalecre,Ne.Urucuaiana],cost:10},{nodes:[Ne.Londrina,Ne.Portoalecre],cost:16},{nodes:[Ne.Portoalecre,Ne.Curitiba],cost:11},{nodes:[Ne.Portoalecre,Ne.Florianopolis],cost:7},{nodes:[Ne.Guarulhos,Ne.Belohorizonte],cost:10},{nodes:[Ne.Maceio,Ne.Campinagrande],cost:6},{nodes:[Ne.Petrolina,Ne.Fortaleza],cost:14},{nodes:[Ne.Recife,Ne.Campinagrande],cost:3}],layout:"Portrait",adjustRatio:[.85,.85],mapPosition:[-20,-130],resupply:[[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],[[3,4,3],[4,5,3],[5,6,4],[5,7,5],[7,9,6]],[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]],startingResources:[24,18,6,2],setupDeck:function(e,n,t){var r,o,a=Object(me["cloneDeep"])(Ue),i=a.filter((function(e){return e.type==he.Garbage&&e.number>14}));if("original"==n){a=a.slice(8);var s=a.splice(2,1)[0],u=a.splice(2,1)[0],c=a.pop();a=Te(a.filter((function(e){return e.type!=he.Garbage})),t()+""),2==e||3==e?a=a.slice(8):4==e&&(a=a.slice(4)),a=a.concat(i),a=Te(a,t()+""),a.unshift(u),a.unshift(s),a.push(c),r=[ot(3),ot(4),ot(5),ot(6)],o=[ot(7),ot(8),ot(9),ot(10)]}else{var l=a.splice(3,1)[0],f=a.splice(10,1)[0],d=Te(a.splice(0,11),t()+""),p=d.splice(0,6);p.push(l,f),p=p.sort((function(e,n){return e.number-n.number})),r=p.slice(0,4),o=p.slice(4);var h=d.shift(),g=a.pop();a=Te(a.filter((function(e){return e.type!=he.Garbage})),t()+""),2==e||3==e?(d=d.slice(2),a=Te(a.slice(6).concat(d),t()+"")):4==e?(d=d.slice(1),a=Te(a.slice(3).concat(d),t()+"")):a=Te(a.concat(d),t()+""),a=a.concat(i),a=Te(a,t()+""),a.unshift(h),a.push(g)}return{actualMarket:r,futureMarket:o,powerPlantsDeck:a}},mapSpecificRules:"Play with all garbage power plants."};(function(e){e["Blue"]="blue",e["Brown"]="brown",e["Purple"]="purple",e["Red"]="red",e["Yellow"]="yellow",e["Green"]="green"})(Fe||(Fe={})),function(e){e["Bialystok"]="Bialystok",e["Lublin"]="Lublin",e["Warszawa"]="Warszawa",e["Krakow"]="Krakow",e["Sosnowiec"]="Sosnowiec",e["Katowice"]="Katowice",e["Czestochowa"]="Czesto Chowa",e["Presov"]="Presov",e["Kosice"]="Kosice",e["Poprad"]="Poprad",e["Zilina"]="Zilina",e["Bratislava"]="Bratislava",e["Trnava"]="Trnava",e["Nyiregyhaza"]="Nyiregyhaza",e["Miskolc"]="Miskolc",e["Szeged"]="Szeged",e["Kecskeme"]="Kecskeme",e["Budapest"]="Budapest",e["Pecs"]="Pecs",e["Gyor"]="Gyor",e["Banskabystrica"]="Banska Bystrica",e["Goansk"]="Goansk",e["Goynia"]="Goynia",e["Byogoszcz"]="Byogoszcz",e["Wroclaw"]="Wroclaw",e["Poznan"]="Poznan",e["Szczecin"]="Szczecin",e["Lodz"]="Lodz",e["Graz"]="Graz",e["Klagenfurt"]="Klagenfurt",e["Villach"]="Villach",e["Innsbruck"]="Innsbruck",e["Salzburg"]="Salzburg",e["Linz"]="Linz",e["Wien"]="Wien",e["Hradeckralove"]="Hradec Kralove",e["Brno"]="Brno",e["Ceskebudejovice"]="Ceske Budejovice",e["Praha"]="Praha",e["Ostrava"]="Ostrava",e["Plzen"]="Plzen",e["Ustinadlaben"]="Ustinad Laben"}(We||(We={}));var Ve,Ye,$e={name:"Central Europe",cities:[{name:We.Bialystok,region:Fe.Blue,x:543,y:135},{name:We.Lublin,region:Fe.Blue,x:590,y:294},{name:We.Warszawa,region:Fe.Blue,x:482,y:253},{name:We.Krakow,region:Fe.Blue,x:533,y:443},{name:We.Sosnowiec,region:Fe.Blue,x:468,y:443},{name:We.Katowice,region:Fe.Blue,x:446,y:483},{name:We.Czestochowa,region:Fe.Blue,x:419,y:397},{name:We.Presov,region:Fe.Brown,x:619,y:487},{name:We.Kosice,region:Fe.Brown,x:646,y:538},{name:We.Poprad,region:Fe.Brown,x:565,y:529},{name:We.Zilina,region:Fe.Brown,x:476,y:551},{name:We.Bratislava,region:Fe.Brown,x:423,y:693},{name:We.Trnava,region:Fe.Brown,x:452,y:638},{name:We.Nyiregyhaza,region:Fe.Purple,x:698,y:582},{name:We.Miskolc,region:Fe.Purple,x:621,y:597},{name:We.Szeged,region:Fe.Purple,x:680,y:764},{name:We.Kecskeme,region:Fe.Purple,x:630,y:727},{name:We.Budapest,region:Fe.Purple,x:557,y:689},{name:We.Pecs,region:Fe.Purple,x:566,y:832},{name:We.Gyor,region:Fe.Purple,x:489,y:729},{name:We.Banskabystrica,region:Fe.Brown,x:525,y:601},{name:We.Goansk,region:Fe.Red,x:286,y:158},{name:We.Goynia,region:Fe.Red,x:249,y:131},{name:We.Byogoszcz,region:Fe.Red,x:297,y:257},{name:We.Wroclaw,region:Fe.Red,x:321,y:445},{name:We.Poznan,region:Fe.Red,x:261,y:342},{name:We.Szczecin,region:Fe.Red,x:110,y:316},{name:We.Lodz,region:Fe.Red,x:420,y:337},{name:We.Graz,region:Fe.Yellow,x:376,y:811},{name:We.Klagenfurt,region:Fe.Yellow,x:340,y:875},{name:We.Villach,region:Fe.Yellow,x:272,y:875},{name:We.Innsbruck,region:Fe.Yellow,x:140,y:879},{name:We.Salzburg,region:Fe.Yellow,x:209,y:805},{name:We.Linz,region:Fe.Yellow,x:265,y:744},{name:We.Wien,region:Fe.Yellow,x:366,y:701},{name:We.Hradeckralove,region:Fe.Green,x:291,y:546},{name:We.Brno,region:Fe.Green,x:354,y:597},{name:We.Ceskebudejovice,region:Fe.Green,x:248,y:670},{name:We.Praha,region:Fe.Green,x:220,y:593},{name:We.Ostrava,region:Fe.Green,x:413,y:535},{name:We.Plzen,region:Fe.Green,x:158,y:645},{name:We.Ustinadlaben,region:Fe.Green,x:165,y:537}],connections:[{nodes:[We.Goynia,We.Goansk],cost:0},{nodes:[We.Goansk,We.Byogoszcz],cost:8},{nodes:[We.Goynia,We.Szczecin],cost:17},{nodes:[We.Szczecin,We.Poznan],cost:14},{nodes:[We.Szczecin,We.Wroclaw],cost:22},{nodes:[We.Wroclaw,We.Poznan],cost:9},{nodes:[We.Poznan,We.Lodz],cost:13},{nodes:[We.Lodz,We.Byogoszcz],cost:12},{nodes:[We.Byogoszcz,We.Szczecin],cost:15},{nodes:[We.Wroclaw,We.Lodz],cost:12},{nodes:[We.Lodz,We.Czestochowa],cost:7},{nodes:[We.Czestochowa,We.Wroclaw],cost:9},{nodes:[We.Wroclaw,We.Ostrava],cost:11},{nodes:[We.Ostrava,We.Hradeckralove],cost:16},{nodes:[We.Hradeckralove,We.Wroclaw],cost:10},{nodes:[We.Wroclaw,We.Ustinadlaben],cost:17},{nodes:[We.Ustinadlaben,We.Hradeckralove],cost:10},{nodes:[We.Hradeckralove,We.Brno],cost:9},{nodes:[We.Brno,We.Ostrava],cost:12},{nodes:[We.Ostrava,We.Katowice],cost:4},{nodes:[We.Czestochowa,We.Lublin],cost:17},{nodes:[We.Lublin,We.Presov],cost:20},{nodes:[We.Presov,We.Krakow],cost:13},{nodes:[We.Krakow,We.Poprad],cost:11},{nodes:[We.Poprad,We.Zilina],cost:11},{nodes:[We.Zilina,We.Krakow],cost:12},{nodes:[We.Krakow,We.Sosnowiec],cost:4},{nodes:[We.Warszawa,We.Bialystok],cost:14},{nodes:[We.Bialystok,We.Goansk],cost:20},{nodes:[We.Byogoszcz,We.Warszawa],cost:15},{nodes:[We.Warszawa,We.Lublin],cost:10},{nodes:[We.Lodz,We.Warszawa],cost:7},{nodes:[We.Bialystok,We.Lublin],cost:15},{nodes:[We.Lublin,We.Krakow],cost:16},{nodes:[We.Poprad,We.Kosice],cost:6},{nodes:[We.Kosice,We.Nyiregyhaza],cost:8},{nodes:[We.Kosice,We.Miskolc],cost:4},{nodes:[We.Miskolc,We.Poprad],cost:9},{nodes:[We.Poprad,We.Banskabystrica],cost:11},{nodes:[We.Banskabystrica,We.Zilina],cost:6},{nodes:[We.Zilina,We.Trnava],cost:10},{nodes:[We.Zilina,We.Brno],cost:14},{nodes:[We.Brno,We.Wien],cost:8},{nodes:[We.Bratislava,We.Brno],cost:10},{nodes:[We.Brno,We.Trnava],cost:10},{nodes:[We.Trnava,We.Banskabystrica],cost:10},{nodes:[We.Banskabystrica,We.Miskolc],cost:11},{nodes:[We.Miskolc,We.Nyiregyhaza],cost:7},{nodes:[We.Nyiregyhaza,We.Szeged],cost:16},{nodes:[We.Szeged,We.Kecskeme],cost:5},{nodes:[We.Budapest,We.Trnava],cost:9},{nodes:[We.Trnava,We.Bratislava],cost:2},{nodes:[We.Bratislava,We.Wien],cost:3},{nodes:[We.Wien,We.Ceskebudejovice],cost:14},{nodes:[We.Ceskebudejovice,We.Praha],cost:10},{nodes:[We.Praha,We.Brno],cost:13},{nodes:[We.Brno,We.Ceskebudejovice],cost:15},{nodes:[We.Ceskebudejovice,We.Plzen],cost:11},{nodes:[We.Plzen,We.Praha],cost:7},{nodes:[We.Praha,We.Ustinadlaben],cost:6},{nodes:[We.Ustinadlaben,We.Plzen],cost:9},{nodes:[We.Ceskebudejovice,We.Linz],cost:8},{nodes:[We.Linz,We.Wien],cost:11},{nodes:[We.Wien,We.Graz],cost:12},{nodes:[We.Graz,We.Linz],cost:16},{nodes:[We.Linz,We.Salzburg],cost:9},{nodes:[We.Salzburg,We.Graz],cost:22},{nodes:[We.Graz,We.Gyor],cost:14},{nodes:[We.Gyor,We.Wien],cost:8},{nodes:[We.Bratislava,We.Gyor],cost:6},{nodes:[We.Gyor,We.Trnava],cost:5},{nodes:[We.Banskabystrica,We.Budapest],cost:12},{nodes:[We.Budapest,We.Gyor],cost:5},{nodes:[We.Budapest,We.Kecskeme],cost:6},{nodes:[We.Kecskeme,We.Miskolc],cost:10},{nodes:[We.Miskolc,We.Budapest],cost:9},{nodes:[We.Szeged,We.Pecs],cost:12},{nodes:[We.Pecs,We.Kecskeme],cost:11},{nodes:[We.Budapest,We.Pecs],cost:12},{nodes:[We.Pecs,We.Gyor],cost:15},{nodes:[We.Graz,We.Pecs],cost:19},{nodes:[We.Graz,We.Klagenfurt],cost:10},{nodes:[We.Klagenfurt,We.Villach],cost:4},{nodes:[We.Klagenfurt,We.Salzburg],cost:20},{nodes:[We.Salzburg,We.Innsbruck],cost:15},{nodes:[We.Innsbruck,We.Villach],cost:22},{nodes:[We.Poznan,We.Byogoszcz],cost:7},{nodes:[We.Lublin,We.Lodz],cost:16},{nodes:[We.Czestochowa,We.Sosnowiec],cost:4},{nodes:[We.Sosnowiec,We.Katowice],cost:0},{nodes:[We.Czestochowa,We.Krakow],cost:6},{nodes:[We.Poprad,We.Presov],cost:7},{nodes:[We.Presov,We.Kosice],cost:2},{nodes:[We.Ostrava,We.Zilina],cost:7},{nodes:[We.Ostrava,We.Krakow],cost:7},{nodes:[We.Praha,We.Hradeckralove],cost:8}],layout:"Portrait",mapPosition:[70,-60],adjustRatio:[1.15,1.15],startingResources:[24,18,6,5],resupply:[[[4,5,3],[5,6,3],[6,7,5],[7,8,5],[8,10,6]],[[1,2,3],[2,2,3],[2,3,4],[3,4,5],[4,5,6]],[[1,3,3],[1,3,3],[2,4,4],[3,4,5],[3,6,6]],[[1,1,1],[1,1,1],[1,2,1],[2,2,2],[2,3,2]]]};(function(e){e["Pink"]="pink",e["Green"]="green",e["Red"]="red",e["Brown"]="brown",e["Purple"]="purple",e["Yellow"]="yellow"})(Ve||(Ve={})),function(e){e["Hegang"]="Hegang",e["Qiqhaer"]="Qiqhaer",e["Haerbin"]="Haerbin",e["Jilin"]="Jilin",e["Fushun"]="Fushun",e["Anshan"]="Anshan",e["Dalian"]="Dalian",e["Shanghai"]="Shanghai",e["Hangzhou"]="Hangzhou",e["Nanjing"]="Nanjing",e["Qingoad"]="Qingoad",e["Jinan"]="Jinan",e["Zhengzhou"]="Zhengzhou",e["Shijiazhuang"]="Shijiazhuang",e["Changchun"]="Changchun",e["Shenyang"]="Shenyang",e["Tangshan"]="Tangshan",e["Tianjin"]="Tianjin",e["Beijing"]="Beijing",e["Taiyuan"]="Taiyuan",e["Badtou"]="Badtou",e["Fuzhou"]="Fuzhou",e["Nanchang"]="Nanchang",e["Chaozhou"]="Chaozhou",e["Hongkong"]="Hong Kong",e["Guangzhou"]="Guangzhou",e["Changsha"]="Changsha",e["Wuhan"]="Wuhan",e["Hami"]="Hami",e["Karamay"]="Karamay",e["Wulumuqi"]="Wulumuqi",e["Kuerle"]="Kuerle",e["Yinchjan"]="Yinchjan",e["Xining"]="Xining",e["Lanzhou"]="Lanzhou",e["Kunming"]="Kunming",e["Chengou"]="Chengou",e["Xian"]="Xian",e["Chongqing"]="Chongqing",e["Nanning"]="Nanning",e["Haikou"]="Haikou",e["Chiyang"]="Chiyang"}(Ye||(Ye={}));var qe,Ze,Je={name:"China",cities:[{name:Ye.Hegang,region:Ve.Pink,x:3920,y:290},{name:Ye.Qiqhaer,region:Ve.Pink,x:3422,y:262},{name:Ye.Haerbin,region:Ve.Pink,x:3672,y:434},{name:Ye.Jilin,region:Ve.Pink,x:3744,y:614},{name:Ye.Fushun,region:Ve.Pink,x:3712,y:784},{name:Ye.Anshan,region:Ve.Pink,x:3510,y:902},{name:Ye.Dalian,region:Ve.Pink,x:3424,y:1052},{name:Ye.Shanghai,region:Ve.Green,x:3462,y:1672},{name:Ye.Hangzhou,region:Ve.Green,x:3280,y:1824},{name:Ye.Nanjing,region:Ve.Green,x:3130,y:1632},{name:Ye.Qingoad,region:Ve.Green,x:3322,y:1316},{name:Ye.Jinan,region:Ve.Green,x:3002,y:1292},{name:Ye.Zhengzhou,region:Ve.Green,x:2778,y:1438},{name:Ye.Shijiazhuang,region:Ve.Green,x:2866,y:1152},{name:Ye.Changchun,region:Ve.Red,x:3504,y:590},{name:Ye.Shenyang,region:Ve.Red,x:3458,y:778},{name:Ye.Tangshan,region:Ve.Red,x:3158,y:908},{name:Ye.Tianjin,region:Ve.Red,x:3134,y:1016},{name:Ye.Beijing,region:Ve.Red,x:2886,y:910},{name:Ye.Taiyuan,region:Ve.Red,x:2588,y:1130},{name:Ye.Badtou,region:Ve.Red,x:2500,y:862},{name:Ye.Fuzhou,region:Ve.Brown,x:3290,y:2132},{name:Ye.Nanchang,region:Ve.Brown,x:3004,y:1974},{name:Ye.Chaozhou,region:Ve.Brown,x:3096,y:2322},{name:Ye.Hongkong,region:Ve.Brown,x:2902,y:2552},{name:Ye.Guangzhou,region:Ve.Brown,x:2694,y:2352},{name:Ye.Changsha,region:Ve.Brown,x:2682,y:1988},{name:Ye.Wuhan,region:Ve.Brown,x:2810,y:1786},{name:Ye.Hami,region:Ve.Purple,x:1816,y:698},{name:Ye.Karamay,region:Ve.Purple,x:1304,y:372},{name:Ye.Wulumuqi,region:Ve.Purple,x:1520,y:558},{name:Ye.Kuerle,region:Ve.Purple,x:1326,y:756},{name:Ye.Yinchjan,region:Ve.Purple,x:2208,y:1058},{name:Ye.Xining,region:Ve.Purple,x:1868,y:1226},{name:Ye.Lanzhou,region:Ve.Purple,x:2142,y:1328},{name:Ye.Kunming,region:Ve.Yellow,x:1840,y:2248},{name:Ye.Chengou,region:Ve.Yellow,x:1988,y:1736},{name:Ye.Xian,region:Ve.Yellow,x:2440,y:1478},{name:Ye.Chongqing,region:Ve.Yellow,x:2300,y:1880},{name:Ye.Nanning,region:Ve.Yellow,x:2318,y:2452},{name:Ye.Haikou,region:Ve.Yellow,x:2524,y:2680},{name:Ye.Chiyang,region:Ve.Yellow,x:2212,y:2112}],connections:[{nodes:[Ye.Kunming,Ye.Chengou],cost:16},{nodes:[Ye.Nanning,Ye.Haikou],cost:10},{nodes:[Ye.Guangzhou,Ye.Hongkong],cost:4},{nodes:[Ye.Guangzhou,Ye.Chaozhou],cost:7},{nodes:[Ye.Chaozhou,Ye.Hongkong],cost:7},{nodes:[Ye.Guangzhou,Ye.Haikou],cost:13},{nodes:[Ye.Nanning,Ye.Guangzhou],cost:11},{nodes:[Ye.Xining,Ye.Chengou],cost:20},{nodes:[Ye.Chengou,Ye.Chongqing],cost:6},{nodes:[Ye.Chongqing,Ye.Chiyang],cost:9},{nodes:[Ye.Chiyang,Ye.Kunming],cost:12},{nodes:[Ye.Chiyang,Ye.Nanning],cost:12},{nodes:[Ye.Chiyang,Ye.Guangzhou],cost:18},{nodes:[Ye.Guangzhou,Ye.Changsha],cost:14},{nodes:[Ye.Changsha,Ye.Chongqing],cost:16},{nodes:[Ye.Changsha,Ye.Wuhan],cost:6},{nodes:[Ye.Wuhan,Ye.Nanchang],cost:6},{nodes:[Ye.Nanchang,Ye.Changsha],cost:7},{nodes:[Ye.Changsha,Ye.Chiyang],cost:15},{nodes:[Ye.Chiyang,Ye.Chengou],cost:13},{nodes:[Ye.Guangzhou,Ye.Nanchang],cost:16},{nodes:[Ye.Nanchang,Ye.Chaozhou],cost:14},{nodes:[Ye.Chaozhou,Ye.Fuzhou],cost:9},{nodes:[Ye.Fuzhou,Ye.Nanchang],cost:13},{nodes:[Ye.Wuhan,Ye.Hangzhou],cost:13},{nodes:[Ye.Hangzhou,Ye.Fuzhou],cost:13},{nodes:[Ye.Hangzhou,Ye.Shanghai],cost:4},{nodes:[Ye.Shanghai,Ye.Nanjing],cost:6},{nodes:[Ye.Nanjing,Ye.Hangzhou],cost:5},{nodes:[Ye.Hangzhou,Ye.Nanchang],cost:10},{nodes:[Ye.Chongqing,Ye.Wuhan],cost:18},{nodes:[Ye.Lanzhou,Ye.Chengou],cost:16},{nodes:[Ye.Chengou,Ye.Xian],cost:14},{nodes:[Ye.Xian,Ye.Chongqing],cost:14},{nodes:[Ye.Xian,Ye.Wuhan],cost:15},{nodes:[Ye.Wuhan,Ye.Zhengzhou],cost:10},{nodes:[Ye.Zhengzhou,Ye.Xian],cost:10},{nodes:[Ye.Xian,Ye.Lanzhou],cost:15},{nodes:[Ye.Lanzhou,Ye.Yinchjan],cost:9},{nodes:[Ye.Yinchjan,Ye.Xining],cost:11},{nodes:[Ye.Lanzhou,Ye.Taiyuan],cost:18},{nodes:[Ye.Taiyuan,Ye.Xian],cost:12},{nodes:[Ye.Taiyuan,Ye.Zhengzhou],cost:11},{nodes:[Ye.Taiyuan,Ye.Shijiazhuang],cost:5},{nodes:[Ye.Shijiazhuang,Ye.Tianjin],cost:5},{nodes:[Ye.Shijiazhuang,Ye.Jinan],cost:6},{nodes:[Ye.Shijiazhuang,Ye.Zhengzhou],cost:9},{nodes:[Ye.Zhengzhou,Ye.Jinan],cost:7},{nodes:[Ye.Zhengzhou,Ye.Nanjing],cost:12},{nodes:[Ye.Nanjing,Ye.Wuhan],cost:10},{nodes:[Ye.Jinan,Ye.Nanjing],cost:11},{nodes:[Ye.Nanjing,Ye.Qingoad],cost:12},{nodes:[Ye.Qingoad,Ye.Jinan],cost:6},{nodes:[Ye.Jinan,Ye.Tianjin],cost:6},{nodes:[Ye.Xining,Ye.Lanzhou],cost:6},{nodes:[Ye.Yinchjan,Ye.Badtou],cost:9},{nodes:[Ye.Badtou,Ye.Taiyuan],cost:9},{nodes:[Ye.Taiyuan,Ye.Yinchjan],cost:14},{nodes:[Ye.Yinchjan,Ye.Hami],cost:25},{nodes:[Ye.Hami,Ye.Xining],cost:25},{nodes:[Ye.Wulumuqi,Ye.Kuerle],cost:9},{nodes:[Ye.Kuerle,Ye.Karamay],cost:12},{nodes:[Ye.Karamay,Ye.Wulumuqi],cost:7},{nodes:[Ye.Wulumuqi,Ye.Hami],cost:12},{nodes:[Ye.Hami,Ye.Kuerle],cost:15},{nodes:[Ye.Taiyuan,Ye.Beijing],cost:10},{nodes:[Ye.Beijing,Ye.Shijiazhuang],cost:6},{nodes:[Ye.Beijing,Ye.Tangshan],cost:3},{nodes:[Ye.Tangshan,Ye.Tianjin],cost:0},{nodes:[Ye.Beijing,Ye.Badtou],cost:14},{nodes:[Ye.Tangshan,Ye.Shenyang],cost:11},{nodes:[Ye.Dalian,Ye.Anshan],cost:6},{nodes:[Ye.Qiqhaer,Ye.Hegang],cost:11},{nodes:[Ye.Hegang,Ye.Haerbin],cost:7},{nodes:[Ye.Haerbin,Ye.Qiqhaer],cost:6},{nodes:[Ye.Changchun,Ye.Jilin],cost:5},{nodes:[Ye.Jilin,Ye.Haerbin],cost:5},{nodes:[Ye.Haerbin,Ye.Changchun],cost:5},{nodes:[Ye.Changchun,Ye.Shenyang],cost:5},{nodes:[Ye.Shenyang,Ye.Anshan],cost:2},{nodes:[Ye.Jilin,Ye.Fushun],cost:6},{nodes:[Ye.Fushun,Ye.Shenyang],cost:0},{nodes:[Ye.Changchun,Ye.Qiqhaer],cost:9}],layout:"Portrait",mapPosition:[-400,70],adjustRatio:[.35,.35],resupply:[[[4,4,3],[5,5,3],[6,6,4],[7,7,5],[9,9,6]],[[2,2,4],[3,3,4],[4,4,5],[5,5,6],[6,6,7]],[[2,2,1],[2,2,1],[3,3,2],[3,3,3],[5,5,3]],[[1,1,1],[1,1,1],[2,2,2],[3,3,2],[3,3,3]]],startingResources:[12,12,6,0],setupDeck:function(e,n,t){var r=Object(me["cloneDeep"])(Ue),o=[];2==e||3==e?o=[3,4,9,11,16,18,20,24,30,33,46]:4==e?o=[3,4,11,18,24,33,46]:5!=e&&6!=e||(o=[3,4,33]);var a=r.filter((function(e){return!o.includes(e.number)})),i=a.filter((function(e){return e.number<=30})),s=a.filter((function(e){return e.type==he.Step3})),u=Te(a.filter((function(e){return e.number>=31&&e.number<=35})).concat(s),t()+""),c=Te(a.filter((function(e){return e.number>=36&&e.number<=50})),t()+""),l=i.splice(0,e),f=[],d=i.concat(u).concat(c);return{actualMarket:l,futureMarket:f,powerPlantsDeck:d}},mapSpecificRules:"The power plant deck is arranged as follows: plants from 3-30 in order, plants from 31-35 and step 3 card shuffled, plants from 36-50 shuffled.\nThe same set of plants are removed in every game.\nThere are several changes to when new plants are drawn. In particular, during steps 1 and 2, plants are only drawn from the deck during the bureaucracy phase."};(function(e){e["Brown"]="brown",e["Purple"]="purple",e["Blue"]="blue",e["Yellow"]="yellow",e["Green"]="green",e["Red"]="red"})(qe||(qe={})),function(e){e["Calais"]="Calais",e["Lile"]="Lile",e["Amiens"]="Amiens",e["Reims"]="Reims",e["Metz"]="Metz",e["Nancy"]="Nancy",e["Strasbourg"]="Strasbourg",e["Havre"]="Havre",e["Caen"]="Caen",e["Brest"]="Brest",e["Rennes"]="Rennes",e["Lemans"]="Le Mans",e["Angers"]="Angers",e["Rouen"]="Rouen",e["Paris1"]="Paris 1",e["Paris2"]="Paris 2",e["Paris3"]="Paris 3",e["Orleans"]="Orleans",e["Tours"]="Tours",e["Limoges"]="Limoges",e["Clermontferrand"]="Clermont-Ferrand",e["Besancon"]="Besancon",e["Dijon"]="Dijon",e["Lyon"]="Lyon",e["Chamonix"]="Chamonix",e["Mulhouse"]="Mulhouse",e["Grenoble"]="Grenoble",e["Saintetienne"]="Saint-Etienne",e["Nice"]="Nice",e["Toulon"]="Toulon",e["Aimenprovence"]="Aim-En-Provence",e["Marseille"]="Marseille",e["Nimes"]="Nimes",e["Montpellier"]="Montpellier",e["Perpignan"]="Perpignan",e["Nantes"]="Nantes",e["Larochelle"]="La Rochelle",e["Bordeaux"]="Bordeaux",e["Biarritz"]="Biarritz",e["Toulous"]="Toulous",e["Carcassone"]="Carcas Sone",e["Lourdes"]="Lourdes"}(Ze||(Ze={}));var Xe,Qe,en={name:"France",cities:[{name:Ze.Calais,region:qe.Brown,x:661,y:294},{name:Ze.Lile,region:qe.Brown,x:791,y:328},{name:Ze.Amiens,region:qe.Brown,x:700,y:433},{name:Ze.Reims,region:qe.Brown,x:888,y:531},{name:Ze.Metz,region:qe.Brown,x:1076,y:528},{name:Ze.Nancy,region:qe.Brown,x:1078,y:643},{name:Ze.Strasbourg,region:qe.Brown,x:1208,y:615},{name:Ze.Havre,region:qe.Purple,x:487,y:471},{name:Ze.Caen,region:qe.Purple,x:423,y:567},{name:Ze.Brest,region:qe.Purple,x:79,y:654},{name:Ze.Rennes,region:qe.Purple,x:326,y:695},{name:Ze.Lemans,region:qe.Purple,x:516,y:699},{name:Ze.Angers,region:qe.Purple,x:446,y:798},{name:Ze.Rouen,region:qe.Purple,x:598,y:506},{name:Ze.Paris1,region:qe.Blue,x:693,y:553},{name:Ze.Paris2,region:qe.Blue,x:779,y:566},{name:Ze.Paris3,region:qe.Blue,x:722,y:633},{name:Ze.Orleans,region:qe.Blue,x:684,y:736},{name:Ze.Tours,region:qe.Blue,x:564,y:813},{name:Ze.Limoges,region:qe.Blue,x:605,y:1009},{name:Ze.Clermontferrand,region:qe.Blue,x:777,y:1017},{name:Ze.Besancon,region:qe.Yellow,x:1084,y:828},{name:Ze.Dijon,region:qe.Yellow,x:964,y:801},{name:Ze.Lyon,region:qe.Yellow,x:964,y:973},{name:Ze.Chamonix,region:qe.Yellow,x:1153,y:987},{name:Ze.Mulhouse,region:qe.Yellow,x:1180,y:742},{name:Ze.Grenoble,region:qe.Yellow,x:1048,y:1116},{name:Ze.Saintetienne,region:qe.Yellow,x:892,y:1088},{name:Ze.Nice,region:qe.Green,x:1178,y:1302},{name:Ze.Toulon,region:qe.Green,x:1070,y:1397},{name:Ze.Aimenprovence,region:qe.Green,x:1016,y:1304},{name:Ze.Marseille,region:qe.Green,x:954,y:1369},{name:Ze.Nimes,region:qe.Green,x:889,y:1256},{name:Ze.Montpellier,region:qe.Green,x:816,y:1330},{name:Ze.Perpignan,region:qe.Green,x:767,y:1460},{name:Ze.Nantes,region:qe.Red,x:330,y:833},{name:Ze.Larochelle,region:qe.Red,x:379,y:959},{name:Ze.Bordeaux,region:qe.Red,x:435,y:1148},{name:Ze.Biarritz,region:qe.Red,x:345,y:1328},{name:Ze.Toulous,region:qe.Red,x:621,y:1309},{name:Ze.Carcassone,region:qe.Red,x:700,y:1382},{name:Ze.Lourdes,region:qe.Red,x:479,y:1393}],connections:[{nodes:[Ze.Calais,Ze.Havre],cost:13},{nodes:[Ze.Calais,Ze.Lile],cost:7},{nodes:[Ze.Calais,Ze.Amiens],cost:8},{nodes:[Ze.Lile,Ze.Reims],cost:9},{nodes:[Ze.Havre,Ze.Rouen],cost:5},{nodes:[Ze.Havre,Ze.Caen],cost:5},{nodes:[Ze.Caen,Ze.Rennes],cost:12},{nodes:[Ze.Rennes,Ze.Brest],cost:16},{nodes:[Ze.Brest,Ze.Nantes],cost:19},{nodes:[Ze.Rennes,Ze.Nantes],cost:7},{nodes:[Ze.Rennes,Ze.Angers],cost:7},{nodes:[Ze.Rennes,Ze.Lemans],cost:9},{nodes:[Ze.Caen,Ze.Lemans],cost:10},{nodes:[Ze.Lemans,Ze.Paris3],cost:10},{nodes:[Ze.Paris3,Ze.Caen],cost:12},{nodes:[Ze.Caen,Ze.Rouen],cost:9},{nodes:[Ze.Rouen,Ze.Paris1],cost:9},{nodes:[Ze.Rouen,Ze.Amiens],cost:6},{nodes:[Ze.Lile,Ze.Amiens],cost:7},{nodes:[Ze.Amiens,Ze.Reims],cost:11},{nodes:[Ze.Reims,Ze.Metz],cost:12},{nodes:[Ze.Metz,Ze.Strasbourg],cost:11},{nodes:[Ze.Strasbourg,Ze.Nancy],cost:10},{nodes:[Ze.Strasbourg,Ze.Mulhouse],cost:6},{nodes:[Ze.Mulhouse,Ze.Besancon],cost:8},{nodes:[Ze.Besancon,Ze.Nancy],cost:14},{nodes:[Ze.Nancy,Ze.Dijon],cost:15},{nodes:[Ze.Reims,Ze.Nancy],cost:13},{nodes:[Ze.Nancy,Ze.Paris2],cost:21},{nodes:[Ze.Paris1,Ze.Paris2],cost:0},{nodes:[Ze.Paris1,Ze.Paris3],cost:0},{nodes:[Ze.Paris2,Ze.Dijon],cost:20},{nodes:[Ze.Dijon,Ze.Orleans],cost:18},{nodes:[Ze.Orleans,Ze.Lemans],cost:8},{nodes:[Ze.Lemans,Ze.Tours],cost:5},{nodes:[Ze.Tours,Ze.Orleans],cost:7},{nodes:[Ze.Paris1,Ze.Amiens],cost:9},{nodes:[Ze.Dijon,Ze.Clermontferrand],cost:19},{nodes:[Ze.Clermontferrand,Ze.Limoges],cost:12},{nodes:[Ze.Limoges,Ze.Toulous],cost:19},{nodes:[Ze.Toulous,Ze.Clermontferrand],cost:24},{nodes:[Ze.Clermontferrand,Ze.Montpellier],cost:22},{nodes:[Ze.Montpellier,Ze.Nimes],cost:3},{nodes:[Ze.Saintetienne,Ze.Grenoble],cost:10},{nodes:[Ze.Grenoble,Ze.Chamonix],cost:12},{nodes:[Ze.Chamonix,Ze.Besancon],cost:19},{nodes:[Ze.Besancon,Ze.Dijon],cost:6},{nodes:[Ze.Dijon,Ze.Lyon],cost:13},{nodes:[Ze.Lyon,Ze.Clermontferrand],cost:11},{nodes:[Ze.Saintetienne,Ze.Montpellier],cost:18},{nodes:[Ze.Saintetienne,Ze.Nimes],cost:16},{nodes:[Ze.Nimes,Ze.Aimenprovence],cost:8},{nodes:[Ze.Aimenprovence,Ze.Nice],cost:8},{nodes:[Ze.Nice,Ze.Toulon],cost:7},{nodes:[Ze.Toulon,Ze.Marseille],cost:3},{nodes:[Ze.Marseille,Ze.Aimenprovence],cost:0},{nodes:[Ze.Nice,Ze.Grenoble],cost:19},{nodes:[Ze.Grenoble,Ze.Aimenprovence],cost:17},{nodes:[Ze.Grenoble,Ze.Nimes],cost:18},{nodes:[Ze.Montpellier,Ze.Toulous],cost:14},{nodes:[Ze.Toulous,Ze.Bordeaux],cost:14},{nodes:[Ze.Bordeaux,Ze.Limoges],cost:13},{nodes:[Ze.Limoges,Ze.Tours],cost:13},{nodes:[Ze.Tours,Ze.Larochelle],cost:13},{nodes:[Ze.Larochelle,Ze.Angers],cost:12},{nodes:[Ze.Angers,Ze.Lemans],cost:5},{nodes:[Ze.Angers,Ze.Nantes],cost:5},{nodes:[Ze.Nantes,Ze.Larochelle],cost:9},{nodes:[Ze.Larochelle,Ze.Bordeaux],cost:13},{nodes:[Ze.Bordeaux,Ze.Biarritz],cost:12},{nodes:[Ze.Bordeaux,Ze.Lourdes],cost:14},{nodes:[Ze.Lourdes,Ze.Biarritz],cost:9},{nodes:[Ze.Lourdes,Ze.Toulous],cost:10},{nodes:[Ze.Lourdes,Ze.Carcassone],cost:15},{nodes:[Ze.Lourdes,Ze.Perpignan],cost:20},{nodes:[Ze.Perpignan,Ze.Carcassone],cost:6},{nodes:[Ze.Carcassone,Ze.Toulous],cost:6},{nodes:[Ze.Carcassone,Ze.Montpellier],cost:9},{nodes:[Ze.Montpellier,Ze.Perpignan],cost:11},{nodes:[Ze.Orleans,Ze.Limoges],cost:19},{nodes:[Ze.Orleans,Ze.Clermontferrand],cost:18},{nodes:[Ze.Paris3,Ze.Orleans],cost:7},{nodes:[Ze.Angers,Ze.Tours],cost:6},{nodes:[Ze.Larochelle,Ze.Limoges],cost:13},{nodes:[Ze.Nancy,Ze.Metz],cost:3},{nodes:[Ze.Nancy,Ze.Mulhouse],cost:12},{nodes:[Ze.Besancon,Ze.Lyon],cost:16},{nodes:[Ze.Lyon,Ze.Grenoble],cost:7},{nodes:[Ze.Lyon,Ze.Chamonix],cost:13},{nodes:[Ze.Lyon,Ze.Saintetienne],cost:6},{nodes:[Ze.Saintetienne,Ze.Clermontferrand],cost:10},{nodes:[Ze.Paris2,Ze.Reims],cost:9},{nodes:[Ze.Paris3,Ze.Paris2],cost:0}],layout:"Portrait",mapPosition:[50,-100],adjustRatio:[.7,.7],resupply:[[[3,4,3],[4,5,3],[5,6,4],[5,7,5],[7,9,6]],[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]],startingResources:[24,18,6,8],setupDeck:function(e,n,t){var r,o,a=Object(me["cloneDeep"])(Ue);if("original"==n){a=a.slice(8);var i=a.splice(0,1)[0];a.splice(1,1)[0];var s=a.pop();a=Te(a,t()+""),2==e||3==e?a=a.slice(8):4==e&&(a=a.slice(4)),a.unshift(i),a.push(s),r=[ot(3),ot(4),ot(5),ot(6)],o=[ot(7),ot(8),ot(9),ot(10)]}else{a.splice(10,1)[0];var u=a.splice(8,1)[0],c=Te(a.splice(0,11),t()+""),l=c.splice(0,7);l.push(u),l=l.sort((function(e,n){return e.number-n.number})),r=l.slice(0,4),o=l.slice(4);var f=c.shift(),d=a.pop();a=Te(a,t()+""),2==e?a=Te(a.slice(6).concat(c),t()+""):3==e?(c=c.slice(1),a=Te(a.slice(6).concat(c),t()+"")):a=Te(4==e?a.slice(3).concat(c):a.concat(c),t()+""),a.unshift(f),a.push(d)}return{actualMarket:r,futureMarket:o,powerPlantsDeck:a}},mapSpecificRules:"Remove power plant 13. Put power plant 11 on top of the deck."};(function(e){e["Purple"]="purple",e["Green"]="green",e["Red"]="red",e["Yellow"]="yellow",e["Cyan"]="cyan",e["Brown"]="brown"})(Xe||(Xe={})),function(e){e["Flensburg"]="Flensburg",e["Kiel"]="Kiel",e["Hamburg"]="Hamburg",e["Hannover"]="Hannover",e["Bremen"]="Bremen",e["Wilhelmshaven"]="Wilhelmshaven",e["Cuxhaven"]="Cuxhaven",e["Lubeck"]="Lubeck",e["Rostock"]="Rostock",e["Schwerin"]="Schwerin",e["Torgelow"]="Torgelow",e["Magdeburg"]="Magdeburg",e["Berlin"]="Berlin",e["FrankfurtO"]="Frankfurt-O",e["Halle"]="Halle",e["Leipzig"]="Leipzig",e["Dresden"]="Dresden",e["Erfurt"]="Erfurt",e["Fulda"]="Fulda",e["Würzburg"]="Würzburg",e["Nurnberg"]="Nurnberg",e["Osnabrück"]="Osnabrück",e["Münster"]="Münster",e["Essen"]="Essen",e["Duisburg"]="Duisburg",e["Dortmund"]="Dortmund",e["Dusseldorf"]="Dusseldorf",e["Kassel"]="Kassel",e["Aachen"]="Aachen",e["Köln"]="Köln",e["Trier"]="Trier",e["Wiesbaden"]="Wiesbaden",e["FrankfurtM"]="Frankfurt-M",e["Saarbrücken"]="Saarbrücken",e["Mannheim"]="Mannheim",e["Freiburg"]="Freiburg",e["Stuttgart"]="Stuttgart",e["Konstanz"]="Konstanz",e["Augsburg"]="Augsburg",e["Regensburg"]="Regensburg",e["München"]="München",e["Passau"]="Passau",e["Stralsund"]="Stralsund",e["Mainz"]="Mainz"}(Qe||(Qe={}));var nn,tn,rn={name:"Germany",cities:[{name:Qe.Flensburg,region:Xe.Green,x:37,y:427},{name:Qe.Kiel,region:Xe.Green,x:106,y:392},{name:Qe.Hamburg,region:Xe.Green,x:212,y:396},{name:Qe.Hannover,region:Xe.Green,x:378,y:395},{name:Qe.Bremen,region:Xe.Green,x:276,y:463},{name:Qe.Wilhelmshaven,region:Xe.Green,x:211,y:521},{name:Qe.Cuxhaven,region:Xe.Green,x:168,y:474},{name:Qe.Lubeck,region:Xe.Brown,x:153,y:341},{name:Qe.Rostock,region:Xe.Brown,x:128,y:256},{name:Qe.Schwerin,region:Xe.Brown,x:217,y:297},{name:Qe.Torgelow,region:Xe.Brown,x:210,y:126},{name:Qe.Magdeburg,region:Xe.Brown,x:389,y:271},{name:Qe.Berlin,region:Xe.Brown,x:355,y:170},{name:Qe.FrankfurtO,region:Xe.Brown,x:381,y:99},{name:Qe.Halle,region:Xe.Yellow,x:493,y:259},{name:Qe.Leipzig,region:Xe.Yellow,x:526,y:222},{name:Qe.Dresden,region:Xe.Yellow,x:572,y:126},{name:Qe.Erfurt,region:Xe.Yellow,x:567,y:309},{name:Qe.Fulda,region:Xe.Yellow,x:628,y:398},{name:Qe.Würzburg,region:Xe.Yellow,x:735,y:386},{name:Qe.Nurnberg,region:Xe.Yellow,x:780,y:309},{name:Qe.Osnabrück,region:Xe.Red,x:359,y:516},{name:Qe.Münster,region:Xe.Red,x:427,y:554},{name:Qe.Essen,region:Xe.Red,x:475,y:603},{name:Qe.Duisburg,region:Xe.Red,x:456,y:645},{name:Qe.Dortmund,region:Xe.Red,x:505,y:543},{name:Qe.Dusseldorf,region:Xe.Red,x:537,y:635},{name:Qe.Kassel,region:Xe.Red,x:524,y:430},{name:Qe.Aachen,region:Xe.Cyan,x:614,y:654},{name:Qe.Köln,region:Xe.Cyan,x:590,y:589},{name:Qe.Trier,region:Xe.Cyan,x:739,y:628},{name:Qe.Wiesbaden,region:Xe.Cyan,x:697,y:514},{name:Qe.FrankfurtM,region:Xe.Cyan,x:672,y:473},{name:Qe.Saarbrücken,region:Xe.Cyan,x:818,y:568},{name:Qe.Mannheim,region:Xe.Cyan,x:796,y:479},{name:Qe.Freiburg,region:Xe.Purple,x:966,y:537},{name:Qe.Stuttgart,region:Xe.Purple,x:884,y:458},{name:Qe.Konstanz,region:Xe.Purple,x:1011,y:459},{name:Qe.Augsburg,region:Xe.Purple,x:911,y:346},{name:Qe.Regensburg,region:Xe.Purple,x:846,y:256},{name:Qe.München,region:Xe.Purple,x:967,y:278},{name:Qe.Passau,region:Xe.Purple,x:904,y:153}],connections:[{nodes:[Qe.Flensburg,Qe.Kiel],cost:4},{nodes:[Qe.Kiel,Qe.Hamburg],cost:8},{nodes:[Qe.Kiel,Qe.Lubeck],cost:4},{nodes:[Qe.Hamburg,Qe.Hannover],cost:17},{nodes:[Qe.Hamburg,Qe.Bremen],cost:11},{nodes:[Qe.Hamburg,Qe.Cuxhaven],cost:11},{nodes:[Qe.Hamburg,Qe.Lubeck],cost:6},{nodes:[Qe.Hamburg,Qe.Schwerin],cost:8},{nodes:[Qe.Bremen,Qe.Wilhelmshaven],cost:11},{nodes:[Qe.Bremen,Qe.Hannover],cost:10},{nodes:[Qe.Bremen,Qe.Cuxhaven],cost:8},{nodes:[Qe.Bremen,Qe.Osnabrück],cost:11},{nodes:[Qe.Hannover,Qe.Schwerin],cost:19},{nodes:[Qe.Hannover,Qe.Magdeburg],cost:15},{nodes:[Qe.Hannover,Qe.Erfurt],cost:19},{nodes:[Qe.Hannover,Qe.Osnabrück],cost:16},{nodes:[Qe.Hannover,Qe.Kassel],cost:15},{nodes:[Qe.Wilhelmshaven,Qe.Osnabrück],cost:14},{nodes:[Qe.Lubeck,Qe.Schwerin],cost:6},{nodes:[Qe.Schwerin,Qe.Rostock],cost:6},{nodes:[Qe.Schwerin,Qe.Torgelow],cost:19},{nodes:[Qe.Schwerin,Qe.Berlin],cost:18},{nodes:[Qe.Schwerin,Qe.Magdeburg],cost:16},{nodes:[Qe.Torgelow,Qe.Rostock],cost:19},{nodes:[Qe.Torgelow,Qe.Berlin],cost:15},{nodes:[Qe.Berlin,Qe.Magdeburg],cost:10},{nodes:[Qe.Berlin,Qe.FrankfurtO],cost:6},{nodes:[Qe.Berlin,Qe.Halle],cost:17},{nodes:[Qe.Magdeburg,Qe.Halle],cost:11},{nodes:[Qe.FrankfurtO,Qe.Leipzig],cost:21},{nodes:[Qe.FrankfurtO,Qe.Dresden],cost:16},{nodes:[Qe.Halle,Qe.Leipzig],cost:0},{nodes:[Qe.Leipzig,Qe.Dresden],cost:13},{nodes:[Qe.Erfurt,Qe.Halle],cost:6},{nodes:[Qe.Erfurt,Qe.Dresden],cost:19},{nodes:[Qe.Erfurt,Qe.Nurnberg],cost:21},{nodes:[Qe.Erfurt,Qe.Fulda],cost:13},{nodes:[Qe.Erfurt,Qe.Kassel],cost:15},{nodes:[Qe.Fulda,Qe.Würzburg],cost:11},{nodes:[Qe.Fulda,Qe.Kassel],cost:8},{nodes:[Qe.Fulda,Qe.FrankfurtM],cost:8},{nodes:[Qe.Würzburg,Qe.Nurnberg],cost:8},{nodes:[Qe.Würzburg,Qe.FrankfurtM],cost:13},{nodes:[Qe.Würzburg,Qe.Mannheim],cost:10},{nodes:[Qe.Würzburg,Qe.Stuttgart],cost:12},{nodes:[Qe.Würzburg,Qe.Augsburg],cost:19},{nodes:[Qe.Nurnberg,Qe.Augsburg],cost:18},{nodes:[Qe.Nurnberg,Qe.Regensburg],cost:12},{nodes:[Qe.Osnabrück,Qe.Münster],cost:7},{nodes:[Qe.Osnabrück,Qe.Kassel],cost:20},{nodes:[Qe.Münster,Qe.Essen],cost:6},{nodes:[Qe.Münster,Qe.Dortmund],cost:2},{nodes:[Qe.Essen,Qe.Duisburg],cost:0},{nodes:[Qe.Essen,Qe.Dusseldorf],cost:2},{nodes:[Qe.Essen,Qe.Dortmund],cost:4},{nodes:[Qe.Dortmund,Qe.Kassel],cost:18},{nodes:[Qe.Dortmund,Qe.Köln],cost:10},{nodes:[Qe.Dortmund,Qe.FrankfurtM],cost:20},{nodes:[Qe.Kassel,Qe.FrankfurtM],cost:13},{nodes:[Qe.Dusseldorf,Qe.Aachen],cost:9},{nodes:[Qe.Dusseldorf,Qe.Köln],cost:4},{nodes:[Qe.Aachen,Qe.Köln],cost:7},{nodes:[Qe.Aachen,Qe.Trier],cost:19},{nodes:[Qe.Trier,Qe.Köln],cost:20},{nodes:[Qe.Trier,Qe.Wiesbaden],cost:18},{nodes:[Qe.Trier,Qe.Saarbrücken],cost:11},{nodes:[Qe.Wiesbaden,Qe.FrankfurtM],cost:0},{nodes:[Qe.Wiesbaden,Qe.Köln],cost:21},{nodes:[Qe.Wiesbaden,Qe.Saarbrücken],cost:10},{nodes:[Qe.Wiesbaden,Qe.Mannheim],cost:11},{nodes:[Qe.Mannheim,Qe.Saarbrücken],cost:11},{nodes:[Qe.Mannheim,Qe.Stuttgart],cost:6},{nodes:[Qe.Stuttgart,Qe.Saarbrücken],cost:17},{nodes:[Qe.Stuttgart,Qe.Freiburg],cost:16},{nodes:[Qe.Stuttgart,Qe.Konstanz],cost:16},{nodes:[Qe.Stuttgart,Qe.Augsburg],cost:15},{nodes:[Qe.Konstanz,Qe.Freiburg],cost:14},{nodes:[Qe.Konstanz,Qe.Augsburg],cost:17},{nodes:[Qe.Regensburg,Qe.Augsburg],cost:13},{nodes:[Qe.Regensburg,Qe.München],cost:10},{nodes:[Qe.Regensburg,Qe.Passau],cost:12},{nodes:[Qe.Augsburg,Qe.München],cost:6},{nodes:[Qe.Passau,Qe.München],cost:14}],layout:"Landscape",mapPosition:[20,20]},on={name:"Germany",cities:[{name:Qe.Flensburg,region:Xe.Green,x:37,y:427},{name:Qe.Kiel,region:Xe.Green,x:106,y:392},{name:Qe.Hamburg,region:Xe.Green,x:212,y:396},{name:Qe.Hannover,region:Xe.Green,x:378,y:395},{name:Qe.Bremen,region:Xe.Green,x:276,y:463},{name:Qe.Wilhelmshaven,region:Xe.Green,x:211,y:521},{name:Qe.Cuxhaven,region:Xe.Green,x:168,y:474},{name:Qe.Lubeck,region:Xe.Brown,x:153,y:341},{name:Qe.Rostock,region:Xe.Brown,x:128,y:256},{name:Qe.Schwerin,region:Xe.Brown,x:217,y:297},{name:Qe.Stralsund,region:Xe.Brown,x:210,y:126},{name:Qe.Magdeburg,region:Xe.Brown,x:389,y:271},{name:Qe.Berlin,region:Xe.Brown,x:355,y:170},{name:Qe.FrankfurtO,region:Xe.Brown,x:381,y:99},{name:Qe.Halle,region:Xe.Yellow,x:493,y:259},{name:Qe.Leipzig,region:Xe.Yellow,x:526,y:222},{name:Qe.Dresden,region:Xe.Yellow,x:572,y:126},{name:Qe.Erfurt,region:Xe.Yellow,x:567,y:309},{name:Qe.Fulda,region:Xe.Yellow,x:628,y:398},{name:Qe.Würzburg,region:Xe.Yellow,x:735,y:386},{name:Qe.Nurnberg,region:Xe.Yellow,x:780,y:309},{name:Qe.Osnabrück,region:Xe.Red,x:359,y:516},{name:Qe.Münster,region:Xe.Red,x:427,y:554},{name:Qe.Essen,region:Xe.Red,x:475,y:603},{name:Qe.Duisburg,region:Xe.Red,x:456,y:645},{name:Qe.Dortmund,region:Xe.Red,x:505,y:543},{name:Qe.Dusseldorf,region:Xe.Red,x:537,y:635},{name:Qe.Kassel,region:Xe.Red,x:524,y:430},{name:Qe.Aachen,region:Xe.Cyan,x:614,y:654},{name:Qe.Köln,region:Xe.Cyan,x:590,y:589},{name:Qe.Trier,region:Xe.Cyan,x:739,y:628},{name:Qe.Mainz,region:Xe.Cyan,x:697,y:514},{name:Qe.FrankfurtM,region:Xe.Cyan,x:672,y:473},{name:Qe.Saarbrücken,region:Xe.Cyan,x:818,y:568},{name:Qe.Mannheim,region:Xe.Cyan,x:796,y:479},{name:Qe.Freiburg,region:Xe.Purple,x:966,y:537},{name:Qe.Stuttgart,region:Xe.Purple,x:884,y:458},{name:Qe.Konstanz,region:Xe.Purple,x:1011,y:459},{name:Qe.Augsburg,region:Xe.Purple,x:911,y:346},{name:Qe.Regensburg,region:Xe.Purple,x:846,y:256},{name:Qe.München,region:Xe.Purple,x:967,y:278},{name:Qe.Passau,region:Xe.Purple,x:904,y:153}],connections:[{nodes:[Qe.Flensburg,Qe.Kiel],cost:4},{nodes:[Qe.Kiel,Qe.Hamburg],cost:8},{nodes:[Qe.Kiel,Qe.Lubeck],cost:4},{nodes:[Qe.Hamburg,Qe.Hannover],cost:17},{nodes:[Qe.Hamburg,Qe.Bremen],cost:11},{nodes:[Qe.Hamburg,Qe.Cuxhaven],cost:11},{nodes:[Qe.Hamburg,Qe.Lubeck],cost:6},{nodes:[Qe.Hamburg,Qe.Schwerin],cost:8},{nodes:[Qe.Bremen,Qe.Wilhelmshaven],cost:11},{nodes:[Qe.Bremen,Qe.Hannover],cost:10},{nodes:[Qe.Bremen,Qe.Cuxhaven],cost:8},{nodes:[Qe.Bremen,Qe.Osnabrück],cost:11},{nodes:[Qe.Hannover,Qe.Schwerin],cost:19},{nodes:[Qe.Hannover,Qe.Magdeburg],cost:15},{nodes:[Qe.Hannover,Qe.Erfurt],cost:19},{nodes:[Qe.Hannover,Qe.Osnabrück],cost:16},{nodes:[Qe.Hannover,Qe.Kassel],cost:15},{nodes:[Qe.Wilhelmshaven,Qe.Osnabrück],cost:14},{nodes:[Qe.Lubeck,Qe.Schwerin],cost:6},{nodes:[Qe.Schwerin,Qe.Rostock],cost:6},{nodes:[Qe.Schwerin,Qe.Stralsund],cost:19},{nodes:[Qe.Schwerin,Qe.Berlin],cost:18},{nodes:[Qe.Schwerin,Qe.Magdeburg],cost:16},{nodes:[Qe.Stralsund,Qe.Rostock],cost:19},{nodes:[Qe.Stralsund,Qe.Berlin],cost:15},{nodes:[Qe.Berlin,Qe.Magdeburg],cost:10},{nodes:[Qe.Berlin,Qe.FrankfurtO],cost:6},{nodes:[Qe.Berlin,Qe.Halle],cost:17},{nodes:[Qe.Magdeburg,Qe.Halle],cost:11},{nodes:[Qe.FrankfurtO,Qe.Leipzig],cost:21},{nodes:[Qe.FrankfurtO,Qe.Dresden],cost:16},{nodes:[Qe.Halle,Qe.Leipzig],cost:0},{nodes:[Qe.Leipzig,Qe.Dresden],cost:13},{nodes:[Qe.Erfurt,Qe.Halle],cost:6},{nodes:[Qe.Erfurt,Qe.Dresden],cost:19},{nodes:[Qe.Erfurt,Qe.Nurnberg],cost:21},{nodes:[Qe.Erfurt,Qe.Fulda],cost:13},{nodes:[Qe.Erfurt,Qe.Kassel],cost:15},{nodes:[Qe.Fulda,Qe.Würzburg],cost:11},{nodes:[Qe.Fulda,Qe.Kassel],cost:8},{nodes:[Qe.Fulda,Qe.FrankfurtM],cost:8},{nodes:[Qe.Würzburg,Qe.Nurnberg],cost:8},{nodes:[Qe.Würzburg,Qe.FrankfurtM],cost:13},{nodes:[Qe.Würzburg,Qe.Mannheim],cost:10},{nodes:[Qe.Würzburg,Qe.Stuttgart],cost:12},{nodes:[Qe.Würzburg,Qe.Augsburg],cost:19},{nodes:[Qe.Nurnberg,Qe.Augsburg],cost:18},{nodes:[Qe.Nurnberg,Qe.Regensburg],cost:12},{nodes:[Qe.Osnabrück,Qe.Münster],cost:7},{nodes:[Qe.Osnabrück,Qe.Kassel],cost:20},{nodes:[Qe.Münster,Qe.Essen],cost:6},{nodes:[Qe.Münster,Qe.Dortmund],cost:2},{nodes:[Qe.Essen,Qe.Duisburg],cost:0},{nodes:[Qe.Essen,Qe.Dusseldorf],cost:2},{nodes:[Qe.Essen,Qe.Dortmund],cost:5},{nodes:[Qe.Dortmund,Qe.Kassel],cost:18},{nodes:[Qe.Dortmund,Qe.Köln],cost:10},{nodes:[Qe.Dortmund,Qe.FrankfurtM],cost:20},{nodes:[Qe.Kassel,Qe.FrankfurtM],cost:13},{nodes:[Qe.Dusseldorf,Qe.Aachen],cost:9},{nodes:[Qe.Dusseldorf,Qe.Köln],cost:4},{nodes:[Qe.Aachen,Qe.Köln],cost:7},{nodes:[Qe.Aachen,Qe.Trier],cost:19},{nodes:[Qe.Trier,Qe.Köln],cost:20},{nodes:[Qe.Trier,Qe.Mainz],cost:18},{nodes:[Qe.Trier,Qe.Saarbrücken],cost:11},{nodes:[Qe.Mainz,Qe.FrankfurtM],cost:0},{nodes:[Qe.Mainz,Qe.Köln],cost:21},{nodes:[Qe.Mainz,Qe.Saarbrücken],cost:10},{nodes:[Qe.Mainz,Qe.Mannheim],cost:11},{nodes:[Qe.Mannheim,Qe.Saarbrücken],cost:16},{nodes:[Qe.Mannheim,Qe.Stuttgart],cost:6},{nodes:[Qe.Stuttgart,Qe.Saarbrücken],cost:17},{nodes:[Qe.Stuttgart,Qe.Freiburg],cost:16},{nodes:[Qe.Stuttgart,Qe.Konstanz],cost:16},{nodes:[Qe.Stuttgart,Qe.Augsburg],cost:15},{nodes:[Qe.Konstanz,Qe.Freiburg],cost:14},{nodes:[Qe.Konstanz,Qe.Augsburg],cost:17},{nodes:[Qe.Regensburg,Qe.Augsburg],cost:13},{nodes:[Qe.Regensburg,Qe.München],cost:10},{nodes:[Qe.Regensburg,Qe.Passau],cost:12},{nodes:[Qe.Augsburg,Qe.München],cost:6},{nodes:[Qe.Passau,Qe.München],cost:14}],layout:"Landscape",mapPosition:[20,20],mapSpecificRules:"Stop resupplying uranium after power plant 39 has been bought."};(function(e){e["Red"]="red",e["Brown"]="brown",e["Green"]="green",e["Orange"]="orange",e["Yellow"]="yellow",e["Pink"]="pink"})(nn||(nn={})),function(e){e["Thiruvananthapuram"]="Thiruvananthapuram",e["Madurai"]="Madurai",e["Coimbatore"]="Coimbatore",e["Chennai"]="Chennai",e["Hyderabad"]="Hyderabad",e["Bangalore1"]="Bangalore 1",e["Bangalore2"]="Bangalore 2",e["Dibrugarh"]="Dibrugarh",e["Imphal"]="Imphal",e["Aizawi"]="Aizawi",e["Chittagong"]="Chittagong",e["Shillong"]="Shillong",e["Dhaka"]="Dhaka",e["Khulna"]="Khulna",e["Darjeeling"]="Darjeeling",e["Kathmandu"]="Kathmandu",e["Patna"]="Patna",e["Lakhnau"]="Lakhnau",e["Varanasi"]="Varanasi",e["Agra"]="Agra",e["Kanpur"]="Kanpur",e["Srinagar"]="Srinagar",e["Ludhiana"]="Ludhiana",e["Delhi1"]="Delhi 1",e["Delhi2"]="Delhi 2",e["Jaipur"]="Jaipur",e["Udaipur"]="Udaipur",e["Ahmedabad"]="Ahmedabad",e["Dhanbad"]="Dhanbad",e["Kolkata"]="Kolkata",e["Bhudaneswar"]="Bhudaneswar",e["Sambalpur"]="Sambalpur",e["Jabalpur"]="Jabalpur",e["Nagpur"]="Nagpur",e["Visakhapatnam"]="Visakhapatnam",e["Goa"]="Goa",e["Pune"]="Pune",e["Surat"]="Surat",e["Indore"]="Indore",e["Bhopal"]="Bhopal",e["Mumbai1"]="Mumbai 1",e["Mumbai2"]="Mumbai 2"}(tn||(tn={}));var an,sn,un={name:"India",cities:[{name:tn.Thiruvananthapuram,region:nn.Red,x:217,y:868},{name:tn.Madurai,region:nn.Red,x:230,y:829},{name:tn.Coimbatore,region:nn.Red,x:197,y:797},{name:tn.Chennai,region:nn.Red,x:289,y:740},{name:tn.Hyderabad,region:nn.Red,x:232,y:618},{name:tn.Bangalore1,region:nn.Red,x:205,y:710},{name:tn.Bangalore2,region:nn.Red,x:205,y:735},{name:tn.Dibrugarh,region:nn.Brown,x:669,y:328},{name:tn.Imphal,region:nn.Brown,x:658,y:392},{name:tn.Aizawi,region:nn.Brown,x:625,y:427},{name:tn.Chittagong,region:nn.Brown,x:589,y:483},{name:tn.Shillong,region:nn.Brown,x:586,y:395},{name:tn.Dhaka,region:nn.Brown,x:548,y:432},{name:tn.Khulna,region:nn.Brown,x:528,y:468},{name:tn.Darjeeling,region:nn.Green,x:496,y:333},{name:tn.Kathmandu,region:nn.Green,x:418,y:307},{name:tn.Patna,region:nn.Green,x:416,y:373},{name:tn.Lakhnau,region:nn.Green,x:310,y:338},{name:tn.Varanasi,region:nn.Green,x:350,y:385},{name:tn.Agra,region:nn.Green,x:228,y:335},{name:tn.Kanpur,region:nn.Green,x:269,y:373},{name:tn.Srinagar,region:nn.Orange,x:135,y:115},{name:tn.Ludhiana,region:nn.Orange,x:186,y:215},{name:tn.Delhi1,region:nn.Orange,x:190,y:281},{name:tn.Delhi2,region:nn.Orange,x:190,y:303},{name:tn.Jaipur,region:nn.Orange,x:158,y:341},{name:tn.Udaipur,region:nn.Orange,x:105,y:410},{name:tn.Ahmedabad,region:nn.Orange,x:75,y:456},{name:tn.Dhanbad,region:nn.Yellow,x:424,y:427},{name:tn.Kolkata,region:nn.Yellow,x:463,y:477},{name:tn.Bhudaneswar,region:nn.Yellow,x:428,y:533},{name:tn.Sambalpur,region:nn.Yellow,x:376,y:494},{name:tn.Jabalpur,region:nn.Yellow,x:293,y:478},{name:tn.Nagpur,region:nn.Yellow,x:250,y:510},{name:tn.Visakhapatnam,region:nn.Yellow,x:358,y:597},{name:tn.Goa,region:nn.Pink,x:109,y:677},{name:tn.Pune,region:nn.Pink,x:133,y:587},{name:tn.Surat,region:nn.Pink,x:80,y:510},{name:tn.Indore,region:nn.Pink,x:160,y:476},{name:tn.Bhopal,region:nn.Pink,x:208,y:437},{name:tn.Mumbai1,region:nn.Pink,x:58,y:570},{name:tn.Mumbai2,region:nn.Pink,x:58,y:593}],connections:[{nodes:[tn.Srinagar,tn.Ludhiana],cost:15},{nodes:[tn.Ludhiana,tn.Delhi1],cost:9},{nodes:[tn.Delhi1,tn.Delhi2],cost:0},{nodes:[tn.Delhi2,tn.Jaipur],cost:7},{nodes:[tn.Delhi2,tn.Agra],cost:6},{nodes:[tn.Jaipur,tn.Bhopal],cost:12},{nodes:[tn.Jaipur,tn.Kanpur],cost:12},{nodes:[tn.Agra,tn.Lakhnau],cost:8},{nodes:[tn.Lakhnau,tn.Kathmandu],cost:15},{nodes:[tn.Kathmandu,tn.Darjeeling],cost:13},{nodes:[tn.Darjeeling,tn.Shillong],cost:12},{nodes:[tn.Shillong,tn.Patna],cost:18},{nodes:[tn.Patna,tn.Kathmandu],cost:10},{nodes:[tn.Imphal,tn.Dibrugarh],cost:11},{nodes:[tn.Dibrugarh,tn.Shillong],cost:9},{nodes:[tn.Shillong,tn.Imphal],cost:12},{nodes:[tn.Imphal,tn.Aizawi],cost:7},{nodes:[tn.Shillong,tn.Dhaka],cost:10},{nodes:[tn.Dhaka,tn.Khulna],cost:6},{nodes:[tn.Khulna,tn.Kolkata],cost:3},{nodes:[tn.Dhanbad,tn.Dhaka],cost:14},{nodes:[tn.Jabalpur,tn.Sambalpur],cost:13},{nodes:[tn.Sambalpur,tn.Nagpur],cost:13},{nodes:[tn.Nagpur,tn.Visakhapatnam],cost:17},{nodes:[tn.Visakhapatnam,tn.Sambalpur],cost:12},{nodes:[tn.Jabalpur,tn.Kanpur],cost:11},{nodes:[tn.Varanasi,tn.Jabalpur],cost:11},{nodes:[tn.Kanpur,tn.Varanasi],cost:8},{nodes:[tn.Varanasi,tn.Patna],cost:5},{nodes:[tn.Patna,tn.Lakhnau],cost:11},{nodes:[tn.Kanpur,tn.Bhopal],cost:13},{nodes:[tn.Ahmedabad,tn.Bhopal],cost:11},{nodes:[tn.Bhopal,tn.Udaipur],cost:11},{nodes:[tn.Udaipur,tn.Jaipur],cost:9},{nodes:[tn.Ahmedabad,tn.Surat],cost:7},{nodes:[tn.Ahmedabad,tn.Indore],cost:8},{nodes:[tn.Indore,tn.Surat],cost:10},{nodes:[tn.Mumbai1,tn.Mumbai2],cost:0},{nodes:[tn.Mumbai2,tn.Pune],cost:4},{nodes:[tn.Pune,tn.Hyderabad],cost:13},{nodes:[tn.Pune,tn.Nagpur],cost:17},{nodes:[tn.Pune,tn.Indore],cost:15},{nodes:[tn.Goa,tn.Coimbatore],cost:18},{nodes:[tn.Bangalore1,tn.Bangalore2],cost:0},{nodes:[tn.Bangalore2,tn.Coimbatore],cost:9},{nodes:[tn.Coimbatore,tn.Thiruvananthapuram],cost:10},{nodes:[tn.Thiruvananthapuram,tn.Madurai],cost:7},{nodes:[tn.Madurai,tn.Chennai],cost:12},{nodes:[tn.Chennai,tn.Bangalore1],cost:9},{nodes:[tn.Bangalore1,tn.Hyderabad],cost:14},{nodes:[tn.Hyderabad,tn.Goa],cost:15},{nodes:[tn.Goa,tn.Bangalore2],cost:14},{nodes:[tn.Mumbai2,tn.Goa],cost:11},{nodes:[tn.Indore,tn.Nagpur],cost:10},{nodes:[tn.Sambalpur,tn.Dhanbad],cost:8},{nodes:[tn.Sambalpur,tn.Bhudaneswar],cost:7},{nodes:[tn.Bhudaneswar,tn.Kolkata],cost:11},{nodes:[tn.Kolkata,tn.Dhanbad],cost:9},{nodes:[tn.Dhanbad,tn.Patna],cost:8},{nodes:[tn.Nagpur,tn.Hyderabad],cost:12},{nodes:[tn.Hyderabad,tn.Visakhapatnam],cost:13},{nodes:[tn.Visakhapatnam,tn.Chennai],cost:17},{nodes:[tn.Chittagong,tn.Aizawi],cost:7},{nodes:[tn.Dhaka,tn.Aizawi],cost:8},{nodes:[tn.Dhaka,tn.Chittagong],cost:7},{nodes:[tn.Patna,tn.Darjeeling],cost:11},{nodes:[tn.Visakhapatnam,tn.Bhudaneswar],cost:12},{nodes:[tn.Udaipur,tn.Ahmedabad],cost:6},{nodes:[tn.Madurai,tn.Coimbatore],cost:6},{nodes:[tn.Bangalore2,tn.Madurai],cost:10},{nodes:[tn.Bhopal,tn.Jabalpur],cost:8},{nodes:[tn.Bhopal,tn.Nagpur],cost:7},{nodes:[tn.Bhopal,tn.Indore],cost:4},{nodes:[tn.Surat,tn.Mumbai1],cost:6},{nodes:[tn.Agra,tn.Kanpur],cost:8},{nodes:[tn.Kanpur,tn.Lakhnau],cost:3},{nodes:[tn.Lakhnau,tn.Varanasi],cost:7}],layout:"Portrait",mapPosition:[200,-60],adjustRatio:[1.25,1.25],resupply:[[[4,5,4],[5,6,4],[6,7,5],[7,8,6],[8,10,7]],[[1,2,2],[2,2,2],[2,3,3],[3,4,4],[4,5,5]],[[1,3,4],[1,3,4],[3,4,6],[4,5,7],[4,7,9]],[[1,1,1],[1,1,1],[1,2,1],[2,2,2],[2,3,2]]],startingResources:[24,21,20,2],startingSupply:[24,24,24,8],maxPriceAvailable:[3,5,8],coalPrices:[1,1,1,1,2,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,8,8],garbagePrices:[1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6],uraniumPrices:[1,2,3,4,5,6,7,8],setupDeck:function(e,n,t){var r,o,a=Object(me["cloneDeep"])(Ke);if("original"==n){a=a.slice(8);var i=a.splice(2,1)[0],s=a.pop();a=Te(a,t()+""),2==e||3==e?a=a.slice(8):4==e&&(a=a.slice(4)),a.unshift(i),a.push(s),r=[ot(3,"India"),ot(4,"India"),ot(5,"India"),ot(6,"India")],o=[ot(7,"India"),ot(8,"India"),ot(9,"India"),ot(10,"India")]}else{var u=Te(a.splice(0,12),t()+""),c=u.splice(0,8);c=c.sort((function(e,n){return e.number-n.number})),r=c.slice(0,4),o=c.slice(4);var l=u.shift(),f=a.pop();a=Te(a,t()+""),2==e||3==e?(u=u.slice(2),a=Te(a.slice(6).concat(u),t()+"")):4==e?(u=u.slice(1),a=Te(a.slice(3).concat(u),t()+"")):a=Te(a.concat(u),t()+""),a.unshift(l),a.push(f)}return{actualMarket:r,futureMarket:o,powerPlantsDeck:a}},mapSpecificRules:"The power grid will suffer a power outage if too many cities are built in one round, penalizing players $3 per city built.\nPlayers take turns buying one resource at a time. The resource market is limited in steps 1 and 2.\nGarbage plants are less efficient. Their cost is one higher, but their storage capacity is not changed.\nPlayers must power as many cities as possible in each round."};(function(e){e["Brown"]="brown",e["Purple"]="purple",e["Red"]="red",e["Green"]="green",e["Yellow"]="yellow",e["Blue"]="blue"})(an||(an={})),function(e){e["Siracusa"]="Siracusa",e["Reggiodical"]="Reggio Di Cal",e["Cosenza"]="Cosenza",e["Messina"]="Messina",e["Palermo"]="Palermo",e["Catania"]="Catania",e["Brindisi"]="Brindisi",e["Taranto"]="Taranto",e["Bari"]="Bari",e["Foggia"]="Foggia",e["Pesara"]="Pesara",e["Napoli"]="Napoli",e["Salerno"]="Salerno",e["Roma"]="Roma",e["Ancona"]="Ancona",e["Rimini"]="Rimini",e["Ravenna"]="Ravenna",e["Sanmarino"]="San Marino",e["Perugia"]="Perugia",e["Frienze"]="Frienze",e["Udine"]="Udine",e["Trieste"]="Trieste",e["Bolanzo"]="Bolanzo",e["Mestre"]="Mestre",e["Venezia"]="Venezia",e["Vicenza"]="Vicenza",e["Padua"]="Padua",e["Ferrara"]="Ferrara",e["Bologna"]="Bologna",e["Modena"]="Modena",e["Reggio"]="Reggio",e["Pisa"]="Pisa",e["Parma"]="Parma",e["Laspezia"]="La Spezia",e["Torino"]="Torino",e["Bergamo"]="Bergamo",e["Milano"]="Milano",e["Brescia"]="Brescia",e["Picenza"]="Picenza",e["Genova"]="Genova",e["Verona"]="Verona",e["Lovorno"]="Lovorno"}(sn||(sn={}));var cn,ln,fn={name:"Italy",cities:[{name:sn.Siracusa,region:an.Brown,x:1048,y:471},{name:sn.Reggiodical,region:an.Brown,x:1013,y:346},{name:sn.Cosenza,region:an.Brown,x:960,y:240},{name:sn.Messina,region:an.Brown,x:975,y:365},{name:sn.Palermo,region:an.Brown,x:875,y:468},{name:sn.Catania,region:an.Brown,x:1007,y:460},{name:sn.Brindisi,region:an.Purple,x:945,y:4},{name:sn.Taranto,region:an.Brown,x:933,y:92},{name:sn.Bari,region:an.Purple,x:871,y:32},{name:sn.Foggia,region:an.Purple,x:777,y:69},{name:sn.Pesara,region:an.Purple,x:646,y:76},{name:sn.Napoli,region:an.Purple,x:747,y:222},{name:sn.Salerno,region:an.Purple,x:799,y:212},{name:sn.Roma,region:an.Purple,x:583,y:228},{name:sn.Ancona,region:an.Red,x:549,y:16},{name:sn.Rimini,region:an.Red,x:459,y:13},{name:sn.Ravenna,region:an.Red,x:401,y:-5},{name:sn.Sanmarino,region:an.Red,x:456,y:88},{name:sn.Perugia,region:an.Red,x:507,y:123},{name:sn.Frienze,region:an.Red,x:389,y:159},{name:sn.Udine,region:an.Green,x:358,y:-207},{name:sn.Trieste,region:an.Green,x:410,y:-181},{name:sn.Bolanzo,region:an.Green,x:197,y:-172},{name:sn.Mestre,region:an.Green,x:318,y:-115},{name:sn.Venezia,region:an.Green,x:349,y:-103},{name:sn.Vicenza,region:an.Green,x:235,y:-89},{name:sn.Padua,region:an.Green,x:279,y:-72},{name:sn.Torino,region:an.Blue,x:57,y:215},{name:sn.Bergamo,region:an.Blue,x:125,y:14},{name:sn.Milano,region:an.Blue,x:123,y:102},{name:sn.Brescia,region:an.Blue,x:182,y:2},{name:sn.Picenza,region:an.Blue,x:182,y:105},{name:sn.Genova,region:an.Blue,x:182,y:217},{name:sn.Verona,region:an.Blue,x:231,y:-13},{name:sn.Lovorno,region:an.Red,x:333,y:216},{name:sn.Ferrara,region:an.Yellow,x:333,y:-3},{name:sn.Bologna,region:an.Yellow,x:350,y:85},{name:sn.Modena,region:an.Yellow,x:303,y:72},{name:sn.Reggio,region:an.Yellow,x:263,y:96},{name:sn.Pisa,region:an.Yellow,x:304,y:197},{name:sn.Parma,region:an.Yellow,x:224,y:81},{name:sn.Laspezia,region:an.Yellow,x:245,y:206}],connections:[{nodes:[sn.Palermo,sn.Catania],cost:15},{nodes:[sn.Catania,sn.Siracusa],cost:3},{nodes:[sn.Catania,sn.Messina],cost:6},{nodes:[sn.Messina,sn.Palermo],cost:15},{nodes:[sn.Messina,sn.Reggiodical],cost:3},{nodes:[sn.Reggiodical,sn.Cosenza],cost:13},{nodes:[sn.Cosenza,sn.Salerno],cost:18},{nodes:[sn.Cosenza,sn.Taranto],cost:15},{nodes:[sn.Taranto,sn.Brindisi],cost:4},{nodes:[sn.Brindisi,sn.Bari],cost:7},{nodes:[sn.Bari,sn.Taranto],cost:7},{nodes:[sn.Taranto,sn.Salerno],cost:19},{nodes:[sn.Salerno,sn.Bari],cost:16},{nodes:[sn.Bari,sn.Foggia],cost:8},{nodes:[sn.Foggia,sn.Salerno],cost:10},{nodes:[sn.Salerno,sn.Napoli],cost:3},{nodes:[sn.Napoli,sn.Foggia],cost:12},{nodes:[sn.Napoli,sn.Roma],cost:14},{nodes:[sn.Roma,sn.Foggia],cost:22},{nodes:[sn.Foggia,sn.Pesara],cost:10},{nodes:[sn.Pesara,sn.Roma],cost:14},{nodes:[sn.Roma,sn.Ancona],cost:17},{nodes:[sn.Roma,sn.Perugia],cost:13},{nodes:[sn.Perugia,sn.Sanmarino],cost:12},{nodes:[sn.Sanmarino,sn.Rimini],cost:0},{nodes:[sn.Rimini,sn.Ancona],cost:6},{nodes:[sn.Ancona,sn.Perugia],cost:10},{nodes:[sn.Ancona,sn.Pesara],cost:9},{nodes:[sn.Roma,sn.Frienze],cost:20},{nodes:[sn.Lovorno,sn.Roma],cost:19},{nodes:[sn.Frienze,sn.Perugia],cost:13},{nodes:[sn.Frienze,sn.Sanmarino],cost:12},{nodes:[sn.Genova,sn.Torino],cost:12},{nodes:[sn.Torino,sn.Milano],cost:8},{nodes:[sn.Milano,sn.Bergamo],cost:3},{nodes:[sn.Bergamo,sn.Bolanzo],cost:12},{nodes:[sn.Bolanzo,sn.Brescia],cost:12},{nodes:[sn.Bolanzo,sn.Mestre],cost:12},{nodes:[sn.Bolanzo,sn.Udine],cost:14},{nodes:[sn.Udine,sn.Trieste],cost:4},{nodes:[sn.Udine,sn.Venezia],cost:7},{nodes:[sn.Venezia,sn.Mestre],cost:0},{nodes:[sn.Genova,sn.Laspezia],cost:5},{nodes:[sn.Laspezia,sn.Pisa],cost:5},{nodes:[sn.Pisa,sn.Lovorno],cost:0},{nodes:[sn.Genova,sn.Milano],cost:9},{nodes:[sn.Milano,sn.Picenza],cost:4},{nodes:[sn.Picenza,sn.Parma],cost:4},{nodes:[sn.Parma,sn.Reggio],cost:2},{nodes:[sn.Reggio,sn.Modena],cost:2},{nodes:[sn.Modena,sn.Bologna],cost:3},{nodes:[sn.Bologna,sn.Pisa],cost:12},{nodes:[sn.Pisa,sn.Reggio],cost:10},{nodes:[sn.Laspezia,sn.Parma],cost:9},{nodes:[sn.Laspezia,sn.Reggio],cost:9},{nodes:[sn.Genova,sn.Picenza],cost:7},{nodes:[sn.Genova,sn.Parma],cost:11},{nodes:[sn.Milano,sn.Brescia],cost:4},{nodes:[sn.Brescia,sn.Bergamo],cost:3},{nodes:[sn.Brescia,sn.Verona],cost:4},{nodes:[sn.Brescia,sn.Picenza],cost:5},{nodes:[sn.Bolanzo,sn.Vicenza],cost:10},{nodes:[sn.Vicenza,sn.Padua],cost:3},{nodes:[sn.Vicenza,sn.Verona],cost:3},{nodes:[sn.Verona,sn.Parma],cost:6},{nodes:[sn.Parma,sn.Brescia],cost:6},{nodes:[sn.Verona,sn.Padua],cost:5},{nodes:[sn.Padua,sn.Mestre],cost:3},{nodes:[sn.Venezia,sn.Ravenna],cost:12},{nodes:[sn.Ravenna,sn.Ferrara],cost:4},{nodes:[sn.Ferrara,sn.Venezia],cost:9},{nodes:[sn.Ferrara,sn.Padua],cost:7},{nodes:[sn.Ferrara,sn.Verona],cost:7},{nodes:[sn.Verona,sn.Modena],cost:8},{nodes:[sn.Frienze,sn.Pisa],cost:5},{nodes:[sn.Frienze,sn.Ravenna],cost:10},{nodes:[sn.Ravenna,sn.Rimini],cost:4},{nodes:[sn.Frienze,sn.Bologna],cost:8},{nodes:[sn.Bologna,sn.Ravenna],cost:4},{nodes:[sn.Bologna,sn.Ferrara],cost:3},{nodes:[sn.Ferrara,sn.Modena],cost:4}],mapPosition:[-20,320],mapSpecificRules:"Stop resupplying uranium after power plant 39 has been bought.",startingResources:[18,15,12,2]};(function(e){e["Pink"]="pink",e["Green"]="green",e["Orange"]="orange",e["Yellow"]="yellow",e["Red"]="red",e["Brown"]="brown"})(cn||(cn={})),function(e){e["Mashhad"]="Mashhad",e["Corgan"]="Corgan",e["Tehran"]="Tehran",e["Tabriz"]="Tabriz",e["Mosul"]="Mosul",e["Kermanshah"]="Kermanshah",e["Baghdad"]="Baghdad",e["Isfahan"]="Isfahan",e["Yazo"]="Yazo",e["Zahedan"]="Zahedan",e["Kerman"]="Kerman",e["Shiraz"]="Shiraz",e["Bandarabbas"]="Bandar Abbas",e["Chabahar"]="Chabahar",e["Dubai"]="Dubai",e["Muscat"]="Muscat",e["Abudhari"]="Abu Dhari",e["Alain"]="Alain",e["Salalah"]="Salalah",e["Doha"]="Doha",e["Manama"]="Manama",e["Ahvaz"]="Ahvaz",e["Basra"]="Basra",e["Najaf"]="Najaf",e["Kuwaitcity"]="Kuwait City",e["Buraydah"]="Buraydah",e["Riyadh"]="Riyadh",e["Medina"]="Medina",e["Alhasahah"]="Al Hasahah",e["Aleppo"]="Aleppo",e["Damascus"]="Damascus",e["Amman"]="Amman",e["Beirut"]="Beirut",e["Jerusalem"]="Jerusalem",e["Aqaba"]="Aqaba",e["Mukalla"]="Mukalla",e["Sanaa"]="Sanaa",e["Aden"]="Aden",e["Alhudaydah"]="Al-Hudaydah",e["Abha"]="Abha",e["Mecca"]="Mecca",e["Jeddah"]="Jeddah"}(ln||(ln={}));var dn,pn,hn={name:"Middle East",cities:[{name:ln.Mashhad,region:cn.Pink,x:859,y:327},{name:ln.Corgan,region:cn.Pink,x:734,y:287},{name:ln.Tehran,region:cn.Pink,x:633,y:342},{name:ln.Tabriz,region:cn.Pink,x:450,y:251},{name:ln.Mosul,region:cn.Pink,x:352,y:307},{name:ln.Kermanshah,region:cn.Pink,x:503,y:391},{name:ln.Baghdad,region:cn.Pink,x:393,y:406},{name:ln.Isfahan,region:cn.Green,x:621,y:436},{name:ln.Yazo,region:cn.Green,x:720,y:472},{name:ln.Zahedan,region:cn.Green,x:896,y:547},{name:ln.Kerman,region:cn.Green,x:784,y:534},{name:ln.Shiraz,region:cn.Green,x:651,y:557},{name:ln.Bandarabbas,region:cn.Green,x:756,y:629},{name:ln.Chabahar,region:cn.Green,x:898,y:687},{name:ln.Dubai,region:cn.Orange,x:752,y:690},{name:ln.Muscat,region:cn.Orange,x:828,y:773},{name:ln.Abudhari,region:cn.Orange,x:692,y:747},{name:ln.Alain,region:cn.Orange,x:715,y:812},{name:ln.Salalah,region:cn.Orange,x:694,y:981},{name:ln.Doha,region:cn.Orange,x:596,y:713},{name:ln.Manama,region:cn.Orange,x:532,y:652},{name:ln.Ahvaz,region:cn.Yellow,x:555,y:499},{name:ln.Basra,region:cn.Yellow,x:452,y:519},{name:ln.Najaf,region:cn.Yellow,x:356,y:478},{name:ln.Kuwaitcity,region:cn.Yellow,x:500,y:580},{name:ln.Buraydah,region:cn.Yellow,x:360,y:674},{name:ln.Riyadh,region:cn.Yellow,x:443,y:741},{name:ln.Medina,region:cn.Yellow,x:264,y:738},{name:ln.Alhasahah,region:cn.Red,x:248,y:300},{name:ln.Aleppo,region:cn.Red,x:132,y:315},{name:ln.Damascus,region:cn.Red,x:186,y:433},{name:ln.Amman,region:cn.Red,x:171,y:493},{name:ln.Beirut,region:cn.Red,x:94,y:401},{name:ln.Jerusalem,region:cn.Red,x:76,y:481},{name:ln.Aqaba,region:cn.Red,x:103,y:563},{name:ln.Mukalla,region:cn.Brown,x:555,y:1059},{name:ln.Sanaa,region:cn.Brown,x:426,y:1018},{name:ln.Aden,region:cn.Brown,x:431,y:1105},{name:ln.Alhudaydah,region:cn.Brown,x:317,y:1057},{name:ln.Abha,region:cn.Brown,x:306,y:938},{name:ln.Mecca,region:cn.Brown,x:280,y:850},{name:ln.Jeddah,region:cn.Brown,x:190,y:800}],connections:[{nodes:[ln.Tabriz,ln.Tehran],cost:13},{nodes:[ln.Tehran,ln.Corgan],cost:9},{nodes:[ln.Corgan,ln.Mashhad],cost:12},{nodes:[ln.Mashhad,ln.Zahedan],cost:20},{nodes:[ln.Zahedan,ln.Kerman],cost:10},{nodes:[ln.Kerman,ln.Yazo],cost:7},{nodes:[ln.Yazo,ln.Mashhad],cost:18},{nodes:[ln.Mashhad,ln.Tehran],cost:19},{nodes:[ln.Tehran,ln.Yazo],cost:12},{nodes:[ln.Yazo,ln.Shiraz],cost:9},{nodes:[ln.Shiraz,ln.Kerman],cost:11},{nodes:[ln.Yazo,ln.Isfahan],cost:7},{nodes:[ln.Isfahan,ln.Shiraz],cost:10},{nodes:[ln.Isfahan,ln.Tehran],cost:9},{nodes:[ln.Tehran,ln.Kermanshah],cost:13},{nodes:[ln.Kermanshah,ln.Isfahan],cost:13},{nodes:[ln.Isfahan,ln.Ahvaz],cost:11},{nodes:[ln.Ahvaz,ln.Shiraz],cost:11},{nodes:[ln.Ahvaz,ln.Kermanshah],cost:11},{nodes:[ln.Kermanshah,ln.Tabriz],cost:13},{nodes:[ln.Tabriz,ln.Mosul],cost:13},{nodes:[ln.Mosul,ln.Baghdad],cost:8},{nodes:[ln.Baghdad,ln.Kermanshah],cost:8},{nodes:[ln.Basra,ln.Ahvaz],cost:3},{nodes:[ln.Ahvaz,ln.Kuwaitcity],cost:7},{nodes:[ln.Kuwaitcity,ln.Basra],cost:5},{nodes:[ln.Basra,ln.Najaf],cost:10},{nodes:[ln.Najaf,ln.Baghdad],cost:4},{nodes:[ln.Baghdad,ln.Basra],cost:12},{nodes:[ln.Alhasahah,ln.Mosul],cost:4},{nodes:[ln.Alhasahah,ln.Baghdad],cost:11},{nodes:[ln.Baghdad,ln.Damascus],cost:16},{nodes:[ln.Damascus,ln.Najaf],cost:15},{nodes:[ln.Alhasahah,ln.Damascus],cost:14},{nodes:[ln.Damascus,ln.Amman],cost:4},{nodes:[ln.Amman,ln.Aqaba],cost:7},{nodes:[ln.Aqaba,ln.Jerusalem],cost:6},{nodes:[ln.Jerusalem,ln.Amman],cost:3},{nodes:[ln.Jerusalem,ln.Beirut],cost:6},{nodes:[ln.Beirut,ln.Damascus],cost:4},{nodes:[ln.Damascus,ln.Aleppo],cost:8},{nodes:[ln.Aleppo,ln.Beirut],cost:9},{nodes:[ln.Aleppo,ln.Alhasahah],cost:7},{nodes:[ln.Baghdad,ln.Tabriz],cost:18},{nodes:[ln.Zahedan,ln.Chabahar],cost:13},{nodes:[ln.Zahedan,ln.Bandarabbas],cost:14},{nodes:[ln.Bandarabbas,ln.Kerman],cost:13},{nodes:[ln.Shiraz,ln.Bandarabbas],cost:14},{nodes:[ln.Bandarabbas,ln.Chabahar],cost:15},{nodes:[ln.Kuwaitcity,ln.Manama],cost:12},{nodes:[ln.Manama,ln.Doha],cost:6},{nodes:[ln.Doha,ln.Abudhari],cost:9},{nodes:[ln.Abudhari,ln.Dubai],cost:2},{nodes:[ln.Dubai,ln.Muscat],cost:9},{nodes:[ln.Muscat,ln.Alain],cost:7},{nodes:[ln.Alain,ln.Abudhari],cost:3},{nodes:[ln.Alain,ln.Dubai],cost:3},{nodes:[ln.Riyadh,ln.Alain],cost:23},{nodes:[ln.Doha,ln.Riyadh],cost:12},{nodes:[ln.Riyadh,ln.Manama],cost:10},{nodes:[ln.Riyadh,ln.Kuwaitcity],cost:12},{nodes:[ln.Kuwaitcity,ln.Buraydah],cost:12},{nodes:[ln.Buraydah,ln.Riyadh],cost:7},{nodes:[ln.Buraydah,ln.Medina],cost:10},{nodes:[ln.Medina,ln.Riyadh],cost:15},{nodes:[ln.Buraydah,ln.Najaf],cost:14},{nodes:[ln.Aqaba,ln.Jeddah],cost:23},{nodes:[ln.Aqaba,ln.Medina],cost:17},{nodes:[ln.Medina,ln.Jeddah],cost:7},{nodes:[ln.Jeddah,ln.Mecca],cost:1},{nodes:[ln.Mecca,ln.Medina],cost:7},{nodes:[ln.Mecca,ln.Riyadh],cost:17},{nodes:[ln.Riyadh,ln.Abha],cost:19},{nodes:[ln.Abha,ln.Mecca],cost:12},{nodes:[ln.Salalah,ln.Muscat],cost:21},{nodes:[ln.Alain,ln.Salalah],cost:18},{nodes:[ln.Salalah,ln.Mukalla],cost:15},{nodes:[ln.Salalah,ln.Sanaa],cost:25},{nodes:[ln.Sanaa,ln.Mukalla],cost:14},{nodes:[ln.Mukalla,ln.Aden],cost:13},{nodes:[ln.Aden,ln.Alhudaydah],cost:9},{nodes:[ln.Alhudaydah,ln.Abha],cost:10},{nodes:[ln.Abha,ln.Sanaa],cost:11},{nodes:[ln.Sanaa,ln.Alhudaydah],cost:5}],layout:"Portrait",mapPosition:[0,-100],resupply:[[[2,1,1],[2,1,1],[3,2,2],[4,3,2],[5,4,3]],[[5,3,2],[5,3,2],[6,3,2],[8,4,3],[9,5,4]],[[1,3,4],[1,3,4],[1,4,6],[1,4,8],[1,6,9]],[[0,2,2],[0,2,2],[0,3,3],[0,3,4],[0,4,5]]],startingResources:[21,21,3,3],startingSupply:[24,24,21,11],mapSpecificRules:"Only coal and oil can be bought for $1, and any number of oil can restock at $1.\nDuring step 1, garbage and uranium plants will be removed from the current market.\nStep 2 will be triggered after going through the deck once rather than by a specific number of cities.\nStep 3 will be triggered after going through the deck a second time."};(function(e){e["Green"]="green",e["Brown"]="brown",e["Pink"]="pink",e["Red"]="red",e["Yellow"]="yellow",e["Purple"]="purple"})(dn||(dn={})),function(e){e["Septiles"]="Sept-Iles",e["Portcartier"]="Port-Cartier",e["Baiecomeau"]="Baie-Comeau",e["Chicoutimi"]="Chicoutimi",e["Alma"]="Alma",e["Roberval"]="Roberval",e["Jonquiere"]="Jonquiere",e["Gaspe"]="Gaspe",e["Steannedesmonts"]="Ste-Anne-Des-Monts",e["Matane"]="Matane",e["Rimouski"]="Rimouski",e["Pointealacroix"]="Pointe-A-La-Croix",e["Riviereduloup"]="Riviere-Du-Loup",e["Montmagny"]="Montmagny",e["Stgeorges"]="St-Georges",e["Sherbrooke"]="Sherbrooke",e["Victoriaville"]="Victoriaville",e["Stsimeon"]="St-Simeon",e["Charlesbourg"]="Charlesbourg",e["Quebec"]="Quebec",e["Beauport"]="Beauport",e["Granby"]="Granby",e["Sthyacinthe"]="St-Hyacinthe",e["Brossard"]="Brossard",e["Valleyfield"]="Valleyfield",e["Vaudreuildorion"]="Vaudreuil-Dorion",e["Montreal"]="Montreal",e["Pointeclaire"]="Pointe-Claire",e["Shawinigan"]="Shawinigan",e["Troisrivieres"]="Trois-Rivieres",e["Drummondville"]="Drummond-Ville",e["Repentigny"]="Repentigny",e["Longueuil"]="Longueuil",e["Laval"]="Laval",e["Lachute"]="Lachute",e["Amos"]="Amos",e["Valdor"]="Val-Dor",e["Rouynnoranda"]="Rouyn-Noranda",e["Montlaurier"]="Mont-Laurier",e["Maniwaki"]="Maniwaki",e["Gatineau"]="Gatineau",e["Hull"]="Hull"}(pn||(pn={}));var gn,yn,vn={name:"Quebec",cities:[{name:pn.Septiles,region:dn.Green,x:3524,y:228},{name:pn.Portcartier,region:dn.Green,x:3328,y:370},{name:pn.Baiecomeau,region:dn.Green,x:3066,y:630},{name:pn.Chicoutimi,region:dn.Green,x:2392,y:898},{name:pn.Alma,region:dn.Green,x:2172,y:844},{name:pn.Roberval,region:dn.Green,x:1944,y:950},{name:pn.Jonquiere,region:dn.Green,x:2240,y:1052},{name:pn.Gaspe,region:dn.Brown,x:4014,y:808},{name:pn.Steannedesmonts,region:dn.Brown,x:3512,y:708},{name:pn.Matane,region:dn.Brown,x:3244,y:808},{name:pn.Rimouski,region:dn.Brown,x:2990,y:946},{name:pn.Pointealacroix,region:dn.Brown,x:3492,y:1094},{name:pn.Riviereduloup,region:dn.Brown,x:2780,y:1208},{name:pn.Montmagny,region:dn.Brown,x:2522,y:1534},{name:pn.Stgeorges,region:dn.Pink,x:2506,y:1836},{name:pn.Sherbrooke,region:dn.Pink,x:2242,y:2128},{name:pn.Victoriaville,region:dn.Pink,x:2178,y:1822},{name:pn.Stsimeon,region:dn.Pink,x:2576,y:1146},{name:pn.Charlesbourg,region:dn.Pink,x:2246,y:1434},{name:pn.Quebec,region:dn.Pink,x:2302,y:1536},{name:pn.Beauport,region:dn.Pink,x:2196,y:1524},{name:pn.Granby,region:dn.Red,x:1974,y:2160},{name:pn.Sthyacinthe,region:dn.Red,x:1796,y:2038},{name:pn.Brossard,region:dn.Red,x:1790,y:2296},{name:pn.Valleyfield,region:dn.Red,x:1576,y:2306},{name:pn.Vaudreuildorion,region:dn.Red,x:1414,y:2186},{name:pn.Montreal,region:dn.Red,x:1624,y:2052},{name:pn.Pointeclaire,region:dn.Red,x:1510,y:2060},{name:pn.Shawinigan,region:dn.Yellow,x:1864,y:1448},{name:pn.Troisrivieres,region:dn.Yellow,x:1918,y:1650},{name:pn.Drummondville,region:dn.Yellow,x:1984,y:1886},{name:pn.Repentigny,region:dn.Yellow,x:1696,y:1820},{name:pn.Longueuil,region:dn.Yellow,x:1598,y:1964},{name:pn.Laval,region:dn.Yellow,x:1512,y:1990},{name:pn.Lachute,region:dn.Yellow,x:1364,y:1944},{name:pn.Amos,region:dn.Purple,x:492,y:868},{name:pn.Valdor,region:dn.Purple,x:570,y:1098},{name:pn.Rouynnoranda,region:dn.Purple,x:236,y:1028},{name:pn.Montlaurier,region:dn.Purple,x:1180,y:1630},{name:pn.Maniwaki,region:dn.Purple,x:964,y:1760},{name:pn.Gatineau,region:dn.Purple,x:1076,y:2096},{name:pn.Hull,region:dn.Purple,x:862,y:2104}],connections:[{nodes:[pn.Maniwaki,pn.Montlaurier],cost:5},{nodes:[pn.Maniwaki,pn.Valdor],cost:24},{nodes:[pn.Valdor,pn.Amos],cost:8},{nodes:[pn.Amos,pn.Rouynnoranda],cost:9},{nodes:[pn.Rouynnoranda,pn.Valdor],cost:12},{nodes:[pn.Hull,pn.Maniwaki],cost:15},{nodes:[pn.Hull,pn.Gatineau],cost:0},{nodes:[pn.Gatineau,pn.Montlaurier],cost:16},{nodes:[pn.Montlaurier,pn.Lachute],cost:18},{nodes:[pn.Shawinigan,pn.Troisrivieres],cost:3},{nodes:[pn.Troisrivieres,pn.Drummondville],cost:9},{nodes:[pn.Drummondville,pn.Victoriaville],cost:6},{nodes:[pn.Victoriaville,pn.Stgeorges],cost:10},{nodes:[pn.Stgeorges,pn.Sherbrooke],cost:15},{nodes:[pn.Sherbrooke,pn.Granby],cost:8},{nodes:[pn.Granby,pn.Sthyacinthe],cost:4},{nodes:[pn.Sthyacinthe,pn.Drummondville],cost:6},{nodes:[pn.Troisrivieres,pn.Victoriaville],cost:9},{nodes:[pn.Victoriaville,pn.Sherbrooke],cost:9},{nodes:[pn.Sherbrooke,pn.Drummondville],cost:9},{nodes:[pn.Sthyacinthe,pn.Repentigny],cost:7},{nodes:[pn.Sthyacinthe,pn.Brossard],cost:5},{nodes:[pn.Brossard,pn.Valleyfield],cost:8},{nodes:[pn.Valleyfield,pn.Vaudreuildorion],cost:4},{nodes:[pn.Gatineau,pn.Lachute],cost:14},{nodes:[pn.Montlaurier,pn.Shawinigan],cost:28},{nodes:[pn.Shawinigan,pn.Beauport],cost:14},{nodes:[pn.Beauport,pn.Troisrivieres],cost:15},{nodes:[pn.Troisrivieres,pn.Repentigny],cost:13},{nodes:[pn.Repentigny,pn.Longueuil],cost:3},{nodes:[pn.Laval,pn.Lachute],cost:6},{nodes:[pn.Vaudreuildorion,pn.Pointeclaire],cost:3},{nodes:[pn.Montreal,pn.Brossard],cost:4},{nodes:[pn.Laval,pn.Longueuil],cost:0},{nodes:[pn.Pointeclaire,pn.Montreal],cost:0},{nodes:[pn.Montreal,pn.Longueuil],cost:0},{nodes:[pn.Pointeclaire,pn.Laval],cost:0},{nodes:[pn.Beauport,pn.Charlesbourg],cost:0},{nodes:[pn.Charlesbourg,pn.Quebec],cost:0},{nodes:[pn.Quebec,pn.Beauport],cost:0},{nodes:[pn.Victoriaville,pn.Beauport],cost:12},{nodes:[pn.Quebec,pn.Stgeorges],cost:12},{nodes:[pn.Stgeorges,pn.Montmagny],cost:12},{nodes:[pn.Montmagny,pn.Riviereduloup],cost:16},{nodes:[pn.Jonquiere,pn.Charlesbourg],cost:21},{nodes:[pn.Montmagny,pn.Quebec],cost:5},{nodes:[pn.Stsimeon,pn.Charlesbourg],cost:18},{nodes:[pn.Drummondville,pn.Granby],cost:4},{nodes:[pn.Roberval,pn.Shawinigan],cost:25},{nodes:[pn.Jonquiere,pn.Stsimeon],cost:16},{nodes:[pn.Roberval,pn.Jonquiere],cost:10},{nodes:[pn.Jonquiere,pn.Alma],cost:4},{nodes:[pn.Alma,pn.Chicoutimi],cost:4},{nodes:[pn.Jonquiere,pn.Chicoutimi],cost:0},{nodes:[pn.Chicoutimi,pn.Baiecomeau],cost:23},{nodes:[pn.Stsimeon,pn.Baiecomeau],cost:23},{nodes:[pn.Baiecomeau,pn.Portcartier],cost:16},{nodes:[pn.Septiles,pn.Portcartier],cost:6},{nodes:[pn.Riviereduloup,pn.Rimouski],cost:12},{nodes:[pn.Rimouski,pn.Matane],cost:11},{nodes:[pn.Matane,pn.Pointealacroix],cost:15},{nodes:[pn.Matane,pn.Steannedesmonts],cost:10},{nodes:[pn.Pointealacroix,pn.Steannedesmonts],cost:16},{nodes:[pn.Steannedesmonts,pn.Gaspe],cost:21},{nodes:[pn.Gaspe,pn.Pointealacroix],cost:25}],layout:"Portrait",adjustRatio:[.25,.35],mapPosition:[-20,75],resupply:[[[3,3,3],[4,4,3],[5,4,4],[5,5,5],[7,6,6]],[[2,2,3],[2,3,3],[3,4,4],[4,5,4],[5,6,5]],[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]],startingResources:[21,21,6,2],setupDeck:function(e,n,t){var r,o,a=Object(me["cloneDeep"])(Ue);if("original"==n){var i=a.filter((function(e){return[13,18,22].includes(e.number)})),s=a.filter((function(e){return(e.type==he.Wind||e.type==he.Nuclear)&&![13,18,22].includes(e.number)})),u=a.filter((function(e){return e.type!=he.Wind&&e.type!=he.Nuclear}));a=u.slice(8),r=[ot(3),ot(4),ot(5),ot(6)],o=[ot(7),ot(8),ot(9),ot(10)];var c=a.pop();a=Te(a,t()+""),2==e||3==e?a=a.slice(8):4==e&&(a=a.slice(4)),a=a.concat(s),a=Te(a,t()+""),a=i.concat(a),a.push(c)}else{var l=a.pop(),f=a.filter((function(e){return e.number>=3&&e.number<=10})),d=a.filter((function(e){return 13==e.number})),p=a.filter((function(e){return 18==e.number||22==e.number})),h=a.filter((function(e){return![13,18,22].includes(e.number)&&(e.type==he.Wind||e.type==he.Nuclear)})),g=a.filter((function(e){return e.type!=he.Wind&&e.number>=11&&e.number<=15})),y=a.filter((function(e){return e.type!=he.Wind&&e.type!=he.Nuclear&&e.number>=16}));2==e?(g=Te(g,t()+"").slice(1),y=Te(y,t()+"").slice(5)):3==e?(g=Te(g,t()+"").slice(2),y=Te(y,t()+"").slice(6)):4==e&&(g=Te(g,t()+"").slice(1),y=Te(y,t()+"").slice(3));var v=Te(f.concat(d).concat(g),t()+""),m=v.splice(0,8);m=m.sort((function(e,n){return e.number-n.number})),r=m.splice(0,4),o=m;var b=v.splice(0,1);a=v.concat(h).concat(y),a=Te(a,t()+""),a=b.concat(p).concat(a).concat([l])}return{actualMarket:r,futureMarket:o,powerPlantsDeck:a}},mapSpecificRules:"Put power plants 13, 18, 22 on top of the deck. Ecological power plants will never be put on the bottom of the deck."};(function(e){e["Green"]="green",e["Pink"]="pink",e["Red"]="red",e["Yellow"]="yellow",e["Purple"]="purple",e["Brown"]="brown"})(gn||(gn={})),function(e){e["Murmansk"]="Murmansk",e["Arkhangelsk"]="Arkhangelsk",e["Syktyvkar"]="Syktyvkar",e["Kirov"]="Kirov",e["Kazan"]="Kazan",e["Cheboksary"]="Cheboksary",e["Ulyanovsk"]="Ulyanovsk",e["Tula"]="Tula",e["Kaliningrad"]="Kaliningrad",e["Ryazan"]="Ryazan",e["Nizhnynovgorod"]="Nizhny Novgorod",e["Moscow"]="Moscow",e["Stpetersburg"]="St Petersburg",e["Yaroslavl"]="Yaroslavl",e["Chita"]="Chita",e["Bratsk"]="Bratsk",e["Krasnoyarsk"]="Krasnoyarsk",e["Kemerovd"]="Kemerovd",e["Novokuznetsk"]="Novokuznetsk",e["Irkutsk"]="Irkutsk",e["Ulanude"]="Ulan Ude",e["Norilsk"]="Norilsk",e["Surgut"]="Surgut",e["Tyumen"]="Tyumen",e["Tomsk"]="Tomsk",e["Novosibirsk"]="Novosibirsk",e["Barnaul"]="Barnaul",e["Omsk"]="Omsk",e["Chelyabinsk"]="Chelyabinsk",e["Ufa"]="Ufa",e["Perm"]="Perm",e["Yekaterinburg"]="Yekaterinburg",e["Orenburg"]="Orenburg",e["Naberezhnyechelny"]="Naberezhnye Chelny",e["Samara"]="Samara",e["Astrakhan"]="Astrakhan",e["Makhachkala"]="Makhachkala",e["Saratov"]="Saratov",e["Volgograd"]="Volgograd",e["Krasnodar"]="Krasnodar",e["Rostov"]="Rostov",e["Voronezh"]="Voronezh"}(yn||(yn={}));var mn,bn,wn={name:"Russia",cities:[{name:yn.Murmansk,region:gn.Green,x:1574,y:351},{name:yn.Arkhangelsk,region:gn.Green,x:1456,y:695},{name:yn.Syktyvkar,region:gn.Green,x:1669,y:1005},{name:yn.Kirov,region:gn.Green,x:1457,y:1172},{name:yn.Kazan,region:gn.Green,x:1378,y:1478},{name:yn.Cheboksary,region:gn.Green,x:1200,y:1328},{name:yn.Ulyanovsk,region:gn.Green,x:884,y:1448},{name:yn.Tula,region:gn.Pink,x:485,y:1077},{name:yn.Kaliningrad,region:gn.Pink,x:394,y:606},{name:yn.Ryazan,region:gn.Pink,x:793,y:1193},{name:yn.Nizhnynovgorod,region:gn.Pink,x:1129,y:1116},{name:yn.Moscow,region:gn.Pink,x:763,y:961},{name:yn.Stpetersburg,region:gn.Pink,x:883,y:597},{name:yn.Yaroslavl,region:gn.Pink,x:1018,y:915},{name:yn.Chita,region:gn.Red,x:4168,y:2048},{name:yn.Bratsk,region:gn.Red,x:3599,y:1808},{name:yn.Krasnoyarsk,region:gn.Red,x:3230,y:1930},{name:yn.Kemerovd,region:gn.Red,x:2953,y:1987},{name:yn.Novokuznetsk,region:gn.Red,x:3041,y:2159},{name:yn.Irkutsk,region:gn.Red,x:3721,y:2162},{name:yn.Ulanude,region:gn.Red,x:4030,y:2228},{name:yn.Norilsk,region:gn.Yellow,x:3001,y:856},{name:yn.Surgut,region:gn.Yellow,x:2348,y:1411},{name:yn.Tyumen,region:gn.Yellow,x:2060,y:1627},{name:yn.Tomsk,region:gn.Yellow,x:2773,y:1835},{name:yn.Novosibirsk,region:gn.Yellow,x:2647,y:2005},{name:yn.Barnaul,region:gn.Yellow,x:2662,y:2191},{name:yn.Omsk,region:gn.Yellow,x:2195,y:1957},{name:yn.Chelyabinsk,region:gn.Purple,x:1768,y:1865},{name:yn.Ufa,region:gn.Purple,x:1472,y:1907},{name:yn.Perm,region:gn.Purple,x:1688,y:1388},{name:yn.Yekaterinburg,region:gn.Purple,x:1757,y:1620},{name:yn.Orenburg,region:gn.Purple,x:1250,y:1997},{name:yn.Naberezhnyechelny,region:gn.Purple,x:1427,y:1709},{name:yn.Samara,region:gn.Purple,x:1132,y:1701},{name:yn.Astrakhan,region:gn.Brown,x:619,y:2092},{name:yn.Makhachkala,region:gn.Brown,x:317,y:2262},{name:yn.Saratov,region:gn.Brown,x:808,y:1661},{name:yn.Volgograd,region:gn.Brown,x:589,y:1795},{name:yn.Krasnodar,region:gn.Brown,x:260,y:1865},{name:yn.Rostov,region:gn.Brown,x:311,y:1658},{name:yn.Voronezh,region:gn.Brown,x:485,y:1409}],connections:[{nodes:[yn.Kaliningrad,yn.Stpetersburg],cost:15},{nodes:[yn.Stpetersburg,yn.Murmansk],cost:19},{nodes:[yn.Murmansk,yn.Arkhangelsk],cost:15},{nodes:[yn.Arkhangelsk,yn.Stpetersburg],cost:14},{nodes:[yn.Tula,yn.Kaliningrad],cost:20},{nodes:[yn.Tula,yn.Moscow],cost:3},{nodes:[yn.Moscow,yn.Ryazan],cost:3},{nodes:[yn.Ryazan,yn.Voronezh],cost:5},{nodes:[yn.Voronezh,yn.Tula],cost:5},{nodes:[yn.Tula,yn.Stpetersburg],cost:13},{nodes:[yn.Tula,yn.Ryazan],cost:0},{nodes:[yn.Stpetersburg,yn.Moscow],cost:10},{nodes:[yn.Moscow,yn.Yaroslavl],cost:3},{nodes:[yn.Yaroslavl,yn.Nizhnynovgorod],cost:4},{nodes:[yn.Nizhnynovgorod,yn.Moscow],cost:7},{nodes:[yn.Yaroslavl,yn.Stpetersburg],cost:9},{nodes:[yn.Yaroslavl,yn.Arkhangelsk],cost:12},{nodes:[yn.Arkhangelsk,yn.Syktyvkar],cost:10},{nodes:[yn.Syktyvkar,yn.Surgut],cost:21},{nodes:[yn.Perm,yn.Syktyvkar],cost:8},{nodes:[yn.Syktyvkar,yn.Kirov],cost:6},{nodes:[yn.Syktyvkar,yn.Nizhnynovgorod],cost:11},{nodes:[yn.Nizhnynovgorod,yn.Arkhangelsk],cost:15},{nodes:[yn.Nizhnynovgorod,yn.Cheboksary],cost:3},{nodes:[yn.Cheboksary,yn.Ulyanovsk],cost:4},{nodes:[yn.Ulyanovsk,yn.Voronezh],cost:11},{nodes:[yn.Voronezh,yn.Volgograd],cost:8},{nodes:[yn.Volgograd,yn.Saratov],cost:6},{nodes:[yn.Saratov,yn.Samara],cost:5},{nodes:[yn.Samara,yn.Ulyanovsk],cost:3},{nodes:[yn.Ulyanovsk,yn.Kazan],cost:3},{nodes:[yn.Kazan,yn.Samara],cost:4},{nodes:[yn.Samara,yn.Naberezhnyechelny],cost:5},{nodes:[yn.Cheboksary,yn.Kazan],cost:2},{nodes:[yn.Cheboksary,yn.Kirov],cost:5},{nodes:[yn.Kirov,yn.Kazan],cost:5},{nodes:[yn.Kazan,yn.Perm],cost:8},{nodes:[yn.Kazan,yn.Naberezhnyechelny],cost:3},{nodes:[yn.Naberezhnyechelny,yn.Ufa],cost:4},{nodes:[yn.Ufa,yn.Orenburg],cost:6},{nodes:[yn.Orenburg,yn.Samara],cost:6},{nodes:[yn.Orenburg,yn.Naberezhnyechelny],cost:7},{nodes:[yn.Ufa,yn.Chelyabinsk],cost:8},{nodes:[yn.Chelyabinsk,yn.Yekaterinburg],cost:3},{nodes:[yn.Yekaterinburg,yn.Perm],cost:5},{nodes:[yn.Perm,yn.Kirov],cost:6},{nodes:[yn.Chelyabinsk,yn.Tyumen],cost:5},{nodes:[yn.Tyumen,yn.Surgut],cost:10},{nodes:[yn.Syktyvkar,yn.Tyumen],cost:17},{nodes:[yn.Tyumen,yn.Yekaterinburg],cost:5},{nodes:[yn.Chelyabinsk,yn.Omsk],cost:13},{nodes:[yn.Omsk,yn.Tyumen],cost:9},{nodes:[yn.Tyumen,yn.Tomsk],cost:19},{nodes:[yn.Tomsk,yn.Surgut],cost:15},{nodes:[yn.Tomsk,yn.Novosibirsk],cost:4},{nodes:[yn.Novosibirsk,yn.Barnaul],cost:4},{nodes:[yn.Barnaul,yn.Omsk],cost:11},{nodes:[yn.Omsk,yn.Novosibirsk],cost:10},{nodes:[yn.Omsk,yn.Tomsk],cost:12},{nodes:[yn.Rostov,yn.Krasnodar],cost:4},{nodes:[yn.Krasnodar,yn.Volgograd],cost:9},{nodes:[yn.Volgograd,yn.Astrakhan],cost:6},{nodes:[yn.Krasnodar,yn.Makhachkala],cost:14},{nodes:[yn.Makhachkala,yn.Astrakhan],cost:8},{nodes:[yn.Makhachkala,yn.Volgograd],cost:11},{nodes:[yn.Rostov,yn.Volgograd],cost:7},{nodes:[yn.Ryazan,yn.Ulyanovsk],cost:9},{nodes:[yn.Ulyanovsk,yn.Saratov],cost:6},{nodes:[yn.Saratov,yn.Voronezh],cost:8},{nodes:[yn.Rostov,yn.Voronezh],cost:9},{nodes:[yn.Naberezhnyechelny,yn.Perm],cost:6},{nodes:[yn.Naberezhnyechelny,yn.Yekaterinburg],cost:8},{nodes:[yn.Ufa,yn.Yekaterinburg],cost:6},{nodes:[yn.Chita,yn.Ulanude],cost:6},{nodes:[yn.Ulanude,yn.Irkutsk],cost:6},{nodes:[yn.Irkutsk,yn.Novokuznetsk],cost:21},{nodes:[yn.Novokuznetsk,yn.Kemerovd],cost:3},{nodes:[yn.Kemerovd,yn.Tomsk],cost:3},{nodes:[yn.Novosibirsk,yn.Novokuznetsk],cost:5},{nodes:[yn.Novosibirsk,yn.Kemerovd],cost:4},{nodes:[yn.Novokuznetsk,yn.Barnaul],cost:6},{nodes:[yn.Kemerovd,yn.Krasnoyarsk],cost:7},{nodes:[yn.Krasnoyarsk,yn.Novokuznetsk],cost:7},{nodes:[yn.Krasnoyarsk,yn.Irkutsk],cost:17},{nodes:[yn.Krasnoyarsk,yn.Bratsk],cost:10},{nodes:[yn.Bratsk,yn.Tomsk],cost:17},{nodes:[yn.Bratsk,yn.Irkutsk],cost:10},{nodes:[yn.Bratsk,yn.Ulanude],cost:14},{nodes:[yn.Tomsk,yn.Norilsk],cost:24},{nodes:[yn.Norilsk,yn.Bratsk],cost:29},{nodes:[yn.Norilsk,yn.Surgut],cost:19}],adjustRatio:[.25,.25],resupply:[[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],[[3,4,3],[3,4,3],[5,6,4],[5,7,5],[7,9,6]],[[2,2,3],[2,2,3],[3,3,4],[4,3,5],[4,5,6]],[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]],startingResources:[18,24,0,7],setupDeck:function(e,n,t){var r=Object(me["cloneDeep"])(Ue),o=[],a=[],i=r.pop();if("original"==n){o=r.filter((function(e){return e.number>=3&&e.number<=5})),a=r.filter((function(e){return e.number>=7&&e.number<=9}));var s=ot(10),u=ot(11),c=ot(13),l=r.filter((function(e){return 12==e.number||e.number>=15})),f=Te(l,t()+"");2==e||3==e?f=f.slice(8):4==e&&(f=f.slice(4));var d=f.slice(0,3).concat(s,u);d=Te(d,t()+""),r=[c].concat(d,f.slice(3),i)}else{var p=r.filter((function(e){return e.number<=15&&6!=e.number&&14!=e.number})),h=Te(p,t()+""),g=r.filter((function(e){return e.number>=16})),y=Te(g,t()+"");2==e?y=y.slice(6):3==e?y=y.slice(8):4==e&&(y=y.slice(4));var v=h.slice(0,6),m=h.slice(6);v=v.sort((function(e,n){return e.number-n.number})),o=v.slice(0,3),a=v.slice(3),r=m.concat(y,i)}return{actualMarket:o,futureMarket:a,powerPlantsDeck:r}},mapSpecificRules:"The power plant market is restricted, and the rules for removing old plants are changed."};(function(e){e["Pink"]="pink",e["Brown"]="brown",e["Green"]="green",e["Purple"]="purple",e["Red"]="red",e["Yellow"]="yellow"})(mn||(mn={})),function(e){e["Gerona"]="Gerona",e["Barcelona"]="Barcelona",e["Tarragona"]="Tarragona",e["Lerida"]="Lerida",e["Castellondelaplana"]="Castellon De La Plana",e["Valencia"]="Valencia",e["Alicante"]="Alicante",e["Sansebastian"]="San Sebastian",e["Pamplona"]="Pamplona",e["Zaragoza"]="Zaragoza",e["Madrid"]="Madrid",e["Logrono"]="Logrono",e["Bilbao"]="Bilbao",e["Santander"]="Santander",e["Gijon"]="Gijon",e["Leon"]="Leon",e["Valladolid"]="Valladolid",e["Salamanca"]="Salamanca",e["Orense"]="Orense",e["Lacoruna"]="La Coruna",e["Santiagodecompostela"]="Santiago De Compostela",e["Cuenca"]="Cuenca",e["Albacete"]="Albacete",e["Murcia"]="Murcia",e["Toledo"]="Toledo",e["Ciudadreal"]="Ciudad Real",e["Caceres"]="Caceres",e["Merida"]="Merida",e["Almeria"]="Almeria",e["Granada"]="Granada",e["Cordoba"]="Cordoba",e["Malaga"]="Malaga",e["Cadiz"]="Cadiz",e["Sevilla"]="Sevilla",e["Huelva"]="Huelva",e["Evora"]="Evora",e["Faro"]="Faro",e["Portimao"]="Portimao",e["Setubal"]="Setubal",e["Lisboa"]="Lisboa",e["Porto"]="Porto",e["Braga"]="Braga"}(bn||(bn={}));var xn={name:"Spain & Portugal",cities:[{name:bn.Evora,region:mn.Yellow,x:890,y:1780},{name:bn.Faro,region:mn.Yellow,x:822,y:2348},{name:bn.Portimao,region:mn.Yellow,x:592,y:2218},{name:bn.Setubal,region:mn.Yellow,x:578,y:1864},{name:bn.Lisboa,region:mn.Yellow,x:572,y:1586},{name:bn.Porto,region:mn.Yellow,x:736,y:1052},{name:bn.Braga,region:mn.Yellow,x:990,y:828},{name:bn.Gerona,region:mn.Pink,x:3728,y:666},{name:bn.Barcelona,region:mn.Pink,x:3538,y:848},{name:bn.Tarragona,region:mn.Pink,x:3312,y:970},{name:bn.Lerida,region:mn.Pink,x:3166,y:752},{name:bn.Castellondelaplana,region:mn.Pink,x:3010,y:1284},{name:bn.Valencia,region:mn.Pink,x:2938,y:1580},{name:bn.Alicante,region:mn.Pink,x:2936,y:1922},{name:bn.Sansebastian,region:mn.Brown,x:2498,y:278},{name:bn.Pamplona,region:mn.Brown,x:2648,y:484},{name:bn.Zaragoza,region:mn.Brown,x:2760,y:810},{name:bn.Madrid,region:mn.Brown,x:2088,y:1170},{name:bn.Logrono,region:mn.Brown,x:2310,y:622},{name:bn.Bilbao,region:mn.Brown,x:2264,y:226},{name:bn.Santander,region:mn.Brown,x:2022,y:252},{name:bn.Gijon,region:mn.Green,x:1672,y:190},{name:bn.Leon,region:mn.Green,x:1604,y:518},{name:bn.Valladolid,region:mn.Green,x:1850,y:782},{name:bn.Salamanca,region:mn.Green,x:1564,y:1032},{name:bn.Orense,region:mn.Green,x:1072,y:532},{name:bn.Lacoruna,region:mn.Green,x:982,y:184},{name:bn.Santiagodecompostela,region:mn.Green,x:772,y:394},{name:bn.Cuenca,region:mn.Purple,x:2464,y:1300},{name:bn.Albacete,region:mn.Purple,x:2532,y:1684},{name:bn.Murcia,region:mn.Purple,x:2678,y:2056},{name:bn.Toledo,region:mn.Purple,x:1920,y:1400},{name:bn.Ciudadreal,region:mn.Purple,x:1982,y:1714},{name:bn.Caceres,region:mn.Purple,x:1354,y:1432},{name:bn.Merida,region:mn.Purple,x:1318,y:1764},{name:bn.Almeria,region:mn.Red,x:2402,y:2440},{name:bn.Granada,region:mn.Red,x:2044,y:2272},{name:bn.Cordoba,region:mn.Red,x:1728,y:2074},{name:bn.Malaga,region:mn.Red,x:1782,y:2484},{name:bn.Cadiz,region:mn.Red,x:1290,y:2552},{name:bn.Sevilla,region:mn.Red,x:1390,y:2168},{name:bn.Huelva,region:mn.Red,x:1082,y:2196}],connections:[{nodes:[bn.Huelva,bn.Faro],cost:6},{nodes:[bn.Faro,bn.Portimao],cost:4},{nodes:[bn.Portimao,bn.Setubal],cost:12},{nodes:[bn.Setubal,bn.Evora],cost:6},{nodes:[bn.Evora,bn.Merida],cost:9},{nodes:[bn.Merida,bn.Sevilla],cost:14},{nodes:[bn.Sevilla,bn.Cadiz],cost:8},{nodes:[bn.Cadiz,bn.Malaga],cost:12},{nodes:[bn.Malaga,bn.Granada],cost:7},{nodes:[bn.Granada,bn.Almeria],cost:9},{nodes:[bn.Almeria,bn.Murcia],cost:13},{nodes:[bn.Murcia,bn.Alicante],cost:4},{nodes:[bn.Alicante,bn.Valencia],cost:9},{nodes:[bn.Valencia,bn.Castellondelaplana],cost:4},{nodes:[bn.Albacete,bn.Almeria],cost:19},{nodes:[bn.Albacete,bn.Murcia],cost:10},{nodes:[bn.Albacete,bn.Alicante],cost:11},{nodes:[bn.Albacete,bn.Valencia],cost:11},{nodes:[bn.Albacete,bn.Cuenca],cost:8},{nodes:[bn.Albacete,bn.Ciudadreal],cost:13},{nodes:[bn.Albacete,bn.Granada],cost:19},{nodes:[bn.Albacete,bn.Toledo],cost:14},{nodes:[bn.Toledo,bn.Madrid],cost:6},{nodes:[bn.Madrid,bn.Cuenca],cost:11},{nodes:[bn.Cuenca,bn.Valencia],cost:13},{nodes:[bn.Cuenca,bn.Castellondelaplana],cost:14},{nodes:[bn.Castellondelaplana,bn.Tarragona],cost:12},{nodes:[bn.Toledo,bn.Caceres],cost:16},{nodes:[bn.Caceres,bn.Merida],cost:4},{nodes:[bn.Merida,bn.Ciudadreal],cost:16},{nodes:[bn.Ciudadreal,bn.Granada],cost:16},{nodes:[bn.Granada,bn.Cordoba],cost:11},{nodes:[bn.Cordoba,bn.Malaga],cost:11},{nodes:[bn.Malaga,bn.Sevilla],cost:12},{nodes:[bn.Sevilla,bn.Cordoba],cost:8},{nodes:[bn.Cordoba,bn.Ciudadreal],cost:10},{nodes:[bn.Merida,bn.Cordoba],cost:14},{nodes:[bn.Huelva,bn.Cadiz],cost:9},{nodes:[bn.Huelva,bn.Sevilla],cost:6},{nodes:[bn.Merida,bn.Huelva],cost:15},{nodes:[bn.Huelva,bn.Evora],cost:12},{nodes:[bn.Evora,bn.Faro],cost:13},{nodes:[bn.Faro,bn.Setubal],cost:14},{nodes:[bn.Setubal,bn.Lisboa],cost:4},{nodes:[bn.Lisboa,bn.Evora],cost:9},{nodes:[bn.Lisboa,bn.Merida],cost:16},{nodes:[bn.Caceres,bn.Ciudadreal],cost:16},{nodes:[bn.Toledo,bn.Cuenca],cost:13},{nodes:[bn.Salamanca,bn.Toledo],cost:14},{nodes:[bn.Salamanca,bn.Madrid],cost:14},{nodes:[bn.Salamanca,bn.Caceres],cost:13},{nodes:[bn.Porto,bn.Lisboa],cost:18},{nodes:[bn.Porto,bn.Salamanca],cost:19},{nodes:[bn.Porto,bn.Caceres],cost:21},{nodes:[bn.Caceres,bn.Lisboa],cost:19},{nodes:[bn.Ciudadreal,bn.Toledo],cost:7},{nodes:[bn.Braga,bn.Porto],cost:3},{nodes:[bn.Braga,bn.Salamanca],cost:19},{nodes:[bn.Salamanca,bn.Valladolid],cost:7},{nodes:[bn.Valladolid,bn.Madrid],cost:13},{nodes:[bn.Madrid,bn.Zaragoza],cost:19},{nodes:[bn.Zaragoza,bn.Lerida],cost:8},{nodes:[bn.Lerida,bn.Tarragona],cost:6},{nodes:[bn.Tarragona,bn.Barcelona],cost:6},{nodes:[bn.Lerida,bn.Castellondelaplana],cost:13},{nodes:[bn.Castellondelaplana,bn.Zaragoza],cost:15},{nodes:[bn.Zaragoza,bn.Cuenca],cost:16},{nodes:[bn.Braga,bn.Valladolid],cost:24},{nodes:[bn.Lerida,bn.Barcelona],cost:10},{nodes:[bn.Barcelona,bn.Gerona],cost:6},{nodes:[bn.Gerona,bn.Lerida],cost:13},{nodes:[bn.Lerida,bn.Pamplona],cost:17},{nodes:[bn.Pamplona,bn.Zaragoza],cost:11},{nodes:[bn.Zaragoza,bn.Logrono],cost:11},{nodes:[bn.Logrono,bn.Madrid],cost:18},{nodes:[bn.Santiagodecompostela,bn.Braga],cost:11},{nodes:[bn.Braga,bn.Orense],cost:9},{nodes:[bn.Orense,bn.Santiagodecompostela],cost:7},{nodes:[bn.Santiagodecompostela,bn.Lacoruna],cost:4},{nodes:[bn.Lacoruna,bn.Gijon],cost:9},{nodes:[bn.Gijon,bn.Santander],cost:11},{nodes:[bn.Santander,bn.Bilbao],cost:6},{nodes:[bn.Bilbao,bn.Sansebastian],cost:5},{nodes:[bn.Sansebastian,bn.Pamplona],cost:6},{nodes:[bn.Pamplona,bn.Logrono],cost:7},{nodes:[bn.Logrono,bn.Sansebastian],cost:9},{nodes:[bn.Bilbao,bn.Logrono],cost:9},{nodes:[bn.Logrono,bn.Santander],cost:13},{nodes:[bn.Santander,bn.Valladolid],cost:16},{nodes:[bn.Valladolid,bn.Logrono],cost:15},{nodes:[bn.Leon,bn.Santander],cost:13},{nodes:[bn.Gijon,bn.Leon],cost:9},{nodes:[bn.Leon,bn.Valladolid],cost:9},{nodes:[bn.Valladolid,bn.Orense],cost:22},{nodes:[bn.Orense,bn.Leon],cost:14},{nodes:[bn.Gijon,bn.Orense],cost:10},{nodes:[bn.Orense,bn.Lacoruna],cost:6}],layout:"Portrait",adjustRatio:[.315,.315],mapPosition:[-135,60],resupply:[[[3,4,2],[4,5,2],[4,6,3],[4,7,3],[6,8,4]],[[2,3,5],[2,4,5],[3,5,6],[4,6,7],[5,7,9]],[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],[[0,2,1],[0,2,1],[0,4,1],[0,5,1],[0,5,2]]],startingResources:[24,18,9,8],setupDeck:function(e,n,t){var r,o,a=Object(me["cloneDeep"])(Ue);if(a=a.filter((function(e){return![18,22,27].includes(e.number)})),"original"==n){a=a.slice(8);var i=a.splice(2,1)[0],s=a.pop();a=Te(a,t()+""),2==e||3==e?a=a.slice(8):4==e&&(a=a.slice(4)),a.unshift(i),a.push(s),r=[ot(3),ot(4),ot(5),ot(6)],o=[ot(7),ot(8),ot(9),ot(10)]}else{var u=Te(a.splice(0,13),t()+""),c=u.splice(0,8);c=c.sort((function(e,n){return e.number-n.number})),r=c.slice(0,4),o=c.slice(4);var l=u.shift(),f=a.pop();a=Te(a,t()+""),2==e||3==e?(u=u.slice(2),a=Te(a.slice(6).concat(u),t()+"")):4==e?(u=u.slice(1),a=Te(a.slice(3).concat(u),t()+"")):a=Te(a.concat(u),t()+""),a.unshift(l),a.push(f)}return{actualMarket:r,futureMarket:o,powerPlantsDeck:a}},mapSpecificRules:"Remove power plants 18, 22 and 27 from the deck. Place them on top of the deck at the start of Step 2.\nYou cannot buy a nuclear power plant if you only have cities in Portugal."},_n=[Le,rn,He,xn,en,un,fn,vn,hn,Je,Ee,wn,$e,De],kn=[Oe,on,He,xn,en,un,fn,vn,hn,Je,Ee,wn,$e,De];const Pn=Math.pow(2,-52),Sn=new Uint32Array(512);class Cn{static from(e,n=En,t=Gn){const r=e.length,o=new Float64Array(2*r);for(let a=0;a<r;a++){const r=e[a];o[2*a]=n(r),o[2*a+1]=t(r)}return new Cn(o)}constructor(e){const n=e.length>>1;if(n>0&&"number"!==typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const t=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*t),this._halfedges=new Int32Array(3*t),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:e,_hullPrev:n,_hullNext:t,_hullTri:r,_hullHash:o}=this,a=e.length>>1;let i=1/0,s=1/0,u=-1/0,c=-1/0;for(let S=0;S<a;S++){const n=e[2*S],t=e[2*S+1];n<i&&(i=n),t<s&&(s=t),n>u&&(u=n),t>c&&(c=t),this._ids[S]=S}const l=(i+u)/2,f=(s+c)/2;let d,p,h,g=1/0;for(let S=0;S<a;S++){const n=Bn(l,f,e[2*S],e[2*S+1]);n<g&&(d=S,g=n)}const y=e[2*d],v=e[2*d+1];g=1/0;for(let S=0;S<a;S++){if(S===d)continue;const n=Bn(y,v,e[2*S],e[2*S+1]);n<g&&n>0&&(p=S,g=n)}let m=e[2*p],b=e[2*p+1],w=1/0;for(let S=0;S<a;S++){if(S===d||S===p)continue;const n=On(y,v,m,b,e[2*S],e[2*S+1]);n<w&&(h=S,w=n)}let x=e[2*h],_=e[2*h+1];if(w===1/0){for(let r=0;r<a;r++)this._dists[r]=e[2*r]-e[0]||e[2*r+1]-e[1];jn(this._ids,this._dists,0,a-1);const n=new Uint32Array(a);let t=0;for(let e=0,r=-1/0;e<a;e++){const o=this._ids[e];this._dists[o]>r&&(n[t++]=o,r=this._dists[o])}return this.hull=n.subarray(0,t),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(An(y,v,m,b,x,_)){const e=p,n=m,t=b;p=h,m=x,b=_,h=e,x=n,_=t}const k=zn(y,v,m,b,x,_);this._cx=k.x,this._cy=k.y;for(let S=0;S<a;S++)this._dists[S]=Bn(e[2*S],e[2*S+1],k.x,k.y);jn(this._ids,this._dists,0,a-1),this._hullStart=d;let P=3;t[d]=n[h]=p,t[p]=n[d]=h,t[h]=n[p]=d,r[d]=0,r[p]=1,r[h]=2,o.fill(-1),o[this._hashKey(y,v)]=d,o[this._hashKey(m,b)]=p,o[this._hashKey(x,_)]=h,this.trianglesLen=0,this._addTriangle(d,p,h,-1,-1,-1);for(let S,C,M=0;M<this._ids.length;M++){const a=this._ids[M],i=e[2*a],s=e[2*a+1];if(M>0&&Math.abs(i-S)<=Pn&&Math.abs(s-C)<=Pn)continue;if(S=i,C=s,a===d||a===p||a===h)continue;let u=0;for(let e=0,n=this._hashKey(i,s);e<this._hashSize;e++)if(u=o[(n+e)%this._hashSize],-1!==u&&u!==t[u])break;u=n[u];let c,l=u;while(c=t[l],!An(i,s,e[2*l],e[2*l+1],e[2*c],e[2*c+1]))if(l=c,l===u){l=-1;break}if(-1===l)continue;let f=this._addTriangle(l,a,t[l],-1,-1,r[l]);r[a]=this._legalize(f+2),r[l]=f,P++;let g=t[l];while(c=t[g],An(i,s,e[2*g],e[2*g+1],e[2*c],e[2*c+1]))f=this._addTriangle(g,a,c,r[a],-1,r[g]),r[a]=this._legalize(f+2),t[g]=g,P--,g=c;if(l===u)while(c=n[l],An(i,s,e[2*c],e[2*c+1],e[2*l],e[2*l+1]))f=this._addTriangle(c,a,l,-1,r[l],r[c]),this._legalize(f+2),r[c]=f,t[l]=l,P--,l=c;this._hullStart=n[a]=l,t[l]=n[g]=a,t[a]=g,o[this._hashKey(i,s)]=a,o[this._hashKey(e[2*l],e[2*l+1])]=l}this.hull=new Uint32Array(P);for(let S=0,C=this._hullStart;S<P;S++)this.hull[S]=C,C=t[C];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,n){return Math.floor(Mn(e-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:n,_halfedges:t,coords:r}=this;let o=0,a=0;while(1){const i=t[e],s=e-e%3;if(a=s+(e+2)%3,-1===i){if(0===o)break;e=Sn[--o];continue}const u=i-i%3,c=s+(e+1)%3,l=u+(i+2)%3,f=n[a],d=n[e],p=n[c],h=n[l],g=Ln(r[2*f],r[2*f+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1],r[2*h],r[2*h+1]);if(g){n[e]=h,n[i]=f;const r=t[l];if(-1===r){let n=this._hullStart;do{if(this._hullTri[n]===l){this._hullTri[n]=e;break}n=this._hullPrev[n]}while(n!==this._hullStart)}this._link(e,r),this._link(i,t[a]),this._link(a,l);const s=u+(i+1)%3;o<Sn.length&&(Sn[o++]=s)}else{if(0===o)break;e=Sn[--o]}}return a}_link(e,n){this._halfedges[e]=n,-1!==n&&(this._halfedges[n]=e)}_addTriangle(e,n,t,r,o,a){const i=this.trianglesLen;return this._triangles[i]=e,this._triangles[i+1]=n,this._triangles[i+2]=t,this._link(i,r),this._link(i+1,o),this._link(i+2,a),this.trianglesLen+=3,i}}function Mn(e,n){const t=e/(Math.abs(e)+Math.abs(n));return(n>0?3-t:1+t)/4}function Bn(e,n,t,r){const o=e-t,a=n-r;return o*o+a*a}function Rn(e,n,t,r,o,a){const i=(r-n)*(o-e),s=(t-e)*(a-n);return Math.abs(i-s)>=33306690738754716e-32*Math.abs(i+s)?i-s:0}function An(e,n,t,r,o,a){const i=Rn(o,a,e,n,t,r)||Rn(e,n,t,r,o,a)||Rn(t,r,o,a,e,n);return i<0}function Ln(e,n,t,r,o,a,i,s){const u=e-i,c=n-s,l=t-i,f=r-s,d=o-i,p=a-s,h=u*u+c*c,g=l*l+f*f,y=d*d+p*p;return u*(f*y-g*p)-c*(l*y-g*d)+h*(l*p-f*d)<0}function On(e,n,t,r,o,a){const i=t-e,s=r-n,u=o-e,c=a-n,l=i*i+s*s,f=u*u+c*c,d=.5/(i*c-s*u),p=(c*l-s*f)*d,h=(i*f-u*l)*d;return p*p+h*h}function zn(e,n,t,r,o,a){const i=t-e,s=r-n,u=o-e,c=a-n,l=i*i+s*s,f=u*u+c*c,d=.5/(i*c-s*u),p=e+(c*l-s*f)*d,h=n+(i*f-u*l)*d;return{x:p,y:h}}function jn(e,n,t,r){if(r-t<=20)for(let o=t+1;o<=r;o++){const r=e[o],a=n[r];let i=o-1;while(i>=t&&n[e[i]]>a)e[i+1]=e[i--];e[i+1]=r}else{const o=t+r>>1;let a=t+1,i=r;Dn(e,o,a),n[e[t]]>n[e[r]]&&Dn(e,t,r),n[e[a]]>n[e[r]]&&Dn(e,a,r),n[e[t]]>n[e[a]]&&Dn(e,t,a);const s=e[a],u=n[s];while(1){do{a++}while(n[e[a]]<u);do{i--}while(n[e[i]]>u);if(i<a)break;Dn(e,a,i)}e[t+1]=e[i],e[i]=s,r-a+1>=i-t?(jn(e,n,a,r),jn(e,n,t,i-1)):(jn(e,n,t,i-1),jn(e,n,a,r))}}function Dn(e,n,t){const r=e[n];e[n]=e[t],e[t]=r}function En(e){return e[0]}function Gn(e){return e[1]}function Tn(e,n,t){var r=b(new Set(e.cities.map((function(e){return e.region})))),o=Array(7*n).fill(0).map((function(e){return{name:"",region:"",x:0,y:0}})),a=[420,490,490],i=[490,560,700],s=a[n-3],u=i[n-3],c=70,l=Math.ceil(s/c),f=Math.ceil(u/c),d=l*f,p=Array(d).fill(-1);e.mapPosition=[100,200],e.layout="Portrait";var h=Array(d).fill(0).map((function(e,n){return n}));o.forEach((function(e,n){var r=h[Math.floor(t()*h.length)],o=Math.floor(r/l),a=r%l;e.x=Math.floor(2*a*c),e.y=Math.floor(o*c),o%2===0&&(e.x+=c);var i=2*t()*Math.PI,s=t()*c/2;e.x+=s*Math.cos(i),e.y+=s*Math.sin(i),h=h.filter((function(e){return e!==r})),p[r]=n}));for(var g=Array(o.length).fill(0).map((function(e){return Array(o.length).fill(0)})),y=Array(o.length).fill(0).map((function(e){return Array(o.length).fill(null)})),v=Cn.from(o,(function(e){return e.x}),(function(e){return e.y})),m=0;m<v.triangles.length;m+=3){var w=o[v.triangles[m]],x=o[v.triangles[m+1]],_=o[v.triangles[m+2]],k=g[v.triangles[m]][v.triangles[m+1]],P=k?Math.pow(k,2):Math.pow(w.x-x.x,2)+Math.pow(w.y-x.y,2),S=k||(g[v.triangles[m+1]][v.triangles[m]]=g[v.triangles[m]][v.triangles[m+1]]=Math.sqrt(P));k=g[v.triangles[m]][v.triangles[m+2]];var C=k?Math.pow(k,2):Math.pow(w.x-_.x,2)+Math.pow(w.y-_.y,2),M=k||(g[v.triangles[m+2]][v.triangles[m]]=g[v.triangles[m]][v.triangles[m+2]]=Math.sqrt(C));k=g[v.triangles[m+1]][v.triangles[m+2]];var B=k?Math.pow(k,2):Math.pow(x.x-_.x,2)+Math.pow(x.y-_.y,2),R=k||(g[v.triangles[m+2]][v.triangles[m+1]]=g[v.triangles[m+1]][v.triangles[m+2]]=Math.sqrt(B)),A=Math.acos((P+C-B)/(2*S*M)),L=Math.acos((P+B-C)/(2*S*R)),O=Math.PI-A-L,z=105*Math.PI/180;!1!==y[v.triangles[m]][v.triangles[m+1]]&&O<z?(y[v.triangles[m]][v.triangles[m+1]]=!0,y[v.triangles[m+1]][v.triangles[m]]=!0):(y[v.triangles[m]][v.triangles[m+1]]=!1,y[v.triangles[m+1]][v.triangles[m]]=!1),!1!==y[v.triangles[m]][v.triangles[m+2]]&&L<z?(y[v.triangles[m]][v.triangles[m+2]]=!0,y[v.triangles[m+2]][v.triangles[m]]=!0):(y[v.triangles[m]][v.triangles[m+2]]=!1,y[v.triangles[m+2]][v.triangles[m]]=!1),!1!==y[v.triangles[m+1]][v.triangles[m+2]]&&A<z?(y[v.triangles[m+1]][v.triangles[m+2]]=!0,y[v.triangles[m+2]][v.triangles[m+1]]=!0):(y[v.triangles[m+1]][v.triangles[m+2]]=!1,y[v.triangles[m+2]][v.triangles[m+1]]=!1)}for(var j=0,D=1e3,E=0;E<o.length;E++)for(var G=0;G<E;G++)if(y[E][G]){var T=g[E][G];j=Math.max(j,T),D=Math.min(D,T)}var I=5===n?[[s/4,u/4],[s/4,3*u/4],[s/2,u/2],[3*s/4,u/4],[3*s/4,3*u/4]]:4===n?[[s/4,u/4],[s/4,3*u/4],[3*s/4,u/4],[3*s/4,3*u/4]]:[[s/4,u/4],[s/2,u/2],[3*s/4,3*u/4]],N=In(o.map((function(e){return[e.x,e.y]})),n,I,y),U=Array(n).fill(0);o.forEach((function(e,n){e.region=r[N[n]],e.name=Object(me["upperFirst"])(e.region)+" "+(1+U[N[n]]++)}));for(var K=[],F=0;F<o.length;F++)for(var W=0;W<F;W++)if(y[F][W]){var H=o[F],V=o[W],Y=g[F][W];K.push({nodes:[H.name,V.name],cost:Math.floor(5*Y/c)})}return e.cities=o,e.connections=K,e}function In(e,n,t,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100,a=Array(e.length).fill(0),i=Math.ceil(e.length/n),s=!1,u=function(){var r=Array(n).fill(0),u=Array(e.length).fill(0).map((function(e){return Array(n).fill(0)}));e.forEach((function(e,n){var o=null,s=0;t.forEach((function(t,a){var c=Nn(e,t);(null===o||c<o)&&r[a]<i&&(o=c,s=a),u[n][a]=c})),a[n]=s,r[s]++}));var c=Array(t.length).fill(0).map((function(e){return[0,0]})),l=Array(t.length).fill(0);e.forEach((function(e,n){c[a[n]][0]+=e[0],c[a[n]][1]+=e[1],l[a[n]]++})),s=!0,t.forEach((function(e,n){c[n][0]=c[n][0]/l[n],c[n][1]=c[n][1]/l[n],e[0]===c[n][0]&&e[1]===c[n][1]||(s=!1)})),t=c,console.log("iterations",o),console.log("centroids",t),s=s||0===--o};do{u()}while(!s);var c=10;do{console.log("Refining"),s=!0,e.forEach((function(n,o){var i=a[o],u=r[o].some((function(e,n){return e&&i===a[n]}));if(!u){var c=t[i],l=null,f=null;r[o].forEach((function(n,t){if(n){var r=e[t],o=Nn(r,c);(null===l||o<l)&&(l=o,f=t)}})),a[o]=a[f],a[f]=i,s=!1}})),s=s||0===--c}while(!s);return a}function Nn(e,n){return(e[0]-n[0])*(e[0]-n[0])+(e[1]-n[1])*(e[1]-n[1])}var Un=["limegreen","mediumorchid","red","dodgerblue","yellow","brown"],Kn=[10,7,7,7,6],Fn=[9,6,6,6,5],Wn=[21,17,17,15,14],Hn=[10,22,33,44,54,64,73,82,90,98,105,112,118,124,129,134,138,142,145,148,150,150],Vn=[3,3,4,5,5];function Yn(e,n,t,r){var o,a,i=Object(me["cloneDeep"])(Ue);if("original"==n){i=i.slice(8);var s=i.splice(2,1)[0],u=i.pop();i=Te(i,t()+""),2==e||3==e?i=i.slice(8):4==e&&(i=i.slice(4)),i.unshift(s),i.push(u),o=[ot(3),ot(4),ot(5),ot(6)],a=[ot(7),ot(8),ot(9),ot(10)]}else{var c=Te(i.splice(0,13),t()+""),l=c.splice(0,8);l=l.sort((function(e,n){return e.number-n.number})),o=l.slice(0,4),a=l.slice(4);var f=c.shift(),d=i.pop();i=Te(i,t()+""),2==e||3==e?(c=c.slice(2),i=Te(i.slice(6).concat(c),t()+"")):4==e?(c=c.slice(1),i=Te(i.slice(3).concat(c),t()+"")):r&&(i=Te(i.concat(c),t()+"")),i.unshift(f),i.push(d)}return{actualMarket:o,futureMarket:a,powerPlantsDeck:i}}function $n(e,n,t,r,o){var a,i,s,c,l,f=n.fastBid,d=void 0!==f&&f,p=n.map,h=void 0===p?"USA":p,g=n.variant,y=void 0===g?"original":g,v=n.showMoney,m=void 0!==v&&v,b=n.useNewRechargedSetup,w=void 0===b||b,x=n.trackTotalSpent,_=void 0===x||x,k=n.randomizeMap,P=void 0!==k&&k;t=null!==(a=t)&&void 0!==a?a:Math.random().toString();var S,C,M,B=Be()(t),R=Object(me["cloneDeep"])("original"==y?_n.find((function(e){return e.name==h})):kn.find((function(e){return e.name==h})));if(r)M=r,S=M.splice(0,4),C=M.splice(0,4);else if(R.setupDeck){var A=R.setupDeck(e,y,B);S=A.actualMarket,C=A.futureMarket,M=A.powerPlantsDeck}else{var L=Yn(e,y,B,w);S=L.actualMarket,C=L.futureMarket,M=L.powerPlantsDeck}var O,z,j,D,E,G=Object(me["range"])(e).map((function(e){return{id:e,powerPlants:[],coalCapacity:0,coalLeft:0,oilCapacity:0,oilLeft:0,garbageCapacity:0,garbageLeft:0,uraniumCapacity:0,uraniumLeft:0,hybridCapacity:0,hybridLeft:0,money:50,housesLeft:22,cities:[],powerPlantsNotUsed:[],availableMoves:null,lastMove:null,isDropped:!1,isAI:!1,bid:0,passed:!1,skipAuction:!1,citiesPowered:0,resourcesUsed:[],totalIncome:0,totalSpentCities:0,totalSpentConnections:0,totalSpentPlants:0,totalSpentResources:0}})),T=G.length-2,I=Object(me["range"])(e),N=I[0];if(R.resupply?(O=R.resupply[0],z=R.resupply[1],j=R.resupply[2],D=R.resupply[3]):(O=[[3,4,3],[4,5,3],[5,6,4],[5,7,5],[7,9,6]],z=[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],j=[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],D=[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]),"Portrait"==R.layout||P){var U="USA"===R.name&&"recharged"===y;R.viewBox=R.viewBox||[1480,1060],R.adjustRatio=R.adjustRatio||[1,1],R.playerOrderPosition=R.playerOrderPosition||[1160,160],R.cityCountPosition=R.cityCountPosition||[0,0],R.powerPlantMarketPosition=R.powerPlantMarketPosition||[745,0],R.actualMarketWidth=R.actualMarketWidth||430,R.mapPosition=R.mapPosition||[0,0],R.buttonsPosition=R.buttonsPosition||[1305,0],R.playerBoardsPosition=R.playerBoardsPosition||[1105,240],R.roundInfoPosition=R.roundInfoPosition||[20,920],R.supplyPosition=R.supplyPosition||[U?480:675,920]}else R.viewBox=R.viewBox||[1465,860],R.adjustRatio=R.adjustRatio||[1,1],R.playerOrderPosition=R.playerOrderPosition||[1160,140],R.cityCountPosition=R.cityCountPosition||[0,0],R.powerPlantMarketPosition=R.powerPlantMarketPosition||[745,0],R.actualMarketWidth=R.actualMarketWidth||430,R.mapPosition=R.mapPosition||[-10,0],R.buttonsPosition=R.buttonsPosition||[1305,0],R.playerBoardsPosition=R.playerBoardsPosition||[1105,200],R.roundInfoPosition=R.roundInfoPosition||[20,590],R.supplyPosition=R.supplyPosition||[0,720];P?E=Tn(R,Vn[T],B):function(){R.cities=R.cities.map((function(e){return u(u({},e),{},{x:e.x*R.adjustRatio[0],y:e.y*R.adjustRatio[1]})}));var e=R.cities.filter((function(e,n){return R.cities.findIndex((function(n){return n.region==e.region}))==n})).map((function(e){return e.region})),n=R.connections.map((function(e){return e.nodes.map((function(e){return R.cities.find((function(n){return n.name==e})).region}))})),t=e.map((function(t){return e.filter((function(e){return t!=e&&n.some((function(n){return n.includes(t)&&n.includes(e)}))}))})),r=new Set;while(r.size!=Math.min(Vn[T],e.length)){var o=e[Math.floor(B()*e.length)];(0==r.size||t[e.indexOf(o)].some((function(e){return r.has(e)})))&&(r.add(o),"Italy"===R.name&&r.has("red")&&r.has("green")&&r.has("blue")&&r.clear())}var a=Object(me["cloneDeep"])(R);a.cities=a.cities.filter((function(e){return r.has(e.region)})),a.connections=a.connections.filter((function(e){return e.nodes.map((function(e){return R.cities.find((function(n){return n.name==e})).region})).every((function(e){return r.has(e)}))})),E=a}();var K=R.startingResources?R.startingResources[0]:24,F=R.startingResources?R.startingResources[1]:18,W=R.startingResources?R.startingResources[2]:"original"==y?6:9,H=R.startingResources?R.startingResources[3]:2,V=R.startingSupply?R.startingSupply[0]:24,Y=R.startingSupply?R.startingSupply[1]:24,$=R.startingSupply?R.startingSupply[2]:24,q=R.startingSupply?R.startingSupply[3]:12,Z=V-K,J=Y-F,X=$-W,Q=q-H,ee=Object(me["cloneDeep"])(null!==(i=R.coalPrices)&&void 0!==i?i:we.coal),ne=Object(me["cloneDeep"])(null!==(s=R.oilPrices)&&void 0!==s?s:we.oil),te=Object(me["cloneDeep"])(null!==(c=R.garbagePrices)&&void 0!==c?c:we.garbage),re=Object(me["cloneDeep"])(null!==(l=R.uraniumPrices)&&void 0!==l?l:we.uranium),oe={map:o||E,players:G,playerOrder:I,currentPlayers:[N],powerPlantsDeck:M,coalSupply:Z,oilSupply:J,garbageSupply:X,uraniumSupply:Q,coalResupply:O,oilResupply:z,garbageResupply:j,uraniumResupply:D,coalMarket:K,oilMarket:F,garbageMarket:W,uraniumMarket:H,coalPrices:ee,oilPrices:ne,garbagePrices:te,uraniumPrices:re,actualMarket:S,futureMarket:C,chosenPowerPlant:void 0,currentBid:void 0,highestBidders:[],auctioningPlayer:void 0,step:1,phase:ge.Auction,options:{fastBid:d,map:h,variant:y,showMoney:m,useNewRechargedSetup:w,trackTotalSpent:_},log:[],hiddenLog:[],seed:t,round:1,auctionSkips:0,citiesToStep2:"Baden-Württemberg"==(o||E).name?Fn[e-2]:Kn[e-2],citiesToEndGame:Wn[e-2],resourceResupply:["[".concat(O[T][0],", ").concat(z[T][0],", ").concat(j[T][0],", ").concat(D[T][0],"]"),"[".concat(O[T][1],", ").concat(z[T][1],", ").concat(j[T][1],", ").concat(D[T][1],"]"),"[".concat(O[T][2],", ").concat(z[T][2],", ").concat(j[T][2],", ").concat(D[T][2],"]")],paymentTable:Hn,variant:y,minimunBid:0,plantDiscountActive:"recharged"==y&&"China"!=(o||E).name&&"Russia"!=(o||E).name&&"Baden-Württemberg"!=(o||E).name,discardSmallestPlant:!1,cardsLeft:M.length,nextCardWeak:"recharged"==y,card39Bought:!1,knownPowerPlantDeck:S.concat(C),knownPowerPlantDeckStep3:[],powerPlantDeckAfterStep3:void 0};return oe.log.push({type:"event",event:"Game Start!"}),"Middle East"==oe.map.name&&et(oe),oe.players[N].availableMoves=xe(oe,oe.players[N]),oe}function qn(e,n,t){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=e.players[t],i=null===(r=a.availableMoves)||void 0===r?void 0:r[n.name];switch(bt(e),Ce()(e.currentPlayers.includes(t),"It is not your turn!"),Ce()(i,"You are not allowed to run the command "+n.name),o&&n.name==ye.DiscardPowerPlant&&a.powerPlants[a.powerPlants.length-1].number==n.data||Ce()(i.some((function(e){return Object(me["isEqual"])(e,n.data)})),"Wrong argument for the command "+n.name),n.name){case ye.ChoosePowerPlant:Ge(n),e.chosenPowerPlant=ot(n.data,e.map.name),e.auctioningPlayer=a.id,39==n.data&&(e.card39Bought=!0),"recharged"==e.options.variant&&e.plantDiscountActive&&e.chosenPowerPlant.number==e.actualMarket[0].number?(e.minimunBid=1,e.plantDiscountActive=!1,n.usedPlantDiscount=!0):e.minimunBid=n.data;var s=e.players.filter((function(e){return!e.skipAuction&&!e.isDropped}));if(1==s.length){e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," chooses Power Plant ").concat(n.data,"."),pretty:"".concat(it(a)," chooses Power Plant <b>").concat(n.data,"</b>.")});var u=s[0];dt(e,u,e.minimunBid),1==e.round&&pt(e),(u.powerPlants.length<=3||2==e.players.length&&4==u.powerPlants.length)&&("China"==e.map.name&&3!=e.step||Qn(e),ft(e))}else e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," chooses Power Plant ").concat(n.data," to initiate an auction."),pretty:"".concat(it(a)," chooses Power Plant <b>").concat(n.data,"</b> to initiate an auction.")}),e.options.fastBid&&(e.currentPlayers=e.playerOrder.filter((function(n){return!e.players[n].skipAuction&&!e.players[n].isDropped})));break;case ye.Bid:Ge(n),e.options.fastBid?(e.hiddenLog.push({type:"move",player:t,move:n,simple:"".concat(a.name," bids $").concat(n.data,"."),pretty:"".concat(it(a),' bids <span style="color: green">$').concat(n.data,"</span>.")}),wt(e,a,n.data)):(e.currentBid=a.bid=n.data,e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," bids $").concat(n.data,"."),pretty:"".concat(it(a),' bids <span style="color: green">$').concat(n.data,"</span>.")}),yt(e));break;case ye.Pass:switch(Ge(n),e.options.fastBid&&e.phase==ge.Auction&&e.chosenPowerPlant||e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," passes."),pretty:"".concat(it(a)," passes.")}),e.phase){case ge.Auction:var c;if(void 0==e.chosenPowerPlant)if(a.skipAuction=!0,e.auctionSkips++,1==e.auctionSkips&&"Russia"==e.map.name&&(null===(c=e.actualMarket)||void 0===c?void 0:c.length)>0&&(e.log.push({type:"event",event:"First pass, removing lowest numbered Power Plant (".concat(e.actualMarket[0].number,").")}),e.actualMarket.shift(),Qn(e)),e.players.some((function(e){return!e.skipAuction&&!e.isDropped})))mt(e);else{if(e.auctionSkips==e.players.length&&"original"==e.options.variant&&"China"!=e.map.name&&"Russia"!=e.map.name)if("Baden-Württemberg"==e.map.name){for(var l=[],f=0;f<2&&e.actualMarket.length>0;f++)l.push(e.actualMarket[0].number),e.actualMarket.shift(),Qn(e);e.log.push({type:"event",event:"Everyone passed, removing the two lowest numbered Power Plants (".concat(l.join(", "),").")})}else e.log.push({type:"event",event:"Everyone passed, removing lowest numbered Power Plant (".concat(e.actualMarket[0].number,").")}),e.actualMarket.shift(),Qn(e);ft(e)}else if(e.options.fastBid)e.hiddenLog.push({type:"move",player:t,move:n,simple:"".concat(a.name," passes."),pretty:"".concat(it(a)," passes.")}),wt(e,a,0);else{a.passed=!0;var d=e.players.filter((function(e){return!e.passed&&!e.skipAuction&&!e.isDropped}));if(1==d.length){var p=d[0];dt(e,p,p.bid),(p.powerPlants.length>4||e.players.length>2&&p.powerPlants.length>3)&&!p.isDropped?ht(e,p.id):("China"==e.map.name&&3!=e.step||Qn(e),e.players.some((function(e){return!e.skipAuction&&!e.isDropped}))?(e.players.forEach((function(e){e.bid=0,e.passed=e.isDropped})),mt(e,!0)):ft(e))}else yt(e)}break;case ge.Resources:if("India"==e.map.name&&e.chosenResource?e.chosenResource=void 0:a.passed=!0,0==e.players.filter((function(e){return!e.passed&&!e.isDropped})).length?(e.players.forEach((function(e){e.passed=e.isDropped})),e.phase=ge.Building,"India"==e.map.name&&(e.citiesBuiltInCurrentRound=0),ht(e,e.playerOrder[e.players.length-1]),e.players[e.currentPlayers[0]].isDropped&&e.players.some((function(e){return!e.isDropped}))&&(e.players[e.currentPlayers[0]].passed=!0,vt(e))):vt(e),"India"==e.map.name)while(e.players[e.currentPlayers[0]].passed)vt(e);break;case ge.Building:if(a.passed=!0,0==e.players.filter((function(e){return!e.passed&&!e.isDropped})).length){var h=Math.max.apply(Math,b(e.players.map((function(e){return e.cities.length}))));if(1==e.step&&h>=e.citiesToStep2&&"Middle East"!=e.map.name){var g=e.actualMarket.shift();e.log.push({type:"event",event:"Starting Step 2, Power Plant ".concat(null===g||void 0===g?void 0:g.number," discarded.")}),e.step=2,"Spain & Portugal"==e.map.name&&(e.powerPlantsDeck.find((function(e){return 18==e.number}))||(e.powerPlantsDeck.unshift(ot(27)),e.powerPlantsDeck.unshift(ot(22)),e.powerPlantsDeck.unshift(ot(18)))),Qn(e)}h>=e.citiesToEndGame?(e.phase=ge.GameEnd,e.currentPlayers=[],ut(e),"India"==e.map.name&&e.citiesBuiltInCurrentRound>2*e.players.length&&e.players.forEach((function(n){var t=e.paymentTable[n.citiesPowered]-3*n.cities.length;n.money+=Math.max(t,0),n.totalIncome+=Math.max(t,0)})),e.log.push({type:"event",event:"Game Ended!"})):(e.players.forEach((function(e){e.passed=e.isDropped,e.powerPlantsNotUsed=e.powerPlants.map((function(e){return e.number}))})),e.phase=ge.Bureaucracy,e.currentPlayers=e.playerOrder.filter((function(n){return!e.players[n].passed&&!e.players[n].isDropped})),"India"==e.map.name&&(e.players.forEach((function(e){return e.targetCitiesPowered=ct(e)})),e.citiesBuiltInCurrentRound>2*e.players.length&&e.log.push({type:"event",event:"Power outage! ".concat(e.citiesBuiltInCurrentRound," built this round, which is more than twice the number of players.")})),"China"==e.map.name&&e.step<=2?tt(e):0==e.futureMarket.length&&(e.step=3))}else vt(e);break;case ge.Bureaucracy:a.passed=!0;var y=Math.min(a.cities.length,a.citiesPowered),v=e.paymentTable[y];if("India"==e.map.name&&e.citiesBuiltInCurrentRound>2*e.players.length&&(v-=3*a.cities.length,v=Math.max(v,0)),a.money+=v,e.options.trackTotalSpent&&(a.totalIncome+=v),a.citiesPowered=0,"India"==e.map.name&&(a.targetCitiesPowered=0),0==e.players.filter((function(e){return!e.passed&&!e.isDropped})).length){var m,w=Math.min(e.coalSupply,e.coalResupply[e.players.length-2][e.step-1]);if(e.coalMarket+=w,e.coalSupply-=w,"Middle East"==e.map.name){0==e.oilMarket&&(e.oilPrices=we[pe.Oil]),m=e.oilResupply[e.players.length-2][e.step-1];for(var x=0;x<m;x++)e.oilSupply>0?(e.oilMarket++,e.oilSupply--):(e.oilPrices.pop(),e.oilPrices.unshift(1))}else m=Math.min(e.oilSupply,e.oilResupply[e.players.length-2][e.step-1]),e.oilMarket+=m,e.oilSupply-=m;var _=Math.min(e.garbageSupply,e.garbageResupply[e.players.length-2][e.step-1]);e.garbageMarket+=_,e.garbageSupply-=_;var k=0;if(("recharged"!=e.options.variant||"Germany"!=e.options.map&&"Italy"!=e.options.map||!e.card39Bought)&&(k=Math.min(e.uraniumSupply,e.uraniumResupply[e.players.length-2][e.step-1]),e.uraniumMarket+=k,e.uraniumSupply-=k),e.log.push({type:"event",event:"Resupplying resources: [".concat(w,", ").concat(m,", ").concat(_,", ").concat(k,"].")}),"Middle East"==e.map.name&&2==e.step&&e.futureMarket.length>0){var P=e.futureMarket.pop();e.log.push({type:"event",event:"Putting Power Plant ".concat(P.number," on the bottom of the deck.")}),e.powerPlantsDeck.push(P),Qn(e),P=e.futureMarket.length?e.futureMarket.pop():e.actualMarket.pop(),e.log.push({type:"event",event:"Putting Power Plant ".concat(P.number," on the bottom of the deck.")}),e.powerPlantsDeck.push(P),Qn(e)}else if(e.futureMarket.length>0){if("Benelux"==e.map.name&&("original"==e.options.variant||e.discardSmallestPlant)){var S=e.actualMarket[0];e.log.push({type:"event",event:"Removing smallest plant, Power Plant ".concat(S.number,".")}),e.actualMarket.shift(),Qn(e),e.discardSmallestPlant=!1}var C;if("Quebec"==e.map.name){var M=e.futureMarket.filter((function(e){return e.type!=he.Wind}));if(C=M.pop(),C)e.futureMarket=e.futureMarket.filter((function(e){var n;return e.number!=(null===(n=C)||void 0===n?void 0:n.number)}));else{var B=e.actualMarket.filter((function(e){return e.type!=he.Wind}));C=B.pop(),C&&(e.actualMarket=e.actualMarket.filter((function(e){var n;return e.number!=(null===(n=C)||void 0===n?void 0:n.number)})))}}else C=e.futureMarket.pop();C&&(e.log.push({type:"event",event:"Putting Power Plant ".concat(C.number," on the bottom of the deck.")}),e.powerPlantsDeck.push(C),Qn(e))}else e.actualMarket.length>0&&("China"!=e.map.name||3==e.step)&&(e.log.push({type:"event",event:"Discarding Power Plant ".concat(e.actualMarket[0].number,".")}),e.actualMarket.shift(),Qn(e));e.round++,"Baden-Württemberg"!=e.map.name&&pt(e),e.players.forEach((function(e){e.passed=e.isDropped})),e.auctionSkips=0,e.actualMarket.length>0?(e.phase=ge.Auction,0==e.futureMarket.length&&"China"!=e.map.name&&(e.step=3),e.plantDiscountActive="recharged"==e.options.variant&&"China"!=e.map.name&&"Russia"!=e.map.name&&"Baden-Württemberg"!=e.map.name,ht(e,e.playerOrder[0])):ft(e)}else e.currentPlayers=e.playerOrder.filter((function(n){return!e.players[n].passed&&!e.players[n].isDropped}));break}break;case ye.DiscardPowerPlant:Ge(n),n.extra||e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," discards Power Plant ").concat(n.data,"."),pretty:"".concat(it(a)," discards Power Plant <b>").concat(n.data,"</b>.")});var R=a.powerPlants.find((function(e){return e.number==n.data}));if(a.powerPlants=a.powerPlants.filter((function(e){return e.number!=n.data})),Xn(a),n.extra){var A=[];switch(R.type){case he.Coal:e.coalSupply+=n.extra[0],a.coalLeft-=n.extra[0],A.push(n.extra[0]+" Coal");break;case he.Oil:e.oilSupply+=n.extra[0],a.oilLeft-=n.extra[0],A.push(n.extra[0]+" Oil");break;case he.Garbage:e.garbageSupply+=n.extra[0],a.garbageLeft-=n.extra[0],A.push(n.extra[0]+" Garbage");break;case he.Uranium:e.uraniumSupply+=n.extra[0],a.uraniumLeft-=n.extra[0],A.push(n.extra[0]+" Uranium");break;case he.Hybrid:n.extra[0]>0&&(e.coalSupply+=n.extra[0],a.coalLeft-=n.extra[0],A.push(n.extra[0]+" Coal")),n.extra[1]>0&&(e.oilSupply+=n.extra[1],a.oilLeft-=n.extra[1],A.push(n.extra[1]+" Oil"));break}e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," discards Power Plant ").concat(n.data," and ").concat(A.join(", "),"."),pretty:"".concat(it(a)," discards Power Plant <b>").concat(n.data,"</b> and ").concat(A.join(", "),".")}),"China"==e.map.name&&3!=e.step||Qn(e),e.players.forEach((function(e){e.bid=0,e.passed=e.isDropped})),e.players.some((function(e){return!e.skipAuction&&!e.isDropped}))?mt(e,!0):ft(e)}else{var L=[],O=a.hybridCapacity>0?Math.max(0,a.oilLeft-a.oilCapacity):0;a.coalCapacity+a.hybridCapacity<a.coalLeft+O&&L.push(pe.Coal),O=a.hybridCapacity>0?Math.max(0,a.coalLeft-a.coalCapacity):0,a.oilCapacity+a.hybridCapacity<a.oilLeft+O&&L.push(pe.Oil),a.garbageLeft>a.garbageCapacity&&(e.garbageSupply+=a.garbageLeft-a.garbageCapacity,a.garbageLeft=a.garbageCapacity),a.uraniumLeft>a.uraniumCapacity&&(e.uraniumSupply+=a.uraniumLeft-a.uraniumCapacity,a.uraniumLeft=a.uraniumCapacity),1==L.length&&(L[0]==pe.Coal?(e.coalSupply+=a.coalLeft-a.coalCapacity,a.coalLeft=a.coalCapacity):L[0]==pe.Oil&&(e.oilSupply+=a.oilLeft-a.oilCapacity,a.oilLeft=a.oilCapacity),L.pop()),0==L.length&&("China"==e.map.name&&3!=e.step||Qn(e),e.players.forEach((function(e){e.bid=0,e.passed=e.isDropped})),e.players.some((function(e){return!e.skipAuction&&!e.isDropped}))?mt(e,!0):ft(e))}break;case ye.DiscardResources:Ge(n),e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," discarded a ").concat(n.data,"."),pretty:"".concat(it(a)," discarded a <b>").concat(n.data,"</b>.")}),n.data==pe.Coal?(a.coalLeft--,e.coalSupply++):n.data==pe.Oil&&(a.oilLeft--,e.oilSupply++);var z=[],j=a.hybridCapacity>0?Math.max(0,a.oilLeft-a.oilCapacity):0;a.coalCapacity+a.hybridCapacity<a.coalLeft+j&&z.push(pe.Coal),j=a.hybridCapacity>0?Math.max(0,a.coalLeft-a.coalCapacity):0,a.oilCapacity+a.hybridCapacity<a.oilLeft+j&&z.push(pe.Oil),1==z.length&&(z[0]==pe.Coal?a.coalLeft--:z[0]==pe.Oil&&a.oilLeft--,z.pop()),0==z.length&&("China"==e.map.name&&3!=e.step||Qn(e),e.players.forEach((function(e){e.bid=0,e.passed=e.isDropped})),e.players.some((function(e){return!e.skipAuction&&!e.isDropped}))?mt(e,!0):ft(e));break;case ye.BuyResource:var D;switch(Ge(n),e.chosenResource=n.data.resource,n.data.resource){case pe.Coal:if(0==e.coalMarket)D=8,a.coalLeft++,e.coalSupply--,n.fromSupply=!0;else{var E,G=null!==(E=e.coalPrices)&&void 0!==E?E:we[pe.Coal];D=G[G.length-e.coalMarket],a.coalLeft++,e.coalMarket--}break;case pe.Oil:var T,I=null!==(T=e.oilPrices)&&void 0!==T?T:we[pe.Oil];D=I[I.length-e.oilMarket],a.oilLeft++,e.oilMarket--;break;case pe.Garbage:var N,U=null!==(N=e.garbagePrices)&&void 0!==N?N:we[pe.Garbage];if(D=U[U.length-e.garbageMarket],"Central Europe"==e.map.name){var K=a.cities.filter((function(e){return"Wien"==e.name}));(null===K||void 0===K?void 0:K.length)>0&&D--}a.garbageLeft++,e.garbageMarket--;break;case pe.Uranium:var F,W=null!==(F=e.uraniumPrices)&&void 0!==F?F:we[pe.Uranium];D=W[W.length-e.uraniumMarket],a.uraniumLeft++,e.uraniumMarket--;break}a.money-=D,e.options.trackTotalSpent&&(a.totalSpentResources+=D),e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," buys ").concat(n.data.resource," for $").concat(D,"."),pretty:"".concat(it(a)," buys <b>").concat(n.data.resource,'</b> for <span style="color: green">$').concat(D,"</span>.")});break;case ye.Build:Ge(n);var H=e.players.filter((function(e){return e.cities.find((function(e){return e.name==n.data.name}))})).length;a.cities.push({name:n.data.name,position:H}),a.money-=n.data.price,e.options.trackTotalSpent&&(a.totalSpentCities+=10+5*H,a.totalSpentConnections+=n.data.price-(10+5*H)),e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," builds on ").concat(n.data.name," for $").concat(n.data.price,"."),pretty:"".concat(it(a)," builds on <b>").concat(n.data.name,'</b> for <span style="color: green">$').concat(n.data.price,"</span>.")}),"India"==e.map.name&&e.citiesBuiltInCurrentRound++,"original"==e.options.variant&&e.actualMarket.length>0&&a.cities.length>=e.actualMarket[0].number&&"China"!=e.map.name&&"Russia"!=e.map.name&&"Baden-Württemberg"!=e.map.name&&(e.actualMarket.shift(),Qn(e));break;case ye.UsePowerPlant:Ge(n),a.powerPlantsNotUsed=a.powerPlantsNotUsed.filter((function(e){return e!=n.data.powerPlant})),n.data.resourcesSpent.forEach((function(n){switch(n){case pe.Coal:a.coalLeft--,e.coalSupply++;break;case pe.Oil:a.oilLeft--,e.oilSupply++;break;case pe.Garbage:a.garbageLeft--,e.garbageSupply++;break;case pe.Uranium:a.uraniumLeft--,e.uraniumSupply++;break}})),a.citiesPowered+=n.data.citiesPowered,e.log.push({type:"move",player:t,move:n,simple:"".concat(a.name," uses Power Plant ").concat(n.data.powerPlant,"."),pretty:"".concat(it(a)," uses Power Plant <b>").concat(n.data.powerPlant,"</b>.")});break;case ye.Undo:Ge(n);var V=a.lastMove;switch(null===V||void 0===V?void 0:V.name){case ye.ChoosePowerPlant:39==V.data&&(e.card39Bought=!1),V.usedPlantDiscount&&(e.plantDiscountActive=!0),e.chosenPowerPlant=void 0,e.auctioningPlayer=void 0,e.currentPlayers=[a.id],e.log.pop();break;case ye.BuyResource:var Y;switch(V.data.resource){case pe.Coal:if(V.fromSupply)Y=8,a.coalLeft--,e.coalSupply++;else{var $;a.coalLeft--,e.coalMarket++;var q=null!==($=e.coalPrices)&&void 0!==$?$:we[pe.Coal];Y=q[q.length-e.coalMarket]}break;case pe.Oil:var Z;a.oilLeft--,e.oilMarket++;var J=null!==(Z=e.oilPrices)&&void 0!==Z?Z:we[pe.Oil];Y=J[J.length-e.oilMarket];break;case pe.Garbage:var X;a.garbageLeft--,e.garbageMarket++;var Q=null!==(X=e.garbagePrices)&&void 0!==X?X:we[pe.Garbage];if(Y=Q[Q.length-e.garbageMarket],"Central Europe"==e.map.name){var ee=a.cities.filter((function(e){return"Wien"==e.name}));(null===ee||void 0===ee?void 0:ee.length)>0&&Y--}break;case pe.Uranium:var ne;a.uraniumLeft--,e.uraniumMarket++;var te=null!==(ne=e.uraniumPrices)&&void 0!==ne?ne:we[pe.Uranium];Y=te[te.length-e.uraniumMarket];break}a.money+=Y,e.options.trackTotalSpent&&(a.totalSpentResources-=Y),"India"==e.map.name&&(e.chosenResource=void 0),e.log.pop();break;case ye.Build:a.cities.pop(),a.money+=V.data.price;var re=e.players.filter((function(e){return e.cities.find((function(e){return e.name==V.data.name}))})).length;e.options.trackTotalSpent&&(a.totalSpentCities-=10+5*re,a.totalSpentConnections-=V.data.price-(10+5*re)),e.log.pop(),"India"==e.map.name&&e.citiesBuiltInCurrentRound--;break;case ye.UsePowerPlant:a.powerPlantsNotUsed.push(V.data.powerPlant),V.data.resourcesSpent.forEach((function(n){switch(n){case pe.Coal:a.coalLeft++,e.coalSupply--;break;case pe.Oil:a.oilLeft++,e.oilSupply--;break;case pe.Garbage:a.garbageLeft++,e.garbageSupply--;break;case pe.Uranium:a.uraniumLeft++,e.uraniumSupply--;break}})),a.citiesPowered-=V.data.citiesPowered;var oe=e.log.slice().reverse(),ae=e.log.length-oe.findIndex((function(e){return"move"==e.type&&e.player==a.id}))-1;e.log.splice(ae,1);break}}if(a.availableMoves=null,n.name==ye.Undo){var ie=e.log.slice().reverse(),se=ie.find((function(e){return"move"==e.type&&e.player==a.id}));a.lastMove=null===se||void 0===se?void 0:se.move}else a.lastMove=n;return e.cardsLeft=e.powerPlantsDeck.length,e.nextCardWeak="recharged"==e.options.variant&&e.cardsLeft>0&&e.powerPlantsDeck[0].number<=15,e.currentPlayers.forEach((function(n){return e.players[n].availableMoves=xe(e,e.players[n])})),e}function Zn(e){return e.phase==ge.GameEnd}function Jn(e,n){var t=at(e),r=Object(me["cloneDeep"])(t);void 0!=n&&"secret"==e.seed&&e.knownPowerPlantDeck&&(r.map=e.map,r.powerPlantsDeck=Object(me["cloneDeep"])(e.knownPowerPlantDeck),r.actualMarket=r.powerPlantsDeck.splice(0,4),r.futureMarket=r.powerPlantsDeck.splice(0,4),r.players[r.currentPlayers[0]].availableMoves=xe(r,r.players[r.currentPlayers[0]]),r.powerPlantDeckAfterStep3=e.knownPowerPlantDeckStep3,r.knownPowerPlantDeck=r.actualMarket.concat(r.futureMarket));var o,a=null!=n?e.log.slice(0,n):e.log,i=w(a);try{for(i.s();!(o=i.n()).done;){var s=o.value;switch(s.type){case"event":if(s.event.endsWith("was dropped")){var u=+s.event.split(" ")[1];r.players[u].isDropped=!0}break;case"move":qn(r,s.move,s.player,!0);break}}}catch(c){i.e(c)}finally{i.f()}return r}function Xn(e){e.coalCapacity=e.oilCapacity=e.garbageCapacity=e.uraniumCapacity=e.hybridCapacity=0,e.powerPlants.forEach((function(n){switch(n.type){case he.Coal:e.coalCapacity+=2*n.cost;break;case he.Oil:e.oilCapacity+=2*n.cost;break;case he.Garbage:n.storage?e.garbageCapacity+=n.storage:e.garbageCapacity+=2*n.cost;break;case he.Uranium:e.uraniumCapacity+=2*n.cost;break;case he.Hybrid:e.hybridCapacity+=2*n.cost;break}}))}function Qn(e){var n=e.powerPlantsDeck.shift();if(n){if(3==e.step?e.knownPowerPlantDeckStep3&&e.knownPowerPlantDeckStep3.push(n):e.knownPowerPlantDeck&&e.knownPowerPlantDeck.push(n),"original"==e.options.variant&&"China"!=e.map.name){var t=Math.max.apply(Math,b(e.players.map((function(e){return e.cities.length}))));while(n.number<=t){var r;if(e.log.push({type:"event",event:"Power plant ".concat(null===(r=n)||void 0===r?void 0:r.number," discarded.")}),!(e.powerPlantsDeck.length>0))break;n=e.powerPlantsDeck.shift(),3==e.step?e.knownPowerPlantDeckStep3&&e.knownPowerPlantDeckStep3.push(n):e.knownPowerPlantDeck&&e.knownPowerPlantDeck.push(n)}}var o=!1;if(99==n.number){if(e.powerPlantDeckAfterStep3?e.powerPlantsDeck=e.powerPlantDeckAfterStep3:"China"==e.map.name?e.step=3:e.powerPlantsDeck=Te(e.powerPlantsDeck,e.seed),e.phase!=ge.Auction)if("Middle East"==e.map.name&&1==e.step){var a=[].concat(b(e.actualMarket),b(e.futureMarket),[n]);a.sort((function(e,n){return e.number-n.number})),e.actualMarket=a.slice(0,4),e.futureMarket=a.slice(4),nt(e),o=!0}else{var i=e.actualMarket.shift();e.log.push({type:"event",event:"Step 3 will begin next phase, Power Plant ".concat(null===i||void 0===i?void 0:i.number," discarded.")});var s=[].concat(b(e.actualMarket),b(e.futureMarket));s.sort((function(e,n){return e.number-n.number})),e.actualMarket=s,e.futureMarket=[]}}else{if(e.plantDiscountActive&&n.number<e.actualMarket[0].number)return e.log.push({type:"event",event:"Power Plant ".concat(n.number," drawn from the deck and discarded.")}),e.plantDiscountActive=!1,void Qn(e);e.log.push({type:"event",event:"Power Plant ".concat(n.number," drawn from the deck.")})}if("China"==e.map.name&&n.type!=he.Step3){var u=[].concat(b(e.actualMarket),[n]);u.sort((function(e,n){return e.number-n.number})),e.actualMarket=u}else if(!o){var c=[].concat(b(e.actualMarket),b(e.futureMarket),[n]);c.sort((function(e,n){return e.number-n.number})),0==e.futureMarket.length?"Russia"==e.map.name?(e.actualMarket=c.slice(0,4),e.futureMarket=[]):(e.actualMarket=c.slice(0,6),e.futureMarket=[]):"Russia"==e.map.name?(e.actualMarket=c.slice(0,3),e.futureMarket=c.slice(3)):"Benelux"==e.map.name&&c[4].type==he.Wind?(e.actualMarket=c.slice(0,5),e.futureMarket=c.slice(5)):(e.actualMarket=c.slice(0,4),e.futureMarket=c.slice(4)),"Middle East"==e.map.name&&1==e.step&&et(e)}}}function et(e){var n=e.actualMarket.find((function(e){return e.type==he.Garbage||e.type==he.Uranium})),t=function(){rt(e,n),[6,11,14].includes(n.number)?e.log.push({type:"event",event:"Removing Power Plant ".concat(n.number," from game.")}):(e.powerPlantsDeck.push(n),e.log.push({type:"event",event:"Sending Power Plant ".concat(n.number," to the bottom of the deck.")}));var t=e.futureMarket.filter((function(e){return e.type!=he.Garbage&&e.type!=he.Uranium})),r=t.length>0?t[0].number:100;if(0==e.powerPlantsDeck.filter((function(e){return e.type!=he.Garbage&&e.type!=he.Uranium||e.number>r})).length)return e.log.push({type:"event",event:"No suitable power plants available to draw."}),"break";Qn(e),n=e.actualMarket.find((function(e){return e.type==he.Garbage||e.type==he.Uranium}))};while(n){var r=t();if("break"===r)break}}function nt(e){var n=e.futureMarket.pop();e.powerPlantsDeck=Te(e.powerPlantsDeck,e.seed),e.powerPlantsDeck.push(n),Qn(e),e.log.push({type:"event",event:"Step 2 will begin next phase, discarding two power plants."}),e.step=2;var t=e.actualMarket.shift();t&&(e.log.push({type:"event",event:"Power Plant ".concat(t.number," discarded to start step 2.")}),Qn(e));var r=e.actualMarket.shift();r&&(e.log.push({type:"event",event:"Power Plant ".concat(r.number," discarded to start step 2.")}),Qn(e))}function tt(e){var n=0;2==e.players.length||3==e.players.length?n=1:4==e.players.length||5==e.players.length?n=2:6==e.players.length&&(n=3);for(var t=e.actualMarket.length,r=e.players.length-1,o=Math.max(n,r-t),a=0;a<o;a++){if(3==e.step)break;Qn(e)}while(2==e.players.length&&e.actualMarket.length<2&&3!=e.step)Qn(e);if(3==e.step){e.actualMarket=e.actualMarket.filter((function(e){return e.type!=he.Step3}));while(e.actualMarket.length<4&&e.powerPlantsDeck.length>0)Qn(e)}else{var i=Math.max(2,e.players.length-1);while(e.actualMarket.length>i)e.actualMarket.shift()}}function rt(e,n){e.actualMarket.splice(e.actualMarket.findIndex((function(e){return e.number==n.number})),1)}function ot(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"India"==n?Ke.find((function(n){return n.number==e})):Ue.find((function(n){return n.number==e}))}function at(e){var n=$n(e.players.length,e.options,e.seed);return n.players.forEach((function(n,t){n.name=e.players[t].name,n.isAI=e.players[t].isAI})),n}function it(e){return'<span style="background-color: '.concat(Un[e.id],'; font-weight: bold; padding: 0 3px;">').concat(e.name,"</span>")}function st(e){return Object(me["cloneDeep"])(e.players).sort((function(e,n){return e.citiesPowered==n.citiesPowered?e.money==n.money?e.cities.length-n.cities.length:e.money-n.money:e.citiesPowered-n.citiesPowered})).reverse()}function ut(e){e.players.forEach((function(e){e.citiesPowered=ct(e)}))}function ct(e){for(var n=[],t=function(t){var r=[];e.powerPlants.forEach((function(e,n){t&Math.pow(2,n)&&r.push(e)})),n.push(r)},r=0;r<Math.pow(2,e.powerPlants.length);r++)t(r);var o=0;return n.forEach((function(n){if(lt(e,n)){var t=n.map((function(e){return e.citiesPowered})).reduce((function(e,n){return e+n}),0);o=Math.max(o,t)}})),Math.min(e.cities.length,o)}function lt(e,n){var t=n.filter((function(e){return e.type==he.Coal})).map((function(e){return e.cost})).reduce((function(e,n){return e+n}),0),r=n.filter((function(e){return e.type==he.Oil})).map((function(e){return e.cost})).reduce((function(e,n){return e+n}),0),o=n.filter((function(e){return e.type==he.Garbage})).map((function(e){return e.cost})).reduce((function(e,n){return e+n}),0),a=n.filter((function(e){return e.type==he.Uranium})).map((function(e){return e.cost})).reduce((function(e,n){return e+n}),0),i=n.filter((function(e){return e.type==he.Hybrid})).map((function(e){return e.cost})).reduce((function(e,n){return e+n}),0);return!(t>e.coalLeft||r>e.oilLeft||o>e.garbageLeft||a>e.uraniumLeft)&&!(i>e.coalLeft-t+e.oilLeft-r)}function ft(e){if("Baden-Württemberg"==e.map.name&&pt(e),e.players.forEach((function(e){e.bid=0,e.passed=e.isDropped})),e.players.forEach((function(e){e.skipAuction=!1})),"recharged"==e.options.variant&&(e.plantDiscountActive?(e.plantDiscountActive=!1,e.actualMarket.length>0&&(e.log.push({type:"event",event:"Discarding Power Plant ".concat(e.actualMarket[0].number,".")}),e.actualMarket.shift(),Qn(e))):"Benelux"==e.map.name&&(e.discardSmallestPlant=!0)),e.futureMarket.find((function(e){return 99==e.number})))if("Middle East"==e.map.name&&1==e.step)nt(e);else{var n=e.actualMarket.shift();e.futureMarket.pop(),e.log.push({type:"event",event:"Starting Step 3, Power Plant ".concat(null===n||void 0===n?void 0:n.number," discarded.")}),e.step=3,e.actualMarket=[].concat(b(e.actualMarket),b(e.futureMarket)),e.futureMarket=[]}e.phase=ge.Resources,ht(e,e.playerOrder[e.players.length-1])}function dt(e,n,t){n.powerPlants.push(e.chosenPowerPlant),n.money-=t,e.options.trackTotalSpent&&(n.totalSpentPlants+=t),n.skipAuction=!0,Xn(n),e.log.push({type:"event",event:"".concat(n.name," wins the bid and pays ").concat(t,"."),pretty:"".concat(it(n),' wins the bid and pays <span style="color: green">$').concat(t,"</span>.")}),rt(e,e.chosenPowerPlant),e.chosenPowerPlant=e.currentBid=void 0}function pt(e){e.playerOrder=Object(me["cloneDeep"])(e.players).sort((function(e,n){var t=e.cities.length,r=n.cities.length;return t==r?Math.max.apply(Math,b(e.powerPlants.map((function(e){return e.number}))))-Math.max.apply(Math,b(n.powerPlants.map((function(e){return e.number})))):t-r})).map((function(e){return e.id})).reverse()}function ht(e,n){e.currentPlayers=[n],e.players[n].isDropped&&e.players.some((function(e){return!e.isDropped}))&&(e.players[n].passed=!0,gt(e))}function gt(e){e.phase==ge.Auction?void 0==e.chosenPowerPlant?mt(e):yt(e):vt(e)}function yt(e){var n=e.currentPlayers[0];e.currentPlayers=[(n+1)%e.players.length],e.players[e.currentPlayers[0]].isDropped&&e.players.some((function(e){return!e.isDropped}))&&(e.players[e.currentPlayers[0]].passed=!0,e.players[e.currentPlayers[0]].skipAuction=!0,yt(e)),(e.players[e.currentPlayers[0]].skipAuction||e.players[e.currentPlayers[0]].passed)&&e.players.some((function(e){return!e.skipAuction&&!e.passed&&!e.isDropped}))&&yt(e)}function vt(e){var n=e.playerOrder.indexOf(e.currentPlayers[0]);e.currentPlayers=[e.playerOrder[(n-1+e.players.length)%e.players.length]],e.players[e.currentPlayers[0]].isDropped&&e.players.some((function(e){return!e.isDropped}))&&(e.players[e.currentPlayers[0]].passed=!0,vt(e))}function mt(e){var n,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)n=e.playerOrder[0];else{var r=e.playerOrder.indexOf(e.currentPlayers[0]);n=e.playerOrder[(r+1)%e.players.length]}e.currentPlayers=[n];var o=e.players[n];o.isDropped&&(o.passed=!0,o.skipAuction=!0),(o.skipAuction||o.passed)&&e.players.some((function(e){return!e.skipAuction&&!e.passed&&!e.isDropped}))&&mt(e)}function bt(e){if(!e.coalResupply){var n=_n.find((function(n){return n.name===e.map.name}));null!==n&&void 0!==n&&n.resupply?(e.coalResupply=n.resupply[0],e.oilResupply=n.resupply[1],e.garbageResupply=n.resupply[2],e.uraniumResupply=n.resupply[3]):(e.coalResupply=[[3,4,3],[4,5,3],[5,6,4],[5,7,5],[7,9,6]],e.oilResupply=[[2,2,4],[2,3,4],[3,4,5],[4,5,6],[5,6,7]],e.garbageResupply=[[1,2,3],[1,2,3],[2,3,4],[3,3,5],[3,5,6]],e.uraniumResupply=[[1,1,1],[1,1,1],[1,2,2],[2,3,2],[2,3,3]]);var t=e.players.length-2;e.resourceResupply=["[".concat(e.coalResupply[t][0],", ").concat(e.oilResupply[t][0],", ").concat(e.garbageResupply[t][0],", ").concat(e.uraniumResupply[t][0],"]"),"[".concat(e.coalResupply[t][1],", ").concat(e.oilResupply[t][1],", ").concat(e.garbageResupply[t][1],", ").concat(e.uraniumResupply[t][1],"]"),"[".concat(e.coalResupply[t][2],", ").concat(e.oilResupply[t][2],", ").concat(e.garbageResupply[t][2],", ").concat(e.uraniumResupply[t][2],"]")]}}function wt(e,n,t){if(n.bid=t,e.currentPlayers=e.currentPlayers.filter((function(e){return e!==n.id})),0===e.currentPlayers.length){var r;(r=e.log).push.apply(r,b(e.hiddenLog)),e.hiddenLog=[];var o=e.players.map((function(e){return e.bid})).filter((function(e){return e>0})),a=e.minimunBid,i=Math.max.apply(Math,b(o)),s=e.players.filter((function(e){return!e.isDropped&&e.bid===i})),u=s[0].id;if(o.length>1){o.splice(o.indexOf(i),1);var c=Math.max.apply(Math,b(o));if(s.length>1)(function(){var n=e.auctioningPlayer;while(!s.find((function(e){return e.id==n})))n=(n+1)%e.players.length;a=c,u=n})();else{var l=e.auctioningPlayer;a=0;while(0==a)s[0].id==l?a=c:e.players[l].bid==c&&(a=c+1),l=(l+1)%e.players.length}}var f=e.players[u];dt(e,f,a),(f.powerPlants.length>4||e.players.length>2&&f.powerPlants.length>3)&&!f.isDropped?ht(e,f.id):("China"==e.map.name&&3!=e.step||Qn(e),e.players.some((function(e){return!e.skipAuction&&!e.isDropped}))?(e.players.forEach((function(e){e.bid=0,e.passed=e.isDropped})),mt(e,!0)):ft(e))}}var xt,_t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return 99==e.powerPlant.number?t("g",{attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+")"}},[t("rect",{attrs:{width:"60",height:"40",fill:e.getColor(),stroke:"black","stroke-width":"2",rx:"4"}}),t("text",{attrs:{"text-anchor":"middle",x:"30",y:"20",fill:"black"}},[e._v("Step 3")])]):t("g",{class:[{canClick:e.canClick}],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+")"},on:{click:function(n){e.canClick&&e.$emit("click")}}},[t("rect",{attrs:{width:"60",height:"40",fill:e.getColor(),stroke:e.hasDiscount?"palegreen":"black","stroke-width":"2",rx:"4"}}),e.hasDiscount?t("g",[t("rect",{attrs:{width:"12",height:"12",rx:"4",fill:"palegreen"}}),t("text",{staticStyle:{"font-size":"12px"},attrs:{"text-anchor":"middle",x:"6",y:"6",fill:"black"}},[e._v("$")])]):e._e(),t("g",{attrs:{transform:"translate(30, 10)"}},[t("text",{attrs:{"text-anchor":"middle",x:"1",y:"1",fill:"gray"}},[e._v(e._s(e.powerPlant.number))]),t("text",{attrs:{"text-anchor":"middle",fill:"white"}},[e._v(e._s(e.powerPlant.number))])]),t("g",{class:["piece"],attrs:{id:e.elId,transform:"translate(40, 20) scale(0.035)"}},[t("path",{attrs:{d:"M187.698 263.636V456.017L3 341.204V169.522L80.8579 108.141L187.698 263.636Z",fill:"white",stroke:"white","stroke-width":"12","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M395.724 136.361V300.164L187.698 456.017V263.636L395.724 136.361Z",fill:"white",stroke:"white","stroke-width":"12","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M395.724 136.361L187.698 263.636L80.8579 108.141L304.771 4L395.724 136.361Z",fill:"white",stroke:"white","stroke-width":"12","stroke-miterlimit":"10"}})]),t("text",{staticStyle:{"font-size":"12px"},attrs:{"text-anchor":"middle",x:"47",y:"28",fill:"black"}},[e._v(" "+e._s(e.powerPlant.citiesPowered)+" ")]),t("g",{attrs:{transform:"translate(5, 20)"}},[t("path",{attrs:{d:e.getResourcePath(),fill:"white"}})]),e.powerPlant.cost>0?t("text",{staticStyle:{"font-size":"12px"},attrs:{"text-anchor":"middle",x:"12.5",y:"27.5",fill:"black"}},[e._v(" "+e._s(e.powerPlant.cost)+" ")]):e._e(),t("g",{attrs:{transform:"translate(24, 22)"}},[t("path",{attrs:{d:"M0,3 L8,3 L8,0 L14,6 L8,12 L8,9 L0,9Z",fill:"white"}})]),t("defs",[t("linearGradient",{attrs:{id:"hybrid",x1:"0",y1:"0",x2:"100%",y2:"100%"}},[t("stop",{attrs:{offset:"50%","stop-color":"#8b4513"}}),t("stop",{attrs:{offset:"50%","stop-color":"#445"}})],1)],1)])},kt=[];(function(e){e[e["House"]=0]="House",e[e["Card"]=1]="Card",e[e["Coal"]=2]="Coal",e[e["Oil"]=3]="Oil",e[e["Garbage"]=4]="Garbage",e[e["Uranium"]=5]="Uranium",e[e["Hybrid"]=6]="Hybrid"})(xt||(xt={}));var Pt=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"targetState",void 0),i(P(e),"pieceId",void 0),i(P(e),"transparent",void 0),i(P(e),"communicator",void 0),i(P(e),"ui",void 0),i(P(e),"pieceType",void 0),i(P(e),"currentX",0),i(P(e),"currentY",0),i(P(e),"mounted",!1),i(P(e),"transitioning",!1),i(P(e),"transitionCount",0),i(P(e),"moving",!1),e}return k(t,[{key:"startTransitioning",value:function(){var e=this;if(!this.transitioning){this.ui.waitingAnimations+=1,this.transitioning=!0,this.transitionCount+=1;var n=this.transitionCount;setTimeout((function(){n===e.transitionCount&&e.onTransitionEnd()}),1e3)}}},{key:"onTargetChanged",value:function(e,n){var t=this;this.targetState.x===this.currentX&&this.targetState.y===this.currentY||(!this.transitioning&&this.mounted&&(!n||e?this.startTransitioning():(this.moving=!0,setTimeout((function(){return t.moving=!1}),800))),this.mounted?setTimeout((function(){t.currentX=t.targetState.x,t.currentY=t.targetState.y})):(this.currentX=this.targetState.x,this.currentY=this.targetState.y))}},{key:"onTransitionEnd",value:function(){this.transitioning&&(this.transitioning=!1,this.ui.waitingAnimations=Math.max(this.ui.waitingAnimations-1,0))}},{key:"elId",get:function(){return this.transitioning||this.moving?"moving":void 0}}]),t}(f.a);z([le({default:function(){return{x:0,y:0,rotate:0}}})],Pt.prototype,"targetState",void 0),z([le()],Pt.prototype,"pieceId",void 0),z([le()],Pt.prototype,"transparent",void 0),z([te()],Pt.prototype,"communicator",void 0),z([te()],Pt.prototype,"ui",void 0),z([fe("dragging"),fe("targetState",{immediate:!0})],Pt.prototype,"onTargetChanged",null),Pt=z([ee({created:function(){},mounted:function(){this.mounted=!0},beforeDestroy:function(){this.onTransitionEnd()}})],Pt);var St,Ct,Mt=Pt,Bt=Mt;function Rt(e,n,t,r,o,a,i,s){var u,c="function"===typeof e?e.options:e;if(n&&(c.render=n,c.staticRenderFns=t,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),i?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=u):o&&(u=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,n){return u.call(n),l(e,n)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}var At=Rt(Bt,St,Ct,!1,null,null,null),Lt=At.exports,Ot=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"owner",void 0),i(P(e),"powerPlant",void 0),i(P(e),"canClick",void 0),i(P(e),"hasDiscount",void 0),e}return k(t,[{key:"getColor",value:function(){var e;switch(null===(e=this.powerPlant)||void 0===e?void 0:e.type){case he.Coal:return"#8b4513";case he.Oil:return"#445";case he.Garbage:return"goldenrod";case he.Uranium:return"red";case he.Hybrid:return"url(#hybrid)";case he.Wind:return"limegreen";case he.Nuclear:return"dodgerblue";case he.Step3:return"dodgerblue"}}},{key:"getResourcePath",value:function(){var e;switch(null===(e=this.powerPlant)||void 0===e?void 0:e.type){case he.Coal:return"M0,3 L7.5,0 L15,3 L15,12 L7.5,15 L0,12Z";case he.Oil:return"M3,2 A6,3 0 0,1 12,2 L12,12 A6,3 0 0,1 3,12Z";case he.Garbage:return"M0,3 A7.5,3 0 0,1 15,3 L15,12 A7.5,3 0 0,1 0,12Z";case he.Uranium:return"M1,2 l4,-2 l6,0 l4,2 l0,11 l-4,2 l-6,0 l-4,-2Z";case he.Hybrid:return"M0,3 L7.5,0 L15,3 L15,12 L7.5,15 L0,12Z M9,1 A6,3 0 0,1 18,1 L18,10 A6,3 0 0,1 10,10Z";case he.Wind:return"";case he.Nuclear:return"";case he.Step3:return""}}}]),t}(V(Lt));z([le()],Ot.prototype,"owner",void 0),z([le()],Ot.prototype,"powerPlant",void 0),z([le()],Ot.prototype,"canClick",void 0),z([le({default:!1})],Ot.prototype,"hasDiscount",void 0),Ot=z([ee({created:function(){this.pieceType=xt.Card}})],Ot);var zt=Ot,jt=zt,Dt=(t("11ac"),Rt(jt,_t,kt,!1,null,null,null)),Et=Dt.exports,Gt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:[{canClick:e.canClick}],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+") scale("+e.scale+")",opacity:e.transparent?.3:1},on:{click:function(n){e.canClick&&e.$emit("click")}}},[t("path",{attrs:{d:"M136.8 21.2L43.1001 48.9L43.2001 167.2L135.2 210.3L228.8 174V55.7L136.8 21.2Z",fill:"#5a2d0c",stroke:"black","stroke-width":"20","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M135.2 210.3L43.2001 167.2L43.1001 48.8999L135.1 83.4999L135.2 210.3Z",fill:"#70380f"}}),t("path",{attrs:{d:"M135.1 83.5L43.1001 48.9L136.8 21.2L228.8 55.7L135.1 83.5Z",fill:"#8b4513"}}),t("path",{attrs:{d:"M228.8 55.7V174L135.2 210.3L135.1 83.5L228.8 55.7Z",fill:"#5a2d0c"}}),t("title",[e._v("Coal")])])},Tt=[],It=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"canClick",void 0),i(P(e),"scale",void 0),e}return t}(V(Lt));z([le()],It.prototype,"canClick",void 0),z([le({default:.08})],It.prototype,"scale",void 0),It=z([ee({created:function(){this.pieceType=xt.Coal}})],It);var Nt=It,Ut=Nt,Kt=Rt(Ut,Gt,Tt,!1,null,null,null),Ft=Kt.exports,Wt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:[{canClick:e.canClick}],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+") scale("+e.scale+")",opacity:e.transparent?.3:1},on:{click:function(n){e.canClick&&e.$emit("click")}}},[t("path",{attrs:{d:"M2,5 A9,5,0 0,1 18,5 L18,15 A9,5 0 0,1 2,15Z",fill:"none",stroke:"black","stroke-miterlimit":"0"}}),t("path",{attrs:{d:"M2,5 A9,5 0 0,0 18,5 A9,5 0 0,0 2,5",fill:"#FF0"}}),t("path",{attrs:{d:"M2,5 A9,5 0 0,0 2,5 L2,15 A9,5,0 0,0 18,15 L18,5 A9,5 0 0,1 2,5",fill:"url(#garbage-linear)"}}),t("title",[e._v("Garbage")]),t("defs",[t("linearGradient",{attrs:{id:"garbage-linear",x1:"0",y1:"10",x2:"20",y2:"10",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#DD0"}}),t("stop",{attrs:{offset:"1","stop-color":"#AA0"}})],1)],1)])},Ht=[],Vt=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"canClick",void 0),i(P(e),"scale",void 0),e}return t}(V(Lt));z([le()],Vt.prototype,"canClick",void 0),z([le({default:1})],Vt.prototype,"scale",void 0),Vt=z([ee({created:function(){this.pieceType=xt.Garbage}})],Vt);var Yt=Vt,$t=Yt,qt=Rt($t,Wt,Ht,!1,null,null,null),Zt=qt.exports,Jt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:["piece"],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+") scale(0.035)"}},[t("path",{attrs:{d:"M187.698 263.636V456.017L3 341.204V169.522L80.8579 108.141L187.698 263.636Z",fill:e.color,stroke:"#010101","stroke-width":"12","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M395.724 136.361V300.164L187.698 456.017V263.636L395.724 136.361Z",fill:e.color,stroke:"#010101","stroke-width":"12","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M395.724 136.361L187.698 263.636L80.8579 108.141L304.771 4L395.724 136.361Z",fill:e.color,stroke:"#010101","stroke-width":"12","stroke-miterlimit":"10"}}),t("title",[e._v(e._s(e.ownerName)+"'s House")])])},Xt=[],Qt=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"player",void 0),i(P(e),"color",void 0),i(P(e),"owner",void 0),i(P(e),"ownerName",void 0),e}return t}(V(Lt));z([re()],Qt.prototype,"player",void 0),z([le()],Qt.prototype,"color",void 0),z([le()],Qt.prototype,"owner",void 0),z([le()],Qt.prototype,"ownerName",void 0),Qt=z([ee({created:function(){this.pieceType=xt.House}})],Qt);var er=Qt,nr=er,tr=Rt(nr,Jt,Xt,!1,null,null,null),rr=tr.exports,or=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:["piece"],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+")"}},[t("g",{attrs:{transform:"scale(0.08)"}},[t("path",{attrs:{d:"M136.8 21.2L43.1001 48.9L43.2001 167.2L135.2 210.3L228.8 174V55.7L136.8 21.2Z",fill:"#5a2d0c",stroke:"black","stroke-width":"20","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M135.2 210.3L43.2001 167.2L43.1001 48.8999L135.1 83.4999L135.2 210.3Z",fill:"#70380f"}}),t("path",{attrs:{d:"M135.1 83.5L43.1001 48.9L136.8 21.2L228.8 55.7L135.1 83.5Z",fill:"#8b4513"}}),t("path",{attrs:{d:"M228.8 55.7V174L135.2 210.3L135.1 83.5L228.8 55.7Z",fill:"#5a2d0c"}})]),t("g",{attrs:{transform:"translate(5, 0)"}},[t("path",{attrs:{d:"M6,4 A6,4,0 0,1 14,4 L14,16 A6,4 0 0,1 6,16Z",fill:"none",stroke:"black"}}),t("path",{attrs:{d:"M6,4 A6,4 0 0,0 14,4 A6,4 0 0,0 6,4",fill:"#556"}}),t("path",{attrs:{d:"M6,4 A6,4 0 0,0 6,4 L6,16 A6,4,0 0,0 14,16 L14,4 A6,4 0 0,1 6,4",fill:"url(#oil-linear)"}})]),t("title",[e._v("Coal/Oil")])])},ar=[],ir=function(e){C(t,e);var n=O(t);function t(){return x(this,t),n.apply(this,arguments)}return t}(V(Lt));ir=z([ee({created:function(){this.pieceType=xt.Hybrid}})],ir);var sr=ir,ur=sr,cr=Rt(ur,or,ar,!1,null,null,null),lr=(cr.exports,function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:[{canClick:e.canClick}],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+") scale("+e.scale+")",opacity:e.transparent?.3:1},on:{click:function(n){e.canClick&&e.$emit("click")}}},[t("path",{attrs:{d:"M6,4 A6,4,0 0,1 14,4 L14,16 A6,4 0 0,1 6,16Z",fill:"none",stroke:"black"}}),t("path",{attrs:{d:"M6,4 A6,4 0 0,0 14,4 A6,4 0 0,0 6,4",fill:"#556"}}),t("path",{attrs:{d:"M6,4 A6,4 0 0,0 6,4 L6,16 A6,4,0 0,0 14,16 L14,4 A6,4 0 0,1 6,4",fill:"url(#oil-linear)"}}),t("title",[e._v("Oil")]),t("defs",[t("linearGradient",{attrs:{id:"oil-linear",x1:"0",y1:"10",x2:"20",y2:"10",gradientUnits:"userSpaceOnUse"}},[t("stop",{attrs:{"stop-color":"#445"}}),t("stop",{attrs:{offset:"1","stop-color":"#223"}})],1)],1)])}),fr=[],dr=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"canClick",void 0),i(P(e),"scale",void 0),e}return t}(V(Lt));z([le()],dr.prototype,"canClick",void 0),z([le({default:1})],dr.prototype,"scale",void 0),dr=z([ee({created:function(){this.pieceType=xt.Oil}})],dr);var pr=dr,hr=pr,gr=Rt(hr,lr,fr,!1,null,null,null),yr=gr.exports,vr=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:[{canClick:e.canClick}],attrs:{id:e.elId,transform:"translate("+e.currentX+", "+e.currentY+")",opacity:e.transparent?.3:1},on:{click:function(n){e.canClick&&e.$emit("click")}}},[t("path",{attrs:{d:"M3,3 l4,-2 l6,0 l4,2 l0,11 l-4,2 l-6,0 l-4,-2Z",fill:"#F00",stroke:"black"}}),t("path",{attrs:{d:"M3,3 l4,-2 l6,0 l4,2 l0,2.1 l-4,2 l-6,0 l-4,-2 l0,-2.1",fill:"#F00"}}),t("path",{attrs:{d:"M3,5 l0,9 l4.1,2 l0,-9 l-4.1,-2",fill:"#e60000"}}),t("path",{attrs:{d:"M7,7 l6.1,0 l0,9 l-6.1,0 l0,-9",fill:"#cc0000"}}),t("path",{attrs:{d:"M13,7 l4.1,-2 l0,9 l-4.1,2 l0,-9",fill:"#b30000"}}),t("title",[e._v("Uranium")])])},mr=[],br=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"canClick",void 0),e}return t}(V(Lt));z([le()],br.prototype,"canClick",void 0),br=z([ee({created:function(){this.pieceType=xt.Uranium}})],br);var wr=br,xr=wr,_r=Rt(xr,vr,mr,!1,null,null,null),kr=_r.exports,Pr=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{class:["button",{enabled:e.enabled}],on:{click:function(n){e.enabled&&e.$emit("click")}}},[t("rect",{attrs:{width:e.width,height:"30",fill:"gainsboro",stroke:"black",rx:"2"}}),t("text",{attrs:{"text-anchor":"middle",fill:"black",x:e.width/2,y:"16"}},[e._v(e._s(e.getText()))]),t("title",[e._v(e._s(e.text))])])},Sr=[],Cr=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"text",void 0),i(P(e),"width",void 0),i(P(e),"enabled",void 0),e}return k(t,[{key:"getText",value:function(){var e;return this.text.length>15?null===(e=this.text)||void 0===e?void 0:e.substring(0,12).concat("..."):this.text}}]),t}(f.a);z([le()],Cr.prototype,"text",void 0),z([le()],Cr.prototype,"width",void 0),z([le({default:!0})],Cr.prototype,"enabled",void 0),Cr=z([ee],Cr);var Mr=Cr,Br=Mr,Rr=Rt(Br,Pr,Sr,!1,null,null,null),Ar=Rr.exports,Lr=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("g",{staticClass:"button enabled",on:{click:function(n){return e.$emit("click")}}},[r("circle",{attrs:{cx:"15",cy:"15",r:"15",fill:"gainsboro",stroke:"black","stroke-width":"2px"}}),r("image",{attrs:{x:"5",y:"5",width:"20",height:"20",href:t("997e")}}),e.isOn?e._e():r("line",{attrs:{x1:"5",y1:"25",x2:"25",y2:"5",stroke:"black","stroke-width":"3px","stroke-linecap":"round"}}),e.isOn?r("title",[e._v("Help off")]):r("title",[e._v("Help on")])])},Or=[],zr=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"isOn",void 0),e}return t}(f.a);z([le()],zr.prototype,"isOn",void 0),zr=z([ee],zr);var jr=zr,Dr=jr,Er=Rt(Dr,Lr,Or,!1,null,null,null),Gr=Er.exports,Tr=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("g",{staticClass:"button enabled",on:{click:function(n){return e.$emit("click")}}},[r("rect",{attrs:{width:"80",height:"26",fill:"gainsboro",stroke:"black",rx:"2"}}),r("image",{attrs:{x:"11",y:"5",width:"16",height:"16",href:t("b67b")}}),r("text",{attrs:{"text-anchor":"middle",fill:"black",x:"47",y:"13"}},[e._v("Log")]),r("title",[e._v("Show log")])])},Ir=[],Nr=function(e){C(t,e);var n=O(t);function t(){return x(this,t),n.apply(this,arguments)}return t}(f.a);Nr=z([ee],Nr);var Ur=Nr,Kr=Ur,Fr=Rt(Kr,Tr,Ir,!1,null,null,null),Wr=Fr.exports,Hr=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("g",{class:["button",{enabled:e.enabled,highlightButton:e.highlightButton}],on:{click:function(n){e.enabled&&e.$emit("click")}}},[r("rect",{attrs:{width:"80",height:"26",fill:"gainsboro",stroke:"black",rx:"2"}}),r("image",{attrs:{x:"15",y:"8",width:"10",height:"10",href:t("fd65")}}),r("text",{attrs:{"text-anchor":"middle",fill:"black",x:"47",y:"13"}},[e._v(e._s(e.text))]),r("title",[e._v("Pass turn")])])},Vr=[],Yr=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"enabled",void 0),i(P(e),"highlightButton",void 0),i(P(e),"text",void 0),e}return t}(f.a);z([le()],Yr.prototype,"enabled",void 0),z([le()],Yr.prototype,"highlightButton",void 0),z([le()],Yr.prototype,"text",void 0),Yr=z([ee],Yr);var $r=Yr,qr=$r,Zr=Rt(qr,Hr,Vr,!1,null,null,null),Jr=Zr.exports,Xr=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("g",{staticClass:"button enabled",on:{click:function(n){return e.$emit("click")}}},[r("circle",{attrs:{cx:"15",cy:"15",r:"15",fill:"gainsboro",stroke:"black","stroke-width":"2px"}}),e.isOn?r("image",{attrs:{x:"5",y:"5",width:"20",height:"20",href:t("9fd9")}}):r("image",{attrs:{x:"5",y:"5",width:"20",height:"20",href:t("2044")}}),e.isOn?r("title",[e._v("Sound off")]):r("title",[e._v("Sound on")])])},Qr=[],eo=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"isOn",void 0),e}return t}(f.a);z([le()],eo.prototype,"isOn",void 0),eo=z([ee],eo);var no=eo,to=no,ro=Rt(to,Xr,Qr,!1,null,null,null),oo=ro.exports,ao=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("g",{staticClass:"button enabled",on:{click:function(n){return e.$emit("click")}}},[r("circle",{attrs:{cx:"15",cy:"15",r:"15",fill:"gainsboro",stroke:"black","stroke-width":"2px"}}),r("image",{attrs:{x:"5",y:"5",width:"20",height:"20",href:t("b85b")}}),r("title",[e._v("Rules")])])},io=[],so=function(e){C(t,e);var n=O(t);function t(){return x(this,t),n.apply(this,arguments)}return t}(f.a);so=z([ee],so);var uo=so,co=uo,lo=Rt(co,ao,io,!1,null,null,null),fo=lo.exports,po=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("g",{class:["button",{enabled:e.enabled,highlightButton:e.highlightButton}],on:{click:function(n){e.enabled&&e.$emit("click")}}},[r("rect",{attrs:{width:"80",height:"26",fill:"gainsboro",stroke:"black",rx:"2"}}),r("image",{attrs:{x:"11",y:"4",width:"16",height:"16",href:t("92cf")}}),r("text",{attrs:{"text-anchor":"middle",fill:"black",x:"47",y:"13"}},[e._v("Undo")]),r("title",[e._v("Undo last move")])])},ho=[],go=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"enabled",void 0),i(P(e),"highlightButton",void 0),e}return t}(f.a);z([le()],go.prototype,"enabled",void 0),z([le()],go.prototype,"highlightButton",void 0),go=z([ee],go);var yo=go,vo=yo,mo=Rt(vo,po,ho,!1,null,null,null),bo=mo.exports,wo=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{staticClass:"player-board"},[t("rect",{attrs:{width:"350",height:"100",x:"0",y:"0",fill:"gold",stroke:e.color}}),t("rect",{attrs:{width:"350",height:"25",x:"0",y:"0",fill:e.color}}),t("foreignObject",{attrs:{height:"30",width:"30",x:"-30",y:"-5"}},[t("img",{staticStyle:{"border-radius":"50%"},attrs:{src:e.avatar||"https://avatars.dicebear.com/api/pixel-art/"+e.player.name+".svg",width:"100%",height:"100%"}})]),t("text",{attrs:{x:"5",y:"13","font-weight":"600",fill:"black"}},[e._v(" "+e._s(e.getPlayerName())+" ")]),e.showMoney?t("text",{attrs:{x:"250",y:"13","font-weight":"600",fill:"black"}},[e._v("Money: $"+e._s(e.player.money))]):e._e(),e._l(e.player.powerPlants,(function(n,r){return t("Card",{key:"powerPlant_"+n.number,attrs:{targetState:{x:e.player.powerPlants.length<5?20+80*r:5+70*r,y:30},owner:e.owner,powerPlant:n,canClick:e.canUse(n)},on:{click:function(t){return e.powerPlantClick(n)}}})})),e.preferences.disableHelp?e._e():[e._l(e.player.powerPlants,(function(n,r){return[e.canUse(n)?t("rect",{key:r+"_"+r+"_helper",attrs:{x:e.player.powerPlants.length<5?20+80*r:5+70*r,y:30,width:"60",height:"40",fill:"none",stroke:"blue","stroke-width":"4px",rx:"2px"}}):e._e()]}))],e.canClickResources?t("g",[t("rect",{attrs:{width:"30",height:"30",x:"0",y:"71",fill:"none",stroke:"blue","stroke-width":"2px",rx:"2px"}}),t("rect",{attrs:{width:"30",height:"30",x:"70",y:"71",fill:"none",stroke:"blue","stroke-width":"2px",rx:"2px"}})]):e._e(),t("Coal",{attrs:{pieceId:"Coal"+e.player.id,targetState:{x:5,y:76},canClick:e.canClickResources},on:{click:function(n){return e.clickResource("coal")}}}),t("text",{attrs:{"text-anchor":"middle",x:"40",y:"85",fill:"black"}},[e._v(e._s(e.player.coalLeft))]),t("Oil",{attrs:{pieceId:"Oil"+e.player.id,targetState:{x:75,y:76},canClick:e.canClickResources},on:{click:function(n){return e.clickResource("oil")}}}),t("text",{attrs:{"text-anchor":"middle",x:"110",y:"85",fill:"black"}},[e._v(e._s(e.player.oilLeft))]),t("Garbage",{attrs:{pieceId:"Garbage"+e.player.id,targetState:{x:145,y:76}}}),t("text",{attrs:{"text-anchor":"middle",x:"180",y:"85",fill:"black"}},[e._v(e._s(e.player.garbageLeft))]),t("Uranium",{attrs:{pieceId:"Uranium"+e.player.id,targetState:{x:215,y:76}}}),t("text",{attrs:{"text-anchor":"middle",x:"250",y:"85",fill:"black"}},[e._v(e._s(e.player.uraniumLeft))])],2)},xo=[],_o=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"color",void 0),i(P(e),"avatar",void 0),i(P(e),"player",void 0),i(P(e),"isCurrentPlayer",void 0),i(P(e),"owner",void 0),i(P(e),"ended",void 0),i(P(e),"isPlayer",void 0),i(P(e),"ranking",void 0),i(P(e),"showMoney",void 0),i(P(e),"showBid",void 0),i(P(e),"phase",void 0),i(P(e),"preferences",void 0),i(P(e),"powerPlantClicked",void 0),e}return k(t,[{key:"getPlayerName",value:function(){var e="";if(this.isCurrentPlayer&&(e+="• "),e+=this.player.name,this.ended)switch(this.ranking){case 1:e+=" (1st)";break;case 2:e+=" (2nd)";break;case 3:e+=" (3rd)";break;case 4:case 5:case 6:e+=" (".concat(this.ranking,"th)");break}else this.player.skipAuction?e+=" (Skipping)":this.player.passed?e+=" (Passed)":this.player.bid&&!this.isCurrentPlayer&&this.showBid&&(e+=" (Bid: $"+this.player.bid+")");return e}},{key:"canUse",value:function(e){var n,t;if(!this.isCurrentPlayer)return!1;if(null!==(n=this.player.availableMoves)&&void 0!==n&&n[ye.DiscardPowerPlant])return e.number!==this.player.powerPlants[this.player.powerPlants.length-1].number;if(null===(t=this.player.availableMoves)||void 0===t||!t[ye.UsePowerPlant])return!1;if(!this.player.powerPlantsNotUsed.includes(e.number)||this.player.resourcesUsed.length>0)return!1;switch(e.type){case he.Coal:return this.player.coalLeft>=e.cost;case he.Oil:return this.player.oilLeft>=e.cost;case he.Garbage:return this.player.garbageLeft>=e.cost;case he.Uranium:return this.player.uraniumLeft>=e.cost;case he.Hybrid:return this.player.coalLeft+this.player.oilLeft>=e.cost;case he.Wind:case he.Nuclear:return this.player.coalLeft+this.player.oilLeft>=e.cost}}},{key:"powerPlantClick",value:function(e){this.phase==ge.Bureaucracy&&e.type==he.Hybrid?0==this.player.coalLeft||0==this.player.oilLeft||this.player.coalLeft+this.player.oilLeft==e.cost?(this.player.resourcesUsed=Array(Math.min(e.cost,this.player.coalLeft)).fill(pe.Coal).concat(Array(e.cost-Math.min(e.cost,this.player.coalLeft)).fill(pe.Oil)),this.$emit("powerPlantClick",e)):(this.powerPlantClicked=e,this.player.resourcesUsed=Array(e.cost).fill(null)):this.$emit("powerPlantClick",e)}},{key:"canClickResources",get:function(){return this.player.availableMoves&&this.player.availableMoves["DiscardResources"]||this.player.resourcesUsed.some((function(e){return null==e}))}},{key:"clickResource",value:function(e){if(this.player.availableMoves&&this.player.availableMoves["DiscardResources"])this.$emit("discardResource",e);else if(this.player.resourcesUsed.some((function(e){return null==e}))){var n=this.player.resourcesUsed.findIndex((function(e){return null==e}));this.player.resourcesUsed[n]=e,"coal"==e?this.player.coalLeft--:"oil"==e&&this.player.oilLeft--,this.player.resourcesUsed.some((function(e){return null==e}))||this.$emit("powerPlantClick",this.powerPlantClicked)}}}]),t}(f.a);z([le()],_o.prototype,"color",void 0),z([le()],_o.prototype,"avatar",void 0),z([le()],_o.prototype,"player",void 0),z([le()],_o.prototype,"isCurrentPlayer",void 0),z([le()],_o.prototype,"owner",void 0),z([le()],_o.prototype,"ended",void 0),z([le()],_o.prototype,"isPlayer",void 0),z([le()],_o.prototype,"ranking",void 0),z([le()],_o.prototype,"showMoney",void 0),z([le()],_o.prototype,"showBid",void 0),z([le()],_o.prototype,"phase",void 0),z([te()],_o.prototype,"preferences",void 0),_o=z([ee({components:{Coal:Ft,Oil:yr,Garbage:Zt,Uranium:kr,Card:Et}})],_o);var ko=_o,Po=ko,So=Rt(Po,wo,xo,!1,null,null,null),Co=So.exports,Mo=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",{staticClass:"calculator"},[t("rect",{attrs:{width:"125",height:"50",rx:"4"}}),t("rect",{attrs:{x:"10",y:"10",width:"30",height:"30",fill:"lime",rx:"2"}}),t("text",{staticClass:"visor",attrs:{x:"25",y:"25",fill:"black","text-anchor":"middle"}},[e._v(e._s(e.value))]),t("g",{style:e.value<e.maxValue?"cursor: pointer":"",on:{click:function(n){return e.add()}}},[t("rect",{attrs:{x:"48",y:"7",width:"24",height:"15",fill:"gray",stroke:"gray",rx:"2"}}),t("path",{attrs:{d:"M52,17 l8,-6 l8,6",fill:"none",stroke:"white","stroke-width":"3"}})]),t("g",{style:e.value>e.minValue?"cursor: pointer":"",on:{click:function(n){return e.sub()}}},[t("rect",{attrs:{x:"48",y:"28",width:"24",height:"15",fill:"gray",stroke:"gray",rx:"2"}}),t("path",{attrs:{d:"M52,32 l8,6 l8,-6",fill:"none",stroke:"white","stroke-width":"3"}})]),t("g",{staticStyle:{cursor:"pointer"},on:{click:function(n){return e.bid()}}},[t("rect",{staticClass:"button",attrs:{x:"80",y:"7",width:"36",height:"36",fill:"gray",rx:"2"}}),t("text",{attrs:{x:"97",y:"25",fill:"white","text-anchor":"middle"}},[e._v("OK")])])])},Bo=[],Ro=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"minValue",void 0),i(P(e),"maxValue",void 0),i(P(e),"value",0),e}return k(t,[{key:"add",value:function(){this.value=Math.min(this.maxValue,this.value+1)}},{key:"sub",value:function(){this.value=Math.max(this.minValue,this.value-1)}},{key:"bid",value:function(){this.$emit("bid",this.value)}}]),t}(f.a);z([le()],Ro.prototype,"minValue",void 0),z([le()],Ro.prototype,"maxValue",void 0),Ro=z([ee({created:function(){this.value=this.minValue}})],Ro);var Ao=Ro,Lo=Ao,Oo=(t("85cf"),Rt(Lo,Mo,Bo,!1,null,null,null)),zo=Oo.exports,jo=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",[t("text",{attrs:{x:"10",y:"14","font-weight":"600",fill:"black"}},[e._v("Power Plant Deck:")]),e.cardsLeft>0?[e._l(e.cardsLeft,(function(e){return t("rect",{key:"card"+e,attrs:{x:35+e/5,y:38-e/10,width:"60",height:"40",fill:"gray",stroke:"black","stroke-width":"2",rx:"4"}})})),t("rect",{attrs:{x:35+e.cardsLeft/5,y:38-e.cardsLeft/10,width:"60",height:"40",fill:e.nextCardWeak?"gray":"lightgray",stroke:"black","stroke-width":"2",rx:"4"}},[t("title",[e._v(e._s(e.cardsLeft)+" cards left"+e._s(e.nextCardWeak?", next is an initial plant":""))])])]:e._e(),t("text",{attrs:{x:"165",y:"14","font-weight":"600",fill:"black"}},[e._v("Actual Market:")]),e._l(e.actualMarketCards,(function(n,r){return[t("Card",{key:n.id,attrs:{targetState:{x:n.x,y:n.y},powerPlant:n.powerPlant,canClick:e.chooseablePowerPlants&&e.chooseablePowerPlants.includes(n.powerPlant.number),hasDiscount:e.plantDiscountActive&&0==r},on:{click:function(t){return e.choosePowerPlant(n.powerPlant)}}})]})),e.futureMarketCards.length>0?[t("text",{attrs:{x:"165",y:"80","font-weight":"600",fill:"black"}},[e._v("Future Market:")]),e._l(e.futureMarketCards,(function(e){return[t("Card",{key:e.id,attrs:{targetState:{x:e.x,y:e.y},powerPlant:e.powerPlant}})]}))]:e._e(),e.chosenPowerPlant?[t("text",{attrs:{x:e.actualMarketWidth,y:"14","font-weight":"600",fill:"black"}},[e._v("Current Auction:")]),t("Card",{key:e.chosenPowerPlant.id,attrs:{targetState:{x:e.chosenPowerPlant.x,y:e.chosenPowerPlant.y},powerPlant:e.chosenPowerPlant.powerPlant}}),e.canBid?t("Calculator",{attrs:{transform:"translate("+e.actualMarketWidth+", 80)",minValue:e.minBid,maxValue:e.maxBid},on:{bid:function(n){return e.bid(n)}}}):e._e()]:e._e(),e.preferences.disableHelp?e._e():[e.canChoose?t("g",[e.futureMarketCards.length>0?t("rect",{attrs:{x:"160",y:"5",width:65*e.actualMarketCards.length+5,height:"65",fill:"none",stroke:"blue","stroke-width":"2px",rx:"2px"}}):t("rect",{attrs:{x:"160",y:"5",width:"200",height:"120",fill:"none",stroke:"blue","stroke-width":"2px",rx:"2px"}})]):e._e()]],2)},Do=[],Eo=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"cardsLeft",void 0),i(P(e),"nextCardWeak",void 0),i(P(e),"plantDiscountActive",void 0),i(P(e),"canBid",void 0),i(P(e),"canChoose",void 0),i(P(e),"chooseablePowerPlants",void 0),i(P(e),"minBid",void 0),i(P(e),"maxBid",void 0),i(P(e),"preferences",void 0),i(P(e),"actualMarketCards",[]),i(P(e),"futureMarketCards",[]),i(P(e),"chosenPowerPlant",null),i(P(e),"actualMarketWidth",430),e}return k(t,[{key:"createPieces",value:function(e){var n,t=this;this.actualMarketWidth=null!==(n=e.map.actualMarketWidth)&&void 0!==n?n:430,this.actualMarketCards=[],e.actualMarket.forEach((function(n,r){var o,a;e.futureMarket.length>0?n.number!=(null===(o=e.chosenPowerPlant)||void 0===o?void 0:o.number)&&t.actualMarketCards.push({id:"actual_"+r,x:165+65*r,y:24,powerPlant:n}):n.number!=(null===(a=e.chosenPowerPlant)||void 0===a?void 0:a.number)&&t.actualMarketCards.push({id:"actual_"+r,x:165+r%3*65,y:r<3?24:80,powerPlant:n})})),this.futureMarketCards=[],e.futureMarket.forEach((function(n,r){var o;n.number!=(null===(o=e.chosenPowerPlant)||void 0===o?void 0:o.number)&&t.futureMarketCards.push({id:"future_"+r,x:165+65*r,y:90,powerPlant:n})})),e.chosenPowerPlant?this.chosenPowerPlant={id:"chosen",x:this.actualMarketWidth+30,y:30,powerPlant:e.chosenPowerPlant}:this.chosenPowerPlant=null}},{key:"choosePowerPlant",value:function(e){this.$emit("choosePowerPlant",e)}},{key:"bid",value:function(e){this.$emit("bid",e)}}]),t}(f.a);z([le()],Eo.prototype,"cardsLeft",void 0),z([le()],Eo.prototype,"nextCardWeak",void 0),z([le()],Eo.prototype,"plantDiscountActive",void 0),z([le()],Eo.prototype,"canBid",void 0),z([le()],Eo.prototype,"canChoose",void 0),z([le()],Eo.prototype,"chooseablePowerPlants",void 0),z([le()],Eo.prototype,"minBid",void 0),z([le()],Eo.prototype,"maxBid",void 0),z([te()],Eo.prototype,"preferences",void 0),Eo=z([ee({components:{Card:Et,Calculator:zo}})],Eo);var Go=Eo,To=Go,Io=Rt(To,jo,Do,!1,null,null,null),No=Io.exports,Uo=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",[t("rect",{attrs:{x:"10",y:"10",width:"185",height:"40",rx:"3",fill:"goldenrod"}}),e._l(6,(function(n){return[t("rect",{key:"playerOrder"+n,attrs:{x:15+30*(n-1),y:"15",width:"24",height:"30",rx:"2",fill:"darkgoldenrod"}}),t("text",{key:"playerOrderText"+n,staticStyle:{"font-size":"32px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:27+30*(n-1),y:"30",fill:"gold"}},[e._v(" "+e._s(n)+" ")])]})),e._l(e.houses,(function(e){return[t("House",{key:e.id,attrs:{pieceId:e.id,targetState:{x:e.x,y:e.y},owner:e.owner,ownerName:e.ownerName,color:e.color}})]}))],2)},Ko=[],Fo=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"playerColors",void 0),i(P(e),"houses",[]),e}return k(t,[{key:"createPieces",value:function(e){var n=this;this.houses=[],e.playerOrder.forEach((function(t,r){n.houses.push({id:t+"_order",x:20+30*r,y:22,color:n.playerColors[t],owner:t,ownerName:e.players[t].name})}))}}]),t}(f.a);z([le()],Fo.prototype,"playerColors",void 0),Fo=z([ee({components:{House:rr}})],Fo);var Wo=Fo,Ho=Wo,Vo=Rt(Ho,Uo,Ko,!1,null,null,null),Yo=Vo.exports,$o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",[t("rect",{attrs:{width:"730",height:"50",x:"10",y:"10",rx:"3",fill:"goldenrod"}}),e._l(21,(function(n){return[t("rect",{key:"playerCityCount"+n,attrs:{width:"28",height:"38",x:46+33*(n-1),y:"16",rx:"2",fill:"darkgoldenrod",stroke:n==e.citiesToStep2||n==e.citiesToEndGame?"#916a08":"darkgoldenrod","stroke-width":"2px"}}),t("text",{key:"playerCityCountText"+n,staticStyle:{"font-size":"24px","font-family":"monospace"},attrs:{"text-anchor":"middle","letter-spacing":"-2",x:59+33*(n-1),y:"35",fill:"gold"}},[e._v(" "+e._s(n)+" ")])]})),e._l(e.houses,(function(e){return[t("House",{key:e.id,attrs:{pieceId:e.id,targetState:{x:e.x,y:e.y},owner:e.owner,ownerName:e.ownerName,color:e.color}})]}))],2)},qo=[],Zo=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"citiesToStep2",void 0),i(P(e),"citiesToEndGame",void 0),i(P(e),"playerColors",void 0),i(P(e),"houses",[]),e}return k(t,[{key:"createPieces",value:function(e){var n=this;this.houses=[];for(var t=[],r=0;r<22;r++)t[r]=[];e.players.forEach((function(e,n){return t[e.cities.length].push(n)})),e.players.forEach((function(e,r){var o=(1==t[e.cities.length].length?23:20)+33*e.cities.length;o+=t[e.cities.length].indexOf(r)%2*6,n.houses.push({id:r+"_cityCount",x:o,y:15+30*t[e.cities.length].indexOf(r)/t[e.cities.length].length,color:n.playerColors[r],owner:r})}))}}]),t}(f.a);z([le()],Zo.prototype,"citiesToStep2",void 0),z([le()],Zo.prototype,"citiesToEndGame",void 0),z([le()],Zo.prototype,"playerColors",void 0),Zo=z([ee({components:{House:rr}})],Zo);var Jo=Zo,Xo=Jo,Qo=Rt(Xo,$o,qo,!1,null,null,null),ea=Qo.exports,na=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",[e._l(e.cities,(function(n){return[t("circle",{key:n.name+"_region",attrs:{r:"25",cx:n.x,cy:n.y,fill:n.region,stroke:"black"}},[t("title",[e._v(e._s(n.name))])]),t("circle",{key:n.name+"_circle",attrs:{r:"20",cx:n.x,cy:n.y,fill:"gray",stroke:"black"}},[t("title",[e._v(e._s(n.name))])])]})),e._l(e.connections,(function(n){return[t("line",{key:n.nodes[0]+"_"+n.nodes[1]+"_line1",attrs:{x1:e.getX1(n),y1:e.getY1(n),x2:e.getX2(n),y2:e.getY2(n),"stroke-width":"10",stroke:"black"}}),t("line",{key:n.nodes[0]+"_"+n.nodes[1]+"_line2",attrs:{x1:e.getX1(n),y1:e.getY1(n),x2:e.getX2(n),y2:e.getY2(n),"stroke-width":"9",stroke:"gray"}})]})),e._l(e.cities,(function(n){return[t("circle",{key:n.name+"_circle2",class:[{canClick:e.canBuild(n)}],attrs:{r:"20",cx:n.x,cy:n.y,fill:"gray"},on:{click:function(t){e.canBuild(n)&&e.build(n)}}},[t("title",[e._v(e._s(n.name))])])]})),e._l(e.connections,(function(n){return[n.cost>0?t("circle",{key:n.nodes[0]+"_"+n.nodes[1]+"_border",attrs:{stroke:"black",r:10+10*n.cost/28,cx:(e.getX1(n)+e.getX2(n))/2,cy:(e.getY1(n)+e.getY2(n))/2,fill:n.cost>15?"gold":n.cost>10?"lightgray":"tan"}}):e._e(),n.cost>0?t("circle",{key:n.nodes[0]+"_"+n.nodes[1]+"_circle",attrs:{r:6+10*n.cost/28,cx:(e.getX1(n)+e.getX2(n))/2,cy:(e.getY1(n)+e.getY2(n))/2,fill:"gray",stroke:"black"}}):e._e(),n.cost>0?t("text",{key:n.nodes[0]+"_"+n.nodes[1]+"_text",style:"font-size: "+(12+6*n.cost/28)+"px",attrs:{"text-anchor":"middle",fill:"black",x:(e.getX1(n)+e.getX2(n))/2,y:(e.getY1(n)+e.getY2(n))/2}},[e._v(" "+e._s(n.cost)+" ")]):e._e()]})),e._l(e.houses,(function(e){return[t("House",{key:e.id,attrs:{pieceId:e.id,targetState:{x:e.x,y:e.y},owner:e.owner,ownerName:e.ownerName,color:e.color}})]})),e.preferences.disableHelp?e._e():[e._l(e.cities,(function(n){return[e.canBuild(n)?t("circle",{key:n.name+"_circleHelp",class:[{canClick:e.canBuild(n)}],attrs:{r:"18",cx:n.x,cy:n.y,fill:"none",stroke:"blue","stroke-width":"4px"}}):e._e()]}))]],2)},ta=[],ra=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"polygons",void 0),i(P(e),"cities",void 0),i(P(e),"connections",void 0),i(P(e),"playerColors",void 0),i(P(e),"buildableCities",void 0),i(P(e),"preferences",void 0),i(P(e),"houses",[]),e}return k(t,[{key:"createPieces",value:function(e){var n=this;this.houses=[],e.players.forEach((function(t,r){t.cities.forEach((function(t){var o,a,i=e.map.cities.find((function(e){return e.name==t.name}));0==t.position?(o=-6,a=-18):1==t.position?(o=-15,a=-4):(o=1,a=-4),n.houses.push({id:r+"_"+t.name,x:i.x+o,y:i.y+a,color:n.playerColors[r],owner:r})}))}))}},{key:"getX1",value:function(e){var n=this.cities.find((function(n){return n.name==e.nodes[0]}));return n.x}},{key:"getY1",value:function(e){var n=this.cities.find((function(n){return n.name==e.nodes[0]}));return n.y}},{key:"getX2",value:function(e){var n=this.cities.find((function(n){return n.name==e.nodes[1]}));return n.x}},{key:"getY2",value:function(e){var n=this.cities.find((function(n){return n.name==e.nodes[1]}));return n.y}},{key:"canBuild",value:function(e){return!!this.buildableCities.find((function(n){return n==e.name}))}},{key:"build",value:function(e){this.$emit("build",e)}}]),t}(f.a);z([le()],ra.prototype,"polygons",void 0),z([le()],ra.prototype,"cities",void 0),z([le()],ra.prototype,"connections",void 0),z([le()],ra.prototype,"playerColors",void 0),z([le()],ra.prototype,"buildableCities",void 0),z([te()],ra.prototype,"preferences",void 0),ra=z([ee({components:{House:rr}})],ra);var oa=ra,aa=oa,ia=Rt(aa,na,ta,!1,null,null,null),sa=ia.exports,ua=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("g",[e.resourceResupply[0]<10?t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"30",y:"20","font-weight":"600",fill:"black"}},[e._v("Resource Resupply:")]):t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"20",y:"20","font-weight":"600",fill:"black"}},[e._v("Resource Resupply:")]),e.resourceResupply[0]<10?t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"276",y:"20","font-weight":"600",fill:"black"}},[e._v(" "+e._s(e.resourceResupply[0])+" ")]):t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"262",y:"20","font-weight":"600",fill:"black"}},[e._v(" "+e._s(e.resourceResupply[0])+" ")]),t("Coal",{attrs:{pieceId:-1,targetState:{x:288,y:12},canClick:!1,transparent:!1}}),t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"321",y:"20","font-weight":"600",fill:"black"}},[e._v(" "+e._s(e.resourceResupply[1])+" ")]),t("Oil",{attrs:{pieceId:-1,targetState:{x:331,y:11},canClick:!1,transparent:!1}}),t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"368",y:"20","font-weight":"600",fill:"black"}},[e._v(" "+e._s(e.resourceResupply[2])+" ")]),t("Garbage",{attrs:{pieceId:-1,targetState:{x:382,y:11},canClick:!1,transparent:!1}}),t("text",{staticStyle:{"font-size":"24px"},attrs:{x:"414",y:"20","font-weight":"600",fill:"black"}},[e._v(" "+e._s(e.resourceResupply[3])+" ")]),t("Uranium",{attrs:{pieceId:-1,targetState:{x:428,y:12},canClick:!1,transparent:!1}}),e.isIndiaResourceMarket?e._e():t("rect",{attrs:{width:"760",height:"80",x:"20",y:"40",rx:"3",fill:"goldenrod"}}),e.isIndiaResourceMarket?t("rect",{attrs:{width:"680",height:"80",x:"20",y:"40",rx:"3",fill:"goldenrod"}}):e._e(),e._l(8,(function(n){return[t("rect",{key:"resources"+n,attrs:{width:"70",height:"70",x:25+85*(n-1),y:"45",rx:"2",fill:"darkgoldenrod"}}),t("circle",{key:"resourcesCircle"+n,attrs:{r:"10",cx:92+85*(n-1),cy:"48",fill:"yellow"}}),t("text",{key:"resourcesText"+n,staticStyle:{"font-size":"16px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:92+85*(n-1),y:"48",fill:"darkgoldenrod"}},[e._v(" "+e._s(n)+" ")]),e.isIndiaResourceMarket?e._e():t("g",{key:"lines"+n},[t("line",{attrs:{x1:25+85*(n-1),y1:"68",x2:95+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:25+85*(n-1),y1:"92",x2:95+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:48+85*(n-1),y1:"40",x2:48+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:72+85*(n-1),y1:"40",x2:72+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:42+85*(n-1),y1:"68",x2:42+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:58+85*(n-1),y1:"68",x2:58+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:74+85*(n-1),y1:"68",x2:74+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:48+85*(n-1),y1:"92",x2:48+85*(n-1),y2:"120",stroke:"goldenrod"}}),t("line",{attrs:{x1:72+85*(n-1),y1:"92",x2:72+85*(n-1),y2:"120",stroke:"goldenrod"}})]),e.isIndiaResourceMarket?t("g",{key:"lines"+n},[t("line",{attrs:{x1:25+85*(n-1),y1:"68",x2:95+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:25+85*(n-1),y1:"92",x2:95+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:42+85*(n-1),y1:"40",x2:42+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:59+85*(n-1),y1:"40",x2:59+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:76+85*(n-1),y1:"40",x2:76+85*(n-1),y2:"68",stroke:"goldenrod"}}),t("line",{attrs:{x1:42+85*(n-1),y1:"68",x2:42+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:58+85*(n-1),y1:"68",x2:58+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:74+85*(n-1),y1:"68",x2:74+85*(n-1),y2:"92",stroke:"goldenrod"}}),t("line",{attrs:{x1:42+85*(n-1),y1:"92",x2:42+85*(n-1),y2:"120",stroke:"goldenrod"}}),t("line",{attrs:{x1:59+85*(n-1),y1:"92",x2:59+85*(n-1),y2:"120",stroke:"goldenrod"}}),t("line",{attrs:{x1:76+85*(n-1),y1:"92",x2:76+85*(n-1),y2:"120",stroke:"goldenrod"}})]):e._e()]})),e.isIndiaResourceMarket?[t("g",{key:"separators"},[t("line",{attrs:{x1:"275",y1:"40",x2:"275",y2:"140",stroke:"red"}}),t("line",{attrs:{x1:"445",y1:"40",x2:"445",y2:"140",stroke:"red"}}),t("text",{attrs:{x:"220",y:"130",stroke:"red"}},[e._v("Step 1")]),t("text",{attrs:{x:"390",y:"130",stroke:"red"}},[e._v("Step 2")])])]:e._e(),e.isIndiaResourceMarket?e._e():[t("rect",{attrs:{width:"30",height:"30",x:"705",y:"45",rx:"2",fill:"darkgoldenrod"}}),t("circle",{attrs:{r:"10",cx:"732",cy:"48",fill:"yellow"}}),t("text",{staticStyle:{"font-size":"12px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:"732",y:"48",fill:"darkgoldenrod"}},[e._v(" 10 ")]),t("rect",{attrs:{width:"30",height:"30",x:"745",y:"45",rx:"2",fill:"darkgoldenrod"}}),t("circle",{attrs:{r:"10",cx:"772",cy:"48",fill:"yellow"}}),t("text",{staticStyle:{"font-size":"12px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:"772",y:"48",fill:"darkgoldenrod"}},[e._v(" 12 ")]),t("rect",{attrs:{width:"30",height:"30",x:"705",y:"85",rx:"2",fill:"darkgoldenrod"}}),t("circle",{attrs:{r:"10",cx:"732",cy:"88",fill:"yellow"}}),t("text",{staticStyle:{"font-size":"12px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:"732",y:"88",fill:"darkgoldenrod"}},[e._v(" 14 ")]),t("rect",{attrs:{width:"30",height:"30",x:"745",y:"85",rx:"2",fill:"darkgoldenrod"}}),t("circle",{attrs:{r:"10",cx:"772",cy:"88",fill:"yellow"}}),t("text",{staticStyle:{"font-size":"12px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:"772",y:"88",fill:"darkgoldenrod"}},[e._v(" 16 ")])],e.isUsaRecharged?[t("rect",{attrs:{width:"180",height:"70",x:"795",y:"45",rx:"2",fill:"chocolate",stroke:"sandybrown","stroke-width":"4px"}}),t("circle",{attrs:{r:"10",cx:"973",cy:"45",fill:"yellow"}}),t("text",{staticStyle:{"font-size":"16px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:"973",y:"45",fill:"darkgoldenrod"}},[e._v(" 8 ")]),t("Coal",{attrs:{pieceId:-1,targetState:{x:858,y:57},canClick:!1,transparent:!0,scale:.2}})]:e._e(),e._l(e.coals,(function(n){return[t("Coal",{key:n.id,attrs:{pieceId:n.id,targetState:{x:n.x,y:n.y},canClick:!n.transparent&&e.canBuyResource("coal"),transparent:n.transparent,scale:e.isIndiaResourceMarket?.06:.08},on:{click:function(n){return e.buyResource("coal")}}})]})),e._l(e.oils,(function(n){return[t("Oil",{key:n.id,attrs:{pieceId:n.id,targetState:{x:n.x,y:n.y},canClick:!n.transparent&&e.canBuyResource("oil"),transparent:n.transparent},on:{click:function(n){return e.buyResource("oil")}}})]})),e._l(e.garbages,(function(n){return[t("Garbage",{key:n.id,attrs:{pieceId:n.id,targetState:{x:n.x,y:n.y},canClick:!n.transparent&&e.canBuyResource("garbage"),transparent:n.transparent,scale:e.isIndiaResourceMarket?.8:1},on:{click:function(n){return e.buyResource("garbage")}}})]})),e._l(e.uraniums,(function(n){return[t("Uranium",{key:n.id,attrs:{pieceId:n.id,targetState:{x:n.x,y:n.y},canClick:!n.transparent&&e.canBuyResource("uranium"),transparent:n.transparent},on:{click:function(n){return e.buyResource("uranium")}}})]})),e.isMiddleEast?[t("rect",{attrs:{width:"80",height:"50",x:"20",y:"70",rx:"2",fill:"gray",stroke:"darkgray","stroke-width":"4px"}}),t("Oil",{attrs:{pieceId:-1,targetState:{x:35,y:80},scale:1.5,canClick:e.availableSurplusOil>0&&e.canBuyResource("oil"),transparent:0==e.availableSurplusOil},on:{click:function(n){return e.buyResource("oil")}}}),t("text",{staticStyle:{"font-size":"16px","font-family":"monospace"},attrs:{"text-anchor":"middle",x:"70",y:"93.5"}},[e._v(" x"+e._s(e.availableSurplusOil)+" ")])]:e._e(),e.preferences.disableHelp?e._e():[e.buyableResources.length>0?t("rect",{attrs:{x:"15",y:"35",width:"770",height:"90",rx:"2",fill:"none",stroke:"blue","stroke-width":"2px"}}):e._e()]],2)},ca=[],la=t("bcba"),fa=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"resourceResupply",void 0),i(P(e),"isUsaRecharged",void 0),i(P(e),"isMiddleEast",void 0),i(P(e),"isIndiaResourceMarket",void 0),i(P(e),"availableSurplusOil",void 0),i(P(e),"buyableResources",void 0),i(P(e),"preferences",void 0),i(P(e),"coals",[]),i(P(e),"oils",[]),i(P(e),"garbages",[]),i(P(e),"uraniums",[]),e}return k(t,[{key:"createPieces",value:function(e){var n=this;if(e){var t,r,o,a,i;if(this.coals=[],"India"==(null===(t=e.map)||void 0===t?void 0:t.name)?Array(24).fill(0).forEach((function(t,r){var o=r;r>=0&&(o+=2),r>=2&&(o+=2),r>=4&&o++,r>=7&&o++,r>=10&&o++,r>=13&&o++,n.coals.push({id:"coal_"+r,x:672-17*o-17*Math.floor(o/4),y:48,transparent:r>=e.coalMarket})})):Array(24).fill(0).forEach((function(t,r){n.coals.push({id:"coal_"+r,x:668-23.5*r-14.5*Math.floor(r/3),y:48,transparent:r>=e.coalMarket})})),"recharged"==e.options.variant&&"USA"==(null===(r=e.map)||void 0===r?void 0:r.name)&&Object(la["range"])(e.coalSupply).forEach((function(e){n.coals.push({id:"coal_supply_"+e,x:800+e%8*20+(e>=8&&e<16?10:0),y:50+20*Math.floor(e/8),transparent:!1})})),this.oils=[],"Middle East"==(null===(o=e.map)||void 0===o?void 0:o.name)){var s=e.oilPrices.filter((function(e){return e>1})).length,u=e.oilPrices.filter((function(e){return 1==e})).length,c=Math.min(s,e.oilMarket);Array(s).fill(0).forEach((function(e,t){var r=t+(u-3);n.oils.push({id:"normal_oil_"+r,x:651-16*r-37*Math.floor(r/3),y:70,transparent:t>=c})}))}else Array(24).fill(0).forEach((function(t,r){n.oils.push({id:"oil_"+r,x:651-16*r-37*Math.floor(r/3),y:70,transparent:r>=e.oilMarket})}));this.garbages=[],"India"==(null===(a=e.map)||void 0===a?void 0:a.name)?Array(24).fill(0).forEach((function(t,r){var o=r+8;n.garbages.push({id:"garbage_"+r,x:672-17*o-17*Math.floor(o/4),y:94,transparent:r>=e.garbageMarket})})):Array(24).fill(0).forEach((function(t,r){n.garbages.push({id:"garbage_"+r,x:668-23.5*r-14.5*Math.floor(r/3),y:94,transparent:r>=e.garbageMarket})})),this.uraniums=[],"India"==(null===(i=e.map)||void 0===i?void 0:i.name)?Array(8).fill(0).forEach((function(t,r){n.uraniums.push({id:"uranium_"+r,x:670-85*r,y:72,transparent:r>=e.uraniumMarket})})):Array(12).fill(0).forEach((function(t,r){0==r?n.uraniums.push({id:"uranium_"+r,x:750,y:91,transparent:r>=e.uraniumMarket}):1==r?n.uraniums.push({id:"uranium_"+r,x:710,y:91,transparent:r>=e.uraniumMarket}):2==r?n.uraniums.push({id:"uranium_"+r,x:750,y:52,transparent:r>=e.uraniumMarket}):3==r?n.uraniums.push({id:"uranium_"+r,x:710,y:52,transparent:r>=e.uraniumMarket}):n.uraniums.push({id:"uranium_"+r,x:1010-85*r,y:72,transparent:r>=e.uraniumMarket})}))}}},{key:"canBuyResource",value:function(e){return!!this.buyableResources.find((function(n){return n==e}))}},{key:"buyResource",value:function(e){this.$emit("buyResource",e)}}]),t}(f.a);z([le()],fa.prototype,"resourceResupply",void 0),z([le()],fa.prototype,"isUsaRecharged",void 0),z([le()],fa.prototype,"isMiddleEast",void 0),z([le()],fa.prototype,"isIndiaResourceMarket",void 0),z([le()],fa.prototype,"availableSurplusOil",void 0),z([le()],fa.prototype,"buyableResources",void 0),z([te()],fa.prototype,"preferences",void 0),fa=z([ee({components:{Coal:Ft,Oil:yr,Garbage:Zt,Uranium:kr}})],fa);var da=fa,pa=da,ha=Rt(pa,ua,ca,!1,null,null,null),ga=ha.exports,ya=function(e){C(t,e);var n=O(t);function t(){var e;x(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),i(P(e),"state",void 0),i(P(e),"player",void 0),i(P(e),"emitter",void 0),i(P(e),"avatars",void 0),i(P(e),"preferences",void 0),i(P(e),"ui",{waitingAnimations:0}),i(P(e),"paused",!1),i(P(e),"communicator",new c["EventEmitter"]),i(P(e),"G",null),i(P(e),"_futureState",void 0),i(P(e),"playerColors",["limegreen","mediumorchid","red","dodgerblue","yellow","brown"]),i(P(e),"animationQueue",[]),i(P(e),"logVisible",!1),i(P(e),"endScoreVisible",!1),i(P(e),"spendingVisible",!1),i(P(e),"rulesVisible",!1),i(P(e),"totalBid",0),i(P(e),"confirmMessage",""),i(P(e),"confirmVisible",!1),i(P(e),"discardedPowerPlant",null),i(P(e),"discardVisible",!1),i(P(e),"resourcesToDiscard",[]),i(P(e),"disablePass",!1),i(P(e),"powerPlantMarket",void 0),i(P(e),"playerOrder",void 0),i(P(e),"cityCount",void 0),i(P(e),"map",void 0),i(P(e),"resources",void 0),e}return k(t,[{key:"onStateChanged",value:function(e){this.replaceState(e)}},{key:"replaceState",value:function(e){var n,t,r,o=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(a&&(this._futureState=e),null!=this.player&&this.G&&this.G.players&&this.G.players[this.player].resourcesUsed.some((function(e){return null==e}))&&(r={coalLeft:this.G.players[this.player].coalLeft,oilLeft:this.G.players[this.player].oilLeft,resourcesUsed:this.G.players[this.player].resourcesUsed}),this.G=JSON.parse(JSON.stringify(e)),r&&Object.assign(this.G.players[this.player],r),this.G&&this.$nextTick((function(){o.powerPlantMarket.createPieces(o.G),o.playerOrder.createPieces(o.G),o.cityCount.createPieces(o.G),o.map.createPieces(o.G),o.resources.createPieces(o.G)})),this.preferences.sound&&"move"==(null===(n=this.G)||void 0===n?void 0:n.log[(null===(t=this.G)||void 0===t?void 0:t.log.length)-1].type)){var i,s,u=null===(i=this.G)||void 0===i?void 0:i.log[(null===(s=this.G)||void 0===s?void 0:s.log.length)-1].move;u.name==ye.Pass&&this.G.currentPlayers.includes(this.player)?document.getElementById("notification").cloneNode(!0).play():u.name==ye.Build&&setTimeout((function(){document.getElementById("piece-drop").cloneNode(!0).play()}),800)}}},{key:"updateUI",value:function(){var e=this;if(!(this.ui.waitingAnimations>0))return this.animationQueue.length>0?(this.animationQueue.shift()(),void setTimeout((function(){return e.updateUI()}))):void 0}},{key:"checkPass",value:function(){if(this.G&&null!=this.player&&!this.G.chosenPowerPlant){var e=this.G.players[this.player];if(e&&e.availableMoves&&Object.keys(e.availableMoves).length>1){if(this.G.phase==ge.Bureaucracy&&e.powerPlantsNotUsed.length>0&&Object.keys(e.availableMoves).includes("UsePowerPlant"))return this.confirmMessage="Are you sure you want to pass? You have unused power plants!",void(this.confirmVisible=!0);if(this.G.phase==ge.Resources&&!this.canPowerAllPlants(e))return this.confirmMessage="Are you sure you want to skip buying resources without enough to power all your plants?",void(this.confirmVisible=!0);if(this.G.phase!=ge.Bureaucracy||e.powerPlantsNotUsed.length==e.powerPlants.length){var n=this.G.log[this.G.log.length-1];if(n.player!=this.player||n.move.name==ye.Pass){switch(this.G.phase){case ge.Auction:this.confirmMessage="Are you sure you want to skip auctions?";break;case ge.Resources:this.confirmMessage="Are you sure you want to skip buying resources?";break;case ge.Building:this.confirmMessage="Are you sure you want to skip building?";break;case ge.Bureaucracy:this.confirmMessage="Are you sure you want to pass? You didn't use any power plant!";break;default:this.confirmMessage="Are you sure you want to pass?"}return void(this.confirmVisible=!0)}}}}this.pass()}},{key:"confirmPass",value:function(){this.confirmVisible=!1,this.pass()}},{key:"pass",value:function(){this.sendMove({name:ye.Pass,data:!0})}},{key:"undo",value:function(){this.sendMove({name:ye.Undo,data:this.preferences.undoWholeTurn})}},{key:"choosePowerPlant",value:function(e){var n=this.G.players[this.player],t=n.availableMoves;t.ChoosePowerPlant&&t.ChoosePowerPlant.includes(e.number)&&this.sendMove({name:ye.ChoosePowerPlant,data:e.number})}},{key:"buyResource",value:function(e){this.sendMove({name:ye.BuyResource,data:{resource:e}})}},{key:"bid",value:function(e){this.sendMove({name:ye.Bid,data:e})}},{key:"build",value:function(e){var n=this.G.players[this.player],t=n.availableMoves,r=t[ye.Build].find((function(n){return n.name==e.name}));this.sendMove({name:ye.Build,data:{name:e.name,price:r.price}})}},{key:"confirmDiscard",value:function(){var e=this.resourcesToDiscard.map((function(e){return parseInt(e.value)}));e.reduce((function(e,n){return e+n}),0)>0?this.sendMove({name:ye.DiscardPowerPlant,data:this.discardedPowerPlant.number,extra:e}):this.sendMove({name:ye.DiscardPowerPlant,data:this.discardedPowerPlant.number}),this.discardedPowerPlant=null,this.discardVisible=!1}},{key:"discardInvalid",value:function(){var e,n=this.G.players[this.player];switch(this.discardedPowerPlant.type){case he.Coal:return e=n.hybridCapacity-2*this.discardedPowerPlant.cost>0?Math.max(0,n.oilLeft-n.oilCapacity):0,n.coalCapacity+n.hybridCapacity-2*this.discardedPowerPlant.cost+parseInt(this.resourcesToDiscard[0].value)<n.coalLeft+e;case he.Oil:return e=n.hybridCapacity-2*this.discardedPowerPlant.cost>0?Math.max(0,n.coalLeft-n.coalCapacity):0,n.oilCapacity+n.hybridCapacity-2*this.discardedPowerPlant.cost+parseInt(this.resourcesToDiscard[0].value)<n.oilLeft+e;case he.Garbage:return n.garbageCapacity-2*this.discardedPowerPlant.cost-n.garbageLeft+parseInt(this.resourcesToDiscard[0].value)<0;case he.Uranium:return n.uraniumCapacity-2*this.discardedPowerPlant.cost-n.uraniumLeft+parseInt(this.resourcesToDiscard[0].value)<0;case he.Hybrid:var t=parseInt(this.resourcesToDiscard[0].value),r=parseInt(this.resourcesToDiscard[1].value),o=n.hybridCapacity-2*this.discardedPowerPlant.cost,a=Math.max(0,n.coalLeft-n.coalCapacity-t),i=Math.max(0,n.oilLeft-n.oilCapacity-r);return o<a+i}return!0}},{key:"powerPlantClick",value:function(e){var n,t,r=this;if((null===(n=this.G)||void 0===n?void 0:n.phase)==ge.Auction)if(e.type==he.Wind||e.type==he.Nuclear)this.sendMove({name:ye.DiscardPowerPlant,data:e.number});else{var o=this.G.players[this.player];switch(e.type){case he.Coal:if(o.powerPlants.filter((function(n){return n.type==e.type})).length+o.powerPlants.filter((function(e){return e.type==he.Hybrid})).length==1)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});if(0==o.coalLeft)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});this.resourcesToDiscard=[{name:"Coal",value:"0",max:o.coalLeft}];break;case he.Oil:if(o.powerPlants.filter((function(n){return n.type==e.type})).length+o.powerPlants.filter((function(e){return e.type==he.Hybrid})).length==1)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});if(0==o.oilLeft)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});this.resourcesToDiscard=[{name:"Oil",value:"0",max:o.oilLeft}];break;case he.Garbage:if(1==o.powerPlants.filter((function(n){return n.type==e.type})).length)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});if(0==o.garbageLeft)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});this.resourcesToDiscard=[{name:"Garbage",value:"0",max:o.garbageLeft}];break;case he.Uranium:if(1==o.powerPlants.filter((function(n){return n.type==e.type})).length)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});if(0==o.uraniumLeft)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});this.resourcesToDiscard=[{name:"Uranium",value:"0",max:o.uraniumLeft}];break;case he.Hybrid:if(o.powerPlants.filter((function(n){return n.type==e.type})).length+o.powerPlants.filter((function(e){return e.type==he.Coal})).length+o.powerPlants.filter((function(e){return e.type==he.Oil})).length==1)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});if(o.coalLeft+o.oilLeft==0)return void this.sendMove({name:ye.DiscardPowerPlant,data:e.number});this.resourcesToDiscard=[{name:"Coal",value:"0",max:o.coalLeft},{name:"Oil",value:"0",max:o.oilLeft}];break}this.discardedPowerPlant=e,this.discardVisible=!0}else if((null===(t=this.G)||void 0===t?void 0:t.phase)==ge.Bureaucracy){var a=[];switch(e.type){case he.Coal:a=Array(e.cost).fill(pe.Coal);break;case he.Oil:a=Array(e.cost).fill(pe.Oil);break;case he.Garbage:a=Array(e.cost).fill(pe.Garbage);break;case he.Uranium:a=Array(e.cost).fill(pe.Uranium);break;case he.Hybrid:var i=this.G.players[this.player];a=i.resourcesUsed,a.sort(),i.resourcesUsed=[],i.powerPlantsNotUsed=i.powerPlantsNotUsed.filter((function(n){return n!=e.number}));break}this.sendMove({name:ye.UsePowerPlant,data:{powerPlant:e.number,resourcesSpent:a,citiesPowered:e.citiesPowered}}),this.disablePass=!0,setTimeout((function(){return r.disablePass=!1}),1e3)}}},{key:"discardResource",value:function(e){this.sendMove({name:ye.DiscardResources,data:e})}},{key:"sendMove",value:function(e){this.paused||this.emitter.emit("move",e)}},{key:"gameEnded",value:function(e){return Zn(e)}},{key:"canMove",value:function(){return void 0!=this.player&&this.G&&this.G.currentPlayers.includes(this.player)&&this.G.players[this.player]&&this.G.players[this.player].availableMoves}},{key:"canPass",value:function(){if(!this.canMove())return!1;if(this.disablePass)return!1;var e=this.G.players[this.player],n=e.availableMoves;return!!n[ye.Pass]}},{key:"canUndo",value:function(){if(!this.canMove())return!1;var e=this.G.players[this.player],n=e.availableMoves;return!!n[ye.Undo]}},{key:"canBid",value:function(){if(!this.canMove())return!1;var e=this.G.players[this.player],n=e.availableMoves;return!!n[ye.Bid]}},{key:"canChoose",value:function(){if(!this.canMove())return!1;var e=this.G.players[this.player],n=e.availableMoves;return!!n[ye.ChoosePowerPlant]}},{key:"buyableResources",value:function(){if(!this.canMove())return[];var e=this.G.players[this.player],n=e.availableMoves;return!!n[ye.BuyResource]&&n[ye.BuyResource].map((function(e){return e.resource}))||[]}},{key:"canBuyResource",value:function(e){if(!this.canMove())return!1;var n=this.G.players[this.player],t=n.availableMoves;return e?!!t[ye.BuyResource]&&t[ye.BuyResource].find((function(n){return n.resource==e})):!!t[ye.BuyResource]}},{key:"getChooseablePowerPlants",value:function(){if(!this.canMove())return[];var e=this.G.players[this.player],n=e.availableMoves;return n[ye.ChoosePowerPlant]}},{key:"getBuildableCities",value:function(){if(!this.canMove())return[];var e=this.G.players[this.player],n=e.availableMoves;return n[ye.Build]&&n[ye.Build].map((function(e){return e.name}))||[]}},{key:"canBuild",value:function(e){if(!this.canMove())return!1;var n=this.G.players[this.player],t=n.availableMoves;return!!t[ye.Build]&&t[ye.Build].find((function(n){return n.name==e.name}))}},{key:"canUsePowerPlant",value:function(e){var n,t;if(!this.canMove())return!1;var r=this.G.players[this.player],o=r.availableMoves;return!(r.resourcesUsed.length>0)&&((null===(n=this.G)||void 0===n?void 0:n.phase)==ge.Bureaucracy?!!o[ye.UsePowerPlant]&&o[ye.UsePowerPlant].find((function(n){return n.powerPlant==e.number})):(null===(t=this.G)||void 0===t?void 0:t.phase)==ge.Auction?!!o[ye.DiscardPowerPlant]&&o[ye.DiscardPowerPlant].find((function(n){return n==e.number})):void 0)}},{key:"canPowerAllPlants",value:function(e){var n,t=0,r=0,o=0,a=0,i=0,s=w(e.powerPlants);try{for(s.s();!(n=s.n()).done;){var u=n.value;switch(u.type){case he.Coal:t+=u.cost;break;case he.Oil:r+=u.cost;break;case he.Garbage:o+=u.cost;break;case he.Uranium:a+=u.cost;break;case he.Hybrid:i+=u.cost;break}}}catch(f){s.e(f)}finally{s.f()}if(t>e.coalLeft||r>e.oilLeft||o>e.garbageLeft||a>e.uraniumLeft)return!1;var c=e.coalLeft-t,l=e.oilLeft-r;return!(i>c+l)}},{key:"toggleSound",value:function(){var e=!this.preferences.sound;this.emitter.emit("update:preference",{name:"sound",value:e}),this.preferences.sound=e}},{key:"toggleHelp",value:function(){var e=!this.preferences.disableHelp;this.emitter.emit("update:preference",{name:"disableHelp",value:e}),this.preferences.disableHelp=e}},{key:"showLog",value:function(){this.logVisible=!0}},{key:"getStatusMessage",value:function(){var e;if(!this.G||1==this.G.log.length)return"Game Start!";if(this.G.currentPlayers==[])return"Game ended!";if(void 0!==this.player&&null!==(e=this.G)&&void 0!==e&&e.currentPlayers.includes(this.player)){var n=this.G.players[this.player];return n.availableMoves[ye.ChoosePowerPlant]?n.availableMoves[ye.Pass]?"Choose a Power Plant to start an auction, or pass.":"Choose a Power Plant to start an auction.":n.availableMoves[ye.Bid]?"It's your turn to bid!":n.availableMoves[ye.BuyResource]?"Buy resources on the market, or pass.":n.availableMoves[ye.Build]?"Build a new city, or pass.":n.availableMoves[ye.UsePowerPlant]?0!=n.resourcesUsed.length?"Choose which resources to spend.":"Choose which Power Plant to use.":n.availableMoves[ye.DiscardPowerPlant]?"Choose which Power Plant to discard.":n.availableMoves[ye.DiscardResources]?"Choose which resources to discard.":"It's your turn!"}var t=this.G.log[this.G.log.length-1];return"move"==t.type?t.simple:"event"==t.type?t.event:void 0}},{key:"isCurrentPlayer",value:function(e){return this.G&&this.G.currentPlayers.includes(e)}},{key:"logReversed",get:function(){var e=[];return this.G&&this.G.log&&(this.G.log.forEach((function(n){"event"==n.type?e.push(n.pretty||n.event):"move"==n.type&&e.push(n.pretty)})),e.reverse()),e}},{key:"logReversedSimple",get:function(){var e=[];return this.G&&this.G.log&&(this.G.log.forEach((function(n){"event"==n.type?e.push(n.event):"move"==n.type&&e.push(n.simple)})),e.reverse()),e}},{key:"onLogChanged",value:function(){this.emitter.emit("replaceLog",b(this.logReversedSimple).reverse())}},{key:"sortedPlayers",get:function(){return st(this.G)}},{key:"adjustedPlayerOrder",get:function(){return this.G?this.preferences.adjustPlayerOrder?this.G.phase==ge.Auction?this.G.playerOrder:this.G.playerOrder.reverse():this.G.players.map((function(e,n){return n})):[]}},{key:"getResourceResupply",value:function(){if(this.G){var e=this.G.resourceResupply[this.G.step-1];return e=e.substr(1,e.length-2),e.split(",")}return[0,0,0,0]}}]),t}(f.a);z([le()],ya.prototype,"state",void 0),z([le(),se()],ya.prototype,"player",void 0),z([le()],ya.prototype,"emitter",void 0),z([le()],ya.prototype,"avatars",void 0),z([le(),se()],ya.prototype,"preferences",void 0),z([ie()],ya.prototype,"ui",void 0),z([ie()],ya.prototype,"communicator",void 0),z([se()],ya.prototype,"G",void 0),z([de()],ya.prototype,"powerPlantMarket",void 0),z([de()],ya.prototype,"playerOrder",void 0),z([de()],ya.prototype,"cityCount",void 0),z([de()],ya.prototype,"map",void 0),z([de()],ya.prototype,"resources",void 0),z([fe("state",{immediate:!0})],ya.prototype,"onStateChanged",null),z([fe("ui.waitingAnimations")],ya.prototype,"updateUI",null),z([fe("G.log")],ya.prototype,"onLogChanged",null),ya=z([ee({created:function(){var e=this;this.emitter.on("replayStart",(function(){e.paused=!0,e.emitter.emit("replay:info",{start:1,current:e.G.log.filter((function(e){return"move"==e.type})).length,end:e._futureState.log.filter((function(e){return"move"==e.type})).length})})),this.emitter.on("replayTo",(function(n){var t=e._futureState.log.map((function(e,n){return u({index:n},e)})).filter((function(e){return"move"==e.type}));n=t[n-1].index,e.replaceState(Jn(e._futureState,n+1),!1),e.emitter.emit("replay:info",{start:1,current:e.G.log.filter((function(e){return"move"==e.type})).length+e.G.hiddenLog.length,end:e._futureState.log.filter((function(e){return"move"==e.type})).length})})),this.emitter.on("replayEnd",(function(){e.paused=!1,e.emitter.emit("fetchState")}))},components:{PlayerBoard:Co,Card:Et,House:rr,Coal:Ft,Oil:yr,Garbage:Zt,Uranium:kr,PassButton:Jr,UndoButton:bo,LogButton:Wr,SoundButton:oo,HelpButton:Gr,RulesButton:fo,Button:Ar,Calculator:zo,PowerPlantMarket:No,PlayerOrder:Yo,CityCount:ea,Map:sa,Resources:ga}})],ya);var va=ya,ma=va,ba=(t("bb9a"),Rt(ma,d,p,!1,null,null,null)),wa=ba.exports;function xa(e){var n={state:null,emitter:new c["EventEmitter"],preferences:{sound:!0,disableHelp:!1,adjustPlayerOrder:!1,undoWholeTurn:!0,fitToScreen:!0},avatars:[]},t=new f.a({render:function(e){return e(wa,{props:n},[])}}).$mount(e),r=new c["EventEmitter"],o=!1;return n.emitter.on("move",(function(e){return r.emit("move",e)})),n.emitter.on("fetchState",(function(){return r.emit("fetchState")})),n.emitter.on("addLog",(function(e){return r.emit("addLog",e)})),n.emitter.on("replaceLog",(function(e){return r.emit("replaceLog",e)})),n.emitter.on("replay:info",(function(e){return r.emit("replay:info",e)})),n.emitter.on("update:preference",(function(e){return r.emit("update:preference",e)})),r.addListener("avatars",(function(e){n.avatars=e,t.$forceUpdate()})),r.addListener("state",(function(e){n.state=e,t.$forceUpdate(),t.$nextTick().then((function(){return r.emit("ready")}))})),r.addListener("state:updated",(function(){return r.emit("fetchState")})),r.addListener("player",(function(e){n.player=e.index,t.$forceUpdate()})),r.addListener("preferences",(function(e){n.preferences=u(u({},n.preferences),e),t.$forceUpdate()})),r.addListener("gamelog",(function(e){o||r.emit("fetchState")})),r.addListener("replay:start",(function(){n.emitter.emit("replayStart"),o=!0})),r.addListener("replay:to",(function(e){n.emitter.emit("replayTo",e)})),r.addListener("replay:end",(function(){n.emitter.emit("replayEnd"),o=!1,r.emit("fetchState")})),r}var _a=xa;"undefined"!==typeof window&&(window.powergrid={launch:_a});var ka=_a;n["default"]=ka},a1a4:function(e,n,t){"use strict";var r=t("a768"),o=t("41d6"),a=t("fd86"),i=t("ce17"),s=a("species");e.exports=function(e){var n=r(e),t=o.f;i&&n&&!n[s]&&t(n,s,{configurable:!0,get:function(){return this}})}},a516:function(e,n,t){"use strict";var r=t("7f82"),o=t("12aa"),a=t("b42f"),i=t("43b7"),s=t("f246"),u=t("cbe1"),c=t("cba7"),l=t("2fb6"),f=l("splice"),d=Math.max,p=Math.min,h=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!f},{splice:function(e,n){var t,r,l,f,y,v,m=s(this),b=i(m.length),w=o(e,b),x=arguments.length;if(0===x?t=r=0:1===x?(t=0,r=b-w):(t=x-2,r=p(d(a(n),0),b-w)),b+t-r>h)throw TypeError(g);for(l=u(m,r),f=0;f<r;f++)y=w+f,y in m&&c(l,f,m[y]);if(l.length=r,t<r){for(f=w;f<b-r;f++)y=f+r,v=f+t,y in m?m[v]=m[y]:delete m[v];for(f=b;f>b-r+t;f--)delete m[f-1]}else if(t>r)for(f=b-r;f>w;f--)y=f+r-1,v=f+t-1,y in m?m[v]=m[y]:delete m[v];for(f=0;f<t;f++)m[f+w]=arguments[f+2];return m.length=b-r+t,l}})},a768:function(e,n,t){var r=t("8aac"),o=t("68de"),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,n){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][n]||o[e]&&o[e][n]}},a901:function(e,n,t){"use strict";var r=t("2079").charAt,o=t("2673"),a=t("4116"),i="String Iterator",s=o.set,u=o.getterFor(i);a(String,"String",(function(e){s(this,{type:i,string:String(e),index:0})}),(function(){var e,n=u(this),t=n.string,o=n.index;return o>=t.length?{value:void 0,done:!0}:(e=r(t,o),n.index+=e.length,{value:e,done:!1})}))},a9eb:function(e,n,t){var r=t("8dac");e.exports=function(e,n){if(!r(e))return e;var t,o;if(n&&"function"==typeof(t=e.toString)&&!r(o=t.call(e)))return o;if("function"==typeof(t=e.valueOf)&&!r(o=t.call(e)))return o;if(!n&&"function"==typeof(t=e.toString)&&!r(o=t.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},ac27:function(e,n){e.exports=function(e){try{return!!e()}catch(n){return!0}}},ac85:function(e,n,t){(function(e){var r;(function(e,o,a){function i(e){var n=this;function t(e,n){var t,r,o,a,i,s=[],u=128;for(n===(0|n)?(r=n,n=null):(n+="\0",r=0,u=Math.max(u,n.length)),o=0,a=-32;a<u;++a)n&&(r^=n.charCodeAt((a+32)%n.length)),0===a&&(i=r),r^=r<<10,r^=r>>>15,r^=r<<4,r^=r>>>13,a>=0&&(i=i+1640531527|0,t=s[127&a]^=r+i,o=0==t?o+1:0);for(o>=128&&(s[127&(n&&n.length||0)]=-1),o=127,a=512;a>0;--a)r=s[o+34&127],t=s[o=o+1&127],r^=r<<13,t^=t<<17,r^=r>>>15,t^=t>>>12,s[o]=r^t;e.w=i,e.X=s,e.i=o}n.next=function(){var e,t,r=n.w,o=n.X,a=n.i;return n.w=r=r+1640531527|0,t=o[a+34&127],e=o[a=a+1&127],t^=t<<13,e^=e<<17,t^=t>>>15,e^=e>>>12,t=o[a]=t^e,n.i=a,t+(r^r>>>16)|0},t(n,e)}function s(e,n){return n.i=e.i,n.w=e.w,n.X=e.X.slice(),n}function u(e,n){null==e&&(e=+new Date);var t=new i(e),r=n&&n.state,o=function(){return(t.next()>>>0)/4294967296};return o.double=function(){do{var e=t.next()>>>11,n=(t.next()>>>0)/4294967296,r=(e+n)/(1<<21)}while(0===r);return r},o.int32=t.next,o.quick=o,r&&(r.X&&s(r,t),o.state=function(){return s(t,{})}),o}o&&o.exports?o.exports=u:t("f9ad")&&t("ba96")?(r=function(){return u}.call(n,t,n,o),void 0===r||(o.exports=r)):this.xor4096=u})(0,e,t("f9ad"))}).call(this,t("e55b")(e))},b07d:function(e,n,t){"use strict";var r=t("cbdb"),o=t("0540"),a=t("57ac"),i=t("c678"),s=t("c698"),u=t("7743"),c=t("43b7"),l=t("1af6"),f=t("8bc5"),d=t("3439"),p=d.UNSUPPORTED_Y,h=[].push,g=Math.min,y=4294967295;r("split",2,(function(e,n,t){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var r=String(i(this)),a=void 0===t?y:t>>>0;if(0===a)return[];if(void 0===e)return[r];if(!o(e))return n.call(r,e,a);var s,u,c,l=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=new RegExp(e.source,d+"g");while(s=f.call(g,r)){if(u=g.lastIndex,u>p&&(l.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&h.apply(l,s.slice(1)),c=s[0].length,p=u,l.length>=a))break;g.lastIndex===s.index&&g.lastIndex++}return p===r.length?!c&&g.test("")||l.push(""):l.push(r.slice(p)),l.length>a?l.slice(0,a):l}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,t){var o=i(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,o,t):r.call(String(o),n,t)},function(e,o){var i=t(r,e,this,o,r!==n);if(i.done)return i.value;var f=a(e),d=String(this),h=s(f,RegExp),v=f.unicode,m=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(p?"g":"y"),b=new h(p?"^(?:"+f.source+")":f,m),w=void 0===o?y:o>>>0;if(0===w)return[];if(0===d.length)return null===l(b,d)?[d]:[];var x=0,_=0,k=[];while(_<d.length){b.lastIndex=p?0:_;var P,S=l(b,p?d.slice(_):d);if(null===S||(P=g(c(b.lastIndex+(p?_:0)),d.length))===x)_=u(d,_,v);else{if(k.push(d.slice(x,_)),k.length===w)return k;for(var C=1;C<=S.length-1;C++)if(k.push(S[C]),k.length===w)return k;_=x=P}}return k.push(d.slice(x)),k}]}),p)},b0d4:function(e,n,t){"use strict";var r=t("7f82"),o=t("b222").find,a=t("d684"),i="find",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},b168:function(e,n,t){var r,o,a=t("68de"),i=t("fd70"),s=a.process,u=s&&s.versions,c=u&&u.v8;c?(r=c.split("."),o=r[0]<4?1:r[0]+r[1]):i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=r[1]))),e.exports=o&&+o},b222:function(e,n,t){var r=t("6e4e"),o=t("2153"),a=t("f246"),i=t("43b7"),s=t("cbe1"),u=[].push,c=function(e){var n=1==e,t=2==e,c=3==e,l=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,g,y,v){for(var m,b,w=a(h),x=o(w),_=r(g,y,3),k=i(x.length),P=0,S=v||s,C=n?S(h,k):t||d?S(h,0):void 0;k>P;P++)if((p||P in x)&&(m=x[P],b=_(m,P,w),e))if(n)C[P]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return P;case 2:u.call(C,m)}else switch(e){case 4:return!1;case 7:u.call(C,m)}return f?-1:c||l?l:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},b2a1:function(e,n,t){var r=t("9c0c"),o=t("97cc").f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(n){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?s(e):o(r(e))}},b42f:function(e,n){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},b67b:function(e,n,t){e.exports=t.p+"img/log.04ef6981.svg"},b85b:function(e,n,t){e.exports=t.p+"img/rules.64f9aae5.svg"},ba03:function(e,n,t){(function(e){var r;(function(e,o,a){function i(e){var n=this,t="";n.next=function(){var e=n.b,t=n.c,r=n.d,o=n.a;return e=e<<25^e>>>7^t,t=t-r|0,r=r<<24^r>>>8^o,o=o-e|0,n.b=e=e<<20^e>>>12^t,n.c=t=t-r|0,n.d=r<<16^t>>>16^o,n.a=o-e|0},n.a=0,n.b=0,n.c=-1640531527,n.d=1367130551,e===Math.floor(e)?(n.a=e/4294967296|0,n.b=0|e):t+=e;for(var r=0;r<t.length+20;r++)n.b^=0|t.charCodeAt(r),n.next()}function s(e,n){return n.a=e.a,n.b=e.b,n.c=e.c,n.d=e.d,n}function u(e,n){var t=new i(e),r=n&&n.state,o=function(){return(t.next()>>>0)/4294967296};return o.double=function(){do{var e=t.next()>>>11,n=(t.next()>>>0)/4294967296,r=(e+n)/(1<<21)}while(0===r);return r},o.int32=t.next,o.quick=o,r&&("object"==typeof r&&s(r,t),o.state=function(){return s(t,{})}),o}o&&o.exports?o.exports=u:t("f9ad")&&t("ba96")?(r=function(){return u}.call(n,t,n,o),void 0===r||(o.exports=r)):this.tychei=u})(0,e,t("f9ad"))}).call(this,t("e55b")(e))},ba28:function(e,n,t){var r=t("8c99"),o=t("338e");e.exports=Object.keys||function(e){return r(e,o)}},ba96:function(e,n){(function(n){e.exports=n}).call(this,{})},bb9a:function(e,n,t){"use strict";t("50b1")},bcba:function(e,n,t){(function(e,r){var o;
|
|
27
27
|
/**
|
|
28
28
|
* @license
|
|
29
29
|
* Lodash <https://lodash.com/>
|
|
@@ -31,5 +31,5 @@ function z(e){return z="function"===typeof Symbol&&"symbol"===typeof Symbol.iter
|
|
|
31
31
|
* Released under MIT license <https://lodash.com/license>
|
|
32
32
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
33
33
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
34
|
-
*/(function(){var a,i="4.17.21",s=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,g=2,y=4,v=1,m=2,b=1,w=2,x=4,_=8,k=16,P=32,S=64,C=128,M=256,B=512,A=30,R="...",L=800,O=16,j=1,z=2,D=3,E=1/0,G=9007199254740991,T=17976931348623157e292,I=NaN,N=4294967295,U=N-1,K=N>>>1,F=[["ary",C],["bind",b],["bindKey",w],["curry",_],["curryRight",k],["flip",B],["partial",P],["partialRight",S],["rearg",M]],V="[object Arguments]",W="[object Array]",H="[object AsyncFunction]",Y="[object Boolean]",$="[object Date]",q="[object DOMException]",Z="[object Error]",J="[object Function]",X="[object GeneratorFunction]",Q="[object Map]",ee="[object Number]",ne="[object Null]",te="[object Object]",re="[object Promise]",oe="[object Proxy]",ae="[object RegExp]",ie="[object Set]",se="[object String]",ue="[object Symbol]",ce="[object Undefined]",le="[object WeakMap]",fe="[object WeakSet]",de="[object ArrayBuffer]",pe="[object DataView]",he="[object Float32Array]",ge="[object Float64Array]",ye="[object Int8Array]",ve="[object Int16Array]",me="[object Int32Array]",be="[object Uint8Array]",we="[object Uint8ClampedArray]",xe="[object Uint16Array]",_e="[object Uint32Array]",ke=/\b__p \+= '';/g,Pe=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Be=RegExp(Ce.source),Ae=RegExp(Me.source),Re=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ze=/^\w*$/,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ee=/[\\^$.*+?()[\]{}|]/g,Ge=RegExp(Ee.source),Te=/^\s+/,Ie=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,Ke=/,? & /,Fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ye=/\w*$/,$e=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Ze=/^\[object .+?Constructor\]$/,Je=/^0o[0-7]+$/i,Xe=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,en=/($^)/,nn=/['\n\r\u2028\u2029\\]/g,tn="\\ud800-\\udfff",rn="\\u0300-\\u036f",on="\\ufe20-\\ufe2f",an="\\u20d0-\\u20ff",sn=rn+on+an,un="\\u2700-\\u27bf",cn="a-z\\xdf-\\xf6\\xf8-\\xff",ln="\\xac\\xb1\\xd7\\xf7",fn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dn="\\u2000-\\u206f",pn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hn="A-Z\\xc0-\\xd6\\xd8-\\xde",gn="\\ufe0e\\ufe0f",yn=ln+fn+dn+pn,vn="['’]",mn="["+tn+"]",bn="["+yn+"]",wn="["+sn+"]",xn="\\d+",_n="["+un+"]",kn="["+cn+"]",Pn="[^"+tn+yn+xn+un+cn+hn+"]",Sn="\\ud83c[\\udffb-\\udfff]",Cn="(?:"+wn+"|"+Sn+")",Mn="[^"+tn+"]",Bn="(?:\\ud83c[\\udde6-\\uddff]){2}",An="[\\ud800-\\udbff][\\udc00-\\udfff]",Rn="["+hn+"]",Ln="\\u200d",On="(?:"+kn+"|"+Pn+")",jn="(?:"+Rn+"|"+Pn+")",zn="(?:"+vn+"(?:d|ll|m|re|s|t|ve))?",Dn="(?:"+vn+"(?:D|LL|M|RE|S|T|VE))?",En=Cn+"?",Gn="["+gn+"]?",Tn="(?:"+Ln+"(?:"+[Mn,Bn,An].join("|")+")"+Gn+En+")*",In="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Un=Gn+En+Tn,Kn="(?:"+[_n,Bn,An].join("|")+")"+Un,Fn="(?:"+[Mn+wn+"?",wn,Bn,An,mn].join("|")+")",Vn=RegExp(vn,"g"),Wn=RegExp(wn,"g"),Hn=RegExp(Sn+"(?="+Sn+")|"+Fn+Un,"g"),Yn=RegExp([Rn+"?"+kn+"+"+zn+"(?="+[bn,Rn,"$"].join("|")+")",jn+"+"+Dn+"(?="+[bn,Rn+On,"$"].join("|")+")",Rn+"?"+On+"+"+zn,Rn+"+"+Dn,Nn,In,xn,Kn].join("|"),"g"),$n=RegExp("["+Ln+tn+sn+gn+"]"),qn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jn=-1,Xn={};Xn[he]=Xn[ge]=Xn[ye]=Xn[ve]=Xn[me]=Xn[be]=Xn[we]=Xn[xe]=Xn[_e]=!0,Xn[V]=Xn[W]=Xn[de]=Xn[Y]=Xn[pe]=Xn[$]=Xn[Z]=Xn[J]=Xn[Q]=Xn[ee]=Xn[te]=Xn[ae]=Xn[ie]=Xn[se]=Xn[le]=!1;var Qn={};Qn[V]=Qn[W]=Qn[de]=Qn[pe]=Qn[Y]=Qn[$]=Qn[he]=Qn[ge]=Qn[ye]=Qn[ve]=Qn[me]=Qn[Q]=Qn[ee]=Qn[te]=Qn[ae]=Qn[ie]=Qn[se]=Qn[ue]=Qn[be]=Qn[we]=Qn[xe]=Qn[_e]=!0,Qn[Z]=Qn[J]=Qn[le]=!1;var et={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},nt={"&":"&","<":"<",">":">",'"':""","'":"'"},tt={"&":"&","<":"<",">":">",""":'"',"'":"'"},rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ot=parseFloat,at=parseInt,it="object"==typeof e&&e&&e.Object===Object&&e,st="object"==typeof self&&self&&self.Object===Object&&self,ut=it||st||Function("return this")(),ct=n&&!n.nodeType&&n,lt=ct&&"object"==typeof r&&r&&!r.nodeType&&r,ft=lt&<.exports===ct,dt=ft&&it.process,pt=function(){try{var e=lt&<.require&<.require("util").types;return e||dt&&dt.binding&&dt.binding("util")}catch(n){}}(),ht=pt&&pt.isArrayBuffer,gt=pt&&pt.isDate,yt=pt&&pt.isMap,vt=pt&&pt.isRegExp,mt=pt&&pt.isSet,bt=pt&&pt.isTypedArray;function wt(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function xt(e,n,t,r){var o=-1,a=null==e?0:e.length;while(++o<a){var i=e[o];n(r,i,t(i),e)}return r}function _t(e,n){var t=-1,r=null==e?0:e.length;while(++t<r)if(!1===n(e[t],t,e))break;return e}function kt(e,n){var t=null==e?0:e.length;while(t--)if(!1===n(e[t],t,e))break;return e}function Pt(e,n){var t=-1,r=null==e?0:e.length;while(++t<r)if(!n(e[t],t,e))return!1;return!0}function St(e,n){var t=-1,r=null==e?0:e.length,o=0,a=[];while(++t<r){var i=e[t];n(i,t,e)&&(a[o++]=i)}return a}function Ct(e,n){var t=null==e?0:e.length;return!!t&&Tt(e,n,0)>-1}function Mt(e,n,t){var r=-1,o=null==e?0:e.length;while(++r<o)if(t(n,e[r]))return!0;return!1}function Bt(e,n){var t=-1,r=null==e?0:e.length,o=Array(r);while(++t<r)o[t]=n(e[t],t,e);return o}function At(e,n){var t=-1,r=n.length,o=e.length;while(++t<r)e[o+t]=n[t];return e}function Rt(e,n,t,r){var o=-1,a=null==e?0:e.length;r&&a&&(t=e[++o]);while(++o<a)t=n(t,e[o],o,e);return t}function Lt(e,n,t,r){var o=null==e?0:e.length;r&&o&&(t=e[--o]);while(o--)t=n(t,e[o],o,e);return t}function Ot(e,n){var t=-1,r=null==e?0:e.length;while(++t<r)if(n(e[t],t,e))return!0;return!1}var jt=Kt("length");function zt(e){return e.split("")}function Dt(e){return e.match(Fe)||[]}function Et(e,n,t){var r;return t(e,(function(e,t,o){if(n(e,t,o))return r=t,!1})),r}function Gt(e,n,t,r){var o=e.length,a=t+(r?1:-1);while(r?a--:++a<o)if(n(e[a],a,e))return a;return-1}function Tt(e,n,t){return n===n?hr(e,n,t):Gt(e,Nt,t)}function It(e,n,t,r){var o=t-1,a=e.length;while(++o<a)if(r(e[o],n))return o;return-1}function Nt(e){return e!==e}function Ut(e,n){var t=null==e?0:e.length;return t?Ht(e,n)/t:I}function Kt(e){return function(n){return null==n?a:n[e]}}function Ft(e){return function(n){return null==e?a:e[n]}}function Vt(e,n,t,r,o){return o(e,(function(e,o,a){t=r?(r=!1,e):n(t,e,o,a)})),t}function Wt(e,n){var t=e.length;e.sort(n);while(t--)e[t]=e[t].value;return e}function Ht(e,n){var t,r=-1,o=e.length;while(++r<o){var i=n(e[r]);i!==a&&(t=t===a?i:t+i)}return t}function Yt(e,n){var t=-1,r=Array(e);while(++t<e)r[t]=n(t);return r}function $t(e,n){return Bt(n,(function(n){return[n,e[n]]}))}function qt(e){return e?e.slice(0,mr(e)+1).replace(Te,""):e}function Zt(e){return function(n){return e(n)}}function Jt(e,n){return Bt(n,(function(n){return e[n]}))}function Xt(e,n){return e.has(n)}function Qt(e,n){var t=-1,r=e.length;while(++t<r&&Tt(n,e[t],0)>-1);return t}function er(e,n){var t=e.length;while(t--&&Tt(n,e[t],0)>-1);return t}function nr(e,n){var t=e.length,r=0;while(t--)e[t]===n&&++r;return r}var tr=Ft(et),rr=Ft(nt);function or(e){return"\\"+rt[e]}function ar(e,n){return null==e?a:e[n]}function ir(e){return $n.test(e)}function sr(e){return qn.test(e)}function ur(e){var n,t=[];while(!(n=e.next()).done)t.push(n.value);return t}function cr(e){var n=-1,t=Array(e.size);return e.forEach((function(e,r){t[++n]=[r,e]})),t}function lr(e,n){return function(t){return e(n(t))}}function fr(e,n){var t=-1,r=e.length,o=0,a=[];while(++t<r){var i=e[t];i!==n&&i!==p||(e[t]=p,a[o++]=t)}return a}function dr(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t}function pr(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=[e,e]})),t}function hr(e,n,t){var r=t-1,o=e.length;while(++r<o)if(e[r]===n)return r;return-1}function gr(e,n,t){var r=t+1;while(r--)if(e[r]===n)return r;return r}function yr(e){return ir(e)?wr(e):jt(e)}function vr(e){return ir(e)?xr(e):zt(e)}function mr(e){var n=e.length;while(n--&&Ie.test(e.charAt(n)));return n}var br=Ft(tt);function wr(e){var n=Hn.lastIndex=0;while(Hn.test(e))++n;return n}function xr(e){return e.match(Hn)||[]}function _r(e){return e.match(Yn)||[]}var kr=function e(n){n=null==n?ut:Pr.defaults(ut.Object(),n,Pr.pick(ut,Zn));var t=n.Array,r=n.Date,o=n.Error,Ie=n.Function,Fe=n.Math,tn=n.Object,rn=n.RegExp,on=n.String,an=n.TypeError,sn=t.prototype,un=Ie.prototype,cn=tn.prototype,ln=n["__core-js_shared__"],fn=un.toString,dn=cn.hasOwnProperty,pn=0,hn=function(){var e=/[^.]+$/.exec(ln&&ln.keys&&ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gn=cn.toString,yn=fn.call(tn),vn=ut._,mn=rn("^"+fn.call(dn).replace(Ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bn=ft?n.Buffer:a,wn=n.Symbol,xn=n.Uint8Array,_n=bn?bn.allocUnsafe:a,kn=lr(tn.getPrototypeOf,tn),Pn=tn.create,Sn=cn.propertyIsEnumerable,Cn=sn.splice,Mn=wn?wn.isConcatSpreadable:a,Bn=wn?wn.iterator:a,An=wn?wn.toStringTag:a,Rn=function(){try{var e=Yi(tn,"defineProperty");return e({},"",{}),e}catch(n){}}(),Ln=n.clearTimeout!==ut.clearTimeout&&n.clearTimeout,On=r&&r.now!==ut.Date.now&&r.now,jn=n.setTimeout!==ut.setTimeout&&n.setTimeout,zn=Fe.ceil,Dn=Fe.floor,En=tn.getOwnPropertySymbols,Gn=bn?bn.isBuffer:a,Tn=n.isFinite,In=sn.join,Nn=lr(tn.keys,tn),Un=Fe.max,Kn=Fe.min,Fn=r.now,Hn=n.parseInt,Yn=Fe.random,$n=sn.reverse,qn=Yi(n,"DataView"),et=Yi(n,"Map"),nt=Yi(n,"Promise"),tt=Yi(n,"Set"),rt=Yi(n,"WeakMap"),it=Yi(tn,"create"),st=rt&&new rt,ct={},lt=Os(qn),dt=Os(et),pt=Os(nt),jt=Os(tt),zt=Os(rt),Ft=wn?wn.prototype:a,hr=Ft?Ft.valueOf:a,wr=Ft?Ft.toString:a;function xr(e){if(Sl(e)&&!ul(e)&&!(e instanceof Mr)){if(e instanceof Cr)return e;if(dn.call(e,"__wrapped__"))return zs(e)}return new Cr(e)}var kr=function(){function e(){}return function(n){if(!Pl(n))return{};if(Pn)return Pn(n);e.prototype=n;var t=new e;return e.prototype=a,t}}();function Sr(){}function Cr(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=a}function Mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function Br(){var e=new Mr(this.__wrapped__);return e.__actions__=oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=oi(this.__views__),e}function Ar(){if(this.__filtered__){var e=new Mr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Rr(){var e=this.__wrapped__.value(),n=this.__dir__,t=ul(e),r=n<0,o=t?e.length:0,a=Xi(0,o,this.__views__),i=a.start,s=a.end,u=s-i,c=r?s:i-1,l=this.__iteratees__,f=l.length,d=0,p=Kn(u,this.__takeCount__);if(!t||!r&&o==u&&p==u)return Ia(e,this.__actions__);var h=[];e:while(u--&&d<p){c+=n;var g=-1,y=e[c];while(++g<f){var v=l[g],m=v.iteratee,b=v.type,w=m(y);if(b==z)y=w;else if(!w){if(b==j)continue e;break e}}h[d++]=y}return h}function Lr(e){var n=-1,t=null==e?0:e.length;this.clear();while(++n<t){var r=e[n];this.set(r[0],r[1])}}function Or(){this.__data__=it?it(null):{},this.size=0}function jr(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function zr(e){var n=this.__data__;if(it){var t=n[e];return t===f?a:t}return dn.call(n,e)?n[e]:a}function Dr(e){var n=this.__data__;return it?n[e]!==a:dn.call(n,e)}function Er(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=it&&n===a?f:n,this}function Gr(e){var n=-1,t=null==e?0:e.length;this.clear();while(++n<t){var r=e[n];this.set(r[0],r[1])}}function Tr(){this.__data__=[],this.size=0}function Ir(e){var n=this.__data__,t=lo(n,e);if(t<0)return!1;var r=n.length-1;return t==r?n.pop():Cn.call(n,t,1),--this.size,!0}function Nr(e){var n=this.__data__,t=lo(n,e);return t<0?a:n[t][1]}function Ur(e){return lo(this.__data__,e)>-1}function Kr(e,n){var t=this.__data__,r=lo(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this}function Fr(e){var n=-1,t=null==e?0:e.length;this.clear();while(++n<t){var r=e[n];this.set(r[0],r[1])}}function Vr(){this.size=0,this.__data__={hash:new Lr,map:new(et||Gr),string:new Lr}}function Wr(e){var n=Wi(this,e)["delete"](e);return this.size-=n?1:0,n}function Hr(e){return Wi(this,e).get(e)}function Yr(e){return Wi(this,e).has(e)}function $r(e,n){var t=Wi(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this}function qr(e){var n=-1,t=null==e?0:e.length;this.__data__=new Fr;while(++n<t)this.add(e[n])}function Zr(e){return this.__data__.set(e,f),this}function Jr(e){return this.__data__.has(e)}function Xr(e){var n=this.__data__=new Gr(e);this.size=n.size}function Qr(){this.__data__=new Gr,this.size=0}function eo(e){var n=this.__data__,t=n["delete"](e);return this.size=n.size,t}function no(e){return this.__data__.get(e)}function to(e){return this.__data__.has(e)}function ro(e,n){var t=this.__data__;if(t instanceof Gr){var r=t.__data__;if(!et||r.length<s-1)return r.push([e,n]),this.size=++t.size,this;t=this.__data__=new Fr(r)}return t.set(e,n),this.size=t.size,this}function oo(e,n){var t=ul(e),r=!t&&sl(e),o=!t&&!r&&pl(e),a=!t&&!r&&!o&&Nl(e),i=t||r||o||a,s=i?Yt(e.length,on):[],u=s.length;for(var c in e)!n&&!dn.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||is(c,u))||s.push(c);return s}function ao(e){var n=e.length;return n?e[ma(0,n-1)]:a}function io(e,n){return As(oi(e),vo(n,0,e.length))}function so(e){return As(oi(e))}function uo(e,n,t){(t!==a&&!ol(e[n],t)||t===a&&!(n in e))&&go(e,n,t)}function co(e,n,t){var r=e[n];dn.call(e,n)&&ol(r,t)&&(t!==a||n in e)||go(e,n,t)}function lo(e,n){var t=e.length;while(t--)if(ol(e[t][0],n))return t;return-1}function fo(e,n,t,r){return ko(e,(function(e,o,a){n(r,e,t(e),a)})),r}function po(e,n){return e&&ai(n,kf(n),e)}function ho(e,n){return e&&ai(n,Pf(n),e)}function go(e,n,t){"__proto__"==n&&Rn?Rn(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function yo(e,n){var r=-1,o=n.length,i=t(o),s=null==e;while(++r<o)i[r]=s?a:vf(e,n[r]);return i}function vo(e,n,t){return e===e&&(t!==a&&(e=e<=t?e:t),n!==a&&(e=e>=n?e:n)),e}function mo(e,n,t,r,o,i){var s,u=n&h,c=n&g,l=n&y;if(t&&(s=o?t(e,r,o,i):t(e)),s!==a)return s;if(!Pl(e))return e;var f=ul(e);if(f){if(s=ns(e),!u)return oi(e,s)}else{var d=Ji(e),p=d==J||d==X;if(pl(e))return $a(e,u);if(d==te||d==V||p&&!o){if(s=c||p?{}:ts(e),!u)return c?si(e,ho(s,e)):ii(e,po(s,e))}else{if(!Qn[d])return o?e:{};s=rs(e,d,u)}}i||(i=new Xr);var v=i.get(e);if(v)return v;i.set(e,s),Gl(e)?e.forEach((function(r){s.add(mo(r,n,t,r,e,i))})):Cl(e)&&e.forEach((function(r,o){s.set(o,mo(r,n,t,o,e,i))}));var m=l?c?Ni:Ii:c?Pf:kf,b=f?a:m(e);return _t(b||e,(function(r,o){b&&(o=r,r=e[o]),co(s,o,mo(r,n,t,o,e,i))})),s}function bo(e){var n=kf(e);return function(t){return wo(t,e,n)}}function wo(e,n,t){var r=t.length;if(null==e)return!r;e=tn(e);while(r--){var o=t[r],i=n[o],s=e[o];if(s===a&&!(o in e)||!i(s))return!1}return!0}function xo(e,n,t){if("function"!=typeof e)throw new an(c);return Ss((function(){e.apply(a,t)}),n)}function _o(e,n,t,r){var o=-1,a=Ct,i=!0,u=e.length,c=[],l=n.length;if(!u)return c;t&&(n=Bt(n,Zt(t))),r?(a=Mt,i=!1):n.length>=s&&(a=Xt,i=!1,n=new qr(n));e:while(++o<u){var f=e[o],d=null==t?f:t(f);if(f=r||0!==f?f:0,i&&d===d){var p=l;while(p--)if(n[p]===d)continue e;c.push(f)}else a(n,d,r)||c.push(f)}return c}xr.templateSettings={escape:Re,evaluate:Le,interpolate:Oe,variable:"",imports:{_:xr}},xr.prototype=Sr.prototype,xr.prototype.constructor=xr,Cr.prototype=kr(Sr.prototype),Cr.prototype.constructor=Cr,Mr.prototype=kr(Sr.prototype),Mr.prototype.constructor=Mr,Lr.prototype.clear=Or,Lr.prototype["delete"]=jr,Lr.prototype.get=zr,Lr.prototype.has=Dr,Lr.prototype.set=Er,Gr.prototype.clear=Tr,Gr.prototype["delete"]=Ir,Gr.prototype.get=Nr,Gr.prototype.has=Ur,Gr.prototype.set=Kr,Fr.prototype.clear=Vr,Fr.prototype["delete"]=Wr,Fr.prototype.get=Hr,Fr.prototype.has=Yr,Fr.prototype.set=$r,qr.prototype.add=qr.prototype.push=Zr,qr.prototype.has=Jr,Xr.prototype.clear=Qr,Xr.prototype["delete"]=eo,Xr.prototype.get=no,Xr.prototype.has=to,Xr.prototype.set=ro;var ko=li(Oo),Po=li(jo,!0);function So(e,n){var t=!0;return ko(e,(function(e,r,o){return t=!!n(e,r,o),t})),t}function Co(e,n,t){var r=-1,o=e.length;while(++r<o){var i=e[r],s=n(i);if(null!=s&&(u===a?s===s&&!Il(s):t(s,u)))var u=s,c=i}return c}function Mo(e,n,t,r){var o=e.length;t=$l(t),t<0&&(t=-t>o?0:o+t),r=r===a||r>o?o:$l(r),r<0&&(r+=o),r=t>r?0:ql(r);while(t<r)e[t++]=n;return e}function Bo(e,n){var t=[];return ko(e,(function(e,r,o){n(e,r,o)&&t.push(e)})),t}function Ao(e,n,t,r,o){var a=-1,i=e.length;t||(t=as),o||(o=[]);while(++a<i){var s=e[a];n>0&&t(s)?n>1?Ao(s,n-1,t,r,o):At(o,s):r||(o[o.length]=s)}return o}var Ro=fi(),Lo=fi(!0);function Oo(e,n){return e&&Ro(e,n,kf)}function jo(e,n){return e&&Lo(e,n,kf)}function zo(e,n){return St(n,(function(n){return xl(e[n])}))}function Do(e,n){n=Va(n,e);var t=0,r=n.length;while(null!=e&&t<r)e=e[Ls(n[t++])];return t&&t==r?e:a}function Eo(e,n,t){var r=n(e);return ul(e)?r:At(r,t(e))}function Go(e){return null==e?e===a?ce:ne:An&&An in tn(e)?$i(e):bs(e)}function To(e,n){return e>n}function Io(e,n){return null!=e&&dn.call(e,n)}function No(e,n){return null!=e&&n in tn(e)}function Uo(e,n,t){return e>=Kn(n,t)&&e<Un(n,t)}function Ko(e,n,r){var o=r?Mt:Ct,i=e[0].length,s=e.length,u=s,c=t(s),l=1/0,f=[];while(u--){var d=e[u];u&&n&&(d=Bt(d,Zt(n))),l=Kn(d.length,l),c[u]=!r&&(n||i>=120&&d.length>=120)?new qr(u&&d):a}d=e[0];var p=-1,h=c[0];e:while(++p<i&&f.length<l){var g=d[p],y=n?n(g):g;if(g=r||0!==g?g:0,!(h?Xt(h,y):o(f,y,r))){u=s;while(--u){var v=c[u];if(!(v?Xt(v,y):o(e[u],y,r)))continue e}h&&h.push(y),f.push(g)}}return f}function Fo(e,n,t,r){return Oo(e,(function(e,o,a){n(r,t(e),o,a)})),r}function Vo(e,n,t){n=Va(n,e),e=xs(e,n);var r=null==e?e:e[Ls(au(n))];return null==r?a:wt(r,e,t)}function Wo(e){return Sl(e)&&Go(e)==V}function Ho(e){return Sl(e)&&Go(e)==de}function Yo(e){return Sl(e)&&Go(e)==$}function $o(e,n,t,r,o){return e===n||(null==e||null==n||!Sl(e)&&!Sl(n)?e!==e&&n!==n:qo(e,n,t,r,$o,o))}function qo(e,n,t,r,o,a){var i=ul(e),s=ul(n),u=i?W:Ji(e),c=s?W:Ji(n);u=u==V?te:u,c=c==V?te:c;var l=u==te,f=c==te,d=u==c;if(d&&pl(e)){if(!pl(n))return!1;i=!0,l=!1}if(d&&!l)return a||(a=new Xr),i||Nl(e)?Di(e,n,t,r,o,a):Ei(e,n,u,t,r,o,a);if(!(t&v)){var p=l&&dn.call(e,"__wrapped__"),h=f&&dn.call(n,"__wrapped__");if(p||h){var g=p?e.value():e,y=h?n.value():n;return a||(a=new Xr),o(g,y,t,r,a)}}return!!d&&(a||(a=new Xr),Gi(e,n,t,r,o,a))}function Zo(e){return Sl(e)&&Ji(e)==Q}function Jo(e,n,t,r){var o=t.length,i=o,s=!r;if(null==e)return!i;e=tn(e);while(o--){var u=t[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}while(++o<i){u=t[o];var c=u[0],l=e[c],f=u[1];if(s&&u[2]){if(l===a&&!(c in e))return!1}else{var d=new Xr;if(r)var p=r(l,f,c,e,n,d);if(!(p===a?$o(f,l,v|m,r,d):p))return!1}}return!0}function Xo(e){if(!Pl(e)||fs(e))return!1;var n=xl(e)?mn:Ze;return n.test(Os(e))}function Qo(e){return Sl(e)&&Go(e)==ae}function ea(e){return Sl(e)&&Ji(e)==ie}function na(e){return Sl(e)&&kl(e.length)&&!!Xn[Go(e)]}function ta(e){return"function"==typeof e?e:null==e?Ld:"object"==typeof e?ul(e)?ua(e[0],e[1]):sa(e):Vd(e)}function ra(e){if(!ps(e))return Nn(e);var n=[];for(var t in tn(e))dn.call(e,t)&&"constructor"!=t&&n.push(t);return n}function oa(e){if(!Pl(e))return ms(e);var n=ps(e),t=[];for(var r in e)("constructor"!=r||!n&&dn.call(e,r))&&t.push(r);return t}function aa(e,n){return e<n}function ia(e,n){var r=-1,o=ll(e)?t(e.length):[];return ko(e,(function(e,t,a){o[++r]=n(e,t,a)})),o}function sa(e){var n=Hi(e);return 1==n.length&&n[0][2]?gs(n[0][0],n[0][1]):function(t){return t===e||Jo(t,e,n)}}function ua(e,n){return us(e)&&hs(n)?gs(Ls(e),n):function(t){var r=vf(t,e);return r===a&&r===n?bf(t,e):$o(n,r,v|m)}}function ca(e,n,t,r,o){e!==n&&Ro(n,(function(i,s){if(o||(o=new Xr),Pl(i))la(e,n,s,t,ca,r,o);else{var u=r?r(ks(e,s),i,s+"",e,n,o):a;u===a&&(u=i),uo(e,s,u)}}),Pf)}function la(e,n,t,r,o,i,s){var u=ks(e,t),c=ks(n,t),l=s.get(c);if(l)uo(e,t,l);else{var f=i?i(u,c,t+"",e,n,s):a,d=f===a;if(d){var p=ul(c),h=!p&&pl(c),g=!p&&!h&&Nl(c);f=c,p||h||g?ul(u)?f=u:fl(u)?f=oi(u):h?(d=!1,f=$a(c,!0)):g?(d=!1,f=Qa(c,!0)):f=[]:zl(c)||sl(c)?(f=u,sl(u)?f=Jl(u):Pl(u)&&!xl(u)||(f=ts(c))):d=!1}d&&(s.set(c,f),o(f,c,r,i,s),s["delete"](c)),uo(e,t,f)}}function fa(e,n){var t=e.length;if(t)return n+=n<0?t:0,is(n,t)?e[n]:a}function da(e,n,t){n=n.length?Bt(n,(function(e){return ul(e)?function(n){return Do(n,1===e.length?e[0]:e)}:e})):[Ld];var r=-1;n=Bt(n,Zt(Vi()));var o=ia(e,(function(e,t,o){var a=Bt(n,(function(n){return n(e)}));return{criteria:a,index:++r,value:e}}));return Wt(o,(function(e,n){return ni(e,n,t)}))}function pa(e,n){return ha(e,n,(function(n,t){return bf(e,t)}))}function ha(e,n,t){var r=-1,o=n.length,a={};while(++r<o){var i=n[r],s=Do(e,i);t(s,i)&&Pa(a,Va(i,e),s)}return a}function ga(e){return function(n){return Do(n,e)}}function ya(e,n,t,r){var o=r?It:Tt,a=-1,i=n.length,s=e;e===n&&(n=oi(n)),t&&(s=Bt(e,Zt(t)));while(++a<i){var u=0,c=n[a],l=t?t(c):c;while((u=o(s,l,u,r))>-1)s!==e&&Cn.call(s,u,1),Cn.call(e,u,1)}return e}function va(e,n){var t=e?n.length:0,r=t-1;while(t--){var o=n[t];if(t==r||o!==a){var a=o;is(o)?Cn.call(e,o,1):Ea(e,o)}}return e}function ma(e,n){return e+Dn(Yn()*(n-e+1))}function ba(e,n,r,o){var a=-1,i=Un(zn((n-e)/(r||1)),0),s=t(i);while(i--)s[o?i:++a]=e,e+=r;return s}function wa(e,n){var t="";if(!e||n<1||n>G)return t;do{n%2&&(t+=e),n=Dn(n/2),n&&(e+=e)}while(n);return t}function xa(e,n){return Cs(ws(e,n,Ld),e+"")}function _a(e){return ao(Kf(e))}function ka(e,n){var t=Kf(e);return As(t,vo(n,0,t.length))}function Pa(e,n,t,r){if(!Pl(e))return e;n=Va(n,e);var o=-1,i=n.length,s=i-1,u=e;while(null!=u&&++o<i){var c=Ls(n[o]),l=t;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var f=u[c];l=r?r(f,c,u):a,l===a&&(l=Pl(f)?f:is(n[o+1])?[]:{})}co(u,c,l),u=u[c]}return e}var Sa=st?function(e,n){return st.set(e,n),e}:Ld,Ca=Rn?function(e,n){return Rn(e,"toString",{configurable:!0,enumerable:!1,value:Md(n),writable:!0})}:Ld;function Ma(e){return As(Kf(e))}function Ba(e,n,r){var o=-1,a=e.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;var i=t(a);while(++o<a)i[o]=e[o+n];return i}function Aa(e,n){var t;return ko(e,(function(e,r,o){return t=n(e,r,o),!t})),!!t}function Ra(e,n,t){var r=0,o=null==e?r:e.length;if("number"==typeof n&&n===n&&o<=K){while(r<o){var a=r+o>>>1,i=e[a];null!==i&&!Il(i)&&(t?i<=n:i<n)?r=a+1:o=a}return o}return La(e,n,Ld,t)}function La(e,n,t,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;n=t(n);var s=n!==n,u=null===n,c=Il(n),l=n===a;while(o<i){var f=Dn((o+i)/2),d=t(e[f]),p=d!==a,h=null===d,g=d===d,y=Il(d);if(s)var v=r||g;else v=l?g&&(r||p):u?g&&p&&(r||!h):c?g&&p&&!h&&(r||!y):!h&&!y&&(r?d<=n:d<n);v?o=f+1:i=f}return Kn(i,U)}function Oa(e,n){var t=-1,r=e.length,o=0,a=[];while(++t<r){var i=e[t],s=n?n(i):i;if(!t||!ol(s,u)){var u=s;a[o++]=0===i?0:i}}return a}function ja(e){return"number"==typeof e?e:Il(e)?I:+e}function za(e){if("string"==typeof e)return e;if(ul(e))return Bt(e,za)+"";if(Il(e))return wr?wr.call(e):"";var n=e+"";return"0"==n&&1/e==-E?"-0":n}function Da(e,n,t){var r=-1,o=Ct,a=e.length,i=!0,u=[],c=u;if(t)i=!1,o=Mt;else if(a>=s){var l=n?null:Ai(e);if(l)return dr(l);i=!1,o=Xt,c=new qr}else c=n?[]:u;e:while(++r<a){var f=e[r],d=n?n(f):f;if(f=t||0!==f?f:0,i&&d===d){var p=c.length;while(p--)if(c[p]===d)continue e;n&&c.push(d),u.push(f)}else o(c,d,t)||(c!==u&&c.push(d),u.push(f))}return u}function Ea(e,n){return n=Va(n,e),e=xs(e,n),null==e||delete e[Ls(au(n))]}function Ga(e,n,t,r){return Pa(e,n,t(Do(e,n)),r)}function Ta(e,n,t,r){var o=e.length,a=r?o:-1;while((r?a--:++a<o)&&n(e[a],a,e));return t?Ba(e,r?0:a,r?a+1:o):Ba(e,r?a+1:0,r?o:a)}function Ia(e,n){var t=e;return t instanceof Mr&&(t=t.value()),Rt(n,(function(e,n){return n.func.apply(n.thisArg,At([e],n.args))}),t)}function Na(e,n,r){var o=e.length;if(o<2)return o?Da(e[0]):[];var a=-1,i=t(o);while(++a<o){var s=e[a],u=-1;while(++u<o)u!=a&&(i[a]=_o(i[a]||s,e[u],n,r))}return Da(Ao(i,1),n,r)}function Ua(e,n,t){var r=-1,o=e.length,i=n.length,s={};while(++r<o){var u=r<i?n[r]:a;t(s,e[r],u)}return s}function Ka(e){return fl(e)?e:[]}function Fa(e){return"function"==typeof e?e:Ld}function Va(e,n){return ul(e)?e:us(e,n)?[e]:Rs(Ql(e))}var Wa=xa;function Ha(e,n,t){var r=e.length;return t=t===a?r:t,!n&&t>=r?e:Ba(e,n,t)}var Ya=Ln||function(e){return ut.clearTimeout(e)};function $a(e,n){if(n)return e.slice();var t=e.length,r=_n?_n(t):new e.constructor(t);return e.copy(r),r}function qa(e){var n=new e.constructor(e.byteLength);return new xn(n).set(new xn(e)),n}function Za(e,n){var t=n?qa(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}function Ja(e){var n=new e.constructor(e.source,Ye.exec(e));return n.lastIndex=e.lastIndex,n}function Xa(e){return hr?tn(hr.call(e)):{}}function Qa(e,n){var t=n?qa(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function ei(e,n){if(e!==n){var t=e!==a,r=null===e,o=e===e,i=Il(e),s=n!==a,u=null===n,c=n===n,l=Il(n);if(!u&&!l&&!i&&e>n||i&&s&&c&&!u&&!l||r&&s&&c||!t&&c||!o)return 1;if(!r&&!i&&!l&&e<n||l&&t&&o&&!r&&!i||u&&t&&o||!s&&o||!c)return-1}return 0}function ni(e,n,t){var r=-1,o=e.criteria,a=n.criteria,i=o.length,s=t.length;while(++r<i){var u=ei(o[r],a[r]);if(u){if(r>=s)return u;var c=t[r];return u*("desc"==c?-1:1)}}return e.index-n.index}function ti(e,n,r,o){var a=-1,i=e.length,s=r.length,u=-1,c=n.length,l=Un(i-s,0),f=t(c+l),d=!o;while(++u<c)f[u]=n[u];while(++a<s)(d||a<i)&&(f[r[a]]=e[a]);while(l--)f[u++]=e[a++];return f}function ri(e,n,r,o){var a=-1,i=e.length,s=-1,u=r.length,c=-1,l=n.length,f=Un(i-u,0),d=t(f+l),p=!o;while(++a<f)d[a]=e[a];var h=a;while(++c<l)d[h+c]=n[c];while(++s<u)(p||a<i)&&(d[h+r[s]]=e[a++]);return d}function oi(e,n){var r=-1,o=e.length;n||(n=t(o));while(++r<o)n[r]=e[r];return n}function ai(e,n,t,r){var o=!t;t||(t={});var i=-1,s=n.length;while(++i<s){var u=n[i],c=r?r(t[u],e[u],u,t,e):a;c===a&&(c=e[u]),o?go(t,u,c):co(t,u,c)}return t}function ii(e,n){return ai(e,qi(e),n)}function si(e,n){return ai(e,Zi(e),n)}function ui(e,n){return function(t,r){var o=ul(t)?xt:fo,a=n?n():{};return o(t,e,Vi(r,2),a)}}function ci(e){return xa((function(n,t){var r=-1,o=t.length,i=o>1?t[o-1]:a,s=o>2?t[2]:a;i=e.length>3&&"function"==typeof i?(o--,i):a,s&&ss(t[0],t[1],s)&&(i=o<3?a:i,o=1),n=tn(n);while(++r<o){var u=t[r];u&&e(n,u,r,i)}return n}))}function li(e,n){return function(t,r){if(null==t)return t;if(!ll(t))return e(t,r);var o=t.length,a=n?o:-1,i=tn(t);while(n?a--:++a<o)if(!1===r(i[a],a,i))break;return t}}function fi(e){return function(n,t,r){var o=-1,a=tn(n),i=r(n),s=i.length;while(s--){var u=i[e?s:++o];if(!1===t(a[u],u,a))break}return n}}function di(e,n,t){var r=n&b,o=gi(e);function a(){var n=this&&this!==ut&&this instanceof a?o:e;return n.apply(r?t:this,arguments)}return a}function pi(e){return function(n){n=Ql(n);var t=ir(n)?vr(n):a,r=t?t[0]:n.charAt(0),o=t?Ha(t,1).join(""):n.slice(1);return r[e]()+o}}function hi(e){return function(n){return Rt(_d(qf(n).replace(Vn,"")),e,"")}}function gi(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var t=kr(e.prototype),r=e.apply(t,n);return Pl(r)?r:t}}function yi(e,n,r){var o=gi(e);function i(){var s=arguments.length,u=t(s),c=s,l=Fi(i);while(c--)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:fr(u,l);if(s-=f.length,s<r)return Mi(e,n,bi,i.placeholder,a,u,f,a,a,r-s);var d=this&&this!==ut&&this instanceof i?o:e;return wt(d,this,u)}return i}function vi(e){return function(n,t,r){var o=tn(n);if(!ll(n)){var i=Vi(t,3);n=kf(n),t=function(e){return i(o[e],e,o)}}var s=e(n,t,r);return s>-1?o[i?n[s]:s]:a}}function mi(e){return Ti((function(n){var t=n.length,r=t,o=Cr.prototype.thru;e&&n.reverse();while(r--){var i=n[r];if("function"!=typeof i)throw new an(c);if(o&&!s&&"wrapper"==Ki(i))var s=new Cr([],!0)}r=s?r:t;while(++r<t){i=n[r];var u=Ki(i),l="wrapper"==u?Ui(i):a;s=l&&ls(l[0])&&l[1]==(C|_|P|M)&&!l[4].length&&1==l[9]?s[Ki(l[0])].apply(s,l[3]):1==i.length&&ls(i)?s[u]():s.thru(i)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&ul(r))return s.plant(r).value();var o=0,a=t?n[o].apply(this,e):r;while(++o<t)a=n[o].call(this,a);return a}}))}function bi(e,n,r,o,i,s,u,c,l,f){var d=n&C,p=n&b,h=n&w,g=n&(_|k),y=n&B,v=h?a:gi(e);function m(){var a=arguments.length,b=t(a),w=a;while(w--)b[w]=arguments[w];if(g)var x=Fi(m),_=nr(b,x);if(o&&(b=ti(b,o,i,g)),s&&(b=ri(b,s,u,g)),a-=_,g&&a<f){var k=fr(b,x);return Mi(e,n,bi,m.placeholder,r,b,k,c,l,f-a)}var P=p?r:this,S=h?P[e]:e;return a=b.length,c?b=_s(b,c):y&&a>1&&b.reverse(),d&&l<a&&(b.length=l),this&&this!==ut&&this instanceof m&&(S=v||gi(S)),S.apply(P,b)}return m}function wi(e,n){return function(t,r){return Fo(t,e,n(r),{})}}function xi(e,n){return function(t,r){var o;if(t===a&&r===a)return n;if(t!==a&&(o=t),r!==a){if(o===a)return r;"string"==typeof t||"string"==typeof r?(t=za(t),r=za(r)):(t=ja(t),r=ja(r)),o=e(t,r)}return o}}function _i(e){return Ti((function(n){return n=Bt(n,Zt(Vi())),xa((function(t){var r=this;return e(n,(function(e){return wt(e,r,t)}))}))}))}function ki(e,n){n=n===a?" ":za(n);var t=n.length;if(t<2)return t?wa(n,e):n;var r=wa(n,zn(e/yr(n)));return ir(n)?Ha(vr(r),0,e).join(""):r.slice(0,e)}function Pi(e,n,r,o){var a=n&b,i=gi(e);function s(){var n=-1,u=arguments.length,c=-1,l=o.length,f=t(l+u),d=this&&this!==ut&&this instanceof s?i:e;while(++c<l)f[c]=o[c];while(u--)f[c++]=arguments[++n];return wt(d,a?r:this,f)}return s}function Si(e){return function(n,t,r){return r&&"number"!=typeof r&&ss(n,t,r)&&(t=r=a),n=Yl(n),t===a?(t=n,n=0):t=Yl(t),r=r===a?n<t?1:-1:Yl(r),ba(n,t,r,e)}}function Ci(e){return function(n,t){return"string"==typeof n&&"string"==typeof t||(n=Zl(n),t=Zl(t)),e(n,t)}}function Mi(e,n,t,r,o,i,s,u,c,l){var f=n&_,d=f?s:a,p=f?a:s,h=f?i:a,g=f?a:i;n|=f?P:S,n&=~(f?S:P),n&x||(n&=~(b|w));var y=[e,n,o,h,d,g,p,u,c,l],v=t.apply(a,y);return ls(e)&&Ps(v,y),v.placeholder=r,Ms(v,e,n)}function Bi(e){var n=Fe[e];return function(e,t){if(e=Zl(e),t=null==t?0:Kn($l(t),292),t&&Tn(e)){var r=(Ql(e)+"e").split("e"),o=n(r[0]+"e"+(+r[1]+t));return r=(Ql(o)+"e").split("e"),+(r[0]+"e"+(+r[1]-t))}return n(e)}}var Ai=tt&&1/dr(new tt([,-0]))[1]==E?function(e){return new tt(e)}:Id;function Ri(e){return function(n){var t=Ji(n);return t==Q?cr(n):t==ie?pr(n):$t(n,e(n))}}function Li(e,n,t,r,o,i,s,u){var l=n&w;if(!l&&"function"!=typeof e)throw new an(c);var f=r?r.length:0;if(f||(n&=~(P|S),r=o=a),s=s===a?s:Un($l(s),0),u=u===a?u:$l(u),f-=o?o.length:0,n&S){var d=r,p=o;r=o=a}var h=l?a:Ui(e),g=[e,n,t,r,o,d,p,i,s,u];if(h&&vs(g,h),e=g[0],n=g[1],t=g[2],r=g[3],o=g[4],u=g[9]=g[9]===a?l?0:e.length:Un(g[9]-f,0),!u&&n&(_|k)&&(n&=~(_|k)),n&&n!=b)y=n==_||n==k?yi(e,n,u):n!=P&&n!=(b|P)||o.length?bi.apply(a,g):Pi(e,n,t,r);else var y=di(e,n,t);var v=h?Sa:Ps;return Ms(v(y,g),e,n)}function Oi(e,n,t,r){return e===a||ol(e,cn[t])&&!dn.call(r,t)?n:e}function ji(e,n,t,r,o,i){return Pl(e)&&Pl(n)&&(i.set(n,e),ca(e,n,a,ji,i),i["delete"](n)),e}function zi(e){return zl(e)?a:e}function Di(e,n,t,r,o,i){var s=t&v,u=e.length,c=n.length;if(u!=c&&!(s&&c>u))return!1;var l=i.get(e),f=i.get(n);if(l&&f)return l==n&&f==e;var d=-1,p=!0,h=t&m?new qr:a;i.set(e,n),i.set(n,e);while(++d<u){var g=e[d],y=n[d];if(r)var b=s?r(y,g,d,n,e,i):r(g,y,d,e,n,i);if(b!==a){if(b)continue;p=!1;break}if(h){if(!Ot(n,(function(e,n){if(!Xt(h,n)&&(g===e||o(g,e,t,r,i)))return h.push(n)}))){p=!1;break}}else if(g!==y&&!o(g,y,t,r,i)){p=!1;break}}return i["delete"](e),i["delete"](n),p}function Ei(e,n,t,r,o,a,i){switch(t){case pe:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case de:return!(e.byteLength!=n.byteLength||!a(new xn(e),new xn(n)));case Y:case $:case ee:return ol(+e,+n);case Z:return e.name==n.name&&e.message==n.message;case ae:case se:return e==n+"";case Q:var s=cr;case ie:var u=r&v;if(s||(s=dr),e.size!=n.size&&!u)return!1;var c=i.get(e);if(c)return c==n;r|=m,i.set(e,n);var l=Di(s(e),s(n),r,o,a,i);return i["delete"](e),l;case ue:if(hr)return hr.call(e)==hr.call(n)}return!1}function Gi(e,n,t,r,o,i){var s=t&v,u=Ii(e),c=u.length,l=Ii(n),f=l.length;if(c!=f&&!s)return!1;var d=c;while(d--){var p=u[d];if(!(s?p in n:dn.call(n,p)))return!1}var h=i.get(e),g=i.get(n);if(h&&g)return h==n&&g==e;var y=!0;i.set(e,n),i.set(n,e);var m=s;while(++d<c){p=u[d];var b=e[p],w=n[p];if(r)var x=s?r(w,b,p,n,e,i):r(b,w,p,e,n,i);if(!(x===a?b===w||o(b,w,t,r,i):x)){y=!1;break}m||(m="constructor"==p)}if(y&&!m){var _=e.constructor,k=n.constructor;_==k||!("constructor"in e)||!("constructor"in n)||"function"==typeof _&&_ instanceof _&&"function"==typeof k&&k instanceof k||(y=!1)}return i["delete"](e),i["delete"](n),y}function Ti(e){return Cs(ws(e,a,$s),e+"")}function Ii(e){return Eo(e,kf,qi)}function Ni(e){return Eo(e,Pf,Zi)}var Ui=st?function(e){return st.get(e)}:Id;function Ki(e){var n=e.name+"",t=ct[n],r=dn.call(ct,n)?t.length:0;while(r--){var o=t[r],a=o.func;if(null==a||a==e)return o.name}return n}function Fi(e){var n=dn.call(xr,"placeholder")?xr:e;return n.placeholder}function Vi(){var e=xr.iteratee||Od;return e=e===Od?ta:e,arguments.length?e(arguments[0],arguments[1]):e}function Wi(e,n){var t=e.__data__;return cs(n)?t["string"==typeof n?"string":"hash"]:t.map}function Hi(e){var n=kf(e),t=n.length;while(t--){var r=n[t],o=e[r];n[t]=[r,o,hs(o)]}return n}function Yi(e,n){var t=ar(e,n);return Xo(t)?t:a}function $i(e){var n=dn.call(e,An),t=e[An];try{e[An]=a;var r=!0}catch(i){}var o=gn.call(e);return r&&(n?e[An]=t:delete e[An]),o}var qi=En?function(e){return null==e?[]:(e=tn(e),St(En(e),(function(n){return Sn.call(e,n)})))}:$d,Zi=En?function(e){var n=[];while(e)At(n,qi(e)),e=kn(e);return n}:$d,Ji=Go;function Xi(e,n,t){var r=-1,o=t.length;while(++r<o){var a=t[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":n-=i;break;case"take":n=Kn(n,e+i);break;case"takeRight":e=Un(e,n-i);break}}return{start:e,end:n}}function Qi(e){var n=e.match(Ue);return n?n[1].split(Ke):[]}function es(e,n,t){n=Va(n,e);var r=-1,o=n.length,a=!1;while(++r<o){var i=Ls(n[r]);if(!(a=null!=e&&t(e,i)))break;e=e[i]}return a||++r!=o?a:(o=null==e?0:e.length,!!o&&kl(o)&&is(i,o)&&(ul(e)||sl(e)))}function ns(e){var n=e.length,t=new e.constructor(n);return n&&"string"==typeof e[0]&&dn.call(e,"index")&&(t.index=e.index,t.input=e.input),t}function ts(e){return"function"!=typeof e.constructor||ps(e)?{}:kr(kn(e))}function rs(e,n,t){var r=e.constructor;switch(n){case de:return qa(e);case Y:case $:return new r(+e);case pe:return Za(e,t);case he:case ge:case ye:case ve:case me:case be:case we:case xe:case _e:return Qa(e,t);case Q:return new r;case ee:case se:return new r(e);case ae:return Ja(e);case ie:return new r;case ue:return Xa(e)}}function os(e,n){var t=n.length;if(!t)return e;var r=t-1;return n[r]=(t>1?"& ":"")+n[r],n=n.join(t>2?", ":" "),e.replace(Ne,"{\n/* [wrapped with "+n+"] */\n")}function as(e){return ul(e)||sl(e)||!!(Mn&&e&&e[Mn])}function is(e,n){var t=typeof e;return n=null==n?G:n,!!n&&("number"==t||"symbol"!=t&&Xe.test(e))&&e>-1&&e%1==0&&e<n}function ss(e,n,t){if(!Pl(t))return!1;var r=typeof n;return!!("number"==r?ll(t)&&is(n,t.length):"string"==r&&n in t)&&ol(t[n],e)}function us(e,n){if(ul(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!Il(e))||(ze.test(e)||!je.test(e)||null!=n&&e in tn(n))}function cs(e){var n=typeof e;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e}function ls(e){var n=Ki(e),t=xr[n];if("function"!=typeof t||!(n in Mr.prototype))return!1;if(e===t)return!0;var r=Ui(t);return!!r&&e===r[0]}function fs(e){return!!hn&&hn in e}(qn&&Ji(new qn(new ArrayBuffer(1)))!=pe||et&&Ji(new et)!=Q||nt&&Ji(nt.resolve())!=re||tt&&Ji(new tt)!=ie||rt&&Ji(new rt)!=le)&&(Ji=function(e){var n=Go(e),t=n==te?e.constructor:a,r=t?Os(t):"";if(r)switch(r){case lt:return pe;case dt:return Q;case pt:return re;case jt:return ie;case zt:return le}return n});var ds=ln?xl:qd;function ps(e){var n=e&&e.constructor,t="function"==typeof n&&n.prototype||cn;return e===t}function hs(e){return e===e&&!Pl(e)}function gs(e,n){return function(t){return null!=t&&(t[e]===n&&(n!==a||e in tn(t)))}}function ys(e){var n=Nc(e,(function(e){return t.size===d&&t.clear(),e})),t=n.cache;return n}function vs(e,n){var t=e[1],r=n[1],o=t|r,a=o<(b|w|C),i=r==C&&t==_||r==C&&t==M&&e[7].length<=n[8]||r==(C|M)&&n[7].length<=n[8]&&t==_;if(!a&&!i)return e;r&b&&(e[2]=n[2],o|=t&b?0:x);var s=n[3];if(s){var u=e[3];e[3]=u?ti(u,s,n[4]):s,e[4]=u?fr(e[3],p):n[4]}return s=n[5],s&&(u=e[5],e[5]=u?ri(u,s,n[6]):s,e[6]=u?fr(e[5],p):n[6]),s=n[7],s&&(e[7]=s),r&C&&(e[8]=null==e[8]?n[8]:Kn(e[8],n[8])),null==e[9]&&(e[9]=n[9]),e[0]=n[0],e[1]=o,e}function ms(e){var n=[];if(null!=e)for(var t in tn(e))n.push(t);return n}function bs(e){return gn.call(e)}function ws(e,n,r){return n=Un(n===a?e.length-1:n,0),function(){var o=arguments,a=-1,i=Un(o.length-n,0),s=t(i);while(++a<i)s[a]=o[n+a];a=-1;var u=t(n+1);while(++a<n)u[a]=o[a];return u[n]=r(s),wt(e,this,u)}}function xs(e,n){return n.length<2?e:Do(e,Ba(n,0,-1))}function _s(e,n){var t=e.length,r=Kn(n.length,t),o=oi(e);while(r--){var i=n[r];e[r]=is(i,t)?o[i]:a}return e}function ks(e,n){if(("constructor"!==n||"function"!==typeof e[n])&&"__proto__"!=n)return e[n]}var Ps=Bs(Sa),Ss=jn||function(e,n){return ut.setTimeout(e,n)},Cs=Bs(Ca);function Ms(e,n,t){var r=n+"";return Cs(e,os(r,js(Qi(r),t)))}function Bs(e){var n=0,t=0;return function(){var r=Fn(),o=O-(r-t);if(t=r,o>0){if(++n>=L)return arguments[0]}else n=0;return e.apply(a,arguments)}}function As(e,n){var t=-1,r=e.length,o=r-1;n=n===a?r:n;while(++t<n){var i=ma(t,o),s=e[i];e[i]=e[t],e[t]=s}return e.length=n,e}var Rs=ys((function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(De,(function(e,t,r,o){n.push(r?o.replace(We,"$1"):t||e)})),n}));function Ls(e){if("string"==typeof e||Il(e))return e;var n=e+"";return"0"==n&&1/e==-E?"-0":n}function Os(e){if(null!=e){try{return fn.call(e)}catch(n){}try{return e+""}catch(n){}}return""}function js(e,n){return _t(F,(function(t){var r="_."+t[0];n&t[1]&&!Ct(e,r)&&e.push(r)})),e.sort()}function zs(e){if(e instanceof Mr)return e.clone();var n=new Cr(e.__wrapped__,e.__chain__);return n.__actions__=oi(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function Ds(e,n,r){n=(r?ss(e,n,r):n===a)?1:Un($l(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];var i=0,s=0,u=t(zn(o/n));while(i<o)u[s++]=Ba(e,i,i+=n);return u}function Es(e){var n=-1,t=null==e?0:e.length,r=0,o=[];while(++n<t){var a=e[n];a&&(o[r++]=a)}return o}function Gs(){var e=arguments.length;if(!e)return[];var n=t(e-1),r=arguments[0],o=e;while(o--)n[o-1]=arguments[o];return At(ul(r)?oi(r):[r],Ao(n,1))}var Ts=xa((function(e,n){return fl(e)?_o(e,Ao(n,1,fl,!0)):[]})),Is=xa((function(e,n){var t=au(n);return fl(t)&&(t=a),fl(e)?_o(e,Ao(n,1,fl,!0),Vi(t,2)):[]})),Ns=xa((function(e,n){var t=au(n);return fl(t)&&(t=a),fl(e)?_o(e,Ao(n,1,fl,!0),a,t):[]}));function Us(e,n,t){var r=null==e?0:e.length;return r?(n=t||n===a?1:$l(n),Ba(e,n<0?0:n,r)):[]}function Ks(e,n,t){var r=null==e?0:e.length;return r?(n=t||n===a?1:$l(n),n=r-n,Ba(e,0,n<0?0:n)):[]}function Fs(e,n){return e&&e.length?Ta(e,Vi(n,3),!0,!0):[]}function Vs(e,n){return e&&e.length?Ta(e,Vi(n,3),!0):[]}function Ws(e,n,t,r){var o=null==e?0:e.length;return o?(t&&"number"!=typeof t&&ss(e,n,t)&&(t=0,r=o),Mo(e,n,t,r)):[]}function Hs(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=null==t?0:$l(t);return o<0&&(o=Un(r+o,0)),Gt(e,Vi(n,3),o)}function Ys(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return t!==a&&(o=$l(t),o=t<0?Un(r+o,0):Kn(o,r-1)),Gt(e,Vi(n,3),o,!0)}function $s(e){var n=null==e?0:e.length;return n?Ao(e,1):[]}function qs(e){var n=null==e?0:e.length;return n?Ao(e,E):[]}function Zs(e,n){var t=null==e?0:e.length;return t?(n=n===a?1:$l(n),Ao(e,n)):[]}function Js(e){var n=-1,t=null==e?0:e.length,r={};while(++n<t){var o=e[n];r[o[0]]=o[1]}return r}function Xs(e){return e&&e.length?e[0]:a}function Qs(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=null==t?0:$l(t);return o<0&&(o=Un(r+o,0)),Tt(e,n,o)}function eu(e){var n=null==e?0:e.length;return n?Ba(e,0,-1):[]}var nu=xa((function(e){var n=Bt(e,Ka);return n.length&&n[0]===e[0]?Ko(n):[]})),tu=xa((function(e){var n=au(e),t=Bt(e,Ka);return n===au(t)?n=a:t.pop(),t.length&&t[0]===e[0]?Ko(t,Vi(n,2)):[]})),ru=xa((function(e){var n=au(e),t=Bt(e,Ka);return n="function"==typeof n?n:a,n&&t.pop(),t.length&&t[0]===e[0]?Ko(t,a,n):[]}));function ou(e,n){return null==e?"":In.call(e,n)}function au(e){var n=null==e?0:e.length;return n?e[n-1]:a}function iu(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=r;return t!==a&&(o=$l(t),o=o<0?Un(r+o,0):Kn(o,r-1)),n===n?gr(e,n,o):Gt(e,Nt,o,!0)}function su(e,n){return e&&e.length?fa(e,$l(n)):a}var uu=xa(cu);function cu(e,n){return e&&e.length&&n&&n.length?ya(e,n):e}function lu(e,n,t){return e&&e.length&&n&&n.length?ya(e,n,Vi(t,2)):e}function fu(e,n,t){return e&&e.length&&n&&n.length?ya(e,n,a,t):e}var du=Ti((function(e,n){var t=null==e?0:e.length,r=yo(e,n);return va(e,Bt(n,(function(e){return is(e,t)?+e:e})).sort(ei)),r}));function pu(e,n){var t=[];if(!e||!e.length)return t;var r=-1,o=[],a=e.length;n=Vi(n,3);while(++r<a){var i=e[r];n(i,r,e)&&(t.push(i),o.push(r))}return va(e,o),t}function hu(e){return null==e?e:$n.call(e)}function gu(e,n,t){var r=null==e?0:e.length;return r?(t&&"number"!=typeof t&&ss(e,n,t)?(n=0,t=r):(n=null==n?0:$l(n),t=t===a?r:$l(t)),Ba(e,n,t)):[]}function yu(e,n){return Ra(e,n)}function vu(e,n,t){return La(e,n,Vi(t,2))}function mu(e,n){var t=null==e?0:e.length;if(t){var r=Ra(e,n);if(r<t&&ol(e[r],n))return r}return-1}function bu(e,n){return Ra(e,n,!0)}function wu(e,n,t){return La(e,n,Vi(t,2),!0)}function xu(e,n){var t=null==e?0:e.length;if(t){var r=Ra(e,n,!0)-1;if(ol(e[r],n))return r}return-1}function _u(e){return e&&e.length?Oa(e):[]}function ku(e,n){return e&&e.length?Oa(e,Vi(n,2)):[]}function Pu(e){var n=null==e?0:e.length;return n?Ba(e,1,n):[]}function Su(e,n,t){return e&&e.length?(n=t||n===a?1:$l(n),Ba(e,0,n<0?0:n)):[]}function Cu(e,n,t){var r=null==e?0:e.length;return r?(n=t||n===a?1:$l(n),n=r-n,Ba(e,n<0?0:n,r)):[]}function Mu(e,n){return e&&e.length?Ta(e,Vi(n,3),!1,!0):[]}function Bu(e,n){return e&&e.length?Ta(e,Vi(n,3)):[]}var Au=xa((function(e){return Da(Ao(e,1,fl,!0))})),Ru=xa((function(e){var n=au(e);return fl(n)&&(n=a),Da(Ao(e,1,fl,!0),Vi(n,2))})),Lu=xa((function(e){var n=au(e);return n="function"==typeof n?n:a,Da(Ao(e,1,fl,!0),a,n)}));function Ou(e){return e&&e.length?Da(e):[]}function ju(e,n){return e&&e.length?Da(e,Vi(n,2)):[]}function zu(e,n){return n="function"==typeof n?n:a,e&&e.length?Da(e,a,n):[]}function Du(e){if(!e||!e.length)return[];var n=0;return e=St(e,(function(e){if(fl(e))return n=Un(e.length,n),!0})),Yt(n,(function(n){return Bt(e,Kt(n))}))}function Eu(e,n){if(!e||!e.length)return[];var t=Du(e);return null==n?t:Bt(t,(function(e){return wt(n,a,e)}))}var Gu=xa((function(e,n){return fl(e)?_o(e,n):[]})),Tu=xa((function(e){return Na(St(e,fl))})),Iu=xa((function(e){var n=au(e);return fl(n)&&(n=a),Na(St(e,fl),Vi(n,2))})),Nu=xa((function(e){var n=au(e);return n="function"==typeof n?n:a,Na(St(e,fl),a,n)})),Uu=xa(Du);function Ku(e,n){return Ua(e||[],n||[],co)}function Fu(e,n){return Ua(e||[],n||[],Pa)}var Vu=xa((function(e){var n=e.length,t=n>1?e[n-1]:a;return t="function"==typeof t?(e.pop(),t):a,Eu(e,t)}));function Wu(e){var n=xr(e);return n.__chain__=!0,n}function Hu(e,n){return n(e),e}function Yu(e,n){return n(e)}var $u=Ti((function(e){var n=e.length,t=n?e[0]:0,r=this.__wrapped__,o=function(n){return yo(n,e)};return!(n>1||this.__actions__.length)&&r instanceof Mr&&is(t)?(r=r.slice(t,+t+(n?1:0)),r.__actions__.push({func:Yu,args:[o],thisArg:a}),new Cr(r,this.__chain__).thru((function(e){return n&&!e.length&&e.push(a),e}))):this.thru(o)}));function qu(){return Wu(this)}function Zu(){return new Cr(this.value(),this.__chain__)}function Ju(){this.__values__===a&&(this.__values__=Hl(this.value()));var e=this.__index__>=this.__values__.length,n=e?a:this.__values__[this.__index__++];return{done:e,value:n}}function Xu(){return this}function Qu(e){var n,t=this;while(t instanceof Sr){var r=zs(t);r.__index__=0,r.__values__=a,n?o.__wrapped__=r:n=r;var o=r;t=t.__wrapped__}return o.__wrapped__=e,n}function ec(){var e=this.__wrapped__;if(e instanceof Mr){var n=e;return this.__actions__.length&&(n=new Mr(this)),n=n.reverse(),n.__actions__.push({func:Yu,args:[hu],thisArg:a}),new Cr(n,this.__chain__)}return this.thru(hu)}function nc(){return Ia(this.__wrapped__,this.__actions__)}var tc=ui((function(e,n,t){dn.call(e,t)?++e[t]:go(e,t,1)}));function rc(e,n,t){var r=ul(e)?Pt:So;return t&&ss(e,n,t)&&(n=a),r(e,Vi(n,3))}function oc(e,n){var t=ul(e)?St:Bo;return t(e,Vi(n,3))}var ac=vi(Hs),ic=vi(Ys);function sc(e,n){return Ao(yc(e,n),1)}function uc(e,n){return Ao(yc(e,n),E)}function cc(e,n,t){return t=t===a?1:$l(t),Ao(yc(e,n),t)}function lc(e,n){var t=ul(e)?_t:ko;return t(e,Vi(n,3))}function fc(e,n){var t=ul(e)?kt:Po;return t(e,Vi(n,3))}var dc=ui((function(e,n,t){dn.call(e,t)?e[t].push(n):go(e,t,[n])}));function pc(e,n,t,r){e=ll(e)?e:Kf(e),t=t&&!r?$l(t):0;var o=e.length;return t<0&&(t=Un(o+t,0)),Tl(e)?t<=o&&e.indexOf(n,t)>-1:!!o&&Tt(e,n,t)>-1}var hc=xa((function(e,n,r){var o=-1,a="function"==typeof n,i=ll(e)?t(e.length):[];return ko(e,(function(e){i[++o]=a?wt(n,e,r):Vo(e,n,r)})),i})),gc=ui((function(e,n,t){go(e,t,n)}));function yc(e,n){var t=ul(e)?Bt:ia;return t(e,Vi(n,3))}function vc(e,n,t,r){return null==e?[]:(ul(n)||(n=null==n?[]:[n]),t=r?a:t,ul(t)||(t=null==t?[]:[t]),da(e,n,t))}var mc=ui((function(e,n,t){e[t?0:1].push(n)}),(function(){return[[],[]]}));function bc(e,n,t){var r=ul(e)?Rt:Vt,o=arguments.length<3;return r(e,Vi(n,4),t,o,ko)}function wc(e,n,t){var r=ul(e)?Lt:Vt,o=arguments.length<3;return r(e,Vi(n,4),t,o,Po)}function xc(e,n){var t=ul(e)?St:Bo;return t(e,Uc(Vi(n,3)))}function _c(e){var n=ul(e)?ao:_a;return n(e)}function kc(e,n,t){n=(t?ss(e,n,t):n===a)?1:$l(n);var r=ul(e)?io:ka;return r(e,n)}function Pc(e){var n=ul(e)?so:Ma;return n(e)}function Sc(e){if(null==e)return 0;if(ll(e))return Tl(e)?yr(e):e.length;var n=Ji(e);return n==Q||n==ie?e.size:ra(e).length}function Cc(e,n,t){var r=ul(e)?Ot:Aa;return t&&ss(e,n,t)&&(n=a),r(e,Vi(n,3))}var Mc=xa((function(e,n){if(null==e)return[];var t=n.length;return t>1&&ss(e,n[0],n[1])?n=[]:t>2&&ss(n[0],n[1],n[2])&&(n=[n[0]]),da(e,Ao(n,1),[])})),Bc=On||function(){return ut.Date.now()};function Ac(e,n){if("function"!=typeof n)throw new an(c);return e=$l(e),function(){if(--e<1)return n.apply(this,arguments)}}function Rc(e,n,t){return n=t?a:n,n=e&&null==n?e.length:n,Li(e,C,a,a,a,a,n)}function Lc(e,n){var t;if("function"!=typeof n)throw new an(c);return e=$l(e),function(){return--e>0&&(t=n.apply(this,arguments)),e<=1&&(n=a),t}}var Oc=xa((function(e,n,t){var r=b;if(t.length){var o=fr(t,Fi(Oc));r|=P}return Li(e,r,n,t,o)})),jc=xa((function(e,n,t){var r=b|w;if(t.length){var o=fr(t,Fi(jc));r|=P}return Li(n,r,e,t,o)}));function zc(e,n,t){n=t?a:n;var r=Li(e,_,a,a,a,a,a,n);return r.placeholder=zc.placeholder,r}function Dc(e,n,t){n=t?a:n;var r=Li(e,k,a,a,a,a,a,n);return r.placeholder=Dc.placeholder,r}function Ec(e,n,t){var r,o,i,s,u,l,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new an(c);function g(n){var t=r,i=o;return r=o=a,f=n,s=e.apply(i,t),s}function y(e){return f=e,u=Ss(b,n),d?g(e):s}function v(e){var t=e-l,r=e-f,o=n-t;return p?Kn(o,i-r):o}function m(e){var t=e-l,r=e-f;return l===a||t>=n||t<0||p&&r>=i}function b(){var e=Bc();if(m(e))return w(e);u=Ss(b,v(e))}function w(e){return u=a,h&&r?g(e):(r=o=a,s)}function x(){u!==a&&Ya(u),f=0,r=l=o=u=a}function _(){return u===a?s:w(Bc())}function k(){var e=Bc(),t=m(e);if(r=arguments,o=this,l=e,t){if(u===a)return y(l);if(p)return Ya(u),u=Ss(b,n),g(l)}return u===a&&(u=Ss(b,n)),s}return n=Zl(n)||0,Pl(t)&&(d=!!t.leading,p="maxWait"in t,i=p?Un(Zl(t.maxWait)||0,n):i,h="trailing"in t?!!t.trailing:h),k.cancel=x,k.flush=_,k}var Gc=xa((function(e,n){return xo(e,1,n)})),Tc=xa((function(e,n,t){return xo(e,Zl(n)||0,t)}));function Ic(e){return Li(e,B)}function Nc(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new an(c);var t=function(){var r=arguments,o=n?n.apply(this,r):r[0],a=t.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return t.cache=a.set(o,i)||a,i};return t.cache=new(Nc.Cache||Fr),t}function Uc(e){if("function"!=typeof e)throw new an(c);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function Kc(e){return Lc(2,e)}Nc.Cache=Fr;var Fc=Wa((function(e,n){n=1==n.length&&ul(n[0])?Bt(n[0],Zt(Vi())):Bt(Ao(n,1),Zt(Vi()));var t=n.length;return xa((function(r){var o=-1,a=Kn(r.length,t);while(++o<a)r[o]=n[o].call(this,r[o]);return wt(e,this,r)}))})),Vc=xa((function(e,n){var t=fr(n,Fi(Vc));return Li(e,P,a,n,t)})),Wc=xa((function(e,n){var t=fr(n,Fi(Wc));return Li(e,S,a,n,t)})),Hc=Ti((function(e,n){return Li(e,M,a,a,a,n)}));function Yc(e,n){if("function"!=typeof e)throw new an(c);return n=n===a?n:$l(n),xa(e,n)}function $c(e,n){if("function"!=typeof e)throw new an(c);return n=null==n?0:Un($l(n),0),xa((function(t){var r=t[n],o=Ha(t,0,n);return r&&At(o,r),wt(e,this,o)}))}function qc(e,n,t){var r=!0,o=!0;if("function"!=typeof e)throw new an(c);return Pl(t)&&(r="leading"in t?!!t.leading:r,o="trailing"in t?!!t.trailing:o),Ec(e,n,{leading:r,maxWait:n,trailing:o})}function Zc(e){return Rc(e,1)}function Jc(e,n){return Vc(Fa(n),e)}function Xc(){if(!arguments.length)return[];var e=arguments[0];return ul(e)?e:[e]}function Qc(e){return mo(e,y)}function el(e,n){return n="function"==typeof n?n:a,mo(e,y,n)}function nl(e){return mo(e,h|y)}function tl(e,n){return n="function"==typeof n?n:a,mo(e,h|y,n)}function rl(e,n){return null==n||wo(e,n,kf(n))}function ol(e,n){return e===n||e!==e&&n!==n}var al=Ci(To),il=Ci((function(e,n){return e>=n})),sl=Wo(function(){return arguments}())?Wo:function(e){return Sl(e)&&dn.call(e,"callee")&&!Sn.call(e,"callee")},ul=t.isArray,cl=ht?Zt(ht):Ho;function ll(e){return null!=e&&kl(e.length)&&!xl(e)}function fl(e){return Sl(e)&&ll(e)}function dl(e){return!0===e||!1===e||Sl(e)&&Go(e)==Y}var pl=Gn||qd,hl=gt?Zt(gt):Yo;function gl(e){return Sl(e)&&1===e.nodeType&&!zl(e)}function yl(e){if(null==e)return!0;if(ll(e)&&(ul(e)||"string"==typeof e||"function"==typeof e.splice||pl(e)||Nl(e)||sl(e)))return!e.length;var n=Ji(e);if(n==Q||n==ie)return!e.size;if(ps(e))return!ra(e).length;for(var t in e)if(dn.call(e,t))return!1;return!0}function vl(e,n){return $o(e,n)}function ml(e,n,t){t="function"==typeof t?t:a;var r=t?t(e,n):a;return r===a?$o(e,n,a,t):!!r}function bl(e){if(!Sl(e))return!1;var n=Go(e);return n==Z||n==q||"string"==typeof e.message&&"string"==typeof e.name&&!zl(e)}function wl(e){return"number"==typeof e&&Tn(e)}function xl(e){if(!Pl(e))return!1;var n=Go(e);return n==J||n==X||n==H||n==oe}function _l(e){return"number"==typeof e&&e==$l(e)}function kl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=G}function Pl(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function Sl(e){return null!=e&&"object"==typeof e}var Cl=yt?Zt(yt):Zo;function Ml(e,n){return e===n||Jo(e,n,Hi(n))}function Bl(e,n,t){return t="function"==typeof t?t:a,Jo(e,n,Hi(n),t)}function Al(e){return jl(e)&&e!=+e}function Rl(e){if(ds(e))throw new o(u);return Xo(e)}function Ll(e){return null===e}function Ol(e){return null==e}function jl(e){return"number"==typeof e||Sl(e)&&Go(e)==ee}function zl(e){if(!Sl(e)||Go(e)!=te)return!1;var n=kn(e);if(null===n)return!0;var t=dn.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t instanceof t&&fn.call(t)==yn}var Dl=vt?Zt(vt):Qo;function El(e){return _l(e)&&e>=-G&&e<=G}var Gl=mt?Zt(mt):ea;function Tl(e){return"string"==typeof e||!ul(e)&&Sl(e)&&Go(e)==se}function Il(e){return"symbol"==typeof e||Sl(e)&&Go(e)==ue}var Nl=bt?Zt(bt):na;function Ul(e){return e===a}function Kl(e){return Sl(e)&&Ji(e)==le}function Fl(e){return Sl(e)&&Go(e)==fe}var Vl=Ci(aa),Wl=Ci((function(e,n){return e<=n}));function Hl(e){if(!e)return[];if(ll(e))return Tl(e)?vr(e):oi(e);if(Bn&&e[Bn])return ur(e[Bn]());var n=Ji(e),t=n==Q?cr:n==ie?dr:Kf;return t(e)}function Yl(e){if(!e)return 0===e?e:0;if(e=Zl(e),e===E||e===-E){var n=e<0?-1:1;return n*T}return e===e?e:0}function $l(e){var n=Yl(e),t=n%1;return n===n?t?n-t:n:0}function ql(e){return e?vo($l(e),0,N):0}function Zl(e){if("number"==typeof e)return e;if(Il(e))return I;if(Pl(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=Pl(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=qt(e);var t=qe.test(e);return t||Je.test(e)?at(e.slice(2),t?2:8):$e.test(e)?I:+e}function Jl(e){return ai(e,Pf(e))}function Xl(e){return e?vo($l(e),-G,G):0===e?e:0}function Ql(e){return null==e?"":za(e)}var ef=ci((function(e,n){if(ps(n)||ll(n))ai(n,kf(n),e);else for(var t in n)dn.call(n,t)&&co(e,t,n[t])})),nf=ci((function(e,n){ai(n,Pf(n),e)})),tf=ci((function(e,n,t,r){ai(n,Pf(n),e,r)})),rf=ci((function(e,n,t,r){ai(n,kf(n),e,r)})),of=Ti(yo);function af(e,n){var t=kr(e);return null==n?t:po(t,n)}var sf=xa((function(e,n){e=tn(e);var t=-1,r=n.length,o=r>2?n[2]:a;o&&ss(n[0],n[1],o)&&(r=1);while(++t<r){var i=n[t],s=Pf(i),u=-1,c=s.length;while(++u<c){var l=s[u],f=e[l];(f===a||ol(f,cn[l])&&!dn.call(e,l))&&(e[l]=i[l])}}return e})),uf=xa((function(e){return e.push(a,ji),wt(Bf,a,e)}));function cf(e,n){return Et(e,Vi(n,3),Oo)}function lf(e,n){return Et(e,Vi(n,3),jo)}function ff(e,n){return null==e?e:Ro(e,Vi(n,3),Pf)}function df(e,n){return null==e?e:Lo(e,Vi(n,3),Pf)}function pf(e,n){return e&&Oo(e,Vi(n,3))}function hf(e,n){return e&&jo(e,Vi(n,3))}function gf(e){return null==e?[]:zo(e,kf(e))}function yf(e){return null==e?[]:zo(e,Pf(e))}function vf(e,n,t){var r=null==e?a:Do(e,n);return r===a?t:r}function mf(e,n){return null!=e&&es(e,n,Io)}function bf(e,n){return null!=e&&es(e,n,No)}var wf=wi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=gn.call(n)),e[n]=t}),Md(Ld)),xf=wi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=gn.call(n)),dn.call(e,n)?e[n].push(t):e[n]=[t]}),Vi),_f=xa(Vo);function kf(e){return ll(e)?oo(e):ra(e)}function Pf(e){return ll(e)?oo(e,!0):oa(e)}function Sf(e,n){var t={};return n=Vi(n,3),Oo(e,(function(e,r,o){go(t,n(e,r,o),e)})),t}function Cf(e,n){var t={};return n=Vi(n,3),Oo(e,(function(e,r,o){go(t,r,n(e,r,o))})),t}var Mf=ci((function(e,n,t){ca(e,n,t)})),Bf=ci((function(e,n,t,r){ca(e,n,t,r)})),Af=Ti((function(e,n){var t={};if(null==e)return t;var r=!1;n=Bt(n,(function(n){return n=Va(n,e),r||(r=n.length>1),n})),ai(e,Ni(e),t),r&&(t=mo(t,h|g|y,zi));var o=n.length;while(o--)Ea(t,n[o]);return t}));function Rf(e,n){return Of(e,Uc(Vi(n)))}var Lf=Ti((function(e,n){return null==e?{}:pa(e,n)}));function Of(e,n){if(null==e)return{};var t=Bt(Ni(e),(function(e){return[e]}));return n=Vi(n),ha(e,t,(function(e,t){return n(e,t[0])}))}function jf(e,n,t){n=Va(n,e);var r=-1,o=n.length;o||(o=1,e=a);while(++r<o){var i=null==e?a:e[Ls(n[r])];i===a&&(r=o,i=t),e=xl(i)?i.call(e):i}return e}function zf(e,n,t){return null==e?e:Pa(e,n,t)}function Df(e,n,t,r){return r="function"==typeof r?r:a,null==e?e:Pa(e,n,t,r)}var Ef=Ri(kf),Gf=Ri(Pf);function Tf(e,n,t){var r=ul(e),o=r||pl(e)||Nl(e);if(n=Vi(n,4),null==t){var a=e&&e.constructor;t=o?r?new a:[]:Pl(e)&&xl(a)?kr(kn(e)):{}}return(o?_t:Oo)(e,(function(e,r,o){return n(t,e,r,o)})),t}function If(e,n){return null==e||Ea(e,n)}function Nf(e,n,t){return null==e?e:Ga(e,n,Fa(t))}function Uf(e,n,t,r){return r="function"==typeof r?r:a,null==e?e:Ga(e,n,Fa(t),r)}function Kf(e){return null==e?[]:Jt(e,kf(e))}function Ff(e){return null==e?[]:Jt(e,Pf(e))}function Vf(e,n,t){return t===a&&(t=n,n=a),t!==a&&(t=Zl(t),t=t===t?t:0),n!==a&&(n=Zl(n),n=n===n?n:0),vo(Zl(e),n,t)}function Wf(e,n,t){return n=Yl(n),t===a?(t=n,n=0):t=Yl(t),e=Zl(e),Uo(e,n,t)}function Hf(e,n,t){if(t&&"boolean"!=typeof t&&ss(e,n,t)&&(n=t=a),t===a&&("boolean"==typeof n?(t=n,n=a):"boolean"==typeof e&&(t=e,e=a)),e===a&&n===a?(e=0,n=1):(e=Yl(e),n===a?(n=e,e=0):n=Yl(n)),e>n){var r=e;e=n,n=r}if(t||e%1||n%1){var o=Yn();return Kn(e+o*(n-e+ot("1e-"+((o+"").length-1))),n)}return ma(e,n)}var Yf=hi((function(e,n,t){return n=n.toLowerCase(),e+(t?$f(n):n)}));function $f(e){return xd(Ql(e).toLowerCase())}function qf(e){return e=Ql(e),e&&e.replace(Qe,tr).replace(Wn,"")}function Zf(e,n,t){e=Ql(e),n=za(n);var r=e.length;t=t===a?r:vo($l(t),0,r);var o=t;return t-=n.length,t>=0&&e.slice(t,o)==n}function Jf(e){return e=Ql(e),e&&Ae.test(e)?e.replace(Me,rr):e}function Xf(e){return e=Ql(e),e&&Ge.test(e)?e.replace(Ee,"\\$&"):e}var Qf=hi((function(e,n,t){return e+(t?"-":"")+n.toLowerCase()})),ed=hi((function(e,n,t){return e+(t?" ":"")+n.toLowerCase()})),nd=pi("toLowerCase");function td(e,n,t){e=Ql(e),n=$l(n);var r=n?yr(e):0;if(!n||r>=n)return e;var o=(n-r)/2;return ki(Dn(o),t)+e+ki(zn(o),t)}function rd(e,n,t){e=Ql(e),n=$l(n);var r=n?yr(e):0;return n&&r<n?e+ki(n-r,t):e}function od(e,n,t){e=Ql(e),n=$l(n);var r=n?yr(e):0;return n&&r<n?ki(n-r,t)+e:e}function ad(e,n,t){return t||null==n?n=0:n&&(n=+n),Hn(Ql(e).replace(Te,""),n||0)}function id(e,n,t){return n=(t?ss(e,n,t):n===a)?1:$l(n),wa(Ql(e),n)}function sd(){var e=arguments,n=Ql(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var ud=hi((function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}));function cd(e,n,t){return t&&"number"!=typeof t&&ss(e,n,t)&&(n=t=a),t=t===a?N:t>>>0,t?(e=Ql(e),e&&("string"==typeof n||null!=n&&!Dl(n))&&(n=za(n),!n&&ir(e))?Ha(vr(e),0,t):e.split(n,t)):[]}var ld=hi((function(e,n,t){return e+(t?" ":"")+xd(n)}));function fd(e,n,t){return e=Ql(e),t=null==t?0:vo($l(t),0,e.length),n=za(n),e.slice(t,t+n.length)==n}function dd(e,n,t){var r=xr.templateSettings;t&&ss(e,n,t)&&(n=a),e=Ql(e),n=tf({},n,r,Oi);var i,s,u=tf({},n.imports,r.imports,Oi),c=kf(u),f=Jt(u,c),d=0,p=n.interpolate||en,h="__p += '",g=rn((n.escape||en).source+"|"+p.source+"|"+(p===Oe?He:en).source+"|"+(n.evaluate||en).source+"|$","g"),y="//# sourceURL="+(dn.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jn+"]")+"\n";e.replace(g,(function(n,t,r,o,a,u){return r||(r=o),h+=e.slice(d,u).replace(nn,or),t&&(i=!0,h+="' +\n__e("+t+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=u+n.length,n})),h+="';\n";var v=dn.call(n,"variable")&&n.variable;if(v){if(Ve.test(v))throw new o(l)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(ke,""):h).replace(Pe,"$1").replace(Se,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=kd((function(){return Ie(c,y+"return "+h).apply(a,f)}));if(m.source=h,bl(m))throw m;return m}function pd(e){return Ql(e).toLowerCase()}function hd(e){return Ql(e).toUpperCase()}function gd(e,n,t){if(e=Ql(e),e&&(t||n===a))return qt(e);if(!e||!(n=za(n)))return e;var r=vr(e),o=vr(n),i=Qt(r,o),s=er(r,o)+1;return Ha(r,i,s).join("")}function yd(e,n,t){if(e=Ql(e),e&&(t||n===a))return e.slice(0,mr(e)+1);if(!e||!(n=za(n)))return e;var r=vr(e),o=er(r,vr(n))+1;return Ha(r,0,o).join("")}function vd(e,n,t){if(e=Ql(e),e&&(t||n===a))return e.replace(Te,"");if(!e||!(n=za(n)))return e;var r=vr(e),o=Qt(r,vr(n));return Ha(r,o).join("")}function md(e,n){var t=A,r=R;if(Pl(n)){var o="separator"in n?n.separator:o;t="length"in n?$l(n.length):t,r="omission"in n?za(n.omission):r}e=Ql(e);var i=e.length;if(ir(e)){var s=vr(e);i=s.length}if(t>=i)return e;var u=t-yr(r);if(u<1)return r;var c=s?Ha(s,0,u).join(""):e.slice(0,u);if(o===a)return c+r;if(s&&(u+=c.length-u),Dl(o)){if(e.slice(u).search(o)){var l,f=c;o.global||(o=rn(o.source,Ql(Ye.exec(o))+"g")),o.lastIndex=0;while(l=o.exec(f))var d=l.index;c=c.slice(0,d===a?u:d)}}else if(e.indexOf(za(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r}function bd(e){return e=Ql(e),e&&Be.test(e)?e.replace(Ce,br):e}var wd=hi((function(e,n,t){return e+(t?" ":"")+n.toUpperCase()})),xd=pi("toUpperCase");function _d(e,n,t){return e=Ql(e),n=t?a:n,n===a?sr(e)?_r(e):Dt(e):e.match(n)||[]}var kd=xa((function(e,n){try{return wt(e,a,n)}catch(t){return bl(t)?t:new o(t)}})),Pd=Ti((function(e,n){return _t(n,(function(n){n=Ls(n),go(e,n,Oc(e[n],e))})),e}));function Sd(e){var n=null==e?0:e.length,t=Vi();return e=n?Bt(e,(function(e){if("function"!=typeof e[1])throw new an(c);return[t(e[0]),e[1]]})):[],xa((function(t){var r=-1;while(++r<n){var o=e[r];if(wt(o[0],this,t))return wt(o[1],this,t)}}))}function Cd(e){return bo(mo(e,h))}function Md(e){return function(){return e}}function Bd(e,n){return null==e||e!==e?n:e}var Ad=mi(),Rd=mi(!0);function Ld(e){return e}function Od(e){return ta("function"==typeof e?e:mo(e,h))}function jd(e){return sa(mo(e,h))}function zd(e,n){return ua(e,mo(n,h))}var Dd=xa((function(e,n){return function(t){return Vo(t,e,n)}})),Ed=xa((function(e,n){return function(t){return Vo(e,t,n)}}));function Gd(e,n,t){var r=kf(n),o=zo(n,r);null!=t||Pl(n)&&(o.length||!r.length)||(t=n,n=e,e=this,o=zo(n,kf(n)));var a=!(Pl(t)&&"chain"in t)||!!t.chain,i=xl(e);return _t(o,(function(t){var r=n[t];e[t]=r,i&&(e.prototype[t]=function(){var n=this.__chain__;if(a||n){var t=e(this.__wrapped__),o=t.__actions__=oi(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),t.__chain__=n,t}return r.apply(e,At([this.value()],arguments))})})),e}function Td(){return ut._===this&&(ut._=vn),this}function Id(){}function Nd(e){return e=$l(e),xa((function(n){return fa(n,e)}))}var Ud=_i(Bt),Kd=_i(Pt),Fd=_i(Ot);function Vd(e){return us(e)?Kt(Ls(e)):ga(e)}function Wd(e){return function(n){return null==e?a:Do(e,n)}}var Hd=Si(),Yd=Si(!0);function $d(){return[]}function qd(){return!1}function Zd(){return{}}function Jd(){return""}function Xd(){return!0}function Qd(e,n){if(e=$l(e),e<1||e>G)return[];var t=N,r=Kn(e,N);n=Vi(n),e-=N;var o=Yt(r,n);while(++t<e)n(t);return o}function ep(e){return ul(e)?Bt(e,Ls):Il(e)?[e]:oi(Rs(Ql(e)))}function np(e){var n=++pn;return Ql(e)+n}var tp=xi((function(e,n){return e+n}),0),rp=Bi("ceil"),op=xi((function(e,n){return e/n}),1),ap=Bi("floor");function ip(e){return e&&e.length?Co(e,Ld,To):a}function sp(e,n){return e&&e.length?Co(e,Vi(n,2),To):a}function up(e){return Ut(e,Ld)}function cp(e,n){return Ut(e,Vi(n,2))}function lp(e){return e&&e.length?Co(e,Ld,aa):a}function fp(e,n){return e&&e.length?Co(e,Vi(n,2),aa):a}var dp=xi((function(e,n){return e*n}),1),pp=Bi("round"),hp=xi((function(e,n){return e-n}),0);function gp(e){return e&&e.length?Ht(e,Ld):0}function yp(e,n){return e&&e.length?Ht(e,Vi(n,2)):0}return xr.after=Ac,xr.ary=Rc,xr.assign=ef,xr.assignIn=nf,xr.assignInWith=tf,xr.assignWith=rf,xr.at=of,xr.before=Lc,xr.bind=Oc,xr.bindAll=Pd,xr.bindKey=jc,xr.castArray=Xc,xr.chain=Wu,xr.chunk=Ds,xr.compact=Es,xr.concat=Gs,xr.cond=Sd,xr.conforms=Cd,xr.constant=Md,xr.countBy=tc,xr.create=af,xr.curry=zc,xr.curryRight=Dc,xr.debounce=Ec,xr.defaults=sf,xr.defaultsDeep=uf,xr.defer=Gc,xr.delay=Tc,xr.difference=Ts,xr.differenceBy=Is,xr.differenceWith=Ns,xr.drop=Us,xr.dropRight=Ks,xr.dropRightWhile=Fs,xr.dropWhile=Vs,xr.fill=Ws,xr.filter=oc,xr.flatMap=sc,xr.flatMapDeep=uc,xr.flatMapDepth=cc,xr.flatten=$s,xr.flattenDeep=qs,xr.flattenDepth=Zs,xr.flip=Ic,xr.flow=Ad,xr.flowRight=Rd,xr.fromPairs=Js,xr.functions=gf,xr.functionsIn=yf,xr.groupBy=dc,xr.initial=eu,xr.intersection=nu,xr.intersectionBy=tu,xr.intersectionWith=ru,xr.invert=wf,xr.invertBy=xf,xr.invokeMap=hc,xr.iteratee=Od,xr.keyBy=gc,xr.keys=kf,xr.keysIn=Pf,xr.map=yc,xr.mapKeys=Sf,xr.mapValues=Cf,xr.matches=jd,xr.matchesProperty=zd,xr.memoize=Nc,xr.merge=Mf,xr.mergeWith=Bf,xr.method=Dd,xr.methodOf=Ed,xr.mixin=Gd,xr.negate=Uc,xr.nthArg=Nd,xr.omit=Af,xr.omitBy=Rf,xr.once=Kc,xr.orderBy=vc,xr.over=Ud,xr.overArgs=Fc,xr.overEvery=Kd,xr.overSome=Fd,xr.partial=Vc,xr.partialRight=Wc,xr.partition=mc,xr.pick=Lf,xr.pickBy=Of,xr.property=Vd,xr.propertyOf=Wd,xr.pull=uu,xr.pullAll=cu,xr.pullAllBy=lu,xr.pullAllWith=fu,xr.pullAt=du,xr.range=Hd,xr.rangeRight=Yd,xr.rearg=Hc,xr.reject=xc,xr.remove=pu,xr.rest=Yc,xr.reverse=hu,xr.sampleSize=kc,xr.set=zf,xr.setWith=Df,xr.shuffle=Pc,xr.slice=gu,xr.sortBy=Mc,xr.sortedUniq=_u,xr.sortedUniqBy=ku,xr.split=cd,xr.spread=$c,xr.tail=Pu,xr.take=Su,xr.takeRight=Cu,xr.takeRightWhile=Mu,xr.takeWhile=Bu,xr.tap=Hu,xr.throttle=qc,xr.thru=Yu,xr.toArray=Hl,xr.toPairs=Ef,xr.toPairsIn=Gf,xr.toPath=ep,xr.toPlainObject=Jl,xr.transform=Tf,xr.unary=Zc,xr.union=Au,xr.unionBy=Ru,xr.unionWith=Lu,xr.uniq=Ou,xr.uniqBy=ju,xr.uniqWith=zu,xr.unset=If,xr.unzip=Du,xr.unzipWith=Eu,xr.update=Nf,xr.updateWith=Uf,xr.values=Kf,xr.valuesIn=Ff,xr.without=Gu,xr.words=_d,xr.wrap=Jc,xr.xor=Tu,xr.xorBy=Iu,xr.xorWith=Nu,xr.zip=Uu,xr.zipObject=Ku,xr.zipObjectDeep=Fu,xr.zipWith=Vu,xr.entries=Ef,xr.entriesIn=Gf,xr.extend=nf,xr.extendWith=tf,Gd(xr,xr),xr.add=tp,xr.attempt=kd,xr.camelCase=Yf,xr.capitalize=$f,xr.ceil=rp,xr.clamp=Vf,xr.clone=Qc,xr.cloneDeep=nl,xr.cloneDeepWith=tl,xr.cloneWith=el,xr.conformsTo=rl,xr.deburr=qf,xr.defaultTo=Bd,xr.divide=op,xr.endsWith=Zf,xr.eq=ol,xr.escape=Jf,xr.escapeRegExp=Xf,xr.every=rc,xr.find=ac,xr.findIndex=Hs,xr.findKey=cf,xr.findLast=ic,xr.findLastIndex=Ys,xr.findLastKey=lf,xr.floor=ap,xr.forEach=lc,xr.forEachRight=fc,xr.forIn=ff,xr.forInRight=df,xr.forOwn=pf,xr.forOwnRight=hf,xr.get=vf,xr.gt=al,xr.gte=il,xr.has=mf,xr.hasIn=bf,xr.head=Xs,xr.identity=Ld,xr.includes=pc,xr.indexOf=Qs,xr.inRange=Wf,xr.invoke=_f,xr.isArguments=sl,xr.isArray=ul,xr.isArrayBuffer=cl,xr.isArrayLike=ll,xr.isArrayLikeObject=fl,xr.isBoolean=dl,xr.isBuffer=pl,xr.isDate=hl,xr.isElement=gl,xr.isEmpty=yl,xr.isEqual=vl,xr.isEqualWith=ml,xr.isError=bl,xr.isFinite=wl,xr.isFunction=xl,xr.isInteger=_l,xr.isLength=kl,xr.isMap=Cl,xr.isMatch=Ml,xr.isMatchWith=Bl,xr.isNaN=Al,xr.isNative=Rl,xr.isNil=Ol,xr.isNull=Ll,xr.isNumber=jl,xr.isObject=Pl,xr.isObjectLike=Sl,xr.isPlainObject=zl,xr.isRegExp=Dl,xr.isSafeInteger=El,xr.isSet=Gl,xr.isString=Tl,xr.isSymbol=Il,xr.isTypedArray=Nl,xr.isUndefined=Ul,xr.isWeakMap=Kl,xr.isWeakSet=Fl,xr.join=ou,xr.kebabCase=Qf,xr.last=au,xr.lastIndexOf=iu,xr.lowerCase=ed,xr.lowerFirst=nd,xr.lt=Vl,xr.lte=Wl,xr.max=ip,xr.maxBy=sp,xr.mean=up,xr.meanBy=cp,xr.min=lp,xr.minBy=fp,xr.stubArray=$d,xr.stubFalse=qd,xr.stubObject=Zd,xr.stubString=Jd,xr.stubTrue=Xd,xr.multiply=dp,xr.nth=su,xr.noConflict=Td,xr.noop=Id,xr.now=Bc,xr.pad=td,xr.padEnd=rd,xr.padStart=od,xr.parseInt=ad,xr.random=Hf,xr.reduce=bc,xr.reduceRight=wc,xr.repeat=id,xr.replace=sd,xr.result=jf,xr.round=pp,xr.runInContext=e,xr.sample=_c,xr.size=Sc,xr.snakeCase=ud,xr.some=Cc,xr.sortedIndex=yu,xr.sortedIndexBy=vu,xr.sortedIndexOf=mu,xr.sortedLastIndex=bu,xr.sortedLastIndexBy=wu,xr.sortedLastIndexOf=xu,xr.startCase=ld,xr.startsWith=fd,xr.subtract=hp,xr.sum=gp,xr.sumBy=yp,xr.template=dd,xr.times=Qd,xr.toFinite=Yl,xr.toInteger=$l,xr.toLength=ql,xr.toLower=pd,xr.toNumber=Zl,xr.toSafeInteger=Xl,xr.toString=Ql,xr.toUpper=hd,xr.trim=gd,xr.trimEnd=yd,xr.trimStart=vd,xr.truncate=md,xr.unescape=bd,xr.uniqueId=np,xr.upperCase=wd,xr.upperFirst=xd,xr.each=lc,xr.eachRight=fc,xr.first=Xs,Gd(xr,function(){var e={};return Oo(xr,(function(n,t){dn.call(xr.prototype,t)||(e[t]=n)})),e}(),{chain:!1}),xr.VERSION=i,_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){xr[e].placeholder=xr})),_t(["drop","take"],(function(e,n){Mr.prototype[e]=function(t){t=t===a?1:Un($l(t),0);var r=this.__filtered__&&!n?new Mr(this):this.clone();return r.__filtered__?r.__takeCount__=Kn(t,r.__takeCount__):r.__views__.push({size:Kn(t,N),type:e+(r.__dir__<0?"Right":"")}),r},Mr.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}})),_t(["filter","map","takeWhile"],(function(e,n){var t=n+1,r=t==j||t==D;Mr.prototype[e]=function(e){var n=this.clone();return n.__iteratees__.push({iteratee:Vi(e,3),type:t}),n.__filtered__=n.__filtered__||r,n}})),_t(["head","last"],(function(e,n){var t="take"+(n?"Right":"");Mr.prototype[e]=function(){return this[t](1).value()[0]}})),_t(["initial","tail"],(function(e,n){var t="drop"+(n?"":"Right");Mr.prototype[e]=function(){return this.__filtered__?new Mr(this):this[t](1)}})),Mr.prototype.compact=function(){return this.filter(Ld)},Mr.prototype.find=function(e){return this.filter(e).head()},Mr.prototype.findLast=function(e){return this.reverse().find(e)},Mr.prototype.invokeMap=xa((function(e,n){return"function"==typeof e?new Mr(this):this.map((function(t){return Vo(t,e,n)}))})),Mr.prototype.reject=function(e){return this.filter(Uc(Vi(e)))},Mr.prototype.slice=function(e,n){e=$l(e);var t=this;return t.__filtered__&&(e>0||n<0)?new Mr(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==a&&(n=$l(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},Mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Mr.prototype.toArray=function(){return this.take(N)},Oo(Mr.prototype,(function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=xr[r?"take"+("last"==n?"Right":""):n],i=r||/^find/.test(n);o&&(xr.prototype[n]=function(){var n=this.__wrapped__,s=r?[1]:arguments,u=n instanceof Mr,c=s[0],l=u||ul(n),f=function(e){var n=o.apply(xr,At([e],s));return r&&d?n[0]:n};l&&t&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=i&&!d,g=u&&!p;if(!i&&l){n=g?n:new Mr(this);var y=e.apply(n,s);return y.__actions__.push({func:Yu,args:[f],thisArg:a}),new Cr(y,d)}return h&&g?e.apply(this,s):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var n=sn[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);xr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return n.apply(ul(o)?o:[],e)}return this[t]((function(t){return n.apply(ul(t)?t:[],e)}))}})),Oo(Mr.prototype,(function(e,n){var t=xr[n];if(t){var r=t.name+"";dn.call(ct,r)||(ct[r]=[]),ct[r].push({name:n,func:t})}})),ct[bi(a,w).name]=[{name:"wrapper",func:a}],Mr.prototype.clone=Br,Mr.prototype.reverse=Ar,Mr.prototype.value=Rr,xr.prototype.at=$u,xr.prototype.chain=qu,xr.prototype.commit=Zu,xr.prototype.next=Ju,xr.prototype.plant=Qu,xr.prototype.reverse=ec,xr.prototype.toJSON=xr.prototype.valueOf=xr.prototype.value=nc,xr.prototype.first=xr.prototype.head,Bn&&(xr.prototype[Bn]=Xu),xr},Pr=kr();ut._=Pr,o=function(){return Pr}.call(n,t,n,r),o===a||(r.exports=o)}).call(this)}).call(this,t("d8fc"),t("e55b")(e))},bd5a:function(e,n){e.exports=!1},c678:function(e,n){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c698:function(e,n,t){var r=t("57ac"),o=t("1947"),a=t("fd86"),i=a("species");e.exports=function(e,n){var t,a=r(e).constructor;return void 0===a||void 0==(t=r(a)[i])?n:o(t)}},c88a:function(e,n,t){"use strict";var r=t("ce17"),o=t("ac27"),a=t("ba28"),i=t("3df7"),s=t("0ff2"),u=t("f246"),c=t("2153"),l=Object.assign,f=Object.defineProperty;e.exports=!l||o((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},t=Symbol(),o="abcdefghijklmnopqrst";return e[t]=7,o.split("").forEach((function(e){n[e]=e})),7!=l({},e)[t]||a(l({},n)).join("")!=o}))?function(e,n){var t=u(e),o=arguments.length,l=1,f=i.f,d=s.f;while(o>l){var p,h=c(arguments[l++]),g=f?a(h).concat(f(h)):a(h),y=g.length,v=0;while(y>v)p=g[v++],r&&!d.call(h,p)||(t[p]=h[p])}return t}:l},c944:function(e,n,t){var r=t("fd86"),o=r("toStringTag"),a={};a[o]="z",e.exports="[object z]"===String(a)},c981:function(e,n,t){var r=t("c944"),o=t("fd84"),a=t("5116");r||o(Object.prototype,"toString",a,{unsafe:!0})},ca24:function(e,n,t){var r=t("1061"),o=t("8dac"),a=t("129e"),i=t("41d6").f,s=t("ddc5"),u=t("9200"),c=s("meta"),l=0,f=Object.isExtensible||function(){return!0},d=function(e){i(e,c,{value:{objectID:"O"+ ++l,weakData:{}}})},p=function(e,n){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!f(e))return"F";if(!n)return"E";d(e)}return e[c].objectID},h=function(e,n){if(!a(e,c)){if(!f(e))return!0;if(!n)return!1;d(e)}return e[c].weakData},g=function(e){return u&&y.REQUIRED&&f(e)&&!a(e,c)&&d(e),e},y=e.exports={REQUIRED:!1,fastKey:p,getWeakData:h,onFreeze:g};r[c]=!0},ca80:function(e,n,t){"use strict";var r=t("9c0c"),o=t("d684"),a=t("4037"),i=t("2673"),s=t("4116"),u="Array Iterator",c=i.set,l=i.getterFor(u);e.exports=s(Array,"Array",(function(e,n){c(this,{type:u,target:r(e),index:0,kind:n})}),(function(){var e=l(this),n=e.target,t=e.kind,r=e.index++;return!n||r>=n.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==t?{value:r,done:!1}:"values"==t?{value:n[r],done:!1}:{value:[r,n[r]],done:!1}}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},cad9:function(e,n,t){(function(e){function t(e,n){for(var t=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),t++):t&&(e.splice(r,1),t--)}if(n)for(;t--;t)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var n,t=0,r=-1,o=!0;for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){t=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(t,r)}function o(e,n){if(e.filter)return e.filter(n);for(var t=[],r=0;r<e.length;r++)n(e[r],r,e)&&t.push(e[r]);return t}n.resolve=function(){for(var n="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var i=a>=0?arguments[a]:e.cwd();if("string"!==typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(n=i+"/"+n,r="/"===i.charAt(0))}return n=t(o(n.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+n||"."},n.normalize=function(e){var r=n.isAbsolute(e),i="/"===a(e,-1);return e=t(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(o(e,(function(e,n){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var n=0;n<e.length;n++)if(""!==e[n])break;for(var t=e.length-1;t>=0;t--)if(""!==e[t])break;return n>t?[]:e.slice(n,t-n+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),a=r(t.split("/")),i=Math.min(o.length,a.length),s=i,u=0;u<i;u++)if(o[u]!==a[u]){s=u;break}var c=[];for(u=s;u<o.length;u++)c.push("..");return c=c.concat(a.slice(s)),c.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var n=e.charCodeAt(0),t=47===n,r=-1,o=!0,a=e.length-1;a>=1;--a)if(n=e.charCodeAt(a),47===n){if(!o){r=a;break}}else o=!1;return-1===r?t?"/":".":t&&1===r?"/":e.slice(0,r)},n.basename=function(e,n){var t=r(e);return n&&t.substr(-1*n.length)===n&&(t=t.substr(0,t.length-n.length)),t},n.extname=function(e){"string"!==typeof e&&(e+="");for(var n=-1,t=0,r=-1,o=!0,a=0,i=e.length-1;i>=0;--i){var s=e.charCodeAt(i);if(47!==s)-1===r&&(o=!1,r=i+1),46===s?-1===n?n=i:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){t=i+1;break}}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===t+1?"":e.slice(n,r)};var a="b"==="ab".substr(-1)?function(e,n,t){return e.substr(n,t)}:function(e,n,t){return n<0&&(n=e.length+n),e.substr(n,t)}}).call(this,t("0418"))},cba7:function(e,n,t){"use strict";var r=t("a9eb"),o=t("41d6"),a=t("9f69");e.exports=function(e,n,t){var i=r(n);i in e?o.f(e,i,a(0,t)):e[i]=t}},cbdb:function(e,n,t){"use strict";t("4f51");var r=t("fd84"),o=t("8bc5"),a=t("ac27"),i=t("fd86"),s=t("ff46"),u=i("species"),c=RegExp.prototype,l=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=function(){return"$0"==="a".replace(/./,"$0")}(),d=i("replace"),p=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),h=!a((function(){var e=/(?:)/,n=e.exec;e.exec=function(){return n.apply(this,arguments)};var t="ab".split(e);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}));e.exports=function(e,n,t,d){var g=i(e),y=!a((function(){var n={};return n[g]=function(){return 7},7!=""[e](n)})),v=y&&!a((function(){var n=!1,t=/a/;return"split"===e&&(t={},t.constructor={},t.constructor[u]=function(){return t},t.flags="",t[g]=/./[g]),t.exec=function(){return n=!0,null},t[g](""),!n}));if(!y||!v||"replace"===e&&(!l||!f||p)||"split"===e&&!h){var m=/./[g],b=t(g,""[e],(function(e,n,t,r,a){var i=n.exec;return i===o||i===c.exec?y&&!a?{done:!0,value:m.call(n,t,r)}:{done:!0,value:e.call(t,n,r)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),w=b[0],x=b[1];r(String.prototype,e,w),r(c,g,2==n?function(e,n){return x.call(e,this,n)}:function(e){return x.call(e,this)})}d&&s(c[g],"sham",!0)}},cbe1:function(e,n,t){var r=t("8dac"),o=t("9ebe"),a=t("fd86"),i=a("species");e.exports=function(e,n){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)?r(t)&&(t=t[i],null===t&&(t=void 0)):t=void 0),new(void 0===t?Array:t)(0===n?0:n)}},cd16:function(e,n,t){var r=t("9c0c"),o=t("43b7"),a=t("12aa"),i=function(e){return function(n,t,i){var s,u=r(n),c=o(u.length),l=a(i,c);if(e&&t!=t){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===t)return e||l||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},ce17:function(e,n,t){var r=t("ac27");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d0b1:function(e,n,t){"use strict";var r=t("ac27");e.exports=function(e,n){var t=[][e];return!!t&&r((function(){t.call(null,n||function(){throw 1},1)}))}},d22c:function(e,n,t){"use strict";var r=t("f246"),o=t("12aa"),a=t("43b7");e.exports=function(e){var n=r(this),t=a(n.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,t),u=i>2?arguments[2]:void 0,c=void 0===u?t:o(u,t);while(c>s)n[s++]=e;return n}},d5b1:function(e,n,t){var r=t("ac27");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},d684:function(e,n,t){var r=t("fd86"),o=t("e3d0"),a=t("41d6"),i=r("unscopables"),s=Array.prototype;void 0==s[i]&&a.f(s,i,{configurable:!0,value:o(null)}),e.exports=function(e){s[i][e]=!0}},d863:function(e,n,t){"use strict";var r=t("41d6").f,o=t("e3d0"),a=t("392e"),i=t("6e4e"),s=t("191b"),u=t("5c27"),c=t("4116"),l=t("a1a4"),f=t("ce17"),d=t("ca24").fastKey,p=t("2673"),h=p.set,g=p.getterFor;e.exports={getConstructor:function(e,n,t,c){var l=e((function(e,r){s(e,l,n),h(e,{type:n,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=r&&u(r,e[c],{that:e,AS_ENTRIES:t})})),p=g(n),y=function(e,n,t){var r,o,a=p(e),i=v(e,n);return i?i.value=t:(a.last=i={index:o=d(n,!0),key:n,value:t,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=i),r&&(r.next=i),f?a.size++:e.size++,"F"!==o&&(a.index[o]=i)),e},v=function(e,n){var t,r=p(e),o=d(n);if("F"!==o)return r.index[o];for(t=r.first;t;t=t.next)if(t.key==n)return t};return a(l.prototype,{clear:function(){var e=this,n=p(e),t=n.index,r=n.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;n.first=n.last=void 0,f?n.size=0:e.size=0},delete:function(e){var n=this,t=p(n),r=v(n,e);if(r){var o=r.next,a=r.previous;delete t.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),t.first==r&&(t.first=o),t.last==r&&(t.last=a),f?t.size--:n.size--}return!!r},forEach:function(e){var n,t=p(this),r=i(e,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.next:t.first){r(n.value,n.key,this);while(n&&n.removed)n=n.previous}},has:function(e){return!!v(this,e)}}),a(l.prototype,t?{get:function(e){var n=v(this,e);return n&&n.value},set:function(e,n){return y(this,0===e?0:e,n)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return p(this).size}}),l},setStrong:function(e,n,t){var r=n+" Iterator",o=g(n),a=g(r);c(e,n,(function(e,n){h(this,{type:r,target:e,state:o(e),kind:n,last:void 0})}),(function(){var e=a(this),n=e.kind,t=e.last;while(t&&t.removed)t=t.previous;return e.target&&(e.last=t=t?t.next:e.state.first)?"keys"==n?{value:t.key,done:!1}:"values"==n?{value:t.value,done:!1}:{value:[t.key,t.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),t?"entries":"values",!t,!0),l(n)}}},d8fc:function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(r){"object"===typeof window&&(t=window)}e.exports=t},da71:function(e,n,t){"use strict";var r=t("7f82"),o=t("2153"),a=t("9c0c"),i=t("d0b1"),s=[].join,u=o!=Object,c=i("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s.call(a(this),void 0===e?",":e)}})},dbf5:function(e,n,t){var r=t("38b4"),o=t("4037"),a=t("fd86"),i=a("iterator");e.exports=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},dd2b:function(e,n,t){(function(e){var r;(function(e,o,a){function i(e){var n=this,t=c();n.next=function(){var e=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=t(" "),n.s1=t(" "),n.s2=t(" "),n.s0-=t(e),n.s0<0&&(n.s0+=1),n.s1-=t(e),n.s1<0&&(n.s1+=1),n.s2-=t(e),n.s2<0&&(n.s2+=1),t=null}function s(e,n){return n.c=e.c,n.s0=e.s0,n.s1=e.s1,n.s2=e.s2,n}function u(e,n){var t=new i(e),r=n&&n.state,o=t.next;return o.int32=function(){return 4294967296*t.next()|0},o.double=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.quick=o,r&&("object"==typeof r&&s(r,t),o.state=function(){return s(t,{})}),o}function c(){var e=4022871197,n=function(n){n=String(n);for(var t=0;t<n.length;t++){e+=n.charCodeAt(t);var r=.02519603282416938*e;e=r>>>0,r-=e,r*=e,e=r>>>0,r-=e,e+=4294967296*r}return 2.3283064365386963e-10*(e>>>0)};return n}o&&o.exports?o.exports=u:t("f9ad")&&t("ba96")?(r=function(){return u}.call(n,t,n,o),void 0===r||(o.exports=r)):this.alea=u})(0,e,t("f9ad"))}).call(this,t("e55b")(e))},dd7c:function(e,n,t){var r=t("28b5"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},ddc5:function(e,n){var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},df11:function(e,n,t){var r=t("68de"),o=t("60cb"),a=t("9daf"),i=t("ff46");for(var s in o){var u=r[s],c=u&&u.prototype;if(c&&c.forEach!==a)try{i(c,"forEach",a)}catch(l){c.forEach=a}}},e3d0:function(e,n,t){var r,o=t("57ac"),a=t("727c"),i=t("338e"),s=t("1061"),u=t("0716"),c=t("77cc"),l=t("71d2"),f=">",d="<",p="prototype",h="script",g=l("IE_PROTO"),y=function(){},v=function(e){return d+h+f+e+d+"/"+h+f},m=function(e){e.write(v("")),e.close();var n=e.parentWindow.Object;return e=null,n},b=function(){var e,n=c("iframe"),t="java"+h+":";return n.style.display="none",u.appendChild(n),n.src=String(t),e=n.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},w=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(n){}w=r?m(r):b();var e=i.length;while(e--)delete w[p][i[e]];return w()};s[g]=!0,e.exports=Object.create||function(e,n){var t;return null!==e?(y[p]=o(e),t=new y,y[p]=null,t[g]=e):t=w(),void 0===n?t:a(t,n)}},e55b:function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},e710:function(e,n,t){},e908:function(e,n,t){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var n=Object.keys(e),t={},r=0;r<n.length;r++)t[n[r]]=Object.getOwnPropertyDescriptor(e,n[r]);return t},o=/%[sdj%]/g;n.format=function(e){if(!_(e)){for(var n=[],t=0;t<arguments.length;t++)n.push(s(arguments[t]));return n.join(" ")}t=1;for(var r=arguments,a=r.length,i=String(e).replace(o,(function(e){if("%%"===e)return"%";if(t>=a)return e;switch(e){case"%s":return String(r[t++]);case"%d":return Number(r[t++]);case"%j":try{return JSON.stringify(r[t++])}catch(n){return"[Circular]"}default:return e}})),u=r[t];t<a;u=r[++t])b(u)||!C(u)?i+=" "+u:i+=" "+s(u);return i},n.deprecate=function(t,r){if("undefined"!==typeof e&&!0===e.noDeprecation)return t;if("undefined"===typeof e)return function(){return n.deprecate(t,r).apply(this,arguments)};var o=!1;function a(){if(!o){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),o=!0}return t.apply(this,arguments)}return a};var a,i={};function s(e,t){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(t)?r.showHidden=t:t&&n._extend(r,t),P(r.showHidden)&&(r.showHidden=!1),P(r.depth)&&(r.depth=2),P(r.colors)&&(r.colors=!1),P(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),f(r,e,r.depth)}function u(e,n){var t=s.styles[n];return t?"["+s.colors[t][0]+"m"+e+"["+s.colors[t][1]+"m":e}function c(e,n){return e}function l(e){var n={};return e.forEach((function(e,t){n[e]=!0})),n}function f(e,t,r){if(e.customInspect&&t&&A(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(r,e);return _(o)||(o=f(e,o,r)),o}var a=d(e,t);if(a)return a;var i=Object.keys(t),s=l(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),B(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return p(t);if(0===i.length){if(A(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(M(t))return e.stylize(Date.prototype.toString.call(t),"date");if(B(t))return p(t)}var c,m="",b=!1,w=["{","}"];if(v(t)&&(b=!0,w=["[","]"]),A(t)){var x=t.name?": "+t.name:"";m=" [Function"+x+"]"}return S(t)&&(m=" "+RegExp.prototype.toString.call(t)),M(t)&&(m=" "+Date.prototype.toUTCString.call(t)),B(t)&&(m=" "+p(t)),0!==i.length||b&&0!=t.length?r<0?S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=b?h(e,t,r,s,i):i.map((function(n){return g(e,t,r,s,n,b)})),e.seen.pop(),y(c,m,w)):w[0]+m+w[1]}function d(e,n){if(P(n))return e.stylize("undefined","undefined");if(_(n)){var t="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}return x(n)?e.stylize(""+n,"number"):m(n)?e.stylize(""+n,"boolean"):b(n)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,n,t,r,o){for(var a=[],i=0,s=n.length;i<s;++i)D(n,String(i))?a.push(g(e,n,t,r,String(i),!0)):a.push("");return o.forEach((function(o){o.match(/^\d+$/)||a.push(g(e,n,t,r,o,!0))})),a}function g(e,n,t,r,o,a){var i,s,u;if(u=Object.getOwnPropertyDescriptor(n,o)||{value:n[o]},u.get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),D(r,o)||(i="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=b(t)?f(e,u.value,null):f(e,u.value,t-1),s.indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),P(i)){if(a&&o.match(/^\d+$/))return s;i=JSON.stringify(""+o),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+s}function y(e,n,t){var r=e.reduce((function(e,n){return n.indexOf("\n")>=0&&0,e+n.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?t[0]+(""===n?"":n+"\n ")+" "+e.join(",\n ")+" "+t[1]:t[0]+n+" "+e.join(", ")+" "+t[1]}function v(e){return Array.isArray(e)}function m(e){return"boolean"===typeof e}function b(e){return null===e}function w(e){return null==e}function x(e){return"number"===typeof e}function _(e){return"string"===typeof e}function k(e){return"symbol"===typeof e}function P(e){return void 0===e}function S(e){return C(e)&&"[object RegExp]"===L(e)}function C(e){return"object"===typeof e&&null!==e}function M(e){return C(e)&&"[object Date]"===L(e)}function B(e){return C(e)&&("[object Error]"===L(e)||e instanceof Error)}function A(e){return"function"===typeof e}function R(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function L(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(t){if(P(a)&&(a=Object({NODE_ENV:"production",BASE_URL:"/"}).NODE_DEBUG||""),t=t.toUpperCase(),!i[t])if(new RegExp("\\b"+t+"\\b","i").test(a)){var r=e.pid;i[t]=function(){var e=n.format.apply(n,arguments);console.error("%s %d: %s",t,r,e)}}else i[t]=function(){};return i[t]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=v,n.isBoolean=m,n.isNull=b,n.isNullOrUndefined=w,n.isNumber=x,n.isString=_,n.isSymbol=k,n.isUndefined=P,n.isRegExp=S,n.isObject=C,n.isDate=M,n.isError=B,n.isFunction=A,n.isPrimitive=R,n.isBuffer=t("3e17");var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(){var e=new Date,n=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],n].join(" ")}function D(e,n){return Object.prototype.hasOwnProperty.call(e,n)}n.log=function(){console.log("%s - %s",z(),n.format.apply(n,arguments))},n.inherits=t("9416"),n._extend=function(e,n){if(!n||!C(n))return e;var t=Object.keys(n),r=t.length;while(r--)e[t[r]]=n[t[r]];return e};var E="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function G(e,n){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return n(e)}function T(n){if("function"!==typeof n)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var o=t.pop();if("function"!==typeof o)throw new TypeError("The last argument must be of type Function");var a=this,i=function(){return o.apply(a,arguments)};n.apply(this,t).then((function(n){e.nextTick(i,null,n)}),(function(n){e.nextTick(G,n,i)}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(n)),Object.defineProperties(t,r(n)),t}n.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(E&&e[E]){var n=e[E];if("function"!==typeof n)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,E,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var n,t,r=new Promise((function(e,r){n=e,t=r})),o=[],a=0;a<arguments.length;a++)o.push(arguments[a]);o.push((function(e,r){e?t(e):n(r)}));try{e.apply(this,o)}catch(i){t(i)}return r}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),E&&Object.defineProperty(n,E,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,r(e))},n.promisify.custom=E,n.callbackify=T}).call(this,t("0418"))},ec9f:function(e,n,t){"use strict";var r=t("7f82"),o=t("b222").findIndex,a=t("d684"),i="findIndex",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},f124:function(e,n,t){(function(e){var r;(function(e,o,a){function i(e){var n=this,t="";n.next=function(){var e=n.x^n.x>>>2;return n.x=n.y,n.y=n.z,n.z=n.w,n.w=n.v,(n.d=n.d+362437|0)+(n.v=n.v^n.v<<4^e^e<<1)|0},n.x=0,n.y=0,n.z=0,n.w=0,n.v=0,e===(0|e)?n.x=e:t+=e;for(var r=0;r<t.length+64;r++)n.x^=0|t.charCodeAt(r),r==t.length&&(n.d=n.x<<10^n.x>>>4),n.next()}function s(e,n){return n.x=e.x,n.y=e.y,n.z=e.z,n.w=e.w,n.v=e.v,n.d=e.d,n}function u(e,n){var t=new i(e),r=n&&n.state,o=function(){return(t.next()>>>0)/4294967296};return o.double=function(){do{var e=t.next()>>>11,n=(t.next()>>>0)/4294967296,r=(e+n)/(1<<21)}while(0===r);return r},o.int32=t.next,o.quick=o,r&&("object"==typeof r&&s(r,t),o.state=function(){return s(t,{})}),o}o&&o.exports?o.exports=u:t("f9ad")&&t("ba96")?(r=function(){return u}.call(n,t,n,o),void 0===r||(o.exports=r)):this.xorwow=u})(0,e,t("f9ad"))}).call(this,t("e55b")(e))},f168:function(e,n,t){e.exports=t.p+"media/piece-drop.eef5f607.mp3"},f246:function(e,n,t){var r=t("c678");e.exports=function(e){return Object(r(e))}},f320:function(e,n,t){var r=t("57ac"),o=t("5b4c");e.exports=function(e,n,t,a){try{return a?n(r(t)[0],t[1]):n(t)}catch(i){throw o(e),i}}},f688:function(e,n,t){var r=t("7f82"),o=t("87ee"),a=t("220a"),i=!a((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:i},{from:o})},f9ad:function(e,n){e.exports=function(){throw new Error("define cannot be used indirect")}},fbdc:function(e,n,t){var r=t("a768"),o=t("97cc"),a=t("3df7"),i=t("57ac");e.exports=r("Reflect","ownKeys")||function(e){var n=o.f(i(e)),t=a.f;return t?n.concat(t(e)):n}},fd65:function(e,n,t){e.exports=t.p+"img/pass.da9065dc.svg"},fd70:function(e,n,t){var r=t("a768");e.exports=r("navigator","userAgent")||""},fd84:function(e,n,t){var r=t("68de"),o=t("ff46"),a=t("129e"),i=t("853a"),s=t("dd7c"),u=t("2673"),c=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,n,t,s){var u,c=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof t&&("string"!=typeof n||a(t,"name")||o(t,"name",n),u=l(t),u.source||(u.source=f.join("string"==typeof n?n:""))),e!==r?(c?!p&&e[n]&&(d=!0):delete e[n],d?e[n]=t:o(e,n,t)):d?e[n]=t:i(n,t)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},fd86:function(e,n,t){var r=t("68de"),o=t("448a"),a=t("129e"),i=t("ddc5"),s=t("5a40"),u=t("7a4c"),c=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||i;e.exports=function(e){return a(c,e)&&(s||"string"==typeof c[e])||(s&&a(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},ff3f:function(e,n,t){var r=t("fd86"),o=r("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[o]=!1,"/./"[e](n)}catch(r){}}return!1}},ff41:function(e,n,t){var r=t("0540");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},ff46:function(e,n,t){var r=t("ce17"),o=t("41d6"),a=t("9f69");e.exports=r?function(e,n,t){return o.f(e,n,a(1,t))}:function(e,n,t){return e[n]=t,e}}})}));
|
|
34
|
+
*/(function(){var a,i="4.17.21",s=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,g=2,y=4,v=1,m=2,b=1,w=2,x=4,_=8,k=16,P=32,S=64,C=128,M=256,B=512,R=30,A="...",L=800,O=16,z=1,j=2,D=3,E=1/0,G=9007199254740991,T=17976931348623157e292,I=NaN,N=4294967295,U=N-1,K=N>>>1,F=[["ary",C],["bind",b],["bindKey",w],["curry",_],["curryRight",k],["flip",B],["partial",P],["partialRight",S],["rearg",M]],W="[object Arguments]",H="[object Array]",V="[object AsyncFunction]",Y="[object Boolean]",$="[object Date]",q="[object DOMException]",Z="[object Error]",J="[object Function]",X="[object GeneratorFunction]",Q="[object Map]",ee="[object Number]",ne="[object Null]",te="[object Object]",re="[object Promise]",oe="[object Proxy]",ae="[object RegExp]",ie="[object Set]",se="[object String]",ue="[object Symbol]",ce="[object Undefined]",le="[object WeakMap]",fe="[object WeakSet]",de="[object ArrayBuffer]",pe="[object DataView]",he="[object Float32Array]",ge="[object Float64Array]",ye="[object Int8Array]",ve="[object Int16Array]",me="[object Int32Array]",be="[object Uint8Array]",we="[object Uint8ClampedArray]",xe="[object Uint16Array]",_e="[object Uint32Array]",ke=/\b__p \+= '';/g,Pe=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Be=RegExp(Ce.source),Re=RegExp(Me.source),Ae=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,je=/^\w*$/,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ee=/[\\^$.*+?()[\]{}|]/g,Ge=RegExp(Ee.source),Te=/^\s+/,Ie=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,Ke=/,? & /,Fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,We=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ye=/\w*$/,$e=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Ze=/^\[object .+?Constructor\]$/,Je=/^0o[0-7]+$/i,Xe=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,en=/($^)/,nn=/['\n\r\u2028\u2029\\]/g,tn="\\ud800-\\udfff",rn="\\u0300-\\u036f",on="\\ufe20-\\ufe2f",an="\\u20d0-\\u20ff",sn=rn+on+an,un="\\u2700-\\u27bf",cn="a-z\\xdf-\\xf6\\xf8-\\xff",ln="\\xac\\xb1\\xd7\\xf7",fn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dn="\\u2000-\\u206f",pn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hn="A-Z\\xc0-\\xd6\\xd8-\\xde",gn="\\ufe0e\\ufe0f",yn=ln+fn+dn+pn,vn="['’]",mn="["+tn+"]",bn="["+yn+"]",wn="["+sn+"]",xn="\\d+",_n="["+un+"]",kn="["+cn+"]",Pn="[^"+tn+yn+xn+un+cn+hn+"]",Sn="\\ud83c[\\udffb-\\udfff]",Cn="(?:"+wn+"|"+Sn+")",Mn="[^"+tn+"]",Bn="(?:\\ud83c[\\udde6-\\uddff]){2}",Rn="[\\ud800-\\udbff][\\udc00-\\udfff]",An="["+hn+"]",Ln="\\u200d",On="(?:"+kn+"|"+Pn+")",zn="(?:"+An+"|"+Pn+")",jn="(?:"+vn+"(?:d|ll|m|re|s|t|ve))?",Dn="(?:"+vn+"(?:D|LL|M|RE|S|T|VE))?",En=Cn+"?",Gn="["+gn+"]?",Tn="(?:"+Ln+"(?:"+[Mn,Bn,Rn].join("|")+")"+Gn+En+")*",In="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Un=Gn+En+Tn,Kn="(?:"+[_n,Bn,Rn].join("|")+")"+Un,Fn="(?:"+[Mn+wn+"?",wn,Bn,Rn,mn].join("|")+")",Wn=RegExp(vn,"g"),Hn=RegExp(wn,"g"),Vn=RegExp(Sn+"(?="+Sn+")|"+Fn+Un,"g"),Yn=RegExp([An+"?"+kn+"+"+jn+"(?="+[bn,An,"$"].join("|")+")",zn+"+"+Dn+"(?="+[bn,An+On,"$"].join("|")+")",An+"?"+On+"+"+jn,An+"+"+Dn,Nn,In,xn,Kn].join("|"),"g"),$n=RegExp("["+Ln+tn+sn+gn+"]"),qn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jn=-1,Xn={};Xn[he]=Xn[ge]=Xn[ye]=Xn[ve]=Xn[me]=Xn[be]=Xn[we]=Xn[xe]=Xn[_e]=!0,Xn[W]=Xn[H]=Xn[de]=Xn[Y]=Xn[pe]=Xn[$]=Xn[Z]=Xn[J]=Xn[Q]=Xn[ee]=Xn[te]=Xn[ae]=Xn[ie]=Xn[se]=Xn[le]=!1;var Qn={};Qn[W]=Qn[H]=Qn[de]=Qn[pe]=Qn[Y]=Qn[$]=Qn[he]=Qn[ge]=Qn[ye]=Qn[ve]=Qn[me]=Qn[Q]=Qn[ee]=Qn[te]=Qn[ae]=Qn[ie]=Qn[se]=Qn[ue]=Qn[be]=Qn[we]=Qn[xe]=Qn[_e]=!0,Qn[Z]=Qn[J]=Qn[le]=!1;var et={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},nt={"&":"&","<":"<",">":">",'"':""","'":"'"},tt={"&":"&","<":"<",">":">",""":'"',"'":"'"},rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ot=parseFloat,at=parseInt,it="object"==typeof e&&e&&e.Object===Object&&e,st="object"==typeof self&&self&&self.Object===Object&&self,ut=it||st||Function("return this")(),ct=n&&!n.nodeType&&n,lt=ct&&"object"==typeof r&&r&&!r.nodeType&&r,ft=lt&<.exports===ct,dt=ft&&it.process,pt=function(){try{var e=lt&<.require&<.require("util").types;return e||dt&&dt.binding&&dt.binding("util")}catch(n){}}(),ht=pt&&pt.isArrayBuffer,gt=pt&&pt.isDate,yt=pt&&pt.isMap,vt=pt&&pt.isRegExp,mt=pt&&pt.isSet,bt=pt&&pt.isTypedArray;function wt(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function xt(e,n,t,r){var o=-1,a=null==e?0:e.length;while(++o<a){var i=e[o];n(r,i,t(i),e)}return r}function _t(e,n){var t=-1,r=null==e?0:e.length;while(++t<r)if(!1===n(e[t],t,e))break;return e}function kt(e,n){var t=null==e?0:e.length;while(t--)if(!1===n(e[t],t,e))break;return e}function Pt(e,n){var t=-1,r=null==e?0:e.length;while(++t<r)if(!n(e[t],t,e))return!1;return!0}function St(e,n){var t=-1,r=null==e?0:e.length,o=0,a=[];while(++t<r){var i=e[t];n(i,t,e)&&(a[o++]=i)}return a}function Ct(e,n){var t=null==e?0:e.length;return!!t&&Tt(e,n,0)>-1}function Mt(e,n,t){var r=-1,o=null==e?0:e.length;while(++r<o)if(t(n,e[r]))return!0;return!1}function Bt(e,n){var t=-1,r=null==e?0:e.length,o=Array(r);while(++t<r)o[t]=n(e[t],t,e);return o}function Rt(e,n){var t=-1,r=n.length,o=e.length;while(++t<r)e[o+t]=n[t];return e}function At(e,n,t,r){var o=-1,a=null==e?0:e.length;r&&a&&(t=e[++o]);while(++o<a)t=n(t,e[o],o,e);return t}function Lt(e,n,t,r){var o=null==e?0:e.length;r&&o&&(t=e[--o]);while(o--)t=n(t,e[o],o,e);return t}function Ot(e,n){var t=-1,r=null==e?0:e.length;while(++t<r)if(n(e[t],t,e))return!0;return!1}var zt=Kt("length");function jt(e){return e.split("")}function Dt(e){return e.match(Fe)||[]}function Et(e,n,t){var r;return t(e,(function(e,t,o){if(n(e,t,o))return r=t,!1})),r}function Gt(e,n,t,r){var o=e.length,a=t+(r?1:-1);while(r?a--:++a<o)if(n(e[a],a,e))return a;return-1}function Tt(e,n,t){return n===n?hr(e,n,t):Gt(e,Nt,t)}function It(e,n,t,r){var o=t-1,a=e.length;while(++o<a)if(r(e[o],n))return o;return-1}function Nt(e){return e!==e}function Ut(e,n){var t=null==e?0:e.length;return t?Vt(e,n)/t:I}function Kt(e){return function(n){return null==n?a:n[e]}}function Ft(e){return function(n){return null==e?a:e[n]}}function Wt(e,n,t,r,o){return o(e,(function(e,o,a){t=r?(r=!1,e):n(t,e,o,a)})),t}function Ht(e,n){var t=e.length;e.sort(n);while(t--)e[t]=e[t].value;return e}function Vt(e,n){var t,r=-1,o=e.length;while(++r<o){var i=n(e[r]);i!==a&&(t=t===a?i:t+i)}return t}function Yt(e,n){var t=-1,r=Array(e);while(++t<e)r[t]=n(t);return r}function $t(e,n){return Bt(n,(function(n){return[n,e[n]]}))}function qt(e){return e?e.slice(0,mr(e)+1).replace(Te,""):e}function Zt(e){return function(n){return e(n)}}function Jt(e,n){return Bt(n,(function(n){return e[n]}))}function Xt(e,n){return e.has(n)}function Qt(e,n){var t=-1,r=e.length;while(++t<r&&Tt(n,e[t],0)>-1);return t}function er(e,n){var t=e.length;while(t--&&Tt(n,e[t],0)>-1);return t}function nr(e,n){var t=e.length,r=0;while(t--)e[t]===n&&++r;return r}var tr=Ft(et),rr=Ft(nt);function or(e){return"\\"+rt[e]}function ar(e,n){return null==e?a:e[n]}function ir(e){return $n.test(e)}function sr(e){return qn.test(e)}function ur(e){var n,t=[];while(!(n=e.next()).done)t.push(n.value);return t}function cr(e){var n=-1,t=Array(e.size);return e.forEach((function(e,r){t[++n]=[r,e]})),t}function lr(e,n){return function(t){return e(n(t))}}function fr(e,n){var t=-1,r=e.length,o=0,a=[];while(++t<r){var i=e[t];i!==n&&i!==p||(e[t]=p,a[o++]=t)}return a}function dr(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t}function pr(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=[e,e]})),t}function hr(e,n,t){var r=t-1,o=e.length;while(++r<o)if(e[r]===n)return r;return-1}function gr(e,n,t){var r=t+1;while(r--)if(e[r]===n)return r;return r}function yr(e){return ir(e)?wr(e):zt(e)}function vr(e){return ir(e)?xr(e):jt(e)}function mr(e){var n=e.length;while(n--&&Ie.test(e.charAt(n)));return n}var br=Ft(tt);function wr(e){var n=Vn.lastIndex=0;while(Vn.test(e))++n;return n}function xr(e){return e.match(Vn)||[]}function _r(e){return e.match(Yn)||[]}var kr=function e(n){n=null==n?ut:Pr.defaults(ut.Object(),n,Pr.pick(ut,Zn));var t=n.Array,r=n.Date,o=n.Error,Ie=n.Function,Fe=n.Math,tn=n.Object,rn=n.RegExp,on=n.String,an=n.TypeError,sn=t.prototype,un=Ie.prototype,cn=tn.prototype,ln=n["__core-js_shared__"],fn=un.toString,dn=cn.hasOwnProperty,pn=0,hn=function(){var e=/[^.]+$/.exec(ln&&ln.keys&&ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gn=cn.toString,yn=fn.call(tn),vn=ut._,mn=rn("^"+fn.call(dn).replace(Ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bn=ft?n.Buffer:a,wn=n.Symbol,xn=n.Uint8Array,_n=bn?bn.allocUnsafe:a,kn=lr(tn.getPrototypeOf,tn),Pn=tn.create,Sn=cn.propertyIsEnumerable,Cn=sn.splice,Mn=wn?wn.isConcatSpreadable:a,Bn=wn?wn.iterator:a,Rn=wn?wn.toStringTag:a,An=function(){try{var e=Yi(tn,"defineProperty");return e({},"",{}),e}catch(n){}}(),Ln=n.clearTimeout!==ut.clearTimeout&&n.clearTimeout,On=r&&r.now!==ut.Date.now&&r.now,zn=n.setTimeout!==ut.setTimeout&&n.setTimeout,jn=Fe.ceil,Dn=Fe.floor,En=tn.getOwnPropertySymbols,Gn=bn?bn.isBuffer:a,Tn=n.isFinite,In=sn.join,Nn=lr(tn.keys,tn),Un=Fe.max,Kn=Fe.min,Fn=r.now,Vn=n.parseInt,Yn=Fe.random,$n=sn.reverse,qn=Yi(n,"DataView"),et=Yi(n,"Map"),nt=Yi(n,"Promise"),tt=Yi(n,"Set"),rt=Yi(n,"WeakMap"),it=Yi(tn,"create"),st=rt&&new rt,ct={},lt=Os(qn),dt=Os(et),pt=Os(nt),zt=Os(tt),jt=Os(rt),Ft=wn?wn.prototype:a,hr=Ft?Ft.valueOf:a,wr=Ft?Ft.toString:a;function xr(e){if(Sl(e)&&!ul(e)&&!(e instanceof Mr)){if(e instanceof Cr)return e;if(dn.call(e,"__wrapped__"))return js(e)}return new Cr(e)}var kr=function(){function e(){}return function(n){if(!Pl(n))return{};if(Pn)return Pn(n);e.prototype=n;var t=new e;return e.prototype=a,t}}();function Sr(){}function Cr(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=a}function Mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function Br(){var e=new Mr(this.__wrapped__);return e.__actions__=oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=oi(this.__views__),e}function Rr(){if(this.__filtered__){var e=new Mr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Ar(){var e=this.__wrapped__.value(),n=this.__dir__,t=ul(e),r=n<0,o=t?e.length:0,a=Xi(0,o,this.__views__),i=a.start,s=a.end,u=s-i,c=r?s:i-1,l=this.__iteratees__,f=l.length,d=0,p=Kn(u,this.__takeCount__);if(!t||!r&&o==u&&p==u)return Ia(e,this.__actions__);var h=[];e:while(u--&&d<p){c+=n;var g=-1,y=e[c];while(++g<f){var v=l[g],m=v.iteratee,b=v.type,w=m(y);if(b==j)y=w;else if(!w){if(b==z)continue e;break e}}h[d++]=y}return h}function Lr(e){var n=-1,t=null==e?0:e.length;this.clear();while(++n<t){var r=e[n];this.set(r[0],r[1])}}function Or(){this.__data__=it?it(null):{},this.size=0}function zr(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function jr(e){var n=this.__data__;if(it){var t=n[e];return t===f?a:t}return dn.call(n,e)?n[e]:a}function Dr(e){var n=this.__data__;return it?n[e]!==a:dn.call(n,e)}function Er(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=it&&n===a?f:n,this}function Gr(e){var n=-1,t=null==e?0:e.length;this.clear();while(++n<t){var r=e[n];this.set(r[0],r[1])}}function Tr(){this.__data__=[],this.size=0}function Ir(e){var n=this.__data__,t=lo(n,e);if(t<0)return!1;var r=n.length-1;return t==r?n.pop():Cn.call(n,t,1),--this.size,!0}function Nr(e){var n=this.__data__,t=lo(n,e);return t<0?a:n[t][1]}function Ur(e){return lo(this.__data__,e)>-1}function Kr(e,n){var t=this.__data__,r=lo(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this}function Fr(e){var n=-1,t=null==e?0:e.length;this.clear();while(++n<t){var r=e[n];this.set(r[0],r[1])}}function Wr(){this.size=0,this.__data__={hash:new Lr,map:new(et||Gr),string:new Lr}}function Hr(e){var n=Hi(this,e)["delete"](e);return this.size-=n?1:0,n}function Vr(e){return Hi(this,e).get(e)}function Yr(e){return Hi(this,e).has(e)}function $r(e,n){var t=Hi(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this}function qr(e){var n=-1,t=null==e?0:e.length;this.__data__=new Fr;while(++n<t)this.add(e[n])}function Zr(e){return this.__data__.set(e,f),this}function Jr(e){return this.__data__.has(e)}function Xr(e){var n=this.__data__=new Gr(e);this.size=n.size}function Qr(){this.__data__=new Gr,this.size=0}function eo(e){var n=this.__data__,t=n["delete"](e);return this.size=n.size,t}function no(e){return this.__data__.get(e)}function to(e){return this.__data__.has(e)}function ro(e,n){var t=this.__data__;if(t instanceof Gr){var r=t.__data__;if(!et||r.length<s-1)return r.push([e,n]),this.size=++t.size,this;t=this.__data__=new Fr(r)}return t.set(e,n),this.size=t.size,this}function oo(e,n){var t=ul(e),r=!t&&sl(e),o=!t&&!r&&pl(e),a=!t&&!r&&!o&&Nl(e),i=t||r||o||a,s=i?Yt(e.length,on):[],u=s.length;for(var c in e)!n&&!dn.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||is(c,u))||s.push(c);return s}function ao(e){var n=e.length;return n?e[ma(0,n-1)]:a}function io(e,n){return Rs(oi(e),vo(n,0,e.length))}function so(e){return Rs(oi(e))}function uo(e,n,t){(t!==a&&!ol(e[n],t)||t===a&&!(n in e))&&go(e,n,t)}function co(e,n,t){var r=e[n];dn.call(e,n)&&ol(r,t)&&(t!==a||n in e)||go(e,n,t)}function lo(e,n){var t=e.length;while(t--)if(ol(e[t][0],n))return t;return-1}function fo(e,n,t,r){return ko(e,(function(e,o,a){n(r,e,t(e),a)})),r}function po(e,n){return e&&ai(n,kf(n),e)}function ho(e,n){return e&&ai(n,Pf(n),e)}function go(e,n,t){"__proto__"==n&&An?An(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function yo(e,n){var r=-1,o=n.length,i=t(o),s=null==e;while(++r<o)i[r]=s?a:vf(e,n[r]);return i}function vo(e,n,t){return e===e&&(t!==a&&(e=e<=t?e:t),n!==a&&(e=e>=n?e:n)),e}function mo(e,n,t,r,o,i){var s,u=n&h,c=n&g,l=n&y;if(t&&(s=o?t(e,r,o,i):t(e)),s!==a)return s;if(!Pl(e))return e;var f=ul(e);if(f){if(s=ns(e),!u)return oi(e,s)}else{var d=Ji(e),p=d==J||d==X;if(pl(e))return $a(e,u);if(d==te||d==W||p&&!o){if(s=c||p?{}:ts(e),!u)return c?si(e,ho(s,e)):ii(e,po(s,e))}else{if(!Qn[d])return o?e:{};s=rs(e,d,u)}}i||(i=new Xr);var v=i.get(e);if(v)return v;i.set(e,s),Gl(e)?e.forEach((function(r){s.add(mo(r,n,t,r,e,i))})):Cl(e)&&e.forEach((function(r,o){s.set(o,mo(r,n,t,o,e,i))}));var m=l?c?Ni:Ii:c?Pf:kf,b=f?a:m(e);return _t(b||e,(function(r,o){b&&(o=r,r=e[o]),co(s,o,mo(r,n,t,o,e,i))})),s}function bo(e){var n=kf(e);return function(t){return wo(t,e,n)}}function wo(e,n,t){var r=t.length;if(null==e)return!r;e=tn(e);while(r--){var o=t[r],i=n[o],s=e[o];if(s===a&&!(o in e)||!i(s))return!1}return!0}function xo(e,n,t){if("function"!=typeof e)throw new an(c);return Ss((function(){e.apply(a,t)}),n)}function _o(e,n,t,r){var o=-1,a=Ct,i=!0,u=e.length,c=[],l=n.length;if(!u)return c;t&&(n=Bt(n,Zt(t))),r?(a=Mt,i=!1):n.length>=s&&(a=Xt,i=!1,n=new qr(n));e:while(++o<u){var f=e[o],d=null==t?f:t(f);if(f=r||0!==f?f:0,i&&d===d){var p=l;while(p--)if(n[p]===d)continue e;c.push(f)}else a(n,d,r)||c.push(f)}return c}xr.templateSettings={escape:Ae,evaluate:Le,interpolate:Oe,variable:"",imports:{_:xr}},xr.prototype=Sr.prototype,xr.prototype.constructor=xr,Cr.prototype=kr(Sr.prototype),Cr.prototype.constructor=Cr,Mr.prototype=kr(Sr.prototype),Mr.prototype.constructor=Mr,Lr.prototype.clear=Or,Lr.prototype["delete"]=zr,Lr.prototype.get=jr,Lr.prototype.has=Dr,Lr.prototype.set=Er,Gr.prototype.clear=Tr,Gr.prototype["delete"]=Ir,Gr.prototype.get=Nr,Gr.prototype.has=Ur,Gr.prototype.set=Kr,Fr.prototype.clear=Wr,Fr.prototype["delete"]=Hr,Fr.prototype.get=Vr,Fr.prototype.has=Yr,Fr.prototype.set=$r,qr.prototype.add=qr.prototype.push=Zr,qr.prototype.has=Jr,Xr.prototype.clear=Qr,Xr.prototype["delete"]=eo,Xr.prototype.get=no,Xr.prototype.has=to,Xr.prototype.set=ro;var ko=li(Oo),Po=li(zo,!0);function So(e,n){var t=!0;return ko(e,(function(e,r,o){return t=!!n(e,r,o),t})),t}function Co(e,n,t){var r=-1,o=e.length;while(++r<o){var i=e[r],s=n(i);if(null!=s&&(u===a?s===s&&!Il(s):t(s,u)))var u=s,c=i}return c}function Mo(e,n,t,r){var o=e.length;t=$l(t),t<0&&(t=-t>o?0:o+t),r=r===a||r>o?o:$l(r),r<0&&(r+=o),r=t>r?0:ql(r);while(t<r)e[t++]=n;return e}function Bo(e,n){var t=[];return ko(e,(function(e,r,o){n(e,r,o)&&t.push(e)})),t}function Ro(e,n,t,r,o){var a=-1,i=e.length;t||(t=as),o||(o=[]);while(++a<i){var s=e[a];n>0&&t(s)?n>1?Ro(s,n-1,t,r,o):Rt(o,s):r||(o[o.length]=s)}return o}var Ao=fi(),Lo=fi(!0);function Oo(e,n){return e&&Ao(e,n,kf)}function zo(e,n){return e&&Lo(e,n,kf)}function jo(e,n){return St(n,(function(n){return xl(e[n])}))}function Do(e,n){n=Wa(n,e);var t=0,r=n.length;while(null!=e&&t<r)e=e[Ls(n[t++])];return t&&t==r?e:a}function Eo(e,n,t){var r=n(e);return ul(e)?r:Rt(r,t(e))}function Go(e){return null==e?e===a?ce:ne:Rn&&Rn in tn(e)?$i(e):bs(e)}function To(e,n){return e>n}function Io(e,n){return null!=e&&dn.call(e,n)}function No(e,n){return null!=e&&n in tn(e)}function Uo(e,n,t){return e>=Kn(n,t)&&e<Un(n,t)}function Ko(e,n,r){var o=r?Mt:Ct,i=e[0].length,s=e.length,u=s,c=t(s),l=1/0,f=[];while(u--){var d=e[u];u&&n&&(d=Bt(d,Zt(n))),l=Kn(d.length,l),c[u]=!r&&(n||i>=120&&d.length>=120)?new qr(u&&d):a}d=e[0];var p=-1,h=c[0];e:while(++p<i&&f.length<l){var g=d[p],y=n?n(g):g;if(g=r||0!==g?g:0,!(h?Xt(h,y):o(f,y,r))){u=s;while(--u){var v=c[u];if(!(v?Xt(v,y):o(e[u],y,r)))continue e}h&&h.push(y),f.push(g)}}return f}function Fo(e,n,t,r){return Oo(e,(function(e,o,a){n(r,t(e),o,a)})),r}function Wo(e,n,t){n=Wa(n,e),e=xs(e,n);var r=null==e?e:e[Ls(au(n))];return null==r?a:wt(r,e,t)}function Ho(e){return Sl(e)&&Go(e)==W}function Vo(e){return Sl(e)&&Go(e)==de}function Yo(e){return Sl(e)&&Go(e)==$}function $o(e,n,t,r,o){return e===n||(null==e||null==n||!Sl(e)&&!Sl(n)?e!==e&&n!==n:qo(e,n,t,r,$o,o))}function qo(e,n,t,r,o,a){var i=ul(e),s=ul(n),u=i?H:Ji(e),c=s?H:Ji(n);u=u==W?te:u,c=c==W?te:c;var l=u==te,f=c==te,d=u==c;if(d&&pl(e)){if(!pl(n))return!1;i=!0,l=!1}if(d&&!l)return a||(a=new Xr),i||Nl(e)?Di(e,n,t,r,o,a):Ei(e,n,u,t,r,o,a);if(!(t&v)){var p=l&&dn.call(e,"__wrapped__"),h=f&&dn.call(n,"__wrapped__");if(p||h){var g=p?e.value():e,y=h?n.value():n;return a||(a=new Xr),o(g,y,t,r,a)}}return!!d&&(a||(a=new Xr),Gi(e,n,t,r,o,a))}function Zo(e){return Sl(e)&&Ji(e)==Q}function Jo(e,n,t,r){var o=t.length,i=o,s=!r;if(null==e)return!i;e=tn(e);while(o--){var u=t[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}while(++o<i){u=t[o];var c=u[0],l=e[c],f=u[1];if(s&&u[2]){if(l===a&&!(c in e))return!1}else{var d=new Xr;if(r)var p=r(l,f,c,e,n,d);if(!(p===a?$o(f,l,v|m,r,d):p))return!1}}return!0}function Xo(e){if(!Pl(e)||fs(e))return!1;var n=xl(e)?mn:Ze;return n.test(Os(e))}function Qo(e){return Sl(e)&&Go(e)==ae}function ea(e){return Sl(e)&&Ji(e)==ie}function na(e){return Sl(e)&&kl(e.length)&&!!Xn[Go(e)]}function ta(e){return"function"==typeof e?e:null==e?Ld:"object"==typeof e?ul(e)?ua(e[0],e[1]):sa(e):Wd(e)}function ra(e){if(!ps(e))return Nn(e);var n=[];for(var t in tn(e))dn.call(e,t)&&"constructor"!=t&&n.push(t);return n}function oa(e){if(!Pl(e))return ms(e);var n=ps(e),t=[];for(var r in e)("constructor"!=r||!n&&dn.call(e,r))&&t.push(r);return t}function aa(e,n){return e<n}function ia(e,n){var r=-1,o=ll(e)?t(e.length):[];return ko(e,(function(e,t,a){o[++r]=n(e,t,a)})),o}function sa(e){var n=Vi(e);return 1==n.length&&n[0][2]?gs(n[0][0],n[0][1]):function(t){return t===e||Jo(t,e,n)}}function ua(e,n){return us(e)&&hs(n)?gs(Ls(e),n):function(t){var r=vf(t,e);return r===a&&r===n?bf(t,e):$o(n,r,v|m)}}function ca(e,n,t,r,o){e!==n&&Ao(n,(function(i,s){if(o||(o=new Xr),Pl(i))la(e,n,s,t,ca,r,o);else{var u=r?r(ks(e,s),i,s+"",e,n,o):a;u===a&&(u=i),uo(e,s,u)}}),Pf)}function la(e,n,t,r,o,i,s){var u=ks(e,t),c=ks(n,t),l=s.get(c);if(l)uo(e,t,l);else{var f=i?i(u,c,t+"",e,n,s):a,d=f===a;if(d){var p=ul(c),h=!p&&pl(c),g=!p&&!h&&Nl(c);f=c,p||h||g?ul(u)?f=u:fl(u)?f=oi(u):h?(d=!1,f=$a(c,!0)):g?(d=!1,f=Qa(c,!0)):f=[]:jl(c)||sl(c)?(f=u,sl(u)?f=Jl(u):Pl(u)&&!xl(u)||(f=ts(c))):d=!1}d&&(s.set(c,f),o(f,c,r,i,s),s["delete"](c)),uo(e,t,f)}}function fa(e,n){var t=e.length;if(t)return n+=n<0?t:0,is(n,t)?e[n]:a}function da(e,n,t){n=n.length?Bt(n,(function(e){return ul(e)?function(n){return Do(n,1===e.length?e[0]:e)}:e})):[Ld];var r=-1;n=Bt(n,Zt(Wi()));var o=ia(e,(function(e,t,o){var a=Bt(n,(function(n){return n(e)}));return{criteria:a,index:++r,value:e}}));return Ht(o,(function(e,n){return ni(e,n,t)}))}function pa(e,n){return ha(e,n,(function(n,t){return bf(e,t)}))}function ha(e,n,t){var r=-1,o=n.length,a={};while(++r<o){var i=n[r],s=Do(e,i);t(s,i)&&Pa(a,Wa(i,e),s)}return a}function ga(e){return function(n){return Do(n,e)}}function ya(e,n,t,r){var o=r?It:Tt,a=-1,i=n.length,s=e;e===n&&(n=oi(n)),t&&(s=Bt(e,Zt(t)));while(++a<i){var u=0,c=n[a],l=t?t(c):c;while((u=o(s,l,u,r))>-1)s!==e&&Cn.call(s,u,1),Cn.call(e,u,1)}return e}function va(e,n){var t=e?n.length:0,r=t-1;while(t--){var o=n[t];if(t==r||o!==a){var a=o;is(o)?Cn.call(e,o,1):Ea(e,o)}}return e}function ma(e,n){return e+Dn(Yn()*(n-e+1))}function ba(e,n,r,o){var a=-1,i=Un(jn((n-e)/(r||1)),0),s=t(i);while(i--)s[o?i:++a]=e,e+=r;return s}function wa(e,n){var t="";if(!e||n<1||n>G)return t;do{n%2&&(t+=e),n=Dn(n/2),n&&(e+=e)}while(n);return t}function xa(e,n){return Cs(ws(e,n,Ld),e+"")}function _a(e){return ao(Kf(e))}function ka(e,n){var t=Kf(e);return Rs(t,vo(n,0,t.length))}function Pa(e,n,t,r){if(!Pl(e))return e;n=Wa(n,e);var o=-1,i=n.length,s=i-1,u=e;while(null!=u&&++o<i){var c=Ls(n[o]),l=t;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var f=u[c];l=r?r(f,c,u):a,l===a&&(l=Pl(f)?f:is(n[o+1])?[]:{})}co(u,c,l),u=u[c]}return e}var Sa=st?function(e,n){return st.set(e,n),e}:Ld,Ca=An?function(e,n){return An(e,"toString",{configurable:!0,enumerable:!1,value:Md(n),writable:!0})}:Ld;function Ma(e){return Rs(Kf(e))}function Ba(e,n,r){var o=-1,a=e.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;var i=t(a);while(++o<a)i[o]=e[o+n];return i}function Ra(e,n){var t;return ko(e,(function(e,r,o){return t=n(e,r,o),!t})),!!t}function Aa(e,n,t){var r=0,o=null==e?r:e.length;if("number"==typeof n&&n===n&&o<=K){while(r<o){var a=r+o>>>1,i=e[a];null!==i&&!Il(i)&&(t?i<=n:i<n)?r=a+1:o=a}return o}return La(e,n,Ld,t)}function La(e,n,t,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;n=t(n);var s=n!==n,u=null===n,c=Il(n),l=n===a;while(o<i){var f=Dn((o+i)/2),d=t(e[f]),p=d!==a,h=null===d,g=d===d,y=Il(d);if(s)var v=r||g;else v=l?g&&(r||p):u?g&&p&&(r||!h):c?g&&p&&!h&&(r||!y):!h&&!y&&(r?d<=n:d<n);v?o=f+1:i=f}return Kn(i,U)}function Oa(e,n){var t=-1,r=e.length,o=0,a=[];while(++t<r){var i=e[t],s=n?n(i):i;if(!t||!ol(s,u)){var u=s;a[o++]=0===i?0:i}}return a}function za(e){return"number"==typeof e?e:Il(e)?I:+e}function ja(e){if("string"==typeof e)return e;if(ul(e))return Bt(e,ja)+"";if(Il(e))return wr?wr.call(e):"";var n=e+"";return"0"==n&&1/e==-E?"-0":n}function Da(e,n,t){var r=-1,o=Ct,a=e.length,i=!0,u=[],c=u;if(t)i=!1,o=Mt;else if(a>=s){var l=n?null:Ri(e);if(l)return dr(l);i=!1,o=Xt,c=new qr}else c=n?[]:u;e:while(++r<a){var f=e[r],d=n?n(f):f;if(f=t||0!==f?f:0,i&&d===d){var p=c.length;while(p--)if(c[p]===d)continue e;n&&c.push(d),u.push(f)}else o(c,d,t)||(c!==u&&c.push(d),u.push(f))}return u}function Ea(e,n){return n=Wa(n,e),e=xs(e,n),null==e||delete e[Ls(au(n))]}function Ga(e,n,t,r){return Pa(e,n,t(Do(e,n)),r)}function Ta(e,n,t,r){var o=e.length,a=r?o:-1;while((r?a--:++a<o)&&n(e[a],a,e));return t?Ba(e,r?0:a,r?a+1:o):Ba(e,r?a+1:0,r?o:a)}function Ia(e,n){var t=e;return t instanceof Mr&&(t=t.value()),At(n,(function(e,n){return n.func.apply(n.thisArg,Rt([e],n.args))}),t)}function Na(e,n,r){var o=e.length;if(o<2)return o?Da(e[0]):[];var a=-1,i=t(o);while(++a<o){var s=e[a],u=-1;while(++u<o)u!=a&&(i[a]=_o(i[a]||s,e[u],n,r))}return Da(Ro(i,1),n,r)}function Ua(e,n,t){var r=-1,o=e.length,i=n.length,s={};while(++r<o){var u=r<i?n[r]:a;t(s,e[r],u)}return s}function Ka(e){return fl(e)?e:[]}function Fa(e){return"function"==typeof e?e:Ld}function Wa(e,n){return ul(e)?e:us(e,n)?[e]:As(Ql(e))}var Ha=xa;function Va(e,n,t){var r=e.length;return t=t===a?r:t,!n&&t>=r?e:Ba(e,n,t)}var Ya=Ln||function(e){return ut.clearTimeout(e)};function $a(e,n){if(n)return e.slice();var t=e.length,r=_n?_n(t):new e.constructor(t);return e.copy(r),r}function qa(e){var n=new e.constructor(e.byteLength);return new xn(n).set(new xn(e)),n}function Za(e,n){var t=n?qa(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}function Ja(e){var n=new e.constructor(e.source,Ye.exec(e));return n.lastIndex=e.lastIndex,n}function Xa(e){return hr?tn(hr.call(e)):{}}function Qa(e,n){var t=n?qa(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function ei(e,n){if(e!==n){var t=e!==a,r=null===e,o=e===e,i=Il(e),s=n!==a,u=null===n,c=n===n,l=Il(n);if(!u&&!l&&!i&&e>n||i&&s&&c&&!u&&!l||r&&s&&c||!t&&c||!o)return 1;if(!r&&!i&&!l&&e<n||l&&t&&o&&!r&&!i||u&&t&&o||!s&&o||!c)return-1}return 0}function ni(e,n,t){var r=-1,o=e.criteria,a=n.criteria,i=o.length,s=t.length;while(++r<i){var u=ei(o[r],a[r]);if(u){if(r>=s)return u;var c=t[r];return u*("desc"==c?-1:1)}}return e.index-n.index}function ti(e,n,r,o){var a=-1,i=e.length,s=r.length,u=-1,c=n.length,l=Un(i-s,0),f=t(c+l),d=!o;while(++u<c)f[u]=n[u];while(++a<s)(d||a<i)&&(f[r[a]]=e[a]);while(l--)f[u++]=e[a++];return f}function ri(e,n,r,o){var a=-1,i=e.length,s=-1,u=r.length,c=-1,l=n.length,f=Un(i-u,0),d=t(f+l),p=!o;while(++a<f)d[a]=e[a];var h=a;while(++c<l)d[h+c]=n[c];while(++s<u)(p||a<i)&&(d[h+r[s]]=e[a++]);return d}function oi(e,n){var r=-1,o=e.length;n||(n=t(o));while(++r<o)n[r]=e[r];return n}function ai(e,n,t,r){var o=!t;t||(t={});var i=-1,s=n.length;while(++i<s){var u=n[i],c=r?r(t[u],e[u],u,t,e):a;c===a&&(c=e[u]),o?go(t,u,c):co(t,u,c)}return t}function ii(e,n){return ai(e,qi(e),n)}function si(e,n){return ai(e,Zi(e),n)}function ui(e,n){return function(t,r){var o=ul(t)?xt:fo,a=n?n():{};return o(t,e,Wi(r,2),a)}}function ci(e){return xa((function(n,t){var r=-1,o=t.length,i=o>1?t[o-1]:a,s=o>2?t[2]:a;i=e.length>3&&"function"==typeof i?(o--,i):a,s&&ss(t[0],t[1],s)&&(i=o<3?a:i,o=1),n=tn(n);while(++r<o){var u=t[r];u&&e(n,u,r,i)}return n}))}function li(e,n){return function(t,r){if(null==t)return t;if(!ll(t))return e(t,r);var o=t.length,a=n?o:-1,i=tn(t);while(n?a--:++a<o)if(!1===r(i[a],a,i))break;return t}}function fi(e){return function(n,t,r){var o=-1,a=tn(n),i=r(n),s=i.length;while(s--){var u=i[e?s:++o];if(!1===t(a[u],u,a))break}return n}}function di(e,n,t){var r=n&b,o=gi(e);function a(){var n=this&&this!==ut&&this instanceof a?o:e;return n.apply(r?t:this,arguments)}return a}function pi(e){return function(n){n=Ql(n);var t=ir(n)?vr(n):a,r=t?t[0]:n.charAt(0),o=t?Va(t,1).join(""):n.slice(1);return r[e]()+o}}function hi(e){return function(n){return At(_d(qf(n).replace(Wn,"")),e,"")}}function gi(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var t=kr(e.prototype),r=e.apply(t,n);return Pl(r)?r:t}}function yi(e,n,r){var o=gi(e);function i(){var s=arguments.length,u=t(s),c=s,l=Fi(i);while(c--)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:fr(u,l);if(s-=f.length,s<r)return Mi(e,n,bi,i.placeholder,a,u,f,a,a,r-s);var d=this&&this!==ut&&this instanceof i?o:e;return wt(d,this,u)}return i}function vi(e){return function(n,t,r){var o=tn(n);if(!ll(n)){var i=Wi(t,3);n=kf(n),t=function(e){return i(o[e],e,o)}}var s=e(n,t,r);return s>-1?o[i?n[s]:s]:a}}function mi(e){return Ti((function(n){var t=n.length,r=t,o=Cr.prototype.thru;e&&n.reverse();while(r--){var i=n[r];if("function"!=typeof i)throw new an(c);if(o&&!s&&"wrapper"==Ki(i))var s=new Cr([],!0)}r=s?r:t;while(++r<t){i=n[r];var u=Ki(i),l="wrapper"==u?Ui(i):a;s=l&&ls(l[0])&&l[1]==(C|_|P|M)&&!l[4].length&&1==l[9]?s[Ki(l[0])].apply(s,l[3]):1==i.length&&ls(i)?s[u]():s.thru(i)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&ul(r))return s.plant(r).value();var o=0,a=t?n[o].apply(this,e):r;while(++o<t)a=n[o].call(this,a);return a}}))}function bi(e,n,r,o,i,s,u,c,l,f){var d=n&C,p=n&b,h=n&w,g=n&(_|k),y=n&B,v=h?a:gi(e);function m(){var a=arguments.length,b=t(a),w=a;while(w--)b[w]=arguments[w];if(g)var x=Fi(m),_=nr(b,x);if(o&&(b=ti(b,o,i,g)),s&&(b=ri(b,s,u,g)),a-=_,g&&a<f){var k=fr(b,x);return Mi(e,n,bi,m.placeholder,r,b,k,c,l,f-a)}var P=p?r:this,S=h?P[e]:e;return a=b.length,c?b=_s(b,c):y&&a>1&&b.reverse(),d&&l<a&&(b.length=l),this&&this!==ut&&this instanceof m&&(S=v||gi(S)),S.apply(P,b)}return m}function wi(e,n){return function(t,r){return Fo(t,e,n(r),{})}}function xi(e,n){return function(t,r){var o;if(t===a&&r===a)return n;if(t!==a&&(o=t),r!==a){if(o===a)return r;"string"==typeof t||"string"==typeof r?(t=ja(t),r=ja(r)):(t=za(t),r=za(r)),o=e(t,r)}return o}}function _i(e){return Ti((function(n){return n=Bt(n,Zt(Wi())),xa((function(t){var r=this;return e(n,(function(e){return wt(e,r,t)}))}))}))}function ki(e,n){n=n===a?" ":ja(n);var t=n.length;if(t<2)return t?wa(n,e):n;var r=wa(n,jn(e/yr(n)));return ir(n)?Va(vr(r),0,e).join(""):r.slice(0,e)}function Pi(e,n,r,o){var a=n&b,i=gi(e);function s(){var n=-1,u=arguments.length,c=-1,l=o.length,f=t(l+u),d=this&&this!==ut&&this instanceof s?i:e;while(++c<l)f[c]=o[c];while(u--)f[c++]=arguments[++n];return wt(d,a?r:this,f)}return s}function Si(e){return function(n,t,r){return r&&"number"!=typeof r&&ss(n,t,r)&&(t=r=a),n=Yl(n),t===a?(t=n,n=0):t=Yl(t),r=r===a?n<t?1:-1:Yl(r),ba(n,t,r,e)}}function Ci(e){return function(n,t){return"string"==typeof n&&"string"==typeof t||(n=Zl(n),t=Zl(t)),e(n,t)}}function Mi(e,n,t,r,o,i,s,u,c,l){var f=n&_,d=f?s:a,p=f?a:s,h=f?i:a,g=f?a:i;n|=f?P:S,n&=~(f?S:P),n&x||(n&=~(b|w));var y=[e,n,o,h,d,g,p,u,c,l],v=t.apply(a,y);return ls(e)&&Ps(v,y),v.placeholder=r,Ms(v,e,n)}function Bi(e){var n=Fe[e];return function(e,t){if(e=Zl(e),t=null==t?0:Kn($l(t),292),t&&Tn(e)){var r=(Ql(e)+"e").split("e"),o=n(r[0]+"e"+(+r[1]+t));return r=(Ql(o)+"e").split("e"),+(r[0]+"e"+(+r[1]-t))}return n(e)}}var Ri=tt&&1/dr(new tt([,-0]))[1]==E?function(e){return new tt(e)}:Id;function Ai(e){return function(n){var t=Ji(n);return t==Q?cr(n):t==ie?pr(n):$t(n,e(n))}}function Li(e,n,t,r,o,i,s,u){var l=n&w;if(!l&&"function"!=typeof e)throw new an(c);var f=r?r.length:0;if(f||(n&=~(P|S),r=o=a),s=s===a?s:Un($l(s),0),u=u===a?u:$l(u),f-=o?o.length:0,n&S){var d=r,p=o;r=o=a}var h=l?a:Ui(e),g=[e,n,t,r,o,d,p,i,s,u];if(h&&vs(g,h),e=g[0],n=g[1],t=g[2],r=g[3],o=g[4],u=g[9]=g[9]===a?l?0:e.length:Un(g[9]-f,0),!u&&n&(_|k)&&(n&=~(_|k)),n&&n!=b)y=n==_||n==k?yi(e,n,u):n!=P&&n!=(b|P)||o.length?bi.apply(a,g):Pi(e,n,t,r);else var y=di(e,n,t);var v=h?Sa:Ps;return Ms(v(y,g),e,n)}function Oi(e,n,t,r){return e===a||ol(e,cn[t])&&!dn.call(r,t)?n:e}function zi(e,n,t,r,o,i){return Pl(e)&&Pl(n)&&(i.set(n,e),ca(e,n,a,zi,i),i["delete"](n)),e}function ji(e){return jl(e)?a:e}function Di(e,n,t,r,o,i){var s=t&v,u=e.length,c=n.length;if(u!=c&&!(s&&c>u))return!1;var l=i.get(e),f=i.get(n);if(l&&f)return l==n&&f==e;var d=-1,p=!0,h=t&m?new qr:a;i.set(e,n),i.set(n,e);while(++d<u){var g=e[d],y=n[d];if(r)var b=s?r(y,g,d,n,e,i):r(g,y,d,e,n,i);if(b!==a){if(b)continue;p=!1;break}if(h){if(!Ot(n,(function(e,n){if(!Xt(h,n)&&(g===e||o(g,e,t,r,i)))return h.push(n)}))){p=!1;break}}else if(g!==y&&!o(g,y,t,r,i)){p=!1;break}}return i["delete"](e),i["delete"](n),p}function Ei(e,n,t,r,o,a,i){switch(t){case pe:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case de:return!(e.byteLength!=n.byteLength||!a(new xn(e),new xn(n)));case Y:case $:case ee:return ol(+e,+n);case Z:return e.name==n.name&&e.message==n.message;case ae:case se:return e==n+"";case Q:var s=cr;case ie:var u=r&v;if(s||(s=dr),e.size!=n.size&&!u)return!1;var c=i.get(e);if(c)return c==n;r|=m,i.set(e,n);var l=Di(s(e),s(n),r,o,a,i);return i["delete"](e),l;case ue:if(hr)return hr.call(e)==hr.call(n)}return!1}function Gi(e,n,t,r,o,i){var s=t&v,u=Ii(e),c=u.length,l=Ii(n),f=l.length;if(c!=f&&!s)return!1;var d=c;while(d--){var p=u[d];if(!(s?p in n:dn.call(n,p)))return!1}var h=i.get(e),g=i.get(n);if(h&&g)return h==n&&g==e;var y=!0;i.set(e,n),i.set(n,e);var m=s;while(++d<c){p=u[d];var b=e[p],w=n[p];if(r)var x=s?r(w,b,p,n,e,i):r(b,w,p,e,n,i);if(!(x===a?b===w||o(b,w,t,r,i):x)){y=!1;break}m||(m="constructor"==p)}if(y&&!m){var _=e.constructor,k=n.constructor;_==k||!("constructor"in e)||!("constructor"in n)||"function"==typeof _&&_ instanceof _&&"function"==typeof k&&k instanceof k||(y=!1)}return i["delete"](e),i["delete"](n),y}function Ti(e){return Cs(ws(e,a,$s),e+"")}function Ii(e){return Eo(e,kf,qi)}function Ni(e){return Eo(e,Pf,Zi)}var Ui=st?function(e){return st.get(e)}:Id;function Ki(e){var n=e.name+"",t=ct[n],r=dn.call(ct,n)?t.length:0;while(r--){var o=t[r],a=o.func;if(null==a||a==e)return o.name}return n}function Fi(e){var n=dn.call(xr,"placeholder")?xr:e;return n.placeholder}function Wi(){var e=xr.iteratee||Od;return e=e===Od?ta:e,arguments.length?e(arguments[0],arguments[1]):e}function Hi(e,n){var t=e.__data__;return cs(n)?t["string"==typeof n?"string":"hash"]:t.map}function Vi(e){var n=kf(e),t=n.length;while(t--){var r=n[t],o=e[r];n[t]=[r,o,hs(o)]}return n}function Yi(e,n){var t=ar(e,n);return Xo(t)?t:a}function $i(e){var n=dn.call(e,Rn),t=e[Rn];try{e[Rn]=a;var r=!0}catch(i){}var o=gn.call(e);return r&&(n?e[Rn]=t:delete e[Rn]),o}var qi=En?function(e){return null==e?[]:(e=tn(e),St(En(e),(function(n){return Sn.call(e,n)})))}:$d,Zi=En?function(e){var n=[];while(e)Rt(n,qi(e)),e=kn(e);return n}:$d,Ji=Go;function Xi(e,n,t){var r=-1,o=t.length;while(++r<o){var a=t[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":n-=i;break;case"take":n=Kn(n,e+i);break;case"takeRight":e=Un(e,n-i);break}}return{start:e,end:n}}function Qi(e){var n=e.match(Ue);return n?n[1].split(Ke):[]}function es(e,n,t){n=Wa(n,e);var r=-1,o=n.length,a=!1;while(++r<o){var i=Ls(n[r]);if(!(a=null!=e&&t(e,i)))break;e=e[i]}return a||++r!=o?a:(o=null==e?0:e.length,!!o&&kl(o)&&is(i,o)&&(ul(e)||sl(e)))}function ns(e){var n=e.length,t=new e.constructor(n);return n&&"string"==typeof e[0]&&dn.call(e,"index")&&(t.index=e.index,t.input=e.input),t}function ts(e){return"function"!=typeof e.constructor||ps(e)?{}:kr(kn(e))}function rs(e,n,t){var r=e.constructor;switch(n){case de:return qa(e);case Y:case $:return new r(+e);case pe:return Za(e,t);case he:case ge:case ye:case ve:case me:case be:case we:case xe:case _e:return Qa(e,t);case Q:return new r;case ee:case se:return new r(e);case ae:return Ja(e);case ie:return new r;case ue:return Xa(e)}}function os(e,n){var t=n.length;if(!t)return e;var r=t-1;return n[r]=(t>1?"& ":"")+n[r],n=n.join(t>2?", ":" "),e.replace(Ne,"{\n/* [wrapped with "+n+"] */\n")}function as(e){return ul(e)||sl(e)||!!(Mn&&e&&e[Mn])}function is(e,n){var t=typeof e;return n=null==n?G:n,!!n&&("number"==t||"symbol"!=t&&Xe.test(e))&&e>-1&&e%1==0&&e<n}function ss(e,n,t){if(!Pl(t))return!1;var r=typeof n;return!!("number"==r?ll(t)&&is(n,t.length):"string"==r&&n in t)&&ol(t[n],e)}function us(e,n){if(ul(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!Il(e))||(je.test(e)||!ze.test(e)||null!=n&&e in tn(n))}function cs(e){var n=typeof e;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e}function ls(e){var n=Ki(e),t=xr[n];if("function"!=typeof t||!(n in Mr.prototype))return!1;if(e===t)return!0;var r=Ui(t);return!!r&&e===r[0]}function fs(e){return!!hn&&hn in e}(qn&&Ji(new qn(new ArrayBuffer(1)))!=pe||et&&Ji(new et)!=Q||nt&&Ji(nt.resolve())!=re||tt&&Ji(new tt)!=ie||rt&&Ji(new rt)!=le)&&(Ji=function(e){var n=Go(e),t=n==te?e.constructor:a,r=t?Os(t):"";if(r)switch(r){case lt:return pe;case dt:return Q;case pt:return re;case zt:return ie;case jt:return le}return n});var ds=ln?xl:qd;function ps(e){var n=e&&e.constructor,t="function"==typeof n&&n.prototype||cn;return e===t}function hs(e){return e===e&&!Pl(e)}function gs(e,n){return function(t){return null!=t&&(t[e]===n&&(n!==a||e in tn(t)))}}function ys(e){var n=Nc(e,(function(e){return t.size===d&&t.clear(),e})),t=n.cache;return n}function vs(e,n){var t=e[1],r=n[1],o=t|r,a=o<(b|w|C),i=r==C&&t==_||r==C&&t==M&&e[7].length<=n[8]||r==(C|M)&&n[7].length<=n[8]&&t==_;if(!a&&!i)return e;r&b&&(e[2]=n[2],o|=t&b?0:x);var s=n[3];if(s){var u=e[3];e[3]=u?ti(u,s,n[4]):s,e[4]=u?fr(e[3],p):n[4]}return s=n[5],s&&(u=e[5],e[5]=u?ri(u,s,n[6]):s,e[6]=u?fr(e[5],p):n[6]),s=n[7],s&&(e[7]=s),r&C&&(e[8]=null==e[8]?n[8]:Kn(e[8],n[8])),null==e[9]&&(e[9]=n[9]),e[0]=n[0],e[1]=o,e}function ms(e){var n=[];if(null!=e)for(var t in tn(e))n.push(t);return n}function bs(e){return gn.call(e)}function ws(e,n,r){return n=Un(n===a?e.length-1:n,0),function(){var o=arguments,a=-1,i=Un(o.length-n,0),s=t(i);while(++a<i)s[a]=o[n+a];a=-1;var u=t(n+1);while(++a<n)u[a]=o[a];return u[n]=r(s),wt(e,this,u)}}function xs(e,n){return n.length<2?e:Do(e,Ba(n,0,-1))}function _s(e,n){var t=e.length,r=Kn(n.length,t),o=oi(e);while(r--){var i=n[r];e[r]=is(i,t)?o[i]:a}return e}function ks(e,n){if(("constructor"!==n||"function"!==typeof e[n])&&"__proto__"!=n)return e[n]}var Ps=Bs(Sa),Ss=zn||function(e,n){return ut.setTimeout(e,n)},Cs=Bs(Ca);function Ms(e,n,t){var r=n+"";return Cs(e,os(r,zs(Qi(r),t)))}function Bs(e){var n=0,t=0;return function(){var r=Fn(),o=O-(r-t);if(t=r,o>0){if(++n>=L)return arguments[0]}else n=0;return e.apply(a,arguments)}}function Rs(e,n){var t=-1,r=e.length,o=r-1;n=n===a?r:n;while(++t<n){var i=ma(t,o),s=e[i];e[i]=e[t],e[t]=s}return e.length=n,e}var As=ys((function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(De,(function(e,t,r,o){n.push(r?o.replace(He,"$1"):t||e)})),n}));function Ls(e){if("string"==typeof e||Il(e))return e;var n=e+"";return"0"==n&&1/e==-E?"-0":n}function Os(e){if(null!=e){try{return fn.call(e)}catch(n){}try{return e+""}catch(n){}}return""}function zs(e,n){return _t(F,(function(t){var r="_."+t[0];n&t[1]&&!Ct(e,r)&&e.push(r)})),e.sort()}function js(e){if(e instanceof Mr)return e.clone();var n=new Cr(e.__wrapped__,e.__chain__);return n.__actions__=oi(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function Ds(e,n,r){n=(r?ss(e,n,r):n===a)?1:Un($l(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];var i=0,s=0,u=t(jn(o/n));while(i<o)u[s++]=Ba(e,i,i+=n);return u}function Es(e){var n=-1,t=null==e?0:e.length,r=0,o=[];while(++n<t){var a=e[n];a&&(o[r++]=a)}return o}function Gs(){var e=arguments.length;if(!e)return[];var n=t(e-1),r=arguments[0],o=e;while(o--)n[o-1]=arguments[o];return Rt(ul(r)?oi(r):[r],Ro(n,1))}var Ts=xa((function(e,n){return fl(e)?_o(e,Ro(n,1,fl,!0)):[]})),Is=xa((function(e,n){var t=au(n);return fl(t)&&(t=a),fl(e)?_o(e,Ro(n,1,fl,!0),Wi(t,2)):[]})),Ns=xa((function(e,n){var t=au(n);return fl(t)&&(t=a),fl(e)?_o(e,Ro(n,1,fl,!0),a,t):[]}));function Us(e,n,t){var r=null==e?0:e.length;return r?(n=t||n===a?1:$l(n),Ba(e,n<0?0:n,r)):[]}function Ks(e,n,t){var r=null==e?0:e.length;return r?(n=t||n===a?1:$l(n),n=r-n,Ba(e,0,n<0?0:n)):[]}function Fs(e,n){return e&&e.length?Ta(e,Wi(n,3),!0,!0):[]}function Ws(e,n){return e&&e.length?Ta(e,Wi(n,3),!0):[]}function Hs(e,n,t,r){var o=null==e?0:e.length;return o?(t&&"number"!=typeof t&&ss(e,n,t)&&(t=0,r=o),Mo(e,n,t,r)):[]}function Vs(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=null==t?0:$l(t);return o<0&&(o=Un(r+o,0)),Gt(e,Wi(n,3),o)}function Ys(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return t!==a&&(o=$l(t),o=t<0?Un(r+o,0):Kn(o,r-1)),Gt(e,Wi(n,3),o,!0)}function $s(e){var n=null==e?0:e.length;return n?Ro(e,1):[]}function qs(e){var n=null==e?0:e.length;return n?Ro(e,E):[]}function Zs(e,n){var t=null==e?0:e.length;return t?(n=n===a?1:$l(n),Ro(e,n)):[]}function Js(e){var n=-1,t=null==e?0:e.length,r={};while(++n<t){var o=e[n];r[o[0]]=o[1]}return r}function Xs(e){return e&&e.length?e[0]:a}function Qs(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=null==t?0:$l(t);return o<0&&(o=Un(r+o,0)),Tt(e,n,o)}function eu(e){var n=null==e?0:e.length;return n?Ba(e,0,-1):[]}var nu=xa((function(e){var n=Bt(e,Ka);return n.length&&n[0]===e[0]?Ko(n):[]})),tu=xa((function(e){var n=au(e),t=Bt(e,Ka);return n===au(t)?n=a:t.pop(),t.length&&t[0]===e[0]?Ko(t,Wi(n,2)):[]})),ru=xa((function(e){var n=au(e),t=Bt(e,Ka);return n="function"==typeof n?n:a,n&&t.pop(),t.length&&t[0]===e[0]?Ko(t,a,n):[]}));function ou(e,n){return null==e?"":In.call(e,n)}function au(e){var n=null==e?0:e.length;return n?e[n-1]:a}function iu(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var o=r;return t!==a&&(o=$l(t),o=o<0?Un(r+o,0):Kn(o,r-1)),n===n?gr(e,n,o):Gt(e,Nt,o,!0)}function su(e,n){return e&&e.length?fa(e,$l(n)):a}var uu=xa(cu);function cu(e,n){return e&&e.length&&n&&n.length?ya(e,n):e}function lu(e,n,t){return e&&e.length&&n&&n.length?ya(e,n,Wi(t,2)):e}function fu(e,n,t){return e&&e.length&&n&&n.length?ya(e,n,a,t):e}var du=Ti((function(e,n){var t=null==e?0:e.length,r=yo(e,n);return va(e,Bt(n,(function(e){return is(e,t)?+e:e})).sort(ei)),r}));function pu(e,n){var t=[];if(!e||!e.length)return t;var r=-1,o=[],a=e.length;n=Wi(n,3);while(++r<a){var i=e[r];n(i,r,e)&&(t.push(i),o.push(r))}return va(e,o),t}function hu(e){return null==e?e:$n.call(e)}function gu(e,n,t){var r=null==e?0:e.length;return r?(t&&"number"!=typeof t&&ss(e,n,t)?(n=0,t=r):(n=null==n?0:$l(n),t=t===a?r:$l(t)),Ba(e,n,t)):[]}function yu(e,n){return Aa(e,n)}function vu(e,n,t){return La(e,n,Wi(t,2))}function mu(e,n){var t=null==e?0:e.length;if(t){var r=Aa(e,n);if(r<t&&ol(e[r],n))return r}return-1}function bu(e,n){return Aa(e,n,!0)}function wu(e,n,t){return La(e,n,Wi(t,2),!0)}function xu(e,n){var t=null==e?0:e.length;if(t){var r=Aa(e,n,!0)-1;if(ol(e[r],n))return r}return-1}function _u(e){return e&&e.length?Oa(e):[]}function ku(e,n){return e&&e.length?Oa(e,Wi(n,2)):[]}function Pu(e){var n=null==e?0:e.length;return n?Ba(e,1,n):[]}function Su(e,n,t){return e&&e.length?(n=t||n===a?1:$l(n),Ba(e,0,n<0?0:n)):[]}function Cu(e,n,t){var r=null==e?0:e.length;return r?(n=t||n===a?1:$l(n),n=r-n,Ba(e,n<0?0:n,r)):[]}function Mu(e,n){return e&&e.length?Ta(e,Wi(n,3),!1,!0):[]}function Bu(e,n){return e&&e.length?Ta(e,Wi(n,3)):[]}var Ru=xa((function(e){return Da(Ro(e,1,fl,!0))})),Au=xa((function(e){var n=au(e);return fl(n)&&(n=a),Da(Ro(e,1,fl,!0),Wi(n,2))})),Lu=xa((function(e){var n=au(e);return n="function"==typeof n?n:a,Da(Ro(e,1,fl,!0),a,n)}));function Ou(e){return e&&e.length?Da(e):[]}function zu(e,n){return e&&e.length?Da(e,Wi(n,2)):[]}function ju(e,n){return n="function"==typeof n?n:a,e&&e.length?Da(e,a,n):[]}function Du(e){if(!e||!e.length)return[];var n=0;return e=St(e,(function(e){if(fl(e))return n=Un(e.length,n),!0})),Yt(n,(function(n){return Bt(e,Kt(n))}))}function Eu(e,n){if(!e||!e.length)return[];var t=Du(e);return null==n?t:Bt(t,(function(e){return wt(n,a,e)}))}var Gu=xa((function(e,n){return fl(e)?_o(e,n):[]})),Tu=xa((function(e){return Na(St(e,fl))})),Iu=xa((function(e){var n=au(e);return fl(n)&&(n=a),Na(St(e,fl),Wi(n,2))})),Nu=xa((function(e){var n=au(e);return n="function"==typeof n?n:a,Na(St(e,fl),a,n)})),Uu=xa(Du);function Ku(e,n){return Ua(e||[],n||[],co)}function Fu(e,n){return Ua(e||[],n||[],Pa)}var Wu=xa((function(e){var n=e.length,t=n>1?e[n-1]:a;return t="function"==typeof t?(e.pop(),t):a,Eu(e,t)}));function Hu(e){var n=xr(e);return n.__chain__=!0,n}function Vu(e,n){return n(e),e}function Yu(e,n){return n(e)}var $u=Ti((function(e){var n=e.length,t=n?e[0]:0,r=this.__wrapped__,o=function(n){return yo(n,e)};return!(n>1||this.__actions__.length)&&r instanceof Mr&&is(t)?(r=r.slice(t,+t+(n?1:0)),r.__actions__.push({func:Yu,args:[o],thisArg:a}),new Cr(r,this.__chain__).thru((function(e){return n&&!e.length&&e.push(a),e}))):this.thru(o)}));function qu(){return Hu(this)}function Zu(){return new Cr(this.value(),this.__chain__)}function Ju(){this.__values__===a&&(this.__values__=Vl(this.value()));var e=this.__index__>=this.__values__.length,n=e?a:this.__values__[this.__index__++];return{done:e,value:n}}function Xu(){return this}function Qu(e){var n,t=this;while(t instanceof Sr){var r=js(t);r.__index__=0,r.__values__=a,n?o.__wrapped__=r:n=r;var o=r;t=t.__wrapped__}return o.__wrapped__=e,n}function ec(){var e=this.__wrapped__;if(e instanceof Mr){var n=e;return this.__actions__.length&&(n=new Mr(this)),n=n.reverse(),n.__actions__.push({func:Yu,args:[hu],thisArg:a}),new Cr(n,this.__chain__)}return this.thru(hu)}function nc(){return Ia(this.__wrapped__,this.__actions__)}var tc=ui((function(e,n,t){dn.call(e,t)?++e[t]:go(e,t,1)}));function rc(e,n,t){var r=ul(e)?Pt:So;return t&&ss(e,n,t)&&(n=a),r(e,Wi(n,3))}function oc(e,n){var t=ul(e)?St:Bo;return t(e,Wi(n,3))}var ac=vi(Vs),ic=vi(Ys);function sc(e,n){return Ro(yc(e,n),1)}function uc(e,n){return Ro(yc(e,n),E)}function cc(e,n,t){return t=t===a?1:$l(t),Ro(yc(e,n),t)}function lc(e,n){var t=ul(e)?_t:ko;return t(e,Wi(n,3))}function fc(e,n){var t=ul(e)?kt:Po;return t(e,Wi(n,3))}var dc=ui((function(e,n,t){dn.call(e,t)?e[t].push(n):go(e,t,[n])}));function pc(e,n,t,r){e=ll(e)?e:Kf(e),t=t&&!r?$l(t):0;var o=e.length;return t<0&&(t=Un(o+t,0)),Tl(e)?t<=o&&e.indexOf(n,t)>-1:!!o&&Tt(e,n,t)>-1}var hc=xa((function(e,n,r){var o=-1,a="function"==typeof n,i=ll(e)?t(e.length):[];return ko(e,(function(e){i[++o]=a?wt(n,e,r):Wo(e,n,r)})),i})),gc=ui((function(e,n,t){go(e,t,n)}));function yc(e,n){var t=ul(e)?Bt:ia;return t(e,Wi(n,3))}function vc(e,n,t,r){return null==e?[]:(ul(n)||(n=null==n?[]:[n]),t=r?a:t,ul(t)||(t=null==t?[]:[t]),da(e,n,t))}var mc=ui((function(e,n,t){e[t?0:1].push(n)}),(function(){return[[],[]]}));function bc(e,n,t){var r=ul(e)?At:Wt,o=arguments.length<3;return r(e,Wi(n,4),t,o,ko)}function wc(e,n,t){var r=ul(e)?Lt:Wt,o=arguments.length<3;return r(e,Wi(n,4),t,o,Po)}function xc(e,n){var t=ul(e)?St:Bo;return t(e,Uc(Wi(n,3)))}function _c(e){var n=ul(e)?ao:_a;return n(e)}function kc(e,n,t){n=(t?ss(e,n,t):n===a)?1:$l(n);var r=ul(e)?io:ka;return r(e,n)}function Pc(e){var n=ul(e)?so:Ma;return n(e)}function Sc(e){if(null==e)return 0;if(ll(e))return Tl(e)?yr(e):e.length;var n=Ji(e);return n==Q||n==ie?e.size:ra(e).length}function Cc(e,n,t){var r=ul(e)?Ot:Ra;return t&&ss(e,n,t)&&(n=a),r(e,Wi(n,3))}var Mc=xa((function(e,n){if(null==e)return[];var t=n.length;return t>1&&ss(e,n[0],n[1])?n=[]:t>2&&ss(n[0],n[1],n[2])&&(n=[n[0]]),da(e,Ro(n,1),[])})),Bc=On||function(){return ut.Date.now()};function Rc(e,n){if("function"!=typeof n)throw new an(c);return e=$l(e),function(){if(--e<1)return n.apply(this,arguments)}}function Ac(e,n,t){return n=t?a:n,n=e&&null==n?e.length:n,Li(e,C,a,a,a,a,n)}function Lc(e,n){var t;if("function"!=typeof n)throw new an(c);return e=$l(e),function(){return--e>0&&(t=n.apply(this,arguments)),e<=1&&(n=a),t}}var Oc=xa((function(e,n,t){var r=b;if(t.length){var o=fr(t,Fi(Oc));r|=P}return Li(e,r,n,t,o)})),zc=xa((function(e,n,t){var r=b|w;if(t.length){var o=fr(t,Fi(zc));r|=P}return Li(n,r,e,t,o)}));function jc(e,n,t){n=t?a:n;var r=Li(e,_,a,a,a,a,a,n);return r.placeholder=jc.placeholder,r}function Dc(e,n,t){n=t?a:n;var r=Li(e,k,a,a,a,a,a,n);return r.placeholder=Dc.placeholder,r}function Ec(e,n,t){var r,o,i,s,u,l,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new an(c);function g(n){var t=r,i=o;return r=o=a,f=n,s=e.apply(i,t),s}function y(e){return f=e,u=Ss(b,n),d?g(e):s}function v(e){var t=e-l,r=e-f,o=n-t;return p?Kn(o,i-r):o}function m(e){var t=e-l,r=e-f;return l===a||t>=n||t<0||p&&r>=i}function b(){var e=Bc();if(m(e))return w(e);u=Ss(b,v(e))}function w(e){return u=a,h&&r?g(e):(r=o=a,s)}function x(){u!==a&&Ya(u),f=0,r=l=o=u=a}function _(){return u===a?s:w(Bc())}function k(){var e=Bc(),t=m(e);if(r=arguments,o=this,l=e,t){if(u===a)return y(l);if(p)return Ya(u),u=Ss(b,n),g(l)}return u===a&&(u=Ss(b,n)),s}return n=Zl(n)||0,Pl(t)&&(d=!!t.leading,p="maxWait"in t,i=p?Un(Zl(t.maxWait)||0,n):i,h="trailing"in t?!!t.trailing:h),k.cancel=x,k.flush=_,k}var Gc=xa((function(e,n){return xo(e,1,n)})),Tc=xa((function(e,n,t){return xo(e,Zl(n)||0,t)}));function Ic(e){return Li(e,B)}function Nc(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new an(c);var t=function(){var r=arguments,o=n?n.apply(this,r):r[0],a=t.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return t.cache=a.set(o,i)||a,i};return t.cache=new(Nc.Cache||Fr),t}function Uc(e){if("function"!=typeof e)throw new an(c);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function Kc(e){return Lc(2,e)}Nc.Cache=Fr;var Fc=Ha((function(e,n){n=1==n.length&&ul(n[0])?Bt(n[0],Zt(Wi())):Bt(Ro(n,1),Zt(Wi()));var t=n.length;return xa((function(r){var o=-1,a=Kn(r.length,t);while(++o<a)r[o]=n[o].call(this,r[o]);return wt(e,this,r)}))})),Wc=xa((function(e,n){var t=fr(n,Fi(Wc));return Li(e,P,a,n,t)})),Hc=xa((function(e,n){var t=fr(n,Fi(Hc));return Li(e,S,a,n,t)})),Vc=Ti((function(e,n){return Li(e,M,a,a,a,n)}));function Yc(e,n){if("function"!=typeof e)throw new an(c);return n=n===a?n:$l(n),xa(e,n)}function $c(e,n){if("function"!=typeof e)throw new an(c);return n=null==n?0:Un($l(n),0),xa((function(t){var r=t[n],o=Va(t,0,n);return r&&Rt(o,r),wt(e,this,o)}))}function qc(e,n,t){var r=!0,o=!0;if("function"!=typeof e)throw new an(c);return Pl(t)&&(r="leading"in t?!!t.leading:r,o="trailing"in t?!!t.trailing:o),Ec(e,n,{leading:r,maxWait:n,trailing:o})}function Zc(e){return Ac(e,1)}function Jc(e,n){return Wc(Fa(n),e)}function Xc(){if(!arguments.length)return[];var e=arguments[0];return ul(e)?e:[e]}function Qc(e){return mo(e,y)}function el(e,n){return n="function"==typeof n?n:a,mo(e,y,n)}function nl(e){return mo(e,h|y)}function tl(e,n){return n="function"==typeof n?n:a,mo(e,h|y,n)}function rl(e,n){return null==n||wo(e,n,kf(n))}function ol(e,n){return e===n||e!==e&&n!==n}var al=Ci(To),il=Ci((function(e,n){return e>=n})),sl=Ho(function(){return arguments}())?Ho:function(e){return Sl(e)&&dn.call(e,"callee")&&!Sn.call(e,"callee")},ul=t.isArray,cl=ht?Zt(ht):Vo;function ll(e){return null!=e&&kl(e.length)&&!xl(e)}function fl(e){return Sl(e)&&ll(e)}function dl(e){return!0===e||!1===e||Sl(e)&&Go(e)==Y}var pl=Gn||qd,hl=gt?Zt(gt):Yo;function gl(e){return Sl(e)&&1===e.nodeType&&!jl(e)}function yl(e){if(null==e)return!0;if(ll(e)&&(ul(e)||"string"==typeof e||"function"==typeof e.splice||pl(e)||Nl(e)||sl(e)))return!e.length;var n=Ji(e);if(n==Q||n==ie)return!e.size;if(ps(e))return!ra(e).length;for(var t in e)if(dn.call(e,t))return!1;return!0}function vl(e,n){return $o(e,n)}function ml(e,n,t){t="function"==typeof t?t:a;var r=t?t(e,n):a;return r===a?$o(e,n,a,t):!!r}function bl(e){if(!Sl(e))return!1;var n=Go(e);return n==Z||n==q||"string"==typeof e.message&&"string"==typeof e.name&&!jl(e)}function wl(e){return"number"==typeof e&&Tn(e)}function xl(e){if(!Pl(e))return!1;var n=Go(e);return n==J||n==X||n==V||n==oe}function _l(e){return"number"==typeof e&&e==$l(e)}function kl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=G}function Pl(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function Sl(e){return null!=e&&"object"==typeof e}var Cl=yt?Zt(yt):Zo;function Ml(e,n){return e===n||Jo(e,n,Vi(n))}function Bl(e,n,t){return t="function"==typeof t?t:a,Jo(e,n,Vi(n),t)}function Rl(e){return zl(e)&&e!=+e}function Al(e){if(ds(e))throw new o(u);return Xo(e)}function Ll(e){return null===e}function Ol(e){return null==e}function zl(e){return"number"==typeof e||Sl(e)&&Go(e)==ee}function jl(e){if(!Sl(e)||Go(e)!=te)return!1;var n=kn(e);if(null===n)return!0;var t=dn.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t instanceof t&&fn.call(t)==yn}var Dl=vt?Zt(vt):Qo;function El(e){return _l(e)&&e>=-G&&e<=G}var Gl=mt?Zt(mt):ea;function Tl(e){return"string"==typeof e||!ul(e)&&Sl(e)&&Go(e)==se}function Il(e){return"symbol"==typeof e||Sl(e)&&Go(e)==ue}var Nl=bt?Zt(bt):na;function Ul(e){return e===a}function Kl(e){return Sl(e)&&Ji(e)==le}function Fl(e){return Sl(e)&&Go(e)==fe}var Wl=Ci(aa),Hl=Ci((function(e,n){return e<=n}));function Vl(e){if(!e)return[];if(ll(e))return Tl(e)?vr(e):oi(e);if(Bn&&e[Bn])return ur(e[Bn]());var n=Ji(e),t=n==Q?cr:n==ie?dr:Kf;return t(e)}function Yl(e){if(!e)return 0===e?e:0;if(e=Zl(e),e===E||e===-E){var n=e<0?-1:1;return n*T}return e===e?e:0}function $l(e){var n=Yl(e),t=n%1;return n===n?t?n-t:n:0}function ql(e){return e?vo($l(e),0,N):0}function Zl(e){if("number"==typeof e)return e;if(Il(e))return I;if(Pl(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=Pl(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=qt(e);var t=qe.test(e);return t||Je.test(e)?at(e.slice(2),t?2:8):$e.test(e)?I:+e}function Jl(e){return ai(e,Pf(e))}function Xl(e){return e?vo($l(e),-G,G):0===e?e:0}function Ql(e){return null==e?"":ja(e)}var ef=ci((function(e,n){if(ps(n)||ll(n))ai(n,kf(n),e);else for(var t in n)dn.call(n,t)&&co(e,t,n[t])})),nf=ci((function(e,n){ai(n,Pf(n),e)})),tf=ci((function(e,n,t,r){ai(n,Pf(n),e,r)})),rf=ci((function(e,n,t,r){ai(n,kf(n),e,r)})),of=Ti(yo);function af(e,n){var t=kr(e);return null==n?t:po(t,n)}var sf=xa((function(e,n){e=tn(e);var t=-1,r=n.length,o=r>2?n[2]:a;o&&ss(n[0],n[1],o)&&(r=1);while(++t<r){var i=n[t],s=Pf(i),u=-1,c=s.length;while(++u<c){var l=s[u],f=e[l];(f===a||ol(f,cn[l])&&!dn.call(e,l))&&(e[l]=i[l])}}return e})),uf=xa((function(e){return e.push(a,zi),wt(Bf,a,e)}));function cf(e,n){return Et(e,Wi(n,3),Oo)}function lf(e,n){return Et(e,Wi(n,3),zo)}function ff(e,n){return null==e?e:Ao(e,Wi(n,3),Pf)}function df(e,n){return null==e?e:Lo(e,Wi(n,3),Pf)}function pf(e,n){return e&&Oo(e,Wi(n,3))}function hf(e,n){return e&&zo(e,Wi(n,3))}function gf(e){return null==e?[]:jo(e,kf(e))}function yf(e){return null==e?[]:jo(e,Pf(e))}function vf(e,n,t){var r=null==e?a:Do(e,n);return r===a?t:r}function mf(e,n){return null!=e&&es(e,n,Io)}function bf(e,n){return null!=e&&es(e,n,No)}var wf=wi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=gn.call(n)),e[n]=t}),Md(Ld)),xf=wi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=gn.call(n)),dn.call(e,n)?e[n].push(t):e[n]=[t]}),Wi),_f=xa(Wo);function kf(e){return ll(e)?oo(e):ra(e)}function Pf(e){return ll(e)?oo(e,!0):oa(e)}function Sf(e,n){var t={};return n=Wi(n,3),Oo(e,(function(e,r,o){go(t,n(e,r,o),e)})),t}function Cf(e,n){var t={};return n=Wi(n,3),Oo(e,(function(e,r,o){go(t,r,n(e,r,o))})),t}var Mf=ci((function(e,n,t){ca(e,n,t)})),Bf=ci((function(e,n,t,r){ca(e,n,t,r)})),Rf=Ti((function(e,n){var t={};if(null==e)return t;var r=!1;n=Bt(n,(function(n){return n=Wa(n,e),r||(r=n.length>1),n})),ai(e,Ni(e),t),r&&(t=mo(t,h|g|y,ji));var o=n.length;while(o--)Ea(t,n[o]);return t}));function Af(e,n){return Of(e,Uc(Wi(n)))}var Lf=Ti((function(e,n){return null==e?{}:pa(e,n)}));function Of(e,n){if(null==e)return{};var t=Bt(Ni(e),(function(e){return[e]}));return n=Wi(n),ha(e,t,(function(e,t){return n(e,t[0])}))}function zf(e,n,t){n=Wa(n,e);var r=-1,o=n.length;o||(o=1,e=a);while(++r<o){var i=null==e?a:e[Ls(n[r])];i===a&&(r=o,i=t),e=xl(i)?i.call(e):i}return e}function jf(e,n,t){return null==e?e:Pa(e,n,t)}function Df(e,n,t,r){return r="function"==typeof r?r:a,null==e?e:Pa(e,n,t,r)}var Ef=Ai(kf),Gf=Ai(Pf);function Tf(e,n,t){var r=ul(e),o=r||pl(e)||Nl(e);if(n=Wi(n,4),null==t){var a=e&&e.constructor;t=o?r?new a:[]:Pl(e)&&xl(a)?kr(kn(e)):{}}return(o?_t:Oo)(e,(function(e,r,o){return n(t,e,r,o)})),t}function If(e,n){return null==e||Ea(e,n)}function Nf(e,n,t){return null==e?e:Ga(e,n,Fa(t))}function Uf(e,n,t,r){return r="function"==typeof r?r:a,null==e?e:Ga(e,n,Fa(t),r)}function Kf(e){return null==e?[]:Jt(e,kf(e))}function Ff(e){return null==e?[]:Jt(e,Pf(e))}function Wf(e,n,t){return t===a&&(t=n,n=a),t!==a&&(t=Zl(t),t=t===t?t:0),n!==a&&(n=Zl(n),n=n===n?n:0),vo(Zl(e),n,t)}function Hf(e,n,t){return n=Yl(n),t===a?(t=n,n=0):t=Yl(t),e=Zl(e),Uo(e,n,t)}function Vf(e,n,t){if(t&&"boolean"!=typeof t&&ss(e,n,t)&&(n=t=a),t===a&&("boolean"==typeof n?(t=n,n=a):"boolean"==typeof e&&(t=e,e=a)),e===a&&n===a?(e=0,n=1):(e=Yl(e),n===a?(n=e,e=0):n=Yl(n)),e>n){var r=e;e=n,n=r}if(t||e%1||n%1){var o=Yn();return Kn(e+o*(n-e+ot("1e-"+((o+"").length-1))),n)}return ma(e,n)}var Yf=hi((function(e,n,t){return n=n.toLowerCase(),e+(t?$f(n):n)}));function $f(e){return xd(Ql(e).toLowerCase())}function qf(e){return e=Ql(e),e&&e.replace(Qe,tr).replace(Hn,"")}function Zf(e,n,t){e=Ql(e),n=ja(n);var r=e.length;t=t===a?r:vo($l(t),0,r);var o=t;return t-=n.length,t>=0&&e.slice(t,o)==n}function Jf(e){return e=Ql(e),e&&Re.test(e)?e.replace(Me,rr):e}function Xf(e){return e=Ql(e),e&&Ge.test(e)?e.replace(Ee,"\\$&"):e}var Qf=hi((function(e,n,t){return e+(t?"-":"")+n.toLowerCase()})),ed=hi((function(e,n,t){return e+(t?" ":"")+n.toLowerCase()})),nd=pi("toLowerCase");function td(e,n,t){e=Ql(e),n=$l(n);var r=n?yr(e):0;if(!n||r>=n)return e;var o=(n-r)/2;return ki(Dn(o),t)+e+ki(jn(o),t)}function rd(e,n,t){e=Ql(e),n=$l(n);var r=n?yr(e):0;return n&&r<n?e+ki(n-r,t):e}function od(e,n,t){e=Ql(e),n=$l(n);var r=n?yr(e):0;return n&&r<n?ki(n-r,t)+e:e}function ad(e,n,t){return t||null==n?n=0:n&&(n=+n),Vn(Ql(e).replace(Te,""),n||0)}function id(e,n,t){return n=(t?ss(e,n,t):n===a)?1:$l(n),wa(Ql(e),n)}function sd(){var e=arguments,n=Ql(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var ud=hi((function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}));function cd(e,n,t){return t&&"number"!=typeof t&&ss(e,n,t)&&(n=t=a),t=t===a?N:t>>>0,t?(e=Ql(e),e&&("string"==typeof n||null!=n&&!Dl(n))&&(n=ja(n),!n&&ir(e))?Va(vr(e),0,t):e.split(n,t)):[]}var ld=hi((function(e,n,t){return e+(t?" ":"")+xd(n)}));function fd(e,n,t){return e=Ql(e),t=null==t?0:vo($l(t),0,e.length),n=ja(n),e.slice(t,t+n.length)==n}function dd(e,n,t){var r=xr.templateSettings;t&&ss(e,n,t)&&(n=a),e=Ql(e),n=tf({},n,r,Oi);var i,s,u=tf({},n.imports,r.imports,Oi),c=kf(u),f=Jt(u,c),d=0,p=n.interpolate||en,h="__p += '",g=rn((n.escape||en).source+"|"+p.source+"|"+(p===Oe?Ve:en).source+"|"+(n.evaluate||en).source+"|$","g"),y="//# sourceURL="+(dn.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jn+"]")+"\n";e.replace(g,(function(n,t,r,o,a,u){return r||(r=o),h+=e.slice(d,u).replace(nn,or),t&&(i=!0,h+="' +\n__e("+t+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=u+n.length,n})),h+="';\n";var v=dn.call(n,"variable")&&n.variable;if(v){if(We.test(v))throw new o(l)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(ke,""):h).replace(Pe,"$1").replace(Se,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=kd((function(){return Ie(c,y+"return "+h).apply(a,f)}));if(m.source=h,bl(m))throw m;return m}function pd(e){return Ql(e).toLowerCase()}function hd(e){return Ql(e).toUpperCase()}function gd(e,n,t){if(e=Ql(e),e&&(t||n===a))return qt(e);if(!e||!(n=ja(n)))return e;var r=vr(e),o=vr(n),i=Qt(r,o),s=er(r,o)+1;return Va(r,i,s).join("")}function yd(e,n,t){if(e=Ql(e),e&&(t||n===a))return e.slice(0,mr(e)+1);if(!e||!(n=ja(n)))return e;var r=vr(e),o=er(r,vr(n))+1;return Va(r,0,o).join("")}function vd(e,n,t){if(e=Ql(e),e&&(t||n===a))return e.replace(Te,"");if(!e||!(n=ja(n)))return e;var r=vr(e),o=Qt(r,vr(n));return Va(r,o).join("")}function md(e,n){var t=R,r=A;if(Pl(n)){var o="separator"in n?n.separator:o;t="length"in n?$l(n.length):t,r="omission"in n?ja(n.omission):r}e=Ql(e);var i=e.length;if(ir(e)){var s=vr(e);i=s.length}if(t>=i)return e;var u=t-yr(r);if(u<1)return r;var c=s?Va(s,0,u).join(""):e.slice(0,u);if(o===a)return c+r;if(s&&(u+=c.length-u),Dl(o)){if(e.slice(u).search(o)){var l,f=c;o.global||(o=rn(o.source,Ql(Ye.exec(o))+"g")),o.lastIndex=0;while(l=o.exec(f))var d=l.index;c=c.slice(0,d===a?u:d)}}else if(e.indexOf(ja(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r}function bd(e){return e=Ql(e),e&&Be.test(e)?e.replace(Ce,br):e}var wd=hi((function(e,n,t){return e+(t?" ":"")+n.toUpperCase()})),xd=pi("toUpperCase");function _d(e,n,t){return e=Ql(e),n=t?a:n,n===a?sr(e)?_r(e):Dt(e):e.match(n)||[]}var kd=xa((function(e,n){try{return wt(e,a,n)}catch(t){return bl(t)?t:new o(t)}})),Pd=Ti((function(e,n){return _t(n,(function(n){n=Ls(n),go(e,n,Oc(e[n],e))})),e}));function Sd(e){var n=null==e?0:e.length,t=Wi();return e=n?Bt(e,(function(e){if("function"!=typeof e[1])throw new an(c);return[t(e[0]),e[1]]})):[],xa((function(t){var r=-1;while(++r<n){var o=e[r];if(wt(o[0],this,t))return wt(o[1],this,t)}}))}function Cd(e){return bo(mo(e,h))}function Md(e){return function(){return e}}function Bd(e,n){return null==e||e!==e?n:e}var Rd=mi(),Ad=mi(!0);function Ld(e){return e}function Od(e){return ta("function"==typeof e?e:mo(e,h))}function zd(e){return sa(mo(e,h))}function jd(e,n){return ua(e,mo(n,h))}var Dd=xa((function(e,n){return function(t){return Wo(t,e,n)}})),Ed=xa((function(e,n){return function(t){return Wo(e,t,n)}}));function Gd(e,n,t){var r=kf(n),o=jo(n,r);null!=t||Pl(n)&&(o.length||!r.length)||(t=n,n=e,e=this,o=jo(n,kf(n)));var a=!(Pl(t)&&"chain"in t)||!!t.chain,i=xl(e);return _t(o,(function(t){var r=n[t];e[t]=r,i&&(e.prototype[t]=function(){var n=this.__chain__;if(a||n){var t=e(this.__wrapped__),o=t.__actions__=oi(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),t.__chain__=n,t}return r.apply(e,Rt([this.value()],arguments))})})),e}function Td(){return ut._===this&&(ut._=vn),this}function Id(){}function Nd(e){return e=$l(e),xa((function(n){return fa(n,e)}))}var Ud=_i(Bt),Kd=_i(Pt),Fd=_i(Ot);function Wd(e){return us(e)?Kt(Ls(e)):ga(e)}function Hd(e){return function(n){return null==e?a:Do(e,n)}}var Vd=Si(),Yd=Si(!0);function $d(){return[]}function qd(){return!1}function Zd(){return{}}function Jd(){return""}function Xd(){return!0}function Qd(e,n){if(e=$l(e),e<1||e>G)return[];var t=N,r=Kn(e,N);n=Wi(n),e-=N;var o=Yt(r,n);while(++t<e)n(t);return o}function ep(e){return ul(e)?Bt(e,Ls):Il(e)?[e]:oi(As(Ql(e)))}function np(e){var n=++pn;return Ql(e)+n}var tp=xi((function(e,n){return e+n}),0),rp=Bi("ceil"),op=xi((function(e,n){return e/n}),1),ap=Bi("floor");function ip(e){return e&&e.length?Co(e,Ld,To):a}function sp(e,n){return e&&e.length?Co(e,Wi(n,2),To):a}function up(e){return Ut(e,Ld)}function cp(e,n){return Ut(e,Wi(n,2))}function lp(e){return e&&e.length?Co(e,Ld,aa):a}function fp(e,n){return e&&e.length?Co(e,Wi(n,2),aa):a}var dp=xi((function(e,n){return e*n}),1),pp=Bi("round"),hp=xi((function(e,n){return e-n}),0);function gp(e){return e&&e.length?Vt(e,Ld):0}function yp(e,n){return e&&e.length?Vt(e,Wi(n,2)):0}return xr.after=Rc,xr.ary=Ac,xr.assign=ef,xr.assignIn=nf,xr.assignInWith=tf,xr.assignWith=rf,xr.at=of,xr.before=Lc,xr.bind=Oc,xr.bindAll=Pd,xr.bindKey=zc,xr.castArray=Xc,xr.chain=Hu,xr.chunk=Ds,xr.compact=Es,xr.concat=Gs,xr.cond=Sd,xr.conforms=Cd,xr.constant=Md,xr.countBy=tc,xr.create=af,xr.curry=jc,xr.curryRight=Dc,xr.debounce=Ec,xr.defaults=sf,xr.defaultsDeep=uf,xr.defer=Gc,xr.delay=Tc,xr.difference=Ts,xr.differenceBy=Is,xr.differenceWith=Ns,xr.drop=Us,xr.dropRight=Ks,xr.dropRightWhile=Fs,xr.dropWhile=Ws,xr.fill=Hs,xr.filter=oc,xr.flatMap=sc,xr.flatMapDeep=uc,xr.flatMapDepth=cc,xr.flatten=$s,xr.flattenDeep=qs,xr.flattenDepth=Zs,xr.flip=Ic,xr.flow=Rd,xr.flowRight=Ad,xr.fromPairs=Js,xr.functions=gf,xr.functionsIn=yf,xr.groupBy=dc,xr.initial=eu,xr.intersection=nu,xr.intersectionBy=tu,xr.intersectionWith=ru,xr.invert=wf,xr.invertBy=xf,xr.invokeMap=hc,xr.iteratee=Od,xr.keyBy=gc,xr.keys=kf,xr.keysIn=Pf,xr.map=yc,xr.mapKeys=Sf,xr.mapValues=Cf,xr.matches=zd,xr.matchesProperty=jd,xr.memoize=Nc,xr.merge=Mf,xr.mergeWith=Bf,xr.method=Dd,xr.methodOf=Ed,xr.mixin=Gd,xr.negate=Uc,xr.nthArg=Nd,xr.omit=Rf,xr.omitBy=Af,xr.once=Kc,xr.orderBy=vc,xr.over=Ud,xr.overArgs=Fc,xr.overEvery=Kd,xr.overSome=Fd,xr.partial=Wc,xr.partialRight=Hc,xr.partition=mc,xr.pick=Lf,xr.pickBy=Of,xr.property=Wd,xr.propertyOf=Hd,xr.pull=uu,xr.pullAll=cu,xr.pullAllBy=lu,xr.pullAllWith=fu,xr.pullAt=du,xr.range=Vd,xr.rangeRight=Yd,xr.rearg=Vc,xr.reject=xc,xr.remove=pu,xr.rest=Yc,xr.reverse=hu,xr.sampleSize=kc,xr.set=jf,xr.setWith=Df,xr.shuffle=Pc,xr.slice=gu,xr.sortBy=Mc,xr.sortedUniq=_u,xr.sortedUniqBy=ku,xr.split=cd,xr.spread=$c,xr.tail=Pu,xr.take=Su,xr.takeRight=Cu,xr.takeRightWhile=Mu,xr.takeWhile=Bu,xr.tap=Vu,xr.throttle=qc,xr.thru=Yu,xr.toArray=Vl,xr.toPairs=Ef,xr.toPairsIn=Gf,xr.toPath=ep,xr.toPlainObject=Jl,xr.transform=Tf,xr.unary=Zc,xr.union=Ru,xr.unionBy=Au,xr.unionWith=Lu,xr.uniq=Ou,xr.uniqBy=zu,xr.uniqWith=ju,xr.unset=If,xr.unzip=Du,xr.unzipWith=Eu,xr.update=Nf,xr.updateWith=Uf,xr.values=Kf,xr.valuesIn=Ff,xr.without=Gu,xr.words=_d,xr.wrap=Jc,xr.xor=Tu,xr.xorBy=Iu,xr.xorWith=Nu,xr.zip=Uu,xr.zipObject=Ku,xr.zipObjectDeep=Fu,xr.zipWith=Wu,xr.entries=Ef,xr.entriesIn=Gf,xr.extend=nf,xr.extendWith=tf,Gd(xr,xr),xr.add=tp,xr.attempt=kd,xr.camelCase=Yf,xr.capitalize=$f,xr.ceil=rp,xr.clamp=Wf,xr.clone=Qc,xr.cloneDeep=nl,xr.cloneDeepWith=tl,xr.cloneWith=el,xr.conformsTo=rl,xr.deburr=qf,xr.defaultTo=Bd,xr.divide=op,xr.endsWith=Zf,xr.eq=ol,xr.escape=Jf,xr.escapeRegExp=Xf,xr.every=rc,xr.find=ac,xr.findIndex=Vs,xr.findKey=cf,xr.findLast=ic,xr.findLastIndex=Ys,xr.findLastKey=lf,xr.floor=ap,xr.forEach=lc,xr.forEachRight=fc,xr.forIn=ff,xr.forInRight=df,xr.forOwn=pf,xr.forOwnRight=hf,xr.get=vf,xr.gt=al,xr.gte=il,xr.has=mf,xr.hasIn=bf,xr.head=Xs,xr.identity=Ld,xr.includes=pc,xr.indexOf=Qs,xr.inRange=Hf,xr.invoke=_f,xr.isArguments=sl,xr.isArray=ul,xr.isArrayBuffer=cl,xr.isArrayLike=ll,xr.isArrayLikeObject=fl,xr.isBoolean=dl,xr.isBuffer=pl,xr.isDate=hl,xr.isElement=gl,xr.isEmpty=yl,xr.isEqual=vl,xr.isEqualWith=ml,xr.isError=bl,xr.isFinite=wl,xr.isFunction=xl,xr.isInteger=_l,xr.isLength=kl,xr.isMap=Cl,xr.isMatch=Ml,xr.isMatchWith=Bl,xr.isNaN=Rl,xr.isNative=Al,xr.isNil=Ol,xr.isNull=Ll,xr.isNumber=zl,xr.isObject=Pl,xr.isObjectLike=Sl,xr.isPlainObject=jl,xr.isRegExp=Dl,xr.isSafeInteger=El,xr.isSet=Gl,xr.isString=Tl,xr.isSymbol=Il,xr.isTypedArray=Nl,xr.isUndefined=Ul,xr.isWeakMap=Kl,xr.isWeakSet=Fl,xr.join=ou,xr.kebabCase=Qf,xr.last=au,xr.lastIndexOf=iu,xr.lowerCase=ed,xr.lowerFirst=nd,xr.lt=Wl,xr.lte=Hl,xr.max=ip,xr.maxBy=sp,xr.mean=up,xr.meanBy=cp,xr.min=lp,xr.minBy=fp,xr.stubArray=$d,xr.stubFalse=qd,xr.stubObject=Zd,xr.stubString=Jd,xr.stubTrue=Xd,xr.multiply=dp,xr.nth=su,xr.noConflict=Td,xr.noop=Id,xr.now=Bc,xr.pad=td,xr.padEnd=rd,xr.padStart=od,xr.parseInt=ad,xr.random=Vf,xr.reduce=bc,xr.reduceRight=wc,xr.repeat=id,xr.replace=sd,xr.result=zf,xr.round=pp,xr.runInContext=e,xr.sample=_c,xr.size=Sc,xr.snakeCase=ud,xr.some=Cc,xr.sortedIndex=yu,xr.sortedIndexBy=vu,xr.sortedIndexOf=mu,xr.sortedLastIndex=bu,xr.sortedLastIndexBy=wu,xr.sortedLastIndexOf=xu,xr.startCase=ld,xr.startsWith=fd,xr.subtract=hp,xr.sum=gp,xr.sumBy=yp,xr.template=dd,xr.times=Qd,xr.toFinite=Yl,xr.toInteger=$l,xr.toLength=ql,xr.toLower=pd,xr.toNumber=Zl,xr.toSafeInteger=Xl,xr.toString=Ql,xr.toUpper=hd,xr.trim=gd,xr.trimEnd=yd,xr.trimStart=vd,xr.truncate=md,xr.unescape=bd,xr.uniqueId=np,xr.upperCase=wd,xr.upperFirst=xd,xr.each=lc,xr.eachRight=fc,xr.first=Xs,Gd(xr,function(){var e={};return Oo(xr,(function(n,t){dn.call(xr.prototype,t)||(e[t]=n)})),e}(),{chain:!1}),xr.VERSION=i,_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){xr[e].placeholder=xr})),_t(["drop","take"],(function(e,n){Mr.prototype[e]=function(t){t=t===a?1:Un($l(t),0);var r=this.__filtered__&&!n?new Mr(this):this.clone();return r.__filtered__?r.__takeCount__=Kn(t,r.__takeCount__):r.__views__.push({size:Kn(t,N),type:e+(r.__dir__<0?"Right":"")}),r},Mr.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}})),_t(["filter","map","takeWhile"],(function(e,n){var t=n+1,r=t==z||t==D;Mr.prototype[e]=function(e){var n=this.clone();return n.__iteratees__.push({iteratee:Wi(e,3),type:t}),n.__filtered__=n.__filtered__||r,n}})),_t(["head","last"],(function(e,n){var t="take"+(n?"Right":"");Mr.prototype[e]=function(){return this[t](1).value()[0]}})),_t(["initial","tail"],(function(e,n){var t="drop"+(n?"":"Right");Mr.prototype[e]=function(){return this.__filtered__?new Mr(this):this[t](1)}})),Mr.prototype.compact=function(){return this.filter(Ld)},Mr.prototype.find=function(e){return this.filter(e).head()},Mr.prototype.findLast=function(e){return this.reverse().find(e)},Mr.prototype.invokeMap=xa((function(e,n){return"function"==typeof e?new Mr(this):this.map((function(t){return Wo(t,e,n)}))})),Mr.prototype.reject=function(e){return this.filter(Uc(Wi(e)))},Mr.prototype.slice=function(e,n){e=$l(e);var t=this;return t.__filtered__&&(e>0||n<0)?new Mr(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==a&&(n=$l(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},Mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Mr.prototype.toArray=function(){return this.take(N)},Oo(Mr.prototype,(function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=xr[r?"take"+("last"==n?"Right":""):n],i=r||/^find/.test(n);o&&(xr.prototype[n]=function(){var n=this.__wrapped__,s=r?[1]:arguments,u=n instanceof Mr,c=s[0],l=u||ul(n),f=function(e){var n=o.apply(xr,Rt([e],s));return r&&d?n[0]:n};l&&t&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=i&&!d,g=u&&!p;if(!i&&l){n=g?n:new Mr(this);var y=e.apply(n,s);return y.__actions__.push({func:Yu,args:[f],thisArg:a}),new Cr(y,d)}return h&&g?e.apply(this,s):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var n=sn[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);xr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return n.apply(ul(o)?o:[],e)}return this[t]((function(t){return n.apply(ul(t)?t:[],e)}))}})),Oo(Mr.prototype,(function(e,n){var t=xr[n];if(t){var r=t.name+"";dn.call(ct,r)||(ct[r]=[]),ct[r].push({name:n,func:t})}})),ct[bi(a,w).name]=[{name:"wrapper",func:a}],Mr.prototype.clone=Br,Mr.prototype.reverse=Rr,Mr.prototype.value=Ar,xr.prototype.at=$u,xr.prototype.chain=qu,xr.prototype.commit=Zu,xr.prototype.next=Ju,xr.prototype.plant=Qu,xr.prototype.reverse=ec,xr.prototype.toJSON=xr.prototype.valueOf=xr.prototype.value=nc,xr.prototype.first=xr.prototype.head,Bn&&(xr.prototype[Bn]=Xu),xr},Pr=kr();ut._=Pr,o=function(){return Pr}.call(n,t,n,r),o===a||(r.exports=o)}).call(this)}).call(this,t("d8fc"),t("e55b")(e))},bd5a:function(e,n){e.exports=!1},c678:function(e,n){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c698:function(e,n,t){var r=t("57ac"),o=t("1947"),a=t("fd86"),i=a("species");e.exports=function(e,n){var t,a=r(e).constructor;return void 0===a||void 0==(t=r(a)[i])?n:o(t)}},c88a:function(e,n,t){"use strict";var r=t("ce17"),o=t("ac27"),a=t("ba28"),i=t("3df7"),s=t("0ff2"),u=t("f246"),c=t("2153"),l=Object.assign,f=Object.defineProperty;e.exports=!l||o((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},t=Symbol(),o="abcdefghijklmnopqrst";return e[t]=7,o.split("").forEach((function(e){n[e]=e})),7!=l({},e)[t]||a(l({},n)).join("")!=o}))?function(e,n){var t=u(e),o=arguments.length,l=1,f=i.f,d=s.f;while(o>l){var p,h=c(arguments[l++]),g=f?a(h).concat(f(h)):a(h),y=g.length,v=0;while(y>v)p=g[v++],r&&!d.call(h,p)||(t[p]=h[p])}return t}:l},c944:function(e,n,t){var r=t("fd86"),o=r("toStringTag"),a={};a[o]="z",e.exports="[object z]"===String(a)},c981:function(e,n,t){var r=t("c944"),o=t("fd84"),a=t("5116");r||o(Object.prototype,"toString",a,{unsafe:!0})},ca24:function(e,n,t){var r=t("1061"),o=t("8dac"),a=t("129e"),i=t("41d6").f,s=t("ddc5"),u=t("9200"),c=s("meta"),l=0,f=Object.isExtensible||function(){return!0},d=function(e){i(e,c,{value:{objectID:"O"+ ++l,weakData:{}}})},p=function(e,n){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!f(e))return"F";if(!n)return"E";d(e)}return e[c].objectID},h=function(e,n){if(!a(e,c)){if(!f(e))return!0;if(!n)return!1;d(e)}return e[c].weakData},g=function(e){return u&&y.REQUIRED&&f(e)&&!a(e,c)&&d(e),e},y=e.exports={REQUIRED:!1,fastKey:p,getWeakData:h,onFreeze:g};r[c]=!0},ca80:function(e,n,t){"use strict";var r=t("9c0c"),o=t("d684"),a=t("4037"),i=t("2673"),s=t("4116"),u="Array Iterator",c=i.set,l=i.getterFor(u);e.exports=s(Array,"Array",(function(e,n){c(this,{type:u,target:r(e),index:0,kind:n})}),(function(){var e=l(this),n=e.target,t=e.kind,r=e.index++;return!n||r>=n.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==t?{value:r,done:!1}:"values"==t?{value:n[r],done:!1}:{value:[r,n[r]],done:!1}}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},cad9:function(e,n,t){(function(e){function t(e,n){for(var t=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),t++):t&&(e.splice(r,1),t--)}if(n)for(;t--;t)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var n,t=0,r=-1,o=!0;for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){t=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(t,r)}function o(e,n){if(e.filter)return e.filter(n);for(var t=[],r=0;r<e.length;r++)n(e[r],r,e)&&t.push(e[r]);return t}n.resolve=function(){for(var n="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var i=a>=0?arguments[a]:e.cwd();if("string"!==typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(n=i+"/"+n,r="/"===i.charAt(0))}return n=t(o(n.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+n||"."},n.normalize=function(e){var r=n.isAbsolute(e),i="/"===a(e,-1);return e=t(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(o(e,(function(e,n){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var n=0;n<e.length;n++)if(""!==e[n])break;for(var t=e.length-1;t>=0;t--)if(""!==e[t])break;return n>t?[]:e.slice(n,t-n+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),a=r(t.split("/")),i=Math.min(o.length,a.length),s=i,u=0;u<i;u++)if(o[u]!==a[u]){s=u;break}var c=[];for(u=s;u<o.length;u++)c.push("..");return c=c.concat(a.slice(s)),c.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var n=e.charCodeAt(0),t=47===n,r=-1,o=!0,a=e.length-1;a>=1;--a)if(n=e.charCodeAt(a),47===n){if(!o){r=a;break}}else o=!1;return-1===r?t?"/":".":t&&1===r?"/":e.slice(0,r)},n.basename=function(e,n){var t=r(e);return n&&t.substr(-1*n.length)===n&&(t=t.substr(0,t.length-n.length)),t},n.extname=function(e){"string"!==typeof e&&(e+="");for(var n=-1,t=0,r=-1,o=!0,a=0,i=e.length-1;i>=0;--i){var s=e.charCodeAt(i);if(47!==s)-1===r&&(o=!1,r=i+1),46===s?-1===n?n=i:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){t=i+1;break}}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===t+1?"":e.slice(n,r)};var a="b"==="ab".substr(-1)?function(e,n,t){return e.substr(n,t)}:function(e,n,t){return n<0&&(n=e.length+n),e.substr(n,t)}}).call(this,t("0418"))},cba7:function(e,n,t){"use strict";var r=t("a9eb"),o=t("41d6"),a=t("9f69");e.exports=function(e,n,t){var i=r(n);i in e?o.f(e,i,a(0,t)):e[i]=t}},cbdb:function(e,n,t){"use strict";t("4f51");var r=t("fd84"),o=t("8bc5"),a=t("ac27"),i=t("fd86"),s=t("ff46"),u=i("species"),c=RegExp.prototype,l=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=function(){return"$0"==="a".replace(/./,"$0")}(),d=i("replace"),p=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),h=!a((function(){var e=/(?:)/,n=e.exec;e.exec=function(){return n.apply(this,arguments)};var t="ab".split(e);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}));e.exports=function(e,n,t,d){var g=i(e),y=!a((function(){var n={};return n[g]=function(){return 7},7!=""[e](n)})),v=y&&!a((function(){var n=!1,t=/a/;return"split"===e&&(t={},t.constructor={},t.constructor[u]=function(){return t},t.flags="",t[g]=/./[g]),t.exec=function(){return n=!0,null},t[g](""),!n}));if(!y||!v||"replace"===e&&(!l||!f||p)||"split"===e&&!h){var m=/./[g],b=t(g,""[e],(function(e,n,t,r,a){var i=n.exec;return i===o||i===c.exec?y&&!a?{done:!0,value:m.call(n,t,r)}:{done:!0,value:e.call(t,n,r)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),w=b[0],x=b[1];r(String.prototype,e,w),r(c,g,2==n?function(e,n){return x.call(e,this,n)}:function(e){return x.call(e,this)})}d&&s(c[g],"sham",!0)}},cbe1:function(e,n,t){var r=t("8dac"),o=t("9ebe"),a=t("fd86"),i=a("species");e.exports=function(e,n){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)?r(t)&&(t=t[i],null===t&&(t=void 0)):t=void 0),new(void 0===t?Array:t)(0===n?0:n)}},cd16:function(e,n,t){var r=t("9c0c"),o=t("43b7"),a=t("12aa"),i=function(e){return function(n,t,i){var s,u=r(n),c=o(u.length),l=a(i,c);if(e&&t!=t){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===t)return e||l||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},ce17:function(e,n,t){var r=t("ac27");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d0b1:function(e,n,t){"use strict";var r=t("ac27");e.exports=function(e,n){var t=[][e];return!!t&&r((function(){t.call(null,n||function(){throw 1},1)}))}},d22c:function(e,n,t){"use strict";var r=t("f246"),o=t("12aa"),a=t("43b7");e.exports=function(e){var n=r(this),t=a(n.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,t),u=i>2?arguments[2]:void 0,c=void 0===u?t:o(u,t);while(c>s)n[s++]=e;return n}},d5b1:function(e,n,t){var r=t("ac27");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},d684:function(e,n,t){var r=t("fd86"),o=t("e3d0"),a=t("41d6"),i=r("unscopables"),s=Array.prototype;void 0==s[i]&&a.f(s,i,{configurable:!0,value:o(null)}),e.exports=function(e){s[i][e]=!0}},d863:function(e,n,t){"use strict";var r=t("41d6").f,o=t("e3d0"),a=t("392e"),i=t("6e4e"),s=t("191b"),u=t("5c27"),c=t("4116"),l=t("a1a4"),f=t("ce17"),d=t("ca24").fastKey,p=t("2673"),h=p.set,g=p.getterFor;e.exports={getConstructor:function(e,n,t,c){var l=e((function(e,r){s(e,l,n),h(e,{type:n,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=r&&u(r,e[c],{that:e,AS_ENTRIES:t})})),p=g(n),y=function(e,n,t){var r,o,a=p(e),i=v(e,n);return i?i.value=t:(a.last=i={index:o=d(n,!0),key:n,value:t,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=i),r&&(r.next=i),f?a.size++:e.size++,"F"!==o&&(a.index[o]=i)),e},v=function(e,n){var t,r=p(e),o=d(n);if("F"!==o)return r.index[o];for(t=r.first;t;t=t.next)if(t.key==n)return t};return a(l.prototype,{clear:function(){var e=this,n=p(e),t=n.index,r=n.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;n.first=n.last=void 0,f?n.size=0:e.size=0},delete:function(e){var n=this,t=p(n),r=v(n,e);if(r){var o=r.next,a=r.previous;delete t.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),t.first==r&&(t.first=o),t.last==r&&(t.last=a),f?t.size--:n.size--}return!!r},forEach:function(e){var n,t=p(this),r=i(e,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.next:t.first){r(n.value,n.key,this);while(n&&n.removed)n=n.previous}},has:function(e){return!!v(this,e)}}),a(l.prototype,t?{get:function(e){var n=v(this,e);return n&&n.value},set:function(e,n){return y(this,0===e?0:e,n)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return p(this).size}}),l},setStrong:function(e,n,t){var r=n+" Iterator",o=g(n),a=g(r);c(e,n,(function(e,n){h(this,{type:r,target:e,state:o(e),kind:n,last:void 0})}),(function(){var e=a(this),n=e.kind,t=e.last;while(t&&t.removed)t=t.previous;return e.target&&(e.last=t=t?t.next:e.state.first)?"keys"==n?{value:t.key,done:!1}:"values"==n?{value:t.value,done:!1}:{value:[t.key,t.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),t?"entries":"values",!t,!0),l(n)}}},d8fc:function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(r){"object"===typeof window&&(t=window)}e.exports=t},da71:function(e,n,t){"use strict";var r=t("7f82"),o=t("2153"),a=t("9c0c"),i=t("d0b1"),s=[].join,u=o!=Object,c=i("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s.call(a(this),void 0===e?",":e)}})},dbf5:function(e,n,t){var r=t("38b4"),o=t("4037"),a=t("fd86"),i=a("iterator");e.exports=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},dd2b:function(e,n,t){(function(e){var r;(function(e,o,a){function i(e){var n=this,t=c();n.next=function(){var e=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=t(" "),n.s1=t(" "),n.s2=t(" "),n.s0-=t(e),n.s0<0&&(n.s0+=1),n.s1-=t(e),n.s1<0&&(n.s1+=1),n.s2-=t(e),n.s2<0&&(n.s2+=1),t=null}function s(e,n){return n.c=e.c,n.s0=e.s0,n.s1=e.s1,n.s2=e.s2,n}function u(e,n){var t=new i(e),r=n&&n.state,o=t.next;return o.int32=function(){return 4294967296*t.next()|0},o.double=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.quick=o,r&&("object"==typeof r&&s(r,t),o.state=function(){return s(t,{})}),o}function c(){var e=4022871197,n=function(n){n=String(n);for(var t=0;t<n.length;t++){e+=n.charCodeAt(t);var r=.02519603282416938*e;e=r>>>0,r-=e,r*=e,e=r>>>0,r-=e,e+=4294967296*r}return 2.3283064365386963e-10*(e>>>0)};return n}o&&o.exports?o.exports=u:t("f9ad")&&t("ba96")?(r=function(){return u}.call(n,t,n,o),void 0===r||(o.exports=r)):this.alea=u})(0,e,t("f9ad"))}).call(this,t("e55b")(e))},dd7c:function(e,n,t){var r=t("28b5"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},ddc5:function(e,n){var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},df11:function(e,n,t){var r=t("68de"),o=t("60cb"),a=t("9daf"),i=t("ff46");for(var s in o){var u=r[s],c=u&&u.prototype;if(c&&c.forEach!==a)try{i(c,"forEach",a)}catch(l){c.forEach=a}}},e3d0:function(e,n,t){var r,o=t("57ac"),a=t("727c"),i=t("338e"),s=t("1061"),u=t("0716"),c=t("77cc"),l=t("71d2"),f=">",d="<",p="prototype",h="script",g=l("IE_PROTO"),y=function(){},v=function(e){return d+h+f+e+d+"/"+h+f},m=function(e){e.write(v("")),e.close();var n=e.parentWindow.Object;return e=null,n},b=function(){var e,n=c("iframe"),t="java"+h+":";return n.style.display="none",u.appendChild(n),n.src=String(t),e=n.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},w=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(n){}w=r?m(r):b();var e=i.length;while(e--)delete w[p][i[e]];return w()};s[g]=!0,e.exports=Object.create||function(e,n){var t;return null!==e?(y[p]=o(e),t=new y,y[p]=null,t[g]=e):t=w(),void 0===n?t:a(t,n)}},e55b:function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},e710:function(e,n,t){},e908:function(e,n,t){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var n=Object.keys(e),t={},r=0;r<n.length;r++)t[n[r]]=Object.getOwnPropertyDescriptor(e,n[r]);return t},o=/%[sdj%]/g;n.format=function(e){if(!_(e)){for(var n=[],t=0;t<arguments.length;t++)n.push(s(arguments[t]));return n.join(" ")}t=1;for(var r=arguments,a=r.length,i=String(e).replace(o,(function(e){if("%%"===e)return"%";if(t>=a)return e;switch(e){case"%s":return String(r[t++]);case"%d":return Number(r[t++]);case"%j":try{return JSON.stringify(r[t++])}catch(n){return"[Circular]"}default:return e}})),u=r[t];t<a;u=r[++t])b(u)||!C(u)?i+=" "+u:i+=" "+s(u);return i},n.deprecate=function(t,r){if("undefined"!==typeof e&&!0===e.noDeprecation)return t;if("undefined"===typeof e)return function(){return n.deprecate(t,r).apply(this,arguments)};var o=!1;function a(){if(!o){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),o=!0}return t.apply(this,arguments)}return a};var a,i={};function s(e,t){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(t)?r.showHidden=t:t&&n._extend(r,t),P(r.showHidden)&&(r.showHidden=!1),P(r.depth)&&(r.depth=2),P(r.colors)&&(r.colors=!1),P(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),f(r,e,r.depth)}function u(e,n){var t=s.styles[n];return t?"["+s.colors[t][0]+"m"+e+"["+s.colors[t][1]+"m":e}function c(e,n){return e}function l(e){var n={};return e.forEach((function(e,t){n[e]=!0})),n}function f(e,t,r){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(r,e);return _(o)||(o=f(e,o,r)),o}var a=d(e,t);if(a)return a;var i=Object.keys(t),s=l(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),B(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return p(t);if(0===i.length){if(R(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(M(t))return e.stylize(Date.prototype.toString.call(t),"date");if(B(t))return p(t)}var c,m="",b=!1,w=["{","}"];if(v(t)&&(b=!0,w=["[","]"]),R(t)){var x=t.name?": "+t.name:"";m=" [Function"+x+"]"}return S(t)&&(m=" "+RegExp.prototype.toString.call(t)),M(t)&&(m=" "+Date.prototype.toUTCString.call(t)),B(t)&&(m=" "+p(t)),0!==i.length||b&&0!=t.length?r<0?S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=b?h(e,t,r,s,i):i.map((function(n){return g(e,t,r,s,n,b)})),e.seen.pop(),y(c,m,w)):w[0]+m+w[1]}function d(e,n){if(P(n))return e.stylize("undefined","undefined");if(_(n)){var t="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}return x(n)?e.stylize(""+n,"number"):m(n)?e.stylize(""+n,"boolean"):b(n)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,n,t,r,o){for(var a=[],i=0,s=n.length;i<s;++i)D(n,String(i))?a.push(g(e,n,t,r,String(i),!0)):a.push("");return o.forEach((function(o){o.match(/^\d+$/)||a.push(g(e,n,t,r,o,!0))})),a}function g(e,n,t,r,o,a){var i,s,u;if(u=Object.getOwnPropertyDescriptor(n,o)||{value:n[o]},u.get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),D(r,o)||(i="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=b(t)?f(e,u.value,null):f(e,u.value,t-1),s.indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),P(i)){if(a&&o.match(/^\d+$/))return s;i=JSON.stringify(""+o),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+s}function y(e,n,t){var r=e.reduce((function(e,n){return n.indexOf("\n")>=0&&0,e+n.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?t[0]+(""===n?"":n+"\n ")+" "+e.join(",\n ")+" "+t[1]:t[0]+n+" "+e.join(", ")+" "+t[1]}function v(e){return Array.isArray(e)}function m(e){return"boolean"===typeof e}function b(e){return null===e}function w(e){return null==e}function x(e){return"number"===typeof e}function _(e){return"string"===typeof e}function k(e){return"symbol"===typeof e}function P(e){return void 0===e}function S(e){return C(e)&&"[object RegExp]"===L(e)}function C(e){return"object"===typeof e&&null!==e}function M(e){return C(e)&&"[object Date]"===L(e)}function B(e){return C(e)&&("[object Error]"===L(e)||e instanceof Error)}function R(e){return"function"===typeof e}function A(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function L(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(t){if(P(a)&&(a=Object({NODE_ENV:"production",BASE_URL:"/"}).NODE_DEBUG||""),t=t.toUpperCase(),!i[t])if(new RegExp("\\b"+t+"\\b","i").test(a)){var r=e.pid;i[t]=function(){var e=n.format.apply(n,arguments);console.error("%s %d: %s",t,r,e)}}else i[t]=function(){};return i[t]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=v,n.isBoolean=m,n.isNull=b,n.isNullOrUndefined=w,n.isNumber=x,n.isString=_,n.isSymbol=k,n.isUndefined=P,n.isRegExp=S,n.isObject=C,n.isDate=M,n.isError=B,n.isFunction=R,n.isPrimitive=A,n.isBuffer=t("3e17");var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var e=new Date,n=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),z[e.getMonth()],n].join(" ")}function D(e,n){return Object.prototype.hasOwnProperty.call(e,n)}n.log=function(){console.log("%s - %s",j(),n.format.apply(n,arguments))},n.inherits=t("9416"),n._extend=function(e,n){if(!n||!C(n))return e;var t=Object.keys(n),r=t.length;while(r--)e[t[r]]=n[t[r]];return e};var E="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function G(e,n){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return n(e)}function T(n){if("function"!==typeof n)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var o=t.pop();if("function"!==typeof o)throw new TypeError("The last argument must be of type Function");var a=this,i=function(){return o.apply(a,arguments)};n.apply(this,t).then((function(n){e.nextTick(i,null,n)}),(function(n){e.nextTick(G,n,i)}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(n)),Object.defineProperties(t,r(n)),t}n.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(E&&e[E]){var n=e[E];if("function"!==typeof n)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,E,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var n,t,r=new Promise((function(e,r){n=e,t=r})),o=[],a=0;a<arguments.length;a++)o.push(arguments[a]);o.push((function(e,r){e?t(e):n(r)}));try{e.apply(this,o)}catch(i){t(i)}return r}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),E&&Object.defineProperty(n,E,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,r(e))},n.promisify.custom=E,n.callbackify=T}).call(this,t("0418"))},ec9f:function(e,n,t){"use strict";var r=t("7f82"),o=t("b222").findIndex,a=t("d684"),i="findIndex",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},f124:function(e,n,t){(function(e){var r;(function(e,o,a){function i(e){var n=this,t="";n.next=function(){var e=n.x^n.x>>>2;return n.x=n.y,n.y=n.z,n.z=n.w,n.w=n.v,(n.d=n.d+362437|0)+(n.v=n.v^n.v<<4^e^e<<1)|0},n.x=0,n.y=0,n.z=0,n.w=0,n.v=0,e===(0|e)?n.x=e:t+=e;for(var r=0;r<t.length+64;r++)n.x^=0|t.charCodeAt(r),r==t.length&&(n.d=n.x<<10^n.x>>>4),n.next()}function s(e,n){return n.x=e.x,n.y=e.y,n.z=e.z,n.w=e.w,n.v=e.v,n.d=e.d,n}function u(e,n){var t=new i(e),r=n&&n.state,o=function(){return(t.next()>>>0)/4294967296};return o.double=function(){do{var e=t.next()>>>11,n=(t.next()>>>0)/4294967296,r=(e+n)/(1<<21)}while(0===r);return r},o.int32=t.next,o.quick=o,r&&("object"==typeof r&&s(r,t),o.state=function(){return s(t,{})}),o}o&&o.exports?o.exports=u:t("f9ad")&&t("ba96")?(r=function(){return u}.call(n,t,n,o),void 0===r||(o.exports=r)):this.xorwow=u})(0,e,t("f9ad"))}).call(this,t("e55b")(e))},f168:function(e,n,t){e.exports=t.p+"media/piece-drop.eef5f607.mp3"},f246:function(e,n,t){var r=t("c678");e.exports=function(e){return Object(r(e))}},f320:function(e,n,t){var r=t("57ac"),o=t("5b4c");e.exports=function(e,n,t,a){try{return a?n(r(t)[0],t[1]):n(t)}catch(i){throw o(e),i}}},f688:function(e,n,t){var r=t("7f82"),o=t("87ee"),a=t("220a"),i=!a((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:i},{from:o})},f9ad:function(e,n){e.exports=function(){throw new Error("define cannot be used indirect")}},fbdc:function(e,n,t){var r=t("a768"),o=t("97cc"),a=t("3df7"),i=t("57ac");e.exports=r("Reflect","ownKeys")||function(e){var n=o.f(i(e)),t=a.f;return t?n.concat(t(e)):n}},fd65:function(e,n,t){e.exports=t.p+"img/pass.da9065dc.svg"},fd70:function(e,n,t){var r=t("a768");e.exports=r("navigator","userAgent")||""},fd84:function(e,n,t){var r=t("68de"),o=t("ff46"),a=t("129e"),i=t("853a"),s=t("dd7c"),u=t("2673"),c=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,n,t,s){var u,c=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof t&&("string"!=typeof n||a(t,"name")||o(t,"name",n),u=l(t),u.source||(u.source=f.join("string"==typeof n?n:""))),e!==r?(c?!p&&e[n]&&(d=!0):delete e[n],d?e[n]=t:o(e,n,t)):d?e[n]=t:i(n,t)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},fd86:function(e,n,t){var r=t("68de"),o=t("448a"),a=t("129e"),i=t("ddc5"),s=t("5a40"),u=t("7a4c"),c=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||i;e.exports=function(e){return a(c,e)&&(s||"string"==typeof c[e])||(s&&a(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},ff3f:function(e,n,t){var r=t("fd86"),o=r("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[o]=!1,"/./"[e](n)}catch(r){}}return!1}},ff41:function(e,n,t){var r=t("0540");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},ff46:function(e,n,t){var r=t("ce17"),o=t("41d6"),a=t("9f69");e.exports=r?function(e,n,t){return o.f(e,n,a(1,t))}:function(e,n,t){return e[n]=t,e}}})}));
|
|
35
35
|
//# sourceMappingURL=powergrid-viewer.umd.min.js.map
|