// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.23/esri/copyright.txt for details.
//>>built
define("esri/geometry/geometryEngine","require exports esri/kernel esri/geometry/Geometry esri/geometry/Polygon esri/geometry/Polyline esri/geometry/Point esri/geometry/Extent esri/geometry/Multipoint dojo/_base/lang".split(" "),function(wa,xa,ra,Z,fa,ga,aa,ha,ia,sa){function ka(d){if(void 0===aa.fromJson){if(void 0!==d.x&&void 0!==d.y)return new aa(d);if(void 0!==d.paths)return new ga(d);if(void 0!==d.rings)return new fa(d);if(void 0!==d.points)return new ia(d);if(void 0!==d.xmin&&void 0!==d.ymin&&
void 0!==d.xmax&&void 0!==d.ymax)return new ha(d)}else{if(void 0!==d.x&&void 0!==d.y)return aa.fromJson(d);if(void 0!==d.paths)return ga.fromJson(d);if(void 0!==d.rings)return fa.fromJson(d);if(void 0!==d.points)return ia.fromJson(d);if(void 0!==d.xmin&&void 0!==d.ymin&&void 0!==d.xmax&&void 0!==d.ymax)return ha.fromJson(d)}}function la(d){if(void 0===aa.fromJson){if(void 0!==d.x&&void 0!==d.y)return new aa(d);if(void 0!==d.paths)return new ga(d);if(void 0!==d.rings)return new fa(d);if(void 0!==d.points)return new ia(d);
if(void 0!==d.xmin&&void 0!==d.ymin&&void 0!==d.xmax&&void 0!==d.ymax)return new ha(d)}else{if(void 0!==d.x&&void 0!==d.y)return aa.fromJSON(d);if(void 0!==d.paths)return ga.fromJSON(d);if(void 0!==d.rings)return fa.fromJSON(d);if(void 0!==d.points)return ia.fromJSON(d);if(void 0!==d.xmin&&void 0!==d.ymin&&void 0!==d.xmax&&void 0!==d.ymax)return ha.fromJSON(d)}}function U(d,m){var g;if(null==d||void 0===d||"number"===typeof d)return d;var b=d.toString();if(""===b)return null;if(2==m){if(g=ta[b],void 0!==
g)return g}else if(0==m){g=ma[b];if(void 0!==g)return g;g=na[d];if(void 0!==g)return g}else if(3==m&&(g=ma[b],void 0!==g))return g;if(1==m&&(g=na[d],void 0!==g))return g;if(!0===/^\d+$/.test(b))return parseInt(b);throw Error("Unrecognised Unit Type");}function ja(d){if(void 0!==d&&null!==d)switch(d){case "loxodrome":return 1;case "great-elliptic":return 2;case "normal-section":return 3;case "shape-preserving":return 4}return 0}function P(d,m){if(null===d||void 0===d||d.s())return null;switch(d.D()){case p.Xn.Point:var g=
new aa(d.lk(),d.mk(),m);if(O){var b=d.hasAttribute(p.xf.M);d.hasAttribute(p.xf.Z)&&g.set("z",d.lO());b&&g.set("m",d.NN())}return g;case p.Xn.Polygon:var g=d.hasAttribute(p.xf.Z),b=d.hasAttribute(p.xf.M),a=oa(d,g,b),g=new fa({rings:a,hasZ:g,hasM:b});O?g.set("spatialReference",m):g.setSpatialReference(m);g.setCacheValue("_geVersion",d);return g;case p.Xn.Polyline:return g=d.hasAttribute(p.xf.Z),b=d.hasAttribute(p.xf.M),a=oa(d,g,b),g=new ga({paths:a,hasZ:g,hasM:b}),O?g.set("spatialReference",m):g.setSpatialReference(m),
g.setCacheValue("_geVersion",d),g;case p.Xn.MultiPoint:var g=d.hasAttribute(p.xf.Z),b=d.hasAttribute(p.xf.M),c=a=null;g&&(a=d.mc(p.xf.Z));b&&(c=d.mc(p.xf.M));var e=new p.b,f=d.F(),h=new ia(m);O&&(h.set("hasZ",g),h.set("hasM",b));for(var l=0;l<f;l++){d.w(l,e);var k=[e.x,e.y];g&&k.push(a.get(l));b&&k.push(c.get(l));h.addPoint(k)}h.setCacheValue("_geVersion",d);return h;case p.Xn.Envelope:return a=d.hasAttribute(p.xf.Z),g=d.hasAttribute(p.xf.M),b=new ha(d.R.v,d.R.C,d.R.B,d.R.G,m),O&&(a&&(a=d.Ah(p.xf.Z,
0),b.set("zmin",a.qa),b.set("zmax",a.va)),g&&(a=d.Ah(p.xf.M,0),b.set("mmin",a.qa),b.set("mmax",a.va))),b.setCacheValue("_geVersion",d),b}return null}function oa(d,m,g){var b=[],a=d.ea(),c=null,e=null;m&&(c=d.mc(p.xf.Z));g&&(e=d.mc(p.xf.M));for(var f=new p.b,h=0;h<a;h++){for(var l=d.Ea(h),k=d.Ha(h),n=0,u=0,q=NaN,r=NaN,w=NaN,t=NaN,x=d.vc(h),v=[],C=l;C<l+k;C++){d.w(C,f);var t=w=NaN,A=[f.x,f.y];m&&(w=c.get(C),A.push(w));g&&(t=e.get(C),A.push(t));C==l&&x&&(n=f.x,u=f.y,q=w,r=t);v.push(A)}!x||n==f.x&&u==
f.y&&(!m||isNaN(q)&&isNaN(w)||q==w)&&(!g||isNaN(r)&&isNaN(t)||r==t)||v.push(v[0].slice(0));b.push(v)}return b}function pa(d){var m=d._geVersion;if(null==m||void 0==m){if(Object.freeze&&Object.isFrozen(d))return 102100===d.wkid?ua:4326===d.wkid?va:m=p.Nf.create(d.wkid);-1!=d.wkid&&null!==d.wkid&&void 0!==d.wkid?(m=p.Nf.create(d.wkid),d._geVersion=m):""!==d.wkt&&void 0!==d.wkt&&null!==d.wkt&&(m=p.Nf.NL(d.wkt),d._geVersion=m)}return m}function F(d){if(null==d)return null;var m=d.getCacheValue("_geVersion");
if(null==m||void 0==m)m=p.Pb.IL(d),d.setCacheValue("_geVersion",m);return m}function K(d){return null===d.spatialReference?null:pa(d.spatialReference)}var L=this&&this.__extends||function(d,m){function g(){this.constructor=d}for(var b in m)m.hasOwnProperty(b)&&(d[b]=m[b]);d.prototype=null===m?Object.create(m):(g.prototype=m.prototype,new g)},p;(function(d){var m=function(){function b(){}b.Sk=!1;b.it=!1;b.$v="";return b}();d.ah=m;if("undefined"!==typeof window)d.ah.$v="browser","Float64Array"in window&&
(d.ah.it=!0),"ArrayBuffer"in window&&(d.ah.Sk=!0);else if("undefined"!==typeof process)m.$v="node",d.ah.Sk=!0,d.ah.it=!0;else{m.$v="browser";try{var g=new ArrayBuffer(0);new Uint8Array(g);d.ah.Sk=!0;d.ah.it=!0}catch(b){d.ah.Sk=!1}}})(p||(p={}));(function(d){(function(d){d[d.Unknown=0]="Unknown";d[d.Point=33]="Point";d[d.Line=322]="Line";d[d.Envelope=197]="Envelope";d[d.MultiPoint=550]="MultiPoint";d[d.Polyline=1607]="Polyline";d[d.Polygon=1736]="Polygon"})(d.Xn||(d.Xn={}));(function(d){d[d.enumMild=
0]="enumMild";d[d.enumMedium=1]="enumMedium";d[d.enumHot=2]="enumHot"})(d.rH||(d.rH={}));var m=function(){function g(){this.description=null;this.Ux=0}g.prototype.D=function(){return 0};g.prototype.fb=function(){return-1};g.prototype.Qf=function(b){this.qc();b!=this.description&&this.nm(b)};g.prototype.nm=function(){};g.prototype.Ik=function(b){this.qc();b!=this.description&&(b=d.Od.QN(this.description,b),b!=this.description&&this.nm(b))};g.prototype.hasAttribute=function(b){return this.description.hasAttribute(b)};
g.prototype.Ne=function(b){this.qc();this.description.hasAttribute(b)||(b=d.Od.PN(this.description,b),this.nm(b))};g.prototype.Ah=function(){return null};g.prototype.Fp=function(){};g.prototype.o=function(){};g.prototype.Cn=function(){};g.prototype.dd=function(b){this.o(b)};g.prototype.s=function(){return!0};g.prototype.Ja=function(){};g.prototype.Oe=function(){};g.prototype.Pa=function(){return null};g.prototype.copyTo=function(){};g.prototype.Mh=function(){return 0};g.prototype.$b=function(){return 0};
g.prototype.WC=function(){return this.hasAttribute(1)};g.ve=function(b){return((b&192)>>6)+1>>1};g.Km=function(b){return 0!=(b&32)};g.qT=function(b){return 0!=(b&64)};g.SO=function(b){return 0!=(b&128)};g.Lc=function(b){return 0!=(b&256)};g.Th=function(b){return 0!=(b&512)};g.Kc=function(b){return 0!=(b&1024)};g.prototype.vm=function(){var b=this.Pa();this.copyTo(b);return b};g.prototype.Rf=function(){return null};g.Yj=function(b){var a=b.Pa();b.copyTo(a);return a};g.prototype.qc=function(){0<=this.Ux&&
(this.Ux+=2147483649)};g.Vu=function(b){var a=b.D();if(g.Th(a))return b.F();if(b.s())return 0;if(197==a)return 4;if(33==a)return 1;if(g.Lc(a))return 2;throw d.g.ra("missing type");};return g}();d.T=m})(p||(p={}));(function(d){var m=function(){function g(){this.y=this.x=0}g.Oa=function(b,a){var c=new g;c.x=b;c.y=a;return c};g.prototype.ma=function(b,a){this.x=b;this.y=a};g.prototype.J=function(b){this.x=b.x;this.y=b.y};g.prototype.Cq=function(b,a){return this.x===b&&this.y===a};g.prototype.Ww=function(b){return 2.220446049250313E-16>=
Math.abs(this.x-b.x)&&2.220446049250313E-16>=Math.abs(this.y-b.y)};g.prototype.ub=function(b){return this.x===b.x&&this.y===b.y};g.prototype.lc=function(b){return b==this?!0:b instanceof g?this.x==b.x&&this.y==b.y:!1};g.prototype.sub=function(b){this.x-=b.x;this.y-=b.y};g.prototype.pc=function(b,a){this.x=b.x-a.x;this.y=b.y-a.y};g.prototype.add=function(b,a){void 0!==a?(this.x=b.x+a.x,this.y=b.y+a.y):(this.x+=b.x,this.y+=b.y)};g.prototype.Bp=function(){this.x=-this.x;this.y=-this.y};g.prototype.qr=
function(b){this.x=-b.x;this.y=-b.y};g.prototype.OO=function(b,a,c){this.x=b.x*(1-c)+a.x*c;this.y=b.y*(1-c)+a.y*c};g.prototype.Fr=function(b,a){this.x=this.x*b+a.x;this.y=this.y*b+a.y};g.prototype.DR=function(b,a,c){this.x=a.x*b+c.x;this.y=a.y*b+c.y};g.prototype.scale=function(b){this.x*=b;this.y*=b};g.prototype.compare=function(b){return this.y<b.y?-1:this.y>b.y?1:this.x<b.x?-1:this.x>b.x?1:0};g.prototype.normalize=function(){var b=this.length();0==b&&(this.x=1,this.y=0);this.x/=b;this.y/=b};g.prototype.length=
function(){return Math.sqrt(this.x*this.x+this.y*this.y)};g.prototype.Up=function(){return this.x*this.x+this.y*this.y};g.Fb=function(b,a){return Math.sqrt(this.Zb(b,a))};g.Yv=function(b,a,c,e){b-=c;a-=e;return Math.sqrt(b*b+a*a)};g.prototype.ml=function(b){return this.x*b.x+this.y*b.y};g.prototype.uA=function(b){return Math.abs(this.x*b.x)+Math.abs(this.y*b.y)};g.prototype.Ai=function(b){return this.x*b.y-this.y*b.x};g.prototype.Er=function(b,a){var c=-this.x*a+this.y*b;this.x=this.x*b+this.y*a;
this.y=c};g.prototype.tt=function(){var b=this.x;this.x=-this.y;this.y=b};g.prototype.zD=function(b){this.x=-b.y;this.y=b.x};g.prototype.Kp=function(){var b=this.x;this.x=this.y;this.y=-b};g.prototype.FA=function(){this.y=this.x=NaN};g.prototype.pv=function(){return isNaN(this.x)};g.prototype.ps=function(){return 0<this.x?0<=this.y?1:4:0<this.y?2:0==this.x?4:3};g.cq=function(b,a){var c=b.ps(),e=a.ps();return e==c?(c=b.Ai(a),0>c?1:0<c?-1:0):c<e?-1:1};g.HT=function(b,a){return g.cq(b,a)};g.Zb=function(b,
a){var c=b.x-a.x,e=b.y-a.y;return c*c+e*e};g.prototype.toString=function(){return"("+this.x+" , "+this.y+")"};g.prototype.Eh=function(){this.y=this.x=NaN};g.prototype.yJ=function(){return this.pv()?NaN:Math.abs(this.x)>=Math.abs(this.y)?Math.abs(this.x):Math.abs(this.y)};g.prototype.offset=function(b,a){var c=g.Fb(b,a),e=g.Oa(this.x,this.y);if(0==c)return g.Fb(e,b);var f=new g;f.J(a);f.sub(b);e.sub(b);return e.Ai(f)/c};g.yn=function(b,a,c){var e=new d.$k;e.set(a.x);e.sub(b.x);var f=new d.$k;f.set(c.y);
f.sub(b.y);var h=new d.$k;h.set(a.y);h.sub(b.y);var l=new d.$k;l.set(c.x);l.sub(b.x);e.Ap(f);h.Ap(l);e.sub(h);if(!e.Dq())return c=e.value(),0>c?-1:0<c?1:0;e=new d.Tn(a.x);f=new d.Tn(b.x);h=new d.Tn(b.y);e=e.nr(f);b=new d.Tn(c.y);b=b.nr(h);a=new d.Tn(a.y);a=a.nr(h);c=new d.Tn(c.x);c=c.nr(f);e=e.Wp(b);a=a.Wp(c);e=e.Wp(a);return e.vP()?-1:e.nO()?1:0};g.prototype.hc=function(){return d.I.Rh(d.I.Rh())};return g}();d.b=m})(p||(p={}));(function(d){var m=function(){function d(b){this.Ov=this.Or=0;this.ES=
b}d.prototype.reset=function(){this.Ov=this.Or=0};d.prototype.add=function(b){b-=this.Ov;var a=this.Or+b;this.Ov=a-this.Or-b;this.Or=a};d.prototype.sub=function(b){this.add(-b)};d.prototype.rl=function(){return this.ES+this.Or};return d}();d.av=m;m=function(){function d(){}d.LT=function(b,a){return 0<=a?Math.abs(b):-Math.abs(b)};d.sign=function(b){return 0>b?-1:0<b?1:0};d.gH=function(b){return b-360*Math.floor(b/360)};d.round=function(b){return Math.floor(b+.5)};d.Ty=function(b){return b*b};d.ut=
function(b,a,c){var e;.5>=c?e=b+(a-b)*c:e=a-(a-b)*(1-c);return e};d.BD=function(b,a,c,e){.5>=c?(e.x=b.x+(a.x-b.x)*c,e.y=b.y+(a.y-b.y)*c):(e.x=a.x-(a.x-b.x)*(1-c),e.y=a.y-(a.y-b.y)*(1-c))};d.tP=function(b,a,c,e,f,h){.5>=f?(h.x=b+(c-b)*f,h.y=a+(e-a)*f):(h.x=c-(c-b)*(1-f),h.y=e-(e-a)*(1-f))};return d}();d.vi=m})(p||(p={}));(function(d){var m=function(g){function b(){g.call(this);this.ha=this.la=this.ja=this.na=0;this.fa=null}L(b,g);b.prototype.Mb=function(){return d.b.Oa(this.na,this.ja)};b.prototype.ht=
function(a){a.x=this.na;a.y=this.ja};b.prototype.ed=function(a){this.gl(0,a)};b.prototype.Ny=function(a,c){this.gl(0,d.b.Oa(a,c))};b.prototype.En=function(a){this.wA(0,a)};b.prototype.setStart=function(a){this.CA(0,a)};b.prototype.gt=function(a,c){return this.yd(0,a,c)};b.prototype.My=function(a,c,e){this.om(0,a,c,e)};b.prototype.oc=function(){return d.b.Oa(this.la,this.ha)};b.prototype.uw=function(a){a.x=this.la;a.y=this.ha};b.prototype.vd=function(a){this.gl(1,a)};b.prototype.Ok=function(a,c){this.gl(1,
d.b.Oa(a,c))};b.prototype.Bn=function(a){this.wA(1,a)};b.prototype.setEnd=function(a){this.CA(1,a)};b.prototype.Ws=function(a,c){return this.yd(1,a,c)};b.prototype.Cy=function(a,c,e){this.om(1,a,c,e)};b.prototype.fb=function(){return 1};b.prototype.s=function(){return this.sc()};b.prototype.Ja=function(){};b.prototype.Mh=function(){return 0};b.prototype.Ga=function(a,c,e,b,h){return this.wJ(a,c,e,b,h)};b.prototype.jc=function(a,c){return 0!=this.fq(a,c,!1)};b.prototype.Eq=function(a,c){return this.qs(a,
c,!1)};b.prototype.qs=function(){return null};b.prototype.sc=function(){return!1};b.prototype.rv=function(a){this.qc();if(null==this.fa&&0<a)this.fa=d.I.Lh(2*a);else if(null!=this.fa&&this.fa.length<2*a){for(var c=this.fa.slice(0),e=this.fa.length;e<2*a;e++)c[e]=0;this.fa=c}};b.KI=function(a,c,e){if(0<e)var b=0;for(var h=0;h<e;h++)c[0+b]=a[0],b++};b.prototype.gl=function(a,c){0!=a?(this.la=c.x,this.ha=c.y):(this.na=c.x,this.ja=c.y)};b.prototype.nm=function(a){if(null!=this.fa){for(var c=d.Od.iu(a,
this.description),e=[],f=b.Xk(this.description,0),h=b.Xk(this.description,1),l=b.Xk(a,0),k=b.Xk(a,1),n=0,g=1,q=a.Aa;g<q;g++){var r=a.Hd(g),w=d.pa.Wa(r);if(-1==c[g])for(var t=d.pa.ue(r),r=0;r<w;r++)e[l+n]=t,e[k+n]=t,n++;else for(t=this.description.fj(c[g])-2,r=0;r<w;r++)e[l+n]=this.fa[f+t],e[k+n]=this.fa[h+t],n++,t++}this.fa=e}this.description=a};b.prototype.wA=function(a,c){if(this.sc())throw d.g.ra("empty geometry");c.Qf(this.description);c.sc()&&c.ko();for(var e=0;e<this.description.Aa;e++)for(var b=
this.description.Fd(e),h=0,l=d.pa.Wa(b);h<l;h++){var k=this.yd(a,b,h);c.setAttribute(b,h,k)}};b.prototype.CA=function(a,c){this.qc();if(c.sc())throw d.g.ra("empty geometry");for(var e=c.description,b=0,h=e.Aa;b<h;b++)for(var l=e.Fd(b),k=d.pa.Wa(l),n=0;n<k;n++){var g=c.ld(l,n);this.om(a,l,n,g)}};b.prototype.yd=function(a,c,e){if(this.sc())throw d.g.ra("This operation was performed on an Empty Geometry.");if(0==c)return 0!=a?0!=e?this.ha:this.la:0!=e?this.ja:this.na;if(e>=d.pa.Wa(c))throw d.g.Uc();
var f=this.description.zf(c);return 0<=f?(null!=this.fa&&this.rv(this.description.le.length-2),this.fa[b.Xk(this.description,a)+this.description.fj(f)-2+e]):d.pa.ue(c)};b.prototype.om=function(a,c,e,f){this.qc();if(e>=d.pa.Wa(c))throw d.g.Uc();var h=this.description.zf(c);0>h&&(this.Ne(c),h=this.description.zf(c));0==c?0!=a?0!=e?this.ha=f:this.la=f:0!=e?this.ja=f:this.na=f:(null==this.fa&&this.rv(this.description.le.length-2),this.fa[b.Xk(this.description,a)+this.description.fj(h)-2+e]=f)};b.prototype.copyTo=
function(a){if(a.D()!=this.D())throw d.g.N();a.description=this.description;a.rv(this.description.le.length-2);b.KI(this.fa,a.fa,2*(this.description.le.length-2));a.na=this.na;a.ja=this.ja;a.la=this.la;a.ha=this.ha;a.qc();this.eo(a)};b.prototype.Ah=function(a,c){var e=new d.Nd;if(this.sc())return e.Ja(),e;e.qa=this.yd(0,a,c);e.va=e.qa;e.Oj(this.yd(1,a,c));return e};b.prototype.XE=function(a){this.sc()?a.Ja():(a.qa=this.yd(0,0,0),a.va=a.qa,a.Oj(this.yd(1,0,0)))};b.prototype.uu=function(a,c){c.Qf(this.description);
c.ic(this.Kb(a));for(var e=1,b=this.description.Aa;e<b;e++)for(var h=this.description.Fd(e),l=d.pa.Wa(h),k=0;k<l;k++){var n=this.ld(a,h,k);c.setAttribute(h,k,n)}};b.prototype.sJ=function(a){if(this.description!=a.description||this.na!=a.na||this.la!=a.la||this.ja!=a.ja||this.ha!=a.ha)return!1;for(var c=0;c<2*(this.description.le.length-2);c++)if(this.fa[c]!=a.fa[c])return!1;return!0};b.prototype.kD=function(){return this.na==this.la&&this.ja==this.ha};b.prototype.reverse=function(){var a=this.na;
this.na=this.la;this.la=a;a=this.ja;this.ja=this.ha;this.ha=a;for(var a=1,c=this.description.Aa;a<c;a++)for(var e=this.description.Hd(a),b=0,h=d.pa.Wa(e);b<h;b++){var l=this.yd(0,e,b),k=this.yd(1,e,b);this.om(0,e,b,k);this.om(1,e,b,l)}};b.prototype.fq=function(a,c,e){var b=a.D();switch(this.D()){case 322:if(322==b)return d.yb.xJ(this,a,c,e);throw d.g.wa();default:throw d.g.wa();}};b.prototype.wJ=function(a,c,e,b,h){var f=a.D();switch(this.D()){case 322:if(322==f)return d.yb.ov(this,a,c,e,b,h);throw d.g.wa();
default:throw d.g.wa();}};b.prototype.kv=function(){return null};b.Xk=function(a,c){return c*(a.le.length-2)};b.prototype.Kb=function(a,c){if(void 0===c){var e=new d.b;this.Kb(a,e);return e}d.vi.tP(this.na,this.ja,this.la,this.ha,a,c)};b.prototype.Gd=function(){return null};b.prototype.TC=function(){return null};b.prototype.nt=function(){return null};b.prototype.mg=function(){return null};b.prototype.mD=function(){return null};b.prototype.Pf=function(){return null};b.prototype.rA=function(a,c){return void 0!==
c?this.Ru(c)-this.Ru(a):this.Ru(a)};b.prototype.eo=function(){};b.prototype.xm=function(){return null};b.prototype.Bi=function(){};b.prototype.ld=function(){return null};b.prototype.xe=function(){return null};b.prototype.Ru=function(){return null};b.prototype.AD=function(){return null};b.prototype.Fb=function(a,c){if(!c&&0!=this.fq(a,0,!1))return 0;var e=1.7976931348623157E308,b,h;b=this.Mb();h=a.Gd(b,!1);b.sub(a.Kb(h));b=b.length();b<e&&(e=b);b=this.oc();h=a.Gd(b,!1);b.sub(a.Kb(h));b=b.length();
b<e&&(e=b);b=a.Mb();h=this.Gd(b,!1);b.sub(this.Kb(h));b=b.length();b<e&&(e=b);b=a.oc();h=this.Gd(b,!1);b.sub(this.Kb(h));b=b.length();b<e&&(e=b);return e};b.prototype.Rf=function(){return d.Hh.il(this,null)};return b}(d.T);d.fA=m})(p||(p={}));new p.b;(function(d){(function(d){d[d.Unknown=-1]="Unknown";d[d.Not=0]="Not";d[d.Weak=1]="Weak";d[d.Strong=2]="Strong"})(d.tH||(d.tH={}));(function(d){d[d.DirtyIsKnownSimple=1]="DirtyIsKnownSimple";d[d.IsWeakSimple=2]="IsWeakSimple";d[d.IsStrongSimple=4]="IsStrongSimple";
d[d.DirtyOGCFlags=8]="DirtyOGCFlags";d[d.DirtyVerifiedStreams=32]="DirtyVerifiedStreams";d[d.DirtyExactIntervals=64]="DirtyExactIntervals";d[d.DirtyLooseIntervals=128]="DirtyLooseIntervals";d[d.DirtyIntervals=192]="DirtyIntervals";d[d.DirtyIsEnvelope=256]="DirtyIsEnvelope";d[d.DirtyLength2D=512]="DirtyLength2D";d[d.DirtyRingAreas2D=1024]="DirtyRingAreas2D";d[d.DirtyCoordinates=1993]="DirtyCoordinates";d[d.DirtyAllInternal=65535]="DirtyAllInternal";d[d.DirtyAll=16777215]="DirtyAll"})(d.cH||(d.cH={}));
var m=function(g){function b(){g.call(this);this.El=65535;this.ta=0;this.rg=-1;this.pb=null}L(b,g);b.prototype.eo=function(){};b.prototype.qv=function(){};b.prototype.xv=function(){};b.prototype.F=function(){return this.ta};b.prototype.s=function(){return this.sc()};b.prototype.sc=function(){return 0==this.ta};b.prototype.gj=function(a){return 0!=(this.El&a)};b.prototype.yf=function(a,c){this.El=c?this.El|a:this.El&~a};b.prototype.kc=function(){this.gj(32)&&this.FJ()};b.prototype.Su=function(){if(this.sc())throw d.g.ra("This operation was performed on an Empty Geometry.");
};b.prototype.Sd=function(a,c){if(0>a||a>=this.ta)throw d.g.ra("index out of bounds");this.kc();c.Qf(this.description);c.s()&&c.ko();for(var e=0;e<this.description.Aa;e++)for(var b=this.description.Fd(e),h=0,l=d.pa.Wa(b);h<l;h++){var k=this.Ba[e].Bh(l*a+h);c.setAttribute(b,h,k)}};b.prototype.Iu=function(a,c){this.kc();for(var e=c.description,b=0;b<e.Aa;b++)for(var h=e.Fd(b),l=d.pa.Wa(h),k=0;k<l;k++){var n=c.ld(h,k);this.setAttribute(h,a,k,n)}};b.prototype.w=function(a,c){if(0>a||a>=this.F())throw d.g.Uc();
this.kc();this.Ba[0].ec(2*a,c)};b.prototype.Fa=function(a){var c=new d.b;this.w(a,c);return c};b.prototype.uc=function(a,c){this.Ba[0].ec(2*a,c)};b.prototype.ic=function(a,c,e){if(0>a||a>=this.ta)throw d.g.Uc();this.kc();var b=this.Ba[0];void 0!==e?(b.write(2*a,c),b.write(2*a+1,e)):b.Rn(2*a,c);this.ce(1993)};b.prototype.Lw=function(a){if(0>a||a>=this.F())throw d.g.Uc();this.kc();var c=this.Ba[0],e=new d.ee;e.x=c.read(2*a);e.y=c.read(2*a+1);e.z=this.hasAttribute(1)?this.Ba[1].Bh(a):d.pa.ue(1);return e};
b.prototype.Py=function(a,c){if(0>a||a>=this.F())throw d.g.Uc();this.Ne(1);this.kc();this.ce(1993);var e=this.Ba[0];e.write(2*a,c.x);e.write(2*a+1,c.y);this.Ba[1].Uk(a,c.z)};b.prototype.ld=function(a,c,e){if(0>c||c>=this.ta)throw d.g.Uc();var b=d.pa.Wa(a);if(e>=b)throw d.g.Uc();this.kc();var h=this.description.zf(a);return 0<=h?this.Ba[h].Bh(c*b+e):d.pa.ue(a)};b.prototype.nC=function(a,c,e){return this.ld(a,c,e)};b.prototype.setAttribute=function(a,c,e,b){if(0>c||c>=this.ta)throw d.g.Uc();var f=d.pa.Wa(a);
if(e>=f)throw d.g.Uc();this.Ne(a);this.kc();a=this.description.zf(a);this.ce(1993);this.Ba[a].Uk(c*f+e,b)};b.prototype.mc=function(a){this.Su();this.Ne(a);this.kc();return this.Ba[this.description.zf(a)]};b.prototype.bm=function(a,c){if(null!=c&&d.pa.Qh(a)!=c.Qh())throw d.g.N();this.Ne(a);var e=this.description.zf(a);null==this.Ba&&(this.Ba=d.Ac.ay(this.description.Aa));this.Ba[e]=c;this.ce(16777215)};b.prototype.nm=function(a){var c=null;if(null!=this.Ba)for(var e=d.Od.iu(a,this.description),c=[],
b=0,h=a.Aa;b<h;b++)-1!=e[b]&&(c[b]=this.Ba[e[b]]);this.description=a;this.Ba=c;this.rg=-1;this.ce(16777215)};b.prototype.IA=function(a){this.ss(!0);a instanceof d.i?this.R.o(a):this.R.Cn(a)};b.prototype.EJ=function(a){this.ss(!1);a instanceof d.i?this.R.o(a):this.R.Cn(a)};b.prototype.Fp=function(a){this.ss(!0);this.R.copyTo(a)};b.prototype.o=function(a){this.IA(a)};b.prototype.Cn=function(a){this.IA(a)};b.prototype.dd=function(a){this.EJ(a)};b.prototype.Ah=function(a,c){var e=new d.Nd;if(this.sc())return e.Ja(),
e;this.ss(!0);return this.R.Ah(a,c)};b.prototype.hc=function(){var a=this.description.hc();if(!this.sc())for(var c=this.F(),e=0,b=this.description.Aa;e<b;e++)a=this.Ba[e].jj(a,0,c*d.pa.Wa(this.description.Fd(e)));return a};b.prototype.lc=function(a){if(a==this)return!0;if(!(a instanceof b&&this.description.lc(a.description))||this.sc()!=a.sc())return!1;if(this.sc())return!0;var c=this.F();if(c!=a.F())return!1;for(var e=0;e<this.description.Aa;e++){var f=this.description.Hd(e),h=this.mc(f),l=a.mc(f);
if(!h.lc(l,0,c*d.pa.Wa(f)))return!1}return!0};b.prototype.copyTo=function(a){if(a.D()!=this.D())throw d.g.N();this.tA(a)};b.prototype.tA=function(a){this.kc();a.description=this.description;a.Ba=null;var c=this.description.Aa,e=null;if(null!=this.Ba)for(var e=[],b=0;b<c;b++)null!=this.Ba[b]&&(e[b]=this.Ba[b].Ip(this.F()*d.pa.Wa(this.description.Fd(b))));null!=this.R?(a.R=this.R.Pa(),this.R.copyTo(a.R)):a.R=null;a.ta=this.ta;a.El=this.El;a.Ba=e;try{this.eo(a)}catch(h){throw a.Ja(),d.g.BI();}};b.prototype.EA=
function(){this.ta=0;this.rg=-1;this.Ba=null;this.ce(16777215)};b.prototype.ce=function(a){16777215==a&&(this.rg=-1,this.qv());this.El|=a;this.kJ();this.qc()};b.prototype.ss=function(a){this.kc();if(this.gj(192))if(null==this.R?this.R=new d.Vj(this.description):this.R.Qf(this.description),this.s())this.R.Ja();else{this.wv(a);for(var c=1;c<this.description.Aa;c++)for(var e=this.description.Fd(c),b=d.pa.Wa(e),h=this.Ba[c],l=0;l<b;l++){var k=new d.Nd;k.Ja();for(var n=0;n<this.ta;n++){var g=h.Bh(n*b+
l);k.Db(g)}this.R.setInterval(e,l,k)}a&&this.yf(192,!1)}};b.prototype.wv=function(){this.R.Ja();for(var a=this.Ba[0],c=new d.b,e=0;e<this.ta;e++)a.ec(2*e,c),this.R.Db(c)};b.prototype.tm=function(a){a.Ja();for(var c=this.Ba[0],e=new d.b,b=0;b<this.ta;b++)c.ec(2*b,e),a.Db(e)};b.prototype.FJ=function(){if(this.rg<this.ta){null==this.Ba&&(this.Ba=d.Ac.ay(this.description.Aa));this.rg=2147483647;for(var a=0;a<this.description.Aa;a++){var c=this.description.Fd(a);if(null!=this.Ba[a]){var e=d.pa.Wa(c),b=
d.I.truncate(this.Ba[a].size/e);b<this.ta&&(b=d.I.truncate(this.rg>this.ta+5?(5*this.ta+3)/4:this.ta),this.Ba[a].resize(b*e,d.pa.ue(c)));b<this.rg&&(this.rg=b)}else this.Ba[a]=d.Ac.Tv(c,this.ta),this.rg=this.ta}}this.xv();this.yf(32,!1)};b.prototype.jo=function(a){if(0>a)throw d.g.N();a!=this.ta&&(this.ta=a,this.ce(65535))};b.prototype.rj=function(a){if(!this.gj(1)){if(!this.gj(2))return 0;if(this.TP>=a)return this.gj(8)?1:2}return-1};b.prototype.hg=function(a,c){this.TP=c;if(-1==a)this.yf(1,!0),
this.yf(8,!0);else if(this.yf(1,!1),this.yf(8,!0),0==a)this.yf(2,!1),this.yf(4,!1);else if(1==a)this.yf(2,!0),this.yf(4,!1);else if(2==a)this.yf(2,!0),this.yf(4,!0);else throw d.g.ra("internal error.");};b.prototype.kJ=function(){null!=this.pb&&(this.pb=null)};b.prototype.vJ=function(a,c,e,b){if(0>a||a>=this.ta)throw d.g.ra("index out of bounds");if(0>c||c>=this.ta)throw d.g.ra("index out of bounds");this.kc();b.Qf(this.description);b.s()&&b.ko();for(var f=0;f<this.description.Aa;f++)for(var l=this.description.Fd(f),
k=0,n=d.pa.Wa(l);k<n;k++){var g=this.Ba[f].Bh(n*a+k),q=this.Ba[f].Bh(n*c+k);b.setAttribute(l,k,d.vi.ut(g,q,e))}};b.prototype.mv=function(a,c){var e=this.Ba[0].f,b=e[2*a]-e[2*c],e=e[2*a+1]-e[2*c+1];return Math.sqrt(b*b+e*e)};b.prototype.bh=function(a,c){if(0>a||a>=this.ta)throw d.g.Uc();if(c.s())throw d.g.N();this.kc();for(var e=c.description,b=0;b<e.Aa;b++)for(var h=e.Hd(b),l=d.pa.Wa(h),k=0;k<l;k++){var n=c.ld(h,k);this.setAttribute(h,a,k,n)}};b.prototype.jv=function(){return null};b.prototype.dj=
function(){return null};return b}(d.T);d.Wr=m})(p||(p={}));(function(d){var m=function(){function g(){this.cb=this.Qm=null;this.Ol=124234251;this.Ct=!0;this.Ae=-1;this.cb=new d.Fc(7);this.Qm=null}g.prototype.Hn=function(b){this.Qm=b};g.prototype.lM=function(){this.Ct=!1};g.prototype.de=function(b){this.cb.de(b)};g.prototype.nq=function(b){var a=this.cb.be();this.mS(a);this.oS(b,a);return a};g.prototype.fM=function(b){this.cb.Jc(b)};g.prototype.addElement=function(b,a){var c;-1==a?(-1==this.Ae&&(this.Ae=
this.nq(-1)),c=this.Ae):c=a;return this.MA(b,0,c)};g.prototype.PA=function(b){-1==this.Ae&&(this.Ae=this.nq(-1));return this.MA(b,1,this.Ae)};g.prototype.qm=function(b){var a;-1==this.Ae&&(this.Ae=this.nq(-1));a=this.Ae;var c=this.cb.f;if(-1==a||-1==c[7*a])return b=this.cb.Pj([-1,-1,-1,b,this.ck(),-1,-1]),c=this.cb.f,c[7*a]=b,this.mo(-1,b,a,c),b;var e=-1==a?-1:c[7*a+2];b=this.cb.Pj([-1,-1,e,b,this.ck(),-1,-1]);c=this.cb.f;c[7*e+1]=b;this.Fv(b,c);-1===c[7*b+2]&&(c[7*a]=b);this.mo(-1,b,a,c);return b};
g.prototype.vs=function(b,a,c,e){var f=-1;-1==f&&(-1==this.Ae&&(this.Ae=this.nq(-1)),f=this.Ae);var h=this.cb.f;if(-1==f||-1==h[7*f])return c=this.cb.Pj([-1,-1,-1,c,this.ck(),-1,-1]),h=this.cb.f,h[7*f]=c,this.mo(-1,c,f,h),c;var l;e?(e=-1!=a?this.Qm.compare(this,c,a):-1,l=-1!=b?this.Qm.compare(this,c,b):1):(e=-1,l=1);if(0==e||0==l)return h[7*f+3]=0==e?a:b,-1;(-1!=a&&-1!=b?this.Ol>d.I.$x(this.Ol)>>1:-1!=a)?b=a:e=l;for(a=!0;;){if(0>e)if(l=h[7*b],-1!=l)b=l;else{e=b;c=this.cb.Pj([-1,-1,b,c,this.ck(),-1,
-1]);h=this.cb.f;h[7*b]=c;break}else if(l=h[7*b+1],-1!=l)b=l;else{e=h[7*b+6];c=this.cb.Pj([-1,-1,b,c,this.ck(),-1,-1]);h=this.cb.f;h[7*b+1]=c;break}a&&(e*=-1,a=!1)}this.Fv(c,h);-1===h[7*c+2]&&(h[7*f]=c);this.mo(e,c,f,h);return c};g.prototype.tC=function(){return this.xN(this.Ae)};g.prototype.kd=function(b,a){var c;c=-1==a?this.Ae:a;this.Ct?this.eM(b,c):this.$S(b,c)};g.prototype.search=function(b,a){for(var c=this.dt(a);-1!=c;){var e=this.Qm.compare(this,b,c);if(0==e)return c;c=0>e?this.ik(c):this.Jo(c)}return-1};
g.prototype.GR=function(b){for(var a=this.dt(-1),c=-1;-1!=a;){var e=b.compare(this,a);if(0==e)return a;0>e?a=this.ik(a):(c=a,a=this.Jo(a))}return c};g.prototype.sF=function(b){for(var a=this.dt(-1),c=-1;-1!=a;){var e=b.compare(this,a);if(0==e)return a;0>e?(c=a,a=this.ik(a)):a=this.Jo(a)}return c};g.prototype.da=function(b){return this.cb.O(b,3)};g.prototype.ik=function(b){return this.cb.O(b,0)};g.prototype.Jo=function(b){return this.cb.O(b,1)};g.prototype.getParent=function(b){return this.cb.O(b,
2)};g.prototype.bb=function(b){return this.cb.O(b,6)};g.prototype.ge=function(b){return this.cb.O(b,5)};g.prototype.gc=function(b){return-1==b?this.gk(this.Ae):this.gk(b)};g.prototype.tc=function(b){return-1==b?this.uq(this.Ae):this.uq(b)};g.prototype.hO=function(b){return-1==b?this.QC(this.Ae):this.QC(b)};g.prototype.Vi=function(b,a){this.By(b,a)};g.prototype.dt=function(b){return-1==b?this.MC(this.Ae):this.MC(b)};g.prototype.clear=function(){this.cb.Nh(!1);this.Ae=-1};g.prototype.size=function(b){return-1==
b?this.OC(this.Ae):this.OC(b)};g.prototype.pK=function(b,a){for(var c=a[7*b],e=a[7*b+1],f=a[7*b+4];-1!=c||-1!=e;){var h=-1!=c?a[7*c+4]:2147483647,e=-1!=e?a[7*e+4]:2147483647;if(f<=Math.min(h,e))break;h<=e?this.oF(c,a):this.nF(b,a);c=a[7*b];e=a[7*b+1]}};g.prototype.Fv=function(b,a){if(this.Ct)for(var c=a[7*b+4],e=a[7*b+2];-1!=e&&a[7*e+4]>c;)a[7*e]==b?this.oF(b,a):this.nF(e,a),e=a[7*b+2]};g.prototype.nF=function(b,a){var c=a[7*b+1],e;a[7*c+2]=a[7*b+2];a[7*b+2]=c;e=a[7*c];a[7*b+1]=e;-1!=e&&(a[7*e+2]=
b);a[7*c]=b;e=a[7*c+2];-1!=e&&(a[7*e]==b?a[7*e]=c:a[7*e+1]=c)};g.prototype.oF=function(b,a){var c=a[7*b+2],e;a[7*b+2]=a[7*c+2];a[7*c+2]=b;e=a[7*b+1];a[7*c]=e;-1!=e&&(a[7*e+2]=c);a[7*b+1]=c;e=a[7*b+2];-1!=e&&(a[7*e]===c?a[7*e]=b:a[7*e+1]=b)};g.prototype.Tj=function(b,a){this.cb.L(b,2,a)};g.prototype.Gy=function(b,a){this.cb.L(b,0,a)};g.prototype.Ky=function(b,a){this.cb.L(b,1,a)};g.prototype.Jy=function(b,a){this.cb.L(b,5,a)};g.prototype.Gu=function(b,a){this.cb.L(b,6,a)};g.prototype.VF=function(b,
a){this.cb.L(a,0,b)};g.prototype.mS=function(b){this.cb.L(b,4,0)};g.prototype.oS=function(b,a){this.cb.L(a,5,b)};g.prototype.MC=function(b){return-1==b?-1:this.cb.O(b,0)};g.prototype.gk=function(b){return-1==b?-1:this.cb.O(b,1)};g.prototype.uq=function(b){return-1==b?-1:this.cb.O(b,2)};g.prototype.xN=function(b){return-1==b?-1:this.cb.O(b,3)};g.prototype.OC=function(b){return-1==b?0:this.cb.O(b,4)};g.prototype.QC=function(b){return this.cb.O(b,5)};g.prototype.ou=function(b){return this.cb.Pj([-1,
-1,-1,b,this.ck(),-1,-1])};g.prototype.bk=function(b){-1!=b&&this.cb.Jc(b)};g.prototype.ck=function(){this.Ol=d.I.$x(this.Ol);return this.Ol&1073741823};g.prototype.MA=function(b,a,c){var e=this.cb.f;if(-1==c||-1==e[7*c])return b=this.cb.Pj([-1,-1,-1,b,this.ck(),-1,-1]),e=this.cb.f,e[7*c]=b,this.mo(-1,b,c,e),b;for(var f=-1==c?-1:e[7*c];;){var h=-1==a?1:this.Qm.compare(this,b,f);if(0>h)if(h=this.ik(f),-1!=h)f=h;else{a=f;b=this.cb.Pj([-1,-1,f,b,this.ck(),-1,-1]);e=this.cb.f;e[7*f]=b;break}else{if(1==
a&&0==h)return e[7*c+3]=f,-1;h=e[7*f+1];if(-1!=h)f=h;else{a=e[7*f+6];b=this.cb.Pj([-1,-1,f,b,this.ck(),-1,-1]);e=this.cb.f;e[7*f+1]=b;break}}}this.Fv(b,e);-1===e[7*b+2]&&(e[7*c]=b);this.mo(a,b,c,e);return b};g.prototype.mo=function(b,a,c,e){var f;-1!=b?(f=e[7*b+5],e[7*b+5]=a):f=-1==c?-1:e[7*c+2];e[7*a+5]=f;-1!=f&&(e[7*f+6]=a);e[7*a+6]=b;b==(-1==c?-1:e[7*c+1])&&(e[7*c+1]=a);-1==b&&(e[7*c+2]=a);e[7*c+4]=(-1==c?0:e[7*c+4])+1};g.prototype.ry=function(b,a){var c=this.cb.f,e=c[7*b+5],f=c[7*b+6];-1!=e?c[7*
e+6]=f:c[7*a+1]=f;-1!=f?c[7*f+5]=e:c[7*a+2]=e;c[7*a+4]=-1===a?-1:c[7*a+4]-1};g.prototype.$S=function(b,a){this.ry(b,a);var c=this.ik(b),e=this.Jo(b),f=this.getParent(b),h=b;if(-1!=c&&-1!=e){this.Ol=d.I.$x(this.Ol);var l;l=1073741823<this.Ol?this.bb(b):this.ge(b);var k=this.getParent(l)==b;this.cb.Pu(b,l,0);this.cb.Pu(b,l,1);this.cb.Pu(b,l,2);-1!=f?this.ik(f)==b?this.Gy(f,l):this.Ky(f,l):this.VF(l,a);k?(c==l?(this.Gy(l,b),this.Tj(e,l)):e==l&&(this.Ky(l,b),this.Tj(c,l)),this.Tj(b,l),f=l):(this.Tj(c,
l),this.Tj(e,l),f=this.getParent(b),h=l);c=this.ik(b);e=this.Jo(b);-1!=c&&this.Tj(c,b);-1!=e&&this.Tj(e,b)}c=-1!=c?c:e;-1==f?this.VF(c,a):this.ik(f)==h?this.Gy(f,c):this.Ky(f,c);-1!=c&&this.Tj(c,f);this.bk(b,a)};g.prototype.eM=function(b,a){var c=this.cb.f;c[7*b+4]=2147483647;var e=-1,f=-1,h=-1===a?-1:c[7*a],d=h==b;d&&(e=c[7*h],f=c[7*h+1],-1==e&&-1==f)?(this.ry(h,a),this.bk(h,a),c[7*a]=-1):(this.pK(b,c),h=c[7*b+2],-1!=h&&(c[7*h]==b?c[7*h]=-1:c[7*h+1]=-1),this.ry(b,a),this.bk(b,a),d&&(c[7*a]=-1==e||
-1!=c[7*e+2]?f:e))};g.prototype.By=function(b,a){this.cb.L(b,3,a)};return g}();d.bj=m})(p||(p={}));(function(d){var m=function(){function g(b,a){void 0!==b&&this.K(b,a)}g.prototype.K=function(b,a){this.qa=b;this.va=a;this.normalize()};g.prototype.normalize=function(){if(!isNaN(this.qa)){if(this.qa>this.va){var b=this.qa;this.qa=this.va;this.va=b}isNaN(this.va)&&this.Ja()}};g.prototype.Ja=function(){this.va=this.qa=NaN};g.prototype.s=function(){return isNaN(this.qa)};g.prototype.Db=function(b){"number"===
typeof b?this.s()?this.va=this.qa=b:this.Oj(b):b.s()||(this.s()?(this.qa=b.qa,this.va=b.va):(this.qa>b.qa&&(this.qa=b.qa),this.va<b.va&&(this.va=b.va),this.qa>this.va&&this.Ja()))};g.prototype.Oj=function(b){b<this.qa?this.qa=b:b>this.va&&(this.va=b)};g.prototype.contains=function(b){return"number"===typeof b?b>=this.qa&&b<=this.va:b.qa>=this.qa&&b.va<=this.va};g.prototype.Ga=function(b){this.s()||b.s()?this.Ja():(this.qa<b.qa&&(this.qa=b.qa),this.va>b.va&&(this.va=b.va),this.qa>this.va&&this.Ja())};
g.prototype.P=function(b){this.s()||(this.qa-=b,this.va+=b,this.va<this.qa&&this.Ja())};g.prototype.lv=function(){return this.s()?2.220446049250313E-14:2.220446049250313E-14*(Math.abs(this.qa)+Math.abs(this.va)+1)};g.prototype.yy=function(b,a){b>a?(this.qa=a,this.va=b):(this.qa=b,this.va=a)};g.prototype.Sy=function(b){return d.I.Kr(b,this.qa,this.va)};g.prototype.aa=function(){return this.va-this.qa};g.prototype.Af=function(){return.5*(this.qa+this.va)};g.prototype.lc=function(b){return b==this?!0:
b instanceof g?this.s()&&b.s()?!0:this.qa!=b.qa||this.va!=b.va?!1:!0:!1};g.prototype.hc=function(){return d.I.Rh(d.I.Rh())};return g}();d.Nd=m})(p||(p={}));(function(d){var m=new d.Nd,g=new d.Nd,b=function(){return function(){this.Zd=null;this.Lf=-1;this.ib=new d.yb;this.ux=55555555;this.Et=this.Ft=!1;this.$h=new d.Nd;this.$h.yy(0,0)}}();d.XT=b;var a=function(){function a(a,c,h){this.a=a;this.Mj=NaN;this.mE=this.sp=0;this.nE=NaN;this.ka=c;this.tp=10*c;this.oE=this.pE=NaN;this.Zf=!1;this.Cl=this.mr=
this.un=this.gr=this.fr=-1;this.lx=h;this.Rx=new b;this.vE=new b;d.I.truncate(3*a.pd/2)}a.prototype.$C=function(a,c,b,d){a.Zd=null===d?null:d[b[5*c]];a.Et=null!=a.Zd;a.Et||(d=b[5*c+2],-1!==d&&this.a.gR(b[5*c],b[5*d],a.ib),a.Zd=a.ib,a.$h.yy(a.ib.na,a.ib.la),a.$h.va+=this.ka,a.ib.KE(),a.Ft=a.ib.ha==a.ib.ja,a.Ft||(a.ux=(a.ib.la-a.ib.na)/(a.ib.ha-a.ib.ja)))};a.prototype.tL=function(a,c){var b=a.fq(c,this.ka,!0);if(0!=b)return 2==b?this.aw():this.Oh();a.ht(ba);a.uw(W);c.ht(X);c.uw(da);R.ma(this.sp,this.Mj);
ba.ub(X)&&this.Mj==ba.y?0>W.compare(da)?R.J(W):R.J(da):ba.ub(da)&&this.Mj==ba.y?0>W.compare(X)?R.J(W):R.J(X):X.ub(W)&&this.Mj==X.y?0>ba.compare(da)?R.J(ba):R.J(da):W.ub(da)&&this.Mj==W.y&&(0>ba.compare(X)?R.J(ba):R.J(X));return a.xe(R.y,R.x)<c.xe(R.y,R.x)?-1:1};a.prototype.rL=function(a,c){if(a.ib.ja==c.ib.ja&&a.ib.na==c.ib.na)return a.ib.ha==c.ib.ha&&a.ib.la==c.ib.la?this.lx?this.aw():0:this.HB(a,c);if(a.ib.ha==c.ib.ha&&a.ib.la==c.ib.la)return this.GB(a,c);var b=this.GB(a,c),e=this.HB(a,c);return 0>
b&&0>e?-1:0<b&&0<e?1:this.Oh()};a.prototype.mL=function(a,c){if(a.la>c.la){if(c.la>c.na&&c.ha-c.ja<2*this.ka&&a.Kh(c.la,c.ha,this.ka))return this.Oh()}else if((c.ha-c.ja)/(c.la-c.na)*(a.la-a.na)<this.tp&&c.Kh(a.la,a.ha,this.ka))return this.Oh();return 1};a.prototype.nL=function(a,c){if(a.na<c.na){if(c.la>c.na&&c.ha-c.ja<2*this.ka&&a.Kh(c.la,c.ha,this.ka))return this.Oh()}else if((c.ha-c.ja)/(c.la-c.na)*(a.na-a.la)<this.tp&&c.Kh(a.na,a.ja,this.ka))return this.Oh();return-1};a.prototype.oL=function(a,
c){var b=new d.b;b.pc(c.oc(),c.Mb());b.Kp();b.normalize();var e=new d.b;e.pc(a.Mb(),c.Mb());var f=new d.b;f.pc(a.oc(),c.Mb());var e=e.ml(b),b=f.ml(b),f=Math.abs(e),n=Math.abs(b);if(f<n){if(f<this.tp&&c.Kh(a.na,a.ja,this.ka))return this.Oh()}else if(n<this.tp&&c.Kh(a.la,a.ha,this.ka))return this.Oh();return 0>e&&0>b?-1:0<e&&0<b?1:this.Oh()};a.prototype.FB=function(a,c){return a.ja==c.ja&&a.na==c.na?this.mL(a,c):a.ha==c.ha&&a.la==c.la?this.nL(a,c):this.oL(a,c)};a.prototype.qL=function(a,c){return a.ha==
c.ha&&a.la==c.la&&a.ja==c.ja&&a.na==c.na?this.lx?this.aw():0:this.Oh()};a.prototype.GB=function(a,c){var b=1;if(a.ib.ja<c.ib.ja){var b=-1,e=a;a=c;c=e}var e=a.ib,f=c.ib,d=e.na-f.na,g=c.ux*(e.ja-f.ja),q=this.tp;return d<g-q?-b:d>g+q?b:f.Kh(e.na,e.ja,this.ka)?this.Oh():d<g?-b:b};a.prototype.HB=function(a,c){var b=1;if(c.ib.ha<a.ib.ha){var b=-1,e=a;a=c;c=e}var e=a.ib,f=c.ib,d=e.la-f.na,g=c.ux*(e.ha-f.ja),q=this.tp;return d<g-q?-b:d>g+q?b:f.Kh(e.la,e.ha,this.ka)?this.Oh():d<g?-b:b};a.prototype.aw=function(){this.Zf=
!0;this.ei=new d.wd(5,this.un,this.mr);return-1};a.prototype.Oh=function(){this.Zf=!0;this.lx?this.ei=new d.wd(4,this.un,this.mr):this.mr=this.un=this.gr=this.fr=-1;return-1};a.prototype.sL=function(a,c,b,d){if(this.Zf)return-1;var e=this.nE==this.Mj&&this.mE==this.sp,f;e&&a==this.fr?f=this.oE:(f=NaN,this.fr=-1);e&&c==this.gr?e=this.pE:(e=NaN,this.gr=-1);b.Zd.XE(m);d.Zd.XE(g);if(m.va<g.qa)return-1;if(g.va<m.qa)return 1;this.nE=this.Mj;this.mE=this.sp;isNaN(f)&&(this.fr=a,this.oE=f=a=b.Zd.xe(this.Mj,
this.sp));isNaN(e)&&(this.gr=c,this.pE=e=a=d.Zd.xe(this.Mj,this.sp));return Math.abs(f-e)<=this.ka?this.tL(b.Zd,d.Zd):f<e?-1:f>e?1:0};a.prototype.lq=function(){this.Zf=!1};a.prototype.rl=function(){return this.ei};a.prototype.XF=function(a,c){this.Mj=a;this.sp=c;this.mr=this.un=this.gr=this.fr=-1};a.prototype.compare=function(a,c,b){if(this.Zf)return-1;a=a.da(b);this.Cl=b;return this.JB(c,c,a,a)};a.prototype.JB=function(a,c,b,d){var e;this.un==c?e=this.Rx:(this.un=c,e=this.Rx,this.Rx.Lf=a,this.$C(e,
c,this.a.cd.f,this.a.Ge));var f;null==f&&(this.mr=d,f=this.vE,this.vE.Lf=b,this.$C(f,d,this.a.cd.f,this.a.Ge));if(e.Et||f.Et)return this.sL(c,d,e,f);if(e.$h.va<f.$h.qa)return-1;if(f.$h.va<e.$h.qa)return 1;a=e.Ft?1:0;a|=f.Ft?2:0;return 0==a?this.rL(e,f):1==a?this.FB(e.ib,f.ib):2==a?-1*this.FB(f.ib,e.ib):this.qL(e.ib,f.ib)};return a}();d.hA=a})(p||(p={}));(function(d){var m=function(){function g(b,a){this.a=b;this.ka=a;this.Zf=!1;this.un=-1;this.$h=new d.Nd;this.pp=new d.b;this.pp.Eh();this.Vd=new d.yb;
this.Cl=-1;this.Cx=1.7976931348623157E308}g.prototype.lq=function(){this.Zf=!1;this.Cx=1.7976931348623157E308};g.prototype.bh=function(b){this.pp.J(b)};g.prototype.compare=function(b,a){return this.KB(a,b.da(a))};g.prototype.KB=function(b,a){var c=null!=this.a.cc(a);c||(this.a.Oc(a,this.Vd),this.$h.yy(this.Vd.na,this.Vd.la));if(c)throw d.g.ra("not implemented");if(this.pp.x+this.ka<this.$h.qa)return-1;if(this.pp.x-this.ka>this.$h.va)return 1;if(this.Vd.ja==this.Vd.ha)return this.Cl=b,this.Zf=!0,0;
this.Vd.KE();var e=this.Vd.Mb(),c=new d.b;c.pc(this.Vd.oc(),e);c.Kp();var f=new d.b;f.pc(this.pp,e);e=c.ml(f);e/=c.length();return e<10*-this.ka?-1:e>10*this.ka?1:this.Vd.Eq(this.pp,this.ka)&&(c=Math.abs(e),c<this.Cx&&(this.Cl=b,this.Cx=c),this.Zf=!0,c<.25*this.ka)?0:0>e?-1:1};return g}();d.JI=m})(p||(p={}));(function(d){function m(b,a,c,e){c=new Float64Array(b.subarray(c,e));b.set(c,a)}var g=function(){function b(a){this.Sa=this.Xf=!1;this.f=[];var c=a;2>c&&(c=2);this.f=d.I.Lh(c,b.ob);this.size=
a}b.Yc=function(a,c){b.ob=c;var e=new b(a);b.ob=0;return e};b.lj=function(a){var c=new b(0);c.f=a.f.slice(0);c.size=a.size;return c};b.V=function(a,c){var e=new b(0);e.size=a.size;e.size>c&&(e.size=c);e.f=a.f.slice(0,e.size);return e};b.prototype.xb=function(){};b.prototype.read=function(a){return this.f[a]};b.prototype.ec=function(a,c){c.x=this.f[a];c.y=this.f[a+1]};b.prototype.get=function(a){return this.f[a]};b.prototype.write=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c};b.prototype.set=
function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c};b.prototype.Rn=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c.x;this.f[a+1]=c.y};b.prototype.add=function(a){this.resize(this.size+1);this.f[this.size-1]=a};b.prototype.Ip=function(a){return b.V(this,a)};b.prototype.Bh=function(a){return this.read(a)};b.prototype.resize=function(a,c){void 0===c&&(c=0);if(this.Xf)throw d.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(d.I.truncate(5*a/4)<this.f.length){var b=
this.f.slice(0,a);this.f=b}}else if(a>this.f.length){d.I.truncate(64>a?Math.max(2*a,4):5*a/4);for(var b=this.f.slice(0),f=this.f.length;f<a;f++)b[f]=c;this.f=b}this.size=a};b.prototype.cf=function(a){(null==this.f||a>this.f.length)&&this.resize(a);if(this.Xf)throw d.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Uk=function(a,c){this.write(a,c)};b.prototype.jj=function(a,c,b){for(var e=this.size;c<e&&c<b;c++)a=d.I.Rh(this.read(c));return a};b.prototype.lc=
function(a,c,e){if(null==a||!(a instanceof b))return!1;var f=this.size,h=a.size;if(e>f||e>h&&f!=h)return!1;for(e>f&&(e=f);c<e;c++)if(this.read(c)!=a.read(c))return!1;return!0};b.prototype.nk=function(a,c,b,f,h,l,k){if(this.Sa)throw d.g.xa();if(!h&&(1>l||0!=f%l))throw d.g.N();var e=this.size-k;e<f&&this.resize(this.size+f-e);for(e=0;e<k-a;e++)this.f[a+f+e]=this.f[a+e];this.f==c.f&&a<b&&(b+=f);if(h)for(e=0;e<f;e++)this.f[e+a]=c.f[b+e];else for(h=f,k=0;k<f;k+=l)for(h-=l,e=0;e<l;e++)this.f[a+k+e]=c.f[b+
h+e]};b.prototype.ul=function(a,c,b,f){if(this.Sa)throw d.g.xa();f-=a;for(var e=this.f.slice(a,a+f),l=0;l<f;l++)this.f[a+b+l]=e[l];for(f=0;f<b;f++)this.f[a+f]=c};b.prototype.lg=function(a,c,b){if(this.Sa)throw d.g.xa();for(var e=this.f.slice(a,a+(b-a)),h=0;h<b-a;h++)this.f[h+a+2]=e[h];this.f[a]=c.x;this.f[a+1]=c.y};b.prototype.km=function(a,c,b,f,h,l){if(0>a||0>c||0>f)throw d.g.N();if(!h&&(0>=l||0!=c%l))throw d.g.N();if(b.size<f+c)throw d.g.N();if(0!=c)if(this.size<c+a&&this.resize(c+a),b==this)this.xi(a,
c,f,h,l);else if(h)for(h=0;h<c;h++)this.f[a]=b.f[f],a++,f++;else if(f=f+c-l,1==l)for(h=0;h<c;h++)this.f[a]=b.f[f],a++,f--;else for(h=0,c=d.I.truncate(c/l);h<c;h++){for(var e=0;e<l;e++)this.f[a+e]=b.f[f+e];a+=l;f-=l}};b.prototype.oj=function(a,c,b){if(this.Sa)throw d.g.xa();if(a+c>this.size)throw d.g.xa();if(0<b-(a+c)){b-=a+c;for(var e=this.f.slice(a+c,a+b+c),h=0;h<b;h++)this.f[a+h]=e[h]}this.size-=c};b.prototype.Jp=function(a,c,b){if(this.Sa)throw d.g.xa();if(1>b||0!=c%b)throw d.g.xa();for(var e=
c>>1,h=0;h<e;h+=b){c-=b;for(var l=0;l<b;l++){var k=this.f[a+h+l];this.f[a+h+l]=this.f[a+c+l];this.f[a+c+l]=k}}};b.prototype.dh=function(a,c,b){if(0>c||0>b||0>c||b+c>this.size)throw d.g.N();for(var e=c;e<c+b;e++)this.f[e]=a};b.prototype.xi=function(a,c,b,f,h){if(!f||a!=b){for(var e=0;e<c;e++)this.f[a+e]=this.f[b+e];if(!f)for(b=a,a=a+c-h,f=0,c=d.I.truncate(c/2);f<c;f++){for(e=0;e<h;e++){var k=this.f[b+e];this.f[b+e]=this.f[a+e];this.f[a+e]=k}b+=h;a-=h}}};b.prototype.$p=function(a,c,b,f,h){if(0>a||0>
c||0>f)throw d.g.N();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=f;f<c;f++)this.f[a]=b[f].x,this.f[a+1]=b[f].y,a+=h};b.prototype.Hp=function(a,c,b,f,h){if(0>a||0>c||0>f||this.size<c+a)throw d.g.N();if(h)for(h=0;h<c;h++)b[f+h]=this.f[a+h];else for(f=f+c-1;a<c;a++)b[f]=this.f[a],f--};b.prototype.clear=function(a){a?this.resize(0):this.cf(0)};b.prototype.xd=function(a,c,b){var e=this.f.slice(0,a),h=this.f.slice(c);a=this.f.slice(a,c).sort(b);this.f.length=0;this.f.push.apply(this.f,
e.concat(a).concat(h))};b.prototype.Qh=function(){return 1};b.ob=0;return b}();d.qd=g;g=function(){function b(a){this.Sa=this.Xf=!1;this.f=null;var c=a;2>c&&(c=2);this.f=new Float64Array(c);this.size=a}b.Yc=function(a,c){var e=new b(a),f=a,h=e.f;2>f&&(f=2);if(0!==c)for(var d=0;d<f;d++)h[d]=c;return e};b.lj=function(a){var c=new b(0);c.f=new Float64Array(a.f);c.size=a.size;return c};b.V=function(a,c){var e=new b(0);e.size=a.size;e.size>c&&(e.size=c);var f=e.size;2>f&&(f=2);e.f=new Float64Array(f);
e.f.set(a.f.length<=f?a.f:a.f.subarray(0,f),0);return e};b.prototype.xb=function(a){0>=a||(null==this.f?this.f=new Float64Array(a):a<=this.f.length||(0<this.f.length?(a=new Float64Array(a),a.set(this.f),this.f=a):this.f=new Float64Array(a)))};b.prototype.read=function(a){return this.f[a]};b.prototype.ec=function(a,c){c.x=this.f[a];c.y=this.f[a+1]};b.prototype.get=function(a){return this.f[a]};b.prototype.write=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c};b.prototype.set=function(a,c){if(this.Sa)throw d.g.xa();
this.f[a]=c};b.prototype.Rn=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c.x;this.f[a+1]=c.y};b.prototype.add=function(a){this.resize(this.size+1);this.f[this.size-1]=a};b.prototype.Ip=function(a){return b.V(this,a)};b.prototype.Bh=function(a){return this.read(a)};b.prototype.resize=function(a,c){void 0===c&&(c=0);if(this.Xf)throw d.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(30<this.f.length&&5*a/4<this.f.length){var b=new Float64Array(this.f,
0,a);this.f=b}}else{a>this.f.length&&(b=d.I.truncate(64>a?Math.max(2*a,4):5*a/4),b=new Float64Array(b),b.set(this.f),this.f=b);for(var b=this.f,f=this.size;f<a;f++)b[f]=c}this.size=a};b.prototype.cf=function(a){(null==this.f||a>this.f.length)&&this.resize(a);if(this.Xf)throw d.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Uk=function(a,c){this.write(a,c)};b.prototype.jj=function(a,c,b){for(var e=this.size;c<e&&c<b;c++)a=d.I.Rh(this.read(c));return a};
b.prototype.lc=function(a,c,e){if(null==a||!(a instanceof b))return!1;var f=this.size,h=a.size;if(e>f||e>h&&f!=h)return!1;for(e>f&&(e=f);c<e;c++)if(this.read(c)!=a.read(c))return!1;return!0};b.prototype.nk=function(a,c,b,f,h,l,k){if(this.Sa)throw d.g.xa();if(!h&&(1>l||0!=f%l))throw d.g.N();var e=this.size-k;e<f&&this.resize(this.size+f-e);m(this.f,a+f,a,a+(k-a));this.f==c.f&&a<b&&(b+=f);if(h)this.f.set(c.f.subarray(b,b+f),a);else for(h=f,k=0;k<f;k+=l)for(h-=l,e=0;e<l;e++)this.f[a+k+e]=c.f[b+h+e]};
b.prototype.ul=function(a,c,b,f){if(this.Sa)throw d.g.xa();f-=a;m(this.f,a+f,a,a+f);for(f=0;f<b;f++)this.f[a+f]=c};b.prototype.lg=function(a,c,b){if(this.Sa)throw d.g.xa();m(this.f,a+2,a,a+(b-a));this.f[a]=c.x;this.f[a+1]=c.y};b.prototype.km=function(a,c,b,f,h,l){if(0>a||0>c||0>f)throw d.g.N();if(!h&&(0>=l||0!=c%l))throw d.g.N();if(b.size<f+c)throw d.g.N();if(0!=c)if(this.size<c+a&&this.resize(c+a),b==this)this.xi(a,c,f,h,l);else if(h)for(h=0;h<c;h++)this.f[a]=b.f[f],a++,f++;else if(f=f+c-l,1==l)for(h=
0;h<c;h++)this.f[a]=b.f[f],a++,f--;else for(h=0,c=d.I.truncate(c/l);h<c;h++){for(var e=0;e<l;e++)this.f[a+e]=b.f[f+e];a+=l;f-=l}};b.prototype.oj=function(a,c,b){if(this.Sa)throw d.g.xa();if(a+c>this.size)throw d.g.xa();0<b-(a+c)&&m(this.f,a,a+c,a+(b-(a+c))+c);this.size-=c};b.prototype.Jp=function(a,c,b){if(this.Sa)throw d.g.xa();if(1>b||0!=c%b)throw d.g.xa();for(var e=c>>1,h=0;h<e;h+=b){c-=b;for(var l=0;l<b;l++){var k=this.f[a+h+l];this.f[a+h+l]=this.f[a+c+l];this.f[a+c+l]=k}}};b.prototype.dh=function(a,
c,b){if(0>c||0>b||0>c||b+c>this.size)throw d.g.N();for(var e=c;e<c+b;e++)this.f[e]=a};b.prototype.xi=function(a,c,b,f,h){if(!f||a!=b)if(this.f.set(this.f.subarray(b,b+c),a),!f)for(b=a,a=a+c-h,f=0,c=d.I.truncate(c/2);f<c;f++){for(var e=0;e<h;e++){var k=this.f[b+e];this.f[b+e]=this.f[a+e];this.f[a+e]=k}b+=h;a-=h}};b.prototype.$p=function(a,c,b,f,h){if(0>a||0>c||0>f)throw d.g.N();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=f;f<c;f++)this.f[a]=b[f].x,this.f[a+1]=b[f].y,
a+=h};b.prototype.Hp=function(a,c,b,f,h){if(0>a||0>c||0>f||this.size<c+a)throw d.g.N();if(h)for(h=0;h<c;h++)b[f+h]=this.f[a+h];else for(f=f+c-1;a<c;a++)b[f]=this.f[a],f--};b.prototype.clear=function(a){a?this.resize(0):this.cf(0)};b.prototype.xd=function(a,c,b){Array.prototype.sort.call(this.f.subarray(a,c),b)};b.prototype.Qh=function(){return 1};return b}();d.QG=g})(p||(p={}));!0===p.ah.Sk&&!0===p.ah.it&&(p.qd=p.QG);(function(d){function m(b,a,c,e){c=new Int32Array(b.subarray(c,e));b.set(c,a)}d.tT=
function(){return function(){this.random=1973}}();var g=function(){function b(a){this.Sa=this.Xf=!1;this.f=[];var c=a;2>c&&(c=2);this.f=this.f=d.I.Lh(c,b.ob);this.size=a}b.Yc=function(a,c){b.ob=c;var e=new b(a);b.ob=0;return e};b.lj=function(a){var c=new b(0);c.f=a.f.slice(0);c.size=a.size;return c};b.V=function(a,c){var e=new b(0);e.size=a.size;e.size>c&&(e.size=c);e.f=a.f.slice(0,e.size);return e};b.prototype.xb=function(){};b.prototype.read=function(a){return this.f[a]};b.prototype.ec=function(a,
c){c.x=this.f[a];c.y=this.f[a+1]};b.prototype.get=function(a){return this.f[a]};b.prototype.write=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c};b.prototype.set=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c};b.prototype.Rn=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c.x;this.f[a+1]=c.y};b.prototype.add=function(a){this.resize(this.size+1);this.f[this.size-1]=a};b.prototype.Ip=function(a){return b.V(this,a)};b.prototype.Bh=function(a){return this.read(a)};b.prototype.resize=function(a,
c){void 0===c&&(c=0);if(this.Xf)throw d.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(d.I.truncate(5*a/4)<this.f.length){var b=this.f.slice(0,a);this.f=b}}else if(a>this.f.length){d.I.truncate(64>a?Math.max(2*a,4):5*a/4);for(var b=this.f.slice(0),f=this.f.length;f<a;f++)b[f]=c;this.f=b}this.size=a};b.prototype.cf=function(a){(null==this.f||a>this.f.length)&&this.resize(a);if(this.Xf)throw d.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");
this.size=a};b.prototype.Uk=function(a,c){this.write(a,c)};b.prototype.jj=function(a,c,b){for(var e=this.size;c<e&&c<b;c++)a=d.I.kg(this.read(c),a);return a};b.prototype.lc=function(a,c,e){if(null==a||!(a instanceof b))return!1;var f=this.size,h=a.size;if(e>f||e>h&&f!=h)return!1;for(e>f&&(e=f);c<e;c++)if(this.read(c)!=a.read(c))return!1;return!0};b.prototype.nk=function(a,c,b,f,h,l,k){if(this.Sa)throw d.g.xa();if(!h&&(1>l||0!=f%l))throw d.g.N();for(var e=0;e<k-a;e++)this.f[a+f+e]=this.f[a+e];this.f==
c.f&&a<b&&(b+=f);if(h)for(e=0;e<f;e++)this.f[e+a]=c.f[b+e];else for(h=f,k=0;k<f;k+=l)for(h-=l,e=0;e<l;e++)this.f[a+k+e]=c.f[b+h+e]};b.prototype.ul=function(a,c,b,f){if(this.Sa)throw d.g.xa();f-=a;for(var e=this.f.slice(a,a+f),l=0;l<f;l++)this.f[a+b+l]=e[l];for(f=0;f<b;f++)this.f[a+f]=c};b.prototype.lg=function(a,c,b){if(this.Sa)throw d.g.xa();for(var e=this.f.slice(a,a+(b-a)),h=0;h<b-a;h++)this.f[h+a+2]=e[h];this.f[a]=c.x;this.f[a+1]=c.y};b.prototype.km=function(a,c,b,f,h,l){if(0>a||0>c||0>f)throw d.g.N();
if(!h&&(0>=l||0!=c%l))throw d.g.N();if(b.size<f+c)throw d.g.N();if(0!=c)if(this.size<c+a&&this.resize(c+a),b==this)this.xi(a,c,f,h,l);else if(h)for(h=0;h<c;h++)this.f[a]=b.f[f],a++,f++;else if(f=f+c-l,1==l)for(h=0;h<c;h++)this.f[a]=b.f[f],a++,f--;else for(h=0,c=d.I.truncate(c/l);h<c;h++){for(var e=0;e<l;e++)this.f[a+e]=b.f[f+e];a+=l;f-=l}};b.prototype.oj=function(a,c,b){if(this.Sa)throw d.g.xa();if(a+c>this.size)throw d.g.xa();if(0<b-(a+c)){b-=a+c;for(var e=this.f.slice(a+c,a+b+c),h=0;h<b;h++)this.f[a+
h]=e[h]}this.size-=c};b.prototype.Jp=function(a,c,b){if(this.Sa)throw d.g.xa();if(1>b||0!=c%b)throw d.g.xa();for(var e=c>>1,h=0;h<e;h+=b){c-=b;for(var l=0;l<b;l++){var k=this.f[a+h+l];this.f[a+h+l]=this.f[a+c+l];this.f[a+c+l]=k}}};b.prototype.dh=function(a,c,b){if(0>c||0>b||0>c||b+c>this.size)throw d.g.N();for(var e=c;e<c+b;e++)this.f[e]=a};b.prototype.xi=function(a,c,b,f,h){if(!f||a!=b){for(var e=0;e<c;e++)this.f[a+e]=this.f[b+e];if(!f)for(b=a,a=a+c-h,f=0,c=d.I.truncate(c/2);f<c;f++){for(e=0;e<h;e++){var k=
this.f[b+e];this.f[b+e]=this.f[a+e];this.f[a+e]=k}b+=h;a-=h}}};b.prototype.$p=function(a,c,b,f,h){if(0>a||0>c||0>f)throw d.g.N();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=f;f<c;f++)this.f[a]=b[f].x,this.f[a+1]=b[f].y,a+=h};b.prototype.Hp=function(a,c,b,f,h){if(0>a||0>c||0>f||this.size<c+a)throw d.g.N();if(h)for(h=0;h<c;h++)b[f+h]=this.f[a+h];else for(f=f+c-1;a<c;a++)b[f]=this.f[a],f--};b.prototype.clear=function(a){a?this.resize(0):this.cf(0)};b.prototype.xd=
function(a,c,b){var e=this.f.slice(0,a),h=this.f.slice(c);a=this.f.slice(a,c).sort(b);this.f.length=0;this.f.push.apply(this.f,e.concat(a).concat(h))};b.prototype.Qh=function(){return 2};b.prototype.tc=function(){return this.f[this.size-1]};b.prototype.af=function(){this.resize(this.size-1)};b.prototype.JF=function(a){this.f[this.size-1]=a};b.prototype.QE=function(a){a<this.size-1&&(this.f[a]=this.f[this.size-1]);this.resize(this.size-1)};b.prototype.Qs=function(a){for(var c=0,b=this.size;c<b;c++)if(this.f[c]==
a)return c;return-1};b.prototype.Nw=function(a){return 0<=this.Qs(a)};b.ob=0;return b}();d.ga=g;g=function(){function b(a){this.Sa=this.Xf=!1;this.f=null;var c=a;2>c&&(c=2);this.f=new Int32Array(c);this.size=a}b.Yc=function(a,c){var e=new b(a),f=a,h=e.f;2>f&&(f=2);if(0!==c)for(var d=0;d<f;d++)h[d]=c;return e};b.lj=function(a){var c=new b(0);c.f=new Int32Array(a.f);c.size=a.size;return c};b.V=function(a,c){var e=new b(0);e.size=a.size;e.size>c&&(e.size=c);var f=e.size;2>f&&(f=2);e.f=new Int32Array(f);
e.f.set(a.f.length<=f?a.f:a.f.subarray(0,f),0);return e};b.prototype.xb=function(a){0>=a||(null==this.f?this.f=new Int32Array(a):a<=this.f.length||(0<this.f.length?(a=new Int32Array(a),a.set(this.f),this.f=a):this.f=new Int32Array(a)))};b.prototype.read=function(a){return this.f[a]};b.prototype.ec=function(a,c){c.x=this.f[a];c.y=this.f[a+1]};b.prototype.get=function(a){return this.f[a]};b.prototype.write=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c};b.prototype.set=function(a,c){if(this.Sa)throw d.g.xa();
this.f[a]=c};b.prototype.Rn=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c.x;this.f[a+1]=c.y};b.prototype.add=function(a){this.resize(this.size+1);this.f[this.size-1]=a};b.prototype.Ip=function(a){return b.V(this,a)};b.prototype.Bh=function(a){return this.read(a)};b.prototype.resize=function(a,c){void 0===c&&(c=0);if(this.Xf)throw d.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(30<this.f.length&&5*a/4<this.f.length){var b=new Int32Array(this.f,0,
a);this.f=b}}else{a>this.f.length&&(b=d.I.truncate(64>a?Math.max(2*a,4):5*a/4),b=new Int32Array(b),b.set(this.f),this.f=b);for(var b=this.f,f=this.size;f<a;f++)b[f]=c}this.size=a};b.prototype.cf=function(a){(null==this.f||a>this.f.length)&&this.resize(a);if(this.Xf)throw d.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Uk=function(a,c){this.write(a,c)};b.prototype.jj=function(a,c,b){for(var e=this.size;c<e&&c<b;c++)a=d.I.kg(this.read(c),a);return a};
b.prototype.lc=function(a,c,e){if(null==a||!(a instanceof b))return!1;var f=this.size,h=a.size;if(e>f||e>h&&f!=h)return!1;for(e>f&&(e=f);c<e;c++)if(this.read(c)!=a.read(c))return!1;return!0};b.prototype.nk=function(a,c,b,f,h,l,k){if(this.Sa)throw d.g.xa();if(!h&&(1>l||0!=f%l))throw d.g.N();m(this.f,a+f,a,a+(k-a));this.f==c.f&&a<b&&(b+=f);if(h)this.f.set(c.f.subarray(b,b+f),a);else for(h=f,k=0;k<f;k+=l){h-=l;for(var e=0;e<l;e++)this.f[a+k+e]=c.f[b+h+e]}};b.prototype.ul=function(a,c,b,f){if(this.Sa)throw d.g.xa();
f-=a;m(this.f,a+f,a,a+f);for(f=0;f<b;f++)this.f[a+f]=c};b.prototype.lg=function(a,c,b){if(this.Sa)throw d.g.xa();m(this.f,a+2,a,a+(b-a));this.f[a]=c.x;this.f[a+1]=c.y};b.prototype.km=function(a,c,b,f,h,l){if(0>a||0>c||0>f)throw d.g.N();if(!h&&(0>=l||0!=c%l))throw d.g.N();if(b.size<f+c)throw d.g.N();if(0!=c)if(this.size<c+a&&this.resize(c+a),b==this)this.xi(a,c,f,h,l);else if(h)for(h=0;h<c;h++)this.f[a]=b.f[f],a++,f++;else if(f=f+c-l,1==l)for(h=0;h<c;h++)this.f[a]=b.f[f],a++,f--;else for(h=0,c=d.I.truncate(c/
l);h<c;h++){for(var e=0;e<l;e++)this.f[a+e]=b.f[f+e];a+=l;f-=l}};b.prototype.oj=function(a,c,b){if(this.Sa)throw d.g.xa();if(a+c>this.size)throw d.g.xa();0<b-(a+c)&&m(this.f,a,a+c,a+(b-(a+c))+c);this.size-=c};b.prototype.Jp=function(a,c,b){if(this.Sa)throw d.g.xa();if(1>b||0!=c%b)throw d.g.xa();for(var e=c>>1,h=0;h<e;h+=b){c-=b;for(var l=0;l<b;l++){var k=this.f[a+h+l];this.f[a+h+l]=this.f[a+c+l];this.f[a+c+l]=k}}};b.prototype.dh=function(a,c,b){if(0>c||0>b||0>c||b+c>this.size)throw d.g.N();for(var e=
c;e<c+b;e++)this.f[e]=a};b.prototype.xi=function(a,c,b,f,h){if(!f||a!=b)if(this.f.set(this.f.subarray(b,b+c),a),!f)for(b=a,a=a+c-h,f=0,c=d.I.truncate(c/2);f<c;f++){for(var e=0;e<h;e++){var k=this.f[b+e];this.f[b+e]=this.f[a+e];this.f[a+e]=k}b+=h;a-=h}};b.prototype.$p=function(a,c,b,f,h){if(0>a||0>c||0>f)throw d.g.N();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=f;f<c;f++)this.f[a]=b[f].x,this.f[a+1]=b[f].y,a+=h};b.prototype.Hp=function(a,c,b,f,h){if(0>a||0>c||0>
f||this.size<c+a)throw d.g.N();if(h)for(h=0;h<c;h++)b[f+h]=this.f[a+h];else for(f=f+c-1;a<c;a++)b[f]=this.f[a],f--};b.prototype.clear=function(a){a?this.resize(0):this.cf(0)};b.prototype.xd=function(a,c,e){10>c-a?b.$i(this.f,a,c,e):b.$g(this.f,a,c-1,e)};b.prototype.Qh=function(){return 2};b.prototype.tc=function(){return this.f[this.size-1]};b.prototype.af=function(){this.resize(this.size-1)};b.prototype.JF=function(a){this.f[this.size-1]=a};b.prototype.QE=function(a){a<this.size-1&&(this.f[a]=this.f[this.size-
1]);this.resize(this.size-1)};b.prototype.Qs=function(a){for(var c=0,b=this.size;c<b;c++)if(this.f[c]==a)return c;return-1};b.prototype.Nw=function(a){return 0<=this.Qs(a)};b.$i=function(a,c,b,f){for(var e=c;e<b;e++){for(var d=a[e],k=e-1;k>=c&&0<f(a[k],d);)a[k+1]=a[k],k--;a[k+1]=d}};b.Wf=function(a,c,b){var e=a[b];a[b]=a[c];a[c]=e};b.$g=function(a,c,e,f){if(!(c>=e))for(;;){if(9>e-c){b.$i(a,c,e+1,f);break}var h=a[c];b.Wf(a,c,e);for(var d=c,k=c;k<e;k++)0>=f(a[k],h)&&(b.Wf(a,d,k),d+=1);b.Wf(a,d,e);d-
c<e-d?(b.$g(a,c,d-1,f),c=d+1):(b.$g(a,d+1,e,f),e=d-1)}};return b}();d.Xu=g})(p||(p={}));!0===p.ah.Sk&&(p.ga=p.Xu);(function(d){function m(b,a,c,e){c=new Int8Array(b.subarray(c,e));b.set(c,a)}var g=function(){function b(a){this.Sa=this.Xf=!1;this.f=[];var c=a;2>c&&(c=2);this.f=d.I.Lh(c,b.ob);this.size=a}b.Yc=function(a,c){b.ob=c;var e=new b(a);b.ob=0;return e};b.lj=function(a){var c=new b(0);c.f=a.f.slice(0);c.size=a.size;return c};b.V=function(a,c){var e=new b(0);e.size=a.size;e.size>c&&(e.size=c);
e.f=a.f.slice(0,e.size);return e};b.prototype.xb=function(){};b.prototype.read=function(a){return this.f[a]};b.prototype.ec=function(a,c){c.x=this.f[a];c.y=this.f[a+1]};b.prototype.get=function(a){return this.f[a]};b.prototype.write=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c};b.prototype.set=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c};b.prototype.Rn=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c.x;this.f[a+1]=c.y};b.prototype.add=function(a){this.resize(this.size+1);this.f[this.size-
1]=a};b.prototype.Ip=function(a){return b.V(this,a)};b.prototype.Bh=function(a){return this.read(a)};b.prototype.resize=function(a,c){void 0===c&&(c=0);if(this.Xf)throw d.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(d.I.truncate(5*a/4)<this.f.length){var b=this.f.slice(0,a);this.f=b}}else if(a>this.f.length){d.I.truncate(64>a?Math.max(2*a,4):5*a/4);for(var b=this.f.slice(0),f=this.f.length;f<a;f++)b[f]=c;this.f=b}this.size=a};b.prototype.cf=function(a){(null==
this.f||a>this.f.length)&&this.resize(a);if(this.Xf)throw d.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Uk=function(a,c){this.write(a,c)};b.prototype.jj=function(a,c,b){for(var e=this.size;c<e&&c<b;c++)a=d.I.kg(this.read(c),a);return a};b.prototype.lc=function(a,c,e){if(null==a||!(a instanceof b))return!1;var f=this.size,h=a.size;if(e>f||e>h&&f!=h)return!1;for(e>f&&(e=f);c<e;c++)if(this.read(c)!=a.read(c))return!1;return!0};b.prototype.nk=function(a,
c,b,f,h,l,k){if(this.Sa)throw d.g.xa();if(!h&&(1>l||0!=f%l))throw d.g.N();for(var e=0;e<k-a;e++)this.f[a+f+e]=this.f[a+e];this.f==c.f&&a<b&&(b+=f);if(h)for(e=0;e<f;e++)this.f[e+a]=c.f[b+e];else for(h=f,k=0;k<f;k+=l)for(h-=l,e=0;e<l;e++)this.f[a+k+e]=c.f[b+h+e]};b.prototype.ul=function(a,c,b,f){if(this.Sa)throw d.g.xa();f-=a;for(var e=this.f.slice(a,a+f),l=0;l<f;l++)this.f[a+b+l]=e[l];for(f=0;f<b;f++)this.f[a+f]=c};b.prototype.lg=function(a,c,b){if(this.Sa)throw d.g.xa();for(var e=this.f.slice(a,a+
(b-a)),h=0;h<b-a;h++)this.f[h+a+2]=e[h];this.f[a]=c.x;this.f[a+1]=c.y};b.prototype.km=function(a,c,b,f,h,l){if(0>a||0>c||0>f)throw d.g.N();if(!h&&(0>=l||0!=c%l))throw d.g.N();if(b.size<f+c)throw d.g.N();if(0!=c)if(this.size<c+a&&this.resize(c+a),b==this)this.xi(a,c,f,h,l);else if(h)for(h=0;h<c;h++)this.f[a]=b.f[f],a++,f++;else if(f=f+c-l,1==l)for(h=0;h<c;h++)this.f[a]=b.f[f],a++,f--;else for(h=0,c=d.I.truncate(c/l);h<c;h++){for(var e=0;e<l;e++)this.f[a+e]=b.f[f+e];a+=l;f-=l}};b.prototype.oj=function(a,
c,b){if(this.Sa)throw d.g.xa();if(a+c>this.size)throw d.g.xa();if(0<b-(a+c)){b-=a+c;for(var e=this.f.slice(a+c,a+b+c),h=0;h<b;h++)this.f[a+h]=e[h]}this.size-=c};b.prototype.Jp=function(a,c,b){if(this.Sa)throw d.g.xa();if(1>b||0!=c%b)throw d.g.xa();for(var e=c>>1,h=0;h<e;h+=b){c-=b;for(var l=0;l<b;l++){var k=this.f[a+h+l];this.f[a+h+l]=this.f[a+c+l];this.f[a+c+l]=k}}};b.prototype.dh=function(a,c,b){if(0>c||0>b||0>c||b+c>this.size)throw d.g.N();for(var e=c;e<c+b;e++)this.f[e]=a};b.prototype.xi=function(a,
c,b,f,h){if(!f||a!=b){for(var e=0;e<c;e++)this.f[a+e]=this.f[b+e];if(!f)for(b=a,a=a+c-h,f=0,c=d.I.truncate(c/2);f<c;f++){for(e=0;e<h;e++){var k=this.f[b+e];this.f[b+e]=this.f[a+e];this.f[a+e]=k}b+=h;a-=h}}};b.prototype.$p=function(a,c,b,f,h){if(0>a||0>c||0>f)throw d.g.N();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=f;f<c;f++)this.f[a]=b[f].x,this.f[a+1]=b[f].y,a+=h};b.prototype.Hp=function(a,c,b,f,h){if(0>a||0>c||0>f||this.size<c+a)throw d.g.N();if(h)for(h=0;h<
c;h++)b[f+h]=this.f[a+h];else for(f=f+c-1;a<c;a++)b[f]=this.f[a],f--};b.prototype.clear=function(a){a?this.resize(0):this.cf(0)};b.prototype.xd=function(a,c,b){var e=this.f.slice(0,a),h=this.f.slice(c);a=this.f.slice(a,c).sort(b);this.f.length=0;this.f.push.apply(this.f,e.concat(a).concat(h))};b.prototype.Qh=function(){return 1};b.prototype.xy=function(a,c){if(this.Sa)throw d.g.ra("invalid call. Attribute Stream is read only.");this.f[a]|=c};b.prototype.BB=function(a,c){if(this.Sa)throw d.g.ra("invalid call. Attribute Stream is read only.");
this.f[a]&=~c};b.ob=0;return b}();d.Wk=g;g=function(){function b(a){this.f=null;var c=a;2>c&&(c=2);this.f=new Int8Array(c);this.size=a}b.Yc=function(a,c){var e=new b(a),f=a,h=e.f;2>f&&(f=2);if(0!==c)for(var d=0;d<f;d++)h[d]=c;return e};b.lj=function(a){var c=new b(0);c.f=new Int8Array(a.f);c.size=a.size;return c};b.V=function(a,c){var e=new b(0);e.size=a.size;e.size>c&&(e.size=c);var f=e.size;2>f&&(f=2);e.f=new Int8Array(f);e.f.set(a.f.length<=f?a.f:a.f.subarray(0,f),0);return e};b.prototype.xb=function(a){0>=
a||(null==this.f?this.f=new Int8Array(a):a<=this.f.length||(0<this.f.length?(a=new Int8Array(a),a.set(this.f),this.f=a):this.f=new Int8Array(a)))};b.prototype.read=function(a){return this.f[a]};b.prototype.ec=function(a,c){c.x=this.f[a];c.y=this.f[a+1]};b.prototype.get=function(a){return this.f[a]};b.prototype.write=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c};b.prototype.set=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=c};b.prototype.Rn=function(a,c){if(this.Sa)throw d.g.xa();this.f[a]=
c.x;this.f[a+1]=c.y};b.prototype.add=function(a){this.resize(this.size+1);this.f[this.size-1]=a};b.prototype.Ip=function(a){return b.V(this,a)};b.prototype.Bh=function(a){return this.read(a)};b.prototype.resize=function(a,c){void 0===c&&(c=0);if(this.Xf)throw d.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(30<this.f.length&&5*a/4<this.f.length){var b=new Int8Array(this.f,0,a);this.f=b}}else{a>this.f.length&&(b=d.I.truncate(64>a?Math.max(2*a,4):5*a/4),
b=new Int8Array(b),b.set(this.f),this.f=b);for(var b=this.f,f=this.size;f<a;f++)b[f]=c}this.size=a};b.prototype.cf=function(a){(null==this.f||a>this.f.length)&&this.resize(a);if(this.Xf)throw d.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Uk=function(a,c){this.write(a,c)};b.prototype.jj=function(a,c,b){for(var e=this.size;c<e&&c<b;c++)a=d.I.kg(this.read(c),a);return a};b.prototype.lc=function(a,c,e){if(null==a||!(a instanceof b))return!1;var f=this.size,
h=a.size;if(e>f||e>h&&f!=h)return!1;for(e>f&&(e=f);c<e;c++)if(this.read(c)!=a.read(c))return!1;return!0};b.prototype.nk=function(a,c,b,f,h,l,k){if(this.Sa)throw d.g.xa();if(!h&&(1>l||0!=f%l))throw d.g.N();m(this.f,a+f,a,a+(k-a));this.f==c.f&&a<b&&(b+=f);if(h)this.f.set(c.f.subarray(b,b+f),a);else for(h=f,k=0;k<f;k+=l){h-=l;for(var e=0;e<l;e++)this.f[a+k+e]=c.f[b+h+e]}};b.prototype.ul=function(a,c,b,f){if(this.Sa)throw d.g.xa();f-=a;m(this.f,a+f,a,a+f);for(f=0;f<b;f++)this.f[a+f]=c};b.prototype.lg=
function(a,c,b){if(this.Sa)throw d.g.xa();m(this.f,a+2,a,a+(b-a));this.f[a]=c.x;this.f[a+1]=c.y};b.prototype.km=function(a,c,b,f,h,l){if(0>a||0>c||0>f)throw d.g.N();if(!h&&(0>=l||0!=c%l))throw d.g.N();if(b.size<f+c)throw d.g.N();if(0!=c)if(this.size<c+a&&this.resize(c+a),b==this)this.xi(a,c,f,h,l);else if(h)for(h=0;h<c;h++)this.f[a]=b.f[f],a++,f++;else if(f=f+c-l,1==l)for(h=0;h<c;h++)this.f[a]=b.f[f],a++,f--;else for(h=0,c=d.I.truncate(c/l);h<c;h++){for(var e=0;e<l;e++)this.f[a+e]=b.f[f+e];a+=l;f-=
l}};b.prototype.oj=function(a,c,b){if(this.Sa)throw d.g.xa();if(a+c>this.size)throw d.g.xa();0<b-(a+c)&&m(this.f,a,a+c,a+(b-(a+c))+c);this.size-=c};b.prototype.Jp=function(a,c,b){if(this.Sa)throw d.g.xa();if(1>b||0!=c%b)throw d.g.xa();for(var e=c>>1,h=0;h<e;h+=b){c-=b;for(var l=0;l<b;l++){var k=this.f[a+h+l];this.f[a+h+l]=this.f[a+c+l];this.f[a+c+l]=k}}};b.prototype.dh=function(a,c,b){if(0>c||0>b||0>c||b+c>this.size)throw d.g.N();for(var e=c;e<c+b;e++)this.f[e]=a};b.prototype.xi=function(a,c,b,f,
h){if(!f||a!=b)if(this.f.set(this.f.subarray(b,b+c),a),!f)for(b=a,a=a+c-h,f=0,c=d.I.truncate(c/2);f<c;f++){for(var e=0;e<h;e++){var k=this.f[b+e];this.f[b+e]=this.f[a+e];this.f[a+e]=k}b+=h;a-=h}};b.prototype.$p=function(a,c,b,f,h){if(0>a||0>c||0>f)throw d.g.N();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=f;f<c;f++)this.f[a]=b[f].x,this.f[a+1]=b[f].y,a+=h};b.prototype.Hp=function(a,c,b,f,h){if(0>a||0>c||0>f||this.size<c+a)throw d.g.N();if(h)for(h=0;h<c;h++)b[f+
h]=this.f[a+h];else for(f=f+c-1;a<c;a++)b[f]=this.f[a],f--};b.prototype.clear=function(a){a?this.resize(0):this.cf(0)};b.prototype.xd=function(a,c,b){c=this.f.subarray(a,c);Array.prototype.sort.call(c,b);this.f.set(c,a)};b.prototype.xy=function(a,c){if(this.Sa)throw d.g.ra("invalid call. Attribute Stream is read only.");this.f[a]|=c};b.prototype.BB=function(a,c){if(this.Sa)throw d.g.ra("invalid call. Attribute Stream is read only.");this.f[a]&=~c};b.prototype.Qh=function(){return 1};return b}();d.Yu=
g})(p||(p={}));!0===p.ah.Sk&&(p.Wk=p.Yu);(function(d){var m=function(){function g(){}g.to=function(b,a){return d.Wk.Yc(b,a)};g.kl=function(b,a){return d.qd.Yc(b,a)};g.Sv=function(b,a,c){switch(b){case 1:b=d.qd.Yc(a,c);break;case 2:b=d.ga.Yc(a,c);break;case 4:b=d.Wk.Yc(a,c);break;default:throw d.g.wa();}return b};g.Tv=function(b,a){return g.Sv(d.pa.Qh(b),a*d.pa.Wa(b),d.pa.ue(b))};g.Dg=function(b,a){return d.ga.Yc(b,a)};g.ay=function(b){var a,c=[];for(a=0;a<b;a++)c.push(null);return c};return g}();
d.Ac=m})(p||(p={}));(function(d){var m=function(){function g(){}g.to=function(b,a){return d.Yu.Yc(b,a)};g.kl=function(b,a){return d.qd.Yc(b,a)};g.Sv=function(b,a,c){switch(b){case 1:b=d.qd.Yc(a,c);break;case 2:b=d.Xu.Yc(a,c);break;case 4:b=d.Yu.Yc(a,c);break;default:throw d.g.wa();}return b};g.Tv=function(b,a){return d.Ac.Sv(d.pa.Qh(b),a*d.pa.Wa(b),d.pa.ue(b))};g.Dg=function(b,a){return d.Xu.Yc(b,a)};g.ay=function(b){var a,c=[];for(a=0;a<b;a++)c.push(null);return c};return g}();d.RG=m})(p||(p={}));
!0===p.ah.Sk&&(p.Ac=p.RG);(function(d){d.ca=function(){return function(d){void 0===d&&(d=0);this.l=d}}()})(p||(p={}));(function(d){var m=function(){function b(){}b.nb=function(a,c){return 0<=c?b.H(a):-b.H(a)};b.H=function(a){return 0>a?-a:a};b.Ih=function(a){return 3.552713678800501E-15>a};b.Xz=function(a,c,e){return b.H(a-c)<=e*(1+(b.H(a)+b.H(c))/2)};b.S=function(a,c){return b.Xz(a,c,3.552713678800501E-15)};b.wI=function(a){return 3.552713678800501E-15>=b.H(a)};b.Vc=function(a){return b.wI(a)};return b}();
d.j=m;var g=function(){function b(){}b.Sn=function(a,c){var b=m.H(a),f=m.H(c),h=0;0!=b+f&&(b>f?(h=f/b,h=b*Math.sqrt(1+h*h)):(h=b/f,h=f*Math.sqrt(1+h*h)));return h};b.Ep=function(a,c,e,f,h){for(var d=[0,0,0],k=[0,0,0],n=0;2>=n;n++)c[n]-=a[n],e[n]-=c[n];e=d[1]*k[2]-d[2]*k[1];c=d[2]*k[0]-d[0]*k[2];d=d[0]*k[1]-d[1]*k[0];a=-1*(e*a[0]+c*a[1]+d*a[2]);f[0]=e;f[1]=c;f[2]=d;f[3]=a;k=b.jm(f);f[0]/=k;f[1]/=k;f[2]/=k;f[3]/=k;0!=h&&(k=m.Vc(d)?m.Vc(a)?m.nb(1,c):-m.nb(1,a):m.nb(1,d),k*=m.nb(1,h),f[0]*=k,f[1]*=k,
f[2]*=k,f[3]*=k)};b.Uu=function(a,c,b){b[0]=a[1]*c[2]-c[1]*a[2];b[1]=a[2]*c[0]-c[2]*a[0];b[2]=a[0]*c[1]-c[0]*a[1]};b.Qr=function(a,c){return a[0]*c[0]+a[1]*c[1]+a[2]*c[2]};b.jm=function(a){return b.Sn(b.Sn(a[0],a[1]),a[2])};b.wm=function(a,c,e,f,h,d){var l=b.n(1,a,c),n=Math.cos(c);f.l=(l+0)*n*Math.cos(e);h.l=(l+0)*n*Math.sin(e);d.l=(l*(1-a)+0)*Math.sin(c)};b.JK=function(a,c,e,f,h,d,k){var l=b.Sn(c,e),g=1*Math.sqrt(1-a),q=g/1;if(m.S(l,0))d.l=0,h.l=m.nb(1.570796326794897,f),k.l=m.H(f)-g;else{d.l=Math.atan2(e,
c);e=Math.atan2(1*f,g*l);d=Math.cos(e);var r=Math.sin(e);c=g*a/(1-a);a*=1;e=Math.atan2(f+c*r*r*r,l-a*d*d*d);3.141592653589793<m.H(e)&&(e=m.nb(3.141592653589793,e)-e);e=Math.atan(q*Math.tan(e));r=Math.sin(e);d=Math.cos(e);h.l=Math.atan2(f+c*r*r*r,l-a*d*d*d);1.570796326794897<m.H(h.l)&&(h.l=m.nb(3.141592653589793,h.l)-h.l);e=Math.atan(q*Math.tan(h.l));r=Math.sin(e);d=Math.cos(e);k.l=(f-g*r)*Math.sin(h.l)+(l-1*d)*Math.cos(h.l)}};b.n=function(a,c,b){b=Math.sin(b);return a/Math.sqrt(1-c*b*b)};b.sr=function(a,
c){return Math.atan2(Math.sin(c)*(1-a),Math.cos(c))};b.Si=function(a,c){return Math.atan2(Math.sin(c),Math.cos(c)*(1-a))};b.xn=function(a,c){if(m.Ih(a)||0==c||m.S(m.H(c),1.570796326794897))return c;var e,f,h,d,k,n,g,q,r;if(.006884661117170036>a){d=Math.sqrt(1-a);k=(1-d)/(1+d);n=k*k;g=k*n;q=k*g;e=k*q;r=k*e;f=k*r;h=1.572916666666667*g-3.2578125*e+4.295068359375*f;d=2.142578125*q-6.071484375*r;var w=3.129296875*e-11.249837239583334*f,t=4.775276692708333*r,x=7.958636765252976*f,v=Math.cos(2*c);return c+
Math.sin(2*c)*(1.5*k-.84375*g+.525390625*e-.2688395182291667*f-h+w-x+v*(2*(1.3125*n-1.71875*q+1.650146484375*r)-4*d+6*t+v*(4*h-12*w+24*x+v*(8*d-32*t+v*(16*w-80*x+v*(32*t+64*v*x))))))}d=1-a;k=a/2;n=m.H(c);g=n*b.Yr(a)/(1.570796326794897*d);q=9999;r=n;for(n=0;1E-16<q&&50>n;n++)f=b.Tk(a,r),e=(b.Lz(r,a)-k*Math.sin(2*r)/f)/d-g,f=1/(f*f*f),h=e/f,e=r-h,q=m.H(h),r=e;return 0<=c?r:-r};b.nR=function(a,c){return m.Ih(c)?a:a*b.Yr(c)/1.570796326794897};b.W=function(a){a=b.Hz(a,6.283185307179586);return 0>a?a+6.283185307179586:
3.141592653589793>m.H(a)||m.S(m.H(a),3.141592653589793)?a:a-6.283185307179586};b.Hz=function(a,c){return a-Math.floor(a/c)*c};b.gg=function(a,c){if(.006884661117170036>c){var e=Math.sqrt(1-c),e=(1-e)/(1+e),f=e*e,h=f*f;return a/(1+e)*(1+.25*f+.015625*h+.00390625*f*h)*1.570796326794897}return a*b.Yr(c)};b.Dp=function(a,c){var e=m.nb(1,Math.sin(c)),f=m.H(b.Hz(c,3.141592653589793));c=1.570796326794897>=f?f:3.141592653589793-f;var h;m.S(c,1.570796326794897)?h=c:h=Math.atan(Math.sqrt(1-a)*Math.tan(c));
return h*e};b.q=function(a,c,e){if(.006884661117170036>c){c=Math.sqrt(1-c);c=(1-c)/(1+c);var f=c*c,h=c*f,d=c*h,k=c*d,n=c*k,g=c*n,q=-.7291666666666666*h+.2278645833333333*k+.03987630208333334*g,r=.615234375*d-.21533203125*n,w=-.54140625*k+.20302734375*g,t=.48876953125*n,x=-.4488699776785715*g,m=Math.cos(2*e);return a/(1+c)*((1+.25*f+.015625*d+.00390625*n)*e+Math.sin(2*e)*(-1.5*c+.1875*h+.0234375*k+.00732421875*g-q+w-x+m*(2*(.9375*f-.234375*d-.03662109375*n)-4*r+6*t+m*(4*q-12*w+24*x+m*(8*r-32*t+m*(16*
w-80*x+m*(32*t+64*m*x)))))))}return a*(b.Lz(e,c)-.5*c*Math.sin(2*e)/b.Tk(c,e))};b.Tk=function(a,c){var b=Math.sin(c);return Math.sqrt(1-a*b*b)};b.Yr=function(a){return m.Xz(a,1,2.220446049250313E-16)?1:1>a?b.js(0,1-a)-a/3*b.hs(0,1-a):NaN};b.Lz=function(a,c){var e=m.nb(1,a);a=m.H(a);var f=Math.floor(a/1.570796326794897),h;if(1<c)h=0==a?0:NaN;else if(m.Vc(f))h=b.sin(a),h=h*b.js(1-h*h,1-c*h*h)-c/3*h*h*h*b.hs(1-h*h,1-c*h*h);else{h=d.I.truncate(f%2);var l=b.Yr(c);0<h?(h=Math.sin(1.570796326794897*(f+1)-
a),h=h*b.js(1-h*h,1-c*h*h)-c/3*h*h*h*b.hs(1-h*h,1-c*h*h),h=l*(f+1)-h):(h=Math.sin(a-1.570796326794897*f),h=h*b.js(1-h*h,1-c*h*h)-c/3*h*h*h*b.hs(1-h*h,1-c*h*h),h=l*f+h)}return h*e};b.sin=function(a){a=b.W(a);var c=m.nb(1,a);a=m.H(a);return m.S(a,3.141592653589793)?0:m.S(a,1.570796326794897)?1*c:Math.sin(a)*c};b.hs=function(a,c){for(var b=a,f=c,h=1,d=0,k=1,n,g,q,r;;){n=.2*(b+f+3*h);g=(n-b)/n;q=(n-f)/n;r=(n-h)/n;if(1E-4>m.H(g)&&1E-4>m.H(q)&&1E-4>m.H(r))break;r=Math.sqrt(f);n=Math.sqrt(h);r=Math.sqrt(b)*
(r+n)+r*n;d+=k/(n*(h+r));k*=.25;b=.25*(b+r);f=.25*(f+r);h=.25*(h+r)}b=g*q;h=r*r;f=b-h;h=b-6*h;g=h+f+f;return 3*d+k*(1+h*(-.2142857142857143+.10227272727272728*h-.1730769230769231*r*g)+r*(.1666666666666667*g+r*(-.4090909090909091*f+.1153846153846154*r*b)))/(n*Math.sqrt(n))};b.js=function(a,c){for(var b=a,f=c,h,d,k,n,g=1;;g=.25*(g+h)){h=(b+f+g)/3;d=2-(h+b)/h;k=2-(h+f)/h;n=2-(h+g)/h;if(1E-4>m.H(d)&&1E-4>m.H(k)&&1E-4>m.H(n))break;h=Math.sqrt(f);d=Math.sqrt(g);h=Math.sqrt(b)*(h+d)+h*d;b=.25*(b+h);f=.25*
(f+h)}b=d*k-n*n;f=d*k*n;return(1+(.04166666666666666*b-.1-.06818181818181818*f)*b+.07142857142857142*f)/Math.sqrt(h)};b.qu=function(a,c){if(m.Ih(a)||0==c||m.S(m.H(c),1.570796326794897))return c;var b,f,h;if(.006884661117170036>a){b=a*a;f=a*b;h=a*f;var d=a*h,k=a*d,n=a*k,g=-(.02708333333333333*f+.03430059523809524*h+.03149181547619048*d+.02634359154541446*k+.02156896735835538*n),q=.007669890873015873*h+.01299603174603175*d+.0148051353064374*k+.01454454953803912*n,r=-(.002275545634920635*d+.004830845032667949*
k+.006558395368616723*n),w=6.957236677288761E-4*k+.001775193002406544*n,t=-(2.17324089394402E-4*n),x=Math.cos(2*c);return c+Math.sin(2*c)*(-(.5*a+.2083333333333333*b+.09375*f+.04878472222222222*h+.02916666666666667*d+.01938905423280423*k+.01388255931712963*n)-g+r-t+x*(2*(.1041666666666667*b+.0875*f+.06050347222222222*h+.04151785714285714*d+.02958958540013228*k+.02203667534722222*n)-4*q+6*w+x*(4*g-12*r+24*t+x*(8*q-32*w+x*(16*r-80*t+x*(32*w+64*x*t))))))}0==c||m.S(m.H(c),1.570796326794897)?b=c:(f=Math.sqrt(a),
h=f*Math.sin(c),b=Math.tan(.7853981633974483+c/2)*Math.pow((1-h)/(1+h),f/2),b=2*Math.atan(b)-1.570796326794897);return b};b.$K=function(a,c){if(m.Ih(a)||0==c||m.S(m.H(c),1.570796326794897))return c;var b,f;if(.006884661117170036>a){x=a*a;r=a*x;w=a*r;b=a*w;t=a*b;f=a*t;var h=.05833333333333333*r+.07232142857142858*w+.05634300595238095*b+.0355325796406526*t+.020235546186067*f,d=.02653149801587302*w+.04379960317460317*b+.0429211791776896*t+.03255384637546096*f,k=.01294022817460318*b+.02668104344536636*
t+.03155651254609588*f,n=.00659454790965208*t+.0163075268674227*f,g=.003463473736911237*f,q=Math.cos(2*c);return c+Math.sin(2*c)*(.5*a+.2083333333333333*x+.08333333333333333*r+.03611111111111111*w+.01875*b+.01195601851851852*t+.008863673941798942*f-h+k-g+q*(2*(.1458333333333333*x+.1208333333333333*r+.07039930555555556*w+.03616071428571429*b+.01839451058201058*t+.01017113095238095*f)-4*d+6*n+q*(4*h-12*k+24*g+q*(8*d-32*n+q*(16*k-80*g+q*(32*n+64*q*g))))))}for(var r=Math.sqrt(a),w=r/2,t=Math.tan(.7853981633974483+
c/2),h=0,d=1,x=c;0!=d;x=f)if(b=r*Math.sin(x),f=t*Math.pow((1+b)/(1-b),w),f=2*Math.atan(f)-1.570796326794897,h++,m.S(f,x)||3E4<h)d=0;return x};return b}();d.u=g})(p||(p={}));(function(d){var m=function(){function g(){}g.Fb=function(b,a,c,e,f,h,l,k){if(null!=h||null!=l||null!=k){e=d.u.W(e);a=d.u.W(a);c=d.u.W(c);f=d.u.W(f);1.570796326794897<d.j.H(c)&&(c=d.j.nb(3.141592653589793,c)-c,a=d.u.W(a+3.141592653589793));1.570796326794897<d.j.H(f)&&(f=d.j.nb(3.141592653589793,f)-f,e=d.u.W(e+3.141592653589793));
var n=d.u.W(e-a);if(d.j.S(c,f)&&(d.j.S(a,e)||d.j.S(d.j.H(c),1.570796326794897)))null!=h&&(h.l=0),null!=l&&(l.l=0),null!=k&&(k.l=0);else{if(d.j.S(c,-f)){if(d.j.S(d.j.H(c),1.570796326794897)){null!=h&&(h.l=3.141592653589793*b);null!=l&&(l.l=0<c?d.u.W(3.141592653589793-d.u.W(e)):d.u.W(e));null!=k&&(k.l=0<c?d.u.W(e):d.u.W(3.141592653589793-d.u.W(e)));return}if(d.j.S(d.j.H(n),3.141592653589793)){null!=h&&(h.l=3.141592653589793*b);null!=l&&(l.l=0);null!=k&&(k.l=0);return}}var g=1.570796326794897==d.j.H(c)?
0:Math.cos(c),q=Math.sin(c),r=1.570796326794897==d.j.H(f)?0:Math.cos(f),w=Math.sin(f),t=1.570796326794897==d.j.H(n)?0:Math.cos(n),x=3.141592653589793==d.j.H(n)?0:Math.sin(n);if(null!=h){var m=Math.sin((f-c)/2),n=Math.sin(n/2);h.l=2*Math.asin(Math.sqrt(m*m+g*r*n*n))*b}null!=l&&(d.j.S(d.j.H(c),1.570796326794897)?l.l=0>c?e:d.u.W(3.141592653589793-e):l.l=Math.atan2(r*x,g*w-q*r*t));null!=k&&(d.j.S(d.j.H(f),1.570796326794897)?k.l=0>f?a:d.u.W(3.141592653589793-a):(k.l=Math.atan2(g*x,w*g*t-r*q),k.l=d.u.W(k.l+
3.141592653589793)))}}};g.gf=function(b,a,c,e,f,h,l){if(null!=h||null!=l){a=d.u.W(a);c=d.u.W(c);1.570796326794897<d.j.H(c)&&(c=d.j.nb(3.141592653589793,c)-c,a=d.u.W(a+3.141592653589793));d.j.S(d.j.H(c),1.570796326794897)&&(a=0);f=d.u.W(f);var k=d.j.S(d.j.H(f),1.570796326794897)?0:Math.cos(f),n=d.j.S(d.j.H(f),3.141592653589793)?0:Math.sin(f),g=d.j.S(d.j.H(c),1.570796326794897)?0:Math.cos(c),q=Math.sin(c);b=e/b;e=d.j.S(d.j.H(b),1.570796326794897)?0:Math.cos(b);var r=d.j.S(d.j.H(b),3.141592653589793)?
0:Math.sin(b),w=Math.asin(q*e+g*r*k);null!=l&&(l.l=w);null!=h&&(h.l=d.j.S(d.j.H(w),1.570796326794897)?d.j.S(c,-w)?0>w?f:d.u.W(3.141592653589793-f):a:d.j.S(d.j.H(c),1.570796326794897)&&d.j.S(b,3.141592653589793)?0>c?f:d.u.W(3.141592653589793-f):d.u.W(a+Math.atan2(r*n,g*e-q*r*k)))}};return g}();d.zg=m})(p||(p={}));(function(d){var m=function(){function g(){}g.Fb=function(b,a,c,e,f,h,l,k,n){var g=new d.ca(0),q=new d.ca(0),r=[0,0,0],w=[0,0,0],t=[0,0,0],x=new d.ca(0),m=new d.ca(0),C=new d.ca(0),p=new d.ca(0),
y=new d.ca(0);if(null!=l||null!=k||null!=n)if(d.j.Ih(a))d.zg.Fb(b,c,e,f,h,l,k,n);else{f=d.u.W(f);c=d.u.W(c);var z=d.u.W(f-c);if(d.j.S(e,h)&&(d.j.S(c,f)||d.j.S(d.j.H(e),1.570796326794897)))null!=l&&(l.l=0),null!=k&&(k.l=0),null!=n&&(n.l=0);else{if(d.j.S(e,-h)){if(d.j.S(d.j.H(e),1.570796326794897)){null!=l&&(l.l=2*d.u.gg(b,a));null!=k&&(k.l=0<e?d.u.W(3.141592653589793-d.u.W(f)):d.u.W(f));null!=n&&(n.l=0<e?d.u.W(f):d.u.W(3.141592653589793-d.u.W(f)));return}d.j.S(d.j.H(z),3.141592653589793)&&(null!=l&&
(l.l=2*d.u.gg(b,a)),null!=k&&(k.l=0),null!=n&&(n.l=0))}else if(d.j.S(d.j.H(e),1.570796326794897)||d.j.S(d.j.H(h),1.570796326794897))d.j.S(d.j.H(e),1.570796326794897)?c=f:f=c;var B=0,D;0>z&&(B=1,D=c,c=f,f=D,D=e,e=h,h=D);var z=d.u.sr(a,e),E=d.u.sr(a,h);if(null!=k||null!=n)d.zg.Fb(b,c,z,f,E,null,g,q),g=Math.atan2(Math.sin(g.l)*Math.cos(e-z),Math.cos(g.l)),q=Math.atan2(Math.sin(q.l)*Math.cos(h-E),Math.cos(q.l)),0!=B&&(D=g,g=q,q=D),null!=k&&(k.l=g),null!=n&&(n.l=q);null!=l&&(d.u.wm(a,e,c,C,p,y),r[0]=C.l,
r[1]=p.l,r[2]=y.l,d.u.wm(a,h,f,C,p,y),w[0]=C.l,w[1]=p.l,w[2]=y.l,t[0]=r[1]*w[2]-w[1]*r[2],t[1]=-(r[0]*w[2]-w[0]*r[2]),t[2]=r[0]*w[1]-w[0]*r[1],a=1-d.u.Tk(a,d.u.Dp(a,d.u.Si(a,Math.acos(t[2]/Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]))))),a*=2-a,k=Math.atan2(-t[1],-t[0]),t=d.u.W(k-1.570796326794897),k=d.u.W(k+1.570796326794897),t=d.j.H(d.u.W(c-t))<=d.j.H(d.u.W(c-k))?t:k,d.zg.Fb(1,t,0,c,z,x,null,null),d.zg.Fb(1,t,0,f,E,m,null,null),3.141592653589793<x.l+m.l&&(t=d.u.W(t+3.141592653589793),d.zg.Fb(1,t,0,
c,z,x,null,null),d.zg.Fb(1,t,0,f,E,m,null,null)),x.l*=d.j.nb(1,e),m.l*=d.j.nb(1,h),x.l=d.u.Si(a,x.l),m.l=d.u.Si(a,m.l),c=d.u.q(b,a,x.l),b=d.u.q(b,a,m.l),l.l=d.j.H(b-c))}}};g.gf=function(b,a,c,e,f,h,l,k){var n=0,g=new d.ca(0),q=new d.ca(0),r=[0,0,0],w=[0,0,0],t=new d.ca(0),x=new d.ca(0),m=new d.ca(0);if(null!=l||null!=k)if(d.j.Ih(a))d.zg.gf(b,c,e,f,h,l,k);else if(d.j.Vc(f))null!=l&&(l.l=c),null!=k&&(k.l=e);else{h=d.u.W(h);0>f&&(f=d.j.H(f),h=d.u.W(h+3.141592653589793));c=d.u.W(c);e=d.u.W(e);1.570796326794897<
d.j.H(e)&&(c=d.u.W(c+3.141592653589793),e=d.j.nb(3.141592653589793,e)-e);d.j.S(d.j.H(e),1.570796326794897)&&(c=0);var C;if(d.j.Vc(e))C=d.j.H(1.570796326794897-d.j.H(h)),C=d.u.Si(a,C),C=1-d.u.Tk(a,d.u.Dp(a,C)),C*=2-C,b=f/d.u.gg(b,C)*1.570796326794897,b=d.u.xn(C,b),b=d.u.sr(C,b),d.zg.gf(1,c,e,b,h,l,g),null!=k&&(n=g.l),null!=k&&(k.l=d.u.Si(a,n));else if(d.j.S(d.j.H(e),1.570796326794897))n=d.u.gg(b,a),g=2*n,b=d.j.nb(1.570796326794897,e),h=0<b?d.u.W(3.141592653589793-h):h,e=n-f,d.j.H(e)<=n?null!=l&&(l.l=
h):(e=Math.floor(f/g),0==d.I.truncate(e%2)?(null!=l&&(l.l=h),e=n-(f-e*g)):(null!=l&&(l.l=d.u.W(h+3.141592653589793)),e=n-((e+1)*g-f))),null!=k&&(k.l=d.u.xn(a,e/n*b));else{C=d.u.sr(a,e);h=Math.atan2(Math.sin(h),Math.cos(h)*Math.cos(e-C));var p=d.I.truncate(d.j.nb(1,C))*(1.570796326794897>=d.j.H(h)?1:-1);h=d.u.W(c+Math.atan(Math.tan(h)*-Math.sin(C)));d.zg.Fb(b,h,0,c,C,null,q,null);C=d.j.H(1.570796326794897-d.j.H(q.l));C=d.u.Si(a,C);C=1-d.u.Tk(a,d.u.Dp(a,C));C*=2-C;d.u.wm(a,0,h,t,x,m);r[0]=t.l;r[1]=
x.l;r[2]=m.l;d.u.wm(a,e,c,t,x,m);w[0]=t.l;w[1]=x.l;w[2]=m.l;e=Math.acos((r[0]*w[0]+r[1]*w[1]+r[2]*w[2])/Math.sqrt(w[0]*w[0]+w[1]*w[1]+w[2]*w[2]));e=d.u.Si(C,e);e=d.u.q(b,C,e)+f*p;f=0<e?q.l:d.u.W(q.l+3.141592653589793);b=d.j.H(e)/d.u.gg(b,C)*1.570796326794897;b=d.u.xn(C,b);b=d.u.sr(C,b);d.zg.gf(1,h,0,b,f,l,g);null!=k&&(n=g.l);null!=k&&(k.l=d.u.Si(a,n))}}};return g}();d.Xj=m})(p||(p={}));(function(d){var m=function(){function g(){}g.Fb=function(b,a,c,e,f,h,l,k,n){var g=0,q=0,r=0;if(null!=l||null!=k||
null!=n)if(d.j.Ih(a))d.zg.Fb(b,c,e,f,h,l,k,n);else{var w=d.u.W(f-c);if(d.j.S(e,h)&&(d.j.Vc(w)||d.j.S(d.j.H(e),1.570796326794897)))null!=l&&(l.l=0),null!=k&&(k.l=0),null!=n&&(n.l=0);else{if(d.j.S(e,-h)){if(d.j.S(d.j.H(e),1.570796326794897)){null!=l&&(l.l=2*d.u.gg(b,a));null!=k&&(k.l=0<e?d.u.W(3.141592653589793-d.u.W(f)):d.u.W(f));null!=n&&(n.l=0<e?d.u.W(f):d.u.W(3.141592653589793-d.u.W(f)));return}d.j.S(d.j.H(w),3.141592653589793)&&(null!=l&&(l.l=2*d.u.gg(b,a)),null!=k&&(k.l=0),null!=n&&(n.l=0))}else{if(d.j.S(d.j.H(e),
1.570796326794897)||d.j.S(d.j.H(h),1.570796326794897)){d.Xj.Fb(b,a,c,e,f,h,l,k,n);return}if(d.j.Vc(w)||d.j.S(d.j.H(w),3.141592653589793)){d.Xj.Fb(b,a,c,e,f,h,l,k,n);return}}var t=1-Math.sqrt(1-a),x=a/(1-a),m=b*(1-t);b=d.u.Dp(a,e);var C=d.u.Dp(a,h);a=1.570796326794897==d.j.H(b)?0:Math.cos(b);var p=Math.sin(b),y=1.570796326794897==d.j.H(C)?0:Math.cos(C),z=Math.sin(C),B=w,D=Math.cos(B),E=Math.sin(B),G=1,I=0,H,M,N,F,J;do{H=B;M=Math.sqrt(Math.pow(y*E,2)+Math.pow(a*z-p*y*D,2));N=p*z+a*y*D;F=Math.atan2(M,
N);if(0==M){G=0;break}J=a*y*E/M;g=Math.cos(Math.asin(J));g*=g;q=N-2*p*z/g;1<d.j.H(q)&&(q=d.j.nb(1,q));r=q*q;B=t/16*g*(4+t*(4-3*g));B=w+(1-B)*t*J*(F+B*M*(q+B*N*(2*r-1)));D=Math.cos(B);E=Math.sin(B);I++;if(3.141592653589793<d.j.H(B)&&30<I){G=0;break}}while(5E3>=I&&!d.j.S(H,B));if(0!=G)x*=g,t=x*(256+x*(-128+x*(74-47*x)))/1024,null!=l&&(l.l=m*(1+x*(4096+x*(-768+x*(320-175*x)))/16384)*(F-t*M*(q+t/4*(N*(2*r-1)-t/6*q*(4*M*M-3)*(4*r-3))))),null!=k&&(d.j.S(d.j.H(e),1.570796326794897)?k.l=0>e?f:d.u.W(3.141592653589793-
f):k.l=Math.atan2(y*E,a*z-p*y*D)),null!=n&&(d.j.S(d.j.H(h),1.570796326794897)?n.l=0>h?c:d.u.W(3.141592653589793-c):(n.l=Math.atan2(a*E,a*z*D-p*y),n.l=d.u.W(n.l+3.141592653589793)));else{B=d.j.nb(3.141592653589793,w);N=p*z-a*y;F=Math.acos(N);M=Math.sin(F);g=1;I=J=0;do r=J,g*=g,D=g*g,J=t*g*(1+t+t*t),q=t*t*D*(1+2.25*t),G=t*t*t*D*g,D=1-.25*J+.1875*q-.1953125*G,J=.25*J-.25*q+.29296875*G,E=.03125*q-.05859375*G,G*=.00651041666666667,q=N-2*p*z/g,1<d.j.H(q)&&(q=d.j.nb(1,q)),g=Math.acos(q),N=Math.cos(2*g),
H=Math.cos(3*g),J=d.j.S(e,-h)?d.u.W(3.141592653589793-w)/(3.141592653589793*t*D):d.u.W(B-w)/(t*(D*F+J*M*q+E*Math.sin(2*F)*N+G*Math.sin(3*F)*H)),E=J*M/(a*y),B=1.570796326794897<d.j.H(w)?d.j.nb(3.141592653589793,E)-Math.asin(E):Math.asin(E),D=Math.cos(B),M=Math.sqrt(Math.pow(y*E,2)+Math.pow(a*z-p*y*D,2)),F=3.141592653589793-Math.asin(d.j.H(M)),N=Math.cos(F),g=Math.cos(Math.asin(J)),I++;while(70>=I&&!d.j.S(r,J));null!=l&&(g*=g,x*=g,D=1+x*(4096+x*(-768+x*(320-175*x)))/16384,d.j.S(e,-h)?l.l=3.141592653589793*
m*D:(q=N-2*p*z/g,g=Math.acos(q),N=Math.cos(2*g),H=Math.cos(3*g),l.l=m*(D*F+x*(-512+x*(128+x*(-60+35*x)))/2048*M*q+x*(-4+5*x)/6144*x*x*Math.sin(2*F)*N+G*Math.sin(3*F)*H+-7.62939453125E-5*x*x*x*x*Math.sin(4*F)*Math.cos(4*g))));null!=k&&(d.j.Vc(e)&&d.j.Vc(h)?(g=Math.sqrt(1-J*J),k.l=Math.acos(g),0>w&&(k.l*=-1)):d.j.S(d.j.H(e),1.570796326794897)?k.l=0>e?f:d.u.W(3.141592653589793-f):(l=J/a,m=Math.sqrt(1-l*l),0>a*z-p*y*Math.cos(B)&&(m*=-1),k.l=Math.atan2(l,m),d.j.S(e,-h)&&d.j.H(d.u.W(c-f))>3.141592653589793*
(1-t*Math.cos(e))&&(0<e&&1.570796326794897>d.j.H(k.l)||0>e&&1.570796326794897<d.j.H(k.l))&&(k.l=d.j.nb(3.141592653589793,k.l)-k.l)));if(null!=n)if(d.j.Vc(e)&&d.j.Vc(h))g=Math.sqrt(1-J*J),n.l=Math.acos(g),0<=w&&(n.l*=-1);else if(d.j.S(d.j.H(h),1.570796326794897))n.l=0>h?c:d.u.W(3.141592653589793-c);else if(w=J/y,l=Math.sqrt(1-w*w),m=Math.sin(B/2),0>Math.sin(C-b)-2*a*z*m*m&&(l*=-1),n.l=Math.atan2(w,l),n.l=d.u.W(n.l+3.141592653589793),d.j.S(e,-h)&&!d.j.Vc(e)&&!d.j.S(d.j.H(e),1.570796326794897)&&d.j.H(d.u.W(c-
f))>3.141592653589793*(1-t*Math.cos(e))&&(null!=k?m=k.l:(l=J/a,m=Math.sqrt(1-l*l),0>a*z-p*y*Math.cos(B)&&(m*=-1),m=Math.atan2(l,m),d.j.S(e,-h)&&d.j.H(d.u.W(c-f))>3.141592653589793*(1-t*Math.cos(e))&&(0<e&&1.570796326794897>d.j.H(m)||0>e&&1.570796326794897<d.j.H(m))&&(m=d.j.nb(3.141592653589793,m)-m)),1.570796326794897>=d.j.H(m)&&1.570796326794897<d.j.H(n.l)||1.570796326794897<=d.j.H(m)&&1.570796326794897>d.j.H(n.l)))n.l=-1*d.u.W(n.l+3.141592653589793)}}}};g.gf=function(b,a,c,e,f,h,l,k){if(null!=l||
null!=k)if(d.j.Ih(a))d.zg.gf(b,c,e,f,h,l,k);else if(h=d.u.W(h),d.j.S(d.j.H(e),1.570796326794897)||d.j.Vc(h)||d.j.S(d.j.H(h),3.141592653589793))d.Xj.gf(b,a,c,e,f,h,l,k);else{var n=1.570796326794897==d.j.H(h)?0:Math.cos(h),g=3.141592653589793==d.j.H(h)?0:Math.sin(h);d.j.S(d.j.H(e),1.570796326794897)&&(c=0);h=1-Math.sqrt(1-a);var q=d.u.Dp(a,e);e=1.570796326794897==d.j.H(q)?0:Math.cos(q);var r=Math.sin(q),q=Math.atan2(Math.tan(q),n),w=e*g,t=w*w,x=1-t,m=a/(1-a)*x;a=m*(256+m*(-128+m*(74-47*m)))/1024;var C=
a/4,p=a/6,y=f/(b*(1-h)*(1+m*(4096+m*(-768+m*(320-175*m)))/16384)),z=y,B;do{B=z;f=1.570796326794897==d.j.H(z)?0:Math.cos(z);var m=3.141592653589793==d.j.H(z)?0:Math.sin(z),D=m*m;b=Math.cos(2*q+z);z=b*b;z=a*m*(b+C*(f*(2*z-1)-p*b*(4*D-3)*(4*z-3)))+y}while(!d.j.S(B,z));f=1.570796326794897==d.j.H(z)?0:Math.cos(z);m=3.141592653589793==d.j.H(z)?0:Math.sin(z);null!=l&&(g=Math.atan2(m*g,e*f-r*m*n),x=h/16*x*(4+h*(4-3*x)),b=Math.cos(2*q+z),l.l=d.u.W(c+(g-(1-x)*h*w*(z+x*m*(b+x*f*(2*b*b-1))))));null!=k&&(x=r*
m-e*f*n,x=(1-h)*Math.sqrt(t+x*x),k.l=Math.atan2(r*f+e*m*n,x))}};return g}();d.cs=m})(p||(p={}));(function(d){var m=function(){function g(){}g.Fb=function(b,a,c,e,f,h,l,k,n){var g=d.u.W(f-c),q=d.j.S(d.j.H(e),1.570796326794897),r=d.j.S(d.j.H(h),1.570796326794897);if(d.j.S(e,h)&&(d.j.Vc(g)||q))null!=l&&(l.l=0),null!=k&&(k.l=0),null!=n&&(n.l=0);else{var w,t;d.j.Ih(a)?(w=Math.sin(e),t=Math.sin(h),w=Math.sqrt((1+w)/(1-w)),t=Math.sqrt((1+t)/(1-t)),w=Math.log(t)-Math.log(w),w=Math.atan2(g,w),null!=l&&(l.l=
d.j.S(e,h)?d.j.H(b*Math.cos(e)*g):d.j.H((b*h-b*e)/Math.cos(w)))):(t=d.u.qu(a,h),w=Math.sin(d.u.qu(a,e)),t=Math.sin(t),w=Math.sqrt((1+w)/(1-w)),t=Math.sqrt((1+t)/(1-t)),w=Math.log(t)-Math.log(w),w=Math.atan2(g,w),null!=l&&(d.j.S(e,h)?l.l=d.j.H(b*g*Math.cos(e)/d.u.Tk(a,e)):(g=d.u.q(b,a,e),b=d.u.q(b,a,h),l.l=d.j.H((b-g)/Math.cos(w)))));if(null!=k||null!=n)l=d.u.W(w+3.141592653589793),q&&r||!q&&!r||(q?w=0>e?f:d.u.W(3.141592653589793-f):r&&(l=0>h?c:d.u.W(3.141592653589793-c))),null!=k&&(k.l=w),null!=n&&
(n.l=l)}};g.gf=function(b,a,c,e,f,h,l,k){h=d.u.W(h);0>f&&(f=d.j.H(f),h=d.u.W(h+3.141592653589793));d.j.Ih(a)?d.j.S(d.j.H(e),1.570796326794897)?(c=0>e?h:d.u.W(3.141592653589793-h),h=f/b%6.283185307179586,3.141592653589793>=h?b=e-d.j.nb(h,e):(c=d.u.W(c+3.141592653589793),b=-e+d.j.nb(h-3.141592653589793,e))):d.j.S(d.j.H(h),1.570796326794897)?(c=d.u.W(c+d.j.nb(f,h)/(b*Math.cos(e))),b=e):(b=e+f*Math.cos(h)/b,1.570796326794897<d.j.H(b)&&(b=1.570796326794897),d.j.S(d.j.H(b),1.570796326794897)&&(d.j.Vc(h)||
d.j.S(d.j.H(h),3.141592653589793))||(1.570796316258184<d.j.H(b)&&(b=d.j.nb(1.570796316258184,b)),a=Math.sin(e),e=Math.sin(b),a=Math.sqrt((1+a)/(1-a)),e=Math.sqrt((1+e)/(1-e)),a=Math.log(e)-Math.log(a),c=d.u.W(c+Math.tan(h)*a))):d.j.S(d.j.H(e),1.570796326794897)?(c=0>e?h:d.u.W(3.141592653589793-h),h=f/d.u.nR(b,a),h%=6.283185307179586,3.141592653589793>=h?(b=e-d.j.nb(h,e),b=d.u.xn(a,b)):(c=d.u.W(c+3.141592653589793),b=-e+d.j.nb(h-3.141592653589793,e),b=d.u.xn(a,b))):d.j.S(d.j.H(h),1.570796326794897)?
(c=d.u.W(c+d.j.nb(f,h)*d.u.Tk(a,e)/(b*Math.cos(e))),b=e):(b=1.570796326794897*(f*Math.cos(h)+d.u.q(b,a,e))/d.u.gg(b,a),1.570796326794897<d.j.H(b)&&(b=d.j.nb(1.570796326794897,b)),b=d.u.xn(a,b),d.j.S(d.j.H(b),1.570796326794897)&&(d.j.Vc(h)||d.j.S(d.j.H(h),3.141592653589793))||(f=d.u.qu(a,e),e=d.u.qu(a,b),1.570796316258184<d.j.H(e)&&(e=d.j.nb(1.570796316258184,b),b=d.u.$K(a,e)),a=Math.sin(f),e=Math.sin(e),a=Math.sqrt((1+a)/(1-a)),e=Math.sqrt((1+e)/(1-e)),a=Math.log(e)-Math.log(a),c=d.u.W(c+Math.tan(h)*
a)));null!=l&&(l.l=c);null!=k&&(k.l=b)};return g}();d.Zz=m})(p||(p={}));(function(d){var m=function(){function g(){}g.gw=function(b,a,c,e,f,h,l){d.cs.Fb(b,a,c,e,f,h,null,l,null)};g.Ph=function(b,a,c,e,f,h,l,k){d.cs.gf(b,a,c,e,f,h,l,k)};g.Rd=function(b,a,c,e,f,h,l,k,n,g){switch(g){case 2:d.Xj.Fb(b,a,c,e,f,h,l,k,n);break;case 3:d.$z.Fb(b,a,c,e,f,h,l,k,n);break;case 1:d.Zz.Fb(b,a,c,e,f,h,l,k,n);break;default:d.cs.Fb(b,a,c,e,f,h,l,k,n)}};g.dk=function(b,a,c,e,f,h,l,k,n){switch(n){case 2:d.Xj.gf(b,a,c,
e,f,h,l,k);break;case 3:d.$z.gf(b,a,c,e,f,h,l,k);break;case 1:d.Zz.gf(b,a,c,e,f,h,l,k);break;default:d.cs.gf(b,a,c,e,f,h,l,k)}};return g}();d.zb=m})(p||(p={}));(function(d){var m=function(){function g(){}g.QS=function(b,a){var c=8;0>c&&(c=8);var e=[0,0,0,0],f=new d.b;f.J(a);f.scale(9102==d.Ya.Em(b).Se().Qc()?1:d.Ya.Em(b).Se().Dj/3.141592653589793*180);-180>f.x?(f.x-=f.x%360,-180>f.x&&(f.x+=360)):180<f.x&&(f.x-=f.x%360,180<f.x&&(f.x-=360));90<f.y&&(f.y=90);-90>f.y&&(f.y=-90);for(var h=5*c,l=(h+31)/
32,k=-180,n=180,u=h-1,q=l-1;0<=q;q--)for(var r=u-32*q,w=Math.min(32,h-32*q),t=1;t<w;t+=2){var m=.5*(n+k);f.x>=m?(e[q]|=1<<r,k=m):n=m;r-=2;u-=2}k=-90;n=90;u=h-2;for(q=l-1;0<=q;q--)for(r=u-32*q,w=Math.min(32,h-32*q),t=0;t<w;t+=2)m=.5*(n+k),f.y>=m?(e[q]|=1<<r,k=m):n=m,r-=2,u-=2;return g.XS(e,c,c)};g.XS=function(b,a,c){for(var e=[],f=0;f<a;f++)e[f]="";for(var h=f=0,d=0;d<a;d++){var k=b[f]>>h&31,h=h+5;if(31<h){var n=37-h,k=k&(1<<n)-1,h=h-32;f++;k|=(b[f]&(1<<h)-1)<<n}e[a-1-d]="0123456789bcdefghjkmnpqrstuvwxyz".split("")[k]}if(c>
a)for(d=0;d<c-a;d++)e.push("0");else c<a&&(e.length=c);return e.join("")};return g}();d.qH=m})(p||(p={}));(function(d){var m={gcstol:[0,1E-8,1,1.11111E-8,2,1.68845E-8,3,2.17661E-8,4,2.22508E-8,5,2.34848E-8,6,2.37811E-8,7,2.88455E-8,8,3.1456E-8,9,3.29779E-8,10,3.66789E-8,11,4.23597E-8,12,4.79463E-8,13,6.45223E-8,14,7.26274E-8,15,7.49945E-8,16,7.52506E-8,17,7.97991E-8,18,9.66202E-8,19,9.79918E-8,20,9.89735E-8,21,1.02314E-7,22,1.08146E-7,23,2.29734E-7,24,2.42985E-7,25,2.7546E-7,26,3.37034E-7,27,4.30795E-7,
28,5.20871E-7,29,5.50921E-7,30,6.74068E-7,31,6.86177E-7,32,7.25263E-7,33,7.44101E-7,34,7.74267E-7,35,9.62954E-7,36,1.06103E-6,37,1.14363E-6,38,1.16219E-6,39,1.36419E-6,40,1.36744E-6,41,1.43239E-6,42,1.73624E-6,43,1.84825E-6,44,1.90986E-6,45,1.97572E-6,46,2.12207E-6,47,2.72837E-6,48,3.1831E-6,49,3.58099E-6,50,3.81972E-6,51,4.09256E-6,52,4.40737E-6,53,4.77465E-6,54,5.16178E-6,55,5.20871E-6,56,5.72958E-6,57,6.03113E-6,58,6.98729E-6,59,9.24125E-6,60,1.14592E-5],pcstol:[0,6.66667E-9,1,2E-8,2,4.97098E-5,
3,.001,4,.00109362,5,.00328087,6,.00497101],newtoold:[2154,102110,2195,102200,2204,32036,2205,26979,2225,102641,2226,102642,2227,102643,2228,102644,2229,102645,2230,102646,2231,102653,2232,102654,2233,102655,2234,102656,2235,102657,2236,102658,2237,102659,2238,102660,2239,102666,2240,102667,2241,102668,2242,102669,2243,102670,2246,102679,2247,102680,2248,102685,2249,102686,2250,102687,2254,102694,2255,102695,2257,102712,2258,102713,2259,102714,2260,102715,2261,102716,2262,102717,2263,102718,2264,
102719,2267,102724,2268,102725,2271,102728,2272,102729,2274,102736,2275,102737,2276,102738,2277,102739,2278,102740,2279,102741,2283,102746,2284,102747,2285,102748,2286,102749,2287,102752,2288,102753,2289,102754,2312,23433,2326,102140,2395,2091,2396,2092,2397,2166,2398,2167,2399,2168,2759,102229,2760,102230,2761,102248,2762,102249,2763,102250,2764,102251,2765,102252,2766,102241,2767,102242,2768,102243,2769,102244,2770,102245,2771,102246,2772,102253,2773,102254,2774,102255,2775,102256,2776,102257,2777,
102258,2778,102259,2779,102260,2780,102266,2781,102267,2782,102261,2783,102262,2784,102263,2785,102264,2786,102265,2787,102268,2788,102269,2789,102270,2790,102271,2791,102272,2792,102273,2793,102274,2794,102275,2795,102276,2796,102277,2797,102278,2798,102279,2799,102280,2800,102281,2801,102282,2802,102283,2803,102284,2804,102285,2805,102286,2806,102287,2807,102288,2808,102289,2809,102290,2810,102291,2811,102292,2812,102293,2813,102294,2814,102295,2815,102296,2816,102297,2817,102298,2818,102300,2819,
102304,2820,102307,2821,102308,2822,102309,2823,102310,2824,102311,2825,102312,2826,102313,2827,102314,2828,102315,2829,102316,2830,102317,2831,102318,2832,102320,2833,102321,2834,102322,2835,102323,2836,102324,2837,102325,2838,102326,2839,102327,2840,102330,2841,102334,2842,102335,2843,102336,2844,102337,2845,102338,2846,102339,2847,102340,2848,102341,2849,102342,2850,102343,2851,102344,2852,102345,2853,102346,2854,102347,2855,102348,2856,102349,2857,102350,2858,102351,2859,102352,2860,102353,2861,
102354,2862,102355,2863,102356,2864,102357,2865,102358,2866,102361,2942,102167,2943,102169,2944,2139,2945,2140,2946,2141,2947,2142,2948,2143,2949,2144,2950,2145,2951,2146,2952,2147,2953,2036,2954,2291,2955,2153,2956,2152,2957,2151,2958,2150,2959,2149,2960,2037,2961,2038,2962,2148,2965,2244,2966,2245,3003,102091,3004,102092,3005,102190,3060,2982,3067,102139,3072,102606,3074,102608,3075,102208,3077,102210,3078,102123,3080,102119,3081,102603,3082,102602,3083,102601,3088,65163,3089,102763,3090,102363,
3092,102151,3093,102152,3094,102153,3095,102154,3096,102155,3097,102145,3098,102146,3099,102147,3100,102148,3101,102149,3102,2155,3107,102172,3110,102170,3111,102171,3119,2214,3158,102234,3159,102235,3160,102236,3336,2979,3338,102006,3346,2600,3370,102126,3371,102127,3372,102130,3373,102131,3400,102184,3401,102185,3404,3359,3407,3366,3417,102675,3418,102676,3419,102677,3420,102678,3421,102707,3422,102708,3423,102709,3424,102711,3433,102651,3434,102652,3435,102671,3436,102672,3437,102710,3438,102730,
3448,102095,3451,102681,3452,102682,3455,102735,3461,2063,3462,2064,3463,3073,3464,3076,3560,102742,3566,102743,3567,102744,3734,102722,3735,102723,3736,102755,3737,102756,3738,102757,3739,102758,3741,102205,3742,102206,3743,102207,3748,102211,3750,102202,3751,102203,3759,102663,3760,102463,3764,102112,3770,102090,3771,102180,3772,102181,3773,102182,3775,102186,3776,102187,3777,102188,3800,102183,3801,102189,3812,102199,3814,102609,3815,102469,3819,104990,3821,104136,3824,104137,3825,102444,3826,
102443,3827,102442,3828,102441,3857,102100,3889,104991,3906,104992,4048,103201,4049,103202,4050,103203,4051,103204,4056,103205,4057,103206,4058,103207,4059,103208,4060,103209,4061,103210,4062,103211,4063,103212,4071,103213,4082,103214,4083,103215,4093,103216,4094,103217,4095,103218,4096,103219,4167,104108,4169,37252,4171,104107,4189,104110,4197,4234,4223,37223,4304,104304,4414,102201,4415,102762,4417,102764,4434,102765,4437,102647,4455,32029,4456,32018,4457,3454,4462,102439,4463,4466,4470,4469,4484,
103794,4485,103795,4486,103796,4487,103797,4488,103798,4489,103799,4611,104104,4612,104111,4613,37255,4615,37247,4616,37250,4617,4140,4618,4291,4620,37211,4626,37235,4647,102362,4658,37204,4668,37201,4669,4126,4672,37217,4673,104125,4675,37220,4684,37232,4698,4631,4707,37213,4708,37231,4709,37212,4710,37238,4711,37214,4712,37237,4713,37208,4714,37215,4715,37253,4716,37216,4717,37239,4719,37219,4722,37242,4724,37233,4725,37222,4727,37224,4728,37246,4729,37226,4730,37227,4731,37228,4732,37229,4733,
37230,4734,37251,4735,37259,4736,37254,4739,37205,4758,104133,4760,37001,4762,104114,4826,102214,5013,104142,5014,102331,5015,102332,5016,102333,5173,102085,5174,102086,5175,102087,5176,102088,5177,102089,5178,102040,5179,102080,5185,102081,5186,102082,5187,102083,5188,102084,5221,102066,5246,104100,5247,102490,5324,104144,5325,102420,5329,2934,5365,104143,5367,102305,5451,104132,5513,102065,5514,102067,5519,102111,5520,31461,5646,102745,5839,5388,5858,5532,5879,4474,21896,21891,21897,21892,21898,
21893,21899,21894,26701,102124,26702,102125,26799,26747,26847,102683,26848,102684,26849,102691,26850,102692,26851,102693,26852,102704,26853,102750,26854,102751,26857,102466,26858,102467,26859,102468,26901,102128,26902,102129,27493,27492,29101,29100,29168,29118,29169,29119,29170,29120,29171,29121,29172,29122,29187,29177,29188,29178,29189,29179,29190,29180,29191,29181,29192,29182,29193,29183,29194,29184,29195,29185,29902,29900,31279,31278,31281,31291,31282,31292,31283,31293,31284,31294,31285,31295,
31286,31296,31287,31297,31466,31462,31467,31463,31468,31464,31469,31465,31986,31917,31987,31918,31988,31919,31989,31920,31990,31921,31991,31922,32064,32074,32065,32075,32066,32076,32067,32077],pcsid:[2066,6,2136,5,2155,5,2157,3,2158,3,2159,5,2160,5,2219,3,2220,3,2244,5,2245,5,2256,5,2265,5,2266,5,2269,5,2270,5,2273,5,2290,3,2291,3,2294,3,2295,3,2313,3,2314,5,2964,5,2967,5,2968,5,2991,3,2992,5,2993,3,2994,5,3073,3,3076,3,3079,3,3091,5,3106,3,3108,3,3109,3,3141,3,3142,3,3167,2,3337,3,3347,3,3348,3,
3359,5,3360,3,3361,5,3362,3,3363,5,3364,3,3365,5,3366,5,3402,3,3403,3,3405,3,3406,3,3439,3,3440,3,3447,3,3449,3,3450,3,3453,5,3454,5,3460,3,3479,5,3480,3,3481,5,3482,3,3483,5,3484,3,3485,5,3486,3,3487,5,3488,3,3489,3,3490,5,3491,3,3492,5,3493,3,3494,5,3495,3,3496,5,3497,3,3498,5,3499,3,3500,5,3501,3,3502,5,3503,3,3504,5,3505,3,3506,5,3507,3,3508,5,3509,3,3510,5,3511,3,3512,5,3513,3,3514,3,3515,5,3516,3,3517,5,3518,3,3519,5,3520,3,3521,5,3522,3,3523,5,3524,3,3525,5,3526,3,3527,5,3528,3,3529,5,3530,
3,3531,5,3532,3,3533,5,3534,3,3535,5,3536,3,3537,5,3538,3,3539,5,3540,3,3541,5,3542,3,3543,5,3544,3,3545,5,3546,3,3547,5,3548,3,3549,5,3550,3,3551,5,3552,3,3553,5,3582,5,3583,3,3584,5,3585,3,3586,5,3587,3,3588,5,3589,3,3590,5,3591,3,3592,3,3593,5,3598,5,3599,3,3600,5,3605,5,3606,3,3607,3,3608,5,3609,3,3610,5,3611,3,3612,5,3613,3,3614,5,3615,3,3616,5,3617,3,3618,5,3619,3,3620,5,3621,3,3622,5,3623,3,3624,5,3625,3,3626,5,3627,3,3628,5,3629,3,3630,5,3631,3,3632,5,3633,3,3634,5,3635,3,3636,5,3640,5,3641,
3,3642,5,3643,3,3644,5,3645,3,3646,5,3647,3,3648,5,3649,3,3650,5,3651,3,3652,5,3653,3,3654,5,3655,3,3656,5,3657,3,3658,5,3659,3,3660,5,3661,3,3662,5,3663,3,3664,5,3668,5,3669,3,3670,5,3671,3,3672,5,3673,3,3674,5,3675,3,3676,5,3677,5,3678,3,3679,5,3680,5,3681,3,3682,5,3683,5,3684,3,3685,3,3686,5,3687,3,3688,5,3689,3,3690,5,3691,3,3692,5,3696,5,3697,3,3698,5,3699,3,3700,5,3740,3,3749,3,3783,3,3784,3,3793,3,3794,3,3802,3,3816,3,3829,3,3854,3,3920,3,3978,3,3979,3,3991,5,3992,5,4026,3,4037,3,4038,3,4217,
5,4438,5,4439,5,4467,3,4471,3,4474,3,4559,3,4839,3,5018,3,5048,3,5167,3,5168,3,5223,3,5234,3,5235,3,5243,3,5266,3,5316,3,5320,3,5321,3,5330,3,5331,3,5337,3,5361,3,5362,3,5382,3,5383,3,5396,3,5456,3,5457,3,5469,3,5472,4,5490,3,5518,3,5523,3,5559,3,5588,5,5589,5,5596,3,5627,3,5629,3,5641,3,5643,3,5644,3,5654,5,5655,5,5659,3,5700,3,5825,3,5836,3,5837,3,5842,3,5844,3,5880,3,5887,3,5890,3,20499,3,20538,3,20539,3,20790,3,20791,3,21291,3,21292,3,21500,3,21817,3,21818,3,22032,3,22033,3,22091,3,22092,3,22332,
3,22391,3,22392,3,22700,3,22770,3,22780,3,22832,3,23090,3,23095,3,23239,3,23240,3,23433,3,23700,3,24047,3,24048,3,24100,5,24200,3,24305,3,24306,3,24382,4,24383,3,24500,3,24547,3,24548,3,24571,2,24600,3,25E3,3,25231,3,25884,3,25932,3,26237,3,26331,3,26332,3,26591,3,26592,3,26632,3,26692,3,26855,5,26856,5,27120,3,27200,3,27291,4,27292,4,27429,3,27492,3,27500,3,27700,3,28232,3,28600,3,28991,3,28992,3,29100,3,29220,3,29221,3,29333,3,29635,3,29636,3,29701,3,29738,3,29739,3,29849,3,29850,3,29871,2,29872,
5,29873,3,29900,3,29901,3,29903,3,30200,6,30339,3,30340,3,30591,3,30592,3,30791,3,30792,3,31028,3,31121,3,31154,3,31170,3,31171,3,31370,3,31528,3,31529,3,31600,3,31700,3,31838,3,31839,3,31901,3,32061,3,32062,3,32098,3,32099,5,32100,3,32104,3,32161,3,32766,3,53034,3,53048,3,53049,3,54034,3,65061,5,65062,5,65161,3,65163,3,102041,5,102064,4,102068,1,102069,0,102217,5,102218,3,102219,5,102220,5,102378,5,102379,5,102380,3,102381,5,102589,5,102599,5,102600,5,102604,5,102605,3,102606,3,102647,3,102704,5,
102705,5,102733,5,102761,5,102762,3,102763,5,102764,3,102765,3,102766,5,102970,5,102974,5,102993,3,102994,3,102995,5,102996,5,103015,3,103016,5,103017,3,103018,5,103025,3,103026,3,103027,5,103028,5,103035,3,103036,3,103037,5,103038,5,103039,3,103040,3,103041,5,103042,5,103043,3,103044,3,103045,5,103046,5,103047,3,103048,3,103049,5,103050,5,103051,3,103052,5,103053,3,103054,5,103055,3,103056,5,103057,3,103058,3,103059,5,103060,5,103061,3,103062,3,103063,5,103064,5,103069,5,103070,3,103071,3,103072,
5,103073,5,103086,3,103087,3,103088,5,103089,5,103094,5,103095,3,103096,5,103103,3,103104,5,103105,3,103106,5,103121,3,103122,5,103123,3,103124,3,103125,5,103126,5,103127,3,103128,3,103129,5,103130,5,103131,3,103132,3,103133,5,103134,5,103135,3,103136,3,103137,5,103138,5,103139,3,103140,5,103141,3,103142,5,103143,3,103144,5,103145,3,103146,5,103147,3,103148,3,103149,5,103150,5,103151,3,103152,5,103172,3,103173,5,103174,3,103175,3,103176,5,103177,5,103178,3,103179,3,103180,5,103181,5,103182,3,103183,
3,103184,5,103185,5,103228,3,103229,3,103230,5,103231,5,103250,3,103251,5,103252,3,103253,5,103260,3,103261,3,103262,5,103263,5,103270,3,103271,3,103272,5,103273,5,103274,3,103275,3,103276,5,103277,5,103278,3,103279,3,103280,5,103281,5,103282,3,103283,3,103284,5,103285,5,103286,3,103287,5,103288,3,103289,5,103290,3,103291,5,103292,3,103293,3,103294,5,103295,5,103296,3,103297,3,103298,5,103299,5,103376,5,103377,3,103378,3,103379,5,103380,5,103393,3,103394,3,103395,5,103396,5,103472,3,103473,5,103474,
3,103475,5,103482,3,103483,5,103484,3,103485,5,103500,3,103501,5,103502,3,103503,3,103504,5,103505,5,103506,3,103507,3,103508,5,103509,5,103510,3,103511,3,103512,5,103513,5,103514,3,103515,5,103516,3,103517,5,103518,3,103519,5,103520,3,103521,5,103522,3,103523,3,103524,5,103525,5,103526,3,103527,5,103561,5,103562,5,103563,3,103564,3,103565,5,103566,5,103567,3,103568,3,103569,5,103570,5,103585,5,103695,5],pcsidc:[[2E3,2045,3],[2056,2065,3],[2067,2135,3],[2137,2153,3],[2161,2170,3],[2172,2193,3],[2196,
2198,3],[2200,2203,3],[2206,2217,3],[2222,2224,5],[2251,2253,5],[2280,2282,5],[2308,2311,3],[2315,2325,3],[2327,2394,3],[2400,2462,3],[2523,2576,3],[2578,2693,3],[2695,2758,3],[2867,2888,5],[2891,2930,5],[2931,2941,3],[2969,2973,3],[2975,2982,3],[2984,2988,3],[2995,3002,3],[3006,3051,3],[3054,3059,3],[3061,3066,3],[3068,3071,3],[3084,3087,3],[3112,3118,3],[3120,3138,3],[3146,3151,3],[3153,3157,3],[3161,3166,3],[3168,3172,3],[3174,3203,3],[3294,3313,3],[3315,3335,3],[3339,3345,3],[3350,3358,3],[3367,
3369,3],[3374,3399,3],[3408,3416,3],[3425,3432,5],[3441,3446,5],[3456,3459,5],[3465,3478,3],[3554,3559,3],[3561,3565,5],[3568,3570,5],[3571,3581,3],[3594,3597,3],[3601,3604,3],[3637,3639,3],[3665,3667,3],[3693,3695,3],[3701,3727,3],[3728,3733,5],[3744,3747,3],[3753,3758,5],[3761,3763,3],[3765,3769,3],[3779,3781,3],[3788,3791,3],[3797,3799,3],[3832,3841,3],[3844,3852,3],[3873,3885,3],[3890,3893,3],[3907,3912,3],[3942,3950,3],[3968,3970,3],[3973,3976,3],[3986,3989,3],[3994,3997,3],[4399,4413,5],[4418,
4433,5],[4491,4554,3],[5069,5072,3],[5105,5130,3],[5180,5184,3],[5253,5259,3],[5269,5275,3],[5292,5311,3],[5343,5349,3],[5355,5357,3],[5387,5389,3],[5459,5463,3],[5479,5482,3],[5530,5539,3],[5550,5552,3],[5562,5583,3],[5623,5625,5],[5631,5639,3],[5649,5653,3],[5663,5680,3],[5682,5685,3],[5875,5877,3],[20002,20032,3],[20062,20092,3],[20135,20138,3],[20248,20258,3],[20348,20358,3],[20436,20440,3],[20822,20824,3],[20934,20936,3],[21035,21037,3],[21095,21097,3],[21148,21150,3],[21413,21423,3],[21473,
21483,3],[21780,21782,3],[21891,21894,3],[22171,22177,3],[22181,22187,3],[22191,22197,3],[22234,22236,3],[22521,22525,3],[22991,22994,3],[23028,23038,3],[23830,23853,3],[23866,23872,3],[23877,23884,3],[23886,23894,3],[23946,23948,3],[24311,24313,3],[24342,24347,3],[24370,24374,4],[24375,24381,3],[24718,24721,3],[24817,24821,3],[24877,24882,3],[24891,24893,3],[25391,25395,3],[25828,25838,3],[26191,26195,3],[26391,26393,3],[26703,26722,3],[26729,26760,5],[26766,26798,5],[26860,26870,5],[26891,26899,
3],[26903,26923,3],[26929,26946,3],[26948,26998,3],[27037,27040,3],[27205,27232,3],[27258,27260,3],[27391,27398,3],[27561,27564,3],[27571,27574,3],[27581,27584,3],[27591,27594,3],[28191,28193,3],[28348,28358,3],[28402,28432,3],[28462,28492,3],[29118,29122,3],[29177,29185,3],[30161,30179,3],[30491,30494,3],[30729,30732,3],[31251,31259,3],[31265,31268,3],[31275,31278,3],[31288,31297,3],[31461,31465,3],[31491,31495,3],[31917,31922,3],[31965,31985,3],[31992,32E3,3],[32001,32003,5],[32005,32031,5],[32033,
32060,5],[32074,32077,5],[32081,32086,3],[32107,32130,3],[32133,32158,3],[32164,32167,5],[32180,32199,3],[32201,32260,3],[32301,32360,3],[32601,32662,3],[32664,32667,5],[32701,32761,3],[53001,53004,3],[53008,53019,3],[53021,53032,3],[53042,53046,3],[54001,54004,3],[54008,54019,3],[54021,54032,3],[54042,54046,3],[54048,54053,3],[102001,102040,3],[102042,102063,3],[102065,102067,3],[102070,102112,3],[102114,102117,3],[102118,102121,5],[102122,102208,3],[102210,102216,3],[102221,102300,3],[102304,102377,
3],[102382,102388,3],[102389,102391,5],[102401,102444,3],[102450,102452,3],[102461,102468,5],[102469,102492,3],[102500,102519,5],[102530,102549,3],[102570,102588,3],[102590,102598,3],[102601,102603,3],[102608,102628,3],[102629,102646,5],[102648,102672,5],[102675,102700,5],[102701,102703,3],[102707,102730,5],[102735,102758,5],[102767,102798,3],[102962,102969,3],[102971,102973,3],[102975,102989,3],[102990,102992,5],[102997,103002,3],[103003,103008,5],[103009,103011,3],[103012,103014,5],[103019,103021,
3],[103022,103024,5],[103029,103031,3],[103032,103034,5],[103065,103068,3],[103074,103076,3],[103077,103079,5],[103080,103082,3],[103083,103085,5],[103090,103093,3],[103097,103099,3],[103100,103102,5],[103107,103109,3],[103110,103112,5],[103113,103116,3],[103117,103120,5],[103153,103157,3],[103158,103162,5],[103163,103165,3],[103166,103171,5],[103186,103188,3],[103189,103191,5],[103192,103195,3],[103196,103199,5],[103200,103224,3],[103225,103227,5],[103232,103237,3],[103238,103243,5],[103244,103246,
3],[103247,103249,5],[103254,103256,3],[103257,103259,5],[103264,103266,3],[103267,103269,5],[103300,103375,3],[103381,103383,3],[103384,103386,5],[103387,103389,3],[103390,103392,5],[103397,103399,3],[103400,103471,5],[103476,103478,3],[103479,103481,5],[103486,103488,3],[103489,103491,5],[103492,103495,3],[103496,103499,5],[103539,103543,3],[103544,103548,5],[103549,103551,3],[103552,103557,5],[103558,103560,3],[103571,103573,3],[103574,103576,5],[103577,103580,3],[103581,103583,5],[103600,103694,
3],[103700,103793,5],[103794,103799,3]],gcsid:[4042,0,4075,0,4081,0,4168,0,4170,0,4188,0,4261,1,4262,0,4263,0,4288,0,4289,0,4305,1,4322,0,4324,0,4326,0,4466,0,4469,0,4475,0,4483,0,4490,0,4555,0,4558,0,4614,0,4619,0,4657,0,4670,0,4671,0,4674,0,4682,0,4683,0,4718,0,4720,0,4721,0,4723,0,4726,0,4737,0,4738,0,4759,0,4761,0,4807,1,4808,0,4809,0,4816,1,4817,0,4818,0,4819,1,4820,0,4821,1,4823,0,4824,0,4901,1,4902,1,4903,0,4904,0,5228,0,5229,0,5233,0,5252,0,5264,0,5340,0,5354,0,5360,0,5371,0,5373,0,5381,0,
5393,0,5464,0,5467,0,5489,0,5524,0,5527,0,5546,0,5561,0,5593,0,5681,0,5886,0,37225,1,37235,0,37257,0,37259,0,37260,0,104020,0,104139,1,104140,1,104223,0,104286,0,104287,0,104304,0,104305,0,104896,0,104900,5,104901,0,104902,0,104903,9,104904,2,104905,2,104906,59,104907,54,104908,0,104909,58,104910,31,104911,56,104912,6,104913,50,104914,41,104915,10,104916,3,104917,30,104918,8,104919,60,104920,53,104921,44,104922,48,104923,51,104924,38,104925,0,104926,49,104927,57,104928,21,104929,23,104930,35,104931,
49,104932,27,104933,17,104934,13,104935,7,104936,56,104937,40,104938,28,104939,37,104940,15,104941,55,104942,22,104943,4,104944,0,104945,20,104946,42,104947,47,104948,52,104949,43,104950,46,104951,39,104952,24,104953,16,104954,50,104955,36,104956,33,104957,46,104958,14,104959,19,104960,0,104961,34,104962,32,104963,29,104964,45,104965,26,104966,25,104967,41,104968,11,104969,12,104970,18],gcsidc:[[4001,4016,0],[4018,4025,0],[4027,4029,0],[4031,4036,0],[4044,4047,0],[4052,4054,0],[4120,4166,0],[4172,
4176,0],[4178,4185,0],[4190,4196,0],[4198,4216,0],[4218,4222,0],[4224,4232,0],[4234,4260,0],[4265,4267,0],[4269,4286,0],[4291,4303,0],[4306,4319,0],[4600,4610,0],[4621,4625,0],[4627,4633,0],[4636,4639,0],[4641,4646,0],[4659,4667,0],[4676,4680,0],[4686,4697,0],[4699,4706,0],[4740,4757,0],[4763,4765,0],[4801,4806,0],[4810,4812,1],[4813,4815,0],[37001,37008,0],[37201,37208,0],[37211,37224,0],[37226,37233,0],[37237,37243,0],[37245,37247,0],[37249,37255,0],[104100,104138,0],[104141,104145,0],[104256,104261,
0],[104700,104786,0],[104990,104992,0]]},g={c:[[2E3,2045,9001],[2056,2065,9001],[2067,2135,9001],[2137,2153,9001],[2161,2170,9001],[2172,2193,9001],[2196,2198,9001],[2200,2203,9001],[2206,2217,9001],[2222,2224,9002],[2251,2253,9002],[2280,2282,9002],[2308,2311,9001],[2315,2325,9001],[2327,2394,9001],[2400,2462,9001],[2523,2576,9001],[2578,2693,9001],[2695,2758,9001],[2867,2869,9002],[2870,2888,9003],[2891,2895,9003],[2896,2898,9002],[2902,2908,9003],[2915,2920,9003],[2921,2923,9002],[2924,2930,9003],
[2931,2941,9001],[2969,2973,9001],[2975,2982,9001],[2984,2988,9001],[2995,3002,9001],[3006,3051,9001],[3054,3059,9001],[3061,3066,9001],[3068,3071,9001],[3084,3087,9001],[3112,3118,9001],[3120,3138,9001],[3146,3151,9001],[3153,3157,9001],[3161,3166,9001],[3168,3172,9001],[3174,3203,9001],[3294,3313,9001],[3315,3335,9001],[3339,3345,9001],[3350,3358,9001],[3367,3369,9001],[3374,3399,9001],[3408,3416,9001],[3425,3432,9003],[3441,3446,9003],[3456,3459,9003],[3465,3478,9001],[3554,3559,9001],[3561,3565,
9003],[3568,3570,9003],[3571,3581,9001],[3594,3597,9001],[3601,3604,9001],[3637,3639,9001],[3665,3667,9001],[3693,3695,9001],[3701,3727,9001],[3728,3733,9003],[3744,3747,9001],[3753,3758,9003],[3761,3763,9001],[3765,3769,9001],[3779,3781,9001],[3788,3791,9001],[3797,3799,9001],[3832,3841,9001],[3844,3852,9001],[3873,3885,9001],[3890,3893,9001],[3907,3912,9001],[3942,3950,9001],[3968,3970,9001],[3973,3976,9001],[3986,3989,9001],[3994,3997,9001],[4001,4016,9102],[4018,4025,9102],[4027,4029,9102],[4031,
4036,9102],[4044,4047,9102],[4052,4054,9102],[4120,4166,9102],[4172,4176,9102],[4178,4185,9102],[4190,4196,9102],[4198,4216,9102],[4218,4222,9102],[4224,4232,9102],[4234,4260,9102],[4265,4267,9102],[4269,4286,9102],[4291,4303,9102],[4306,4319,9102],[4399,4413,9003],[4418,4433,9003],[4491,4554,9001],[4600,4610,9102],[4621,4625,9102],[4627,4633,9102],[4636,4639,9102],[4641,4646,9102],[4659,4667,9102],[4676,4680,9102],[4686,4697,9102],[4699,4706,9102],[4740,4757,9102],[4763,4765,9102],[4801,4806,9102],
[4810,4812,9105],[4813,4815,9102],[5069,5072,9001],[5105,5130,9001],[5180,5184,9001],[5253,5259,9001],[5269,5275,9001],[5292,5311,9001],[5343,5349,9001],[5355,5357,9001],[5387,5389,9001],[5459,5463,9001],[5479,5482,9001],[5530,5539,9001],[5550,5552,9001],[5562,5583,9001],[5623,5625,9003],[5631,5639,9001],[5649,5653,9001],[5663,5680,9001],[5682,5685,9001],[5875,5877,9001],[20002,20032,9001],[20062,20092,9001],[20135,20138,9001],[20248,20258,9001],[20348,20358,9001],[20436,20440,9001],[20822,20824,
9001],[20934,20936,9001],[21035,21037,9001],[21095,21097,9001],[21148,21150,9001],[21413,21423,9001],[21473,21483,9001],[21780,21782,9001],[21891,21894,9001],[22171,22177,9001],[22181,22187,9001],[22191,22197,9001],[22234,22236,9001],[22521,22525,9001],[22991,22994,9001],[23028,23038,9001],[23830,23853,9001],[23866,23872,9001],[23877,23884,9001],[23886,23894,9001],[23946,23948,9001],[24311,24313,9001],[24342,24347,9001],[24370,24374,9084],[24375,24381,9001],[24718,24721,9001],[24817,24821,9001],[24877,
24882,9001],[24891,24893,9001],[25391,25395,9001],[25828,25838,9001],[26191,26195,9001],[26391,26393,9001],[26703,26722,9001],[26729,26760,9003],[26766,26798,9003],[26860,26870,9003],[26891,26899,9001],[26903,26923,9001],[26929,26946,9001],[26948,26998,9001],[27037,27040,9001],[27205,27232,9001],[27258,27260,9001],[27391,27398,9001],[27561,27564,9001],[27571,27574,9001],[27581,27584,9001],[27591,27594,9001],[28191,28193,9001],[28348,28358,9001],[28402,28432,9001],[28462,28492,9001],[29118,29122,9001],
[29177,29185,9001],[30161,30179,9001],[30491,30494,9001],[30729,30732,9001],[31251,31259,9001],[31265,31268,9001],[31275,31278,9001],[31288,31297,9001],[31461,31465,9001],[31491,31495,9001],[31917,31922,9001],[31965,31985,9001],[31992,32E3,9001],[32001,32003,9003],[32005,32031,9003],[32033,32060,9003],[32074,32077,9003],[32081,32086,9001],[32107,32130,9001],[32133,32158,9001],[32164,32167,9003],[32180,32199,9001],[32201,32260,9001],[32301,32360,9001],[32601,32662,9001],[32664,32667,9003],[32701,32761,
9001],[37001,37008,9102],[37201,37208,9102],[37211,37224,9102],[37226,37233,9102],[37237,37243,9102],[37245,37247,9102],[37249,37255,9102],[53001,53004,9001],[53008,53019,9001],[53021,53032,9001],[53042,53046,9001],[54001,54004,9001],[54008,54019,9001],[54021,54032,9001],[54042,54046,9001],[54048,54053,9001],[102001,102040,9001],[102042,102063,9001],[102065,102067,9001],[102070,102112,9001],[102114,102117,9001],[102122,102208,9001],[102210,102216,9001],[102221,102300,9001],[102304,102377,9001],[102382,
102388,9001],[102389,102391,9003],[102401,102444,9001],[102450,102452,9001],[102461,102468,9003],[102469,102492,9001],[102500,102519,9002],[102530,102549,9001],[102570,102588,9001],[102590,102598,9001],[102601,102603,9001],[102608,102628,9001],[102629,102646,9003],[102648,102672,9003],[102675,102700,9003],[102701,102703,9001],[102707,102730,9003],[102735,102758,9003],[102767,102798,9001],[102962,102969,9001],[102971,102973,9001],[102975,102989,9001],[102990,102992,9002],[102997,103002,9001],[103003,
103008,9003],[103009,103011,9001],[103012,103014,9003],[103019,103021,9001],[103022,103024,9003],[103029,103031,9001],[103032,103034,9003],[103065,103068,9001],[103074,103076,9001],[103077,103079,9002],[103080,103082,9001],[103083,103085,9003],[103090,103093,9001],[103097,103099,9001],[103100,103102,9003],[103107,103109,9001],[103110,103112,9003],[103113,103116,9001],[103117,103120,9003],[103153,103157,9001],[103158,103162,9003],[103163,103165,9001],[103166,103168,9002],[103169,103171,9003],[103186,
103188,9001],[103189,103191,9003],[103192,103195,9001],[103196,103199,9003],[103200,103224,9001],[103225,103227,9002],[103232,103237,9001],[103238,103243,9003],[103244,103246,9001],[103247,103249,9003],[103254,103256,9001],[103257,103259,9003],[103264,103266,9001],[103267,103269,9003],[103300,103375,9001],[103381,103383,9001],[103384,103386,9002],[103387,103389,9001],[103390,103392,9003],[103397,103399,9001],[103400,103471,9003],[103476,103478,9001],[103479,103481,9003],[103486,103488,9001],[103489,
103491,9003],[103492,103495,9001],[103496,103499,9003],[103539,103543,9001],[103544,103548,9003],[103549,103551,9001],[103552,103554,9002],[103555,103557,9003],[103558,103560,9001],[103571,103573,9001],[103574,103576,9003],[103577,103580,9001],[103581,103583,9003],[103600,103694,9001],[103700,103793,9003],[103794,103799,9001],[104100,104138,9102],[104141,104145,9102],[104256,104261,9102],[104700,104786,9102],[104900,104970,9102],[104990,104992,9102]],nc:[2066,9039,2136,9094,2155,9003,2157,9001,2158,
9001,2159,9094,2160,9094,2219,9001,2220,9001,2244,9003,2245,9003,2256,9002,2265,9002,2266,9002,2269,9002,2270,9002,2273,9002,2290,9001,2291,9001,2294,9001,2295,9001,2313,9001,2314,9005,2899,9003,2900,9003,2901,9002,2909,9002,2910,9002,2911,9003,2912,9003,2913,9002,2914,9002,2964,9003,2967,9003,2968,9003,2991,9001,2992,9002,2993,9001,2994,9002,3073,9001,3076,9001,3079,9001,3091,9003,3106,9001,3108,9001,3109,9001,3141,9001,3142,9001,3167,9301,3337,9001,3347,9001,3348,9001,3359,9003,3360,9001,3361,9002,
3362,9001,3363,9003,3364,9001,3365,9003,3366,9005,3402,9001,3403,9001,3405,9001,3406,9001,3439,9001,3440,9001,3447,9001,3449,9001,3450,9001,3453,9003,3454,9003,3460,9001,3479,9002,3480,9001,3481,9002,3482,9001,3483,9002,3484,9001,3485,9003,3486,9001,3487,9003,3488,9001,3489,9001,3490,9003,3491,9001,3492,9003,3493,9001,3494,9003,3495,9001,3496,9003,3497,9001,3498,9003,3499,9001,3500,9003,3501,9001,3502,9003,3503,9001,3504,9003,3505,9001,3506,9003,3507,9001,3508,9003,3509,9001,3510,9003,3511,9001,3512,
9003,3513,9001,3514,9001,3515,9003,3516,9001,3517,9003,3518,9001,3519,9003,3520,9001,3521,9003,3522,9001,3523,9003,3524,9001,3525,9003,3526,9001,3527,9003,3528,9001,3529,9003,3530,9001,3531,9003,3532,9001,3533,9003,3534,9001,3535,9003,3536,9001,3537,9003,3538,9001,3539,9003,3540,9001,3541,9003,3542,9001,3543,9003,3544,9001,3545,9003,3546,9001,3547,9003,3548,9001,3549,9003,3550,9001,3551,9003,3552,9001,3553,9003,3582,9003,3583,9001,3584,9003,3585,9001,3586,9003,3587,9001,3588,9002,3589,9001,3590,9002,
3591,9001,3592,9001,3593,9002,3598,9003,3599,9001,3600,9003,3605,9002,3606,9001,3607,9001,3608,9003,3609,9001,3610,9003,3611,9001,3612,9003,3613,9001,3614,9003,3615,9001,3616,9003,3617,9001,3618,9003,3619,9001,3620,9003,3621,9001,3622,9003,3623,9001,3624,9003,3625,9001,3626,9003,3627,9001,3628,9003,3629,9001,3630,9003,3631,9001,3632,9003,3633,9001,3634,9002,3635,9001,3636,9002,3640,9003,3641,9001,3642,9003,3643,9001,3644,9002,3645,9001,3646,9002,3647,9001,3648,9002,3649,9001,3650,9003,3651,9001,3652,
9003,3653,9001,3654,9003,3655,9001,3656,9002,3657,9001,3658,9003,3659,9001,3660,9003,3661,9001,3662,9003,3663,9001,3664,9003,3668,9003,3669,9001,3670,9003,3671,9001,3672,9003,3673,9001,3674,9003,3675,9001,3676,9002,3677,9003,3678,9001,3679,9002,3680,9003,3681,9001,3682,9002,3683,9003,3684,9001,3685,9001,3686,9003,3687,9001,3688,9003,3689,9001,3690,9003,3691,9001,3692,9003,3696,9003,3697,9001,3698,9003,3699,9001,3700,9003,3740,9001,3749,9001,3783,9001,3784,9001,3793,9001,3794,9001,3802,9001,3816,9001,
3829,9001,3854,9001,3920,9001,3978,9001,3979,9001,3991,9003,3992,9003,4026,9001,4037,9001,4038,9001,4042,9102,4075,9102,4081,9102,4168,9102,4170,9102,4188,9102,4217,9003,4261,9105,4262,9102,4263,9102,4288,9102,4289,9102,4305,9105,4322,9102,4324,9102,4326,9102,4438,9003,4439,9003,4466,9102,4467,9001,4469,9102,4471,9001,4474,9001,4475,9102,4483,9102,4490,9102,4555,9102,4558,9102,4559,9001,4614,9102,4619,9102,4657,9102,4670,9102,4671,9102,4674,9102,4682,9102,4683,9102,4718,9102,4720,9102,4721,9102,4723,
9102,4726,9102,4737,9102,4738,9102,4759,9102,4761,9102,4807,9105,4808,9102,4809,9102,4816,9105,4817,9102,4818,9102,4819,9105,4820,9102,4821,9105,4823,9102,4824,9102,4839,9001,4901,9105,4902,9105,4903,9102,4904,9102,5018,9001,5048,9001,5167,9001,5168,9001,5223,9001,5228,9102,5229,9102,5233,9102,5234,9001,5235,9001,5243,9001,5252,9102,5264,9102,5266,9001,5316,9001,5320,9001,5321,9001,5330,9001,5331,9001,5337,9001,5340,9102,5354,9102,5360,9102,5361,9001,5362,9001,5371,9102,5373,9102,5381,9102,5382,9001,
5383,9001,5393,9102,5396,9001,5456,9001,5457,9001,5464,9102,5467,9102,5469,9001,5472,9037,5489,9102,5490,9001,5518,9001,5523,9001,5524,9102,5527,9102,5546,9102,5559,9001,5561,9102,5588,9002,5589,9005,5593,9102,5596,9001,5627,9001,5629,9001,5641,9001,5643,9001,5644,9001,5654,9003,5655,9003,5659,9001,5681,9102,5700,9001,5825,9001,5836,9001,5837,9001,5842,9001,5844,9001,5880,9001,5886,9102,5887,9001,5890,9001,20499,9001,20538,9001,20539,9001,20790,9001,20791,9001,21291,9001,21292,9001,21500,9001,21817,
9001,21818,9001,22032,9001,22033,9001,22091,9001,22092,9001,22332,9001,22391,9001,22392,9001,22700,9001,22770,9001,22780,9001,22832,9001,23090,9001,23095,9001,23239,9001,23240,9001,23433,9001,23700,9001,24047,9001,24048,9001,24100,9005,24200,9001,24305,9001,24306,9001,24382,9084,24383,9001,24500,9001,24547,9001,24548,9001,24571,9062,24600,9001,25E3,9001,25231,9001,25884,9001,25932,9001,26237,9001,26331,9001,26332,9001,26591,9001,26592,9001,26632,9001,26692,9001,26855,9003,26856,9003,27120,9001,27200,
9001,27291,9040,27292,9040,27429,9001,27492,9001,27500,9001,27700,9001,28232,9001,28600,9001,28991,9001,28992,9001,29100,9001,29220,9001,29221,9001,29333,9001,29635,9001,29636,9001,29701,9001,29738,9001,29739,9001,29849,9001,29850,9001,29871,9042,29872,9041,29873,9001,29900,9001,29901,9001,29903,9001,30200,9039,30339,9001,30340,9001,30591,9001,30592,9001,30791,9001,30792,9001,31028,9001,31121,9001,31154,9001,31170,9001,31171,9001,31370,9001,31528,9001,31529,9001,31600,9001,31700,9001,31838,9001,31839,
9001,31901,9001,32061,9001,32062,9001,32098,9001,32099,9003,32100,9001,32104,9001,32161,9001,32766,9001,37225,9105,37235,9102,37257,9102,37259,9102,37260,9102,53034,9001,53048,9001,53049,9001,54034,9001,65061,9003,65062,9003,65161,9001,65163,9001,102041,9003,102064,9085,102068,109030,102069,109031,102118,9003,102119,9002,102120,9003,102121,9003,102217,9003,102218,9001,102219,9003,102220,9003,102378,9002,102379,9002,102380,9001,102381,9002,102589,9003,102599,9003,102600,9003,102604,9003,102605,9001,
102606,9001,102647,9001,102704,9003,102705,9003,102733,9003,102761,9003,102762,9001,102763,9003,102764,9001,102765,9001,102766,9003,102970,9002,102974,9003,102993,9001,102994,9001,102995,9003,102996,9003,103015,9001,103016,9003,103017,9001,103018,9003,103025,9001,103026,9001,103027,9003,103028,9003,103035,9001,103036,9001,103037,9003,103038,9003,103039,9001,103040,9001,103041,9003,103042,9003,103043,9001,103044,9001,103045,9003,103046,9003,103047,9001,103048,9001,103049,9003,103050,9003,103051,9001,
103052,9003,103053,9001,103054,9003,103055,9001,103056,9003,103057,9001,103058,9001,103059,9003,103060,9003,103061,9001,103062,9001,103063,9003,103064,9003,103069,9003,103070,9001,103071,9001,103072,9003,103073,9003,103086,9001,103087,9001,103088,9003,103089,9003,103094,9002,103095,9001,103096,9003,103103,9001,103104,9003,103105,9001,103106,9003,103121,9001,103122,9003,103123,9001,103124,9001,103125,9002,103126,9002,103127,9001,103128,9001,103129,9003,103130,9003,103131,9001,103132,9001,103133,9003,
103134,9003,103135,9001,103136,9001,103137,9002,103138,9002,103139,9001,103140,9003,103141,9001,103142,9003,103143,9001,103144,9003,103145,9001,103146,9002,103147,9001,103148,9001,103149,9003,103150,9003,103151,9001,103152,9003,103172,9001,103173,9003,103174,9001,103175,9001,103176,9003,103177,9003,103178,9001,103179,9001,103180,9003,103181,9003,103182,9001,103183,9001,103184,9003,103185,9003,103228,9001,103229,9001,103230,9003,103231,9003,103250,9001,103251,9003,103252,9001,103253,9003,103260,9001,
103261,9001,103262,9003,103263,9003,103270,9001,103271,9001,103272,9003,103273,9003,103274,9001,103275,9001,103276,9003,103277,9003,103278,9001,103279,9001,103280,9003,103281,9003,103282,9001,103283,9001,103284,9003,103285,9003,103286,9001,103287,9003,103288,9001,103289,9003,103290,9001,103291,9003,103292,9001,103293,9001,103294,9003,103295,9003,103296,9001,103297,9001,103298,9003,103299,9003,103376,9003,103377,9001,103378,9001,103379,9003,103380,9003,103393,9001,103394,9001,103395,9003,103396,9003,
103472,9001,103473,9002,103474,9001,103475,9003,103482,9001,103483,9003,103484,9001,103485,9003,103500,9001,103501,9003,103502,9001,103503,9001,103504,9002,103505,9002,103506,9001,103507,9001,103508,9003,103509,9003,103510,9001,103511,9001,103512,9003,103513,9003,103514,9001,103515,9003,103516,9001,103517,9003,103518,9001,103519,9003,103520,9001,103521,9002,103522,9001,103523,9001,103524,9003,103525,9003,103526,9001,103527,9003,103561,9003,103562,9003,103563,9001,103564,9001,103565,9003,103566,9003,
103567,9001,103568,9001,103569,9003,103570,9003,103585,9003,103695,9003,104020,9102,104139,9105,104140,9105,104223,9102,104286,9102,104287,9102,104304,9102,104305,9102,104896,9102]},b=function(){function a(){}a.cC=function(c){!1===a.ti&&a.bo();var b=a.NG(c);if(-1==b){var f=a.ks(c);f!=c&&(b=a.cC(f))}return b};a.NG=function(c){return void 0!==a.ds[c]?a.ds[c]:-1};a.SM=function(c){!1===a.ti&&a.bo();var b=a.Fz(c);if(1E38==b){var f=a.ks(c);f!=c&&(b=a.Fz(f));if(1E38==b)return 1E-10}return b};a.WO=function(c){if(void 0!==
a.Un[c])return!0;var b=a.ks(c);return b!=c&&void 0!==a.Un[b]?!0:!1};a.ZO=function(c){if(void 0!==a.Gh[c])return!0;var b=a.ks(c);return b!=c&&void 0!==a.Gh[b]?!0:!1};a.Fz=function(c){!1===a.ti&&a.bo();return void 0!==a.Un[c]?a.Un[c]:void 0!==a.Gh[c]?a.Gh[c]:1E38};a.oU=function(c){!1===a.ti&&a.bo();return void 0!==a.ew[c]?a.ew[c]:c};a.ks=function(c){!1===a.ti&&a.bo();return void 0!==a.Mw[c]?a.Mw[c]:c};a.bo=function(){for(var c=m,b,f=0;f<c.pcsid.length;f+=2)a.Gh[c.pcsid[f]]=c.pcstol[2*c.pcsid[f+1]+1];
for(f=0;f<c.pcsidc.length;f+=1){b=c.pcsidc[f];for(var h=b[0];h<=b[1];h++)a.Gh[h]=c.pcstol[2*b[2]+1]}for(f=0;f<c.gcsid.length;f+=2)a.Un[c.gcsid[f]]=c.gcstol[2*c.gcsid[f+1]+1];for(f=0;f<c.gcsidc.length;f+=1)for(b=c.gcsidc[f],h=b[0];h<=b[1];h++)a.Gh[h]=c.gcstol[2*b[2]+1];for(f=0;f<g.c.length;f+=1)for(b=g.c[f],h=b[0];h<=b[1];h++)a.ds[h]=b[2];for(f=0;f<g.nc.length;f+=2)a.ds[g.nc[f]]=g.nc[f+1];g=null;for(f=0;f<c.newtoold.length;f+=2)a.ew[c.newtoold[f+1]]=c.newtoold[f],a.Mw[c.newtoold[f]]=c.newtoold[f+1];
m=null;a.ti=!0};a.ti=!1;a.Un=[];a.Gh=[];a.ew=[];a.Mw=[];a.ds=[];return a}();d.ls=b})(p||(p={}));(function(d){function m(a){return 0===a.length?'""':'"'==a[0]||"."==a[0]||"0"<=a[0]&&"9">=a[0]?a:'"'+a.trim()+'"'}var g=[],b=function(){function a(){}a.UM=function(c){try{for(var b=0;b<g.length;b++)if(g[b].wkttext===c)return g[b].unit;for(var f,h=b="",l=!1,k=0;k<c.length;k++){var n=c[k];!0===l?'"'==n?'"'==c[k+1]?b+=n:l=!1:b+=n:/[\s]/.test(n)||(","==n?(h=""!==b?h+(m(b)+","):h+",",b=""):")"==n||"]"==n?(h=
""!==b?h+(m(b)+"]}"):h+"]}",b=""):"("==n||"["==n?(h+='{ "entity": "'+b.toUpperCase().trim()+'", "values":[',b=""):'"'==n?(l=!0,b=""):b+=n)}f=JSON.parse(h);var u=a.Dz(f);if(null===u)return null;f=null;for(n=0;n<u.values.length;n++)if("object"===typeof u.values[n]&&"UNIT"===u.values[n].entity){f=u.values[n];break}if(null===f)return null;var q=d.Tb.EL("GEOGCS"===u.entity?1:0,f.values[1],f.values[2]);g.push({wkttext:c,unit:q});10<g.length&&g.shift();return q}catch(r){return null}};a.Dz=function(c){if(null===
c)return null;if("GEOGCS"===c.entity||"PROJCS"===c.entity)return c;for(var b=[],f=0;f<c.values.length;f++)if("object"===typeof c.values[f]&&void 0!==c.values[f].entity){if("GEOGCS"===c.values[f].entity||"PROJCS"==c.values[f].entity)return c.values[f];b.push(c.values[f])}for(c=0;c<b.length;c++)if(f=a.Dz(b[c]),null!==f)return f;return null};a.TM=function(a){var c=-1;if(null!=a&&0<a.length){var b,h;b=a.indexOf("PROJCS");if(0<=b){var d=0;b=a.lastIndexOf("UNIT");if(0<=b&&(b=a.indexOf(",",b+4),0<b&&(b++,
h=a.indexOf("]",b+1),0<h)))try{d=parseFloat(a.substring(b,h))}catch(n){d=0}0<d&&(c=.001/d)}else if(b=a.indexOf("GEOGCS"),0<=b){var k=0,d=0;b=a.indexOf("SPHEROID",b+6);if(0<b&&(b=a.indexOf(",",b+8),0<b)){b++;h=a.indexOf(",",b+1);if(0<h)try{k=parseFloat(a.substring(b,h))}catch(n){k=0}if(0<k&&(b=a.indexOf("UNIT",h+1),0<=b&&(b=a.indexOf(",",b+4),0<b&&(b++,h=a.indexOf("]",b+1),0<h))))try{d=parseFloat(a.substring(b,h))}catch(n){d=0}}0<k&&0<d&&(c=.001/(k*d))}}return c};return a}();d.mA=b})(p||(p={}));(function(d){(function(d){d[d.NONE=
0]="NONE";d[d.LINEAR=1]="LINEAR";d[d.ANGULAR=2]="ANGULAR"})(d.BH||(d.BH={}));(function(d){d[d.enumFloat=0]="enumFloat";d[d.enumDouble=1]="enumDouble";d[d.enumInt32=2]="enumInt32";d[d.enumInt64=3]="enumInt64";d[d.enumInt8=4]="enumInt8";d[d.enumInt16=5]="enumInt16"})(d.oI||(d.oI={}));(function(d){d[d.POSITION=0]="POSITION";d[d.Z=1]="Z";d[d.M=2]="M";d[d.ID=3]="ID";d[d.NORMAL=4]="NORMAL";d[d.TEXTURE1D=5]="TEXTURE1D";d[d.TEXTURE2D=6]="TEXTURE2D";d[d.TEXTURE3D=7]="TEXTURE3D";d[d.ID2=8]="ID2";d[d.MAXSEMANTICS=
10]="MAXSEMANTICS"})(d.xf||(d.xf={}));var m=function(){function g(b,a){this.er=this.le=null;this.up=this.Aa=0;this.Wg=this.Jf=null;this.tk=0;if(void 0!==a){this.Aa=a.Aa;this.up=a.up;this.Jf=a.Jf.slice(0);this.Wg=a.Wg.slice(0);this.tk=a.tk;this.er=[];for(var c=0,e=0;e<this.Aa;e++)this.er[e]=c,c+=g.Wa(this.Jf[e]);this.up=c;this.le=[];for(e=0;e<this.Aa;e++)for(var c=g.Wa(this.Hd(e)),f=g.ue(this.Hd(e)),h=0;h<c;h++)this.le[this.er[e]+h]=f}else this.up=this.Aa=0}g.prototype.Hd=function(b){if(0>b||b>this.Aa)throw d.g.N();
return this.Jf[b]};g.prototype.zf=function(b){return this.Wg[b]};g.JN=function(b){return g.ac[b]};g.Qh=function(b){return g.Cc[b]};g.ye=function(b){return g.Bd[b]};g.Gh=function(b){return g.ye(g.Qh(b))*g.Wa(b)};g.Wa=function(b){return g.ob[b]};g.Wf=function(b){return 2>b};g.ti=function(b){return g.Wf(g.Qh(b))};g.prototype.hasAttribute=function(b){return 0<=this.Wg[b]};g.prototype.WC=function(){return this.hasAttribute(1)};g.ue=function(b){return g.V[b]};g.prototype.XN=function(b){return this.er[b]};
g.nD=function(b,a){return g.V[b]===a};g.$g=function(b){if(4==b)return 2;if(8==b)return 3;throw d.g.N();};g.prototype.lc=function(b){return this===b};g.prototype.jj=function(){for(var b=d.I.kg(this.Jf[0]),a=1;a<this.Aa;a++)b=d.I.kg(this.Jf[a],b);return b};g.prototype.fj=function(b){return this.er[b]};g.prototype.hc=function(){return this.tk};g.prototype.Fd=function(b){return this.Jf[b]};g.V=[0,0,NaN,0,0,0,0,0,0];g.ac=[1,1,1,0,2,1,1,1,0];g.Cc=[1,1,1,2,0,0,0,0,2];g.Bd=[4,8,4,8,1,2];g.ob=[2,1,1,1,3,1,
2,3,2];return g}();d.pa=m})(p||(p={}));(function(d){function m(a,b,f,h){var c=a.jd,e=a.e+b+1;1===f?h=5<=c[e]:2===f?h=5<c[e]||5==c[e]&&(h||0>e||void 0!==c[e+1]||c[e-1]&1):3===f?h=h||void 0!==c[e]||0>e:(h=!1,0!==f&&g("!Big.RM!"));if(1>e||!c[0])h?(a.e=-b,a.jd=[1]):a.jd=[a.e=0];else{c.length=e--;if(h)for(;9<++c[e];)c[e]=0,e--||(++a.e,c.unshift(1));for(e=c.length;!c[--e];c.pop());}}function g(a){a=Error(a);a.name="BigError";throw a;}var b=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,a=function(){function a(c){if(c instanceof
a)this.Dd=c.Dd,this.e=c.e,this.jd=c.jd.slice();else{var e,h,d;0===c&&0>1/c?c="-0":b.test(c+="")||g(NaN);this.Dd="-"==c.charAt(0)?(c=c.slice(1),-1):1;-1<(e=c.indexOf("."))&&(c=c.replace(".",""));0<(h=c.search(/e/i))?(0>e&&(e=h),e+=+c.slice(h+1),c=c.substring(0,h)):0>e&&(e=c.length);for(h=0;"0"==c.charAt(h);h++);if(h==(d=c.length))this.jd=[this.e=0];else{for(;"0"==c.charAt(--d););this.e=e-h-1;this.jd=[];for(e=0;h<=d;this.jd[e++]=+c.charAt(h++));}}}a.prototype.abs=function(){var c=new a(this);c.Dd=1;
return c};a.prototype.DB=function(){var c=0,b=this.jd,h=(c=new a(c)).jd,d=this.Dd,k=c.Dd,n=this.e,g=c.e;if(!b[0]||!h[0])return b[0]?d:h[0]?-k:0;if(d!=k)return d;c=0>d;if(n!=g)return n>(g^c)?1:-1;d=-1;for(k=(n=b.length)<(g=h.length)?n:g;++d<k;)if(b[d]!=h[d])return b[d]>(h[d]^c)?1:-1;return n==g?0:n>(g^c)?1:-1};a.prototype.VB=function(c){var b=this.jd,e=(c=new a(c)).jd,d=this.Dd==c.Dd?1:-1,k=a.Cc;(k!==~~k||0>k||1E6<k)&&g("!Big.DP!");if(!b[0]||!e[0])return b[0]==e[0]&&g(NaN),e[0]||g(d/0),new a(0*d);
var n,u,q,r,w=e.slice(),t=n=e.length,x=b.length,v=b.slice(0,n),C=v.length,p=c,y=p.jd=[],z=0,B=k+(p.e=this.e-c.e)+1;p.Dd=d;d=0>B?0:B;for(w.unshift(0);C++<n;v.push(0));do{for(u=0;10>u;u++){if(n!=(C=v.length))q=n>C?1:-1;else for(r=-1,q=0;++r<n;)if(e[r]!=v[r]){q=e[r]>v[r]?1:-1;break}if(0>q){for(c=C==n?e:w;C;){if(v[--C]<c[C]){for(r=C;r&&!v[--r];v[r]=9);--v[r];v[C]+=10}v[C]-=c[C]}for(;!v[0];v.shift());}else break}y[z++]=q?u:++u;v[0]&&q?v[C]=b[t]||0:v=[b[t]]}while((t++<x||void 0!==v[0])&&d--);y[0]||1==z||
(y.shift(),p.e--);z>B&&m(p,k,a.ye,void 0!==v[0]);return p};a.prototype.nO=function(){return 0<this.DB()};a.prototype.vP=function(){return 0>this.DB()};a.prototype.nr=function(c){var b,e,d=this.Dd,k=(c=new a(c)).Dd;if(d!=k)return c.Dd=-k,this.NE(c);var n=this.jd.slice();e=this.e;var g=c.jd,q=c.e;if(!n[0]||!g[0])return g[0]?(c.Dd=-k,c):new a(n[0]?this:0);if(d=e-q){(b=0>d)?(d=-d,e=n):(q=e,e=g);e.reverse();for(k=d;k--;e.push(0));e.reverse()}else for(e=((b=n.length<g.length)?n:g).length,d=k=0;k<e;k++)if(n[k]!=
g[k]){b=n[k]<g[k];break}b&&(e=n,n=g,g=e,c.Dd=-c.Dd);if(0<(k=(e=g.length)-(b=n.length)))for(;k--;n[b++]=0);for(k=b;e>d;){if(n[--e]<g[e]){for(b=e;b&&!n[--b];n[b]=9);--n[b];n[e]+=10}n[e]-=g[e]}for(;0==n[--k];n.pop());for(;0==n[0];)n.shift(),--q;n[0]||(c.Dd=1,n=[q=0]);c.jd=n;c.e=q;return c};a.prototype.NE=function(c){var b,e=this.Dd;b=(c=new a(c)).Dd;if(e!=b)return c.Dd=-b,this.nr(c);b=this.e;var d=this.jd,k=c.e,n=c.jd;if(!d[0]||!n[0])return n[0]?c:new a(d[0]?this:0*e);d=d.slice();if(e=b-k){0<e?(k=b,
b=n):(e=-e,b=d);for(b.reverse();e--;b.push(0));b.reverse()}0>d.length-n.length&&(b=n,n=d,d=b);e=n.length;for(b=0;e;)b=(d[--e]=d[e]+n[e]+b)/10|0,d[e]%=10;b&&(d.unshift(b),++k);for(e=d.length;0==d[--e];d.pop());c.jd=d;c.e=k;return c};a.prototype.pow=function(c){var b=this,e=new a(1),d=e,k=0>c;(c!==~~c||-1E6>c||1E6<c)&&g("!pow!");for(c=k?-c:c;;){c&1&&(d=d.Wp(b));c>>=1;if(!c)break;b=b.Wp(b)}return k?e.VB(d):d};a.prototype.round=function(c,b){var e=this;null==c?c=0:(c!==~~c||0>c||1E6<c)&&g("!round!");
m(e=new a(e),c,null==b?a.ye:b);return e};a.prototype.sqrt=function(){var c,b,h;b=this.jd;c=this.Dd;h=this.e;var d=new a("0.5");if(!b[0])return new a(this);0>c&&g(NaN);c=Math.sqrt(this.toString());0==c||c==1/0?(c=b.join(""),c.length+h&1||(c+="0"),b=new a(Math.sqrt(c).toString()),b.e=((h+1)/2|0)-(0>h||h&1)):b=new a(c.toString());c=b.e+(a.Cc+=4);do h=b,b=d.Wp(h.NE(this.VB(h)));while(h.jd.slice(0,c).join("")!==b.jd.slice(0,c).join(""));m(b,a.Cc-=4,a.ye);return b};a.prototype.Wp=function(c){var b,e=this.jd,
d=(c=new a(c)).jd,k=e.length,n=d.length,g=this.e,q=c.e;c.Dd=this.Dd==c.Dd?1:-1;if(!e[0]||!d[0])return new a(0*c.Dd);c.e=g+q;k<n&&(b=e,e=d,d=b,q=k,k=n,n=q);for(b=Array(q=k+n);q--;b[q]=0);for(g=n;g--;){n=0;for(q=k+g;q>g;)n=b[q]+d[g]*e[q-g-1]+n,b[q--]=n%10,n=n/10|0;b[q]=(b[q]+n)%10}n&&++c.e;b[0]||b.shift();for(g=b.length;!b[--g];b.pop());c.jd=b;return c};a.prototype.toString=function(){var a=this.e,c=this.jd.join(""),b=c.length;if(-7>=a||21<=a)c=c.charAt(0)+(1<b?"."+c.slice(1):"")+(0>a?"e":"e+")+a;else if(0>
a){for(;++a;c="0"+c);c="0."+c}else if(0<a)if(++a>b)for(a-=b;a--;c+="0");else a<b&&(c=c.slice(0,a)+"."+c.slice(a));else 1<b&&(c=c.charAt(0)+"."+c.slice(1));return 0>this.Dd&&this.jd[0]?"-"+c:c};a.Cc=20;a.ye=1;return a}();d.Tn=a})(p||(p={}));(function(d){var m=function(){function b(a){this.$e=a}b.prototype.Zp=function(a,c,b){var e=new d.b,h=new d.b,l=this.$e;b.xd(a,c,function(a,c){l.ec(2*a,e);l.ec(2*c,h);return e.compare(h)})};b.prototype.Mo=function(a){return this.$e.read(2*a+1)};return b}(),g=function(){function b(){}
b.No=function(a){if(a.s())return!1;var c=a.D();return 1736==c?0==a.Mh()?!1:!0:1607==c?(c=[!1],b.qz(a,!0,c),c[0]):197==c||d.T.Lc(c)&&!a.kD()?!0:!1};b.il=function(a){var c=a.D();if(1736==c)return c=new d.Xa(a.description),a.s()||a.tA(c),c;if(1607==c)return b.qz(a,!1,null);if(197==c)return c=new d.Xa(a.description),a.s()||c.Wc(a,!1),c;if(d.T.Lc(c)){c=new d.pe(a.description);if(!a.s()&&!a.kD()){var e=new d.Va;a.En(e);c.add(e);a.Bn(e);c.add(e)}return c}if(d.T.Km(c))return null;throw d.g.N();};b.qz=function(a,
c,b){null!=b&&(b[0]=!1);var e=null;c||(e=new d.pe(a.description));if(!a.s()){var h=new d.ga(0);h.xb(2*a.ea());for(var l=0,k=a.ea();l<k;l++)if(0<a.Ha(l)&&!a.Oo(l)){var n=a.Ea(l);h.add(n);n=a.Dc(l)-1;h.add(n)}if(0<h.size){k=new d.Rr;l=a.mc(0);k.sort(h,0,h.size,new m(l));k=new d.b;l.ec(2*h.get(0),k);for(var n=0,g=1,q=new d.Va,r=new d.b,w=1,t=h.size;w<t;w++)if(l.ec(2*h.get(w),r),r.ub(k))h.get(n)>h.get(w)?(h.set(n,2147483647),n=w):h.set(w,2147483647),g++;else{if(0==(g&1))h.set(n,2147483647);else if(c)return null!=
b&&(b[0]=!0),null;k.J(r);n=w;g=1}if(0==(g&1))h.set(n,2147483647);else if(c)return null!=b&&(b[0]=!0),null;if(!c)for(h.xd(0,h.size,function(a,c){return a-c}),w=0,t=h.size;w<t&&2147483647!=h.get(w);w++)a.Sd(h.get(w),q),e.add(q)}}return c?null:e};return b}();d.Hh=g})(p||(p={}));(function(d){var m=function(){function g(){this.lf=new d.ga(0);this.Lq=new d.ga(0);this.gE=1;this.Qq=NaN}g.prototype.sort=function(b,a,c,e){if(32>c-a)e.Zp(a,c,b);else{var f=!0;try{for(var h=Infinity,d=-Infinity,k=a;k<c;k++){var n=
e.Mo(b.get(k));n<h&&(h=n);n>d&&(d=n)}if(this.reset(c-a,h,d,c-a)){for(k=a;k<c;k++){var g=b.get(k),n=e.Mo(g),q=this.oC(n);this.lf.set(q,this.lf.get(q)+1);this.Lq.write(k-a,g)}var r=this.lf.get(0);this.lf.set(0,0);for(var k=1,w=this.lf.size;k<w;k++){var t=this.lf.get(k);this.lf.set(k,r);r+=t}for(k=a;k<c;k++){var g=this.Lq.read(k-a),n=e.Mo(g),q=this.oC(n),m=this.lf.get(q);b.set(m+a,g);this.lf.set(q,m+1)}f=!1}}catch(v){this.lf.resize(0),this.Lq.resize(0)}if(f)e.Zp(a,c,b);else{k=c=0;for(w=this.lf.size;k<
w;k++)f=c,c=this.lf.get(k),c>f&&e.Zp(a+f,a+c,b);100<this.lf.size&&(this.lf.resize(0),this.Lq.resize(0))}}};g.prototype.reset=function(b,a,c,e){if(2>b||c==a)return!1;b=Math.min(g.tI,b);this.lf.xb(b);this.lf.resize(b);this.lf.dh(0,0,this.lf.size);this.gE=a;this.Lq.resize(e);this.Qq=(c-a)/(b-1);return!0};g.prototype.oC=function(b){return d.I.truncate((b-this.gE)/this.Qq)};g.tI=65536;return g}();d.Rr=m})(p||(p={}));(function(d){var m;(function(a){a[a.enum_line=1]="enum_line";a[a.enum_arc=2]="enum_arc";
a[a.enum_dummy=4]="enum_dummy";a[a.enum_concave_dip=8]="enum_concave_dip";a[a.enum_connection=3]="enum_connection"})(m||(m={}));var g=function(){function a(){}a.Ks=function(c,b,e,f,g,q){var h=new a;h.Fl=new d.b;h.Ql=new d.b;h.Lt=new d.b;h.Fl.J(c);h.Ql.J(b);h.Lt.J(e);h.qn=f;h.Rg=g;h.Ug=q;return h};a.Oa=function(c,b,e,f){var h=new a;h.Fl=new d.b;h.Ql=new d.b;h.Lt=new d.b;h.Fl.J(c);h.Ql.J(b);h.Lt.Eh();h.qn=4;h.Rg=e;h.Ug=f;return h};return a}(),b=function(){function a(a,c,b,e,f,d){this.It=null;this.ua=
0;this.Ex=a;this.yE=this.wE=0;this.Da=c;this.Pi=b;this.Cj=e;this.mp=f;this.Yb=d}a.prototype.next=function(){for(var a=new d.Va;;){if(this.ua==this.Ex.F())return null;this.Ex.Sd(this.ua,a);this.ua++;if(!a.s())break}var c=!1;null==this.It&&(this.wE=a.lk(),this.yE=a.mk(),this.It=e.buffer(a,this.Da,this.Pi,this.Cj,this.mp,this.Yb),c=!0);var b;this.ua<this.Ex.F()?(b=new d.Ka,this.It.copyTo(b)):b=this.It;if(!c){var c=new d.Bg,f=a.lk()-this.wE,a=a.mk()-this.yE;c.Nn(f,a);b.Oe(c)}return b};a.prototype.ya=
function(){return 0};return a}(),a=function(){function a(a,c){this.Ma=a;this.ua=0;this.Yo=c}a.prototype.next=function(){var a=this.Ma.U;if(this.ua<a.ea()){var c=this.ua;this.ua++;if(!a.Oo(c))for(var b=a.Fa(a.Dc(c)-1);this.ua<a.ea();){var e=a.Fa(a.Ea(this.ua));if(a.Oo(this.ua))break;if(e!=b)break;b=a.Fa(a.Dc(this.ua)-1);this.ua++}if(1==this.ua-c)return this.Ma.kB(this.Ma.U,c,this.Yo);b=new d.Xa(this.Ma.U.description);b.Zj(this.Ma.U,c,!0);for(c+=1;c<this.ua;c++)b.ys(this.Ma.U,c,0,a.ct(c),!1);return this.Ma.kB(b,
0,this.Yo)}return null};a.prototype.ya=function(){return 0};return a}(),c=function(){function a(a){this.Ma=a;this.ua=0}a.prototype.next=function(){var a=this.Ma.U;if(this.ua<a.ea()){var c=this.ua;a.oo(this.ua);for(this.ua++;this.ua<a.ea()&&!(0<a.oo(this.ua));)this.ua++;return 0==c&&this.ua==a.ea()?this.Ma.Gv(a,0,a.ea()):this.Ma.Gv(a,c,this.ua)}return null};a.prototype.ya=function(){return 0};return a}(),e=function(){function e(a){this.Vq=this.Tt=this.Wq=this.sd=null;this.Jd=[];this.Yb=a;this.hb=this.wt=
this.OP=this.Da=this.vx=this.jr=this.ka=0;this.sx=this.Cj=-1;this.Yo=!0}e.buffer=function(a,c,b,f,g,q){if(null==a)throw d.g.N();if(0>f)throw d.g.N();if(a.s())return new d.Ka(a.description);var h=new d.i;a.dd(h);0<c&&h.P(c,c);q=new e(q);q.Pi=b;q.U=a;q.ka=d.Ia.zd(b,h,!0);q.jr=d.Ia.zd(null,h,!0);q.Da=c;q.OP=a.D();0>=g&&(g=96);q.hb=Math.abs(q.Da);q.wt=0!=q.hb?1/q.hb:0;isNaN(f)||0==f?f=1E-5*q.hb:f>.5*q.hb&&(f=.5*q.hb);12>g&&(g=12);a=Math.abs(c)*(1-Math.cos(Math.PI/g));a>f?f=a:(a=Math.PI/Math.acos(1-f/
Math.abs(c)),a<g-1&&(g=d.I.truncate(a),12>g&&(g=12,f=Math.abs(c)*(1-Math.cos(Math.PI/g)))));q.Cj=f;q.mp=g;q.vx=Math.min(q.jr,.25*f);return q.lB()};e.prototype.Ss=function(){if(null==this.sd)this.sd=[];else if(0!==this.sd.length)return;var a=this.pB(),a=d.I.truncate((a+3)/4),c=.5*Math.PI/a;this.sx=c;for(var b=0;b<4*a;b++)this.sd.push(null);for(var e=Math.cos(c),c=Math.sin(c),f=d.b.Oa(0,1),b=0;b<a;b++)this.sd[b+0*a]=d.b.Oa(f.y,-f.x),this.sd[b+1*a]=d.b.Oa(-f.x,-f.y),this.sd[b+2*a]=d.b.Oa(-f.y,f.x),this.sd[b+
3*a]=f,f=d.b.Oa(f.x,f.y),f.Er(e,c)};e.prototype.lB=function(){var a=this.U.D();if(d.T.Lc(a))return a=new d.Xa(this.U.description),a.Bc(this.U,!0),this.U=a,this.lB();if(this.Da<=this.ka)if(d.T.SO(a)){if(0>=this.Da&&(a=new d.i,this.U.o(a),a.aa()<=2*-this.Da||a.ba()<=2*this.Da))return new d.Ka(this.U.description)}else return new d.Ka(this.U.description);switch(this.U.D()){case 33:return this.tK();case 550:return this.sK();case 1607:return this.vK();case 1736:return this.uK();case 197:return this.qK();
default:throw d.g.wa();}};e.prototype.vK=function(){if(this.oD(this.U)){var c=new d.Va;this.U.Sd(0,c);var b=new d.i;this.U.o(b);c.ic(b.Af());return this.Es(c)}this.U=this.SQ(this.U);c=new a(this,this.Yo);return d.wi.local().$(c,this.Pi,this.Yb).next()};e.prototype.uK=function(){if(0==this.Da)return this.U;var a=d.as.local();this.Ss();this.U=a.$(this.U,null,!1,this.Yb);if(0>this.Da){var b=this.U,b=this.Gv(b,0,b.ea());return a.$(b,this.Pi,!1,this.Yb)}if(this.oD(this.U))return a=new d.Va,this.U.Sd(0,
a),b=new d.i,this.U.o(b),a.ic(b.Af()),this.Es(a);a=new c(this);return d.wi.local().$(a,this.Pi,this.Yb).next()};e.prototype.Gv=function(a,c,b){for(var f=new d.Ka(a.description);c<b;c++)if(!(1>a.Ha(c))){var h=a.oo(c),l=new d.i;a.Ti(c,l);if(0<this.Da)if(0<h)if(this.pD(a,c))h=new d.Va,a.Sd(a.Ea(c),h),h.ic(l.Af()),this.us(f,h);else{var k=h=new d.Xa(a.description),k=d.Tr.sD(this.U,c)||2==this.sm(this.U,c,k,!0,1)?this.jB(a,c):this.rm(h);f.add(k,!1)}else{if(!(l.aa()+this.ka<=2*this.hb||l.ba()+this.ka<=2*
this.hb||(k=h=new d.Xa(a.description),this.sm(this.U,c,k,!0,1),h.s()))){var g=new d.i;g.K(l);g.P(this.hb,this.hb);k.ws(g);k=this.rm(h);l=1;for(h=k.ea();l<h;l++)f.Zj(k,l,!0)}}else if(0<h){if(!(l.aa()+this.ka<=2*this.hb||l.ba()+this.ka<=2*this.hb||(k=h=new d.Xa(a.description),this.sm(this.U,c,k,!0,-1),h.s())))for(g=new d.i,k.dd(g),g.P(this.hb,this.hb),k.ws(g),k=this.rm(h),l=1,h=k.ea();l<h;l++)f.Zj(k,l,!0)}else for(k=h=new d.Xa(a.description),this.sm(this.U,c,k,!0,-1),k=this.rm(h),l=0,h=k.ea();l<h;l++)f.Zj(k,
l,!0)}if(0<this.Da)return 1<f.ea()?f=this.rm(f):e.Id(f);a=new d.i;f.dd(a);if(f.s())return e.Id(f);a.P(this.hb,this.hb);f.ws(a);f=this.rm(f);a=new d.Ka(f.description);l=1;for(h=f.ea();l<h;l++)a.Zj(f,l,!1);return e.Id(a)};e.prototype.tK=function(){return this.Es(this.U)};e.prototype.Es=function(a){var c=new d.Ka(this.U.description);this.us(c,a);return this.nS(c)};e.prototype.sK=function(){var a=new b(this.U,this.Da,this.Pi,this.Cj,this.mp,this.Yb);return d.wi.local().$(a,this.Pi,this.Yb).next()};e.prototype.qK=
function(){var a=new d.Ka(this.U.description);if(0>=this.Da){if(0==this.Da)a.Wc(this.U,!1);else{var c=new d.Vj;this.U.Fp(c);c.P(this.Da,this.Da);a.Wc(c,!1)}return a}a.Wc(this.U,!1);this.U=a;return this.jB(a,0)};e.prototype.jB=function(a,c){this.Ss();for(var b=new d.Ka(a.description),f=new d.b,h=new d.b,l=new d.b,g=new d.b,w=new d.b,t=new d.b,m=new d.b,v=new d.b,C=a.Ha(c),p=a.Ea(c),y=0,z=a.Ha(c);y<z;y++){a.w(p+y,h);a.w(p+(y+1)%C,g);a.w(p+(y+2)%C,t);m.pc(g,h);if(0==m.length())throw d.g.wa();m.tt();
m.normalize();m.scale(this.hb);f.add(m,h);l.add(m,g);0==y?b.Nr(f):b.Lm(f);b.Lm(l);v.pc(t,g);if(0==v.length())throw d.g.wa();v.tt();v.normalize();v.scale(this.hb);w.add(v,g);this.NA(b,g,l,w,!1)}return e.Id(b)};e.prototype.kB=function(a,c,b){this.Ss();if(1>a.Ha(c))return null;if(this.pD(a,c)&&0<this.Da){b=new d.Va;a.Sd(a.Ea(c),b);var e=new d.i;a.Ti(c,e);b.ic(e.Af());return this.Es(b)}e=new d.Xa(a.description);if(a.Oo(c))this.sm(a,c,e,b,1),this.sm(a,c,e,b,-1);else{var f=new d.Xa(a.description);f.Zj(a,
c,!1);f.ys(a,c,0,a.ct(c),!1);this.sm(f,0,e,b,1)}return this.rm(e)};e.prototype.rm=function(a){return d.Of.Qj(a,this.jr,!0,!0,this.Yb)};e.prototype.pB=function(){if(0==this.Cj)return this.mp;var a=1-this.Cj*Math.abs(this.wt),c;-1>a?c=4:c=2*Math.PI/Math.acos(a)+.5;4>c?c=4:c>this.mp&&(c=this.mp);return d.I.truncate(c)};e.prototype.NA=function(a,c,b,e,f){this.Ss();var h=new d.b;h.pc(b,c);h.scale(this.wt);var l=new d.b;l.pc(e,c);l.scale(this.wt);h=Math.atan2(h.y,h.x)/this.sx;0>h&&(h=this.sd.length+h);
h=this.sd.length-h;l=Math.atan2(l.y,l.x)/this.sx;0>l&&(l=this.sd.length+l);l=this.sd.length-l;l<h&&(l+=this.sd.length);var k=d.I.truncate(l),l=d.I.truncate(Math.ceil(h)),h=new d.b;h.J(this.sd[l%this.sd.length]);h.Fr(this.hb,c);var n=10*this.ka;h.sub(b);h.length()<n&&(l+=1);h.J(this.sd[k%this.sd.length]);h.Fr(this.hb,c);h.sub(e);h.length()<n&&--k;b=k-l;b++;k=0;for(l%=this.sd.length;k<b;k++,l=(l+1)%this.sd.length)h.J(this.sd[l]),h.Fr(this.hb,c),a.Lm(h);f&&a.Lm(e)};e.prototype.sm=function(a,c,b,e,f){var h=
new d.fd,l=h.QJ(a,c);h.xo(this.vx,!1,!1);if(2>h.F(l)){if(0>f)return 1;f=a;h=new d.Va;f.Sd(f.Ea(c),h);this.us(b,h);return 1}var k=h.Fa(h.Cb(h.Vb(l))),n=new d.Bg;n.Nn(-k.x,-k.y);h.Oe(n);if(e&&(this.MM(h,l,f),2>h.F(l))){if(0>f)return 1;f=a;h=new d.Va;f.Sd(f.Ea(c),h);this.us(b,h);return 1}this.Jd.length=0;var u=h.Vb(l);c=h.Cb(u);var m=1==f?h.Ua(c):h.X(c);a=1==f?h.X(c):h.Ua(c);var C=!0;e=new d.b;for(var l=new d.b,p=new d.b,y=new d.b,z=new d.b,B=new d.b,D=new d.b,E=new d.b,G=new d.b,I=new d.b,H=this.hb,
u=h.Ha(u),M=0;M<u;M++)h.w(a,l),C&&(h.w(c,e),h.w(m,p),E.pc(e,p),E.normalize(),I.zD(E),I.scale(H),y.add(I,e)),D.pc(l,e),D.normalize(),G.zD(D),G.scale(H),z.add(e,G),m=E.Ai(D),C=E.ml(D),0>m||0>C&&0==m?this.Jd.push(g.Ks(y,z,e,2,this.Jd.length+1,this.Jd.length-1)):y.ub(z)||(this.Jd.push(g.Oa(y,e,this.Jd.length+1,this.Jd.length-1,"dummy")),this.Jd.push(g.Oa(e,z,this.Jd.length+1,this.Jd.length-1,"dummy"))),B.add(l,G),this.Jd.push(g.Ks(z,B,e,1,this.Jd.length+1,this.Jd.length-1)),y.J(B),I.J(G),p.J(e),e.J(l),
E.J(D),m=c,c=a,C=!1,a=1==f?h.X(c):h.Ua(c);this.Jd[this.Jd.length-1].Rg=0;this.Jd[0].Ug=this.Jd.length-1;this.UQ(b);n.Nn(k.x,k.y);b.ZA(n,b.ea()-1);return 1};e.prototype.UQ=function(a){for(var c=this.aL(),b=!0,e=c+1,f=c;e!=c;f=e){var h=this.Jd[f],e=-1!=h.Rg?h.Rg:(f+1)%this.Jd.length;0!=h.qn&&(b&&a.Nr(h.Fl),2==h.qn?this.NA(a,h.Lt,h.Fl,h.Ql,!0):a.Lm(h.Ql),b=!1)}};e.prototype.aL=function(){null==this.Vq&&(this.Vq=[null,null,null,null,null,null,null,null,null]);for(var a=0,c=0,b=this.Jd.length;c<b;){var e=
this.Jd[c];if(0!=(e.qn&3)){a=c;break}c=e.Rg}b=a+1;for(c=a;b!=a;c=b){for(var e=this.Jd[c],b=e.Rg,f=1,g=null;b!=c;){g=this.Jd[b];if(0!=(g.qn&3))break;b=g.Rg;f++}1!=f&&1==(e.qn&g.qn)&&(null==this.Wq&&(this.Wq=new d.yb,this.Tt=new d.yb),this.Wq.ed(e.Fl),this.Wq.vd(e.Ql),this.Tt.ed(g.Fl),this.Tt.vd(g.Ql),1==this.Wq.Ga(this.Tt,this.Vq,null,null,this.jr)&&(e.Ql.J(this.Vq[0]),g.Fl.J(this.Vq[0]),e.Rg=b,g.Ug=c))}return a};e.prototype.rt=function(a,c,b){var e=new d.b;e.pc(b,a);b=e.length();b=this.hb*this.hb-
b*b*.25;if(0<b){b=Math.sqrt(b);e.normalize();e.Kp();var f=new d.b;f.pc(c,a);if(f.ml(e)+b>=this.hb)return!0}return!1};e.prototype.MM=function(a,c,b){for(var e=0;1>e;e++){var f=!1,h=a.Vb(c),l=a.Ha(h);if(0==l)break;var k=l;if(3>l)break;!a.vc(h)&&(k=l-1);for(var h=a.Cb(h),l=0<b?a.Ua(h):a.X(h),g=0<b?a.X(h):a.Ua(h),m=l,v=!0,C=new d.b,p=new d.b,y=new d.b,z=new d.b,B=new d.b,D=d.b.Oa(0,0),E=new d.b,G=new d.b,I=new d.b,H=new d.b,M=this.hb,N=0,F=0;F<k;){a.w(g,p);v&&(a.w(h,C),a.w(l,y),m=l);G.pc(C,y);G.normalize();
E.pc(p,C);E.normalize();if(m==g)break;var J=G.Ai(E),K=G.ml(E),S=!0;0>J||0>K&&0==J||!this.rt(y,C,p)||(D.J(p),S=!1,++N,f=!0);if(S){if(0<N)for(;;){J=0<b?a.Ua(m):a.X(m);if(J==h)break;a.w(J,z);if(this.rt(z,y,D))y.J(z),m=J,S=!1,++N;else{J!=g&&this.rt(z,y,p)&&this.rt(z,C,p)&&(y.J(z),m=J,S=!1,++N);break}}if(!S)continue;if(0<N){m=0<b?a.Ua(l):a.X(l);for(v=1;v<N;v++)S=0<b?a.Ua(m):a.X(m),a.vf(m,!0),m=S;I.pc(C,y);N=I.length();N=M*M-N*N*.25;N=Math.sqrt(N);M-N>.5*this.Cj?(B.add(y,C),B.scale(.5),I.normalize(),I.Kp(),
H.J(I),H.scale(M-N),B.add(H),a.Yi(l,B)):a.vf(l,!0);N=0}y.J(C);m=h}C.J(p);l=h;h=g;g=0<b?a.X(h):a.Ua(h);F++;v=!1}if(0<N){m=0<b?a.Ua(l):a.X(l);for(v=1;v<N;v++)S=0<b?a.Ua(m):a.X(m),a.vf(m,!0),m=S;B.add(y,C);B.scale(.5);I.pc(C,y);N=I.length();N=M*M-N*N*.25;N=Math.sqrt(N);I.normalize();I.Kp();H.J(I);H.scale(M-N);B.add(H);a.Yi(l,B)}a.xo(this.vx,!1,!1);if(!f)break}};e.prototype.pD=function(a,c){if(1==a.Ha(c))return!0;var b=new d.i;a.Ti(c,b);return Math.max(b.aa(),b.ba())<.5*this.Cj?!0:!1};e.prototype.oD=
function(a){var c=new d.i;a.o(c);return Math.max(c.aa(),c.ba())<.5*this.Cj?!0:!1};e.prototype.SQ=function(a){a=d.Sz.local().$(a,.25*this.Cj,!1,this.Yb);for(var c=0,b=0,e=a.ea();b<e;b++)c=Math.max(a.Ha(b),c);if(32>c)return this.Yo=!1,a;this.Yo=!0;return d.Of.Qj(a,this.jr,!1,!0,this.Yb)};e.prototype.us=function(a,c){var b=c.w();if(null!=this.sd&&0!==this.sd.length){var e=new d.b;e.J(this.sd[0]);e.Fr(this.hb,b);a.Nr(e);for(var f=1,h=this.sd.length;f<h;f++)e.J(this.sd[f]),e.Fr(this.hb,b),a.Lm(e)}else for(var f=
this.pB(),e=d.I.truncate((f+3)/4),f=.5*Math.PI/e,h=Math.cos(f),l=Math.sin(f),g=new d.b,t=3;0<=t;t--)switch(g.ma(0,this.hb),t){case 0:for(f=0;f<e;f++)a.wj(g.x+b.x,g.y+b.y),g.Er(h,l);break;case 1:for(f=0;f<e;f++)a.wj(-g.y+b.x,g.x+b.y),g.Er(h,l);break;case 2:for(f=0;f<e;f++)a.wj(-g.x+b.x,-g.y+b.y),g.Er(h,l);break;default:for(a.Uy(g.y+b.x,-g.x+b.y),f=1;f<e;f++)g.Er(h,l),a.wj(g.y+b.x,-g.x+b.y)}};e.Id=function(a){a.hg(1,0);return a};e.prototype.nS=function(a){a.hg(2,this.ka);a.hl();return a};return e}();
d.UG=e})(p||(p={}));(function(d){var m=function(){function g(b){this.Qb=b;this.a=new d.fd;this.vg=new d.ga(0)}g.prototype.po=function(b,a,c){switch(a){case 0:if(b.v<c&&b.B<=c)break;else return b.v>=c?1:-1;case 1:if(b.C<c&&b.G<=c)break;else return b.C>=c?1:-1;case 2:if(b.v>=c&&b.B>c)break;else return b.B<=c?1:-1;case 3:if(!(b.C>=c&&b.G>c))return b.G<=c?1:-1}return 0};g.prototype.cL=function(b,a){return 1736==b.D()?this.dL(b,a):this.eL(b)};g.prototype.dL=function(b,a){if(0==this.Qb.aa()||0==this.Qb.ba())return b.Pa();
var c=new d.i;b.dd(c);this.U=this.a.Eb(b);var e=new d.i,f=new d.i,h=new d.b,l=new d.b,k=[0,0,0,0,0,0,0,0,0],n=[0,0,0,0,0,0,0,0,0];new d.Ag;var g=new d.yb,q=new d.ga(0);q.xb(Math.min(100,b.F()));for(var r=!1,w=0;!r&&4>w;w++){var t=!1,m=0!=(w&1),v=0;switch(w){case 0:v=this.Qb.v;t=c.v<=v&&c.B>=v;break;case 1:v=this.Qb.C;t=c.C<=v&&c.G>=v;break;case 2:v=this.Qb.B;t=c.v<=v&&c.B>=v;break;case 3:v=this.Qb.G,t=c.C<=v&&c.G>=v}if(t)for(r=!0,t=this.a.Vb(this.U);-1!=t;){var C=-1,p=-1,y=this.a.Cb(t),z=y;do{var B=
this.a.cc(z);null==B&&(B=g,this.a.w(z,h),B.ed(h),this.a.w(this.a.X(z),l),B.vd(l));B.o(e);var D=this.po(e,w,v),E=0,G=-1;if(-1==D){B=B.nt(m,v,k,n);0<B?E=this.a.Mr(z,n,B):E=0;for(var E=E+1,I=z,H=this.a.X(I),B=0;B<E;B++){this.a.w(I,h);this.a.w(H,l);G=this.a.cc(I);null==G&&(G=g,G.ed(h),G.vd(l));G.o(f);G=this.po(f,w,v);if(-1==G){if(m)G=Math.abs(h.y-v),M=Math.abs(l.y-v),G<M?(h.y=v,this.a.Yi(I,h)):(l.y=v,this.a.Yi(H,l));else{var G=Math.abs(h.x-v),M=Math.abs(l.x-v);G<M?(h.x=v,this.a.Yi(I,h)):(l.x=v,this.a.Yi(H,
l))}G=this.a.cc(I);null==G&&(G=g,G.ed(h),G.vd(l));G.o(f);G=this.po(f,w,v)}M=C;C=G;-1==p&&(p=C);if(0!=M||1!=C)1==M&&0==C||0!=M||0!=C||q.add(I);1==C&&(r=!1);G=I=H;H=this.a.X(H)}}if(0==E){M=C;C=D;-1==p&&(p=C);if(0!=M||1!=C)1==M&&0==C||0!=M||0!=C||q.add(z);1==C&&(r=!1);G=this.a.X(z)}z=G}while(z!=y);0==p&&0==C&&q.add(y);B=0;for(C=q.size;B<C;B++)p=q.get(B),this.a.vf(p,!1);q.clear(!1);t=3>this.a.Ha(t)?this.a.Cr(t):this.a.bc(t)}}if(r)return b.Pa();this.AR();0<a&&this.gM(a);return this.a.hf(this.U)};g.prototype.eL=
function(b){var a=new d.i,c=new d.i,e=[0,0,0,0,0,0,0,0,0],f=[0,0,0,0,0,0,0,0,0],h=new d.Ag,l=b,k=new d.i;b.dd(k);for(var n=0;4>n;n++){var g=!1,q=0!=(n&1),r=0;switch(n){case 0:r=this.Qb.v;g=k.v<=r&&k.B>=r;break;case 1:r=this.Qb.C;g=k.C<=r&&k.G>=r;break;case 2:r=this.Qb.B;g=k.v<=r&&k.B>=r;break;case 3:r=this.Qb.G,g=k.C<=r&&k.G>=r}if(g){g=l;l=b.Pa();g=g.Ca();g.Lk();for(var w,t=new d.b;g.kb();)for(var m,v=!0;g.La();){var p=g.ia();p.o(a);var A=this.po(a,n,r);if(-1==A){if(A=p.nt(q,r,e,f),0<A){var y=0;w=
p.Mb();for(var z=0;z<=A;z++)if(m=z<A?f[z]:1,y!=m){p.Bi(y,m,h);var B=h.get();B.ed(w);z<A&&(q?(t.x=e[z],t.y=r):(t.x=r,t.y=e[z]),B.vd(t));B.o(c);var D=this.po(c,n,r);if(-1==D){w=B.Mb();y=B.oc();if(q)D=Math.abs(w.y-r),E=Math.abs(y.y-r),D<E?(w.y=r,B.ed(w)):(y.y=r,B.vd(y));else{var D=Math.abs(w.x-r),E=Math.abs(y.x-r);D<E?(w.x=r,B.ed(w)):(y.x=r,B.vd(y))}B.o(c);D=this.po(c,n,r)}w=B.oc();y=m;m=D;1==m?(l.Bc(B,v),v=!1):v=!0}}}else m=A,1==m?(l.Bc(p,v),v=!1):v=!0}}}return l};g.prototype.AR=function(){this.vn=
-1;this.Nu(!1,this.Qb.v);this.Nu(!1,this.Qb.B);this.Nu(!0,this.Qb.C);this.Nu(!0,this.Qb.G);this.vg.resize(0);this.vg.xb(100);this.vn=this.a.re();for(var b=new d.b,a=this.a.Vb(this.U);-1!=a;a=this.a.bc(a))for(var c=this.a.Cb(a),e=0,f=this.a.Ha(a);e<f;e++,c=this.a.X(c))if(this.a.w(c,b),this.Qb.v==b.x||this.Qb.B==b.x||this.Qb.C==b.y||this.Qb.G==b.y)this.a.lb(c,this.vn,this.vg.size),this.vg.add(c);this.zu(!1,this.Qb.v);this.zu(!1,this.Qb.B);this.zu(!0,this.Qb.C);this.zu(!0,this.Qb.G);this.WM()};g.prototype.gM=
function(b){for(var a=new d.b,c=new d.b,e=d.I.Lh(2048,0),f=this.a.Vb(this.U);-1!=f;f=this.a.bc(f)){var h=this.a.Cb(f),l=h;do{var k=this.a.X(l);this.a.w(l,a);var n=-1;a.x==this.Qb.v?(this.a.w(k,c),c.x==this.Qb.v&&(n=1)):a.x==this.Qb.B&&(this.a.w(k,c),c.x==this.Qb.B&&(n=1));a.y==this.Qb.C?(this.a.w(k,c),c.y==this.Qb.C&&(n=0)):a.y==this.Qb.G&&(this.a.w(k,c),c.y==this.Qb.G&&(n=0));if(-1!=n&&(n=d.b.Fb(a,c),n=d.I.truncate(Math.min(Math.ceil(n/b),2048)),!(1>=n))){for(var g=1;g<n;g++)e[g-1]=1*g/n;this.a.Mr(l,
e,n-1)}l=k}while(l!=h)}};g.prototype.Nu=function(b,a){var c=this.a.re(),e=new d.b,f=new d.ga(0);f.xb(100);for(var h=this.a.Vb(this.U);-1!=h;h=this.a.bc(h))for(var l=this.a.Cb(h),k=0,n=this.a.Ha(h);k<n;k++){var g=this.a.X(l);this.a.w(l,e);if(b?e.y==a:e.x==a)if(this.a.w(g,e),b?e.y==a:e.x==a)1!=this.a.Ra(l,c)&&(f.add(l),this.a.lb(l,c,1)),1!=this.a.Ra(g,c)&&(f.add(g),this.a.lb(g,c,1));l=g}this.a.bf(c);if(!(3>f.size)){var q=this;f.xd(0,f.size,function(a,c){return q.kj(a,c)});c=new d.b;h=new d.b;l=new d.b;
h.Eh();for(var r=-1,k=new d.ga(0),n=new d.ga(0),g=this.a.re(),w=this.a.re(),t=0,m=f.size;t<m;t++){var v=f.get(t);this.a.w(v,e);if(!e.ub(h)){if(-1!=r){for(var p=r;p<t;p++){var r=f.get(p),A=this.a.X(r),v=this.a.Ua(r),y=!1;0>this.kj(r,A)&&(this.a.w(A,c),b?c.y==a:c.x==a)&&(k.add(r),y=!0,this.a.lb(r,w,1));0>this.kj(r,v)&&(this.a.w(v,c),b?c.y==a:c.x==a)&&(y||k.add(r),this.a.lb(r,g,1))}p=0;for(y=k.size;p<y;p++){r=k.get(p);v=this.a.Ra(r,g);A=this.a.Ra(r,w);if(1==v){v=this.a.Ua(r);this.a.w(v,l);var z=[0];
z[0]=0;if(!l.ub(e)){var B=d.b.Fb(h,l);z[0]=d.b.Fb(l,e)/B;0==z[0]?z[0]=2.220446049250313E-16:1==z[0]&&(z[0]=.9999999999999998);this.a.Mr(v,z,1);v=this.a.Ua(r);this.a.Yi(v,e);n.add(v);this.a.lb(v,g,1);this.a.lb(v,w,-1)}}1==A&&(A=this.a.X(r),this.a.w(A,l),z=[0],z[0]=0,l.ub(e)||(B=d.b.Fb(h,l),z[0]=d.b.Fb(h,e)/B,0==z[0]?z[0]=2.220446049250313E-16:1==z[0]&&(z[0]=.9999999999999998),this.a.Mr(r,z,1),v=this.a.X(r),this.a.Yi(v,e),n.add(v),this.a.lb(v,g,-1),this.a.lb(v,w,1)))}r=k;k=n;n=r;n.clear(!1)}r=t;h.J(e)}}this.a.bf(g);
this.a.bf(w)}};g.prototype.zu=function(b,a){var c=new d.b,e=new d.ga(0);e.xb(100);for(var f=this.a.re(),h=0,l=this.vg.size;h<l;h++){var k=this.vg.get(h);if(-1!=k){var n=this.a.X(k);this.a.w(k,c);if(b?c.y==a:c.x==a)if(this.a.w(n,c),b?c.y==a:c.x==a)-2!=this.a.Ra(k,f)&&(e.add(k),this.a.lb(k,f,-2)),-2!=this.a.Ra(n,f)&&(e.add(n),this.a.lb(n,f,-2))}}if(0!=e.size){var g=this;e.xd(0,e.size,function(a,c){return g.kj(a,c)});h=0;for(l=e.size;h<l;h++){var q=e.get(h);this.a.lb(q,f,h)}k=new d.b;n=new d.b;n.Eh();
for(var r=-1,h=0,l=e.size;h<l;h++)if(q=e.get(h),-1!=q&&(this.a.w(q,c),!c.ub(n))){if(-1!=r)for(;;){for(var q=!1,w=1<h-r?h-1:h,t=r;t<w;t++){var m=e.get(t);if(-1!=m){var v=-1,p=this.a.X(m);0>this.kj(m,p)&&(this.a.w(p,k),b?k.y==a:k.x==a)&&(v=p);var p=-1,A=this.a.Ua(m);0>this.kj(m,A)&&(this.a.w(A,k),b?k.y==a:k.x==a)&&(p=A);if(-1!=v&&-1!=p)this.no(m,e,f),this.a.vf(m,!1),this.no(v,e,f),this.a.vf(v,!1),q=!0;else if(-1!=v||-1!=p){for(A=t+1;A<h;A++){var y=e.get(A);if(-1!=y){var z=this.a.X(y),B=-1;0>this.kj(y,
z)&&(this.a.w(z,k),b?k.y==a:k.x==a)&&(B=z);var z=this.a.Ua(y),D=-1;0>this.kj(y,z)&&(this.a.w(z,k),b?k.y==a:k.x==a)&&(D=z);if(-1!=B&&-1!=D){this.no(y,e,f);this.a.vf(y,!1);this.no(B,e,f);this.a.vf(B,!1);q=!0;break}if(-1!=v&&-1!=D){this.dF(e,m,v,y,D,f);q=!0;break}else if(-1!=p&&-1!=B){this.dF(e,y,B,m,p,f);q=!0;break}}}if(q)break}}}if(!q)break}r=h;n.J(c)}}this.a.bf(f)};g.prototype.no=function(b,a,c){c=this.a.Ra(b,c);a.set(c,-1);c=this.a.Ra(b,this.vn);this.vg.set(c,-1);a=this.a.rd(b);-1!=a&&this.a.Cb(a)==
b&&(this.a.Dh(a,-1),this.a.Wi(a,-1))};g.prototype.dF=function(b,a,c,e,f,h){this.a.Sc(a,e);this.a.Tc(e,a);this.a.Tc(c,f);this.a.Sc(f,c);this.no(e,b,h);this.a.Ui(e,!1);this.no(f,b,h);this.a.Ui(f,!0)};g.prototype.WM=function(){for(var b=0,a=this.vg.size;b<a;b++){var c=this.vg.get(b);-1!=c&&this.a.im(c,-1)}for(var e=0,f=0,h=this.a.Vb(this.U);-1!=h;){var d=this.a.Cb(h);if(-1==d||h!=this.a.rd(d)){var k=h,h=this.a.bc(h);this.a.Dh(k,-1);this.a.yu(k)}else{c=d;k=0;do this.a.im(c,h),k++,c=this.a.X(c);while(c!=
d);2>=k?(c=this.a.Ra(d,this.vn),this.vg.set(c,-1),d=this.a.vf(d,!1),2==k&&(c=this.a.Ra(d,this.vn),this.vg.set(c,-1),this.a.vf(d,!1)),k=h,h=this.a.bc(h),this.a.Dh(k,-1),this.a.yu(k)):(this.a.Jr(h,!1),this.a.Wi(h,this.a.Ua(d)),this.a.hm(h,k),f+=k,e++,h=this.a.bc(h))}}b=0;for(a=this.vg.size;b<a;b++)if(c=this.vg.get(b),-1!=c&&(h=this.a.rd(c),-1==h)){h=this.a.Cf(this.U,-1);k=0;d=c;do this.a.im(c,h),k++,c=this.a.X(c);while(c!=d);2>=k?(c=this.a.Ra(d,this.vn),this.vg.set(c,-1),d=this.a.vf(d,!1),2==k&&(c=
this.a.Ra(d,this.vn),0<=c&&this.vg.set(c,-1),this.a.vf(d,!1)),k=h,this.a.Dh(k,-1),this.a.yu(k)):(this.a.Gn(h,!0),this.a.hm(h,k),this.a.Dh(h,d),this.a.Wi(h,this.a.Ua(d)),this.a.Jr(h,!1),f+=k,e++)}this.a.gm(this.U,e);this.a.Pk(this.U,f);b=0;for(a=this.a.$c;-1!=a;a=this.a.we(a))b+=this.a.F(a);this.a.ZF(b)};g.Xk=function(b,a,c){return(new g(a)).cL(b,c)};g.clip=function(b,a,c,e){if(b.s())return b;if(a.s())return b.Pa();c=b.D();if(33==c)return e=b.w(),a.contains(e)?b:b.Pa();if(197==c)return e=new d.i,b.o(e),
e.Ga(a)?(a=new d.Vj,b.copyTo(a),a.Cu(e),a):b.Pa();var f=new d.i;b.dd(f);if(a.contains(f))return b;if(!a.jc(f))return b.Pa();f=b.pb;if(null!=f&&(f=f.hi,null!=f)){f=f.Dn(a);if(1==f){if(1736!=c)throw d.g.wa();b=new d.Ka(b.description);b.ws(a);return b}if(0==f)return b.Pa()}switch(c){case 550:c=null;for(var f=b.F(),h=b.mc(0),l=0,k=0;k<f;k++)e=new d.b,h.ec(2*k,e),a.contains(e)||(0==l&&(c=b.Pa()),l<k&&c.Pd(b,l,k),l=k+1);0<l&&c.Pd(b,l,f);return 0==l?b:c;case 1736:case 1607:return g.Xk(b,a,e);default:throw d.g.wa();
}};g.prototype.kj=function(b,a){var c=new d.b;this.a.w(b,c);var e=new d.b;this.a.w(a,e);return c.compare(e)};return g}();d.Ed=m})(p||(p={}));(function(d){var m=new d.b,g=function(){function a(a,b,f,h,l){this.Ml=new d.b;this.ln=new d.b;this.Ck=new d.b;this.a=a;this.Px=f;this.bn=h;this.Ml=b;this.vk=l;this.ln.Eh();this.Ck.Eh()}a.prototype.sB=function(a){this.a.w(a,this.ln);a=d.I.truncate((this.ln.x-this.Ml.x)*this.bn+.5);var c=d.I.truncate((this.ln.y-this.Ml.y)*this.bn+.5);return b.XC(a,c)};a.prototype.vw=
function(a){return this.a.Ra(a,this.vk)};return a}();d.wT=function(){return function(){}}();var b=function(){function a(){this.Ml=new d.b;this.Zo=[0,0,0,0];this.Kq=[0,0,0,0];this.en=this.vk=-1}a.zM=function(c,b){var e=new a;e.a=c;e.ka=b;e.Px=b*b;e.Kt=2*b;e.bn=1/e.Kt;return e.fL()};a.Vw=function(a,b,f,h,d){a-=f;b-=h;return a*a+b*b<=d};a.XC=function(a,b){return d.I.kg(b,d.I.kg(a))};a.prototype.hL=function(c,b){this.a.uc(c,m);for(var e=(m.y-this.Ml.y)*this.bn,h=d.I.truncate((m.x-this.Ml.x)*this.bn),
l=d.I.truncate(e),k=e=0;1>=k;k+=1)for(var n=0;1>=n;n+=1){var g=a.XC(h+k,l+n),q=this.uk.DN(g);-1!=q&&(this.Zo[e]=q,this.Kq[e]=g,e++)}for(h=e-1;1<=h;h--)for(q=this.Zo[h],l=h-1;0<=l;l--)if(q==this.Zo[l]){this.Kq[l]=-1;e--;h!=e&&(this.Kq[h]=this.Kq[e],this.Zo[h]=this.Zo[e]);break}for(l=0;l<e;l++)this.iL(c,this.Kq[l],m,this.Zo[l],b)};a.prototype.iL=function(c,b,f,h,l){for(var e=new d.b;-1!=h;h=this.uk.SN(h)){var n=this.uk.da(h);c==n||-1!=b&&this.a.Ra(n,this.vk)!=b||(this.a.uc(n,e),a.Vw(f.x,f.y,e.x,e.y,
this.Px)&&l.add(h))}};a.prototype.Tl=function(a,b,f){var c=this.a.Ra(a,this.en),e=this.a.Ra(b,this.en);-1==c&&(c=this.nd.jh(),this.nd.addElement(c,a),this.a.lb(a,this.en,c));-1==e?this.nd.addElement(c,b):this.nd.Qv(c,e);this.a.lb(b,this.en,-2);b=this.aQ(a,b);f&&(f=this.St.sB(a),this.a.lb(a,this.vk,f));return b};a.$P=function(c,b,f){c.lc(b);f=c;var e=new d.b;a.HH(c.w(),b.w(),e);f.ic(e)};a.HH=function(a,b,f){var c=a.x;a.x!=b.x&&(c=(1*a.x+1*b.x)/2);var e=a.y;a.y!=b.y&&(e=(1*a.y+1*b.y)/2);f.ma(c,e)};
a.prototype.aQ=function(a,b){var c=new d.b;this.a.w(a,c);var e=new d.b;this.a.w(b,e);var l=this.a.RC(a),k=this.a.RC(b),n=l+k,g=0,q=c.x;c.x!=e.x&&(q=(c.x*l+e.x*k)/n,g++);var r=c.y;c.y!=e.y&&(r=(c.y*l+e.y*k)/n,g++);0<g&&this.a.ic(a,q,r);this.a.pS(a,n);return 0!=g};a.prototype.fL=function(){var a=this.a.pd,b=this.a.wC();this.Ml=b.yw();b=Math.max(b.ba(),b.aa())/2147483646;this.Kt<b&&(this.Kt=b,this.bn=1/this.Kt);this.nd=new d.Ur;this.nd.Dr(d.I.truncate(this.a.pd/3+1));this.nd.$l(d.I.truncate(this.a.pd/
3+1));this.vk=this.a.re();this.en=this.a.re();this.St=new g(this.a,this.Ml,this.Px,this.bn,this.vk);this.uk=new d.AH(d.I.truncate(4*a/3),this.St);this.uk.wR(this.a.pd);a=!1;for(b=this.a.$c;-1!=b;b=this.a.we(b))for(var f=this.a.Vb(b);-1!=f;f=this.a.bc(f))for(var h=this.a.Cb(f),l=0,k=this.a.Ha(f);l<k;l++){var n=this.St.sB(h);this.a.lb(h,this.vk,n);this.uk.addElement(h,n);h=this.a.X(h)}var u=new d.ga(0);u.xb(10);for(b=this.a.$c;-1!=b;b=this.a.we(b))for(f=this.a.Vb(b);-1!=f;f=this.a.bc(f))for(h=this.a.Cb(f),
l=0,k=this.a.Ha(f);l<k;l++){if(-2!=this.a.Ra(h,this.en))for(n=this.a.Ra(h,this.vk),this.uk.Jc(h,n);;){this.hL(h,u);if(0==u.size)break;for(var n=!1,q=0,r=u.size;q<r;q++){var w=u.get(q),t=this.uk.da(w);this.uk.kd(w);n=this.Tl(h,t,q+1==r)||n}a=a||n;u.clear(!1);if(!n)break}h=this.a.X(h)}a&&this.ZJ();this.St=this.uk=null;this.a.bf(this.vk);this.a.bf(this.en);return a};a.prototype.ZJ=function(){for(var a=new d.b,b=this.nd.Wd;-1!=b;b=this.nd.Cw(b)){var f=this.nd.gc(b);this.a.w(this.nd.da(f),a);for(f=this.nd.bb(f);-1!=
f;f=this.nd.bb(f))this.a.Yi(this.nd.da(f),a)}};return a}();d.Sr=b})(p||(p={}));(function(d){var m=Math.PI,g=2*Math.PI,b=Math.PI/2,a=function(){function a(){}a.yL=function(c,b){var e=new a;e.x=c;e.y=b;e.type=0;e.mh=0;return e};a.um=function(c){var b=new a;b.x=c.x;b.y=c.y;b.type=0;b.mh=0;return b};a.xL=function(c){var b=new a;b.x=c.x;b.y=c.y;b.type=c.type;b.mh=c.mh;return b};a.Ad=function(c,b,e){var f=new a;f.x=c.x+b*Math.cos(e);f.y=c.y+b*Math.sin(e);f.type=c.type;f.mh=c.mh;return f};a.Js=function(c,
b){var e=new a;e.x=.5*(c.x+b.x);e.y=.5*(c.y+b.y);e.type=c.type;e.mh=c.mh;return e};a.LB=function(c,b){var e=new a;e.x=c.x+.001*(b.x-c.x);e.y=c.y+.001*(b.y-c.y);e.type=c.type;e.mh=c.mh;return e};return a}(),c=function(){return function(){}}();(function(a){a[a.Round=0]="Round";a[a.Bevel=1]="Bevel";a[a.Miter=2]="Miter";a[a.Square=3]="Square"})(d.EH||(d.EH={}));var e=function(){function e(a){this.Kx=this.Ib=this.dg=null;this.oe=a}e.$=function(a,c,b,f,g,q){if(null==a)throw d.g.N();if(1>a.fb())throw d.g.N();
if(0==c||a.s())return a;q=new e(q);q.$m=a;q.Da=c;q.ka=g;q.bi=b;q.Dx=f;return q.hv()};e.prototype.hJ=function(){var a=this.$m,c=a.Mb(),b=a.oc(),e=new d.b;e.pc(b,c);e.normalize();e.tt();e.scale(this.Da);c.add(e);b.add(e);e=a.Pa();a.ed(c);a.vd(b);return e};e.prototype.gJ=function(){var a=this.$m;if(0<this.Da&&2!=this.bi){var c=new d.Ka;c.Wc(a,!1);this.$m=c;return this.hv()}a=new d.Vj(a.R);a.P(this.Da,this.Da);return a};e.prototype.rF=function(a,c,b,e){return(c.x-a.x)*(e.x-b.x)+(c.y-a.y)*(e.y-b.y)};e.prototype.Ub=
function(c,e){if(void 0===e)this.Ib.push(c),this.Xe++;else if(0==this.Xe)this.Ub(c);else{var f=this.eu,d,h;d=this.dg[0==e?f-1:e-1];h=this.dg[e];var l=this.rF(d,h,this.Ib[this.Xe-1],c);0<l?this.Ub(c):0>l&&(0<this.rF(d,h,h,this.Ib[this.Xe-1])?(h=this.dg[0==e?f-2:1==e?f-1:e-2],f=a.Ad(d,this.Da,Math.atan2(d.y-h.y,d.x-h.x)-b),this.Ib[this.Xe-1]=f,1==this.bi||2==this.bi?(f=a.Js(f,d),this.Ub(f),f=a.Ad(d,this.Da,this.vt+b),d=a.Js(f,d),d.type|=256,this.Ub(d)):(f=a.Ad(d,this.Da,this.vt+b),f.type|=256),this.Ub(f),
this.Ub(c,e)):(f=a.Ad(h,this.Da,this.vt+b),this.Ub(f),1==this.bi||2==this.bi?(f=a.Js(f,h),this.Ub(f),f=a.Ad(h,this.Da,this.gx-b),d=a.Js(f,h),d.type|=256,this.Ub(d)):(f=a.Ad(h,this.Da,this.gx-b),f.type|=256),this.Ub(f)))}};e.prototype.mB=function(){var c,e,f,n,u,q,r=this.eu;this.Xe=0;var w=.5*this.ka,t=0,x=0;for(c=0;c<r;c++){n=this.dg[c];u=0==c?this.dg[r-1]:this.dg[c-1];q=c==r-1?this.dg[0]:this.dg[c+1];var v=u.x-n.x,p=u.y-n.y,A=q.x-n.x,y=q.y-n.y;e=Math.atan2(p,v);f=Math.atan2(y,A);this.vt=e;this.gx=
f;0==c&&(t=e,x=f);v=v*y-A*p;p=f;f<e&&(f+=g);if(0<v*this.Da)1==this.bi||2==this.bi?(e=a.Ad(n,this.Da,e+b),this.Ub(e),e=a.LB(n,e),this.Ub(e),e=a.Ad(n,this.Da,f-b),n=a.LB(n,e),n.type|=256,this.Ub(n),this.Ub(e)):(v=.5*(f-e),v=this.Da/Math.abs(Math.sin(v)),e=a.Ad(n,v,.5*(e+f)),this.Ub(e,c));else if(0!=(n.type&512)){v=1-w/Math.abs(this.Da);u=1;q=0>this.Da?-m:m;-1<v&&1>v&&(p=2*Math.acos(v),.017453292519943295>p&&(p=.017453292519943295),u=d.I.truncate(m/p+1.5),1<u&&(q/=u));p=e+b;e=a.Ad(n,this.Da,p);0==c&&
(e.type|=1024);this.Ub(e,c);v=this.Da/Math.cos(q/2);p+=q/2;e=a.Ad(n,v,p);e.type|=1024;for(this.Ub(e);0<--u;)p+=q,e=a.Ad(n,v,p),e.type|=1024,this.Ub(e);e=a.Ad(n,this.Da,f-b);e.type|=1024;this.Ub(e)}else if(1==this.bi)e=a.Ad(n,this.Da,e+b),this.Ub(e,c),e=a.Ad(n,this.Da,f-b),this.Ub(e);else if(0==this.bi)for(v=1-w/Math.abs(this.Da),u=1,q=f-b-(e+b),-1<v&&1>v&&(p=2*Math.acos(v),.017453292519943295>p&&(p=.017453292519943295),u=d.I.truncate(Math.abs(q)/p+1.5),1<u&&(q/=u)),v=this.Da/Math.cos(.5*q),p=e+b+
.5*q,e=a.Ad(n,v,p),this.Ub(e,c);0<--u;)p+=q,e=a.Ad(n,v,p),this.Ub(e);else 2==this.bi?(v=u.x-n.x,p=u.y-n.y,A=q.x-n.x,y=q.y-n.y,u=(v*A+p*y)/Math.sqrt(v*v+p*p)/Math.sqrt(A*A+y*y),.99999999<u?(e=a.Ad(n,1.4142135623730951*this.Da,f-.25*m),this.Ub(e,c),e=a.Ad(n,1.4142135623730951*this.Da,f+.25*m),this.Ub(e)):(u=Math.abs(this.Da/Math.sin(.5*Math.acos(u))),q=Math.abs(this.Dx*this.Da),u>q?(v=.5*(f-e),v=this.Da/Math.abs(Math.sin(v)),e=a.Ad(n,v,.5*(e+f)),f=d.b.Oa(e.x,e.y),e=d.b.Oa(n.x,n.y),n=new d.b,n.pc(f,
e),f=new d.b,f.DR(q/n.length(),n,e),e=(u-q)*Math.abs(this.Da)/Math.sqrt(u*u-this.Da*this.Da),0<this.Da?n.tt():n.Kp(),n.scale(e/n.length()),e=new d.b,e.add(f,n),u=new d.b,u.pc(f,n),e=a.um(e),this.Ub(e,c),e=a.um(u),this.Ub(e)):(v=.5*(f-e),v=this.Da/Math.abs(Math.sin(v)),e=a.Ad(n,v,.5*(e+f)),this.Ub(e,c)))):(f=p,0<this.Da?(f>e&&(f-=g),u=e-f<b):(f<e&&(f+=g),u=f-e<b),u?(v=1.4142135623730951*this.Da,p=0>v?e+.25*m:e+.75*m,e=a.Ad(n,v,p),this.Ub(e,c),p=0>v?f-.25*m:f-.75*m,e=a.Ad(n,v,p),this.Ub(e)):(v=.5*(f-
e),v=this.Da/Math.abs(Math.sin(v)),f<e&&(f+=g),e=a.Ad(n,v,(e+f)/2),this.Ub(e,c)))}this.vt=t;this.gx=x;this.Ub(this.Ib[0],0);n=a.xL(this.Ib[this.Xe-1]);this.Ib[0]=n;return this.sR()};e.prototype.xs=function(a,c){if(!(2>c))for(var b=0;b<c;b++){var e=this.Ib[a+b];0!=b?this.Kx.Lm(d.b.Oa(e.x,e.y)):this.Kx.Nr(d.b.Oa(e.x,e.y))}};e.prototype.iJ=function(c,b,e){var f=c.Ea(b),d=c.Dc(b);this.Ib=[];this.Kx=e;if(c.vc(b)){for(b=c.Fa(f);c.Fa(d-1).ub(b);)d--;if(2<=d-f){this.eu=d-f;this.dg=[];for(b=f;b<d;b++)this.dg.push(a.um(c.Fa(b)));
this.mB()&&this.xs(0,this.Xe-1)}}else{for(b=c.Fa(f);f<d&&c.Fa(f+1).ub(b);)f++;for(b=c.Fa(d-1);f<d&&c.Fa(d-2).ub(b);)d--;if(2<=d-f){this.eu=2*(d-f)-2;this.dg=[];e=a.um(c.Fa(f));e.type|=1536;this.dg.push(e);for(b=f+1;b<d-1;b++)e=a.um(c.Fa(b)),this.dg.push(e);e=a.um(c.Fa(d-1));e.type|=512;this.dg.push(e);for(b=d-2;b>=f+1;b--)e=a.um(c.Fa(b)),e.type|=1024,this.dg.push(e);if(this.mB())if(2<=this.Ib.length){c=-1;(d=0!=(this.Ib[this.Xe-1].type&1024))||(c=0);for(b=1;b<this.Xe;b++)(f=0!=(this.Ib[b].type&1024))?
d||(d=b-1,1<d-c+1&&this.xs(c,d-c+1)):d&&(c=b-1),d=f;d||(d=this.Xe-1,1<d-c+1&&this.xs(c,d-c+1))}else c=0,d=this.Xe-1,0<=c&&1<=d-c&&this.xs(c,d-c+1)}}this.dg=null;this.eu=0;this.Ib=null;this.Xe=0};e.prototype.sR=function(){for(var a=!1,c=0;c<this.Xe;c++){var b=this.Ib[c];b.Rg=c+1;b.Ug=c-1;this.Ib[c]=b}b=this.Ib[0];b.Ug=this.Xe-2;this.Ib[0]=b;b=this.Ib[this.Xe-2];b.Rg=0;this.Ib[this.Xe-2]=b;for(c=b=0;c<this.Xe;c++)if(0!=(this.Ib[b].type&256)){var e=this.$L(b);if(-1!=e)b=e;else{a=!0;break}}else b=this.Ib[b].Rg;
if(a)return!1;this.vL(b);return!0};e.prototype.$L=function(a){for(var c=this.Xe-1,b=a,e,f,d=1;d<=c-2;d++){e=b=this.Ib[b].Rg;f=a;for(var h=1;h<=d;h++){f=this.Ib[f].Ug;if(0==(this.Ib[f].type&256)&&0==(this.Ib[e].type&256)){var g=this.oO(f,e);if(-1!=g)return g}e=this.Ib[e].Ug}}return-1};e.prototype.oO=function(a,b){var e,f,h,l;e=this.Ib[this.Ib[a].Ug];f=this.Ib[a];h=this.Ib[this.Ib[b].Ug];l=this.Ib[b];if(!this.HR(e,f,h,l))return-1;var g=new c;return this.NM(e,f,h,l,g)&&!g.cB&&d.I.bG((f.x-e.x)*(l.y-h.y)-
(f.y-e.y)*(l.x-h.x))!=d.I.bG(this.Da)?(e=this.Ib[a].Ug,g.Xl.type=f.type,g.Xl.Rg=b,g.Xl.Ug=e,this.Ib[a]=g.Xl,g.Xl=this.Ib[b],g.Xl.Ug=a,this.Ib[b]=g.Xl,b):-1};e.prototype.HR=function(a,c,b,e){return Math.max(a.x,c.x)>=Math.min(b.x,e.x)&&Math.max(b.x,e.x)>=Math.min(a.x,c.x)&&Math.max(a.y,c.y)>=Math.min(b.y,e.y)&&Math.max(b.y,e.y)>=Math.min(a.y,c.y)};e.prototype.NM=function(c,b,e,f,d){d.cB=!1;var h,l,k;h=(b.y-c.y)*(f.x-e.x)-(b.x-c.x)*(f.y-e.y);l=(e.y-c.y)*(b.x-c.x)-(e.x-c.x)*(b.y-c.y);h=0==h?2:l/h;return 0<=
h&&1>=h&&(k=h,h=(f.y-e.y)*(b.x-c.x)-(f.x-e.x)*(b.y-c.y),l=(c.y-e.y)*(f.x-e.x)-(c.x-e.x)*(f.y-e.y),h=0==h?2:l/h,0<=h&&1>=h)?(d.Xl=a.yL(c.x+h*(b.x-c.x),c.y+h*(b.y-c.y)),d.Xl.mh=e.mh+k*(f.mh-e.mh),0!=k&&1!=k||0!=h&&1!=h||(d.cB=!0),d.wU=h,d.xU=k,(0==k||1==k)&&0<h&&1>h||(0==h||1==h)&&0<k&&1>k?!1:!0):!1};e.prototype.vL=function(a){for(;this.Ib[a].Ug<a;)a=this.Ib[a].Ug;var c=0,b=a;do b=this.Ib[b],this.Ib[c]=b,b=b.Rg,c++;while(b!=a);this.Ib[c]=this.Ib[0];this.Xe=c+1};e.prototype.qA=function(a){var c=this.$m,
b=c.Ca();if(null!=b){b.Lk();for(var e=-1;b.kb();)e++,this.iJ(c,e,a)}};e.prototype.hv=function(){var a=this.$m.D();return 322==a?this.hJ():197==a?this.gJ():d.T.Lc(a)?(a=new d.Xa,a.Bc(this.$m,!0),this.$m=a,this.hv()):1607==a?(a=new d.Xa,this.qA(a),a):1736==a?(a=new d.Ka,this.qA(a),a):null};return e}();d.XG=e})(p||(p={}));(function(d){var m=function(){function a(a){this.xj=a}a.prototype.w=function(a,c){this.xj.a.w(a,c)};a.prototype.kd=function(a){var c=this.xj.za.da(a);this.xj.za.kd(a,-1);this.xj.a.vf(c,
!1)};return a}(),g=function(){function a(a){this.xj=a}a.prototype.w=function(a,c){this.xj.NP.w(a,c)};a.prototype.kd=function(a){this.xj.za.kd(a,-1)};return a}(),b=function(){function a(a){this.xj=a}a.prototype.w=function(a,c){c.J(this.xj.PP[a])};a.prototype.kd=function(a){this.xj.za.kd(a,-1)};return a}(),a=function(){function a(a){void 0===a?(this.za=new d.bj,this.za.de(20),this.a=new d.fd,this.FP=this.a.jg(550),this.cr=this.a.Cf(this.FP,-1),this.oh=new m(this)):a instanceof Array?(this.za=new d.bj,
this.za.de(20),this.PP=a,this.oh=new b(this)):(this.za=new d.bj,this.za.de(20),this.NP=a,this.oh=new g(this))}a.prototype.Eb=function(a){var c=a.D();if(d.Wr.Th(c))this.OJ(a);else if(d.al.Lc(c))this.SJ(a);else if(197==c)this.LJ(a);else if(33==c)this.RJ(a);else throw d.g.N("invalid shape type");};a.prototype.sN=function(){var a=new d.Va,c=this.za.gc(-1),b=new d.Ka(this.a.wp);this.a.Jk(this.za.da(c),a);b.df(a);for(c=this.za.bb(c);-1!=c;c=this.za.bb(c))this.a.Jk(this.za.da(c),a),b.lineTo(a);return b};
a.wL=function(c){var b=new a(c),e=c.F(),l=1,k=new d.b,g=new d.b,u=new d.b;for(c.w(0,k);;){c.w(l,g);if(!(g.Ww(k)&&l<e-1))break;l++}b.za.addElement(0,-1);b.za.qm(l);for(e=l+1;e<c.F();e++)c.w(e,u),l=b.cz(u),-1!=l&&b.za.Vi(l,e);u=new d.Va;l=b.za.gc(-1);e=new d.Ka(c.description);c.Sd(b.za.da(l),u);e.df(u);for(l=b.za.bb(l);-1!=l;l=b.za.bb(l))c.Sd(b.za.da(l),u),e.lineTo(u);return e};a.Oa=function(c,b,d){for(var e=new a(c),f=1,h=c[0];c[f].Ww(h)&&f<b-1;)f++;e.za.addElement(0,-1);e.za.qm(f);for(f+=1;f<b;f++)h=
e.cz(c[f]),-1!=h&&e.za.Vi(h,f);c=0;for(b=e.za.gc(-1);-1!=b;b=e.za.bb(b))d[c++]=e.za.da(b);return c};a.sD=function(c,b){var e=c.Ea(b),f=c.Dc(b),k=!c.vc(b)&&c.Oo(b),g=c.mc(0),e=2*e,f=2*f;k&&(f-=2);if(6>f-e)return!0;var k=new d.b,u=new d.b,q=new d.b;g.ec(e,k);g.ec(e+2,u);g.ec(e+4,q);var r=a.Bd(u,q,k);if(r.Dq()||!a.ac(r.value()))return!1;for(var w=d.b.Oa(u.x,u.y),t=new d.b,e=e+6;e<f;e+=2){t.J(u);u.J(q);g.ec(e,q);r=a.Bd(u,q,k);if(r.Dq()||!a.ac(r.value()))return!1;r=a.Bd(w,q,k);if(r.Dq()||!a.ac(r.value()))return!1;
r=a.Bd(u,q,t);if(r.Dq()||!a.ac(r.value()))return!1}return!0};a.prototype.OJ=function(a){for(var c=new d.Va,b=new d.b,e=0;e<a.F();e++){a.w(e,b);var k=this.hq(b);if(-1!=k){a.Sd(e,c);var g=this.a.Ub(this.cr,c);this.za.Vi(k,g)}}};a.prototype.LJ=function(a){for(var c=new d.Va,b=new d.b,e=0;4>e;e++){a.vu(e,b);var k=this.hq(b);if(-1!=k){a.uf(e,c);var g=this.a.Ub(this.cr,c);this.za.Vi(k,g)}}};a.prototype.SJ=function(a){var c=new d.Va,b=a.Mb(),b=this.hq(b);if(-1!=b){a.En(c);var e=this.a.Ub(this.cr,c);this.za.Vi(b,
e)}b=a.oc();b=this.hq(b);-1!=b&&(a.Bn(c),a=this.a.Ub(this.cr,c),this.za.Vi(b,a))};a.prototype.RJ=function(a){var c=a.w(),c=this.hq(c);-1!=c&&(a=this.a.Ub(this.cr,a),this.za.Vi(c,a))};a.prototype.hq=function(a){var c=-1;if(0==this.za.size(-1))return c=this.za.addElement(-4,-1);if(1==this.za.size(-1)){var b=this.a.Fa(this.za.da(this.za.gc(-1)));a.Ww(b)||(c=this.za.qm(-5));return c}return c=this.cz(a)};a.prototype.cz=function(c){var b=-1,e=this.za.gc(-1),l=this.za.tc(-1),k=this.za.da(e),g=this.za.da(l),
u=new d.b,q=new d.b;this.oh.w(k,u);this.oh.w(g,q);k=d.b.yn(q,c,u);if(a.ac(k))b=this.za.qm(-1),u=this.az(c,l,e),u!=e&&this.bz(c,e,this.za.ge(u));else if(a.ti(k)){for(var q=this.za.dt(-1),r=this.za.gc(-1),w=this.za.tc(-1),t,k=new d.b,g=new d.b;r!=this.za.ge(w);)t=this.za.da(q),this.oh.w(t,k),t=d.b.yn(k,c,u),a.ti(t)?(w=q,q=this.za.ik(q)):(r=q,q=this.za.Jo(q));q=w;u=r;t=this.za.da(q);r=this.za.da(u);this.oh.w(t,k);this.oh.w(r,g);if(u==e||(k=d.b.yn(g,c,k),a.ac(k)))b=this.za.vs(u,q,-2,!1),this.bz(c,q,l),
this.az(c,u,e)}else null==this.ib&&(this.ib=new d.yb),this.ib.ed(q),this.ib.vd(u),u=this.ib.Gd(c,!0),0>u?(u=this.za.ge(l),this.za.kd(l,-1),b=this.za.qm(-3),this.az(c,u,e)):1<u&&(u=this.za.bb(e),this.za.kd(e,-1),b=this.za.vs(-1,u,-3,!1),this.bz(c,u,l));return b};a.prototype.bz=function(c,b,h){if(b!=h){var e=this.za.da(b),f=this.za.bb(b),g=new d.b,u=new d.b;for(this.oh.w(e,g);b!=h&&2<this.za.size(-1);){this.oh.w(this.za.da(f),u);e=d.b.yn(u,c,g);if(a.ac(e))break;e=b;b=f;g.J(u);f=this.za.bb(b);this.oh.kd(e)}}};
a.prototype.az=function(c,b,h){if(b==h)return h;var e=this.za.da(b),f=this.za.ge(b),g=new d.b,u=new d.b;for(this.oh.w(e,g);b!=h&&2<this.za.size(-1);){this.oh.w(this.za.da(f),u);e=d.b.yn(g,c,u);if(a.ac(e))break;e=b;b=f;g.J(u);f=this.za.ge(b);this.oh.kd(e)}return b};a.Bd=function(a,c,b){var e=new d.$k;e.set(c.x);e.sub(a.x);var f=new d.$k;f.set(b.y);f.sub(a.y);var h=new d.$k;h.set(c.y);h.sub(a.y);c=new d.$k;c.set(b.x);c.sub(a.x);e.Ap(f);h.Ap(c);e.sub(h);return e};a.ac=function(a){return 0>a};a.ti=function(a){return 0<
a};a.ao=function(a){return 0==a};return a}();d.Tr=a})(p||(p={}));(function(d){var m=function(){function g(b){this.oe=this.a=null;this.WD=!0;this.oe=b}g.HE=function(b,a,c){b=d.Ia.As(b);return d.Sr.Vw(a.lk(),a.mk(),c.lk(),c.mk(),d.vi.Ty(b))};g.gL=function(b,a){var c=new d.Va;d.Sr.$P(b,a,c);return c};g.$=function(b,a,c,e){c=new g(c);c.a=b;c.ka=a;c.WD=e;return c.rJ()};g.prototype.lJ=function(b){return d.Sr.zM(this.a,b)};g.prototype.oJ=function(b){return d.Zu.$(this.a,b,this.oe)};g.prototype.rJ=function(){for(var b=
this.ka,a=d.Ia.As(b),b=d.Ia.UJ(b),c=1.00001*b,b=1.000001*b,e=!1,f=30<this.a.pd+10?1E3:(this.a.pd+10)*(this.a.pd+10),h=0,l=this.a.pO();;h++){if(h>f)throw d.g.ra("Internal Error: max number of iterations exceeded");var k=this.lJ(a),e=e||k;this.WD&&(k=0!=this.a.xo(a,!0,!1),e=e||k);k=!1;if(0==h||l||d.Zu.DE(!0,this.a,b,null,this.oe))k=this.oJ(c),e=e||k;if(!k)break}return e};return g}();d.aj=m})(p||(p={}));(function(d){var m=function(){function g(b){this.Ld=this.zc=null;this.Yb=b;this.hx=!0}g.prototype.et=
function(b,a){var c=this.a.cc(b);if(null==c){if(!this.a.Oc(b,a))return null;c=a}return c};g.prototype.LL=function(){var b=this.a.Gp(!1),a=!1,c=new d.yb,e=new d.yb,f=new d.i;f.Ja();var h=new d.i;h.Ja();for(var l=new d.Va,k=new d.gA,g=b.next();-1!=g;g=b.next()){var u=null,q=!1;if(!d.T.Km(this.a.Lb(b.mj))){u=this.et(g,c);if(null==u)continue;u.o(f);f.P(this.ka,this.ka);if(u.mg(this.ka))if(u.mg(0))q=!0,u=null;else continue}var r=this.a.Gp(b),w=r.next();for(-1!=w&&(w=r.next());-1!=w;w=r.next()){var t=null,
m=!1;if(!d.T.Km(this.a.Lb(r.mj))){t=this.et(w,e);if(null==t)continue;t.o(h);if(t.mg(this.ka))if(t.mg(0))m=!0,t=null;else continue}var v=0,p=0;if(null!=u&&null!=t)f.rD(h)&&(k.zn(u),k.zn(t),k.Ga(this.ka,!1),v=k.kk(0),p=k.kk(1),0<v+p&&(this.a.Tp(g,k,0,!0),this.a.Tp(w,k,1,!0)),k.clear());else if(null!=u){var A=new d.b;this.a.w(w,A);if(f.contains(A)){k.zn(u);this.a.Jk(w,l);k.Tw(this.ka,l,!1);v=k.kk(0);if(0<v)if(this.a.Tp(g,k,0,!0),m){m=-1;for(A=this.a.X(w);-1!=A&&A!=w&&(t=this.et(A,e),m=A,null!=t&&t.mg(0));A=
this.a.X(A));for(A=w;-1!=A&&(this.a.bh(A,k.nf),A!=m);A=this.a.X(A));}else this.a.bh(w,k.nf);k.clear()}}else if(null!=t){if(A=new d.b,this.a.w(g,A),h.P(this.ka,this.ka),h.contains(A)){k.zn(t);this.a.Jk(g,l);k.Tw(this.ka,l,!1);p=k.kk(0);if(0<p)if(this.a.Tp(w,k,0,!0),q){m=-1;for(A=this.a.X(g);-1!=A&&A!=g&&(t=this.et(A,e),m=A,null!=t&&t.mg(0));A=this.a.X(A));for(A=g;-1!=A&&(this.a.bh(A,k.nf),A!=m);A=this.a.X(A));}else this.a.bh(g,k.nf);k.clear()}}else continue;if(0!=v+p){if(0!=v){u=this.a.cc(g);if(null==
u){if(!this.a.Oc(g,c))continue;u=c;c.o(f)}else u.o(f);if(u.mg(this.ka))break}a=!0}}}return a};g.prototype.ML=function(){return this.HQ()};g.prototype.HQ=function(){return(new d.aA).GS(this.a,this.ka)};g.prototype.EE=function(){var b=!1,a,c;null==this.zc&&(this.zc=new d.bj);var e=new d.ga(0);e.xb(this.a.pd+1);for(var f=this.a.Gp(),h=f.next();-1!=h;h=f.next())e.add(h);this.a.Mu(e,e.size);e.add(-1);f=this.a.re();h=this.a.re();this.Ld=new d.hA(this.a,this.ka,!this.hx);this.zc.Hn(this.Ld);var l=new d.ga(0),
k=new d.ga(0),g=0;new d.b;var u=this.a.cd;this.a.wb.kc();for(var q=this.a.wb.Ba[0].f,r,w,t=e.get(g++);-1!=t;){w=u.O(t,0);r=q[2*w];w=q[2*w+1];var m=r,v=w;do{var p=u.O(t,2),A=u.O(t,1);-1!=p&&(a=u.O(p,0),c=q[2*a],a=q[2*a+1],0>(v<a?-1:v>a?1:m<c?-1:m>c?1:0)&&(k.add(t),k.add(p)));-1!=A&&(a=u.O(A,0),c=q[2*a],a=q[2*a+1],0>(v<a?-1:v>a?1:m<c?-1:m>c?1:0)&&(k.add(A),k.add(A)));c=this.a.Ra(t,f);-1!=c&&(l.add(c),this.a.lb(t,f,-1));c=this.a.Ra(t,h);-1!=c&&(l.add(c),this.a.lb(t,h,-1));t=e.get(g++);-1!==t&&(v=u.O(t,
0),m=q[2*v],v=q[2*v+1])}while(-1!=t&&m===r&&v===w);m=1==l.size&&2==k.size;c=v=-1;p=0;for(A=l.size;p<A;p++){a=l.get(p);var y=this.zc.ge(a);-1==y||l.Nw(y)||(v=y);a=this.zc.bb(a);-1==a||l.Nw(a)||(c=a);if(-1!=v&&-1!=c)break}this.Ld.XF(w,r);p=0;for(A=l.size;p<A;p++)a=l.get(p),this.zc.kd(a,-1);l.clear(!1);if(!m&&-1!=v&&-1!=c&&this.SK(v,c)){b=!0;this.ei=this.Ld.rl();break}p=0;for(A=k.size;p<A;p+=2){w=k.get(p);r=k.get(p+1);m?(w=this.zc.vs(v,c,w,!0),m=!1):w=this.zc.addElement(w,-1);if(this.Ld.Zf){this.ei=
this.Ld.rl();b=!0;break}-1==this.a.Ra(r,f)?this.a.lb(r,f,w):this.a.lb(r,h,w)}if(b)break;k.cf(0)}this.a.bf(f);this.a.bf(h);return b};g.prototype.SK=function(b,a){this.Ld.compare(this.zc,this.zc.da(b),a);var c=this.Ld.Zf;this.Ld.lq();return c};g.Gh=function(b){for(var a=b.$c;-1!=a;a=b.we(a))if(d.T.Kc(b.Lb(a)))return!0;return!1};g.Yk=function(b,a,c,e){if(!g.Gh(b))return!1;a=new g(e);a.a=b;a.ka=c;if(15>b.pd)b=a.LL();else return a.ML();return b};g.$=function(b,a,c){return g.Yk(b,b.wC(),a,c)};g.DE=function(b,
a,c,e,f){if(!g.Gh(a))return!1;var h=new g(f);h.a=a;h.ka=c;h.hx=b;if(h.EE())return null!=e&&e.aq(h.ei),!0;var l=new d.Bg;l.Oy();a.Oe(l);h=new g(f);h.a=a;h.ka=c;h.hx=b;b=h.EE();l.Oy();a.Oe(l);return b?(null!=e&&e.aq(h.ei),!0):!1};return g}();d.Zu=m})(p||(p={}));(function(d){(function(a){a[a.Left=0]="Left";a[a.Right=1]="Right";a[a.Coincident=2]="Coincident";a[a.Undefined=3]="Undefined";a[a.Uncut=4]="Uncut"})(d.ZG||(d.ZG={}));var m=function(){return function(a,b,f,d,l,k,g,u,q,r,w){this.U=a;this.cu=b;
this.Yq=f;this.ag=d;this.Il=r;this.xk=w}}();d.yT=m;var g=function(){function a(a,c){this.jE=a;this.Zh=c}a.prototype.nJ=function(a,c){var b=new d.b;this.Zh.w(a,b);var e=new d.b;this.Zh.w(c,e);b=b.compare(e);if(0!=b)return b;b=this.Zh.Ra(a,this.jE);e=this.Zh.Ra(c,this.jE);return b<e?-1:b==e?0:1};return a}(),b=function(){return function(a,b,f,d,l,k,g,u,q){this.ag=a;this.Yq=b;this.Lx=f;this.sE=d;this.Wh=l;this.xk=k;this.Il=g;this.tE=u;this.RP=q}}();d.xT=b;var a=function(){function a(){}a.YG=function(c,
b,h,l,k,g){if(b.s())c=new m(b,4,-1,-1,NaN,4,-1,-1,NaN,-1,-1,NaN,-1,-1,NaN),k.push(c);else{var e=new d.fd;e.Eb(b);e.Eb(h);d.aj.$(e,l,g,!0);b=0;h=e.re();for(l=e.$c;-1!=l;l=e.we(l))for(g=e.Vb(l);-1!=g;g=e.bc(g))for(var f=e.Cb(g),n=0,w=e.Ha(g);n<w;f=e.X(f),n++)e.lb(f,h,b++);b=a.qM(h,e);a.CI(c,b,e,k)}};a.qM=function(c,b){for(var e=b.pd,f=new d.ga(0),k=b.$c;-1!=k;k=b.we(k))for(var n=b.Vb(k);-1!=n;n=b.bc(n))for(var u=b.Cb(n),q=0,r=b.Ha(n);q<r;u=b.X(u),q++)f.add(u);var w=new g(c,b);f.xd(0,e,function(a,c){return w.nJ(a,
c)});var t=[],m=[],v=b.re(),p=b.re(),k=b.$c,n=b.we(k),r=new d.b,A=new d.b,y=f.get(0),z=b.rd(y),B=b.Vf(z);b.w(y,r);for(var D=1,u=0;D<e-1;){for(var E=!1,q=D;q<e;q++)if(q!=u){var G=f.get(q),I=b.rd(G),H=b.Vf(I);b.w(G,A);if(r.ub(A))B==k&&H==n&&(E=a.SI(v,p,b,t,m,z,y,I,G));else break}if(E||u==D-1){E&&u==D-1&&D--;if(++u==e)break;y=f.get(u);z=b.rd(y);B=b.Vf(z);b.w(y,r)}E||(D=u+1)}e=[];for(k=b.$c;-1!=k;k=b.we(k))for(n=b.Vb(k);-1!=n;n=b.bc(n))for(f=b.Cb(n),q=0,r=b.Ha(n);q<r;f=b.X(f),q++){u=b.Ra(f,p);if(0<=u)for(;u<
m.length&&m[u].ag==f;)e.push(m[u++]);u=b.Ra(f,v);if(0<=u)for(;u<t.length&&t[u].ag==f;)e.push(t[u++])}b.bf(v);b.bf(p);return e};a.SI=function(c,b,d,l,k,g,u,q,r){var e=d.hk(g),f=d.hk(q),h=d.Cb(g),n=d.Cb(q),m=d.Ua(u),p=d.Ua(r),y=!1,z=!1,B=!1,D=!1;u!=h&&(r!=n&&(y=a.VI(c,d,l,g,m,q,p)),r!=f&&(z=a.YI(c,d,l,g,m,q,r)));u!=e&&(r!=n&&(B=a.aJ(b,d,k,g,u,q,p,h)),r!=f&&(D=a.dJ(b,d,k,g,u,q,r,h)));y&&z&&B?(c=l.length-1,2==k[D?k.length-2:k.length-1].Wh&&(l[c-1]=l[c],--l.length)):y&&z&&D&&2==k[k.length-1].Wh&&(k=l[l.length-
1],--l.length,d.Ra(k.ag,c)==l.length&&d.lb(k.ag,c,-1));return y||z||B||D};a.VI=function(a,c,h,l,k,g,u){var e,f;f=new d.yb;var n=new d.yb,m=[0,0],x=[0,0];e=c.cc(k);null==e&&(c.Oc(k,f),e=f);f=c.cc(u);null==f&&(c.Oc(u,n),f=n);e=e.Ga(f,null,m,x,0);2>e&&(l=new b(k,l,m[0],NaN,e,u,g,x[0],NaN),h.push(l),l=c.Ra(k,a),0>l&&c.lb(k,a,h.length-1));return!0};a.YI=function(a,c,h,l,k,g,u){var e,f;f=new d.yb;var n=new d.yb,m=[0,0],x=[0,0];e=c.cc(k);null==e&&(c.Oc(k,f),e=f);f=c.cc(u);null==f&&(c.Oc(u,n),f=n);e=e.Ga(f,
null,m,x,0);return 2>e?(l=new b(k,l,m[0],NaN,e,u,g,x[0],NaN),h.push(l),l=c.Ra(k,a),0>l&&c.lb(k,a,h.length-1),!0):!1};a.aJ=function(a,c,h,l,k,g,u,q){var e,f;f=new d.yb;var n=new d.yb,m=[0,0],v=[0,0];e=c.cc(k);null==e&&(c.Oc(k,f),e=f);f=c.cc(u);null==f&&(c.Oc(u,n),f=n);e=e.Ga(f,null,m,v,0);if(2==e)return l=new b(k,l,m[0],m[1],e,u,g,v[0],v[1]),h.push(l),l=c.Ra(k,a),0>l&&c.lb(k,a,h.length-1),!0;n=!1;k==q&&(l=new b(k,l,m[0],NaN,e,u,g,v[0],NaN),h.push(l),l=c.Ra(k,a),0>l&&c.lb(k,a,h.length-1),n=!0);return n};
a.dJ=function(a,c,h,l,k,g,u,q){var e,f;f=new d.yb;var n=new d.yb,m=[0,0],v=[0,0];e=c.cc(k);null==e&&(c.Oc(k,f),e=f);f=c.cc(u);null==f&&(c.Oc(u,n),f=n);e=e.Ga(f,null,m,v,0);if(2==e)return l=new b(k,l,m[0],m[1],e,u,g,v[0],v[1]),h.push(l),l=c.Ra(k,a),0>l&&c.lb(k,a,h.length-1),!0;n=!1;k==q&&(l=new b(k,l,m[0],NaN,e,u,g,v[0],NaN),h.push(l),l=c.Ra(k,a),0>l&&c.lb(k,a,h.length-1),n=!0);return n};a.CI=function(c,b,h,l){var e,f=[];f[0]=new d.b;f[1]=new d.b;f[2]=new d.b;f[3]=new d.b;var g=new d.b,q=new d.b,r=
new d.b,w=new d.b,t=null;null!=l&&(t=new d.Ag,t.mq());var x,v=0,p=null,A=new d.yb;new d.yb;for(var y=h.Vb(h.$c);-1!=y;y=h.bc(y)){var z,B=4,D=-1,E,G,I,H=-1,M,F,ca,J,K=-1,S=-1,L=NaN;z=!0;var P=!1,R=!0,O=!0,U=!0,V=0;I=y;M=0;for(var ea=h.Cb(y),Z=h.Ha(y),ba=0;ba<Z;ea=h.X(ea),ba++){x=h.cc(ea);if(null==x){if(!h.Oc(ea,A))continue;x=A}-1==H&&(H=ea);for(var T=0;v<b.length&&ea==b[v].ag;){D=b[v].Yq;E=b[v].ag;G=b[v].Lx;F=b[v].Il;ca=b[v].xk;J=b[v].tE;if(2==b[v].Wh){if(P||(I=D,H=E,M=G,K=F,S=ca,L=J,B=2,null!=l?p=
new d.Xa:V=0,U=!1,O=!0),G=b[v].sE,J=b[v].RP,null!=l?(x.Bi(T,b[v].sE,t),p.Bc(t.get(),O)):V++,T=G,P=!0,O=z=!1,v+1==b.length||2!=b[v+1].Wh||b[v+1].ag==E&&b[v+1].Lx!=T)null!=l?(e=new m(p,2,D,E,G,B,I,H,M,F,ca,J,K,S,L),l.push(e)):null.add(V),I=D,H=E,M=G,K=F,S=ca,L=J,B=2,P=z=!1,O=U=!0}else{var Y=h.X(E);if(v<b.length-1&&b[v+1].ag==Y&&b[v+1].xk==ca&&2==b[v+1].Wh)G!=T&&(U&&(null!=l?p=new d.Xa:V=0),z=0<v&&b[v-1].Yq==D?1==B?0:0==B?1:3:3,null!=l?(x.Bi(T,G,t),p.Bc(t.get(),O),e=new m(p,z,D,E,G,B,I,H,M,F,ca,J,K,
S,L),l.push(e)):(V++,null.add(V)),T=G,I=D,H=E,M=G,K=F,S=ca,L=J,B=z,z=R=!1,O=U=!0);else if(!a.KK(c,h,b,v,g,q)){a.KG(h,b,v,y,ea,r,w);var Q=!1,Y=!1;e=!0;if(!(g.ub(r)||q.ub(r)||g.ub(w)||q.ub(w))){f[0].J(g);f[1].J(q);f[2].J(r);f[3].J(w);f.sort(d.b.cq);var W=f[0],X=f[1],aa=f[2],da=f[3];W.ub(g)?X.ub(q)?c?(Y=Q=!0,e=!1):Q=!1:da.ub(q)?c?e=Y=Q=!0:Q=!1:(Q=!0,e=X.ub(r)):X.ub(g)?aa.ub(q)?c?(Y=Q=!0,e=!1):Q=!1:W.ub(q)?c?e=Y=Q=!0:Q=!1:(Q=!0,e=aa.ub(r)):aa.ub(g)?da.ub(q)?c?(Y=Q=!0,e=!1):Q=!1:X.ub(q)?c?e=Y=Q=!0:Q=!1:
(Q=!0,e=da.ub(r)):W.ub(q)?c?(Y=Q=!0,e=!1):Q=!1:aa.ub(q)?c?e=Y=Q=!0:Q=!1:(Q=!0,e=W.ub(r))}if(Q){Q=ea==E;if(G!=T||Q&&0==T)U&&(null!=l?p=new d.Xa:V=0),null!=l?(x.Bi(T,G,t),p.Bc(t.get(),O)):V++;if(e)if(1!=B){if(G!=T||Q&&0==T)null!=l?(e=new m(p,1,D,E,G,B,I,H,M,F,ca,J,K,S,L),l.push(e)):null.add(V);if(!Y)B=1;else if(v==b.length-2||b[v+2].Yq!=D)B=0}else{if(G!=T||Q&&0==T)null!=l?(e=new m(p,3,D,E,G,B,I,H,M,F,ca,J,K,S,L),l.push(e)):null.add(V);B=1}else if(0!=B){if(G!=T||Q&&0==T)null!=l?(e=new m(p,0,D,E,G,B,
I,H,M,F,ca,J,K,S,L),l.push(e)):null.add(V);if(!Y)B=0;else if(v==b.length-2||b[v+2].Yq!=D)B=1}else{if(G!=T||Q&&0==T)null!=l?(e=new m(p,3,D,E,G,B,I,H,M,F,ca,J,K,S,L),l.push(e)):null.add(V);B=0}if(G!=T||Q&&0==T)T=G,I=D,H=E,M=G,K=F,S=ca,L=J,z=R=!1,O=U=!0}}}v++}1!=T&&(U&&(null!=l?p=new d.Xa:V=0),null!=l?(x.Bi(T,1,t),p.Bc(t.get(),O)):V++,O=U=!1,R=!0)}R&&(G=1,E=h.hk(y),E=h.Ua(E),ca=F=-1,J=NaN,z?null!=l?(e=new m(p,4,D,E,G,B,I,H,M,F,ca,J,K,S,L),l.push(e)):null.add(V):(z=1==B?0:0==B?1:3,null!=l?(e=new m(p,
z,D,E,G,B,I,H,M,F,ca,J,K,S,L),l.push(e)):null.add(V)))}};a.KK=function(c,b,h,l,k,g){var e=h[l].tE;if(1==e)return a.GJ(c,b,h,l,k,g);if(0==e)return a.dK(c,b,h,l,k,g);throw d.g.wa();};a.GJ=function(a,c,b,l,k,g){var e=new d.yb,f=b[l].ag,h=b[l].Il,n=b[l].xk,m=-1,x=-1,v=-1,p=-1;if(!a&&0<l)var A=b[l-1],m=A.ag,x=A.Il,v=A.xk,p=A.Wh;var y=-1,z=-1,B=-1,D=-1;l<b.length-1&&(A=b[l+1],y=A.ag,z=A.Il,B=A.xk,D=A.Wh);var E=c.X(f),A=c.X(n);if(!a)return 0<l&&m==f&&x==h&&v==A&&2==p||l<b.length-1&&y==E&&z==h&&B==A&&2==
D?(a=c.cc(n),null==a&&(c.Oc(n,e),a=e),g.J(a.Pf(1)),k.qr(g),g.normalize(),k.normalize(),!1):l<b.length-1&&y==f&&z==h&&B==A?(a=c.cc(n),null==a&&(c.Oc(n,e),a=e),k.J(a.Pf(1)),a=c.cc(A),null==a&&(c.Oc(A,e),a=e),g.J(a.Pf(0)),k.Bp(),g.normalize(),k.normalize(),!1):!0;if(l==b.length-1||y!=f||z!=h||B!=A||2==D)return a=c.cc(n),null==a&&(c.Oc(n,e),a=e),g.J(a.Pf(1)),k.qr(g),g.normalize(),k.normalize(),!1;a=c.cc(n);null==a&&(c.Oc(n,e),a=e);k.J(a.Pf(1));a=c.cc(A);null==a&&(c.Oc(A,e),a=e);g.J(a.Pf(0));k.Bp();g.normalize();
k.normalize();return!1};a.dK=function(a,c,b,l,k,g){var e=new d.yb,f=b[l].ag,h=b[l].Il,n=b[l].xk,m=-1,x=-1,v=-1,p=-1;if(!a&&l<b.length-1)var A=b[l+1],m=A.ag,x=A.Il,v=A.xk,p=A.Wh;var y=-1,z=-1,B=-1,A=-1;0<l&&(A=b[l-1],y=A.ag,z=A.Il,B=A.xk,A=A.Wh);var D=c.X(f),E=c.Ua(n);return a?0==l||y!=f||z!=h||B!=E||2==A?(a=c.cc(n),null==a&&(c.Oc(n,e),a=e),g.J(a.Pf(0)),k.qr(g),g.normalize(),k.normalize(),!1):!0:0<l&&y==f&&z==h&&B==E&&2==A||l<b.length-1&&m==D&&x==h&&v==E&&2==p?(a=c.cc(n),null==a&&(c.Oc(n,e),a=e),g.J(a.Pf(0)),
k.qr(g),g.normalize(),k.normalize(),!1):!0};a.KG=function(a,c,b,l,k,g,u){var e=new d.yb,f=a.cc(k);null==f&&(a.Oc(k,e),f=e);b=c[b];c=b.ag;b=b.Lx;k=a.X(c);if(1==b)g.J(f.Pf(1)),-1!=k&&k!=a.hk(l)?(f=a.cc(k),null==f&&(a.Oc(k,e),f=e),u.J(f.Pf(0)),f=a.cc(c),null==f&&a.Oc(c,e)):u.J(g),g.Bp(),u.normalize(),g.normalize();else if(0==b)u.J(f.Pf(b)),g.qr(u),u.normalize(),g.normalize();else throw d.g.wa();};return a}();d.$G=a})(p||(p={}));(function(d){(function(a){a[a.Linear=0]="Linear";a[a.Angular=1]="Angular";
a[a.Area=2]="Area"})(d.RI||(d.RI={}));var m=function(){function a(a,c,b){this.Nc=c;this.Dj=b;this.wx=a}a.PC=function(c){return 0!==c.Nc?null:-1===c.wx?new a(-1,2,c.Dj*c.Dj):a.Qd(e[c.wx])};a.Qd=function(a){a=c[a];return void 0===a?null:a};a.EL=function(c,b,e){var f=null;if(void 0!==e&&null!==e)try{"EPSG"===e.values[0]&&(f=a.Qd(parseInt(e.values[1])))}catch(q){}null===f&&(f=new a(-1,c,b));return f};a.prototype.Qc=function(){return this.wx};a.prototype.rC=function(a){if(a.Nc!=this.Nc)throw d.g.xa();
return this.Dj/a.Dj};a.ih=function(a,c,b){return c.rC(b)*a};a.OB=function(a,c,b,e,f){b=b.rC(e);for(e=0;e<c;e++)f[e]=a[e]*b};return a}();d.Tb=m;for(var g=[109402,4046.8564224,109403,4046.87260987425,109463,100,109401,1E4,109461,225E8,109460,25E8,109451,1E-4,109444,404.68564224000005,109424,404.6849341289498,109428,404.68493792602754,109416,404.67838076760535,109420,404.68423895571647,109448,404.683871963536,109411,404.6872609874253,109450,.01,109408,3.34450944,109405,.09290304,109430,.09290354800069446,
109423,.0929028774400711,109427,.09290287831176021,109441,.09290349665192114,109407,.09290137299531805,109440,.09290286332673177,109431,.09290274144751023,109432,.09290207073852812,109433,.09290279616016,109434,.09290273520025,109419,.09290271785025629,109447,.0929026336004445,109406,.09290341161327487,109453,6.4516E-4,109454,6.451625806477421E-4,109414,1E6,109445,.04046856422400001,109425,.04046849341289498,109429,.04046849379260275,109417,.04046783807676053,109421,.04046842389557164,109449,.0404683871963536,
109412,.04046872609874253,109404,1,109410,1.000027193184865,109413,2589998.4703195216,109452,1E-6,109409,3429904,109458,3434290.937856,109457,3434528.1495040003,109464,1.244521604938272E-7,109455,25.292852640000003,109456,25.29295381171408,109459,2.89612324,109439,2589988.110336,109462,.7168473118308245,109442,.83612736,109422,.83612589696064,109426,.836125904805842,109415,.8361123569578626,109435,.836124673027592,109436,.836118636646753,109437,.8361251654414399,109438,.83612461680225,109418,.8361244606523066,
109446,.8361237024040001,109443,.8361307045194736],b=[9103,2.908882086657216E-4,9104,4.84813681109536E-6,9102,.0174532925199433,9106,.01570796326794897,9105,.01570796326794897,9109,1E-6,9114,9.817477042468104E-4,1031,4.84813681109536E-9,9112,1.570796326794897E-4,9101,1,9113,1.570796326794897E-6],a=[109031,15E4,109461,109030,5E4,109460,1033,.01,109451,9097,20.1168,109444,9052,20.1167824,109424,9062,20.116782494375872,109428,9038,20.1166195164,109416,9042,20.116765121552632,109420,9301,20.116756,109448,
9033,20.11684023368047,109411,109005,.1,109450,9014,1.8288,109408,9002,.3048,109405,9070,.3048008333333334,109430,9051,.3047997333333333,109423,9061,.3047997347632708,109427,9095,.3048007491,109441,9005,.3047972654,109407,9094,.3047997101815088,109440,9080,.3047995102481469,109431,9081,.30479841,109432,9082,.3047996,109433,9083,.3047995,109434,9041,.304799471538676,109419,9300,.3047993333333334,109447,9003,.3048006096012192,109406,109008,.0254,109453,109009,.0254000508001016,109454,9036,1E3,109414,
9098,.201168,109445,9053,.201167824,109425,9063,.2011678249437587,109429,9039,.201166195164,109417,9043,.2011676512155263,109421,9302,.20116756,109449,9034,.2011684023368047,109412,9001,1,109404,9031,1.0000135965,109410,9035,1609.3472186944375,109413,1025,.001,109452,9030,1852,109409,109013,1853.184,109458,109012,1853.248,109457,109016,3.527777777777778E-4,109464,109010,5.0292,109455,109011,5.029210058420118,109456,109014,1.7018,109459,9093,1609.344,109439,109015,.8466683600033867,109462,9096,.9144,
109442,9050,.9143992,109422,9060,.9143992042898124,109426,9037,.9143917962000001,109415,9084,.9143985307444408,109435,9085,.91439523,109436,9086,.9143988,109437,9087,.9143985,109438,9040,.9143984146160287,109418,9099,.914398,109446,109002,.9144018288036576,109443,109001,.9144,109442,109003,20.1168,109444,109004,.201168,109445,109006,.01,109451,109007,.001,109452],c=[],e=[],f=0;f<g.length;f+=2)c[g[f]]=new m(g[f],2,g[f+1]);g=null;for(f=0;f<b.length;f+=2)c[b[f]]=new m(b[f],1,b[f+1]);b=null;for(f=0;f<
a.length;f+=3)c[a[f]]=new m(a[f],0,a[f+1]),e[a[f]]=a[f+2];a=null})(p||(p={}));(function(d){var m=function(){function d(){}d.prototype.set=function(b,a){void 0!==a?(this.Lf=b,this.Og=a):"number"===typeof b?(this.Lf=b,this.Og=0):(this.Lf=b.Lf,this.Og=b.Og)};d.prototype.value=function(){return this.Lf};d.prototype.sub=function(b){if("number"===typeof b){var a=this.Lf-b;b=this.Og+2.220446049250313E-16*Math.abs(a)}else a=this.Lf-b.Lf,b=this.Og+b.Og+2.220446049250313E-16*Math.abs(a);this.Lf=a;this.Og=b};
d.prototype.Ap=function(b){var a=this.Lf*b.Lf;this.Og=this.Og*Math.abs(b.Lf)+b.Og*Math.abs(this.Lf)+this.Og*b.Og+2.220446049250313E-16*Math.abs(a);this.Lf=a};d.prototype.eP=function(){return Math.abs(this.Lf)<=this.Og};d.prototype.Dq=function(){return this.eP()&&0!=this.Og};return d}();d.$k=m})(p||(p={}));var R=new p.b,ba=new p.b,W=new p.b,X=new p.b,da=new p.b;(function(d){var m;(function(b){b[b.closedPath=1]="closedPath";b[b.exteriorPath=2]="exteriorPath";b[b.ringAreaValid=4]="ringAreaValid"})(m||
(m={}));var g=function(){function b(a,c,b,f,d,l,k){void 0!==c?(this.ab=a,this.mj=c,this.$j=b,this.zh=f,this.ua=l,this.mx=k,this.Pt=d):(this.ab=a.ab,this.mj=a.mj,this.$j=a.$j,this.zh=a.zh,this.ua=a.ua,this.mx=a.mx,this.Pt=a.Pt);this.JD=!0}b.prototype.next=function(){return this.JD?(this.JD=!1,this.zh):-1!=this.zh?(this.zh=this.ab.X(this.zh),this.ua++,-1!=this.zh&&this.zh!=this.Pt?this.zh:this.cQ()):-1};b.prototype.cQ=function(){this.$j=this.ab.bc(this.$j);for(this.ua=0;-1!=this.mj;){for(;-1!=this.$j;this.$j=
this.ab.bc(this.$j))if(this.Pt=this.zh=this.ab.Cb(this.$j),-1!=this.zh)return this.zh;this.mj=this.ab.we(this.mj);if(-1==this.mj)break;if(!this.mx||d.T.Kc(this.ab.Lb(this.mj)))this.$j=this.ab.Vb(this.mj)}return-1};b.UL=function(a,c,e,f,d,l,k){return new b(a,c,e,f,d,l,k)};return b}();d.CT=g;m=function(){function b(){this.Zm=this.Al=this.Ej=this.Mc=this.Jj=this.jn=this.fi=this.Rc=this.sh=this.wg=this.Ge=this.wp=this.zp=this.wb=this.Hk=null;this.Xt=this.$c=-1;this.pd=0;this.kx=!1;this.wp=this.zp=this.wb=
null}b.prototype.Fi=function(a){return null!=this.Ge?this.Ge[a]:null};b.prototype.Fh=function(a,c){if(null==this.Ge){if(null==c)return;this.Ge=[];for(var b=0,f=this.wb.F();b<f;b++)this.Ge.push(null)}this.Ge[a]=c};b.prototype.Mn=function(a,c){this.Rc.L(a,1,c)};b.prototype.Ln=function(a,c){this.Rc.L(a,2,c)};b.prototype.Iy=function(a,c){this.Rc.L(a,6,c)};b.prototype.Ho=function(a){return this.Rc.O(a,6)};b.prototype.Hu=function(a,c){this.Rc.L(a,7,c)};b.prototype.bt=function(a){return this.Rc.O(a,0)};
b.prototype.MF=function(a,c){this.Mc.L(a,1,c)};b.prototype.QF=function(a,c){this.Mc.L(a,0,c)};b.prototype.xC=function(a){return this.Mc.O(a,7)};b.prototype.Jn=function(a,c){this.Mc.L(a,3,c)};b.prototype.Kn=function(a,c){this.Mc.L(a,4,c)};b.prototype.jQ=function(a){null==this.Mc&&(this.Mc=new d.Fc(8));var c=this.Mc.be();this.Mc.L(c,2,a);this.Mc.L(c,5,0);this.Mc.L(c,6,0);this.Mc.L(c,7,c);return c};b.prototype.bN=function(a){this.Mc.Jc(a)};b.prototype.lQ=function(a){null==this.Rc&&(this.Rc=new d.Fc(8),
this.cd=new d.Fc(5),this.fi=new d.qd(0),this.jn=new d.qd(0));var c=this.Rc.be();this.Rc.L(c,0,c);this.Rc.L(c,3,0);this.Rc.L(c,6,0);this.Hu(c,a);c>=this.fi.size&&(a=16>c?16:d.I.truncate(3*c/2),this.fi.resize(a),this.jn.resize(a));this.fi.set(c,0);this.jn.set(c,0);return c};b.prototype.iC=function(a){this.Rc.Jc(a)};b.prototype.dw=function(a){this.cd.Jc(a);this.pd--};b.prototype.mQ=function(a){null==this.Rc&&(this.Rc=new d.Fc(8),this.cd=new d.Fc(5),this.fi=new d.qd(0),this.jn=new d.qd(0));var c=this.cd.be(),
b=0<=a?a:c;this.cd.L(c,0,b);if(0>a){if(b>=this.wb.F()){a=16>b?16:d.I.truncate(3*b/2);this.wb.resize(a);if(null!=this.Ge)for(var f=0;f<a;f++)this.Ge.push(null);null!=this.wg&&this.wg.resize(a);this.zp=this.wb.mc(0)}this.wb.ic(b,-1E38,-1E38);null!=this.Ge&&(this.Ge[b]=null);null!=this.wg&&this.wg.write(b,1)}this.cd.L(c,4,2*b);this.pd++;return c};b.prototype.vl=function(a,c,b){var e=-1!=c?this.Ua(c):this.hk(a),d=-1!=e?this.X(e):-1,l=this.mQ(null==b?this.pd:-1),k=this.gb(l);null!=b&&this.wb.Iu(k,b);this.im(l,
a);this.Sc(l,d);this.Tc(l,e);-1!=d&&this.Tc(d,l);-1!=e&&this.Sc(e,l);b=this.vc(a);e=this.Cb(a);-1==c&&this.Wi(a,l);c==e&&this.Dh(a,l);b&&-1==d&&(this.Sc(l,l),this.Tc(l,l));this.hm(a,this.Ha(a)+1);a=this.Vf(a);this.Pk(a,this.F(a)+1);return l};b.prototype.Fo=function(){null==this.Zm&&(this.Zm=new d.Va(this.wb.description));return this.Zm};b.prototype.Pp=function(a,c){this.Mc.L(a,2,this.Mc.O(a,2)&-134217729||(1==c?134217728:0))};b.prototype.Cm=function(a){return 0!=(this.Mc.O(a,2)&134217728)?1:0};b.prototype.MJ=
function(a){var c=this.jg(a.D(),a.description);1736==a.D()&&this.Pp(c,a.Cm());this.WA(c,a);return c};b.prototype.NJ=function(a){var c=this.jg(a.D(),a.description);this.XA(c,a);return c};b.prototype.TQ=function(a,c){null==this.Rc&&(this.Rc=new d.Fc(8),this.cd=new d.Fc(5),this.fi=new d.qd(0),this.jn=new d.qd(0));this.Rc.de(this.Rc.Xc+a);this.cd.de(this.cd.Xc+c);this.fi.xb(this.fi.size+a);this.jn.xb(this.jn.size+a)};b.prototype.WA=function(a,c){this.TQ(c.ea(),c.F());this.Hk.Pd(c,0,c.F());this.zp=this.wb.mc(0);
for(var b=null!=this.Ge&&null!=c.Fe,f=0,h=c.ea();f<h;f++)if(!(2>c.Ha(f))){var l=this.Cf(a,-1);this.Gn(l,c.vc(f));for(var k=c.Ea(f),g=c.Dc(f);k<g;k++){var u=this.vl(l,-1,null);if(b)if(u=this.gb(u),0!=(c.NC(k)&1))this.Fh(u,null);else{var q=new d.Ag;c.cc(k,q,!0);this.Fh(u,q.get())}}}};b.prototype.XA=function(a,c){this.Hk.Pd(c,0,c.F());this.zp=this.wb.mc(0);for(var b=this.Cf(a,-1),f=0,d=c.F();f<d;f++)this.vl(b,-1,null)};b.prototype.DS=function(a,c,b){var e=this.X(a);if(-1==e)throw d.g.wa();for(var h=
this.Fo(),l=this.rd(a),k=0,g=c.kk(b);k<g;k++){var u=this.gb(a),q=this.X(a),r=c.Io(b,k);0==k&&(r.En(h),this.bh(a,h));322==r.D()?this.Fh(u,null):this.Fh(u,d.T.Yj(r));r.Bn(h);k<g-1?a=this.vl(l,q,h):this.bh(e,h)}};b.prototype.CS=function(a,c,b){var e=this.X(a);if(-1==e)throw d.g.wa();for(var h=this.Fo(),l=this.rd(a),k=0,g=c.kk(b);k<g;k++){var u=this.gb(a),q=this.X(a),r=c.Io(b,g-k-1);0==k&&(r.Bn(h),this.bh(a,h));322==r.D()?this.Fh(u,null):this.Fh(u,d.T.Yj(r));r.En(h);k<g-1?a=this.vl(l,q,h):this.bh(e,h)}};
b.prototype.wC=function(){var a=new d.i;a.Ja();for(var c=this.Gp(),b=new d.b,f=!0,h=c.next();-1!=h;h=c.next())this.w(h,b),f?a.Db(b.x,b.y):a.Oj(b.x,b.y),f=!1;return a};b.prototype.Eb=function(a){var c=a.D();if(d.T.Kc(c))return this.MJ(a);if(550==c)return this.NJ(a);throw d.g.wa();};b.prototype.YJ=function(a,c){var b=c.D();if(d.T.Kc(b))this.WA(a,c);else if(550==b)this.XA(a,c);else throw d.g.wa();};b.prototype.QJ=function(a,c){var b=this.jg(1736,a.description);if(2>a.Ha(c))return b;this.Hk.Pd(a,a.Ea(c),
a.Dc(c));this.zp=this.wb.mc(0);var f=this.Cf(b,-1);this.Gn(f,a.vc(c)||!0);for(var h=null!=this.Ge&&null!=a.Fe,l=a.Ea(c),k=a.Dc(c);l<k;l++){var g=this.vl(f,-1,null);if(h)if(g=this.gb(g),0!=(a.NC(l)&1))this.Fh(g,null);else{var u=new d.Ag;a.cc(l,u,!0);this.Fh(g,u.get())}}return b};b.prototype.hf=function(a){var c=this.Lb(a),b=d.sH.jg(c,this.Hk.description),f=this.F(a);if(0==f)return b;if(d.T.Kc(c)){for(var c=this.ea(a),h=d.Ac.Dg(c+1),l=d.Ac.to(c+1,0),k=b.description,g=0,u=k.Aa;g<u;g++){for(var q=k.Hd(g),
r=d.pa.Wa(q),w=d.Ac.Tv(q,f),m=this.wb.mc(q),x=0,v=0,p=0,A=this.Vb(a);-1!=A;A=this.bc(A)){var y=0;this.vc(A)&&(y|=1);this.VO(A)&&(y|=4);0!=y&&l.xy(v,y);var z=this.Ha(A);h.write(v++,p);p+=z;if(0==q)for(var z=m,B=w,D=new d.b,y=this.Cb(A);x<p;y=this.X(y),x++){var E=this.gb(y);z.ec(2*E,D);B.Rn(2*x,D)}else for(y=this.Cb(A);x<p;y=this.X(y),x++)for(E=this.gb(y),B=0;B<r;B++)D=m.Bh(E*r+B),w.Uk(x*r+B,D)}b.bm(q,w);h.write(c,f)}b.NF(l);b.OF(h);b.ce(16777215)}else if(550==c){k=b.description;b.resize(f);g=0;for(u=
k.Aa;g<u;g++){q=k.Hd(g);r=d.pa.Wa(q);w=b.mc(q);m=this.wb.mc(q);x=0;A=this.Vb(a);z=this.Ha(A);for(y=this.Cb(A);x<z;y=this.X(y),x++)for(E=this.gb(y),B=0;B<r;B++)D=m.Bh(E*r+B),w.Uk(x*r+B,D);b.bm(q,w)}b.ce(16777215)}return b};b.prototype.sy=function(a){for(var c=this.Vb(a);-1!=c;c=this.Cr(c));var c=this.aO(a),b=this.we(a);-1!=c?this.MF(c,b):this.$c=b;-1!=b?this.QF(b,c):this.Xt=c;this.bN(a)};b.prototype.jg=function(a,c){return void 0===c?this.QB(a,d.Od.Tf()):this.QB(a,c)};b.prototype.QB=function(a,c){var b=
this.jQ(a);null==this.wb?this.wb=this.Hk=new d.pe(c):this.Hk.Ik(c);this.wp=this.Hk.description;this.kx=1<this.wp.Aa;-1==this.$c?this.$c=b:(this.QF(b,this.Xt),this.MF(this.Xt,b));return this.Xt=b};b.prototype.we=function(a){return this.Mc.O(a,1)};b.prototype.aO=function(a){return this.Mc.O(a,0)};b.prototype.Lb=function(a){return this.Mc.O(a,2)&2147483647};b.prototype.EF=function(a,c,b){c=this.Ej[c];a=this.xC(a);a>=c.size&&c.resize(Math.max(d.I.truncate(1.25*a),16),-1);c.write(a,b)};b.prototype.yC=
function(a,c){var b=this.xC(a),f=this.Ej[c];return b<f.size?f.read(b):-1};b.prototype.RB=function(){null==this.Ej&&(this.Ej=[]);for(var a=0;a<this.Ej.length;a++)if(null==this.Ej[a])return this.Ej[a]=d.Ac.Dg(0),a;this.Ej.push(d.Ac.Dg(0));return this.Ej.length-1};b.prototype.tR=function(a){this.Ej[a]=null};b.prototype.Vb=function(a){return this.Mc.O(a,3)};b.prototype.Ys=function(a){return this.Mc.O(a,4)};b.prototype.F=function(a){return this.Mc.O(a,5)};b.prototype.ea=function(a){return this.Mc.O(a,
6)};b.prototype.xo=function(a,c,b){for(var e=0,h=this.$c;-1!=h;h=this.we(h)){var l=this.Lb(h);if(d.T.Kc(l)&&(!b||1736==l))for(var l=1736==this.Lb(h),k=this.Vb(h);-1!=k;){for(var g=0,u=this.Cb(k);g<d.I.truncate(this.Ha(k)/2);){var q=this.X(u);if(-1==q)break;var r=this.gb(u),w=this.Fi(r);null!=w?r=w.$b():(w=this.gb(q),r=this.wb.mv(r,w));r<=a?(0==r?0==e&&(e=-1):e=1,q!=this.hk(k)&&(this.Zy(q,u),this.vf(q,!0))):u=this.X(u);g++}g=this.Cb(k);for(u=this.vc(k)?g:this.hk(k);0<this.Ha(k);)if(q=this.Ua(u),-1!=
q){var m=this.gb(q),w=this.Fi(m);null!=w?r=w.$b():(r=this.gb(u),r=this.wb.mv(r,m));if(r<=a)0==r?0==e&&(e=-1):e=1,this.Zy(q,u),this.vf(q,!1),g==q&&(g=this.Cb(k));else if(u=this.Ua(u),u==g)break}else{this.vf(u,!0);0==e&&(e=-1);break}u=this.Ha(k);c&&(l?3>u:2>u)?(k=this.Cr(k),e=0<u?1:0==e?-1:e):k=this.bc(k)}}return e};b.prototype.Zy=function(a,c){var b=this.gb(a),f=this.gb(c);null!=this.wg&&(b=this.wg.read(b),this.wg.write(f,b));if(null!=this.sh)for(f=0,b=this.sh.length;f<b;f++)if(null!=this.sh[f]){var d=
this.Ra(a,f);-1!=d&&this.lb(c,f,d)}};b.prototype.Mr=function(a,c,b){var e=0,h=this.X(a);if(-1==h)throw d.g.wa();for(var l=this.gb(a),k=this.gb(h),g=this.Fi(l),u=null==g?this.wb.mv(l,k):g.$b(),q=0;q<b;q++){var r=c[q];if(0<r&&1>r){var w=r;null!=g&&(w=0<u?g.rA(r)/u:0);this.wb.vJ(l,k,w,this.Fo());var m=this.vl(this.rd(a),h,this.Fo());e++;if(null!=g){var x=g.xm(0,r),w=this.gb(this.Ua(m));this.Fh(w,x);this.Yi(m,x.oc());if(q==b-1||1==c[q+1])r=g.xm(r,1),this.Fh(w,r)}}}return e};b.prototype.bh=function(a,
c){var b=this.gb(a);this.wb.Iu(b,c);b=this.Fi(b);null!=b&&b.setStart(c);var f=this.Ua(a);-1!=f&&(f=this.gb(f),null!=this.Fi(f)&&b.setEnd(c))};b.prototype.Jk=function(a,c){var b=this.gb(a);this.wb.Sd(b,c)};b.prototype.Yi=function(a,c){this.ic(a,c.x,c.y)};b.prototype.ic=function(a,c,b){var e=this.gb(a);this.wb.ic(e,c,b);e=this.Fi(e);null!=e&&e.Ny(c,b);a=this.Ua(a);-1!=a&&(a=this.gb(a),null!=this.Fi(a)&&e.Ok(c,b))};b.prototype.w=function(a,c){this.wb.w(this.cd.O(a,0),c)};b.prototype.uc=function(a,c){this.wb.Ba[0].ec(2*
this.cd.O(a,0),c)};b.prototype.Fa=function(a){var c=new d.b;this.wb.w(this.cd.O(a,0),c);return c};b.prototype.SC=function(a,c){this.zp.ec(2*a,c)};b.prototype.ld=function(a,c,b){return this.wb.ld(a,this.gb(c),b)};b.prototype.setAttribute=function(a,c,b,f){this.wb.setAttribute(a,this.gb(c),b,f)};b.prototype.gb=function(a){return this.cd.O(a,0)};b.prototype.mk=function(a){var c=new d.b;this.w(a,c);return c.y};b.prototype.Cq=function(a,c){var b=this.gb(a),f=this.gb(c),d=this.wb.Ba[0].f;return d[2*b]===
d[2*f]&&d[2*b+1]===d[2*f+1]};b.prototype.pt=function(a,c){var b=this.gb(a),f=this.wb.Ba[0].f;return f[2*b]===c.x&&f[2*b+1]===c.y};b.prototype.pS=function(a,c){1>c&&(c=1);if(null==this.wg){if(1==c)return;this.wg=d.Ac.kl(this.wb.F(),1)}var b=this.gb(a);b>=this.wg.size&&this.wg.resize(b+1,1);this.wg.write(b,c)};b.prototype.RC=function(a){a=this.gb(a);return null==this.wg||a>=this.wg.size?1:this.wg.read(a)};b.prototype.lb=function(a,c,b){c=this.sh[c];a=this.gb(a);c.size<this.wb.F()&&c.resize(this.wb.F(),
-1);c.write(a,b)};b.prototype.Ra=function(a,c){var b=this.gb(a),f=this.sh[c];return b<f.size?f.read(b):-1};b.prototype.re=function(){null==this.sh&&(this.sh=[]);for(var a=0;a<this.sh.length;a++)if(null==this.sh[a])return this.sh[a]=d.Ac.Dg(0,-1),a;this.sh.push(d.Ac.Dg(0,-1));return this.sh.length-1};b.prototype.bf=function(a){this.sh[a]=null};b.prototype.cc=function(a){return null!=this.Ge?(a=this.gb(a),this.Ge[a]):null};b.prototype.Oc=function(a,c){var b=this.cd.O(a,2);if(-1==b)return!1;if(this.kx){var f=
new d.Va;this.Jk(a,f);c.setStart(f);this.Jk(b,f);c.setEnd(f)}else this.wb.uc(this.cd.O(a,0),R),c.gl(0,R),this.wb.uc(this.cd.O(b,0),R),c.gl(1,R);return!0};b.prototype.gR=function(a,c,b){if(this.kx){var e=new d.Va;this.Jk(a,e);b.setStart(e);this.Jk(c,e);b.setEnd(e)}else this.wb.uc(a,R),b.gl(0,R),this.wb.uc(c,R),b.gl(1,R)};b.prototype.Cf=function(a,c){var b;if(-1!=c){if(a!=this.Vf(c))throw d.g.wa();b=this.wq(c)}else b=this.Ys(a);var f=this.lQ(a);-1!=c&&this.Mn(c,f);this.Ln(f,c);this.Mn(f,b);-1!=b?this.Ln(b,
f):this.Jn(a,f);-1==c&&this.Kn(a,f);this.gm(a,this.ea(a)+1);return f};b.prototype.aD=function(a,c,b,f){a=this.Cf(a,-1);for(var e=0,d=c,k=!1;d==b&&(k=!0),this.im(d,a),e++,d=this.X(d),d!=c;);this.Gn(a,!0);this.hm(a,e);k&&(c=b);this.Dh(a,c);this.Wi(a,this.Ua(c));this.Jr(a,!1);null!=f&&(f[0]=k);return a};b.prototype.Cr=function(a){var c=this.wq(a),b=this.bc(a),f=this.Vf(a);-1!=c?this.Ln(c,b):this.Jn(f,b);-1!=b?this.Mn(b,c):this.Kn(f,c);this.bL(a);this.gm(f,this.ea(f)-1);this.iC(a);return b};b.prototype.bL=
function(a){var c=this.Cb(a);if(-1!=c){for(var b=0,f=this.Ha(a);b<f;b++){var d=c,c=this.X(c);this.dw(d)}c=this.Vf(a);this.Pk(c,this.F(c)-this.Ha(a))}this.hm(a,0)};b.prototype.bc=function(a){return this.Rc.O(a,2)};b.prototype.wq=function(a){return this.Rc.O(a,1)};b.prototype.Ha=function(a){return this.Rc.O(a,3)};b.prototype.vc=function(a){return 0!=(this.Ho(a)&1)};b.prototype.Gn=function(a,c){if(this.vc(a)!=c){if(0<this.Ha(a)){var b=this.Cb(a),f=this.hk(a);c?(this.Sc(f,b),this.Tc(b,f)):(this.Sc(f,
-1),this.Tc(b,-1));b=this.gb(f);this.Fh(b,null)}this.Iy(a,(this.Ho(a)|1)-1|(c?1:0))}};b.prototype.Vf=function(a){return this.Rc.O(a,7)};b.prototype.VO=function(a){return 0!=(this.Ho(a)&2)};b.prototype.Dy=function(a,c){this.Iy(a,(this.Ho(a)|2)-2|(c?2:0))};b.prototype.Gw=function(a){if(this.bP(a))return this.fi.get(this.bt(a));var c=new d.yb,b=this.Cb(a);if(-1==b)return 0;var f=new d.b;this.w(b,f);for(var h=0,l=0,k=this.Ha(a);l<k;l++,b=this.X(b)){var g=this.cc(b);if(null==g){if(!this.Oc(b,c))continue;
g=c}h+=g.kv(f.x,f.y)}this.Jr(a,!0);this.fi.set(this.bt(a),h);return h};b.prototype.Rp=function(a,c,b){c=this.Jj[c];a=this.bt(a);c.size<this.fi.size&&c.resize(this.fi.size,-1);c.write(a,b)};b.prototype.Ei=function(a,c){var b=this.bt(a),f=this.Jj[c];return b<f.size?f.read(b):-1};b.prototype.Uv=function(){null==this.Jj&&(this.Jj=[]);for(var a=0;a<this.Jj.length;a++)if(null==this.Jj[a])return this.Jj[a]=d.Ac.Dg(0),a;this.Jj.push(d.Ac.Dg(0));return this.Jj.length-1};b.prototype.ty=function(a){this.Jj[a]=
null};b.prototype.bQ=function(a,c,b){if(-1==b)throw d.g.N();if(c!=b){var e=this.bc(b),h=this.wq(b),l=this.Vf(b);-1==h?this.Jn(l,e):this.Ln(h,e);-1==e?this.Kn(l,h):this.Mn(e,h);this.Pk(l,this.F(l)-this.Ha(b));this.gm(l,this.ea(l)-1);h=-1==c?this.Ys(a):this.wq(c);this.Mn(b,h);this.Ln(b,c);-1==c?this.Kn(a,b):this.Mn(c,b);-1==h?this.Jn(a,b):this.Ln(h,b);this.Pk(a,this.F(a)+this.Ha(b));this.gm(a,this.ea(a)+1);this.Hu(b,a)}};b.prototype.zi=function(a,c){this.wb.Sd(this.gb(c),this.Fo());this.vl(a,-1,this.Fo())};
b.prototype.vf=function(a,c){var b=this.rd(a),f=this.Ua(a),h=this.X(a);-1!=f&&this.Sc(f,h);var l=this.Ha(b);a==this.Cb(b)&&this.Dh(b,1<l?h:-1);-1!=h&&this.Tc(h,f);a==this.hk(b)&&this.Wi(b,1<l?f:-1);if(-1!=f&&-1!=h){var f=this.gb(f),k=this.gb(h);if(c){var g=this.Fi(f);null!=g&&(f=new d.b,this.wb.w(k,f),g.vd(f))}else k=this.gb(a),g=this.Fi(k),this.Fh(f,g),null!=g&&(f=this.wb.Fa(f),g.ed(f))}this.hm(b,l-1);b=this.Vf(b);this.Pk(b,this.F(b)-1);this.dw(a);return h};b.prototype.Cb=function(a){return this.Rc.O(a,
4)};b.prototype.hk=function(a){return this.Rc.O(a,5)};b.prototype.X=function(a){return this.cd.O(a,2)};b.prototype.Ua=function(a){return this.cd.O(a,1)};b.prototype.rd=function(a){return this.cd.O(a,3)};b.prototype.Ub=function(a,c){return this.vl(a,-1,c)};b.prototype.Gp=function(a){if(void 0===a)return this.Gp(!1);if(a instanceof g)return new g(a);var c,b=-1,f=-1,h=-1,l=0,k=!1;for(c=this.$c;-1!=c;c=this.we(c))if(!a||d.T.Kc(this.Lb(c))){for(b=this.Vb(c);-1!=b;b=this.bc(b))if(h=f=this.Cb(b),l=0,-1!=
f){k=!0;break}if(k)break}return g.UL(this,c,b,f,h,l,a)};b.prototype.Oe=function(a){this.Hk.Oe(a);if(null!=this.Ge)for(var c=0,b=this.Ge.length;c<b;c++)null!=this.Ge[c]&&this.Ge[c].Oe(a)};b.prototype.Tp=function(a,c,b,f){f?this.DS(a,c,b):this.CS(a,c,b)};b.prototype.Tc=function(a,c){this.cd.L(a,1,c)};b.prototype.Sc=function(a,c){this.cd.L(a,2,c)};b.prototype.im=function(a,c){this.cd.L(a,3,c)};b.prototype.hm=function(a,c){this.Rc.L(a,3,c)};b.prototype.Dh=function(a,c){this.Rc.L(a,4,c)};b.prototype.Wi=
function(a,c){this.Rc.L(a,5,c)};b.prototype.gm=function(a,c){this.Mc.L(a,6,c)};b.prototype.Pk=function(a,c){this.Mc.L(a,5,c)};b.prototype.lF=function(a){var c=a;do{var b=this.X(c);this.Sc(c,this.Ua(c));this.Tc(c,b);c=b}while(c!=a)};b.prototype.ZF=function(a){this.pd=a};b.prototype.yu=function(a){var c=this.wq(a),b=this.bc(a),f=this.Vf(a);-1!=c?this.Ln(c,b):this.Jn(f,b);-1!=b?this.Mn(b,c):this.Kn(f,c);this.Dh(a,-1);this.Wi(a,-1);this.iC(a)};b.prototype.Ui=function(a,c){var b=this.Ua(a),f=this.X(a);
-1!=b&&this.Sc(b,f);-1!=f&&this.Tc(f,b);if(-1!=b&&-1!=f)if(b=this.gb(b),f=this.gb(f),c){var h=this.Fi(b);if(null!=h){var l=new d.b;this.wb.w(f,l);h.vd(l)}}else f=this.gb(a),h=this.Fi(f),this.Fh(b,h),null!=h&&(l=new d.b,this.wb.w(b,l),h.ed(l));this.dw(a)};b.prototype.bP=function(a){return 0!=(this.Ho(a)&4)};b.prototype.Jr=function(a,c){this.Iy(a,(this.Ho(a)|4)-4|(c?4:0))};b.prototype.Mu=function(a,c){var b=this.cd.f;this.wb.kc();var f=this.wb.Ba[0].f;a.xd(0,c,function(a,c){var e=b[5*a],d=b[5*c],h=
f[2*e],e=f[2*e+1],l=f[2*d],d=f[2*d+1];return e<d?-1:e>d?1:h<l?-1:h>l?1:0})};b.prototype.pO=function(){for(var a=this.$c;-1!=a;a=this.we(a))if(!d.T.Kc(this.Lb(a)))return!0;return!1};b.prototype.Vy=function(a,c){for(var b=this.Vb(a),f=this.Vb(c),d=this.Ys(a),l=this.Ys(c),k=this.Vb(a);-1!=k;k=this.bc(k))this.Hu(k,c);for(k=this.Vb(c);-1!=k;k=this.bc(k))this.Hu(k,a);this.Jn(a,f);this.Jn(c,b);this.Kn(a,l);this.Kn(c,d);b=this.F(a);f=this.ea(a);d=this.ea(c);this.Pk(a,this.F(c));this.Pk(c,b);this.gm(a,d);
this.gm(c,f);b=this.Mc.O(a,2);this.Mc.L(a,2,this.Mc.O(c,2));this.Mc.L(c,2,b)};return b}();d.fd=m})(p||(p={}));(function(d){var m=function(g){function b(a,c,b,f){g.call(this);this.R=new d.i;void 0===a?this.MB():"number"===typeof a?this.AL(a,c,b,f):a instanceof d.Va?void 0!==c?this.Ks(a,c,b):this.BL(a):a instanceof d.pa?void 0!==c?this.DL(a,c):this.CL(a):a instanceof d.i?this.zL(a):this.MB()}L(b,g);b.prototype.Ks=function(a,c,b){this.description=d.Od.Tf();this.R.Ja();a.s()||this.sv(a,c,b)};b.prototype.zL=
function(a){this.description=d.Od.Tf();this.R.K(a);this.R.normalize()};b.prototype.CL=function(a){if(null==a)throw d.g.N();this.description=a;this.R.Ja()};b.prototype.DL=function(a,c){if(null==a)throw d.g.N();this.description=a;this.R.K(c);this.R.normalize()};b.prototype.MB=function(){this.description=d.Od.Tf();this.R.Ja()};b.prototype.BL=function(a){this.description=d.Od.Tf();this.R.Ja();a.s()||this.sv(a)};b.prototype.AL=function(a,c,b,f){this.description=d.Od.Tf();this.K(a,c,b,f)};b.prototype.K=
function(a,c,b,f){this.qc();if("number"===typeof a)this.R.K(a,c,b,f);else for(this.Ja(),c=0,b=a.length;c<b;c++)this.Db(a[c])};b.prototype.Cu=function(a){this.qc();if(!a.dP())throw d.g.N();this.R.K(a)};b.prototype.Ja=function(){this.qc();this.R.Ja()};b.prototype.s=function(){return this.R.s()};b.prototype.aa=function(){return this.R.aa()};b.prototype.ba=function(){return this.R.ba()};b.prototype.lw=function(){return this.R.lw()};b.prototype.Vs=function(){return this.R.Vs()};b.prototype.qq=function(){return this.R.Af()};
b.prototype.Db=function(a){if(a instanceof d.b)this.qc(),this.R.Db(a);else if(a instanceof d.i)this.qc(),this.R.Db(a);else if(a instanceof d.Va){if(this.qc(),!a.sc()){var c=a.description;this.description!=c&&this.Ik(c);if(this.s())this.sv(a);else{this.R.Db(a.w());for(var e=1,f=c.Aa;e<f;e++)for(var h=c.Fd(e),l=d.pa.Wa(h),k=0;k<l;k++){var g=a.ld(h,k),u=this.Ah(h,k);u.Db(g);setInterval(h,k,u)}}}}else if(a instanceof b&&!a.s())for(c=a.description,c!=this.description&&this.Ik(c),this.R.Db(a.R),e=1,f=c.Aa;e<
f;e++)for(h=c.Hd(e),l=d.pa.Wa(h),k=0;k<l;k++)g=a.Ah(h,k),u=this.Ah(h,k),u.Db(g),setInterval(h,k,u)};b.prototype.sv=function(a,c,b){if(void 0!==c){this.R.K(a.w(),c,b);c=a.description;b=1;for(var e=c.Aa;b<e;b++)for(var h=c.Fd(b),l=d.pa.Wa(h),k=0;k<l;k++){var g=a.ld(h,k);this.setInterval(h,k,g,g)}}else for(this.R.K(a.fa[0],a.fa[1]),c=a.description,b=1,e=c.Aa;b<e;b++)for(h=c.Fd(b),l=d.pa.Wa(h),k=0;k<l;k++)g=a.ld(h,k),this.setInterval(h,k,g,g)};b.prototype.setInterval=function(a,c,b,f){var e=null;"number"===
typeof b?e=new d.Nd(b,f):e=b;this.qc();if(0==a)if(0==c)this.R.v=e.qa,this.R.B=e.va;else if(1==c)this.R.C=e.qa,this.R.G=e.va;else throw d.g.Uc();else this.DA(0,a,c,e.qa),this.DA(1,a,c,e.va)};b.prototype.P=function(a,c){this.qc();this.R.P(a,c)};b.prototype.Oe=function(a){if(a instanceof d.Bg)this.qc(),a.$y(this.R);else if(this.qc(),!this.R.s()){var c=new d.fH;this.Cn(c);c.UO()?c.Ja():a.$y(c)}};b.prototype.copyTo=function(a){if(a.D()!=this.D())throw d.g.N();a.qc();a.description=this.description;a.R.K(this.R);
a.fa=null;if(null!=this.fa){a.ns();for(var c=0;c<2*(this.description.le.length-2);c++)a.fa[c]=this.fa[c]}};b.prototype.Pa=function(){return new b(this.description)};b.prototype.Mh=function(){return this.R.rN()};b.prototype.$b=function(){return this.R.CC()};b.prototype.D=function(){return 197};b.prototype.fb=function(){return 2};b.prototype.Fp=function(a){this.copyTo(a)};b.prototype.o=function(a){a.v=this.R.v;a.C=this.R.C;a.B=this.R.B;a.G=this.R.G};b.prototype.Cn=function(a){a.v=this.R.v;a.C=this.R.C;
a.B=this.R.B;a.G=this.R.G;a.K(this.R.v,this.R.C,this.yd(0,1,0),this.R.B,this.R.G,this.yd(1,1,0))};b.prototype.Ah=function(a,c){var b=new d.Nd;b.K(this.yd(0,a,c),this.yd(1,a,c));return b};b.prototype.uf=function(a,c){c.Qf(this.description);var b=this.description.Aa-1;switch(a){case 0:for(var f=0;f<b;f++)for(var h=this.description.Hd(f),l=d.pa.Wa(h),k=0;k<l;k++)c.setAttribute(h,k,this.yd(0,h,k));c.ic(this.R.v,this.R.C);break;case 1:for(f=0;f<b;f++)for(h=this.description.Hd(f),l=d.pa.Wa(h),k=0;k<l;k++)c.setAttribute(h,
k,this.yd(1,h,k));c.ic(this.R.v,this.R.G);break;case 2:for(f=0;f<b;f++)for(h=this.description.Hd(f),l=d.pa.Wa(h),k=0;k<l;k++)c.setAttribute(h,k,this.yd(0,h,k));c.ic(this.R.B,this.R.G);break;case 3:for(f=0;f<b;f++)for(h=this.description.Hd(f),l=d.pa.Wa(h),k=0;k<l;k++)c.setAttribute(h,k,this.yd(1,h,k));c.ic(this.R.B,this.R.C);break;default:throw d.g.Uc();}};b.prototype.vu=function(a,c){var b=this.R.vu(a);c.ma(b.x,b.y)};b.prototype.zN=function(a,c){return c*(a.up-2)};b.prototype.mC=function(a,c,b){if(this.R.s())throw d.g.ra("empty geometry");
if(0==c)return 0!=a?0!=b?this.R.G:this.R.B:0!=b?this.R.C:this.R.v;if(b>=d.pa.Wa(c))throw d.g.N();var e=this.description.zf(c);this.ns();return 0<=e?this.fa[this.zN(this.description,a)+this.description.XN(e)-2+b]:d.pa.ue(c)};b.prototype.ns=function(){this.qc();if(null==this.fa&&2<this.description.le.length){this.fa=[];for(var a=b.V(this.description,0),c=b.V(this.description,1),e=0,f=1,h=this.description.Aa;f<h;f++)for(var l=this.description.Hd(f),k=d.pa.Wa(l),l=d.pa.ue(l),g=0;g<k;g++)this.fa[a+e]=
l,this.fa[c+e]=l,e++}};b.prototype.nm=function(a){if(null!=this.fa)if(2<a.le.length){for(var c=d.Od.iu(a,this.description),e=[],f=b.V(this.description,0),h=b.V(this.description,1),l=b.V(a,0),k=b.V(a,1),g=0,u=1,q=a.Aa;u<q;u++){var r=a.Hd(u),w=d.pa.Wa(r);if(-1==c[u])for(var m=d.pa.ue(r),r=0;r<w;r++)e[l+g]=m,e[k+g]=m,g++;else for(m=this.description.fj(c[u])-2,r=0;r<w;r++)e[l+g]=this.fa[f+m],e[k+g]=this.fa[h+m],g++,m++}this.fa=e}else this.fa=null;this.description=a};b.prototype.yd=function(a,c,e){if(this.R.s())throw d.g.ra("This operation was performed on an Empty Geometry.");
if(0==c)return 0!=a?0!=e?this.R.G:this.R.B:0!=e?this.R.C:this.R.v;if(e>=d.pa.Wa(c))throw d.g.Uc();var f=this.description.zf(c);return 0<=f?(this.ns(),this.fa[b.V(this.description,a)+this.description.fj(f)-2+e]):d.pa.ue(c)};b.prototype.DA=function(a,c,e,f){this.qc();if(0==c)0!=a?0!=e?this.R.G=f:this.R.B=f:0!=e?this.R.C=f:this.R.v=f;else{if(e>=d.pa.Wa(c))throw d.g.Uc();if(!this.hasAttribute(c)){if(d.pa.nD(c,f))return;this.Ne(c)}c=this.description.zf(c);this.ns();this.fa[b.V(this.description,a)+this.description.fj(c)-
2+e]=f}};b.V=function(a,c){return c*(a.le.length-2)};b.prototype.Ga=function(a){this.qc();var c=new d.i;a.o(c);return this.R.Ga(c)};b.prototype.jc=function(a){return a instanceof d.i?this.R.jc(a):this.R.jc(a.R)};b.prototype.offset=function(a,c){this.qc();this.R.offset(a,c)};b.prototype.normalize=function(){this.qc();this.R.normalize()};b.prototype.Af=function(a){if(void 0!==a)if(a.Qf(this.description),this.s())a.Ja();else{for(var c=this.description.Aa,b=1;b<c;b++)for(var f=this.description.Hd(b),
h=d.pa.Wa(f),l=0;l<h;l++){var k=.5*(this.mC(0,f,l)+this.mC(1,f,l));a.setAttribute(f,l,k)}a.ic(this.R.Af())}else{a=new d.Va(this.description);if(this.s())return a;c=this.description.Aa;for(b=1;b<c;b++)for(f=this.description.Fd(b),h=d.pa.Wa(f),l=0;l<h;l++)k=.5*(this.yd(0,f,l)+this.yd(1,f,l)),a.setAttribute(f,l,k);a.ic(this.R.lw(),this.R.Vs());return a}};b.prototype.yw=function(){return new d.Va(this.R.yw())};b.prototype.contains=function(a){return a instanceof d.Va?a.s()?!1:this.R.contains(a.lk(),a.mk()):
this.R.contains(a.R)};b.prototype.lc=function(a){if(a==this)return!0;if(!(a instanceof b)||this.description!=a.description)return!1;if(this.s())return a.s()?!0:!1;if(!this.R.lc(a.R))return!1;for(var c=0,e=2*(this.description.le.length-2);c<e;c++)if(this.fa[c]!=a.fa[c])return!1;return!0};b.prototype.hc=function(){var a=this.description.hc(),a=d.I.kg(a,this.R.hc());if(!this.s()&&null!=this.fa)for(var c=0,b=2*(this.description.le.length-2);c<b;c++)a=d.I.kg(a,this.fa[c]);return a};b.prototype.Rf=function(){return d.Hh.il(this,
null)};b.prototype.toString=function(){return this.s()?"Envelope: []":"Envelope: ["+this.R.v+", "+this.R.C+", "+this.R.B+", "+this.R.G+"]"};return b}(d.T);d.Vj=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c,e){void 0===b?this.Ja():(this.v=b,this.C=a,this.B=c,this.G=e)}g.Oa=function(b,a,c,e){var f=new g;f.v=b;f.C=a;f.B=c;f.G=e;return f};g.prototype.K=function(b,a,c,e){"number"===typeof b?void 0!==c?(this.v=b,this.C=a,this.B=c,this.G=e,this.normalize()):(this.v=b,this.C=a,this.B=b,this.G=
a):b instanceof d.b?void 0!==a?(this.v=b.x-.5*a,this.B=this.v+a,this.C=b.y-.5*c,this.G=this.C+c,this.normalize()):(this.v=b.x,this.C=b.y,this.B=b.x,this.G=b.y):b instanceof g?this.K(b.v,b.C,b.B,b.G):b instanceof d.Nd&&(b.s()||a.s()?this.Ja():(this.v=b.qa,this.B=b.va,this.C=a.qa,this.G=a.va))};g.prototype.IN=function(b,a){var c=new g;c.K(this.v,this.C,this.B,this.G);c.P(b,a);return c};g.prototype.Ey=function(b,a){if(void 0!==a)if(0==a)this.Ja();else{this.v=b[0].x;this.C=b[0].y;this.B=this.v;this.G=
this.C;for(var c=1;c<a;c++){var e=b[c];e.x<this.v?this.v=e.x:e.x>this.B&&(this.B=e.x);e.y<this.C?this.C=e.y:e.y>this.G&&(this.G=e.y)}}else if(null==b||0==b.length)this.Ja();else for(e=b[0],this.K(e.x,e.y),c=1;c<b.length;c++)e=b[c],this.Oj(e.x,e.y)};g.prototype.Ja=function(){this.G=this.B=this.C=this.v=NaN};g.prototype.s=function(){return isNaN(this.v)};g.prototype.Db=function(b,a){"number"===typeof b?this.s()?(this.v=b,this.C=a,this.B=b,this.G=a):(this.v>b?this.v=b:this.B<b&&(this.B=b),this.C>a?this.C=
a:this.G<a&&(this.G=a)):b instanceof d.b?this.Db(b.x,b.y):b instanceof d.ee?this.Db(b.x,b.y):b instanceof g&&!b.s()&&(this.Db(b.v,b.C),this.Db(b.B,b.G))};g.prototype.Oj=function(b,a){this.v>b?this.v=b:this.B<b&&(this.B=b);this.C>a?this.C=a:this.G<a&&(this.G=a)};g.prototype.P=function(b,a){this.s()||(this.v-=b,this.B+=b,this.C-=a,this.G+=a,(this.v>this.B||this.C>this.G)&&this.Ja())};g.prototype.scale=function(b){0>b&&this.Ja();this.s()||(this.v*=b,this.B*=b,this.C*=b,this.G*=b)};g.prototype.jc=function(b){return!this.s()&&
!b.s()&&(this.v<=b.v?this.B>=b.v:b.B>=this.v)&&(this.C<=b.C?this.G>=b.C:b.G>=this.C)};g.prototype.rD=function(b){return(this.v<=b.v?this.B>=b.v:b.B>=this.v)&&(this.C<=b.C?this.G>=b.C:b.G>=this.C)};g.prototype.Ga=function(b){if(this.s()||b.s())return!1;b.v>this.v&&(this.v=b.v);b.B<this.B&&(this.B=b.B);b.C>this.C&&(this.C=b.C);b.G<this.G&&(this.G=b.G);(b=this.v<=this.B&&this.C<=this.G)||this.Ja();return b};g.prototype.vu=function(b){switch(b){case 0:return d.b.Oa(this.v,this.C);case 1:return d.b.Oa(this.v,
this.G);case 2:return d.b.Oa(this.B,this.G);case 3:return d.b.Oa(this.B,this.C);default:throw d.g.Uc();}};g.prototype.hy=function(b){if(null==b||4>b.length)throw d.g.N();null!=b[0]?b[0].ma(this.v,this.C):b[0]=d.b.Oa(this.v,this.C);null!=b[1]?b[1].ma(this.v,this.G):b[1]=d.b.Oa(this.v,this.G);null!=b[2]?b[2].ma(this.B,this.G):b[2]=d.b.Oa(this.B,this.G);null!=b[3]?b[3].ma(this.B,this.C):b[3]=d.b.Oa(this.B,this.C)};g.prototype.rN=function(){return this.s()?0:this.aa()*this.ba()};g.prototype.CC=function(){return this.s()?
0:2*(this.aa()+this.ba())};g.prototype.lw=function(){return(this.B+this.v)/2};g.prototype.Vs=function(){return(this.G+this.C)/2};g.prototype.aa=function(){return this.B-this.v};g.prototype.ba=function(){return this.G-this.C};g.prototype.move=function(b,a){this.s()||(this.v+=b,this.C+=a,this.B+=b,this.G+=a)};g.prototype.offset=function(b,a){this.v+=b;this.B+=b;this.C+=a;this.G+=a};g.prototype.normalize=function(){if(!this.s()){var b=Math.min(this.v,this.B),a=Math.max(this.v,this.B);this.v=b;this.B=
a;b=Math.min(this.C,this.G);a=Math.max(this.C,this.G);this.C=b;this.G=a}};g.prototype.Yl=function(b){b.ma(this.v,this.C)};g.prototype.YE=function(b){b.ma(this.B,this.C)};g.prototype.aF=function(b){b.ma(this.v,this.G)};g.prototype.Zl=function(b){b.ma(this.B,this.G)};g.prototype.dP=function(){return this.s()||this.v<=this.B&&this.C<=this.G};g.prototype.Af=function(){return d.b.Oa((this.B+this.v)/2,(this.G+this.C)/2)};g.prototype.yw=function(){return d.b.Oa(this.v,this.C)};g.prototype.contains=function(b,
a){if(void 0!==a)return b>=this.v&&b<=this.B&&a>=this.C&&a<=this.G;if(b instanceof d.Va)return this.contains(b.lk(),b.mk());if(b instanceof d.b)return this.contains(b.x,b.y);if(b instanceof g)return b.v>=this.v&&b.B<=this.B&&b.C>=this.C&&b.G<=this.G;throw d.g.N();};g.prototype.jl=function(b,a){if(void 0!==a)return b>this.v&&b<this.B&&a>this.C&&a<this.G;if(b instanceof d.b)return this.jl(b.x,b.y);if(b instanceof g)return b.v>this.v&&b.B<this.B&&b.C>this.C&&b.G<this.G;throw d.g.N();};g.prototype.lc=
function(b){return b==this?!0:b instanceof g?this.s()&&b.s()?!0:this.v!=b.v||this.C!=b.C||this.B!=b.B||this.G!=b.G?!1:!0:!1};g.prototype.hc=function(){var b=this.v,b=d.I.truncate(b^b>>>32),a=d.I.kg(b),b=this.B,b=d.I.truncate(b^b>>>32),a=d.I.kg(b,a),b=this.C,b=d.I.truncate(b^b>>>32),a=d.I.kg(b,a),b=this.G,b=d.I.truncate(b^b>>>32);return a=d.I.kg(b,a)};g.prototype.vv=function(b){var a=new d.b;a.J(b);if(a.pv())return a;if(this.s())return a.FA(),a;a.x<this.v?a.x=this.v:a.x>this.B&&(a.x=this.B);a.y<this.C?
a.y=this.C:a.y>this.G&&(a.y=this.G);if(!a.lc(b))return a;b=this.Af();(a.x<b.x?a.x-this.v:this.B-a.x)<(a.y<b.y?a.y-this.C:this.G-a.y)?a.x=a.x<b.x?this.v:this.B:a.y=a.y<b.y?this.C:this.G;return a};g.prototype.ms=function(b){if(this.s())return NaN;if(b.x==this.v)return b.y-this.C;var a=this.G-this.C,c=this.B-this.v;return b.y==this.G?a+b.x-this.v:b.x==this.B?a+c+this.G-b.y:b.y==this.C?2*a+c+this.B-b.x:this.ms(this.vv(b))};g.prototype.vA=function(b){if(this.s())return-1;b=this.ms(b);var a=this.G-this.C,
c=this.B-this.v;return b<a?0:(b-=a)<c?1:b-c<a?2:3};g.prototype.lv=function(){return this.s()?2.220446049250313E-14:2.220446049250313E-14*(Math.abs(this.v)+Math.abs(this.B)+Math.abs(this.C)+Math.abs(this.G)+1)};g.prototype.Nv=function(b,a){var c=this.ej(b),e=this.ej(a);if(0!=(c&e))return 0;if(0==(c|e))return 4;var f=(0!=c?1:0)|(0!=e?2:0);do{var d=a.x-b.x,l=a.y-b.y;d>l?0!=(c&g.Cc)?(0!=(c&g.ob)?(b.y+=l*(this.v-b.x)/d,b.x=this.v):(b.y+=l*(this.B-b.x)/d,b.x=this.B),c=this.ej(b)):0!=(e&g.Cc)?(0!=(e&g.ob)?
(a.y+=l*(this.v-a.x)/d,a.x=this.v):(a.y+=l*(this.B-a.x)/d,a.x=this.B),e=this.ej(a)):0!=c?(0!=(c&g.ac)?(b.x+=d*(this.C-b.y)/l,b.y=this.C):(b.x+=d*(this.G-b.y)/l,b.y=this.G),c=this.ej(b)):(0!=(e&g.ac)?(a.x+=d*(this.C-a.y)/l,a.y=this.C):(a.x+=d*(this.G-a.y)/l,a.y=this.G),e=this.ej(a)):0!=(c&g.Bd)?(0!=(c&g.ac)?(b.x+=d*(this.C-b.y)/l,b.y=this.C):(b.x+=d*(this.G-b.y)/l,b.y=this.G),c=this.ej(b)):0!=(e&g.Bd)?(0!=(e&g.ac)?(a.x+=d*(this.C-a.y)/l,a.y=this.C):(a.x+=d*(this.G-a.y)/l,a.y=this.G),e=this.ej(a)):
0!=c?(0!=(c&g.ob)?(b.y+=l*(this.v-b.x)/d,b.x=this.v):(b.y+=l*(this.B-b.x)/d,b.x=this.B),c=this.ej(b)):(0!=(e&g.ob)?(a.y+=l*(this.v-a.x)/d,a.x=this.v):(a.y+=l*(this.B-a.x)/d,a.x=this.B),e=this.ej(a));if(0!=(c&e))return 0}while(0!=(c|e));return f};g.prototype.ej=function(b){return(b.x<this.v?1:0)|(b.x>this.B?1:0)<<1|(b.y<this.C?1:0)<<2|(b.y>this.G?1:0)<<3};g.prototype.mg=function(b){return!this.s()&&(this.aa()<=b||this.ba()<=b)};g.prototype.Fb=function(b){return b instanceof d.b?Math.sqrt(this.gG(b)):
Math.sqrt(this.Ou(b))};g.prototype.Ou=function(b){var a=0,c=0,e;e=this.v-b.B;e>a&&(a=e);e=this.C-b.G;e>c&&(c=e);e=b.v-this.B;e>a&&(a=e);e=b.C-this.G;e>c&&(c=e);return a*a+c*c};g.prototype.gG=function(b){var a=0,c=0,e;e=this.v-b.x;e>a&&(a=e);e=this.C-b.y;e>c&&(c=e);e=b.x-this.B;e>a&&(a=e);e=b.y-this.G;e>c&&(c=e);return a*a+c*c};g.prototype.wu=function(b){this.s()?b.Ja():b.K(this.v,this.B)};g.ob=1;g.ac=4;g.Cc=3;g.Bd=12;return g}();d.i=m})(p||(p={}));(function(d){var m;(function(b){b[b.initialize=0]=
"initialize";b[b.initializeRed=1]="initializeRed";b[b.initializeBlue=2]="initializeBlue";b[b.initializeRedBlue=3]="initializeRedBlue";b[b.sweep=4]="sweep";b[b.sweepBruteForce=5]="sweepBruteForce";b[b.sweepRedBlueBruteForce=6]="sweepRedBlueBruteForce";b[b.sweepRedBlue=7]="sweepRedBlue";b[b.sweepRed=8]="sweepRed";b[b.sweepBlue=9]="sweepBlue";b[b.iterate=10]="iterate";b[b.iterateRed=11]="iterateRed";b[b.iterateBlue=12]="iterateBlue";b[b.iterateBruteForce=13]="iterateBruteForce";b[b.iterateRedBlueBruteForce=
14]="iterateRedBlueBruteForce";b[b.resetRed=15]="resetRed";b[b.resetBlue=16]="resetBlue"})(m||(m={}));var g=function(){function b(a,c){this.th=a;this.KD=c}b.prototype.Zp=function(a,c,b){this.th.BS(b,a,c,this.KD)};b.prototype.Mo=function(a){return this.th.pq(a,this.KD)};return b}();m=function(){function b(){this.Vt=this.cn=this.Ve=this.ad=null;this.fp=new d.i;this.Al=this.Mi=this.Ni=this.od=this.rf=this.ud=this.Nt=this.Wm=this.Zc=this.vb=null;this.Hb=-1;this.ka=0;this.Rj()}b.prototype.Vp=function(){this.Rj();
this.At=!0;null==this.vb?(this.Wm=new d.ga(0),this.vb=[]):(this.Wm.cf(0),this.vb.length=0)};b.prototype.Wc=function(a,c){if(!this.At)throw d.g.xa();var b=new d.i;b.K(c);this.Wm.add(a);this.vb.push(b)};b.prototype.wo=function(){if(!this.At)throw d.g.xa();this.At=!1;null!=this.vb&&0<this.vb.length&&(this.Hb=0,this.Ec=!1)};b.prototype.jG=function(){this.Rj();this.zt=!0;null==this.vb?(this.Wm=new d.ga(0),this.vb=[]):(this.Wm.cf(0),this.vb.length=0)};b.prototype.OA=function(a,c){if(!this.zt)throw d.g.xa();
var b=new d.i;b.K(c);this.Wm.add(a);this.vb.push(b)};b.prototype.$B=function(){if(!this.zt)throw d.g.xa();this.zt=!1;null!=this.vb&&0<this.vb.length&&null!=this.Zc&&0<this.Zc.length&&(-1==this.Hb?this.Hb=3:2==this.Hb?this.Hb=3:3!=this.Hb&&(this.Hb=1),this.Ec=!1)};b.prototype.iG=function(){this.Rj();this.yt=!0;null==this.Zc?(this.Nt=new d.ga(0),this.Zc=[]):(this.Nt.cf(0),this.Zc.length=0)};b.prototype.LA=function(a,c){if(!this.yt)throw d.g.xa();var b=new d.i;b.K(c);this.Nt.add(a);this.Zc.push(b)};
b.prototype.ZB=function(){if(!this.yt)throw d.g.xa();this.yt=!1;null!=this.vb&&0<this.vb.length&&null!=this.Zc&&0<this.Zc.length&&(-1==this.Hb?this.Hb=3:1==this.Hb?this.Hb=3:3!=this.Hb&&(this.Hb=2),this.Ec=!1)};b.prototype.next=function(){if(this.Ec)return!1;for(var a=!0;a;)switch(this.Hb){case 0:a=this.Qw();break;case 1:a=this.yO();break;case 2:a=this.vO();break;case 3:a=this.xO();break;case 4:a=this.LS();break;case 5:a=this.HS();break;case 6:a=this.IS();break;case 7:a=this.JS();break;case 8:a=this.Qu();
break;case 9:a=this.Wy();break;case 10:a=this.$w();break;case 11:a=this.iP();break;case 12:a=this.fP();break;case 13:a=this.gP();break;case 14:a=this.hP();break;case 15:a=this.hF();break;case 16:a=this.gF();break;default:throw d.g.wa();}return this.Ec?!1:!0};b.prototype.YF=function(a){this.ka=a};b.prototype.Fw=function(a){return this.vb[a]};b.prototype.jw=function(a){return this.Zc[a]};b.prototype.jk=function(a){return this.Wm.read(a)};b.prototype.ek=function(a){return this.Nt.read(a)};b.Cv=function(a){return 1==
(a&1)};b.Yk=function(a){return 0==(a&1)};b.prototype.Rj=function(){this.At=this.yt=this.zt=!1;this.pf=this.qf=this.tg=this.ae=-1;this.Ec=!0};b.prototype.Qw=function(){this.mf=this.Ff=-1;if(10>this.vb.length)return this.ae=this.vb.length,this.Hb=5,!0;null==this.ad&&(this.ad=new d.bq(!0),this.cn=this.ad.Re(),this.ud=new d.ga(0));this.ad.Vp();for(var a=0;a<this.vb.length;a++){var c=this.vb[a];this.ad.gq(c.v,c.B)}this.ad.wo();this.ud.xb(2*this.vb.length);this.ud.resize(0);for(a=0;a<2*this.vb.length;a++)this.ud.add(a);
this.Lr(this.ud,2*this.vb.length,!0);this.ae=2*this.vb.length;this.Hb=4;return!0};b.prototype.yO=function(){this.mf=this.Ff=-1;if(10>this.vb.length||10>this.Zc.length)return this.ae=this.vb.length,this.Hb=6,!0;null==this.ad&&(this.ad=new d.bq(!0),this.cn=this.ad.Re(),this.ud=new d.ga(0));this.ad.Vp();for(var a=0;a<this.vb.length;a++){var c=this.vb[a];this.ad.gq(c.v,c.B)}this.ad.wo();this.ud.xb(2*this.vb.length);this.ud.resize(0);for(a=0;a<2*this.vb.length;a++)this.ud.add(a);this.Lr(this.ud,this.ud.size,
!0);this.ae=this.ud.size;-1!=this.qf&&(this.od.Fg(this.qf),this.Ni.resize(0),this.qf=-1);this.Hb=7;return this.gF()};b.prototype.vO=function(){this.mf=this.Ff=-1;if(10>this.vb.length||10>this.Zc.length)return this.ae=this.vb.length,this.Hb=6,!0;null==this.Ve&&(this.Ve=new d.bq(!0),this.Vt=this.Ve.Re(),this.rf=new d.ga(0));this.Ve.Vp();for(var a=0;a<this.Zc.length;a++){var c=this.Zc[a];this.Ve.gq(c.v,c.B)}this.Ve.wo();this.rf.xb(2*this.Zc.length);this.rf.resize(0);for(a=0;a<2*this.Zc.length;a++)this.rf.add(a);
this.Lr(this.rf,this.rf.size,!1);this.tg=this.rf.size;-1!=this.pf&&(this.od.Fg(this.pf),this.Mi.resize(0),this.pf=-1);this.Hb=7;return this.hF()};b.prototype.xO=function(){this.mf=this.Ff=-1;if(10>this.vb.length||10>this.Zc.length)return this.ae=this.vb.length,this.Hb=6,!0;null==this.ad&&(this.ad=new d.bq(!0),this.cn=this.ad.Re(),this.ud=new d.ga(0));null==this.Ve&&(this.Ve=new d.bq(!0),this.Vt=this.Ve.Re(),this.rf=new d.ga(0));this.ad.Vp();for(var a=0;a<this.vb.length;a++){var c=this.vb[a];this.ad.gq(c.v,
c.B)}this.ad.wo();this.Ve.Vp();for(a=0;a<this.Zc.length;a++)c=this.Zc[a],this.Ve.gq(c.v,c.B);this.Ve.wo();this.ud.xb(2*this.vb.length);this.rf.xb(2*this.Zc.length);this.ud.resize(0);this.rf.resize(0);for(a=0;a<2*this.vb.length;a++)this.ud.add(a);for(a=0;a<2*this.Zc.length;a++)this.rf.add(a);this.Lr(this.ud,this.ud.size,!0);this.Lr(this.rf,this.rf.size,!1);this.ae=this.ud.size;this.tg=this.rf.size;-1!=this.qf&&(this.od.Fg(this.qf),this.Ni.resize(0),this.qf=-1);-1!=this.pf&&(this.od.Fg(this.pf),this.Mi.resize(0),
this.pf=-1);this.Hb=7;return!0};b.prototype.LS=function(){var a=this.ud.get(--this.ae),c=a>>1;if(b.Yk(a))return this.ad.remove(c),0==this.ae?(this.mf=this.Ff=-1,this.Ec=!0,!1):!0;this.cn.uy(this.vb[c].v,this.vb[c].B,this.ka);this.Ff=c;this.Hb=10;return!0};b.prototype.HS=function(){if(-1==--this.ae)return this.mf=this.Ff=-1,this.Ec=!0,!1;this.tg=this.Ff=this.ae;this.Hb=13;return!0};b.prototype.IS=function(){if(-1==--this.ae)return this.mf=this.Ff=-1,this.Ec=!0,!1;this.Ff=this.ae;this.tg=this.Zc.length;
this.Hb=14;return!0};b.prototype.JS=function(){var a=this.ud.get(this.ae-1),c=this.rf.get(this.tg-1),e=this.pq(a,!0),f=this.pq(c,!1);return e>f?this.Qu():e<f?this.Wy():b.Cv(a)?this.Qu():b.Cv(c)?this.Wy():this.Qu()};b.prototype.Qu=function(){var a=this.ud.get(--this.ae),c=a>>1;if(b.Yk(a))return-1!=this.qf&&-1!=this.Ni.get(c)?(this.od.Jc(this.qf,this.Ni.get(c)),this.Ni.set(c,-1)):this.ad.remove(c),0==this.ae?(this.mf=this.Ff=-1,this.Ec=!0,!1):!0;if(-1!=this.pf&&0<this.od.vq(this.pf))for(a=this.od.gc(this.pf);-1!=
a;){var e=this.od.getData(a);this.Ve.lg(e);this.Mi.set(e,-1);e=this.od.bb(a);this.od.Jc(this.pf,a);a=e}0<this.Ve.size()?(this.Vt.uy(this.vb[c].v,this.vb[c].B,this.ka),this.Ff=c,this.Hb=12):(-1==this.qf&&(null==this.od&&(this.od=new d.$n),this.Ni=new d.ga(0),this.Ni.resize(this.vb.length,-1),this.Ni.dh(-1,0,this.vb.length),this.qf=this.od.jh(1)),this.Ni.set(c,this.od.addElement(this.qf,c)),this.Hb=7);return!0};b.prototype.Wy=function(){var a=this.rf.get(--this.tg),c=a>>1;if(b.Yk(a))return-1!=this.pf&&
-1!=this.Mi.get(c)?(this.od.Jc(this.pf,this.Mi.get(c)),this.Mi.set(c,-1)):this.Ve.remove(c),0==this.tg?(this.mf=this.Ff=-1,this.Ec=!0,!1):!0;if(-1!=this.qf&&0<this.od.vq(this.qf))for(a=this.od.gc(this.qf);-1!=a;){var e=this.od.getData(a);this.ad.lg(e);this.Ni.set(e,-1);e=this.od.bb(a);this.od.Jc(this.qf,a);a=e}0<this.ad.size()?(this.cn.uy(this.Zc[c].v,this.Zc[c].B,this.ka),this.mf=c,this.Hb=11):(-1==this.pf&&(null==this.od&&(this.od=new d.$n),this.Mi=new d.ga(0),this.Mi.resize(this.Zc.length,-1),
this.Mi.dh(-1,0,this.Zc.length),this.pf=this.od.jh(0)),this.Mi.set(c,this.od.addElement(this.pf,c)),this.Hb=7);return!0};b.prototype.$w=function(){this.mf=this.cn.next();if(-1!=this.mf)return!1;var a=this.ud.get(this.ae)>>1;this.ad.lg(a);this.Hb=4;return!0};b.prototype.iP=function(){this.Ff=this.cn.next();if(-1!=this.Ff)return!1;this.mf=this.Ff=-1;var a=this.rf.get(this.tg)>>1;this.Ve.lg(a);this.Hb=7;return!0};b.prototype.fP=function(){this.mf=this.Vt.next();if(-1!=this.mf)return!1;var a=this.ud.get(this.ae)>>
1;this.ad.lg(a);this.Hb=7;return!0};b.prototype.gP=function(){if(-1==--this.tg)return this.Hb=5,!0;this.fp.K(this.vb[this.ae]);var a=this.vb[this.tg];this.fp.P(this.ka,this.ka);return this.fp.jc(a)?(this.mf=this.tg,!1):!0};b.prototype.hP=function(){if(-1==--this.tg)return this.Hb=6,!0;this.fp.K(this.vb[this.ae]);var a=this.Zc[this.tg];this.fp.P(this.ka,this.ka);return this.fp.jc(a)?(this.mf=this.tg,!1):!0};b.prototype.hF=function(){if(null==this.ad)return this.Ec=!0,!1;this.ae=this.ud.size;0<this.ad.size()&&
this.ad.reset();-1!=this.qf&&(this.od.Fg(this.qf),this.Ni.resize(0),this.qf=-1);this.Ec=!1;return!0};b.prototype.gF=function(){if(null==this.Ve)return this.Ec=!0,!1;this.tg=this.rf.size;0<this.Ve.size()&&this.Ve.reset();-1!=this.pf&&(this.od.Fg(this.pf),this.Mi.resize(0),this.pf=-1);this.Ec=!1;return!0};b.prototype.Lr=function(a,c,b){null==this.Al&&(this.Al=new d.Rr);b=new g(this,b);this.Al.sort(a,0,c,b)};b.prototype.BS=function(a,c,e,f){var d=this;a.xd(c,e,function(a,c){var e=d.pq(a,f),h=d.pq(c,
f);return e<h||e==h&&b.Yk(a)&&b.Cv(c)?-1:1})};b.prototype.pq=function(a,c){var e=.5*this.ka;if(c){var f=this.vb[a>>1];return e=b.Yk(a)?f.C-e:f.G+e}f=this.Zc[a>>1];return e=b.Yk(a)?f.C-e:f.G+e};return b}();d.sz=m})(p||(p={}));(function(d){var m=function(){function g(){}g.Oa=function(b,a,c,e,f,d){var h=new g;h.v=b;h.C=a;h.Je=c;h.B=e;h.G=f;h.ig=d;return h};g.prototype.Ja=function(){this.Je=this.v=NaN};g.prototype.s=function(){return isNaN(this.v)};g.prototype.UO=function(){return isNaN(this.Je)};g.prototype.K=
function(b,a,c,e,f,d){void 0!==e?"number"===typeof b?(this.v=b,this.C=a,this.Je=c,this.B=e,this.G=f,this.ig=d):(this.v=b.x-.5*a,this.B=this.v+a,this.C=b.y-.5*c,this.G=this.C+c,this.Je=b.z-.5*e,this.ig=this.Je+e):(this.v=b,this.C=a,this.Je=c,this.B=b,this.G=a,this.ig=c)};g.prototype.move=function(b){this.v+=b.x;this.C+=b.y;this.Je+=b.z;this.B+=b.x;this.G+=b.y;this.ig+=b.z};g.prototype.copyTo=function(b){b.v=this.v;b.C=this.C;b.B=this.B;b.G=this.G};g.prototype.Oj=function(b,a,c){this.v>b?this.v=b:this.B<
b&&(this.B=b);this.C>a?this.C=a:this.G<a&&(this.G=a);0==isNaN(this.Je)?this.Je>c?this.Je=c:this.ig<c&&(this.ig=c):this.ig=this.Je=c};g.prototype.Db=function(b,a,c,e,f,h){if("number"===typeof b)e?(this.Db(b,a,c),this.Db(e,f,h)):this.s()?(this.v=b,this.C=a,this.Je=c,this.B=b,this.G=a,this.ig=c):this.Oj(b,a,c);else if(b instanceof d.ee)this.Db(b.x,b.y,b.z);else if(b instanceof g)b.s()||(this.Db(b.v,b.C,b.Je),this.Db(b.B,b.G,b.ig));else throw d.g.N();};g.prototype.Oa=function(b,a,c){b.s()||a.s()?this.Ja():
(this.v=b.qa,this.B=b.va,this.C=a.qa,this.G=a.va,this.Je=c.qa,this.ig=c.va)};g.prototype.hy=function(b){if(null==b||8>b.length)throw d.g.N();b[0]=new d.ee(this.v,this.C,this.Je);b[1]=new d.ee(this.v,this.G,this.Je);b[2]=new d.ee(this.B,this.G,this.Je);b[3]=new d.ee(this.B,this.C,this.Je);b[4]=new d.ee(this.v,this.C,this.ig);b[5]=new d.ee(this.v,this.G,this.ig);b[6]=new d.ee(this.B,this.G,this.ig);b[7]=new d.ee(this.B,this.C,this.ig)};g.prototype.Ey=function(b){if(null==b||0==b.length)this.Ja();else{var a=
b[0];this.K(a.x,a.y,a.z);for(a=1;a<b.length;a++){var c=b[a];this.Oj(c.x,c.y,c.z)}}};return g}();d.fH=m})(p||(p={}));(function(d){(function(d){d.wa=function(){var d=Error();d.message="Internal Error";return d};d.qe=function(){var d=Error();d.message="Not Implemented";return d};d.cj=function(){var d=Error();d.message="The input unit and the spatial reference unit are not of the same unit type.ie Linear vs.Angular";return d};d.xa=function(){var d=Error();d.message="Invalid Call";return d};d.N=function(d){var b=
Error();b.message="Illegal Argument Exception";void 0!==d&&(b.message+=": "+d);return b};d.BI=function(){var d=Error();d.message="Runtime Exception.";return d};d.ra=function(d){var b=Error();b.message="Geometry Exception: "+d;return b};d.PG=function(){var d=Error();d.message="Assert Failed Exception";return d};d.Uc=function(){var d=Error();d.message="IndexOutOfBoundsException";return d};d.aU=function(d){d.message="UserCancelException";return d}})(d.g||(d.g={}))})(p||(p={}));(function(d){var m=function(){function a(a,
b){this.Ma=a;this.hE=b;this.kE=-1;this.rk=!1}a.prototype.next=function(){if(++this.kE==this.hE.F())return null;var a=this.hE.Fa(this.kE);a.scale(this.Ma.Rb);var b=new d.Ka;this.Ma.Iv(a,this.rk,b);return b};a.prototype.ya=function(){return 0};return a}(),g=function(){function a(a,b,f){this.Ma=a;this.Zt=b;this.Om=!1;this.Um=f;this.Mt=[0];this.zj=[0];this.Qi=[0];this.Sq=[0];this.rk=!1;this.$o=new d.Ka;this.Bj=[]}a.prototype.next=function(){if(this.Om){this.Om=!1;this.bd.ia();var a=d.T.Yj(this.$o);return a=
d.Of.Qj(a,this.Ma.jp,!0,!0,this.Ma.Yb)}null==this.bd&&(this.bd=this.Zt.Ca(),this.bd.kb(),null!=this.Um&&this.Um.lo());if(!this.bd.La()){if(!this.bd.kb())return null;null!=this.Um&&this.Um.lo()}a=null;this.zj[0]=0;this.Fx=this.Mt[0]=0;this.uh=NaN;this.Om=!1;for(var e=this.Bj.length=0,f=new d.b,h=new d.b,l=[0];this.bd.La()&&8>this.Fx;){var k=this.bd.ia();f.J(k.Mb());h.J(k.oc());f.scale(this.Ma.Rb);h.scale(this.Ma.Rb);d.ui.Hs(f,h)?f.x=h.x:d.ui.Fs(f,h)&&(h.x=f.x);this.Bj.length=0;d.ui.kC(this.Ma.Gb,this.Ma.Xb,
this.Ma.ke,f,h,this.Ma.Nx,this.Ma.hr,l,this.Qi,this.Sq,this.Bj,this.Mt);null!=this.Um&&(k=this.Bj.slice(0),this.Um.dD(this.Um.ea()-1,k,k.length-1));d.ui.Gs(f,h)?(this.$o.Ja(),this.Ma.Iv(f,this.rk,this.$o),this.Om=!0):(this.$o.Ja(),this.Om=this.Lv(l[0],this.$o));if(this.Om){this.bd.oi();if(this.bd.Ow()){this.bd.oi();this.bd.ia();break}this.bd.yR();break}null==a&&(a=new d.Ka,a.lo());this.TA(a);e++}this.Mt[0]=0;if(0<e){for(l=this.bd.Jb();0<e;)this.bd.oi(),f.J(this.Zt.Fa(this.bd.Jb())),h.J(this.Zt.Fa(this.bd.Bm())),
f.scale(this.Ma.Rb),h.scale(this.Ma.Rb),this.rk&&(d.ui.Hs(f,h)?f.x=h.x:d.ui.Fs(f,h)&&(h.x=f.x)),this.Bj.length=0,d.ui.kC(this.Ma.Gb,this.Ma.Xb,this.Ma.ke,h,f,this.Ma.Nx,this.Ma.hr,null,this.Qi,this.Sq,this.Bj,this.Mt),this.TA(a),e--;f.J(this.Zt.Fa(this.bd.Jb()));f.scale(this.Ma.Rb);b.kq(this.Ma.Gb,this.Ma.Xb,this.Ma.Rb,this.Ma.hb,f,this.uh+1.570796326794897,this.uh+4.71238898038469,this.Ma.Sm,this.rk,this.zj,a,NaN,NaN);this.bd.Sb(l);this.bd.ia();e=d.Ia.Cg(null,a,!0);return a=d.Of.Qj(a,e,!0,!0,this.Ma.Yb)}this.Om=
!1;this.bd.ia();a=d.T.Yj(this.$o);return a=d.Of.Qj(a,this.Ma.jp,!0,!0,this.Ma.Yb)};a.prototype.TA=function(a){var c=this.Bj[0],f,h=this.Qi[0]-1.570796326794897,l=this.Sq[0]+1.570796326794897,k;if(!isNaN(this.uh)){this.uh>=this.Qi[0]?(f=this.uh+1.570796326794897,h=f+3.141592653589793-(this.uh-this.Qi[0])):(f=this.uh+1.570796326794897,h=f+3.141592653589793-(6.283185307179586-(this.Qi[0]-this.uh)));k=this.uh>=this.Qi[0]&&3.141592653589793>=this.uh-this.Qi[0]?!1:this.uh<this.Qi[0]&&3.141592653589793<=
this.Qi[0]-this.uh?!1:!0;var g=!1;if(Math.abs(h-f)<=.5*this.Ma.Sm)if(k){var u=a.Fa(a.F()-2);u.scale(this.Ma.Rb);var q=new d.ca(0);d.zb.gw(this.Ma.Gb,this.Ma.Xb,c.x,c.y,u.x,u.y,q);for(u=q.l;u<=f;)u+=6.283185307179586;for(;u>f;)u-=6.283185307179586;u<h&&(g=!0)}else g=!0;g?(a.eF(0,a.F()-1),this.rk||(c=new d.b,c.J(a.Fa(a.F()-1)),c.scale(this.Ma.Rb),-3.141592653589793>c.x-this.zj[0]?this.zj[0]-=6.283185307179586:3.141592653589793<c.x-this.zj[0]&&(this.zj[0]+=6.283185307179586)),k||(h=.5*(h+f))):(k?(f=
new d.b,f.J(c),f.scale(1/this.Ma.Rb),a.kf(0,-1,f)):b.kq(this.Ma.Gb,this.Ma.Xb,this.Ma.Rb,this.Ma.hb,this.Bj[0],f,h,this.Ma.Sm,this.rk,this.zj,a,NaN,NaN),this.Fx+=1)}b.Hv(this.Ma.Gb,this.Ma.Xb,this.Ma.Rb,this.Ma.hb,this.Ma.ke,this.Bj,h,l,this.rk,this.zj,a);this.uh=this.Sq[0]};a.prototype.Lv=function(a,b){return this.Ma.Lv(this.Bj,a,this.Qi[0],this.Sq[0],this.rk,b)};a.prototype.ya=function(){return 0};return a}(),b=function(){function a(){}a.buffer=function(b,e,f,h,l,k){if(null==b)throw d.g.N("Geometry::Geodesic_bufferer::buffer");
if(b.s())return new d.Ka(b.description);var c=new a;c.sg=e;c.wc=d.Ya.Em(e);var g=d.Ya.ft(c.wc);c.Yb=k;c.Gb=d.Ya.Ts(c.wc);c.Xb=g*(2-g);c.Rb=c.wc.Se().Dj;c.ka=c.sg.xq();c.jp=c.wc.xq();c.hr=c.jp*c.Rb;c.ip=1.570796326794897/c.Rb;c.rU=3.141592653589793/c.Rb;c.Uq=6.283185307179586/c.Rb;c.sU=c.Uq/6;c.Ix=0;c.qU=1.5707963267948966*c.Gb/c.Ix;4==f?(c.ke=2,c.Gt=!0):(c.ke=f,c.Gt=!1);c.Da=h;c.hb=Math.abs(h);isNaN(l)||.001>l?c.sS():c.Rm=l;f=b.D();d.T.Lc(f)?(f=new d.Xa(b.description),f.Bc(b,!0),b=f,f=1607):197==
f&&(f=new d.i,b.o(f),f.aa()<=c.ka||f.ba()<=c.ka?(f=new d.Xa(b.description),f.Wc(b,!1),b=f,f=1607):(f=new d.Ka(b.description),f.Wc(b,!1),b=f,f=1736));c.tS();d.T.Km(f)||c.uS();if(c.hb<=.5*c.Rm)return 1736!=f?new d.Ka(b.description):c.Gt?b:d.ui.oq(b,c.sg,c.ke,c.Nx,-1,k);if(0>c.Da&&1736!=f)return new d.Ka(b.description);c.Gt&&d.T.Kc(f)?(e=d.ui.oq(b,e,4,NaN,c.Rm,k),b=d.Ya.Wl(e,c.sg,c.wc)):b=d.Ya.Wl(b,c.sg,c.wc);b=d.gh.qo(b,c.wc);if(b.s())return new d.Ka(b.description);!c.Gt&&d.T.Kc(f)&&(b=d.ui.IE(c.Rb,
b));b=a.PS(b,c.wc);switch(f){case 1736:e=c.yK(b);break;case 1607:e=c.zK(b);break;case 550:e=c.wK(b);break;case 33:e=c.xK(b);break;default:throw d.g.ra("corrupted_geometry");}c=d.Ya.Wl(e,c.wc,c.sg);c.Ik(b.description);return c};a.prototype.yK=function(a){var b=new d.Ka;a=new g(this,a,b);a=d.wi.local().$(a,this.wc,this.Yb).next();a=d.Vn.nl(a,this.wc,2);var c=new d.Bg;c.scale(1/this.Rb,1/this.Rb);b.Oe(c);b=d.Vn.nl(b,this.wc,2);return 0<=this.Da?d.wi.local().$(b,a,this.wc,this.Yb):d.Zr.local().$(b,a,
this.wc,this.Yb)};a.prototype.zK=function(a){a=new g(this,a,null);a=d.wi.local().$(a,this.wc,this.Yb).next();return a=d.Vn.nl(a,this.wc,2)};a.prototype.wK=function(a){a=new m(this,a);a=d.wi.local().$(a,this.wc,this.Yb).next();return a=d.Vn.nl(a,this.wc,2)};a.prototype.xK=function(a){a=a.w();a.scale(this.Rb);var b=new d.Ka;this.Iv(a,!1,b);return b=d.Vn.nl(b,this.wc,2)};a.prototype.Lv=function(b,e,f,h,l,k){var c=b[0],g=b[b.length-1],q=c.y>g.y?c.y:g.y,r=d.u.q(this.Gb,this.Xb,c.y<g.y?c.y:g.y),q=d.u.q(this.Gb,
this.Xb,q);if(.001<this.Ix-(r+e+this.hb)&&.001<this.Ix+(q-e-this.hb))return!1;e=f-1.570796326794897;f=h+1.570796326794897;var r=e-3.141592653589793,q=e+3.141592653589793,w=f+3.141592653589793,m=[NaN],x=[NaN],v=[NaN],p=[NaN];h=!1;a.wG(this.Gb,this.Xb,this.hb,c,e,r,g,f,m,x);a.wG(this.Gb,this.Xb,this.hb,g,w,f,c,r,v,p);f<m[0]&&m[0]<w?h=!0:f<x[0]&&x[0]<w&&(h=!0);h||(r<v[0]&&v[0]<e?h=!0:r<p[0]&&p[0]<e&&(h=!0));if(!h&&l)return!1;for(var A=[],y=b.length-1;0<=y;y--)A.push(b[y]);k.Ja();k.lo();y=[0];a.Hv(this.Gb,
this.Xb,this.Rb,this.hb,this.ke,b,e,f,l,y,k);a.kq(this.Gb,this.Xb,this.Rb,this.hb,g,f,w,this.Sm,l,y,k,m[0],x[0]);a.Hv(this.Gb,this.Xb,this.Rb,this.hb,this.ke,A,w,q,l,y,k);a.kq(this.Gb,this.Xb,this.Rb,this.hb,c,r,e,this.Sm,l,y,k,v[0],p[0]);b=!1;l||(b=this.zB(this.Rb,k));return h||b};a.prototype.Iv=function(b,e,f){f.Ja();f.lo();a.kq(this.Gb,this.Xb,this.Rb,this.hb,b,-this.Sm,6.283185307179586,this.Sm,e,[0],f,NaN,NaN);e||this.zB(this.Rb,f)};a.prototype.zB=function(a,b){var c=this.XK(a,b),e=this.YK(a,
b);return c||e};a.prototype.XK=function(a,b){var c=b.F(),e=!1,l=new d.i;b.o(l);if(!d.j.S(l.G*a,1.570796326794897)&&!d.j.S(l.C*a,-1.570796326794897))return!1;for(var k=new d.b,c=c-1;0<=c;c--)b.w(c,k),k.y==l.G&&d.j.S(k.y*a,1.570796326794897)?(e=!0,this.RE(k,c,b)):k.y==l.C&&d.j.S(k.y*a,-1.570796326794897)&&(e=!0,this.RE(k,c,b));return e};a.prototype.YK=function(a,b){var c=b.Fa(0),e=b.Fa(b.F()-1);return 3.141592653589793<Math.abs(c.x-e.x)*a?(this.RQ(b),!0):this.WK(b)};a.prototype.WK=function(a){return 0>
a.Mh()?(this.QQ(a),!0):!1};a.prototype.RE=function(a,b,f){var c=f.F(),e=0<b?b-1:c-1,c=f.Fa(b<c-1?b+1:0),e=f.Fa(e);if(!d.j.S(c.y,a.y)&&!d.j.S(c.x,a.x)){var k=new d.b;k.ma(c.x,a.y);f.ic(b,k)}d.j.S(e.y,a.y)||d.j.S(e.x,a.x)||(c=new d.b,c.ma(e.x,a.y),f.kf(0,b,c))};a.prototype.RQ=function(a){var b=new d.Ka,c=new d.Ka,h=new d.Bg,l=a.Fa(0),k=a.Fa(a.F()-1),g=new d.b;l.x>k.x?(k=this.ip,h.Nn(-this.Uq,0)):(k=-this.ip,h.Nn(this.Uq,0));b.add(a,!1);a.Ja();c.add(b,!1);c.Oe(h);l=new d.i;c.o(l);l.P((this.Uq-l.aa())/
2,0);l.C=-this.ip;l.G=this.ip;for(var u=0;u<c.F();u++)c.w(u,g),b.kf(0,-1,g);c.Oe(h);for(u=0;u<c.F();u++)c.w(u,g),b.kf(0,-1,g);c=b.Fa(0);h=b.Fa(b.F()-1);g.ma(h.x,k);b.kf(0,-1,g);g.ma(.5*(h.x+c.x),k);b.kf(0,-1,g);g.ma(c.x,k);b.kf(0,-1,g);b=d.gh.Rw(b,this.wc,2,l.v);b=d.gh.Rw(b,this.wc,2,l.B);b=d.Ed.clip(b,l,this.jp,NaN);a.add(b,!1)};a.prototype.QQ=function(a){var b=new d.i;a.o(b);b.P((this.Uq-b.aa())/2,0);b.C=-this.ip;b.G=this.ip;a.lo();var c=new d.b;c.ma(b.v,b.C);a.kf(1,-1,c);c.ma(b.v,b.G);a.kf(1,-1,
c);c.ma(.5*(b.v+b.B),b.G);a.kf(1,-1,c);c.ma(b.B,b.G);a.kf(1,-1,c);c.ma(b.B,b.C);a.kf(1,-1,c);c.ma(.5*(b.v+b.B),b.C);a.kf(1,-1,c)};a.Hv=function(b,e,f,h,l,k,g,u,q,r,w){var c=null;q||(c=new d.b,c.Eh(),0<w.F()&&(c.J(w.Fa(w.F()-1)),c.scale(f)));var n=new d.ca(0),m=new d.ca(0),p=new d.ca(0),A=new d.b,y=new d.b,z=k[k.length-1];f=1/f;for(var B=0;B<k.length;B++){var D=k[B],E;0==B?E=g:B==k.length-1?E=u:(d.zb.Rd(b,e,z.x,z.y,D.x,D.y,null,null,n,l),E=n.l-1.570796326794897);d.zb.Ph(b,e,D.x,D.y,h,E,m,p);q?y.ma(m.l,
p.l):(A.ma(m.l,p.l),a.Gz(D.x,A.x,c.x,r),y.ma(r[0]+A.x,A.y),c.J(y));y.scale(f);w.kf(0,-1,y)}};a.kq=function(b,e,f,h,l,k,g,u,q,r,w,m,x){if(!(g-k<u)){var c=new d.ca(0),n=new d.ca(0),t=new d.b,p=new d.b,z=null;q||(z=new d.b,z.Eh(),0<w.F()&&(z.J(w.Fa(w.F()-1)),z.scale(f)));var B=d.I.truncate(Math.ceil(k/u)),D=B++*u;D==k&&(D=B++*u);for(f=1/f;D<g+u;){k<m&&m<D?(D=m,B--):k<x&&x<D&&(D=x,B--);if(D>=g)break;d.zb.Ph(b,e,l.x,l.y,h,D,c,n);q?p.ma(c.l,n.l):(t.ma(c.l,n.l),a.Gz(l.x,t.x,z.x,r),p.ma(r[0]+t.x,t.y),z.J(p));
p.scale(f);w.kf(0,-1,p);k=D;D=B++*u}}};a.wG=function(a,b,f,h,l,k,g,u,q,r){var c=new d.b,e=new d.b,n=new d.ca(0),m=new d.ca(0);d.zb.Ph(a,b,h.x,h.y,f,l,n,m);c.ma(n.l,m.l);d.zb.Ph(a,b,h.x,h.y,f,k,n,m);e.ma(n.l,m.l);f=new d.ca(0);d.zb.gw(a,b,g.x,g.y,c.x,c.y,f);q[0]=f.l;d.zb.gw(a,b,g.x,g.y,e.x,e.y,f);for(r[0]=f.l;q[0]<=r[0];)q[0]+=6.283185307179586;for(;q[0]>r[0];)q[0]-=6.283185307179586;for(;q[0]>=u;)q[0]-=6.283185307179586,r[0]-=6.283185307179586;for(;q[0]<u;)q[0]+=6.283185307179586,r[0]+=6.283185307179586};
a.Gz=function(a,b,f,d){if(isNaN(f)){for(;3.141592653589793<d[0]+b-a;)d[0]-=6.283185307179586;for(;3.141592653589793<a-(d[0]+b);)d[0]+=6.283185307179586}else 3.141592653589793<d[0]+b-f?d[0]-=6.283185307179586:3.141592653589793<f-(d[0]+b)&&(d[0]+=6.283185307179586)};a.PS=function(a,b){var c=a.D(),e;d.T.Kc(c)?e=a.ea():550==c?e=a.F():e=1;if(1==e)return a;var l=new d.ga(0);l.resize(e);for(var k=[],g=new d.i,u=0;u<e;u++){l.write(u,u);var q;d.T.Kc(c)?(a.Ti(u,g),q=g.Af()):q=a.Fa(u);q=d.qH.QS(b,q);k[u]=q}l.xd(0,
l.size,function(a,b){return k[a]<k[b]?-1:k[a]>k[b]?1:0});g=a.Pa();for(u=0;u<e;u++)q=l.read(u),d.T.Kc(c)?g.Zj(a,q,!0):g.Pd(a,q,q+1);return g};a.prototype.tS=function(){var a=Math.min(3.141592653589793*this.Gb-this.hb,this.hb),a=Math.min(a,.39269908169872414*this.Gb),b=new d.b;b.ma(0,10*this.Rb);var f=45*this.Rb,h=new d.ca(0),l=new d.ca(0),k=new d.ca(0),g=new d.ca(0),u=new d.ca(0),q=new d.ca(0),r=new d.ca(0),w=new d.ca(0),m=new d.b,x=new d.b,p=new d.b,C=new d.b;d.zb.Ph(this.Gb,this.Xb,b.x,b.y,a,0,h,
l);m.ma(h.l,l.l);d.zb.Ph(this.Gb,this.Xb,b.x,b.y,a,f,k,g);x.ma(k.l,g.l);for(var h=new d.ca(0),l=new d.ca(0),A=new d.ca(0);;){d.zb.Ph(this.Gb,this.Xb,b.x,b.y,a,.5*(0+f),u,q);p.ma(u.l,q.l);d.zb.Rd(this.Gb,this.Xb,m.x,m.y,x.x,x.y,h,l,null,2);d.zb.dk(this.Gb,this.Xb,m.x,m.y,.5*h.l,l.l,r,w,2);C.ma(r.l,w.l);d.zb.Rd(this.Gb,this.Xb,p.x,p.y,C.x,C.y,A,null,null,2);if(A.l<=this.Rm)break;f*=.9;d.zb.Ph(this.Gb,this.Xb,b.x,b.y,a,f,k,g);x.ma(k.l,g.l)}this.Sm=6.283185307179586/Math.ceil(6.283185307179586/(f-0))};
a.prototype.uS=function(){var a=Math.min(3.141592653589793*this.Gb-this.hb,this.hb),a=Math.min(a,.39269908169872414*this.Gb),b=new d.b,f=new d.b;b.ma(0,10*this.Rb);f.ma(10*this.Rb,10*this.Rb);var h=new d.ca(0),l=new d.ca(0),k=new d.ca(0);d.zb.Rd(this.Gb,this.Xb,b.x,b.y,f.x,f.y,k,h,l,this.ke);var g=new d.ca(0),u=new d.ca(0),q=new d.ca(0),r=new d.ca(0),w=new d.b,m=new d.ca(0),x=new d.ca(0),p=new d.ca(0),C=new d.ca(0),A=new d.ca(0),y=new d.ca(0),z=new d.ca(0),B=new d.ca(0),D=new d.ca(0),E=new d.b,G=
new d.b,I=new d.b,H=new d.b,F=1,h=h.l,l=l.l+1.570796326794897,k=k.l;d.zb.Ph(this.Gb,this.Xb,b.x,b.y,a,h-1.570796326794897,x,p);E.ma(x.l,p.l);d.zb.Ph(this.Gb,this.Xb,f.x,f.y,a,l,C,A);G.ma(C.l,A.l);for(var x=new d.ca(0),p=new d.ca(0),l=new d.ca(0),N=new d.ca(0);;){d.zb.dk(this.Gb,this.Xb,b.x,b.y,.5*(0+F)*k,h,g,u,this.ke);w.ma(g.l,u.l);d.zb.Rd(this.Gb,this.Xb,b.x,b.y,w.x,w.y,null,null,m,this.ke);d.zb.Ph(this.Gb,this.Xb,w.x,w.y,a,m.l+1.570796326794897,y,z);I.ma(y.l,z.l);d.zb.Rd(this.Gb,this.Xb,E.x,E.y,
G.x,G.y,x,p,null,2);d.zb.dk(this.Gb,this.Xb,E.x,E.y,.5*x.l,p.l,B,D,2);H.ma(B.l,D.l);d.zb.Rd(this.Gb,this.Xb,I.x,I.y,H.x,H.y,l,null,null,2);if(l.l<=this.Rm)break;F*=.9;d.zb.dk(this.Gb,this.Xb,b.x,b.y,F*k,h,q,r,this.ke);f.ma(q.l,r.l);d.zb.Rd(this.Gb,this.Xb,b.x,b.y,f.x,f.y,null,null,N,this.ke);d.zb.Ph(this.Gb,this.Xb,f.x,f.y,a,N.l+1.570796326794897,C,A);G.ma(C.l,A.l)}a=F*k;1E5<a&&(a=1E5);this.Nx=a};a.prototype.sS=function(){var a;a=5E4<this.hb?100:1E4<this.hb?10:1;500>this.hb/a&&(a=this.hb/500);.01>
a&&(a=.01);this.Rm=a};return a}();d.pH=b})(p||(p={}));(function(d){var m=function(){function g(){}g.ac=function(b,a){var c=new d.b;c.J(a);b.push(c)};g.$i=function(b,a){b.add(a.x);b.add(a.y)};g.cx=function(b){b.cf(b.size-2)};g.cy=function(b,a){a.ma(b.get(b.size-2),b.get(b.size-1))};g.oq=function(b,a,c,e,f,h){if(null==b)throw d.g.N();var l=b.D();if(b.s()||d.T.Km(l))return b;var k=new g;k.sg=a;k.wc=d.Ya.Em(a);var n=d.Ya.ft(k.wc);k.Yb=h;k.Gb=d.Ya.Ts(k.wc);k.Xb=n*(2-n);k.Rb=k.wc.Se().Dj;k.jp=k.wc.xq();
k.hr=k.jp*k.Rb;k.Bx=e;k.Ax=f;k.ke=c;197==l?(c=new d.Ka(b.description),c.Wc(b,!1)):d.T.Lc(l)?(c=new d.Xa(b.description),c.Bc(b,!0)):c=b;if(4!=k.ke){a=0==k.sg.lc(k.wc)?d.Ya.Wl(c,k.sg,k.wc):d.gh.qo(c,k.wc);if(a.s())return a;a=g.IE(k.Rb,a);a=k.hw(a);a=d.Vn.nl(a,k.wc,k.ke);k=d.Ya.Wl(a,k.wc,k.sg)}else{2==d.Nf.Am(a)?(b=d.Ya.TN(),a=d.$r.local().$(c,b,a,h),a==b&&(a=new d.Ka,b.copyTo(a))):a=d.gh.qo(c,k.wc);if(a.s())return a;k=k.wS(a)}return k};g.IE=function(b,a){var c=new d.i;a.dd(c);if(3.141592653589793>c.aa()*
b)return a;for(var e=!1,c=a.Ca(),f=new d.b,h=new d.b;c.kb();)for(;c.La();){var l=c.ia();f.J(l.Mb());h.J(l.oc());f.scale(b);h.scale(b);if(3.141592653589793<Math.abs(f.x-h.x)){var k=g.Gs(f,h);if(!k){e=!0;break}if(6.283185307179586<Math.abs(f.x-h.x)){e=!0;break}}}if(!e)return a;var e=a.Pa(),n=1<a.description.Aa,u=new d.b,q=new d.b,r=new d.b,w=new d.b,m=new d.Va;for(c.Lk();c.kb();)for(var x=NaN,p=[0];c.La();){l=c.ia();f.J(l.Mb());h.J(l.oc());f.scale(b);h.scale(b);isNaN(x)?(g.Bd(f.x,NaN,p),q.J(f)):q.J(r);
x=q.x;if(k=g.Gs(f,h)){if(6.283185307179586<h.x-f.x)for(;6.283185307179586<h.x-f.x;)h.x-=6.283185307179586;if(-6.283185307179586>h.x-f.x)for(;-6.283185307179586>h.x-f.x;)h.x+=6.283185307179586;g.Bd(h.x,NaN,p);r.J(h)}else u.J(h),g.eK(u),g.Bd(u.x,x,p),r.ma(p[0]+u.x,u.y);.5>Math.abs(r.x-h.x)&&r.J(h);n?(l.uu(0,m),w.J(q),w.scale(1/b),m.ic(w),(k=c.wl())?e.df(m):e.lineTo(m),c.Jm()&&!a.vc(c.Qa)&&(l.uu(1,m),w.J(r),w.scale(1/b),m.ic(w),e.lineTo(m))):((k=c.wl())&&e.Sw(),l=e.ea()-1,w.J(q),w.scale(1/b),e.kf(l,
-1,w),c.Jm()&&!a.vc(c.Qa)&&(w.J(r),w.scale(1/b),e.kf(l,-1,w)))}return e};g.kC=function(b,a,c,e,f,h,l,k,n,u,q,r){var w=new d.b,m=new d.b,x=0<e.compare(f);g.Ez(x,e,f,w,m);g.Jz(b,a,c,w,m,h,NaN,l,k,n,u,null,q,r);x&&g.gy(n,u,null,q)};g.prototype.hw=function(b){var a=b.Pa(),c=b.Ca(),e=[],f=null,h=null,l=1<b.description.Aa;l&&(f=new d.qd(0),h=new d.Ag);for(var k=[0],n=new d.b,u=new d.b,q=new d.b,r=new d.b;c.kb();)for(k[0]=0;c.La();){var m=c.ia();n.J(m.Mb());u.J(m.oc());n.scale(this.Rb);u.scale(this.Rb);
var t=0<n.compare(u);g.Ez(t,n,u,q,r);e.length=0;null!=f&&f.cf(0);0<this.Bx?g.Jz(this.Gb,this.Xb,this.ke,q,r,this.Bx,this.Ax,this.hr,null,null,null,l?f:null,e,k):g.dH(this.Gb,this.Xb,this.ke,q,r,this.Ax,this.hr,l?f:null,e,k);t&&g.gy(null,null,l?f:null,e);e[0].J(m.Mb());e[e.length-1].J(m.oc());for(var x=1;x<e.length-1;x++)e[x].scale(1/this.Rb);l?(t=g.Cz(t,m,h),g.oz(c.wl(),c.Jm()&&!b.vc(c.Qa),m,t,f,e,a)):g.mz(c.wl(),c.Jm()&&!b.vc(c.Qa),e,a)}return a};g.prototype.wS=function(b){var a=b.Pa(),c=b.Ca(),
e=[],f=null,h=new d.Ag,l=1<b.description.Aa;for(l&&(f=new d.qd(0));c.kb();)for(;c.La();){var k=c.ia(),n=k.Mb(),u=k.oc(),n=0<n.compare(u),u=g.Cz(n,k,h);e.length=0;null!=f&&f.cf(0);g.FR(this.Gb,this.Xb,this.Rb,u,this.sg,this.Bx,this.Ax,l?f:null,e);n&&g.gy(null,null,l?f:null,e);l?g.oz(c.wl(),c.Jm()&&!b.vc(c.Qa),k,u,f,e,a):g.mz(c.wl(),c.Jm()&&!b.vc(c.Qa),e,a)}return a};g.mz=function(b,a,c,e){b&&e.Sw();b=e.ea()-1;var f=c.slice(0);e.dD(b,f,f.length-1);a&&e.kf(b,-1,c[c.length-1])};g.oz=function(b,a,c,e,
f,h,l){var k=new d.Va;c.En(k);b?l.df(k):l.lineTo(k);if(2<h.length){b=e.$b();for(var g=1;g<h.length-1;g++){var u=e.AD(f.get(g)*b);e.uu(u,k);k.ic(h[g]);l.lineTo(k)}}a&&(c.Bn(k),l.lineTo(k))};g.Jz=function(b,a,c,e,f,h,l,k,n,u,q,r,m,t){var w=new d.ca(0),p=new d.ca(0),C=new d.ca(0);d.zb.Rd(b,a,e.x,e.y,f.x,f.y,C,w,p,c);var C=C.l,A=w=w.l,p=p.l;0>A&&(A+=6.283185307179586);0>p&&(p+=6.283185307179586);null!=n&&(n[0]=C);null!=u&&(u[0]=A);null!=q&&(q[0]=p);u=n=NaN;null!=r&&(u=d.u.gg(b,a),q=d.u.q(b,a,e.y),n=(u-
q)/C,u=(u+q)/C);q=g.Hs(e,f);var p=g.Fs(e,f),A=q||p,y=g.wz(e,f,k),z=new d.ca(0),B=new d.ca(0),D=new d.b,E=new d.b,G=new d.b;g.Bd(e.x,NaN,t);var I=[t[0]];if(C<=h)g.ac(m,e),g.Bd(f.x,NaN,t),null!=r&&r.add(0),A?(q&&g.by(e,f,r,m),p&&g.Vx(e,f,r,m)):y?g.Xx(e,f,w,n,u,r,m):0<l&&(E.ma(e.x-I[0],e.y),D.ma(f.x-t[0],f.y),g.yv(b,a,c,e,C,w,E,D,0,1,l,r,m,I)),g.ac(m,f);else{h=1+d.I.truncate(Math.ceil(C/h));var H=C/(h-1),F=new d.b,N=0;g.ac(m,e);F.J(e);E.ma(e.x-t[0],e.y);null!=r&&r.add(0);for(var K=1;K<h;K++){var J;K<
h-1?(d.zb.dk(b,a,e.x,e.y,K*H,w,z,B,c),D.ma(z.l,B.l),g.Bd(D.x,F.x,t),G.ma(t[0]+D.x,D.y),J=K/(h-1)):(g.Bd(f.x,NaN,t),D.ma(f.x-t[0],f.y),G.J(f),J=1);A?(1==K&&q&&g.by(e,G,r,m),K==h-1&&p&&g.Vx(F,f,r,m)):y?g.uz(F,G,k)&&(e.x<f.x?F.x>G.x&&(t[0]+=6.283185307179586,G.ma(t[0]+D.x,D.y)):F.x<G.x&&(t[0]-=6.283185307179586,G.ma(t[0]+D.x,D.y)),g.Xx(F,G,w,n,u,r,m)):0<l&&g.yv(b,a,c,e,C,w,E,D,N,J,l,r,m,I);g.ac(m,G);null!=r&&r.add(J);F.J(G);E.J(D);I[0]=t[0];N=J}}};g.dH=function(b,a,c,e,f,h,l,k,n,u){var q=new d.ca(0),
r=new d.ca(0),m=new d.ca(0);d.zb.Rd(b,a,e.x,e.y,f.x,f.y,m,q,r,c);var r=m.l,q=q.l,t=m=NaN;if(null!=k)var t=d.u.gg(b,a),x=d.u.q(b,a,e.y),m=(t-x)/r,t=(t+x)/r;var x=g.Hs(e,f),p=g.Fs(e,f),C=x||p;l=g.wz(e,f,l);var A=g.Gs(e,f),A=C||l||A;g.Bd(e.x,NaN,u);var y=new d.b;g.ac(n,e);y.J(e);null!=k&&k.add(0);A?(C?(x&&g.by(e,f,k,n),p&&g.Vx(e,f,k,n)):l&&g.Xx(e,f,q,m,t,k,n),g.Bd(f.x,NaN,u),g.ac(n,f)):r<=h?(g.Bd(f.x,NaN,u),g.ac(n,f)):(m=new d.b,l=new d.b,m.J(e),l.J(f),m.x-=u[0],l.x-=u[0],-3.141592653589793>l.x?l.x+=
6.283185307179586:3.141592653589793<l.x&&(l.x-=6.283185307179586),g.yv(b,a,c,e,r,q,m,l,0,1,h,k,n,u),g.ac(n,f),g.Bd(f.x,NaN,u));null!=k&&k.add(1)};g.yv=function(b,a,c,e,f,h,l,k,n,u,q,r,m,t){var w=new d.b,p=new d.b;w.ma(l.x+t[0],l.y);new d.ca(0);new d.ca(0);new d.ca(0);new d.ca(0);var C=new d.ca(0),A=new d.ca(0),y=new d.ca(0),z=new d.b,B=new d.b,D=new d.b,E=new d.b;z.J(l);B.J(k);l=new d.qd(0);k=new d.qd(0);g.$i(l,B);k.add(u);var G=new d.b,I=new d.yb,H=[];for(g.Kz(4,H);0<l.size;){for(var F=!1,N,K=NaN,
J=0;3>J;J++)if(N=H[J]*u+(1-H[J])*n,d.zb.dk(b,a,e.x,e.y,N*f,h,C,A,c),D.ma(C.l,A.l),0==J&&(K=N,E.J(D)),g.mR(z,D,B,I),I.Kb(I.Gd(D,!0),G),d.zb.Rd(b,a,D.x,D.y,G.x,G.y,y,null,null,2),y.l>q){F=!0;break}F?(B.J(E),u=K,g.$i(l,B),k.add(u)):(g.cx(l),k.oj(k.size-1,1,k.size-1),0<l.size&&(g.Bd(B.x,w.x,t),p.ma(t[0]+B.x,B.y),g.ac(m,p),w.J(p),null!=r&&r.add(u),z.J(B),n=u,g.cy(l,B),u=k.get(k.size-1)))}};g.FR=function(b,a,c,e,f,h,l,k,n){var u=new d.b,q=new d.b,r=new d.b,m=new d.b,t=new d.b,p=new d.b,v=new d.b,C=new d.b,
A=new d.b,y=new d.b,z=new d.ca(0),B=new d.ca(0),D=new d.b,E=[[],[]],G=1==d.Nf.Am(f);f=f.Ko();var I=e.Mb(),H=e.oc();G?(p.ma(I.x*c,I.y*c),v.ma(H.x*c,H.y*c)):(E[0][0]=I.x,E[0][1]=I.y,E[1][0]=H.x,E[1][1]=H.y,d.Ya.tu(),p.x=E[0][0]*c,p.y=E[0][1]*c,v.x=E[1][0]*c,v.y=E[1][1]*c);var F=0,K=0,L=1,J=e.mD();u.J(I);q.J(H);var H=new d.qd(0),O=new d.qd(0),S=new d.qd(0);g.$i(H,q);g.$i(O,v);S.add(L);g.ac(n,u);null!=k&&k.add(K);var P=[],R;R=0<l?J?5:3:J?5:1;g.Kz(R,P);for(var U=new d.ca(0),W=new d.ca(0),X=new d.ca(0),
V=new d.ca(0),Z=new d.ca(0),aa=new d.ca(0),ba=new d.ca(0);0<O.size;){var T=!1,Y,Q=NaN;d.zb.Rd(b,a,p.x,p.y,v.x,v.y,U,W,null,2);for(I=0;I<R;I++){if(0==I){if(!J&&0>=l&&U.l<=h&&3.141592653589793>Math.abs(p.x-v.x))break;if(e.rA(K,L)<=f)break}Y=P[I]*L+(1-P[I])*K;e.Kb(Y,r);G?C.ma(r.x*c,r.y*c):(E[0][0]=r.x,E[0][1]=r.y,d.Ya.tu(),C.x=E[0][0]*c,C.y=E[0][1]*c);if(0==I&&(Q=Y,t.J(r),y.J(C),0<h&&(U.l>h||3.141592653589793<=Math.abs(p.x-v.x)))){T=!0;break}if(J&&0<h){if(d.zb.Rd(b,a,p.x,p.y,C.x,C.y,X,null,null,2),X.l>
h||3.141592653589793<=Math.abs(p.x-C.x)){T=!0;break}}else if(0<l)if(J?(m.OO(u,q,P[I]),G?A.ma(m.x*c,m.y*c):(E[0][0]=m.x,E[0][1]=m.y,d.Ya.tu(),A.x=E[0][0]*c,A.y=E[0][1]*c)):(m.J(r),A.J(C)),d.zb.Rd(b,a,p.x,p.y,A.x,A.y,V,null,null,2),V.l<=U.l){d.zb.dk(b,a,p.x,p.y,V.l,W.l,z,B,2);D.ma(z.l,B.l);d.zb.Rd(b,a,D.x,D.y,C.x,C.y,Z,null,null,2);if(Z.l>l){T=!0;break}if(J){d.zb.Rd(b,a,D.x,D.y,A.x,A.y,aa,null,null,2);if(aa.l>l){T=!0;break}d.zb.Rd(b,a,A.x,A.y,C.x,C.y,ba,null,null,2);if(ba.l>l){T=!0;break}}}else{T=!0;
break}}T?(q.J(t),v.J(y),L=Q,g.$i(H,q),g.$i(O,v),S.add(L)):(g.cx(H),g.cx(O),S.oj(S.size-1,1,S.size-1),g.ac(n,q),F+=U.l,null!=k&&k.add(F),0<O.size&&(u.J(q),p.J(v),K=L,g.cy(H,q),g.cy(O,v),L=S.get(S.size-1)))}if(null!=k)for(b=1/F,I=0;I<k.size;I++)k.write(I,k.read(I)*b)};g.gy=function(b,a,c,e){e.reverse();null!=c&&c.Jp(0,c.size,1);c=null!=b?b[0]:NaN;e=null!=a?a[0]:NaN;null!=b&&(b[0]=e);null!=a&&(a[0]=c)};g.Ez=function(b,a,c,e,f){b?(e.J(c),f.J(a)):(e.J(a),f.J(c))};g.Cz=function(b,a,c){if(!b)return a;c.create(a.D());
a.copyTo(c.get());c.get().reverse();return c.get()};g.Bd=function(b,a,c){if(isNaN(a)){for(;3.141592653589793<c[0]-b;)c[0]-=6.283185307179586;for(;3.141592653589793<b-c[0];)c[0]+=6.283185307179586}else 3.141592653589793<c[0]+b-a?c[0]-=6.283185307179586:3.141592653589793<a-(c[0]+b)&&(c[0]+=6.283185307179586)};g.mR=function(b,a,c,e){3.141592653589793>Math.abs(a.x-b.x)?(e.ed(b),3.141592653589793<=c.x-b.x?e.Ok(c.x-6.283185307179586,c.y):3.141592653589793<=b.x-c.x?e.Ok(c.x+6.283185307179586,c.y):e.Ok(c.x,
c.y)):(e.ed(c),3.141592653589793<=b.x-c.x?e.Ok(b.x-6.283185307179586,b.y):3.141592653589793<=c.x-b.x?e.Ok(b.x+6.283185307179586,b.y):e.Ok(b.x,b.y))};g.Kz=function(b,a){for(var c=0;c<b;c++){var e=Math.ceil(c/2)/(b+1);0!=c%2&&(e=-e);a[c]=.5+e}};g.Hs=function(b,a){return d.j.S(b.y,1.570796326794897)&&!d.j.S(a.y,1.570796326794897)||d.j.S(b.y,-1.570796326794897)&&!d.j.S(a.y,-1.570796326794897)?!0:!1};g.Fs=function(b,a){return d.j.S(a.y,1.570796326794897)&&!d.j.S(b.y,1.570796326794897)||d.j.S(a.y,-1.570796326794897)&&
!d.j.S(b.y,-1.570796326794897)?!0:!1};g.wz=function(b,a,c){return!g.uz(b,a,c)||d.j.S(b.y,1.570796326794897)||d.j.S(b.y,-1.570796326794897)||d.j.S(a.y,1.570796326794897)||d.j.S(a.y,-1.570796326794897)?!1:!0};g.uz=function(b,a,c){return Math.abs(Math.abs(b.x-a.x)-3.141592653589793)<=c?!0:!1};g.Gs=function(b,a){return d.j.S(b.y,1.570796326794897)&&d.j.S(a.y,1.570796326794897)||d.j.S(b.y,-1.570796326794897)&&d.j.S(a.y,-1.570796326794897)?!0:!1};g.by=function(b,a,c,e){if(0<b.y){var f=new d.b;f.ma(a.x,
1.570796326794897)}else f=new d.b,f.ma(a.x,-1.570796326794897);d.j.S(b.x,f.x)||d.j.S(a.y,f.y)||(g.ac(e,f),null!=c&&c.add(0))};g.Vx=function(b,a,c,e){if(0<a.y){var f=new d.b;f.ma(b.x,1.570796326794897)}else f=new d.b,f.ma(b.x,-1.570796326794897);d.j.S(a.x,f.x)||d.j.S(b.y,f.y)||(g.ac(e,f),null!=c&&c.add(1))};g.Xx=function(b,a,c,e,f,h,l){d.j.Vc(c)?(0<1.570796326794897-b.y&&(c=new d.b,c.ma(b.x,1.570796326794897),g.ac(l,c),null!=h&&h.add(e)),0<1.570796326794897-a.y&&(c=new d.b,c.ma(a.x,1.570796326794897),
g.ac(l,c),null!=h&&h.add(e))):(0<1.570796326794897+b.y&&(c=new d.b,c.ma(b.x,-1.570796326794897),g.ac(l,c),null!=h&&h.add(f)),0<1.570796326794897+a.y&&(c=new d.b,c.ma(a.x,-1.570796326794897),g.ac(l,c),null!=h&&h.add(f)))};g.eK=function(b){if(-3.141592653589793>b.x)for(;-3.141592653589793>b.x;)b.x+=6.283185307179586;if(3.141592653589793<b.x)for(;3.141592653589793<b.x;)b.x-=6.283185307179586};return g}();d.ui=m})(p||(p={}));(function(d){var m=function(){function g(){}g.nl=function(b,a,c){if(null==b||
null==a||!d.Ya.Qo(a))throw d.g.N();if(b.s())return b;var e=b,f=e.D();if(d.T.Kc(f)){e=d.gh.qo(b,a);b=new d.i;e.o(b);for(var f=d.Ia.zd(a,b,!1),h=d.Ya.Fm(a),l=Math.floor((b.v-h.v)/h.aa())*h.aa()+h.v;l<b.B;)l>b.v+f&&l<b.B-f&&(e=d.gh.Rw(e,a,c,l)),l+=h.aa()}else{if(197==f)return b=new d.Ka(e.description),b.Wc(e,!1),g.nl(b,a,c);if(d.T.Lc(f))return b=new d.Xa(e.description),b.Bc(e,!0),g.nl(b,a,c)}return g.VG(e,a)};g.VG=function(b,a){if(null==b||null==a||!d.Ya.Qo(a))throw d.g.N();if(b.s())return b;var c;c=
b.D();197==c?(c=new d.Ka(b.description),c.Wc(b,!1)):d.T.Lc(c)?(c=new d.Xa(b.description),c.Bc(b,!0)):c=b;c=d.gh.qo(c,a);return c.s()?c:1==d.Nf.Am(a)?d.gh.aN(c,a,c!=b):g.SG(c,a,c!=b)};g.SG=function(b,a,c){if(!d.Ya.Qo(a))throw d.g.N();if(b.s())return b;var e=d.Ya.IC(a),f=0-180*e,e=360*e;2==d.Nf.Am(a)&&(f=d.Ya.Fm(a),e=f.B,f=f.v,e-=f);return d.gh.gC(b,f,e,a,c)};return g}();d.Vn=m})(p||(p={}));(function(d){var m=function(){function g(){}g.OH=function(b,a){var c=Math.abs(b%a);return isNaN(c)||c==b||c<=
Math.abs(a)/2?c:0>b?-1*(c-a):0<b?1*(c-a):0*(c-a)};g.H=function(b){return 0>b?-b:b};g.nb=function(b,a){return 0<=a?g.H(b):-g.H(b)};g.S=function(b,a){return b==a||g.H(b-a)<=g.bF*(1+(g.H(b)+g.H(a))/2)};g.Vc=function(b){return 0==b||g.H(b)<=g.bF};g.bs=function(b){b=g.OH(b,g.fv);return g.H(b)<=g.$g?b:0>b?b+g.fv:b-g.fv};g.Yz=function(b,a){b.l=g.bs(b.l);a.l=g.bs(a.l);g.H(a.l)>g.Vr&&(b.l=g.bs(b.l+g.$g),a.l=g.nb(g.$g,a.l)-a.l)};g.gg=function(b,a){var c=Math.sqrt(1-a),c=(1-c)/(1+c),e=c*c;return b/(1+c)*(1+
e*(.25+e*(.015625+1/256*e)))*g.Vr};g.pN=function(b,a,c,e,f){var h,l,k,n,u,q,r,m=0,t=q=0,p=0,v=0,C=0;u=0;var A,y,z;r=0;var B,D,E;z=new d.ca;h=new d.ca;if(null!=f)if(z.l=b,h.l=a,g.Yz(z,h),b=z.l,a=h.l,z.l=c,h.l=e,g.Yz(z,h),c=z.l,e=h.l,c=g.bs(c-b),g.S(a,e)&&(g.Vc(c)||g.S(g.H(a),g.Vr)))null!=f&&(f.l=0);else{if(g.S(a,-e)){if(g.S(g.H(a),g.Vr)){null!=f&&(f.l=2*g.gg(6378137,.0066943799901413165));return}if(g.S(g.H(c),g.$g)){null!=f&&(f.l=2*g.gg(6378137,.0066943799901413165));return}}if(g.Vc(.0066943799901413165))v=
Math.cos(a),C=Math.cos(e),null!=f&&(m=Math.sin((e-a)/2),q=Math.sin(c/2),r=2*Math.asin(Math.sqrt(m*m+v*C*q*q)),f.l=6378137*r);else{z=1-Math.sqrt(.9933056200098587);b=1-z;h=Math.atan(b*Math.tan(a));a=Math.sin(h);h=Math.cos(h);l=Math.atan(b*Math.tan(e));e=Math.sin(l);l=Math.cos(l);n=k=c;D=0;E=1;B=c;for(y=!0;1==y;)D+=1,1==E&&(u=Math.sin(B),q=Math.cos(B),m=l*u,r=h*e-a*l*q,m=Math.sqrt(m*m+r*r),q=a*e+h*l*q,r=Math.atan2(m,q),t=1E-15>g.H(m)?h*l*u/g.nb(1E-15,m):h*l*u/m,p=1-t*t,v=1E-15>g.H(p)?q-a*e/g.nb(1E-15,
p)*2:q-a*e/p*2,C=v*v,u=((-3*p+4)*z+4)*p*z/16),A=(1-u)*z*(r+u*m*(v+q*u*(2*C-1))),1==E?(B=c+A*t,1E-14>g.H(B-n)?y=!1:g.H(B)>g.$g?(E=2,B=g.$g,0>c&&(B=-B),t=0,p=1,k=n=2,r=g.$g-g.H(Math.atan(a/h)+Math.atan(e/l)),m=Math.sin(r),q=Math.cos(r),u=((-3*p+4)*z+4)*p*z/16,1E-14>g.H(t-k)?y=!1:(v=1E-15>g.H(p)?q-a*e/g.nb(1E-15,p)*2:q-a*e/p*2,C=v*v)):(0>(B-n)*(n-k)&&5<D&&(B=(2*B+3*n+k)/6),k=n,n=B)):(t=(B-c)/A,0>(t-n)*(n-k)&&5<D&&(t=(2*t+3*n+k)/6),k=n,n=t,p=1-t*t,u=t*m/(h*l),q=-Math.sqrt(g.H(1-u*u)),B=Math.atan2(u,q),
m=l*u,r=h*e-a*l*q,m=Math.sqrt(m*m+r*r),q=a*e+h*l*q,r=Math.atan2(m,q),u=((-3*p+4)*z+4)*p*z/16,1E-14>g.H(t-k)?y=!1:(v=1E-15>g.H(p)?q-a*e/g.nb(1E-15,p)*2:q-a*e/p*2,C=v*v));null!=f&&(t=Math.sqrt(1+(1/(b*b)-1)*p),t=(t-1)/(t+1),p=t*(1-.375*t*t),f.l=(1+t*t/4)/(1-t)*b*6378137*(r-p*m*(v+p/4*(q*(-1+2*C)-p/6*v*(-3+4*m*m)*(-3+4*C)))))}}};g.$g=3.141592653589793;g.Vr=1.5707963267948966;g.fv=6.283185307179586;g.bF=3.552713678800501E-15;return g}();d.nH=m})(p||(p={}));(function(d){var m=function(){function d(){}
d.prototype.uv=function(b){this.hi=b};d.prototype.GA=function(b){this.Ab=b};d.prototype.HA=function(b){this.nn=b};d.vB=function(b){return b.s()||1607!=b.D()&&1736!=b.D()?!1:!0};d.tB=function(b){return b.s()||1607!=b.D()&&1736!=b.D()||20>b.F()?!1:!0};d.uB=function(b){return b.s()||1607!=b.D()&&1736!=b.D()||20>b.F()?!1:!0};return d}();d.Wj=m})(p||(p={}));(function(d){var m=function(){function g(){}g.FH=function(b){var a=new d.Ka;a.Uy(b.R.v,b.R.C);a.wj(b.R.v,b.R.G);a.wj(b.R.B,b.R.G);a.wj(b.R.B,b.R.C);
return a};g.aT=function(b,a){var c=d.wi.local(),e=new d.Pc(b);return c.$(e,a,null).next()};g.ll=function(b,a,c){return d.Zr.local().$(b,a,c,null)};g.On=function(b,a,c){return d.dv.local().$(b,a,c,null)};g.MS=function(b,a,c){var e=d.dv.local();b=new d.Pc(b);a=new d.Pc(a);c=e.$(b,a,c,null);for(e=[];null!=(a=c.next());)e.push(a);return e};g.lc=function(b,a,c){return d.bl.local().$(3,b,a,c,null)};g.nM=function(b,a,c){return d.bl.local().$(4,b,a,c,null)};g.QO=function(b,a,c){var e=d.$r.local();b=new d.Pc(b);
a=new d.Pc(a);c=e.$(b,a,c,null);for(e=[];null!=(a=c.next());)e.push(a);return e};g.kM=function(b,a,c){var e=d.Zr.local();b=new d.Pc(b);a=new d.Pc(a);c=e.$(b,a,c,null);for(e=[];null!=(a=c.next());)e.push(a);return e};g.Ga=function(b,a,c){return d.$r.local().$(b,a,c,null)};g.jT=function(b,a,c){return d.bl.local().$(2,b,a,c,null)};g.contains=function(b,a,c){return d.bl.local().$(1,b,a,c,null)};g.VL=function(b,a,c){return d.bl.local().$(16,b,a,c,null)};g.touches=function(b,a,c){return d.bl.local().$(8,
b,a,c,null)};g.tQ=function(b,a,c){return d.bl.local().$(32,b,a,c,null)};g.RO=function(b,a,c){return d.bl.local().$(1073741824,b,a,c,null)};g.py=function(b,a,c,e){return d.fI.local().$(b,a,c,e,null)};g.Fb=function(b,a,c,e){var f=null;if(null!=c){if(f=c.Se(),null!=e&&f.Qc()!=e.Qc()&&f.Nc!=e.Nc)throw d.g.cj();}else if(null!=e)throw d.g.N();b=d.ZH.local().$(b,a,null);null!==f&&null!==e&&(b=d.Tb.ih(b,f,e));return b};g.clip=function(b,a,c){return d.SH.local().$(b,d.i.Oa(a.R.v,a.R.C,a.R.B,a.R.G),c,null)};
g.xm=function(b,a,c){if(null==b||null==a)return null;b=d.UH.local().$(!0,b,a,c,null);for(a=[];null!=(c=b.next());)c.s()||a.push(c);return a.slice(0)};g.rK=function(b,a,c,e,f,h,l,k){if(!0===f)return g.VP(b,a,c,e,h,l,k);f=c;if(null!=a){if(l=a.Se(),null!=e&&l.Qc()!=e.Qc()){if(l.Nc!=e.Nc)throw d.g.cj();f=[];d.Tb.OB(c,c.length,e,l,f)}}else if(null!=e)throw d.g.N();c=d.Oz.local();if(h){b=new d.Pc(b);a=c.$(b,a,f,h,null);for(b=[];null!=(h=a.next());)b.push(h);h=b.slice(0)}else for(h=[],e=0;e<b.length;e++)h[e]=
c.$(b[e],a,f[e],null);return h};g.VP=function(b,a,c,e,f,h,l){if(null===a)throw d.g.N();if(null===e||void 0===e)e=4326!==a.Qc()?a.Se():d.Tb.Qd(9001);if(0!==e.Nc)throw d.g.N();d.Tb.OB(c,c.length,e,d.Tb.Qd(9001),c);e=d.Tz.local();if(f){b=new d.Pc(b);a=e.$(b,a,h,c,l,!1,f,null);for(c=[];null!=(h=a.next());)c.push(h);f=c.slice(0)}else{f=[];for(var k=0;k<b.length;k++)f[k]=e.$(b[k],a,h,c[k],l,!1,null)}return f};g.buffer=function(b,a,c,e,f,h,l){var k=c;if(!1===f){if(null!=a){if(f=a.Se(),null!=e&&f.Qc()!=e.Qc()){if(f.Nc!=
e.Nc)throw d.g.cj();k=d.Tb.ih(c,e,f)}}else if(null!=e)throw d.g.N();b=d.Oz.local().$(b,a,k,null)}else{if(null===a)throw d.g.N();if(null===e||void 0===e)e=4326!==a.Qc()?a.Se():d.Tb.Qd(9001);if(0!==e.Nc)throw d.g.N();k=d.Tb.ih(c,e,d.Tb.Qd(9001));b=d.Tz.local().$(b,a,h,k,l,!1,null)}return b};g.sQ=function(b,a,c,e,f,h,l){if(null!=a){var k=a.Se();if(null!=l&&k.Qc()!=l.Qc()){if(k.Nc!=l.Nc)throw d.g.cj();c=d.Tb.ih(c,l,k)}}else if(null!=l)throw d.g.N();b=new d.Pc(b);a=d.Wz.local().$(b,a,c,e,f,h,null);for(c=
[];null!=(e=a.next());)c.push(e);return c.slice(0)};g.offset=function(b,a,c,e,f,h,l){if(null!=a){var k=a.Se();if(null!=l&&k.Qc()!=l.Qc()){if(k.Nc!=l.Nc)throw d.g.cj();c=d.Tb.ih(c,l,k)}}else if(null!=l)throw d.g.N();return d.Wz.local().$(b,a,c,e,f,h,null)};g.JL=function(b){return d.Qz.local().$(b,null)};g.KL=function(b,a){for(var c=d.Qz.local(),e=new d.Pc(b),c=c.$(e,a,null),e=[],f;null!=(f=c.next());)e.push(f);return e};g.zw=function(b,a,c){return d.bv.local().zw(b,a,c)};g.Aw=function(b,a){return d.bv.local().Aw(b,
a)};g.Bw=function(b,a,c,e){return d.bv.local().Bw(b,a,c,e)};g.Qy=function(b,a){return d.as.local().$(b,a,!1,null)};g.cP=function(b,a){return d.as.local().Ro(b,a,null)};g.fN=function(b,a,c,e,f){var h=d.Sz.local();if(null!=a){if(a=a.Se(),null!=f&&a.Qc()!=f.Qc()){if(a.Nc!=f.Nc)throw d.g.cj();c=d.Tb.ih(c,f,a)}}else if(null!=f)throw d.g.N();return h.$(b,c,e,null)};g.oq=function(b,a,c,e){var f=d.WH.local();if(null!=a){if(a=a.Se(),null!=e&&a.Qc()!=e.Qc()){if(a.Nc!=e.Nc)throw d.g.cj();c=d.Tb.ih(c,e,a)}}else if(null!=
e)throw d.g.N();return f.$(b,c,null)};g.fw=function(b,a,c,e,f){void 0===f&&(f=0);var h=d.aI.local();if(4==f)throw d.g.qe();if(0!==f)throw d.g.qe();if(null!=a){var l=a.Se();if(null!=e&&l.Qc()!=e.Qc()){if(l.Nc!=e.Nc)throw d.g.cj();c=d.Tb.ih(c,e,l)}}else if(null!=e)throw d.g.N();return h.$(b,c,a,f,null)};g.jN=function(b,a,c,e){if(null===b)return 0;if(4==e)throw d.g.qe();if(0!==e)throw d.g.qe();if(197==b.D())b=g.FH(b);else if(1736!=b.D())return 0;e=d.Ya.Em(a);b=d.Ya.Wl(b,a,e);b=d.oH.kN([b])[0];if(null!==
c){if(2!==c.Nc)throw d.g.N("Unit must be a area unit type");b=d.Tb.ih(b,d.Tb.Qd(109404),c)}return b};g.nN=function(b,a,c,e){b=d.cI.local().$(b,a,e,null);if(null!==c){if(0!==c.Nc)throw d.g.N("Unit must be a linear unit type");b=d.Tb.ih(b,d.Tb.Qd(9001),c)}return b};g.BQ=function(b,a,c){if(null===b)return 0;var e=null;if(null!=a){e=a.Se();if(0==e.Nc&&(e=d.Tb.PC(e),null==e&&null!==c))throw d.g.N();if(null!=c&&e.Qc()!=c.Qc()&&e.Nc!=c.Nc)throw d.g.cj();}else if(null!=c)throw d.g.N();return 1736==b.D()||
197==b.D()?(b=b.Mh(),null!==c?d.Tb.ih(b,e,c):b):0};g.CQ=function(b,a,c){if(null===b||b.s()||1>b.fb())return 0;var e=null;if(null!=a){if(e=a.Se(),null!=c&&e.Qc()!=c.Qc()&&e.Nc!=c.Nc)throw d.g.cj();}else if(null!=c)throw d.g.N();1736==b.D()||197==b.D()?a=b.Rf():d.T.Lc(b.D())?(a=new d.Xa(b.description),a.Bc(b,!0)):a=b;b=0;a=a.Ca();for(var f=new d.b,h=new d.b;a.kb();)for(;a.La();){var l=a.ia();l.ht(f);l.uw(h);b+=d.b.Fb(f,h)}null!==e&&null!==c&&(b=d.Tb.ih(b,e,c));return b};g.YT=function(b,a){return d.Nf.mN(b,
a)};g.IL=function(b){return void 0!==b.points?g.kH(b,void 0===b.hasZ?!1:b.hasZ,void 0===b.hasM?!1:b.hasM):void 0!==b.rings?g.Nz(b.rings,void 0===b.hasZ?!1:b.hasZ,void 0===b.hasM?!1:b.hasM,"P"):void 0!==b.paths?g.Nz(b.paths,void 0===b.hasZ?!1:b.hasZ,void 0===b.hasM?!1:b.hasM,"L"):void 0!==b.x?g.uH(b):void 0!==b.xmin?g.hH(b):null};g.uH=function(b){if(null==b.x||"NaN"==b.x)return new d.Va;var a=new d.Va(b.x,b.y);void 0!==b.z&&null!==b.z&&a.rS(b.z);void 0!==b.m&&null!==b.m&&a.bS(b.m);return a};g.hH=function(b){if(null==
b.xmin||"NaN"==b.xmin)return new d.Vj;var a=new d.Vj(b.xmin,b.ymin,b.xmax,b.ymax);void 0!==b.zmin&&null!==b.zmin&&a.setInterval(1,0,b.zmin,b.zmax);void 0!==b.mmin&&null!==b.mmin&&a.setInterval(2,0,b.mmin,b.mmax);return a};g.kH=function(b,a,c){var e=0,f=new d.pe,h=3*b.points.length;0!=h%2&&h++;2>h&&(h=2);var l=d.I.truncate(3*b.points.length/2);4>l?l=4:16>l&&(l=16);for(var h=d.Ac.kl(h,0),k=d.Ac.kl(l),l=d.Ac.kl(l),g=0;g<b.points.length;g++)h.write(2*g,b.points[g][0]),h.write(2*g+1,b.points[g][1]),k.write(g,
a||c?b.points[g][2]:NaN),l.write(g,c&&a?b.points[g][3]:NaN),e++;0!=e&&(f.resize(e),f.bm(0,h));a&&(f.Ne(1),f.bm(1,k));c&&(f.Ne(2),f.bm(2,0==a?k:l));f.ce(16777215);return f};g.Nz=function(b,a,c,e){var f,h=0,l=2;"P"==e?(f=new d.Ka,h=1,l=3):f=new d.Xa;for(var k=d.Ac.Dg(0),g=d.Ac.to(0),u=0,q=0,r=[],m=[],t=0;t<b.length;t++){var p=b[t].length;r[t]=!1;if("P"===e&&b[t][0][0]===b[t][b[t].length-1][0]&&b[t][0][1]===b[t][b[t].length-1][1]){var v=0==c?!0:b[t][0][3]===b[t][b[t].length-1][3]||void 0===b[t][0][3]&&
void 0===b[t][b[t].length-1][3];(0==a||b[t][0][2]===b[t][b[t].length-1][2]||void 0===b[t][0][2]&&void 0===b[t][b[t].length-1][2])&&v&&(r[t]=!0,--p)}p>=l?(m[t]=!1,q+=1,k.add(u),g.add(h),u+=p):m[t]=!0}e=3*u;0!=e%2&&e++;2>e&&(e=2);t=d.I.truncate(3*u/2);4>t?t=4:16>t&&(t=16);e=d.Ac.kl(e,0);h=d.Ac.kl(t);l=d.Ac.kl(t);for(t=p=0;t<b.length;t++)if(!1===m[t])for(v=0;v<b[t].length;v++){var C=!1;v===b[t].length-1&&!0===r[t]&&(C=!0);C||(e.write(2*p,b[t][v][0]),e.write(2*p+1,b[t][v][1]),h.write(p,a||c?b[t][v][2]:
NaN),l.write(p,c&&a?b[t][v][3]:NaN),p++)}0!=u&&(b=f,k.resize(q),g.resize(q),0<u&&(k.add(u),g.add(0)),b.bm(0,e),b.NF(g),b.OF(k));a&&(f.Ne(1),f.bm(1,h));c&&(f.Ne(2),f.bm(2,0==a?h:l));f.ce(16777215);return f};return g}();d.Pb=m})(p||(p={}));(function(d){var m=function(){function d(){}d.Zk=function(b){var a=0,c=0,e=b.length,f=b[c],d;for(c;c<e-1;c++)d=b[c+1],a+=(d[0]-f[0])*(d[1]+f[1]),f=d;return 0<=a};d.rotate=function(b,a,c){a=a*Math.PI/180;var e=Math.cos(a),f=Math.sin(a);if(void 0!==b.paths){a={paths:[]};
for(var h=0;h<b.paths.length;h++){for(var l=b.paths[h],k=[],g=0;g<l.length;g++){var u=l[g].slice(0);k.push(u);var q=e*(l[g][0]-c.x)-f*(l[g][1]-c.y)+c.x,r=f*(l[g][0]-c.x)+e*(l[g][1]-c.y)+c.y;u[0]=q;u[1]=r}a.paths.push(k)}return a}if(void 0!==b.rings){a={rings:[]};for(h=0;h<b.rings.length;h++){for(var l=b.rings[h],k=[],m=d.Zk(l),g=0;g<l.length;g++)u=l[g].slice(0),k.push(u),q=e*(l[g][0]-c.x)-f*(l[g][1]-c.y)+c.x,r=f*(l[g][0]-c.x)+e*(l[g][1]-c.y)+c.y,u[0]=q,u[1]=r;d.Zk(k)!==m&&k.reverse();a.rings.push(k)}return a}if(void 0!==
b.x)return a={x:e*(b.x-c.x)-f*(b.y-c.y)+c.x,y:f*(b.x-c.x)+e*(b.y-c.y)+c.y},void 0!==b.z&&(a.z=b.z),void 0!==b.m&&(a.m=b.m),a;if(void 0!==b.points){a={points:[]};b=b.points;for(g=0;g<b.length;g++)h=b[g].slice(0),h[0]=e*(b[g][0]-c.x)-f*(b[g][1]-c.y)+c.x,h[1]=f*(b[g][0]-c.x)+e*(b[g][1]-c.y)+c.y,a.points.push(h);return a}return null};d.eC=function(b,a){var c,e;if(void 0!==b.paths){c={paths:[]};for(var f=0;f<b.paths.length;f++){for(var h=b.paths[f],l=[],k=0;k<h.length;k++){var g=h[k].slice(0);l.push(g);
e=a.x-h[k][0];g[0]=h[k][0]+2*e}c.paths.push(l)}return c}if(void 0!==b.rings){c={rings:[]};for(f=0;f<b.rings.length;f++){for(var h=b.rings[f],u=d.Zk(h),l=[],k=0;k<h.length;k++)g=h[k].slice(0),l.push(g),e=a.x-h[k][0],g[0]=h[k][0]+2*e;d.Zk(l)!==u&&l.reverse();c.rings.push(l)}return c}if(void 0!==b.x)return e=a.x-b.x,c={x:b.x+2*e,y:b.y},void 0!==b.z&&(c.z=b.z),void 0!==b.m&&(c.m=b.m),c;if(void 0!==b.points){c={points:[]};f=b.points;for(k=0;k<f.length;k++)h=f[k].slice(0),e=a.x-h[0],h[0]+=2*e,c.points.push(h);
return c}return void 0!==b.xmin?(c={v:b.xmin,C:b.ymin,B:b.xmax,G:b.ymax},void 0!==b.zmin&&(c.zmin=b.zmin,c.zmax=b.zmax),void 0!==b.mmin&&(c.mmin=b.mmin,c.mmax=b.mmax),e=a.x-b.xmin,c.xmax=b.xmin+2*e,e=a.x-b.xmax,c.xmin=b.xmax+2*e,c):null};d.fC=function(b,a){var c,e;if(void 0!==b.paths){c={paths:[]};for(var f=0;f<b.paths.length;f++){for(var h=b.paths[f],l=[],k=0;k<h.length;k++){var g=h[k].slice(0);l.push(g);e=a.y-h[k][1];g[1]=h[k][1]+2*e}c.paths.push(l)}return c}if(void 0!==b.rings){c={rings:[]};for(f=
0;f<b.rings.length;f++){for(var h=b.rings[f],u=d.Zk(h),l=[],k=0;k<h.length;k++)g=h[k].slice(0),l.push(g),e=a.y-h[k][1],g[1]=h[k][1]+2*e;d.Zk(l)!==u&&l.reverse();c.rings.push(l)}return c}if(void 0!==b.x)return e=a.y-b.y,c={y:b.y+2*e,x:b.x},void 0!==b.z&&(c.z=b.z),void 0!==b.m&&(c.m=b.m),c;if(void 0!==b.points){c={points:[]};f=b.points;for(k=0;k<f.length;k++)h=f[k].slice(0),e=a.y-h[1],h[1]+=2*e,c.points.push(h);return c}return void 0!==b.xmin?(c={v:b.xmin,C:b.ymin,B:b.xmax,G:b.ymax},void 0!==b.zmin&&
(c.zmin=b.zmin,c.zmax=b.zmax),void 0!==b.mmin&&(c.mmin=b.mmin,c.mmax=b.mmax),e=a.y-b.ymin,c.ymax=b.ymin+2*e,e=a.y-b.ymax,c.ymin=b.ymax+2*e,c):null};return d}();d.Wn=m})(p||(p={}));(function(d){var m=function(){function g(){}g.jg=function(b,a){var c=a;null==c&&(c=d.Od.Tf());switch(b){case 33:return new d.Va(c);case 322:return new d.yb(c);case 197:return new d.Vj(c);case 550:return new d.pe(c);case 1607:return new d.Xa(c);case 1736:return new d.Ka(c);default:throw d.g.ra("invalid argument.");}};return g}();
d.sH=m})(p||(p={}));(function(d){var m=function(){function g(b,a){this.De=d.ga.Yc(b,-1);this.oa=new d.Ur;this.tk=a}g.prototype.wR=function(b){this.oa.Dr(Math.min(this.De.size,b));this.oa.$l(b)};g.prototype.addElement=function(b,a){if(void 0===a)return this.JJ(b);var c=d.I.truncate(a%this.De.size),e=this.De.get(c);-1==e&&(e=this.oa.jh(),this.De.set(c,e));return this.oa.addElement(e,b)};g.prototype.JJ=function(b){var a=this.tk.vw(b),a=d.I.truncate(a%this.De.size),c=this.De.get(a);-1==c&&(c=this.oa.jh(),
this.De.set(a,c));return this.oa.addElement(c,b)};g.prototype.Jc=function(b,a){if(void 0===a)this.dM(b);else{var c=d.I.truncate(a%this.De.size),e=this.De.get(c);if(-1==e)throw d.g.N();for(var f=this.oa.gc(e),h=-1;-1!=f;){var l=this.oa.bb(f);this.oa.da(f)==b?(this.oa.Jc(e,h,f),-1==this.oa.gc(e)&&(this.oa.Fg(e),this.De.set(c,-1))):h=f;f=l}}};g.prototype.dM=function(b){var a=this.tk.vw(b),a=d.I.truncate(a%this.De.size),c=this.De.get(a);if(-1==c)throw d.g.N();for(var e=this.oa.gc(c),f=-1;-1!=e;){var h=
this.oa.bb(e);this.oa.da(e)==b?(this.oa.Jc(c,f,e),-1==this.oa.gc(c)&&(this.oa.Fg(c),this.De.set(a,-1))):f=e;e=h}};g.prototype.DN=function(b){b=d.I.truncate(b%this.De.size);b=this.De.get(b);return-1==b?-1:this.oa.gc(b)};g.prototype.SN=function(b){return this.oa.bb(b)};g.prototype.kd=function(b){var a=this.tk.vw(this.da(b)),a=d.I.truncate(a%this.De.size),c=this.De.get(a);if(-1==c)throw d.g.N();for(var e=this.oa.gc(c),f=-1;-1!=e;){if(e==b){this.oa.Jc(c,f,e);-1==this.oa.gc(c)&&(this.oa.Fg(c),this.De.set(a,
-1));return}f=e;e=this.oa.bb(e)}throw d.g.N();};g.prototype.da=function(b){return this.oa.da(b)};g.prototype.clear=function(){this.De=d.ga.Yc(this.De.size,-1);this.oa.clear()};g.prototype.size=function(){return this.oa.HC()};return g}();d.AH=m})(p||(p={}));(function(d){var m=function(){function g(){this.ci=new d.Fc(3);this.oa=new d.Fc(6);this.AP=!1;this.Wd=-1}g.prototype.bk=function(b){this.ci.Jc(b)};g.prototype.ou=function(){return this.ci.be()};g.prototype.Rs=function(b){this.oa.Jc(b)};g.prototype.Yx=
function(){return this.oa.be()};g.prototype.Jy=function(b,a){this.ci.L(b,1,a)};g.prototype.Gu=function(b,a){this.ci.L(b,2,a)};g.prototype.aS=function(b,a){this.ci.L(b,3,a)};g.prototype.Hy=function(b,a){this.oa.L(b,4,a)};g.prototype.dS=function(b,a){this.oa.L(b,3,a)};g.prototype.RF=function(b,a){this.oa.L(b,2,a)};g.prototype.jh=function(b){var a=this.Yx();this.oa.L(a,3,this.Wd);this.oa.L(a,4,0);this.oa.L(a,5,b);-1!=this.Wd&&this.RF(this.Wd,a);return this.Wd=a};g.prototype.Fg=function(b){this.CB(b);
var a=this.oa.O(b,2),c=this.oa.O(b,3);-1!=a?this.dS(a,c):this.Wd=c;-1!=c&&this.RF(c,a);this.Rs(b);return c};g.prototype.Dr=function(b){this.oa.de(b)};g.prototype.DC=function(b){return this.oa.O(b,5)};g.prototype.$R=function(b,a){this.oa.L(b,5,a)};g.prototype.addElement=function(b,a){return this.AO(b,a)};g.prototype.AO=function(b,a){var c=this.ou();this.Gu(c,-1);-1==this.oa.O(b,0)&&this.oa.L(b,0,c);var e=this.oa.O(b,1);this.Jy(c,e);-1!=e&&this.Gu(e,c);this.oa.L(b,1,c);this.setData(c,a);this.Hy(b,this.vq(b)+
1);this.AP&&this.aS(c,b);return c};g.prototype.Jc=function(b,a){var c=this.ge(a),e=this.bb(a);-1!=c?this.Gu(c,e):this.oa.L(b,0,e);-1!=e?this.Jy(e,c):this.oa.L(b,1,c);this.bk(a);this.Hy(b,this.vq(b)-1);return e};g.prototype.$l=function(b){this.ci.de(b)};g.prototype.getData=function(b){return this.ci.O(b,0)};g.prototype.setData=function(b,a){this.ci.L(b,0,a)};g.prototype.bb=function(b){return this.ci.O(b,2)};g.prototype.ge=function(b){return this.ci.O(b,1)};g.prototype.gc=function(b){return this.oa.O(b,
0)};g.prototype.tc=function(b){return this.oa.O(b,1)};g.prototype.clear=function(){for(var b=this.Wd;-1!=b;)b=this.Fg(b)};g.prototype.CB=function(b){for(var a=this.tc(b);-1!=a;){var c=a,a=this.ge(c);this.bk(c)}this.oa.L(b,0,-1);this.oa.L(b,1,-1);this.Hy(b,0)};g.prototype.s=function(){return 0==this.ci.size};g.prototype.HC=function(){return this.ci.size};g.prototype.vq=function(b){return this.oa.O(b,4)};g.prototype.Cw=function(b){return this.oa.O(b,3)};return g}();d.$n=m})(p||(p={}));(function(d){var m=
function(){function g(b){void 0===b?(this.bg=new d.Fc(2),this.oa=new d.Fc(4),this.Wd=-1,this.Bt=!0):(this.bg=new d.Fc(2),this.oa=new d.Fc(b?4:2),this.Wd=-1,this.Bt=b)}g.prototype.bk=function(b){this.bg.Jc(b)};g.prototype.ou=function(){return this.bg.be()};g.prototype.Rs=function(b){this.oa.Jc(b)};g.prototype.Yx=function(){return this.oa.be()};g.prototype.jh=function(){var b=this.Yx();this.Bt&&(this.oa.L(b,3,this.Wd),-1!=this.Wd&&this.oa.L(this.Wd,2,b),this.Wd=b);return b};g.prototype.Fg=function(b){for(var a=
this.gc(b);-1!=a;){var c=a,a=this.bb(a);this.bk(c)}this.Bt&&(a=this.oa.O(b,2),c=this.oa.O(b,3),-1!=a?this.oa.L(a,3,c):this.Wd=c,-1!=c&&this.oa.L(c,2,a));this.Rs(b)};g.prototype.Dr=function(b){this.oa.de(b)};g.prototype.addElement=function(b,a){var c=this.oa.O(b,1),e=this.ou();-1!=c?this.bg.L(c,1,e):this.oa.L(b,0,e);this.oa.L(b,1,e);this.bg.L(e,0,a);return e};g.prototype.$l=function(b){this.bg.de(b)};g.prototype.Jc=function(b,a,c){-1!=a?(this.bg.L(a,1,this.bg.O(c,1)),this.oa.O(b,1)==c&&this.oa.L(b,
1,a)):(this.oa.L(b,0,this.bg.O(c,1)),this.oa.O(b,1)==c&&this.oa.L(b,1,-1));this.bk(c)};g.prototype.Qv=function(b,a){var c=this.oa.O(b,1),e=this.oa.O(a,0);-1!=e&&(-1!=c?this.bg.L(c,1,e):this.oa.L(b,0,e),this.oa.L(b,1,this.oa.O(a,1)));this.Bt&&(c=this.oa.O(a,2),e=this.oa.O(a,3),-1!=c?this.oa.L(c,3,e):this.Wd=e,-1!=e&&this.oa.L(e,2,c));this.Rs(a)};g.prototype.da=function(b){return this.bg.O(b,0)};g.prototype.Vi=function(b,a){this.bg.L(b,0,a)};g.prototype.bb=function(b){return this.bg.O(b,1)};g.prototype.gc=
function(b){return this.oa.O(b,0)};g.prototype.Dm=function(b){return this.da(this.gc(b))};g.prototype.clear=function(){this.bg.Nh(!0);this.oa.Nh(!0);this.Wd=-1};g.prototype.s=function(b){return void 0===b?0==this.bg.size:-1==this.oa.O(b,0)};g.prototype.HC=function(){return this.bg.size};g.prototype.Cw=function(b){return this.oa.O(b,3)};return g}();d.Ur=m})(p||(p={}));(function(d){var m=function(){function g(){}g.kz=function(b,a,c,e,f,h,l){var k=new d.b;k.J(b);b=new d.b;b.J(a);f.vv(k);f.vv(b);a=f.ms(k);
var n=f.ms(b);0==n&&(n=f.CC());if(k.x!=b.x&&(k.y!=b.y||k.y!=f.C&&k.y!=f.G)||n>a!=h){a=f.vA(k);var n=f.vA(b),u,q=h?1:3;do a=a+q&3,u=f.vu(a),0!=l&&(e=g.kz(k,u,c,e,f,h,l)),c[e++].ma(u.x,u.y),k=u;while((a&3)!=n);0!=l&&(e=g.kz(k,b,c,e,f,h,l))}else if(f=new d.b,f.ma(b.x-k.x,b.y-k.y),0!=l&&(l=d.I.truncate(f.yJ()/l),0<l))for(f.scale(1/(l+1)),h=0;h<l;h++)k.add(f),c[e++].ma(k.x,k.y);return e};g.zd=function(b,a,c){a=a.lv();b=null!=b&&void 0!==b.Ko?b.Ko():0;c&&(a*=4,b*=1.1);return Math.max(b,a)};g.As=function(b){return 2*
Math.sqrt(2)*b};g.UJ=function(b){return Math.sqrt(2)*b};g.Cg=function(b,a,c){var e=new d.i;a.o(e);return g.zd(b,e,c)};g.rB=function(b,a,c){a=a.Ah(1,0).lv();b=null!=b?b.Ko():0;c&&(a*=4,b*=1.1);return Math.max(b,a)};g.$T=function(b,a){var c=new d.i;b.dd(c);c.Db(a);return c};g.$s=function(b,a){var c=new d.i;b.dd(c);var e=new d.i;a.dd(e);c.Db(e);return c};g.fU=function(b,a){var c=b.HN(a),e=b.Ea(a),f=b.Dc(a),h=b.Fa(c);c==e?(f=b.Fa(f-1),c=b.Fa(e+1)):c==f-1?(f=b.Fa(c-1),c=b.Fa(e)):(f=b.Fa(c-1),c=b.Fa(c+
1));h=d.b.yn(f,h,c);return 0==h?0<b.oo(a):-1==h};g.CK=function(b){var a=new d.i;b.dd(a);if(a.s())return null;var c=new d.co(a,8),e=-1,f=new d.i,h=!1;do for(var l=0,k=b.ea();l<k;l++)if(b.Ti(l,f),e=c.kt(l,f,e),-1==e){if(h)throw d.g.ra("internal error");b.tm(a,!1);h=!0;c.reset(a,8);break}else h=!1;while(h);return c};g.nB=function(b){var a=new d.i;b.dd(a);for(var c=new d.co(a,8),e=-1,f=b.Ca(),h=new d.i,l=!1;f.kb();)for(;f.La();){var k=f.ia(),g=f.Jb();k.o(h);e=c.kt(g,h,e);if(-1==e){if(l)throw d.g.wa();
b.tm(a,!1);l=!0;c.reset(a,8);f.Lk();break}}return c};g.ij=function(b,a){var c=new d.i;b.dd(c);for(var e=new d.co(c,8),f=-1,h=new d.i,l=b.Ca(),k=!1;l.kb();)for(;l.La();){var g=l.ia(),u=l.Jb();g.o(h);if(h.jc(a)&&(f=e.kt(u,h,f),-1==f)){if(k)throw d.g.ra("internal error.");b.tm(c,!1);k=!0;e.reset(c,8);l.Lk();break}}return e};g.DT=function(b){var a=new d.i;b.dd(a);for(var c=new d.co(a,8),e=new d.b,f=new d.i,h=!1,l=0;l<b.F();l++)if(b.w(l,e),f.K(e),-1==c.lg(l,f)){if(h)throw d.g.wa();b.tm(a,!1);h=!0;c.reset(a,
8);l=-1}return c};g.oB=function(b,a){for(var c=new d.co(a,8),e=new d.b,f=!1,h=new d.i,l=0;l<b.F();l++)if(b.w(l,e),a.contains(e)&&(h.K(e),-1==c.lg(l,h))){if(f)throw d.g.wa();f=!0;l=new d.i;b.tm(l,!1);c.reset(l,8);l=-1}return c};g.AN=function(b,a,c){var e=new d.i,f=new d.i;b.dd(e);a.dd(f);e.P(c,c);f.P(c,c);var h=new d.i;h.K(e);h.Ga(f);b=b.Ca();a=a.Ca();var l=new d.sz;l.YF(c);var k=!1;for(l.jG();b.kb();)for(;b.La();)b.ia().o(e),e.jc(h)&&(k=!0,c=new d.i,c.K(e),l.OA(b.Jb(),c));l.$B();if(!k)return null;
e=!1;for(l.iG();a.kb();)for(;a.La();)a.ia().o(f),f.jc(h)&&(e=!0,c=new d.i,c.K(f),l.LA(a.Jb(),c));l.ZB();return e?l:null};g.BN=function(b,a,c,e,f){var h=b.D(),l=a.D(),k=new d.i,g=new d.i;b.dd(k);a.dd(g);k.P(c,c);g.P(c,c);var u=new d.i;u.K(k);u.Ga(g);var q=new d.sz;q.YF(c);var r=!1;q.jG();var m=0;for(c=b.ea();m<c;m++)if(!e||1736!=h||b.qt(m))b.Ti(m,k),k.jc(u)&&(r=!0,q.OA(m,k));q.$B();if(!r)return null;b=!1;q.iG();e=0;for(c=a.ea();e<c;e++)if(!f||1736!=l||a.qt(e))a.Ti(e,g),g.jc(u)&&(b=!0,q.LA(e,g));q.ZB();
return b?q:null};g.hU=function(b,a){return 0<b.rj(a)};g.zT=function(b,a){var c=new d.i;b.hR(a,c);var c=new d.co(c,8),e=-1,f=new d.i,h=b.Ca();h.vy(a);if(h.kb())for(;h.La();){var l=h.ia(),k=h.Jb();l.dd(f);e=c.kt(k,f,e);if(-1==e)throw d.g.ra("internal error");}return c};return g}();d.Ia=m})(p||(p={}));(function(d){var m=function(){function a(a){this.Na=a}a.prototype.compare=function(a,b,e){a=a.da(e);e=this.Na.uj(b);var f=this.Na.uj(a);return e<f?-1:e==f?c.Po(b)&&c.st(a)?-1:c.Po(a)&&c.st(b)?1:0:1};return a}(),
g=function(){function a(a){this.Na=a}a.prototype.Zp=function(a,b,c){this.Na.yS(c,a,b)};a.prototype.Mo=function(a){return this.Na.uj(a)};return a}(),b;(function(a){a[a.initialize=0]="initialize";a[a.pIn=1]="pIn";a[a.pL=2]="pL";a[a.pR=3]="pR";a[a.pT=4]="pT";a[a.right=5]="right";a[a.left=6]="left";a[a.all=7]="all"})(b||(b={}));var a=function(){function a(){this.Na=null;this.gi=new d.Nd;this.ug=new d.ga(0);this.$f=[0,0]}a.prototype.Ch=function(a,b){this.gi.qa=a.qa-b;this.gi.va=a.va+b;this.ug.resize(0);
this.Ud=0;this.$f[0]=0};a.prototype.uy=function(a,b,c){if(a>b)throw d.g.N();this.gi.qa=a-c;this.gi.va=b+c;this.ug.resize(0);this.Ud=0;this.$f[0]=0};a.prototype.Fn=function(a,b){this.gi.qa=a-b;this.gi.va=a+b;this.ug.resize(0);this.Ud=0;this.$f[0]=0};a.prototype.next=function(){if(!this.Na.Vo)throw d.g.xa();if(0>this.Ud)return-1;for(var a=!0;a;)switch(this.$f[this.Ud]){case 1:a=this.uQ();break;case 2:a=this.vQ();break;case 3:a=this.wQ();break;case 4:a=this.xQ();break;case 5:a=this.BR();break;case 6:a=
this.sP();break;case 7:a=this.XJ();break;case 0:a=this.Qw();break;default:throw d.g.wa();}return-1!=this.pg?this.Bo()>>1:-1};a.JT=function(b,c,e){var f=new a;f.Na=b;f.ug.xb(20);f.Ch(c,e);return f};a.KT=function(b,c,e){var f=new a;f.Na=b;f.ug.xb(20);f.Fn(c,e);return f};a.Oa=function(b){var c=new a;c.Na=b;c.ug.xb(20);c.Ud=-1;return c};a.prototype.Qw=function(){this.pg=this.YD=this.di=this.yc=-1;if(null!=this.Na.Yd&&0<this.Na.Yd.size)return this.$f[0]=1,this.di=this.Na.Ze,!0;this.Ud=-1;return!1};a.prototype.uQ=
function(){this.yc=this.di;if(-1==this.yc)return this.pg=this.Ud=-1,!1;var a=this.Na.Co(this.yc);if(this.gi.va<a)return a=this.Na.tj(this.yc),this.di=this.Na.Di(this.yc),-1!=a&&(this.vh=this.Na.gk(a),this.$f[++this.Ud]=6),!0;if(a<this.gi.qa)return a=this.Na.tj(this.yc),this.di=this.Na.sj(this.yc),-1!=a&&(this.vh=this.Na.uq(a),this.$f[++this.Ud]=5),!0;this.$f[this.Ud]=2;this.YD=this.yc;a=this.Na.tj(this.yc);this.di=this.Na.Di(this.yc);-1!=a&&(this.vh=this.Na.gk(a),this.$f[++this.Ud]=7);return!0};a.prototype.vQ=
function(){this.yc=this.di;if(-1==this.yc)return this.$f[this.Ud]=3,this.di=this.Na.sj(this.YD),!0;if(this.Na.Co(this.yc)<this.gi.qa){var a=this.Na.tj(this.yc);this.di=this.Na.sj(this.yc);-1!=a&&(this.vh=this.Na.uq(a),this.$f[++this.Ud]=5);return!0}a=this.Na.tj(this.yc);this.di=this.Na.Di(this.yc);-1!=a&&(this.vh=this.Na.gk(a),this.$f[++this.Ud]=7);a=this.Na.sj(this.yc);-1!=a&&this.ug.add(a);return!0};a.prototype.wQ=function(){this.yc=this.di;if(-1==this.yc)return this.$f[this.Ud]=4,!0;if(this.gi.va<
this.Na.Co(this.yc)){var a=this.Na.tj(this.yc);this.di=this.Na.Di(this.yc);-1!=a&&(this.vh=this.Na.gk(a),this.$f[++this.Ud]=6);return!0}a=this.Na.tj(this.yc);this.di=this.Na.sj(this.yc);-1!=a&&(this.vh=this.Na.gk(a),this.$f[++this.Ud]=7);a=this.Na.Di(this.yc);-1!=a&&this.ug.add(a);return!0};a.prototype.xQ=function(){if(0==this.ug.size)return this.pg=this.Ud=-1,!1;this.yc=this.ug.get(this.ug.size-1);this.ug.resize(this.ug.size-1);var a=this.Na.tj(this.yc);-1!=a&&(this.vh=this.Na.gk(a),this.$f[++this.Ud]=
7);-1!=this.Na.Di(this.yc)&&this.ug.add(this.Na.Di(this.yc));-1!=this.Na.sj(this.yc)&&this.ug.add(this.Na.sj(this.yc));return!0};a.prototype.sP=function(){this.pg=this.vh;if(-1!=this.pg&&c.Po(this.Bo())&&this.Na.uj(this.Bo())<=this.gi.va)return this.vh=this.GC(),!1;this.Ud--;return!0};a.prototype.BR=function(){this.pg=this.vh;if(-1!=this.pg&&c.st(this.Bo())&&this.Na.uj(this.Bo())>=this.gi.qa)return this.vh=this.bO(),!1;this.Ud--;return!0};a.prototype.XJ=function(){this.pg=this.vh;if(-1!=this.pg&&
c.Po(this.Bo()))return this.vh=this.GC(),!1;this.Ud--;return!0};a.prototype.GC=function(){return this.Na.Df?this.Na.If.bb(this.pg):this.Na.ki.bb(this.pg)};a.prototype.bO=function(){return this.Na.Df?this.Na.If.ge(this.pg):this.Na.ki.ge(this.pg)};a.prototype.Bo=function(){return this.Na.Df?this.Na.If.da(this.pg):this.Na.ki.getData(this.pg)};return a}();d.IT=a;var c=function(){function b(a){this.Al=this.rh=this.If=this.ki=this.Hl=this.Ki=this.Yd=this.Li=null;this.Df=a;this.Vo=this.Dt=!1}b.prototype.Vp=
function(){this.Rj(!0)};b.prototype.gq=function(a,b){if(!this.Dt)throw d.g.xa();this.Li.push(new d.Nd(a,b))};b.prototype.wo=function(){if(!this.Dt)throw d.g.ra("invalid call");this.Dt=!1;this.Vo=!0;this.Df||(this.BO(),this.Jt=this.Li.length)};b.prototype.lg=function(a){if(!this.Df||!this.Vo)throw d.g.N("invalid call");if(-1==this.Ze){var b=this.Li.length;if(this.nx){var c=new d.ga(0);c.xb(2*b);this.$E(c);this.rh.xb(2*b);this.rh.resize(0);this.ZE(c);this.Hl.resize(b,-1);this.Hl.dh(-1,0,b);this.nx=
!1}else this.Hl.dh(-1,0,b);this.Ze=this.Ms()}b=this.cD(a<<1,this.Ze);c=this.If.addElement((a<<1)+1,this.Hw(b));this.TF(b,c);this.Hl.set(a,b);this.Jt++};b.prototype.remove=function(a){if(!this.Df||!this.Vo)throw d.g.ra("invalid call");var b=this.Hl.get(a);if(-1==b)throw d.g.N("the interval does not exist in the interval tree");this.Hl.set(a,-1);this.Jt--;var c=this.Hw(b),e;e=this.If.hO(c);this.If.kd(this.LN(b),c);this.If.kd(this.eO(b),c);a=this.If.size(c);0==a&&(this.If.fM(c),this.WF(e,-1));this.Ki.Jc(b);
for(var c=this.JC(e),f=this.Di(e),g=this.sj(e),b=0;!(0<a||e==this.Ze||-1!=f&&-1!=g);)e==this.Di(c)?-1!=f?(this.Sj(c,f),this.Xi(f,c),this.Sj(e,-1)):-1!=g?(this.Sj(c,g),this.Xi(g,c),this.Uj(e,-1)):this.Sj(c,-1):-1!=f?(this.Uj(c,f),this.Xi(f,c),this.Sj(e,-1)):-1!=g?(this.Uj(c,g),this.Xi(g,c),this.Uj(e,-1)):this.Uj(c,-1),this.Xi(e,-1),b++,e=c,c=this.tj(e),a=-1!=c?this.If.size(c):0,f=this.Di(e),g=this.sj(e),c=this.JC(e)};b.prototype.reset=function(){if(!this.Df||!this.Vo)throw d.g.N("invalid call");this.Rj(!1)};
b.prototype.size=function(){return this.Jt};b.prototype.Re=function(){return a.Oa(this)};b.prototype.$E=function(a){for(var b=this.Li.length,c=0;c<2*b;c++)a.add(c);this.zS(a,2*b)};b.prototype.ZE=function(a){for(var b=NaN,c=0;c<a.size;c++){var e=a.get(c),f=this.uj(e);f!=b&&(this.rh.add(e),b=f)}};b.prototype.BO=function(){var a=this.Li.length,b=new d.ga(0);b.xb(2*a);this.$E(b);this.rh.xb(2*a);this.rh.resize(0);this.ZE(b);this.Ki.de(a);this.ki.$l(2*a);var c=d.Ac.Dg(a);c.dh(-1,0,a);this.Ze=this.Ms();
for(a=0;a<b.size;a++){var e=b.get(a),g=c.get(e>>1);-1!=g?this.TF(g,this.ki.addElement(this.Hw(g),e)):(g=this.cD(e,this.Ze),c.set(e>>1,g))}};b.prototype.cD=function(a,b){var c=b,e=b,f=b,h,g=-1,r=0,m=this.rh.size-1,t=0,p=a>>1,v=NaN,C=NaN;h=!0;for(var A=this.RN(p),p=this.ON(p);h;){r<m?(t=r+d.I.truncate((m-r)/2),-1==this.rw(c)&&this.CF(c,this.rh.get(t),this.rh.get(t+1))):-1==this.rw(c)&&this.CF(c,this.rh.get(r),this.rh.get(r));var y=this.Co(c);if(p<y)-1!=f&&(f==c?(e=c,v=y,f=this.Di(c),-1!=f?C=this.Co(f):
C=NaN):C>y&&(y<v?this.Sj(e,c):this.Uj(e,c),this.Uj(c,f),this.Df&&(this.Xi(c,e),this.Xi(f,c)),e=c,v=y,f=-1,C=NaN)),m=this.MN(c),-1==m&&(m=this.Ms(),this.YR(c,m)),c=m,m=t;else if(A>y)-1!=f&&(f==c?(e=c,v=y,f=this.sj(c),-1!=f?C=this.Co(f):C=NaN):C<y&&(y<v?this.Sj(e,c):this.Uj(e,c),this.Sj(c,f),this.Df&&(this.Xi(c,e),this.Xi(f,c)),e=c,v=y,f=-1,C=NaN)),r=this.fO(c),-1==r&&(r=this.Ms(),this.iS(c,r)),c=r,r=t+1;else{h=this.tj(c);-1==h&&(h=this.TL(c),this.WF(c,h));var z=this.KJ(h,a),g=this.SL();this.lS(g,h);
this.XR(g,z);c!=f&&(y<v?this.Sj(e,c):this.Uj(e,c),this.Df&&this.Xi(c,e),-1!=f&&(C<y?this.Sj(c,f):this.Uj(c,f),this.Df&&this.Xi(f,c)));h=!1}}return g};b.prototype.Ms=function(){return this.Yd.be()};b.prototype.TL=function(a){return this.Df?this.If.nq(a):this.ki.jh(a)};b.prototype.SL=function(){return this.Ki.be()};b.prototype.Rj=function(a){a?(this.Dt=this.nx=!0,this.Vo=!1,null==this.rh?this.rh=d.Ac.Dg(0):this.rh.resize(0),null==this.Li?this.Li=[]:this.Li.length=0):this.nx=!1;this.Df?null==this.Hl?
(this.Hl=d.Ac.Dg(0),this.If=new d.bj,this.If.Hn(new m(this))):this.If.clear():null==this.ki?this.ki=new d.$n:this.ki.clear();null==this.Yd?(this.Ki=new d.Fc(3),this.Yd=new d.Fc(this.Df?8:7)):(this.Ki.Nh(!1),this.Yd.Nh(!1));this.Ze=-1;this.Jt=0};b.prototype.CF=function(a,b,c){this.SR(a,b);this.TR(a,c)};b.prototype.Co=function(a){var b=this.rw(a);if(-1==b)return NaN;b=this.uj(b);a=this.uj(this.wN(a));return b==a?b:.5*(b+a)};b.prototype.SR=function(a,b){this.Yd.L(a,0,b)};b.prototype.TR=function(a,b){this.Yd.L(a,
1,b)};b.prototype.YR=function(a,b){this.Yd.L(a,3,b)};b.prototype.iS=function(a,b){this.Yd.L(a,4,b)};b.prototype.WF=function(a,b){this.Yd.L(a,2,b)};b.prototype.Sj=function(a,b){this.Yd.L(a,5,b)};b.prototype.Uj=function(a,b){this.Yd.L(a,6,b)};b.prototype.Xi=function(a,b){this.Yd.L(a,7,b)};b.prototype.lS=function(a,b){this.Ki.L(a,0,b)};b.prototype.KJ=function(a,b){return this.Df?this.If.addElement(b,a):this.ki.addElement(a,b)};b.prototype.XR=function(a,b){this.Ki.L(a,1,b)};b.prototype.TF=function(a,
b){this.Ki.L(a,2,b)};b.prototype.gk=function(a){return this.Df?this.If.gc(a):this.ki.gc(a)};b.prototype.uq=function(a){return this.Df?this.If.tc(a):this.ki.tc(a)};b.Po=function(a){return 0==(a&1)};b.st=function(a){return 1==(a&1)};b.prototype.rw=function(a){return this.Yd.O(a,0)};b.prototype.wN=function(a){return this.Yd.O(a,1)};b.prototype.tj=function(a){return this.Yd.O(a,2)};b.prototype.MN=function(a){return this.Yd.O(a,3)};b.prototype.fO=function(a){return this.Yd.O(a,4)};b.prototype.Di=function(a){return this.Yd.O(a,
5)};b.prototype.sj=function(a){return this.Yd.O(a,6)};b.prototype.JC=function(a){return this.Yd.O(a,7)};b.prototype.Hw=function(a){return this.Ki.O(a,0)};b.prototype.LN=function(a){return this.Ki.O(a,1)};b.prototype.eO=function(a){return this.Ki.O(a,2)};b.prototype.RN=function(a){return this.Li[a].qa};b.prototype.ON=function(a){return this.Li[a].va};b.prototype.zS=function(a,b){null==this.Al&&(this.Al=new d.Rr);var c=new g(this);this.Al.sort(a,0,b,c)};b.prototype.yS=function(a,c,e){var f=this;a.xd(c,
e,function(a,c){var e=f.uj(a),d=f.uj(c);return e<d||e==d&&b.Po(a)&&b.st(c)?-1:1})};b.prototype.uj=function(a){var c=this.Li[a>>1];return b.Po(a)?c.qa:c.va};return b}();d.bq=c})(p||(p={}));(function(d){var m=function(g){function b(a,b,e,f){g.call(this);void 0===a?this.description=d.Od.Tf():void 0===e?this.description=a:(this.description=d.Od.Tf(),this.Ny(a,b),this.Ok(e,f))}L(b,g);b.prototype.D=function(){return 322};b.prototype.$b=function(){var a=this.na-this.la,b=this.ja-this.ha;return Math.sqrt(a*
a+b*b)};b.prototype.mg=function(a){var b=this.na-this.la,e=this.ja-this.ha;return Math.sqrt(b*b+e*e)<=a};b.prototype.mD=function(){return!1};b.prototype.Pf=function(){var a=new d.b;a.pc(this.oc(),this.Mb());return a};b.prototype.Fp=function(a){a.Ja();a.Qf(this.description);var b=new d.i;this.o(b);a.Cu(b);for(var b=1,e=this.description.Aa;b<e;b++)for(var f=this.description.Hd(b),h=d.pa.Wa(f);b<h;b++){var l=this.Ah(f,0);a.setInterval(f,0,l)}};b.prototype.o=function(a){a.K(this.na,this.ja,this.la,this.ha);
a.normalize()};b.prototype.Cn=function(a){a.Ja();a.Db(this.na,this.ja,this.yd(0,1,0));a.Db(this.la,this.ha,this.yd(1,1,0))};b.prototype.Oe=function(a){if(a instanceof d.Bg){this.qc();var b=new d.b;b.x=this.na;b.y=this.ja;a.Zi(b,b);this.na=b.x;this.ja=b.y;b.x=this.la;b.y=this.ha;a.Zi(b,b);this.la=b.x;this.ha=b.y}else this.qc(),b=new d.ee,b.x=this.na,b.y=this.ja,b.z=this.yd(0,1,0),b=a.Qn(b),this.na=b.x,this.ja=b.y,this.om(0,1,0,b.z),b.x=this.la,b.y=this.ha,b.z=this.yd(1,1,0),b=a.Qn(b),this.la=b.x,this.ha=
b.y,this.om(1,1,0,b.z)};b.prototype.Pa=function(){return new b(this.description)};b.prototype.kv=function(a,b){return(this.la-a-(this.na-a))*(this.ha-b+(this.ja-b))*.5};b.prototype.Ru=function(a){return a*this.$b()};b.prototype.AD=function(a){return a/this.$b()};b.prototype.sC=function(a){return d.vi.ut(this.na,this.la,a)};b.prototype.vN=function(a){return d.vi.ut(this.ja,this.ha,a)};b.prototype.xm=function(a,b){var c=new d.Ag;this.Bi(a,b,c);return c.get()};b.prototype.Bi=function(a,b,e){if(null==
e)throw d.g.N();e.mq();e=e.get();e.Qf(this.description);var c=new d.b;this.Kb(a,c);e.Ny(c.x,c.y);this.Kb(b,c);e.Ok(c.x,c.y);for(var c=1,h=this.description.Aa;c<h;c++)for(var l=this.description.Fd(c),k=d.pa.Wa(l),g=0;g<k;g++){var u=this.ld(a,l,g);e.My(l,g,u);u=this.ld(b,l,g);e.Cy(l,g,u)}};b.prototype.ld=function(a,b,e){if(0==b)return 0==e?this.Kb(a).x:this.Kb(a).y;switch(d.pa.JN(b)){case 0:return.5>a?this.gt(b,e):this.Ws(b,e);case 1:var c=this.gt(b,e);b=this.Ws(b,e);return d.vi.ut(c,b,a);case 2:throw d.g.ra("not implemented");
}throw d.g.wa();};b.prototype.Gd=function(a,b){var c=this.la-this.na,f=this.ha-this.ja,d=c*c+f*f;if(0==d)return.5;c=((a.x-this.na)*c+(a.y-this.ja)*f)/d;b||(0>c?c=0:1<c&&(c=1));return c};b.prototype.nt=function(a,b,e,f){if(a){a=this.ha-this.ja;if(0==a)return b==this.ha?-1:0;b=(b-this.ja)/a;if(0>b||1<b)return 0;null!=e&&(e[0]=this.sC(b))}else{a=this.la-this.na;if(0==a)return b==this.la?-1:0;b=(b-this.na)/a;if(0>b||1<b)return 0;null!=e&&(e[0]=this.vN(b))}null!=f&&(f[0]=b);return 1};b.prototype.xe=function(a,
b){var c=this.ha-this.ja;if(0==c)return a==this.ha?b:NaN;var c=(a-this.ja)/c,f=this.sC(c);1==c&&(f=this.la);return f};b.prototype.qs=function(a,b,e){return 0<=this.ho(a.x,a.y,b,e)};b.prototype.Kh=function(a,b,e){return 0<=this.ho(a,b,e,!0)};b.prototype.Eq=function(a,b){return this.qs(a,b,!1)};b.prototype.KE=function(){if(this.ha<this.ja||this.ha==this.ja&&this.la<this.na){var a=this.na;this.na=this.la;this.la=a;a=this.ja;this.ja=this.ha;this.ha=a;for(var a=0,b=this.description.up-2;a<b;a++){var e=
this.fa[a];this.fa[a]=this.fa[a+b];this.fa[a+b]=e}}};b.prototype.rs=function(a,b){var c=d.b.Oa(a,b);c.sub(this.Mb());var f=new d.b;f.pc(this.oc(),this.Mb());var h=f.Ai(c),c=8.881784197001252E-16*(Math.abs(f.x*c.y)+Math.abs(f.y*c.x));return h>c?-1:h<-c?1:0};b.prototype.ho=function(a,b,e,f){var c=this.na,l=this.ja,k=a-c,g=b-l,k=Math.sqrt(k*k+g*g);if(k<=Math.max(e,6.661338147750939E-16*k))return f&&0==k?NaN:0;k=a-this.la;g=b-this.ha;k=Math.sqrt(k*k+g*g);if(k<=Math.max(e,6.661338147750939E-16*k))return f&&
0==k?NaN:1;k=this.la-this.na;g=this.ha-this.ja;f=Math.sqrt(k*k+g*g);if(0<f){var u=1/f,k=k*u,g=g*u,q=a-c,r=b-l,m=q*k+r*g,t=1.7763568394002505E-15*(Math.abs(q*k)+Math.abs(r*g)),p=k,k=-g,g=p,t=Math.max(e,t);if(m<-t||m>f+t)return NaN;if(Math.abs(q*k+r*g)<=Math.max(e,1.7763568394002505E-15*(Math.abs(q*k)+Math.abs(r*g)))&&(k=d.I.Kr(m*u,0,1),.5>=k?(g=this.na+(this.la-this.na)*k,f=this.ja+(this.ha-this.ja)*k):(g=this.la-(this.la-this.na)*(1-k),f=this.ha-(this.ha-this.ja)*(1-k)),d.b.Yv(g,f,a,b)<=e)){if(.5>
k){if(d.b.Yv(g,f,c,l)<=e)return 0}else if(d.b.Yv(g,f,this.la,this.ha)<=e)return 1;return k}}return NaN};b.prototype.lc=function(a){return null==a?!1:a==this?!0:a.constructor!==this.constructor?!1:this.sJ(a)};b.prototype.AA=function(a,b,e){var c=e?this.na:this.la;e=e?this.ja:this.ha;var h=new d.b;h.x=a.la-c;h.y=a.ha-e;return b.ml(h)>6.661338147750939E-16*b.uA(h)?(h.x=a.na-c,h.y=a.ja-e,b.ml(h)<=6.661338147750939E-16*b.uA(h)):!0};b.prototype.zA=function(a){var b=new d.b;b.x=this.la-this.na;b.y=this.ha-
this.ja;if(!this.AA(a,b,!1))return!1;b.Bp();return this.AA(a,b,!0)?!0:!1};b.ye=function(a,b){var c=a.rs(b.na,b.ja),f=a.rs(b.la,b.ha);if(0>c&&0>f||0<c&&0<f)return!1;c=b.rs(a.na,a.ja);f=b.rs(a.la,a.ha);if(0>c&&0>f||0<c&&0<f)return!1;c=a.$b();f=b.$b();return c>f?a.zA(b):b.zA(a)};b.Id=function(a,b,e){var c=d.b.Oa(NaN,NaN),h=a.la-a.na,l=a.ha-a.ja,g=b.la-b.na,n=b.ha-b.ja,u=g*l-h*n;if(0==u)return c;var q=8.881784197001252E-16*(Math.abs(g*l)+Math.abs(h*n)),r=b.na-a.na,m=b.ja-a.ja,t=g*m-r*n,p=t/u,v=Math.abs(u),
g=(8.881784197001252E-16*(Math.abs(g*m)+Math.abs(r*n))*v+q*Math.abs(t))/(u*u)+2.220446049250313E-16*Math.abs(p);if(p<-g||p>1+g)return c;n=h*m-r*l;g=n/u;h=(8.881784197001252E-16*(Math.abs(h*m)+Math.abs(r*l))*v+q*Math.abs(n))/(u*u)+2.220446049250313E-16*Math.abs(g);if(g<-h||g>1+h)return c;p=d.I.Kr(p,0,1);h=d.I.Kr(g,0,1);l=a.Kb(p);u=b.Kb(h);q=new d.b;q.pc(l,u);if(q.length()>e&&(q.add(l,u),q.scale(.5),p=a.Gd(q,!1),h=b.Gd(q,!1),a=a.Kb(p),b=b.Kb(h),a.sub(b),a.length()>e))return c;c.ma(p,h);return c};b.xJ=
function(a,c,e,f){var d=0;if(a.na==c.na&&a.ja==c.ja||a.na==c.la&&a.ja==c.ha)if(d++,!f)return 1;if(a.la==c.na&&a.ha==c.ja||a.la==c.la&&a.ha==c.ha){d++;if(2==d)return 2;if(!f)return 1}return c.Kh(a.na,a.ja,e)||c.Kh(a.la,a.ha,e)||a.Kh(c.na,c.ja,e)||a.Kh(c.la,c.ha,e)?1:f&&0!=d?0:0==b.ye(a,c)?0:1};b.ov=function(a,c,e,f,h,l){var g=0,n=a.ho(c.na,c.ja,l,!1),u=a.ho(c.la,c.ha,l,!1),q=c.ho(a.na,a.ja,l,!1),r=c.ho(a.la,a.ha,l,!1);isNaN(n)||(null!=f&&(f[g]=n),null!=h&&(h[g]=0),null!=e&&(e[g]=d.b.Oa(c.na,c.ja)),
g++);isNaN(u)||(null!=f&&(f[g]=u),null!=h&&(h[g]=1),null!=e&&(e[g]=d.b.Oa(c.la,c.ha)),g++);2==g||isNaN(q)||0==n&&0==q||0==u&&1==q||(null!=f&&(f[g]=0),null!=h&&(h[g]=q),null!=e&&(e[g]=d.b.Oa(a.na,a.ja)),g++);2==g||isNaN(r)||1==n&&0==r||1==u&&1==r||(null!=f&&(f[g]=1),null!=h&&(h[g]=r),null!=e&&(e[g]=d.b.Oa(c.la,c.ha)),g++);if(0<g)return 2==g&&null!=f&&f[0]>f[1]&&(a=f[0],f[0]=f[1],f[1]=a,null!=h&&(f=h[0],h[0]=h[1],h[1]=f),null!=e&&(h=d.b.Oa(e[0].x,e[0].y),e[0]=e[1],e[1]=h)),g;g=b.Id(a,c,l);if(isNaN(g.x))return 0;
null!=e&&(e[0]=a.Kb(g.x));null!=f&&(f[0]=g.x);null!=h&&(h[0]=g.y);return 1};b.prototype.TC=function(){return 0};b.prototype.eo=function(){};b.prototype.toString=function(){return"Line: ["+this.na.toString()+", "+this.ja.toString()+", "+this.la.toString()+", "+this.ha.toString()+"]"};return b}(d.fA);d.yb=m})(p||(p={}));(function(d){var m=function(){function d(){this.Gl=[];this.ua=-1}d.prototype.ya=function(){return this.ua};d.prototype.next=function(){if(null!=this.Gl&&0!=this.Gl.length){this.ua++;
var b=this.Gl[0];1>=this.Gl.length?this.Gl=[]:this.Gl=this.Gl.slice(1);return b}return this.Gl=null};return d}();d.MT=m})(p||(p={}));(function(d){(function(d){d[d.enumFillRuleOddEven=0]="enumFillRuleOddEven";d[d.enumFillRuleWinding=1]="enumFillRuleWinding"})(d.qI||(d.qI={}));var m=function(g){function b(a,b){g.call(this);this.Yf=!1;this.np=null;this.ap=this.bp=0;this.Uh=null;this.ng=!1;this.td=this.li=this.Fe=this.qb=this.jb=null;this.gp=this.Qa=this.cp=0;if(void 0===b)this.Yf=a,this.ng=!1,this.ta=
this.ap=this.bp=this.cp=0,this.description=d.Od.Tf();else{if(null==b)throw d.g.N();this.Yf=a;this.ng=!1;this.ta=this.ap=this.bp=this.cp=0;this.description=b}this.Uh=null;this.Qa=0}L(b,g);b.prototype.Hm=function(){return 0<this.cp};b.prototype.nv=function(){this.qc();null==this.np?this.np=new d.Va(this.description):this.np.Qf(this.description)};b.prototype.Uy=function(a,b){var c=new d.b;c.x=a;c.y=b;this.Nr(c)};b.prototype.Nr=function(a){this.nv();this.np.ic(a);this.ng=!0};b.prototype.df=function(a){if(a.s())throw d.g.N();
this.Ik(a.description);this.nv();a.copyTo(this.np);this.ng=!0};b.prototype.iv=function(){var a=1;this.ng&&(this.nv(),null==this.jb?(this.jb=d.Ac.Dg(2),this.jb.write(0,0),this.qb=d.Ac.to(2,0)):(this.jb.resize(this.jb.size+1,0),this.qb.resize(this.qb.size+1,0)),this.Yf&&this.qb.write(this.qb.size-2,1),a++);var b=this.ta;this.jb.write(this.jb.size-1,this.ta+a);this.jo(b+a);this.qb.write(this.jb.size-1,0);this.ng&&(this.Iu(b,this.np),this.ng=!1)};b.prototype.wj=function(a,b){this.iv();this.ic(this.ta-
1,a,b)};b.prototype.Lm=function(a){this.iv();this.ic(this.ta-1,a)};b.prototype.lineTo=function(a){this.iv();this.Iu(this.ta-1,a)};b.prototype.ro=function(){var a;this.Su();void 0===a&&(this.ng=!1,a=this.ea()-1);var b=this.qb.read(a);this.qb.write(a,b|1);null!=this.Fe&&(a=this.Dc(a)-1,this.Fe.write(a,1),this.li.write(a,-1))};b.$i=function(a){return b.Id[a]};b.prototype.vc=function(a){return 0!=(this.qb.read(a)&1)};b.prototype.Oo=function(a){if(this.vc(a))return!0;var b=this.Ea(a);a=this.Dc(a)-1;if(b>
a)return!1;b=this.Fa(b);a=this.Fa(a);return b.ub(a)};b.prototype.yq=function(a){return 0!=(this.qb.read(a)&2)};b.prototype.Bc=function(a,b){this.Ik(a.description);if(322==a.D()){var c=new d.Va;if(b||this.s())a.En(c),this.df(c);a.Bn(c);this.lineTo(c)}else throw d.g.wa();};b.prototype.ws=function(a){var b=0==this.ta;this.Uy(a.v,a.C);this.wj(a.v,a.G);this.wj(a.B,a.G);this.wj(a.B,a.C);this.ro();this.ng=!1;b&&this.yf(256,!1)};b.prototype.Wc=function(a,b){if(!a.s()){for(var c=0==this.ta,f=new d.Va(this.description),
h=0;4>h;h++)a.uf(b?4-h-1:h,f),0==h?this.df(f):this.lineTo(f);this.ro();this.ng=!1;c&&!b&&this.yf(256,!1)}};b.prototype.add=function(a,b){for(var c=0;c<a.ea();c++)this.Zj(a,c,!b)};b.prototype.Zj=function(a,b,e){this.Cf(-1,a,b,e)};b.prototype.lo=function(){this.Sw()};b.prototype.ys=function(a,b,e,f,h){h||0!=this.ea()||(h=!0);0>b&&(b=a.ea()-1);if(b>=a.ea()||0>e||0>f||f>a.ct(b))throw d.g.ra("index out of bounds");if(0!=f){var c=a.vc(b)&&e+f==a.ct(b);if(!c||1!=f){this.ng=!1;this.Ik(a.description);e=a.Ea(b)+
e+1;h&&(f++,e--);c&&f--;c=this.ta;this.jo(this.ta+f);this.kc();if(h){if(0==f)return;this.jb.add(this.ta);h=a.qb.read(b);h&=-5;this.Yf&&(h|=1);this.qb.write(this.qb.size-1,h);this.qb.add(0)}else this.jb.write(this.qb.size-1,this.ta);h=0;for(var g=this.description.Aa;h<g;h++){var n=this.description.Hd(h),u=d.pa.Wa(n),q=a.description.zf(n);0>q||null==a.Ba[q]?this.Ba[h].ul(u*c,d.pa.ue(n),f*u,u*c):this.Ba[h].nk(u*c,a.Ba[q],u*e,f*u,!0,u,u*c)}if(this.Hm())throw d.g.wa();if(a.yq(b))throw d.g.wa();this.ce(1993)}}};
b.prototype.Cr=function(a){this.kc();var b=this.ea();0>a&&(a=b-1);if(a>=b)throw d.g.N();for(var e=this.Ea(a),f=this.Ha(a),h=0,l=this.description.Aa;h<l;h++)if(null!=this.Ba[h]){var g=d.pa.Wa(this.description.Fd(h));this.Ba[h].oj(g*e,g*f,g*this.ta)}for(e=a+1;e<=b;e++)h=this.jb.read(e),this.jb.write(e-1,h-f);if(null==this.qb)for(e=a+1;e<=b;e++)a=this.qb.read(e),this.qb.write(e-1,a);this.jb.resize(b);this.qb.resize(b);this.ta-=f;this.rg-=f;this.ce(1993)};b.prototype.Cf=function(a,b,e,f){if(b==this)throw d.g.N();
if(e>=b.ea())throw d.g.N();var c=this.ea();if(a>c)throw d.g.N();0>a&&(a=c);0>e&&(e=b.ea()-1);this.ng=!1;this.Ik(b.description);b.kc();var l=b.Ea(e),g=b.Ha(e),n=this.ta,u=b.vc(e)&&!f?1:0;this.jo(this.ta+g);this.kc();for(var q=a<c?this.Ea(a):n,r=0,m=this.description.Aa;r<m;r++){var t=this.description.Fd(r),p=b.description.zf(t),v=d.pa.Wa(t);0<=p&&null!=b.Ba[p]?(0!=u&&this.Ba[r].nk(q*v,b.Ba[p],v*l,v,!0,v,v*n),this.Ba[r].nk((q+u)*v,b.Ba[p],v*(l+u),v*(g-u),f,v,v*(n+u))):this.Ba[r].ul(q*v,d.pa.ue(t),v*
g,v*n)}this.jb.add(n+g);for(f=c;f>=a+1;f--)l=this.jb.read(f-1),this.jb.write(f,l+g);b.yq(e);this.qb.add(0);for(f=c-1;f>=a+1;f--)c=this.qb.read(f),c&=-5,this.qb.write(f+1,c);c=b.VN().read(e);c&=-5;this.Yf&&(c|=1);this.qb.write(a,c)};b.prototype.Sw=function(){var a=-1,b=this.ea();if(a>b)throw d.g.N();0>a&&(a=b);this.ng=!1;this.kc();this.jb.add(this.ta);for(var e=b;e>=a+1;e--){var f=this.jb.read(e-1);this.jb.write(e,f+0)}this.qb.add(0);for(e=b-1;e>=a+1;e--)b=this.qb.read(e),b&=-5,this.qb.write(e+1,b);
this.Yf&&this.qb.write(a,1)};b.prototype.dD=function(a,b,e){var c=-1;0>a&&(a=this.ea());if(a>this.ea()||c>this.Ha(a)||e>b.length)throw d.g.ra("index out of bounds");if(0!=e){a==this.ea()&&(this.jb.add(this.ta),this.Yf?this.qb.add(1):this.qb.add(0));0>c&&(c=this.Ha(a));this.kc();var h=this.ta;this.jo(this.ta+e);this.kc();for(var l=0,g=this.description.Aa;l<g;l++){var n=this.description.Fd(l),u=d.pa.Wa(n);this.Ba[l].km(u*(this.Ea(a)+c+e),(h-this.Ea(a)-c)*u,this.Ba[l],u*(this.Ea(a)+c),!0,u);0==l?this.Ba[l].$p(u*
(this.Ea(a)+c),e,b,0,!0):this.Ba[l].dh(d.pa.ue(n),(this.Ea(a)+c)*u,e*u)}this.Hm()&&(this.Fe.km(this.Ea(a)+c+e,h-this.Ea(a)-c,this.Fe,this.Ea(a)+c,!0,1),this.li.km(this.Ea(a)+c+e,h-this.Ea(a)-c,this.li,this.Ea(a)+c,!0,1),this.Fe.dh(1,this.Ea(a)+c,e),this.li.dh(-1,this.Ea(a)+c,e));a+=1;for(b=this.ea();a<=b;a++)this.jb.write(a,this.jb.read(a)+e)}};b.prototype.kf=function(a,b,e){var c=this.ea();0>a&&(a=this.ea());if(a>=c||b>this.Ha(a))throw d.g.ra("index out of bounds");a==this.ea()&&(this.jb.add(this.ta),
this.Yf?this.qb.add(1):this.qb.add(0));0>b&&(b=this.Ha(a));var h=this.ta;this.jo(this.ta+1);this.kc();var l=this.Ea(a);this.Ba[0].lg(2*(l+b),e,2*h);e=1;for(var g=this.description.Aa;e<g;e++){var n=this.description.Fd(e),u=d.pa.Wa(n);this.Ba[e].ul(u*(l+b),d.pa.ue(n),u,u*h)}for(a+=1;a<=c;a++)this.jb.write(a,this.jb.read(a)+1)};b.prototype.eF=function(a,b){var c=this.ea();0>a&&(a=c-1);if(a>=c||b>=this.Ha(a))throw d.g.ra("index out of bounds");this.kc();var f=this.Ea(a);0>b&&(b=this.Ha(a)-1);for(var f=
f+b,h=0,l=this.description.Aa;h<l;h++)if(null!=this.Ba[h]){var g=d.pa.Wa(this.description.Fd(h));this.Ba[h].oj(g*f,g,g*this.ta)}for(;c>=a+1;c--)f=this.jb.read(c),this.jb.write(c,f-1);this.ta--;this.rg--;this.ce(1993)};b.prototype.Rf=function(){return d.Hh.il(this,null)};b.prototype.Ja=function(){this.cp=0;this.ng=!1;this.td=this.Fe=this.li=this.qb=this.jb=null;this.EA()};b.prototype.Oe=function(a){a instanceof d.Bg?this.ZA(a,-1):this.$J(a)};b.prototype.ZA=function(a,b){if(!this.s()&&!a.XO()){this.kc();
var c=this.Ba[0],f=new d.b,h=new d.b,l,g,n;for(0>b?(l=this.Hm(),g=0,n=this.ta):(l=this.yq(b),g=this.Ea(b),n=this.Dc(b));g<n;g++){f.x=c.read(2*g);f.y=c.read(2*g+1);if(l){var u=this.li.read(g);if(0<=u)switch(this.Fe.read(g)&7){case 2:h.x=this.td.read(u);h.y=this.td.read(u+1);a.Zi(h,h);this.td.write(u,h.x);this.td.write(u+1,h.y);h.x=this.td.read(u+3);h.y=this.td.read(u+4);a.Zi(h,h);this.td.write(u+3,h.x);this.td.write(u+4,h.y);break;case 4:throw d.g.wa();}}a.Zi(f,f);c.write(2*g,f.x);c.write(2*g+1,f.y)}this.ce(1993)}};
b.prototype.$J=function(a){if(!this.s()){this.Ne(1);this.kc();for(var b=this.Ba[0],e=this.Ba[1],f=new d.ee,h=new d.ee,l=this.Hm(),g=0;g<this.ta;g++){f.x=b.read(2*g);f.y=b.read(2*g+1);f.z=e.read(g);if(l){var n=this.li.read(g);if(0<=n)switch(this.Fe.read(g)&7){case 2:h.x=this.td.read(n);h.y=this.td.read(n+1);h.z=this.td.read(n+2);h=a.Qn(h);this.td.write(n,h.x);this.td.write(n+1,h.y);this.td.write(n+1,h.z);h.x=this.td.read(n+3);h.y=this.td.read(n+4);h.z=this.td.read(n+5);h=a.Qn(h);this.td.write(n+3,
h.x);this.td.write(n+4,h.y);this.td.write(n+5,h.z);break;case 4:throw d.g.wa();}}f=a.Qn(f);b.write(2*g,f.x);b.write(2*g+1,f.y);e.write(g,f.z)}this.ce(1993)}};b.prototype.xv=function(){null==this.jb&&(this.jb=d.Ac.Dg(1,0),this.qb=d.Ac.to(1,0));null!=this.Fe&&(this.Fe.resize(this.rg,1),this.li.resize(this.rg,-1))};b.prototype.eo=function(a){a.ng=!1;a.cp=this.cp;a.gp=this.gp;null!=this.jb?a.jb=d.ga.lj(this.jb):a.jb=null;null!=this.qb?a.qb=d.Wk.lj(this.qb):a.qb=null;null!=this.li?a.li=d.ga.lj(this.li):
a.li=null;null!=this.Fe?a.Fe=d.Wk.lj(this.Fe):a.Fe=null;null!=this.td?a.td=d.qd.lj(this.td):a.td=null;a.bp=this.bp;a.ap=this.ap;this.gj(1024)?a.Uh=null:a.Uh=this.Uh};b.prototype.$b=function(){if(!this.gj(512))return this.bp;for(var a=this.Ca(),b=new d.av(0);a.kb();)for(;a.La();)b.add(a.ia().$b());this.bp=b.rl();this.yf(512,!1);return b.rl()};b.prototype.lc=function(a){if(a==this)return!0;if(!(a instanceof b&&g.prototype.lc.call(this,a)))return!1;var c=this.ea();return c!=a.ea()||null!=this.jb&&!this.jb.lc(a.jb,
0,c+1)||this.gp!=a.gp||null!=this.qb&&!this.qb.lc(a.qb,0,c)?!1:g.prototype.lc.call(this,a)};b.prototype.Ca=function(){return new d.GI(this)};b.prototype.wv=function(a){g.prototype.wv.call(this,a);if(this.Hm())for(a=this.Ca();a.kb();)for(;a.La();)break};b.prototype.tm=function(a,b){g.prototype.tm.call(this,a,b);if(this.Hm())for(var c=this.Ca();c.kb();)for(;c.La();)break};b.prototype.qv=function(){null==this.jb||0==this.jb.size?this.ta=0:this.ta=this.jb.read(this.jb.size-1)};b.prototype.Mh=function(){if(!this.Yf)return 0;
this.ts();return this.ap};b.prototype.qt=function(a){if(!this.Yf)return!1;if(!this.gj(8))return 0!=(this.qb.read(a)&4);this.ts();return 0<this.Uh.read(a)};b.prototype.oo=function(a){if(!this.Yf)return 0;this.ts();return this.Uh.read(a)};b.prototype.ts=function(){if(this.gj(1024)){var a=this.ea();null==this.Uh?this.Uh=new d.qd(a):this.Uh.size!=a&&this.Uh.resize(a);for(var a=new d.av(0),b=new d.av(0),e=new d.b,f=0,h=this.Ca();h.kb();){b.reset();for(this.w(this.Ea(h.Qa),e);h.La();)b.add(h.ia().kv(e.x,
e.y));a.add(b.rl());var l=f++;this.Uh.write(l,b.rl())}this.ap=a.rl();this.yf(1024,!1)}};b.prototype.hl=function(){if(this.gj(8)){this.ts();var a=this.ea();if(null==this.qb||this.qb.size<a)this.qb=d.Ac.to(a+1);for(var b=1,e=0;e<a;e++){var f=this.Uh.read(e);0==e&&(b=0<f?1:-1);0<f*b?this.qb.xy(e,4):this.qb.BB(e,4)}this.yf(8,!1)}};b.prototype.Ew=function(a){var b=this.Qa,e=this.ea();if(0<=b&&b<e){if(a<this.Dc(b)){if(a>=this.Ea(b))return b;b--}else b++;if(0<=b&&b<e&&a>=this.Ea(b)&&a<this.Dc(b))return this.Qa=
b}if(5>e){for(b=0;b<e;b++)if(a<this.Dc(b))return this.Qa=b;throw d.g.ra("corrupted geometry");}b=0;for(--e;e>b;){var f=b+(e-b>>1),h=this.Ea(f);if(a<h)e=f-1;else if(b=this.Dc(f),a>=b)b=f+1;else return this.Qa=f}return this.Qa=b};b.prototype.HN=function(a){var b=this.mc(0);this.WN();var e=this.Dc(a),f=this.Ea(a);a=-1;var h=new d.b,l=new d.b;h.y=-Infinity;h.x=-Infinity;for(f+=0;f<e;f++)b.ec(2*f,l),-1==h.compare(l)&&(a=f,h.J(l));return a};b.prototype.Iw=function(){var a=this.F();if(!this.Yf)for(var a=
a-this.ea(),b=0,e=this.ea();b<e;b++)this.vc(b)&&a++;return a};b.prototype.ct=function(a){var b=this.Ha(a);this.vc(a)||b--;return b};b.prototype.Pa=function(){return new b(this.Yf,this.description)};b.prototype.fb=function(){return this.Yf?2:1};b.prototype.D=function(){return this.Yf?1736:1607};b.prototype.WN=function(){this.Su()};b.prototype.OF=function(a){this.jb=a;this.ce(16777215)};b.prototype.VN=function(){this.Su();return this.qb};b.prototype.NF=function(a){this.qb=a;this.ce(16777215)};b.prototype.ea=
function(){return null!=this.jb?this.jb.size-1:0};b.prototype.Dc=function(a){return this.jb.read(a+1)};b.prototype.Ha=function(a){return this.jb.read(a+1)-this.jb.read(a)};b.prototype.Ea=function(a){return this.jb.read(a)};b.prototype.jv=function(a,b){null==this.pb&&(this.pb=new d.Wj);var c=d.dA.jR(b),f=this.pb.hi;if(null!=f)if(f.Sx<a||c>f.cO())this.pb.uv(null);else return!0;f=d.dA.create(this,a,c);this.pb.uv(f);return!0};b.prototype.hc=function(){var a=g.prototype.hc.call(this);if(!this.sc()){var b=
this.ea();null!=this.jb&&this.jb.jj(a,0,b+1);null!=this.qb&&this.qb.jj(a,0,b)}return a};b.prototype.NC=function(a){return null!=this.Fe?this.Fe.read(a):1};b.prototype.cc=function(a,b,e){var c=this.Ew(a);if(a==this.Dc(c)-1&&!this.vc(c))throw d.g.ra("index out of bounds");this.kc();var h=this.Fe,l=1;null!=h&&(l=h.read(a)&7);switch(l){case 1:b.mq();break;case 2:throw d.g.wa();case 4:throw d.g.wa();default:throw d.g.wa();}b=b.get();e?b.Qf(d.Od.Tf()):b.Qf(this.description);c=a==this.Dc(c)-1&&this.vc(c)?
this.Ea(c):a+1;h=new d.b;this.w(a,h);b.ed(h);this.w(c,h);b.vd(h);if(!e)for(e=1,h=this.description.Aa;e<h;e++)for(var l=this.description.Fd(e),g=d.pa.Wa(l),n=0;n<g;n++){var u=this.ld(l,a,n);b.My(l,n,u);u=this.ld(l,c,n);b.Cy(l,n,u)}};b.prototype.Ti=function(a,b){if(a>=this.ea())throw d.g.N();if(this.s())b.Ja();else{if(this.yq(a))throw d.g.ra("not implemented");var c=this.mc(0),f=new d.b,h=new d.i;h.Ja();for(var l=this.Ea(a),g=this.Dc(a);l<g;l++)c.ec(2*l,f),h.Db(f);b.K(h)}};b.prototype.hR=function(a,
b){if(a>=this.ea())throw d.g.N();if(this.s())b.Ja();else{if(this.yq(a))throw d.g.ra("not implemented");var c=this.mc(0),f=new d.b,h=new d.i;h.Ja();for(var l=this.Ea(a),g=this.Dc(a);l<g;l++)c.ec(2*l,f),h.Db(f);b.K(h)}};b.prototype.dj=function(a){null==this.pb&&(this.pb=new d.Wj);if(0==a||16>this.F())return!1;a=d.Ia.nB(this);this.pb.GA(a);return!0};b.prototype.jJ=function(){null==this.pb&&(this.pb=new d.Wj);if(null!=this.pb.nn)return!0;this.pb.HA(null);var a=d.Ia.CK(this);this.pb.HA(a);return!0};b.prototype.Pp=
function(a){this.gp=a};b.prototype.Cm=function(){return this.gp};b.Id=[0,0,6,0,8,0];return b}(d.Wr);d.al=m})(p||(p={}));(function(d){var m=function(g){function b(a){g.call(this);if(void 0!==a){if(null==a)throw d.g.N();this.description=a}else this.description=d.Od.Tf();this.ta=0}L(b,g);b.prototype.Pa=function(){return new b(this.description)};b.prototype.add=function(a){this.resize(this.ta+1);this.bh(this.ta-1,a)};b.prototype.zs=function(a,b){this.resize(this.ta+1);var c=new d.b;c.ma(a,b);this.ic(this.ta-
1,c)};b.prototype.Pd=function(a,b,e){e=0>e?a.F():e;if(0>b||b>a.F()||e<b)throw d.g.N();if(b!=e){this.Ik(a.description);e-=b;var c=this.ta;this.resize(this.ta+e);this.kc();for(var h=0,l=a.description.Aa;h<l;h++){var g=a.description.Fd(h),n=d.pa.Wa(g),u=this.mc(g),g=a.mc(g);u.nk(c*n,g,b*n,e*n,!0,1,c*n)}}};b.prototype.eF=function(a){if(0>a||a>=this.F())throw d.g.ra("index out of bounds");this.kc();for(var b=0,e=this.description.Aa;b<e;b++)if(null!=this.Ba[b]){var f=d.pa.Wa(this.description.Fd(b));this.Ba[b].oj(f*
a,f,f*this.ta)}this.ta--;this.rg--;this.ce(1993)};b.prototype.resize=function(a){this.jo(a)};b.prototype.eo=function(){};b.prototype.Ja=function(){g.prototype.EA.call(this)};b.prototype.Oe=function(a){if(a instanceof d.Bg){if(!this.s()){this.kc();for(var b=this.Ba[0],e=new d.b,f=0;f<this.ta;f++)e.x=b.read(2*f),e.y=b.read(2*f+1),a.Zi(e,e),b.write(2*f,e.x),b.write(2*f+1,e.y);this.ce(1993)}}else if(!this.s()){this.kc();this.Ne(1);this.kc();for(var b=this.Ba[0],e=this.Ba[1],h=new d.ee,f=0;f<this.ta;f++){h.x=
b.read(2*f);h.y=b.read(2*f+1);h.z=e.read(f);var l=a.Qn(h);b.write(2*f,l.x);b.write(2*f+1,l.y);e.write(f,l.z)}this.ce(1993)}};b.prototype.fb=function(){return 0};b.prototype.D=function(){return 550};b.prototype.Mh=function(){return 0};b.prototype.$b=function(){return 0};b.prototype.lc=function(a){return a==this?!0:a instanceof b?g.prototype.lc.call(this,a):!1};b.prototype.fR=function(a,b){var c=this.ta,c=Math.min(c,b+1E3);if(0>b||b>=this.ta||c<b||1E3!=a.length)throw d.g.N();var f=this.mc(0),h=c-b,
l=[];f.Hp(2*b,2*h,l,0,!0);for(f=0;f<h;f++)a[f]=d.b.Oa(l[2*f],l[2*f+1]);return c};b.prototype.qv=function(){};b.prototype.xv=function(){};b.prototype.jv=function(){return!1};b.prototype.dj=function(){return!1};b.prototype.Rf=function(){return null};return b}(d.Wr);d.pe=m})(p||(p={}));(function(d){(function(d){d[d.NotDetermined=0]="NotDetermined";d[d.Structure=1]="Structure";d[d.DegenerateSegments=2]="DegenerateSegments";d[d.Clustering=3]="Clustering";d[d.Cracking=4]="Cracking";d[d.CrossOver=5]="CrossOver";
d[d.RingOrientation=6]="RingOrientation";d[d.RingOrder=7]="RingOrder";d[d.OGCPolylineSelfTangency=8]="OGCPolylineSelfTangency";d[d.OGCPolygonSelfTangency=9]="OGCPolygonSelfTangency";d[d.OGCDisconnectedInterior=10]="OGCDisconnectedInterior"})(d.NH||(d.NH={}));var m=function(){function d(b,a,c){void 0===b?(this.yh=0,this.Gk=this.Fk=-1):(this.yh=b,this.Fk=a,this.Gk=c)}d.prototype.aq=function(b){this.yh=b.yh;this.Fk=b.Fk;this.Gk=b.Gk};return d}();d.wd=m})(p||(p={}));(function(d){var m=function(){function g(){}
g.WT=function(b){if(!1===b)throw d.g.PG();};g.bG=function(b){return isNaN(b)?NaN:0===b?b:0<b?1:-1};g.Lh=function(b,a){void 0===a&&(a=0);for(var c=[],e=0;e<b;e++)c[e]=a;return c};g.Ps=function(b,a){var c,e;void 0===c&&(c=0);for(void 0===e&&(e=b.length-1);c<=e;c++)b[c]=a};g.Kr=function(b,a,c){return b<a?a:b>c?c:b};g.mU=function(){return 4};g.kg=function(b,a){var c=5381;void 0!==a?c=(a<<5)+a+(b&255):c=(c<<5)+c+(b&255);c=(c<<5)+c+(b>>8&255);c=(c<<5)+c+(b>>16&255);return(c<<5)+c+(b>>24&255)&2147483647};
g.Rh=function(){throw Error("Not Implemented");};g.iU=function(){return-Infinity};g.kU=function(){return Infinity};g.bU=function(){return 2147483647};g.QT=function(){return 2.220446049250313E-16};g.ST=function(){return 1.7976931348623157E308};g.$x=function(b){return g.JH(b)+12345&2147483647};g.FD=function(b){var a=32,c=b%g.gv|0,e=b/g.gv|0;if(0===(a&=63))return b;32>a?(b=c>>>a|e<<32-a,a=e>>a):(b=e>>a-32,a=0<=e?0:-1);return a*g.gv+(b>>>0)};g.JH=function(b){b|=0;return(1103495168*b|0)+(20077*b|0)|0};
g.truncate=function(b){return 0>b?-1*Math.floor(Math.abs(b)):Math.floor(b)};g.aH=Math.pow(2,53)-1;g.UT=-g.aH;g.pF=65536;g.zU=16777216;g.gv=g.pF*g.pF;return g}();d.I=m})(p||(p={}));(function(d){(function(d){d[d.Project=0]="Project";d[d.Union=1]="Union";d[d.Difference=2]="Difference";d[d.Proximity2D=3]="Proximity2D";d[d.Relate=4]="Relate";d[d.Equals=5]="Equals";d[d.Disjoint=6]="Disjoint";d[d.Intersects=7]="Intersects";d[d.Within=8]="Within";d[d.Contains=9]="Contains";d[d.Crosses=10]="Crosses";d[d.Touches=
11]="Touches";d[d.Overlaps=12]="Overlaps";d[d.Buffer=13]="Buffer";d[d.Distance=14]="Distance";d[d.Intersection=15]="Intersection";d[d.Clip=16]="Clip";d[d.Cut=17]="Cut";d[d.DensifyByLength=18]="DensifyByLength";d[d.DensifyByAngle=19]="DensifyByAngle";d[d.LabelPoint=20]="LabelPoint";d[d.GeodesicBuffer=21]="GeodesicBuffer";d[d.GeodeticDensifyByLength=22]="GeodeticDensifyByLength";d[d.ShapePreservingDensify=23]="ShapePreservingDensify";d[d.GeodeticLength=24]="GeodeticLength";d[d.GeodeticArea=25]="GeodeticArea";
d[d.Simplify=26]="Simplify";d[d.SimplifyOGC=27]="SimplifyOGC";d[d.Offset=28]="Offset";d[d.Generalize=29]="Generalize";d[d.SymmetricDifference=30]="SymmetricDifference";d[d.ConvexHull=31]="ConvexHull";d[d.Boundary=32]="Boundary";d[d.SimpleRelation=33]="SimpleRelation"})(d.iI||(d.iI={}));var m=function(){function g(){}g.prototype.D=function(){return null};g.NT=function(b){d.T.Th(b.D())&&(b=b.pb,null!=b&&(b.uv(null),b.GA(null)))};return g}();d.Me=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,
arguments)}L(b,g);b.prototype.D=function(){return 13};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,e,f,h){return a instanceof d.T?(h=new d.Pc(a),this.$(h,b,[e],!1,f).next()):!0===f?(e=new d.Pz(a,b,e,!1,h),d.wi.local().$(e,b,h)):new d.Pz(a,b,e,!1,h)};b.V=null;return b}(d.Me);d.Oz=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c,e,f){this.ua=-1;this.ne=b;this.fx=a;this.Oq=c;this.BP=new d.i;this.BP.Ja();this.Vm=-1;this.Yb=f}g.prototype.next=function(){for(var b;null!=
(b=this.ne.next());)return this.ua=this.ne.ya(),this.Vm+1<this.Oq.length&&this.Vm++,this.buffer(b,this.Oq[this.Vm]);return null};g.prototype.ya=function(){return this.ua};g.prototype.buffer=function(b,a){return d.UG.buffer(b,a,this.fx,NaN,96,this.Yb)};return g}();d.Pz=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.prototype.D=function(){return 16};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,e,f){return a instanceof
d.T?(a=new d.Pc(a),this.$(a,b,e,f).next()):new d.TH(a,b,e,f)};b.V=null;return b}(d.Me);d.SH=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c){this.ua=-1;if(null==b)throw d.g.N();this.R=a;this.wk=b;this.ka=d.Ia.zd(c,a,!1)}g.prototype.next=function(){var b;return null!=(b=this.wk.next())?(this.ua=this.wk.ya(),d.Ed.clip(b,this.R,this.ka,0)):null};g.prototype.ya=function(){return this.ua};return g}();d.TH=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}
L(b,g);b.prototype.D=function(){return 31};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,e){return a instanceof d.T?d.Rz.qB(a):new d.Rz(b,a,e)};b.V=null;return b}(d.Me);d.Qz=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c){this.cE=new d.Tr;this.ua=-1;if(null==a)throw d.g.N();this.zP=b;this.Ec=!1;this.wk=a;this.Yb=c}g.prototype.next=function(){if(this.zP){if(!this.Ec){var b=this.GK(this.wk);this.Ec=!0;return b}return null}if(!this.Ec){b=this.wk.next();
if(null!=b)return this.ua=this.wk.ya(),g.qB(b);this.Ec=!0}return null};g.prototype.ya=function(){return this.ua};g.prototype.GK=function(b){for(var a;null!=(a=b.next());)this.cE.Eb(a);return this.cE.sN()};g.qB=function(b){if(g.Gh(b))return b;var a=b.D();if(d.al.Lc(a))return a=new d.Xa(b.description),a.Bc(b,!0),a;if(550==a&&2==b.F()){var c=new d.Va,a=new d.Xa(b.description);b.Sd(0,c);a.df(c);b.Sd(1,c);a.lineTo(c);return a}return d.Tr.wL(b)};g.Gh=function(b){if(b.s())return!0;var a=b.D();return 33==
a||197==a?!0:d.al.Lc(a)?!1:550==a?1==b.F()?!0:!1:1607==a?1==b.ea()&&2>=b.F()?!0:!1:1!=b.ea()?!1:2>=b.F()?!0:d.Tr.sD(b,0)};return g}();d.Rz=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.prototype.D=function(){return 17};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,e,f,h){return new d.VH(a,b,e,f,h)};b.V=null;return b}(d.Me);d.UH=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c,e,f){this.Ef=null;if(null==
a||null==c)throw d.g.ra("invalid argument");this.xP=b;this.rx=a;this.RD=c;b=d.Ia.$s(a,c);this.ka=d.Ia.zd(e,b,!0);this.QD=-1;this.oe=f}g.prototype.ya=function(){return 0};g.prototype.next=function(){this.gN();return++this.QD<this.Ef.length?this.Ef[this.QD]:null};g.prototype.gN=function(){if(null==this.Ef)switch(this.Ef=[],this.rx.D()){case 1607:this.iN();break;case 1736:this.hN()}};g.prototype.iN=function(){var b=new d.Xa,a=new d.Xa,c=new d.Xa;this.Ef.push(b);this.Ef.push(a);var e=[];d.$G.YG(this.xP,
this.rx,this.RD,this.ka,e,this.oe);for(var f=0;f<e.length;f++){var h=e[f];0==h.cu?b.add(h.U,!1):1==h.cu||2==h.cu?a.add(h.U,!1):3==h.cu?this.Ef.push(h.U):c.add(h.U,!1)}c.s()||b.s()&&a.s()&&!(3<=this.Ef.length)||this.Ef.push(c);b.s()&&a.s()&&3>this.Ef.length&&(this.Ef.length=0)};g.prototype.hN=function(){var b=new d.ga(0),a=new d.fd,c=a.RB(),e=a.Eb(this.rx),f=a.Eb(this.RD),h=new d.Of;try{h.Np(a,this.ka,this.oe);h.xm(c,e,f,b);var l=a.hf(e),g=new d.Ka,n=new d.Ka;this.Ef.length=0;this.Ef.push(g);this.Ef.push(n);
for(e=0;e<b.size;e++){var u,q=new d.fd,r=q.Eb(l),m=q.Eb(a.hf(b.get(e)));h.Mp(q,this.oe);var t=h.mt(r,m);u=q.hf(t);if(!u.s()){var p=a.yC(b.get(e),c);2==p?g.add(u,!1):1==p?n.add(u,!1):this.Ef.push(u);var v=new d.fd,r=v.Eb(l),m=v.Eb(a.hf(b.get(e)));h.Mp(v,this.oe);l=v.hf(h.ll(r,m))}}!l.s()&&0<b.size&&this.Ef.push(l);g.s()&&n.s()&&(this.Ef.length=0)}finally{h.xg()}};return g}();d.VH=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.prototype.D=function(){return 18};
b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,e){if(a instanceof d.T)return a=new d.Pc(a),this.$(a,b,e).next();if(0>=b)throw d.g.N();return new d.XH(a,b,e)};b.V=null;return b}(d.Me);d.WH=m})(p||(p={}));(function(d){var m=function(){function g(b,a){this.ua=-1;this.ne=b;this.$q=a}g.prototype.ya=function(){return this.ua};g.prototype.next=function(){var b;return null!=(b=this.ne.next())?(this.ua=this.ne.ya(),this.hM(b)):null};g.prototype.hM=function(b){if(b.s()||1>
b.fb())return b;var a=b.D();if(1736==a||1607==a)return this.Xv(b);if(d.T.Lc(a))return this.jM(b);if(197==a)return this.iM(b);throw d.g.wa();};g.prototype.jM=function(b){if(b.$b()<=this.$q)return b;var a=new d.Xa(b.description);a.Bc(b,!0);return this.Xv(a)};g.prototype.iM=function(b){var a=new d.Ka(b.description);a.Wc(b,!1);var c=new d.i;b.o(c);b=c.ba();return c.aa()<=this.$q&&b<=this.$q?a:this.Xv(a)};g.prototype.Xv=function(b){for(var a=b.Pa(),c=b.Ca();c.kb();)for(var e=!0;c.La();){var f=c.ia();if(322!=
f.D())throw d.g.ra("not implemented");var h=c.lD(),l=f.$b();if(l>this.$q){var g=Math.ceil(l/this.$q),l=new d.Va(b.description);e&&(f.En(l),a.df(l));for(var n=e=1/g,u=0,g=g-1;u<g;u++)f.uu(n,l),a.lineTo(l),n+=e;h?a.ro():(f.Bn(l),a.lineTo(l))}else h?a.ro():a.Bc(f,e);e=!1}return a};return g}();d.XH=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.D=function(){return 2};b.prototype.$=function(a,
b,e,f){return a instanceof d.T?(a=new d.Pc(a),b=new d.Pc(b),this.$(a,b,e,f).next()):new d.YH(a,b,e,f)};b.ll=function(a,c,e,f){if(a.s()||c.s())return a;var h=a.fb(),l=c.fb();if(h>l)return a;var g=a.D(),n=c.D(),u=new d.i,q=new d.i,r=new d.i;a.o(u);c.o(q);r.K(u);r.Db(q);var r=d.Ia.zd(e,r,!1),m=r*Math.sqrt(2)*1.00001,t=new d.i;t.K(u);t.P(m,m);if(!t.jc(q))return a;if(1==h&&2==l)return b.UI(a,c,n,e,f);if(33==g)switch(d.al.Lc(n)?(e=new d.Xa(c.description),e.Bc(c,!0)):e=c,n){case 1736:return b.kP(a,e,r);
case 1607:return b.nP(a,e,r);case 550:return b.dN(a,e,r);case 197:return b.FM(a,e,r);case 33:return b.rO(a,e,r);default:throw d.g.N();}else if(550==g)switch(n){case 1736:return b.ZI(a,c,r);case 197:return b.TI(a,c,r);case 33:return b.WI(a,c,r)}return d.Of.ll(a,c,e,f)};b.kP=function(a,b,e){return 0==d.gd.uD(b,a,e)?a:a.Pa()};b.nP=function(a,b,e){var c=a.w();b=b.Ca();for(var h=e*Math.sqrt(2)*1.00001,l=h*h,g=new d.i;b.kb();)for(;b.La();){var n=b.ia();n.o(g);g.P(h,h);if(g.contains(c)){if(n.Eq(c,e))return a.Pa();
var u=n.Mb();if(d.b.Zb(c,u)<=l)return a.Pa();u=n.oc();if(d.b.Zb(c,u)<=l)return a.Pa()}}return a};b.dN=function(a,b,e){var c=b.mc(0);b=b.F();var h=a.w(),l=new d.b;e=e*Math.sqrt(2)*1.00001;e*=e;for(var g=0;g<b;g++)if(c.ec(2*g,l),d.b.Zb(l,h)<=e)return a.Pa();return a};b.FM=function(a,b,e){var c=new d.i;b.o(c);c.P(e,e);b=a.w();return c.contains(b)?a.Pa():a};b.rO=function(a,b,e){e=e*Math.sqrt(2)*1.00001;e*=e;var c=a.w();b=b.w();return d.b.Zb(c,b)<=e?a.Pa():a};b.ZI=function(a,b,e){var c=new d.i;b.o(c);
c.P(e,e);for(var h=a.F(),l=!1,g=[],n=0;n<h;n++)g[n]=!1;for(var u=new d.b,n=0;n<h;n++)a.w(n,u),c.contains(u)&&0!=d.gd.he(b,u,e)&&(l=!0,g[n]=!0);if(!l)return a;b=a.Pa();for(n=0;n<h;n++)g[n]||b.Pd(a,n,n+1);return b};b.TI=function(a,b,e){var c=new d.i;b.o(c);c.P(e,e);b=a.F();var h=!1;e=[];for(var l=0;l<b;l++)e[l]=!1;for(var g=new d.b,l=0;l<b;l++)a.w(l,g),c.contains(g)&&(h=!0,e[l]=!0);if(!h)return a;c=a.Pa();for(l=0;l<b;l++)e[l]||c.Pd(a,l,l+1);return c};b.WI=function(a,b,e){var c=a.mc(0),h=a.F(),l=b.w(),
g=new d.b,n=!1;b=[];for(var u=0;u<h;u++)b[u]=!1;u=e*Math.sqrt(2)*1.00001;e=u*u;for(u=0;u<h;u++)c.ec(2*u,g),d.b.Zb(g,l)<=e&&(n=!0,b[u]=!0);if(!n)return a;c=a.Pa();for(u=0;u<h;u++)b[u]||c.Pd(a,u,u+1);return c};b.UI=function(a,b,e,f,h){var c=new d.Vj;a.Fp(c);var g=new d.i;b.o(g);c.Db(g);c.P(.1*c.aa(),.1*c.ba());g=new d.Ka;g.Wc(c,!1);1736==e?g.add(b,!0):g.Wc(b,!0);return d.$r.local().$(a,g,f,h)};b.V=null;return b}(d.Me);d.Zr=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c,e){this.Fq=null==
a;this.ua=-1;this.ne=b;this.fx=c;this.EP=a.next();this.Yb=e}g.prototype.next=function(){if(this.Fq)return null;var b;return null!=(b=this.ne.next())?(this.ua=this.ne.ya(),d.Zr.ll(b,this.EP,this.fx,this.Yb)):null};g.prototype.ya=function(){return this.ua};return g}();d.YH=m})(p||(p={}));(function(d){var m=function(){function b(a){this.oe=a;this.Ii=new d.i;this.Ii.Ja();this.Ng=new d.i;this.Ng.Ja()}b.prototype.Pr=function(){var a;a=this.Ii.v;this.Ii.v=this.Ng.v;this.Ng.v=a;a=this.Ii.B;this.Ii.B=this.Ng.B;
this.Ng.B=a;a=this.Ii.C;this.Ii.C=this.Ng.C;this.Ng.C=a;a=this.Ii.G;this.Ii.G=this.Ng.G;this.Ng.G=a};b.prototype.wM=function(a,b){var c=!this.Ii.jc(this.Ng);if(d.T.Kc(a.D())&&d.T.Kc(b.D())){if(a.F()>b.F())return this.gB(a,b,c);this.Pr();c=this.gB(b,a,c);this.Pr();return c}if(550==a.D()&&d.T.Kc(b.D()))return c=this.hB(b,a,c),this.Pr(),c;if(550==b.D()&&d.T.Kc(a.D()))return this.hB(a,b,c);if(550==a.D()&&550==b.D()){if(a.F()>b.F())return this.iB(a,b);this.Pr();c=this.iB(b,a);this.Pr();return c}return 0};
b.prototype.gB=function(a,b,e){var c=a.Ca(),h=b.Ca(),l=new d.i,g=new d.i,n=1.7976931348623157E308;if(!e&&this.iT(a,b,c,h))return 0;for(;c.kb();)for(;c.La();)if(a=c.ia(),a.o(l),!(l.Ou(this.Ng)>n)){for(;h.kb();)for(;h.La();)if(b=h.ia(),b.o(g),l.Ou(g)<n&&(b=a.Fb(b,e),b*=b,b<n)){if(0==b)return 0;n=b}h.Lk()}return Math.sqrt(n)};b.prototype.hB=function(a,b,e){var c=a.Ca(),h=new d.i,l=1.7976931348623157E308,g=new d.b,n,u=b.F();for(e=!e&&1736==a.D();c.kb();)for(;c.La();){var q=c.ia();q.o(h);if(!(1<u&&h.Ou(this.Ng)>
l)){for(var r=0;r<u;r++){b.w(r,g);if(e&&0!=d.gd.he(a,g,0))return 0;n=q.Gd(g,!1);g.sub(q.Kb(n));n=g.Up();if(n<l){if(0==n)return 0;l=n}}e=!1}}return Math.sqrt(l)};b.prototype.iB=function(a,b){for(var c=1.7976931348623157E308,f=new d.b,h=new d.b,l,g=a.F(),n=b.F(),u=0;u<g;u++)if(a.w(u,f),!(1<n&&this.Ng.gG(f)>c))for(var q=0;q<n;q++)if(b.w(q,h),l=d.b.Zb(f,h),l<c){if(0==l)return 0;c=l}return Math.sqrt(c)};b.prototype.iT=function(a,b,e,f){if(1736==a.D()){for(;f.kb();)if(f.La()){var c=f.ia();if(0!=d.gd.he(a,
c.oc(),0))return!0}f.Lk()}if(1736==b.D()){for(;e.kb();)if(e.La()&&(a=e.ia(),0!=d.gd.he(b,a.oc(),0)))return!0;e.Lk()}return!1};b.prototype.il=function(a,b){if(a.s()||b.s())return NaN;a.o(this.Ii);b.o(this.Ng);return this.wM(a,b)};return b}(),g=function(b){function a(){b.apply(this,arguments)}L(a,b);a.prototype.$=function(a,b,f){if(null==a||null==b)throw d.g.N();if(a.s()||b.s())return NaN;var c,e;c=a.D();e=b.D();if(33==c){if(33==e)return d.b.Fb(a.w(),b.w());if(197==e)return f=new d.i,b.o(f),f.Fb(a.w());
c=new d.pe;c.add(a);a=c}else if(197==c){if(197==e)return e=new d.i,a.o(e),f=new d.i,b.o(f),f.Fb(e);c=new d.Ka;c.Wc(a,!1);a=c}33==e?(e=new d.pe,e.add(b),b=e):197==e&&(e=new d.Ka,e.Wc(b,!1),b=e);return(new m(f)).il(a,b)};a.local=function(){null===a.V&&(a.V=new a);return a.V};a.prototype.D=function(){return 14};a.V=null;return a}(d.Me);d.ZH=g})(p||(p={}));(function(d){var m=function(){function g(b,a,c,e){this.aE=b;this.fE=a;this.oe=e;this.HD=c}g.prototype.next=function(){var b=this.aE.next();return null==
b?null:this.yz(b)};g.prototype.ya=function(){return this.aE.ya()};g.prototype.yz=function(b){var a=b.D();if(d.T.Km(a))return b;if(197==a)return a=new d.Ka(b.description),a.Wc(b,!1),this.yz(a);if(b.s())return b;if(null==b)throw d.g.wa();for(var a=b.Pa(),c=new d.yb,e=0,f=b.ea();e<f;e++)this.mH(b,e,a,c);return a};g.prototype.mH=function(b,a,c,e){if(!(2>b.Ha(a))){var f=b.Ea(a),h=b.Dc(a)-1,l=b.mc(0),g=b.vc(a),n=new d.ga(0);n.xb(b.Ha(a)+1);var u=new d.ga(0);u.xb(b.Ha(a)+1);n.add(g?f:h);n.add(f);for(f=new d.b;1<
n.size;){var q=n.tc();n.af();var r=n.tc();b.w(q,f);e.ed(f);b.w(r,f);e.vd(f);r=this.jH(e,f,l,q,r,h);0<=r?(n.add(r),n.add(q)):u.add(q)}g||u.add(n.get(0));if(u.size==n.size)c.Zj(b,a,!0);else if(2<=u.size&&(!this.HD||2!=u.size||!(g||d.b.Fb(b.Fa(u.get(0)),b.Fa(u.get(1)))<=this.fE))){a=new d.Va;e=0;for(h=u.size;e<h;e++)b.Sd(u.get(e),a),0==e?c.df(a):c.lineTo(a);g&&(this.HD||2!=u.size||c.lineTo(a),c.ro())}}};g.prototype.jH=function(b,a,c,e,d,h){var f=d-1;d<=e&&(f=h);h=d=-1;for(e+=1;e<=f;e++){c.ec(2*e,a);
var g=a.x,n=a.y;b.Kb(b.Gd(a,!1),a);a.x-=g;a.y-=n;g=a.length();g>this.fE&&g>h&&(d=e,h=g)}return d};return g}();d.$H=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.prototype.D=function(){return 29};b.prototype.$=function(a,b,e,f){return a instanceof d.T?(a=new d.Pc(a),this.$(a,b,e,f).next()):new d.$H(a,b,e,f)};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.V=null;return b}(d.Me);d.Sz=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,
arguments)}L(b,g);b.prototype.D=function(){return 21};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,e,f,h,l,g,n){return a instanceof d.T?(n=new d.Pc(a),this.$(n,b,e,[f],h,l,!1,g).next()):!0===g?(e=new d.Uz(a,b,e,f,h,!1,!1,n),d.wi.local().$(e,b,n)):new d.Uz(a,b,e,f,h,!1,!1,n)};b.V=null;return b}(d.Me);d.Tz=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c,e,f,h,l,g){if(h)throw d.g.qe();if(null==a)throw d.g.N();this.ua=-1;this.Xq=b;this.cg=a;this.ke=c;
this.Oq=e;this.Rm=f;this.Vm=-1;this.Yb=g;this.CP=new d.i;this.CP.Ja()}g.prototype.next=function(){for(var b;null!=(b=this.Xq.next());)return this.ua=this.Xq.ya(),this.Vm+1<this.Oq.length&&this.Vm++,this.oN(b,this.Oq[this.Vm]);return null};g.prototype.ya=function(){return this.ua};g.prototype.oN=function(b,a){return d.pH.buffer(b,this.cg,this.ke,a,this.Rm,this.Yb)};return g}();d.Uz=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.prototype.D=function(){return 24};
b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,e){if(null==b)throw d.g.N();if(a.s()||1>a.fb())return 0;if(4==e)throw d.g.qe();var c=d.Ya.Em(b),h=d.Ya.ft(c),l=d.Ya.Ts(c),h=h*(2-h),g=c.Se().Dj,n=a.D(),u;1736==n||197==n?u=a.Rf():d.T.Lc(n)?(u=new d.Xa(a.description),u.Bc(a,!0)):u=a;if(0==c.lc(b)){if(d.Ya.Qo(b)){u=d.gh.qo(u,b);1607==n&&u==a&&(u=d.T.Yj(a));a=new d.Nd;d.Ya.Fm(b).wu(a);for(var n=0,q=u.F();n<q;n++){var r=u.Fa(n);r.x=d.gh.pu(r.x,a);u.ic(n,r)}}a=u.Pa();u=d.gh.ZQ(b,
c,u,a)?a:d.Ya.Wl(u,b,c)}return this.yM(u,e,l,h,g)};b.prototype.yM=function(a,b,e,f,h){var c=new d.ca(0),g=0;for(a=a.Ca();a.kb();)for(;a.La();){var n=a.ia(),u=n.Mb(),n=n.oc();u.scale(h);n.scale(h);d.zb.Rd(e,f,u.x,u.y,n.x,n.y,c,null,null,b);g+=c.l}return g};b.V=null;return b}(d.Me);d.cI=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.prototype.D=function(){return 18};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,e,f,h){return a instanceof
d.T?(a=new d.Pc(a),this.$(a,b,e,f,h).next()):new d.bI(a,e,f,b,-1,-1,h)};b.V=null;return b}(d.Me);d.aI=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c,e,f,h){if(0<h)throw d.g.qe();if(4!=c&&0<f)throw d.g.qe();if(null==a)throw d.g.N();this.ua=-1;this.Xq=b;this.cg=a;this.ke=c;this.IP=e;this.HP=f}g.prototype.next=function(){for(var b;null!=(b=this.Xq.next());)return this.ua=this.Xq.ya(),this.hw(b);return null};g.prototype.ya=function(){return this.ua};g.prototype.hw=function(b){return d.ui.oq(b,
this.cg,this.ke,this.IP,this.HP,this.Yb)};return g}();d.bI=m})(p||(p={}));(function(d){(function(d){d[d.Unknown=0]="Unknown";d[d.Contains=1]="Contains";d[d.Within=2]="Within";d[d.Equals=3]="Equals";d[d.Disjoint=4]="Disjoint";d[d.Touches=8]="Touches";d[d.Crosses=16]="Crosses";d[d.Overlaps=32]="Overlaps";d[d.NoThisRelation=64]="NoThisRelation";d[d.Intersects=1073741824]="Intersects";d[d.IntersectsOrDisjoint=1073741828]="IntersectsOrDisjoint"})(d.xH||(d.xH={}));var m=function(){function g(){}g.lU=function(b,
a,c,e){if(a.s()||b.s())return 4;var f=b.D(),h=a.D(),l;d.T.Lc(f)&&(b=l=new d.Xa(b.description),l.Bc(b,!0));d.T.Lc(h)&&(a=l=new d.Xa(a.description),l.Bc(a,!0));switch(f){case 33:switch(h){case 33:return g.sO(b,a,c);case 197:return g.Id(g.BG(a,b,c));case 550:return g.Id(g.HG(a,b,c));case 1607:return g.Id(g.Az(a,b,c,e));case 1736:return g.Id(g.pz(a,b,c))}throw d.g.wa();case 197:switch(h){case 33:return g.BG(b,a,c);case 197:return g.fK(b,a,c);case 550:return g.Id(g.DG(a,b,c,e));case 1607:return g.Id(g.vz(a,
b));case 1736:return g.Id(g.lz(a,b))}throw d.g.wa();case 550:switch(h){case 33:return g.HG(b,a,c);case 197:return g.DG(b,a,c,e);case 550:return g.FG(b,a,c,e);case 1607:return g.Id(g.xz(a,b));case 1736:return g.Id(g.nz(a,b))}throw d.g.wa();case 1607:switch(h){case 33:return g.Az(b,a,c,e);case 197:return g.vz(b,a);case 550:return g.xz(b,a);case 1607:return g.iQ(b,a);case 1736:return g.Id(g.rz(a,b))}throw d.g.wa();case 1736:switch(h){case 33:return g.pz(b,a,c);case 197:return g.lz(b,a);case 550:return g.nz(b,
a);case 1607:return g.rz(b,a);case 1736:return g.oP(b,a)}throw d.g.wa();default:throw d.g.wa();}};g.sO=function(b,a,c){b=b.w();a=a.w();return g.jz(b,a,c)};g.jz=function(b,a,c){b.sub(a);return b.Up()<=c*c?3:4};g.BG=function(b,a,c){var e=new d.i;b.o(e);b=a.w();return g.ZL(e,b,c)};g.ZL=function(b,a,c){b.P(-c,-c);if(b.contains(a))return 1;b.P(c,c);return b.contains(a)?8:4};g.uM=function(b,a,c){return a.contains(c)?1:b.contains(c)?8:4};g.fK=function(b,a,c){var e=new d.i;b.o(e);b=new d.i;a.o(b);return g.MK(e,
b,c)};g.MK=function(b,a,c){var e=0;b.contains(a)&&(e|=1);a.contains(b)&&(e|=2);if(0!=e)return e;b.P(-c,-c);a.P(-c,-c);if(b.jc(a))return e=b,e.P(c,c),e=e.contains(a)?1:0,a.P(c,c),e|=a.contains(b)?2:0,0!=e?e:32;e=b;e.P(c,c);a.P(c,c);return e.jc(a)?8:4};g.HG=function(b,a,c){a=a.w();return g.JG(b,a,c)};g.JG=function(b,a,c){for(var e=0,d=b.F();e<d;e++){var h;h=b.Fa(e);h=g.jz(h,a,c);if(4!=h)return 0!=(h&2)&&1!=d?1:h}return 4};g.DG=function(b,a,c,e){var f=new d.i;a.o(f);return g.eN(b,f,c,e)};g.eN=function(b,
a,c,e){a.P(-c,-c);a.P(c,c);for(var d=c=0,h=b.F();d<h;d++){var l;l=b.Fa(d);l=g.Id(g.uM(a,a,l));if(4!=l&&(c|=l,4==e))return 1073741824}return 0==c?4:2==c?c:32};g.FG=function(b,a,c,e){for(var d=0,h=0,l=a.F();h<l;h++){var k;k=a.Fa(h);k=g.JG(b,k,c);if(4!=k&&(d++,4==e))return 1073741824}return 0<d?d==a.F()?3==e?(k=g.FG(a,b,c,1),1==k?3:0):1:32:0};g.Az=function(b,a,c,e){a=a.w();return g.XP(b,a,c,e)};g.GM=function(b,a){var c=null,e=b.pb;null!=e&&(c=e.hi);if(null!=c){c=c.Kk(a.x,a.y);if(0==c)return 4;if(1==
c)return 1}else return-1;return 0};g.XP=function(b,a,c,e){if(0==(e&1073741839))return 64;var f=g.GM(b,a);if(0<f)return f;c*=c;for(f=b.Ca();f.kb();){var h=f.Qa;if(!b.vc(h)){var l=b.Ha(h),h=b.Ea(h);if(0==l)continue;if(d.b.Zb(b.Fa(h),a)<=c||1<l&&d.b.Zb(b.Fa(h+l-1),a)<=c)return 8}if(8!=e)for(;f.La();)if(l=f.ia(),l=l.Kb(l.Gd(a,!1)),d.b.Zb(l,a)<=c)return 0!=(e&1073741828)?1073741824:1}return 0!=(e&1073741828)?4:64};g.vz=function(b,a){var c=new d.i;a.o(c);return g.rP(b,c)};g.rP=function(b,a){var c=g.ao(b,
a);return 0<c?c:0};g.ao=function(b,a){var c;c=b.pb;if(null!=c)c=c.hi;else return-1;if(null!=c){c=c.Dn(a);if(0==c)return 4;if(1==c)return 1}else return-1;return 0};g.xz=function(b,a){var c=new d.i;a.o(c);c=g.ao(b,c);return 0<c?c:0};g.fs=function(b,a){var c=new d.i;a.o(c);c=g.ao(b,c);return 0<c?c:-1==c&&(c=new d.i,b.o(c),c=g.ao(a,c),0<c)?g.Id(c):0};g.iQ=function(b,a){var c=g.fs(b,a);return 0<c?c:0};g.pz=function(b,a,c){a=a.w();return g.lP(b,a,c)};g.lP=function(b,a,c){b=d.gd.he(b,a,c);if(0==b)return 4;
if(1==b)return 1;if(2==b)return 8;throw d.g.wa();};g.lz=function(b,a){var c=new d.i;a.o(c);return g.uO(b,c)};g.uO=function(b,a){var c=g.ao(b,a);return 0<c?c:0};g.nz=function(b,a){var c=g.fs(b,a);return 0<c?c:0};g.rz=function(b,a){var c=g.fs(b,a);return 0<c?c:0};g.oP=function(b,a){var c=g.fs(b,a);return 0<c?c:0};g.iR=function(b,a){var c=b.D(),e=a.D(),f;if(d.T.Th(c)&&(f=b.pb,null!=f&&(f=f.hi,null!=f))){if(33==e){var h=a.w();f=f.Kk(h.x,h.y)}else h=new d.i,a.o(h),f=f.Dn(h);if(1==f)return 1;if(0==f)return 4}if(d.T.Th(e)&&
(f=a.pb,null!=f&&(f=f.hi,null!=f))){33==c?(c=b.w(),f=f.Kk(c.x,c.y)):(c=new d.i,b.o(c),f=f.Dn(c));if(1==f)return 2;if(0==f)return 4}return 0};g.Id=function(b){0!=(b&1)&&(b=b&-2|2);0!=(b&2)&&(b=b&-3|1);return b};return g}();d.dI=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.D=function(){return 15};b.prototype.$=function(a,b,e,f,h){return a instanceof d.T?(a=new d.Pc(a),b=new d.Pc(b),this.$(a,
b,e,f,h).next()):void 0===h?new d.Vz(a,b,e,f,-1):new d.Vz(a,b,e,f,h)};b.V=null;return b}(d.Me);d.$r=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c,e,f){this.Fq=null==a;this.ua=-1;this.ne=b;this.cg=c;this.Ce=a.next();this.Ji=this.Ce.D();this.Yb=e;this.Xh=f;if(-1!=this.Xh&&(0>=this.Xh||7<this.Xh))throw d.g.N("bad dimension mask");}g.prototype.next=function(){if(this.Fq)return null;var b;if(null!=this.du){b=this.du.next();if(null!=b)return b;this.du=null}for(;null!=(b=this.ne.next());){this.ua=
this.ne.ya();if(-1==this.Xh)return b=this.Ga(b);this.du=this.PO(b);return b=this.du.next()}return null};g.prototype.ya=function(){return this.ua};g.prototype.Ga=function(b){var a=this.uG(b);if(null!=a)return a;var a=d.Ia.$s(this.Ce,b),c=d.Ia.zd(this.cg,a,!0),a=new d.i;this.Ce.o(a);var e=new d.i;b.o(e);a.P(2*c,2*c);a.Ga(e);a.P(100*c,100*c);c=d.Ed.clip(this.Ce,a,0,0);b=d.Ed.clip(b,a,0,0);return d.Of.mt(b,c,this.cg,this.Yb)};g.prototype.SE=function(b,a,c){var e=0;if(0!=(a&1))null==c[0]&&(c[0]=new d.pe(b)),
e++;else for(var f=0;f<c.length-1;f++)c[f]=c[f+1];if(0!=(a&2))null==c[e]&&(c[e]=new d.Xa(b)),e++;else for(f=e;f<c.length-1;f++)c[f]=c[f+1];if(0!=(a&4))null==c[e]&&(c[e]=new d.Ka(b)),e++;else for(f=e;f<c.length-1;f++)c[f]=c[f+1];if(3!=e){b=[];for(f=0;f<e;f++)b[f]=c[f];return new d.Pc(b)}return new d.Pc(c)};g.prototype.PO=function(b){var a=this.uG(b);if(null!=a){var c=[null,null,null];c[a.fb()]=a;return this.SE(b.description,this.Xh,c)}a=d.Ia.$s(this.Ce,b);c=d.Ia.zd(this.cg,a,!0);a=new d.i;this.Ce.o(a);
a.P(2*c,2*c);var e=new d.i;b.o(e);a.Ga(e);a.P(100*c,100*c);c=d.Ed.clip(this.Ce,a,0,0);a=d.Ed.clip(b,a,0,0);c=d.Of.Uw(a,c,this.cg,this.Yb);return this.SE(b.description,this.Xh,c)};g.prototype.uG=function(b){var a=d.Ia.$s(b,this.Ce),c=d.Ia.zd(this.cg,a,!1),a=b.D(),e=b.s(),f=this.Ce.s(),f=e||f;if(!f){f=new d.i;b.o(f);var h=new d.i;this.Ce.o(h);h.P(2*c,2*c);f=!f.jc(h)}if(!f)if(h=d.dI.iR(this.Ce,b),4==h)f=!0;else{if(0!=(h&2))return this.Ce;if(0!=(h&1))return b}if(f)return c=d.T.ve(a),f=d.T.ve(this.Ji),
c<f?g.V(b,e):c>f?this.kF():0==c?550==a&&33==this.Ji?this.kF():g.V(b,e):g.V(b,e);if((-1==this.Xh||4==this.Xh)&&197==a&&197==this.Ji)return c=this.Ce,a=new d.i,b.o(a),e=new d.i,c.o(e),a.Ga(e),c=new d.Vj,b.copyTo(c),c.Cu(a),c;if(197==a&&0==d.T.ve(this.Ji)||197==this.Ji&&0==d.T.ve(a))return e=197==a?b:this.Ce,b=197==a?this.Ce:b,a=new d.i,e.o(a),d.Ed.clip(b,a,c,0);if(0==d.T.ve(a)&&0<d.T.ve(this.Ji)||0<d.T.ve(a)&&0==d.T.ve(this.Ji)){c=d.Ia.Cg(this.cg,b,!1);if(550==a||33==a)return d.Of.jD(b,this.Ce,c);if(550==
this.Ji||33==this.Ji)return d.Of.jD(this.Ce,b,c);throw d.g.wa();}return-1!=this.Xh&&2!=this.Xh||1607!=a||1736!=this.Ji?-1!=this.Xh&&2!=this.Xh||1736!=a||1607!=this.Ji?null:this.rG(this.Ce,b):this.rG(b,this.Ce)};g.prototype.rG=function(b,a){var c=b,e=a,f=d.Ia.Cg(this.cg,a,!1),h=new d.i;e.o(h);var l=new d.i;c.o(l);l.P(2*f,2*f);h.Ga(l);h.P(10*f,10*f);var c=b=d.Ed.clip(b,h,0,0),l=new d.ga(0),g=-1,n=e.pb;if(null!=n){var u=n.hi;if(null!=u){g=0;l.xb(c.F()+c.ea());for(var q=new d.i,r=c.Ca();r.kb();)for(;r.La();){r.ia().o(q);
var m=u.Dn(q);1==m?l.add(1):0==m?l.add(0):(l.add(-1),g++)}}}5<a.F()&&(e=a=d.Ed.clip(a,h,0,0),n=e.pb);0>g&&(g=c.Iw());h=c.F()+e.F();if(g*e.F()>Math.log(h)*h*4)return null;h=null;g=e.Ca();null!=n&&null!=n.Ab&&(h=n.Ab);null==h&&20<e.F()&&(h=d.Ia.nB(e));for(var e=b.Pa(),n=null,u=c.Ca(),q=[0,0,0,0,0,0,0,0,0],r=new d.qd(0),m=new d.Ag,t=-1,p=0,v=0,C=0<l.size,A=-1;u.kb();){for(var A=u.Qa,y=0,t=-1,p=0;u.La();){var z=C?d.I.truncate(l.get(v)):-1;v++;var B=u.ia();if(0>z){if(null!=h)for(null==n?n=h.KN(B,f):n.Fn(B,
f),z=n.next();-1!=z;z=n.next()){g.Sb(h.da(z));for(var z=g.ia(),D=B.Ga(z,null,q,null,f),z=0;z<D;z++)r.add(q[z])}else for(g.Lk();g.kb();)for(;g.La();)for(z=g.ia(),D=B.Ga(z,null,q,null,f),z=0;z<D;z++)r.add(q[z]);if(0<r.size){r.xd(0,r.size,function(a,b){return a-b});var E=0;r.add(1);for(var D=-1,z=0,G=r.size;z<G;z++){var F=r.get(z);if(F!=E){var H=!1;0!=E||1!=F?(B.Bi(E,F,m),E=m.get()):(E=B,H=!0);if(2<=y){e.ys(c,A,t,p,3==y);if(1!=this.UA(a,E.Mb(),f)&&1!=this.VA(a,E,f))return null;e.Bc(E,!1);y=1;p=0}else switch(D=
this.VA(a,E,f),D){case 1:H?2>y?(t=u.Jb()-c.Ea(A),p=1,y=0==y?3:2):p++:(e.Bc(E,0==y),y=1);break;case 0:y=0;t=-1;p=0;break;default:return null}E=F}}}else{z=this.UA(a,B.Mb(),f);if(0>z)return null;1==z?(2>y&&(t=u.Jb()-c.Ea(A),y=0==y?3:2),p++):(t=-1,p=0)}r.clear(!1)}else 0!=z&&1==z&&(0==y?(y=3,t=u.Jb()-c.Ea(A)):1==y?(y=2,t=u.Jb()-c.Ea(A)):p++)}2<=y&&(e.ys(c,A,t,p,3==y),t=-1)}return e};g.prototype.UA=function(b,a,c){return d.ff.xl(b,a,c)};g.prototype.VA=function(b,a,c){var e=a.Mb();a=a.oc();var f=d.ff.xl(b,
e,c),h=d.ff.xl(b,a,c);if(1==f&&0==h||0==f&&1==h)return-1;if(0==f||0==h)return 0;if(1==f||1==h)return 1;f=new d.b;f.add(e,a);f.scale(.5);b=d.ff.xl(b,f,c);return 0==b?0:1==b?1:-1};g.V=function(b,a){return a?b:b.Pa()};g.prototype.kF=function(){null==this.$D&&(this.$D=this.Ce.Pa());return this.$D};return g}();d.Vz=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.prototype.D=function(){return 28};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=
function(a,b,e,f,h,l,g){return a instanceof d.T?(a=new d.Pc(a),this.$(a,b,e,f,h,l,g).next()):new d.eI(a,b,e,f,h,l,g)};b.V=null;return b}(d.Me);d.Wz=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c,e,d,h,l){this.ua=-1;this.ne=b;this.Pi=a;this.Da=c;this.bi=e;this.Dx=d;this.XD=h;this.oe=l}g.prototype.next=function(){var b=this.ne.next();return null!=b?(this.ua=this.ne.ya(),this.RH(b)):null};g.prototype.ya=function(){return this.ua};g.prototype.RH=function(b){var a;a=0>=this.XD?d.Ia.Cg(this.Pi,
b,!1):this.XD;return d.XG.$(b,this.Da,this.bi,this.Dx,a,this.oe)};return g}();d.eI=m})(p||(p={}));(function(d){var m=function(){function b(){}b.prototype.reset=function(){this.Pg=this.Fj=-1;this.Hq=this.Uo=!1};b.prototype.QM=function(a,b,e){for(a.Sb(b,e);a.La();){var c=a.ia(),c=c.$b();if(0!=c)return a.Jb()}for(a.Sb(b,e);a.Ow();)if(c=a.oi(),c=c.$b(),0!=c)return a.Jb();return-1};b.prototype.RM=function(a,b){for(a.Sb(b,-1);a.Ow();)if(0!=a.oi().$b())return a.Jb();return-1};b.prototype.PM=function(a,b){a.Sb(b,
-1);for(a.ia();a.La();)if(0!=a.ia().$b())return a.Jb();return-1};b.prototype.OM=function(a,b,e,f){this.Fj=this.QM(b,e,f);if(-1!=this.Fj){b.Sb(this.Fj,-1);var c=b.ia(),l=c.Kb(c.Gd(a,!1));e=d.b.Zb(l,a);f=new d.b;f.J(l);f.sub(c.Mb());l=new d.b;l.J(a);l.sub(c.Mb());this.Uo=0>f.Ai(l);this.Pg=this.PM(b,this.Fj);if(-1!=this.Pg){b.Sb(this.Pg,-1);var c=b.ia(),g=c.Gd(a,!1),g=c.Kb(g),n=d.b.Zb(g,a);n>e?this.Pg=-1:(f.J(g),f.sub(c.Mb()),l.J(a),l.sub(c.Mb()),this.Hq=0>f.Ai(l))}-1==this.Pg&&(this.Pg=this.RM(b,this.Fj),
-1!=this.Pg&&(b.Sb(this.Pg,-1),c=b.ia(),g=c.Gd(a,!1),g=c.Kb(g),n=d.b.Zb(g,a),n>e?this.Pg=-1:(f.J(g),f.sub(c.Mb()),l.J(a),l.sub(c.Mb()),this.Hq=0>f.Ai(l),a=this.Fj,this.Fj=this.Pg,this.Pg=a,a=this.Uo,this.Uo=this.Hq,this.Hq=a)))}};b.prototype.FK=function(a,b,e,d,h){e=e.Ca();this.OM(a,e,d,h);if(-1!=this.Fj&&-1==this.Pg)return this.Uo;if(-1!=this.Fj&&-1!=this.Pg){if(this.Uo==this.Hq)return this.Uo;e.Sb(this.Fj,-1);a=e.ia().Pf(1);e.Sb(this.Pg,-1);b=e.ia().Pf(0);return 0<=a.Ai(b)?!0:!1}return b};return b}(),
g=function(b){function a(){b.apply(this,arguments)}L(a,b);a.local=function(){null===a.V&&(a.V=new a);return a.V};a.prototype.D=function(){return 3};a.prototype.zw=function(a,b,f,h){void 0===h&&(h=!1);if(a.s())return new d.dl;b=b.w();var c=a,e=a.D();197==e&&(c=new d.Ka,c.Wc(a,!1),e=1736);switch(e){case 33:return this.OE(c,b);case 550:return this.BE(c,b);case 1607:case 1736:return this.dQ(c,b,f,h);default:throw d.g.ra("not implemented");}};a.prototype.Aw=function(a,b){if(a.s())return new d.dl;var c=
b.w(),e=a,l=a.D();197==l&&(e=new d.Ka,e.Wc(a,!1),l=1736);switch(l){case 33:return this.OE(e,c);case 550:case 1607:case 1736:return this.BE(e,c);default:throw d.g.ra("not implemented");}};a.prototype.Bw=function(a,b,f,h){if(0>h)throw d.g.N();if(a.s())return[];b=b.w();var c=a,e=a.D();197==e&&(c=new d.Ka,c.Wc(a,!1),e=1736);switch(e){case 33:return this.IQ(c,b,f,h);case 550:case 1607:case 1736:return this.gQ(c,b,f,h);default:throw d.g.ra("not implemented");}};a.prototype.dQ=function(a,b,f,h){if(1736==
a.D()&&f&&(f=new d.i,a.o(f),f=d.Ia.zd(null,f,!1),0!=(h?d.gd.he(a,b,0):d.gd.he(a,b,f)))){var c=new d.dl(b,0,0);h&&c.UF(!0);return c}for(var e=a.Ca(),c=new d.b,g=f=-1,u=1.7976931348623157E308,q=0;e.kb();)for(;e.La();){var r=e.ia(),r=r.Kb(r.Gd(b,!1)),w=d.b.Zb(r,b);w<u?(q=1,c=r,f=e.Jb(),g=e.Qa,u=w):w==u&&q++}c=new d.dl(c,f,Math.sqrt(u));h&&(e.Sb(f,g),r=e.ia(),h=0>d.b.yn(b,r.Mb(),r.oc()),1<q&&(q=new m,q.reset(),h=q.FK(b,h,a,f,g)),c.UF(h));return c};a.prototype.OE=function(a,b){var c=a.w(),e=d.b.Fb(c,b);
return new d.dl(c,0,e)};a.prototype.BE=function(a,b){for(var c=a.mc(0),e=a.F(),l=0,g=0,n=0,u=1.7976931348623157E308,q=0;q<e;q++){var r=new d.b;c.ec(2*q,r);var m=d.b.Zb(r,b);m<u&&(g=r.x,n=r.y,l=q,u=m)}c=new d.dl;c.tv(g,n,l,Math.sqrt(u));return c};a.prototype.IQ=function(a,b,f,h){if(0==h)return f=[];f*=f;a=a.w();b=d.b.Zb(a,b);b<=f?(f=[],h=new d.dl,h.tv(a.x,a.y,0,Math.sqrt(b)),f[0]=h):f=[];return f};a.prototype.gQ=function(a,b,f,h){if(0==h)return h=[];var c=a.mc(0),e=a.F();a=[];var g=0;f*=f;for(var u=
0;u<e;u++){var q=c.read(2*u),r=c.read(2*u+1),m=b.x-q,t=b.y-r,m=m*m+t*t;m<=f&&(t=new d.dl,t.tv(q,r,u,Math.sqrt(m)),g++,a.push(t))}b=a.length;a.sort(function(a,b){return a.Da<b.Da?-1:a.Da==b.Da?0:1});if(h>=b)return a.slice(0);a.length=h;return a.slice(0)};a.V=null;return a}(d.Me);d.bv=g})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.prototype.D=function(){return 4};b.prototype.$=function(a,b,e,f,h){return d.el.py(a,b,e,f,h)};b.local=function(){null===b.V&&
(b.V=new b);return b.V};b.V=null;return b}(d.Me);d.fI=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.prototype.D=function(){return 33};b.prototype.$=function(a,b,e,f,h){return 1073741824===a?!d.hd.qy(b,e,f,4,h):d.hd.qy(b,e,f,a,h)};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.V=null;return b}(d.Me);d.bl=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c,e){this.oe=e;this.yP=c;this.ua=-1;if(null==b)throw d.g.N();this.wk=b;this.Pi=a}
g.prototype.next=function(){var b;return null!=(b=this.wk.next())?(this.ua=this.wk.ya(),this.Qy(b)):null};g.prototype.ya=function(){return this.ua};g.prototype.Qy=function(b){if(null==b)throw d.g.N();return d.cv.cG(b,this.Pi,this.yP,this.oe)};return g}();d.gI=m})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.prototype.D=function(){return 26};b.prototype.$=function(a,b,e,f){return a instanceof d.T?(a=new d.Pc(a),this.$(a,b,e,f).next()):new d.gI(a,b,e,f)};b.prototype.Ro=
function(a,b,e,f,h){return 0<(void 0!==f?d.cv.Ro(a,b,e,f,h):d.cv.Ro(a,b,!1,null,e))};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.V=null;return b}(d.Me);d.as=m})(p||(p={}));(function(d){var m=function(){function a(){this.hp=0}a.prototype.hS=function(a){this.hp&=-2;this.hp|=a?1:0};a.prototype.sl=function(){return 0!=(this.hp&1)};a.prototype.LC=function(){return this.sl()?0:1};return a}();d.AT=m;var g=function(){return function(){}}(),b=function(){return function(a,b,c,e){this.x=a;this.y=
b;this.Sh=c;this.yl=e}}(),a=function(){function a(a){this.me=a}a.prototype.compare=function(a,b,c){a=a.da(c);b=this.me.$e.read(2*b);a=this.me.$e.read(2*a);b-=a;return 0>b?-1:0<b?1:0};return a}(),c=function(){function a(a){this.me=a}a.prototype.compare=function(a,b,c){b=this.me.$a[b];a=this.me.$a[a.da(c)];var e=b.sl(),d=a.sl();c=b.Zd.xe(this.me.wn,0);var f=a.Zd.xe(this.me.wn,0);c==f&&(c=Math.min(e?b.Zd.ja:b.Zd.ha,d?a.Zd.ja:a.Zd.ha),e=.5*(c-this.me.wn)+this.me.wn,e==this.me.wn&&(e=c),c=b.Zd.xe(e,0),
f=a.Zd.xe(e,0));return c<f?-1:c>f?1:0};return a}(),e=function(){function a(a,b){this.VE=new d.b;this.parent=a;this.mO=b}a.prototype.Zp=function(a,b,c){var e=this.parent,d=this.mO;c.xd(a,b,function(a,b){return e.kj(a,b,d)})};a.prototype.Mo=function(a){a=this.parent.xh.get(a);this.parent.$e.ec(2*(a>>1),this.VE);return this.VE.y+(0!=(a&1)?this.parent.Ri:-this.parent.Ri)};return a}(),f=function(){function f(a,b,c,e,f){this.SD=a.description;this.U=a;this.sg=b;this.Ri=d.Ia.Cg(this.sg,a,!1);this.pn=d.Ia.Cg(this.sg,
a,!0);this.yx=c;this.wP=this.SD.Aa;this.$a=[];this.dn=[];this.Lg=new d.$n;this.Za=new d.bj;this.Kd=new d.wd;this.GD=this.pk=f}f.prototype.Yw=function(){this.GD=!0;return(!d.T.Kc(this.U.D())||this.yB()&&this.xB(!1))&&this.OK()?d.T.Kc(this.U.D())?this.RK()?1607==this.U.D()?this.TK()?2:0:this.UK()?this.VK():0:0:2:0};f.prototype.Yy=function(a,b){var c=this.$e.read(2*a),e=this.$e.read(2*a+1),f=this.$e.read(2*b),h=this.$e.read(2*b+1),l=!d.Sr.Vw(c,e,f,h,this.Ri*this.Ri);return l?l:0==this.U.fb()?!1:c==f&&
e==h};f.prototype.yB=function(){for(var a=this.U,b=a.Yf?3:2,c=0,e=a.ea();c<e;c++)if(a.Ha(c)<b)return this.Kd=new d.wd(1,c,0),!1;return!0};f.prototype.xB=function(a){for(var b=this.U,c=b.Ca(),e=b.hasAttribute(1),b=e?d.Ia.rB(this.sg,b,!1):0;c.kb();)for(;c.La();){var f=c.ia();if(!(f.$b()>this.Ri)){if(a&&e){var h=f.gt(1,0),f=f.gt(1,0);if(Math.abs(f-h)>b)continue}this.Kd=new d.wd(2,c.Jb(),-1);return!1}}return!0};f.prototype.OK=function(){var b=this.U,c=null;d.T.Kc(this.U.D())&&(c=this.U);var f=(this.GD||
this.pk)&&null!=c,h=b.F();this.$e=b.mc(0);this.xh=new d.ga(0);this.xh.xb(2*h);this.wh=new d.ga(0);this.wh.xb(2*h);f&&(null==this.Bk&&(this.Bk=new d.ga(0)),this.Bk.xb(h));for(var g=b=0;g<h;g++)if(this.xh.add(2*g),this.xh.add(2*g+1),this.wh.add(2*g),this.wh.add(2*g+1),f){for(;g>=c.Dc(b);)b++;this.Bk.add(b)}(new d.Rr).sort(this.wh,0,2*h,new e(this,f));this.Za.clear();this.Za.Hn(new a(this));this.Za.de(h);c=0;for(h*=2;c<h;c++)if(f=this.wh.get(c),b=this.xh.get(f),f=b>>1,0==(b&1)){b=this.Za.addElement(f,
-1);g=this.Za.ge(b);if(-1!=g&&!this.Yy(this.Za.da(g),f))return this.Kd=new d.wd(3,f,this.Za.da(g)),!1;var r=this.Za.bb(b);if(-1!=r&&!this.Yy(this.Za.da(r),f))return this.Kd=new d.wd(3,f,this.Za.da(r)),!1}else if(b=this.Za.search(f,-1),g=this.Za.ge(b),r=this.Za.bb(b),this.Za.kd(b,-1),-1!=g&&-1!=r&&!this.Yy(this.Za.da(g),this.Za.da(r)))return this.Kd=new d.wd(3,this.Za.da(g),this.Za.da(r)),!1;return!0};f.prototype.RK=function(){return 10>this.U.F()?this.PK():this.QK()};f.prototype.QK=function(){var a=
new d.fd;a.Eb(this.U);var b=new d.wd;return d.Zu.DE(!1,a,this.Ri,b,this.oe)?(b.Fk=a.gb(b.Fk),b.Gk=a.gb(b.Gk),this.Kd.aq(b),!1):!0};f.prototype.PK=function(){for(var a=this.U,b=a.Ca(),a=a.Ca();b.kb();)for(;b.La();){var c=b.ia();if(!b.Jm()||!b.YO()){a.xR(b);do for(;a.La();){var e=a.ia(),e=c.fq(e,this.Ri,!0);if(0!=e)return this.Kd=new d.wd(2==e?5:4,b.Jb(),a.Jb()),!1}while(a.kb())}}return!0};f.prototype.UK=function(){var a=this.U;this.$a.length=0;this.dn.length=0;this.Hf=a.Ca();this.Hf.NR();var b=new d.ga(0);
b.xb(10);for(var c=NaN,e=0,f=0,a=2*a.F();f<a;f++){var h=this.wh.get(f),h=this.xh.get(h);if(0==(h&1)){var h=h>>1,g=this.$e.read(2*h),m=this.$e.read(2*h+1);if(0!=b.size&&(g!=c||m!=e)){if(!this.TE(b))return!1;null!=b&&b.clear(!1)}b.add(h);c=g;e=m}}return this.TE(b)?!0:!1};f.prototype.TK=function(){for(var a=this.U,b=Array(a.ea()),c=0,e=a.ea();c<e;c++)b[c]=a.Oo(c);var e=new g,f,h,m,t=new d.b,c=this.wh.get(0),c=this.xh.get(c),p=c>>1;this.$e.ec(2*p,t);c=this.Bk.get(p);f=b[c];h=a.Ea(c);m=a.Dc(c)-1;e.ak=
p==h||p==m;e.Ev=this.pk?!f&&e.ak:e.ak;e.Sh=c;e.x=t.x;e.y=t.y;e.yl=p;for(var v=new g,C=1,A=this.wh.size;C<A;C++)if(c=this.wh.get(C),c=this.xh.get(c),0==(c&1)){p=c>>1;this.$e.ec(2*p,t);c=this.Bk.get(p);c!=e.Sh&&(f=b[c],h=a.Ea(c),m=a.Dc(c)-1);var y,z=p==h||p==m;y=this.pk?!f&&e.ak:e.ak;v.x=t.x;v.y=t.y;v.Sh=c;v.yl=p;v.Ev=y;v.ak=z;if(v.x==e.x&&v.y==e.y)if(this.pk){if(!v.Ev||!e.Ev)if(v.Sh!=e.Sh||!v.ak&&!e.ak)return this.Kd=new d.wd(8,v.yl,e.yl),!1}else if(!v.ak||!e.ak)return this.Kd=new d.wd(5,v.yl,e.yl),
!1;c=e;e=v;v=c}return!0};f.prototype.AB=function(){for(var a=this.U,c=[],e=-1,f=!1,h=0,g=a.ea();h<g;h++)a.qt(h)&&(f=!1,e++,h<g-1&&(a.qt(h+1)||(f=!0))),c[h]=f?e:-1;var f=new d.b,h=this.wh.get(0),h=this.xh.get(h),m=h>>1;this.$e.ec(2*m,f);for(var h=this.Bk.get(m),e=new b(f.x,f.y,h,m,c[h]),a=[],t=1,g=this.wh.size;t<g;t++)if(h=this.wh.get(t),h=this.xh.get(h),0==(h&1)){m=h>>1;this.$e.ec(2*m,f);h=this.Bk.get(m);h=new b(f.x,f.y,h,m,c[h]);if(h.x==e.x&&h.y==e.y){if(h.Sh==e.Sh)return this.Kd=new d.wd(9,h.yl,
e.yl),!1;0<=c[h.Sh]&&c[h.Sh]==c[e.Sh]&&(0!=a.length&&a[a.length-1]==e||a.push(e),a.push(h))}e=h}if(0==a.length)return!0;h=new d.$n(!0);d.I.Ps(c,-1);f=-1;t=new d.b;t.Eh();e=0;for(g=a.length;e<g;e++){m=a[e];if(m.x!=t.x||m.y!=t.y)f=h.jh(0),t.x=m.x,t.y=m.y;var p=c[m.Sh];-1==p&&(p=h.jh(2),c[m.Sh]=p);h.addElement(p,f);h.addElement(f,p)}g=new d.ga(0);g.xb(10);for(e=h.Wd;-1!=e;e=h.Cw(e))if(a=h.DC(e),0==(a&1)&&0!=(a&2)){a=-1;g.add(e);for(g.add(-1);0<g.size;){f=g.tc();g.af();t=g.tc();g.af();m=h.DC(t);if(0!=
(m&1)){a=0==(m&2)?f:t;break}h.$R(t,m|1);for(m=h.gc(t);-1!=m;m=h.bb(m))p=h.getData(m),p!=f&&(g.add(p),g.add(t))}if(-1!=a){h=-1;e=0;for(g=c.length;e<g;e++)if(c[e]==a){h=e;break}this.Kd=new d.wd(10,h,-1);return!1}}return!0};f.prototype.VK=function(){var a=this.U;if(0>=a.Mh())return this.Kd=new d.wd(6,1==a.ea()?1:-1,-1),0;if(1==a.ea())return this.pk&&!this.AB()?0:2;this.gn=d.ga.Yc(a.ea(),0);this.Hx=d.ga.Yc(a.ea(),-1);for(var b=-1,e=0,f=0,h=a.ea();f<h;f++){var g=a.oo(f);this.gn.write(f,0>g?0:256);if(0<
g)b=f,e=g;else{if(0==g)return this.Kd=new d.wd(6,f,-1),0;if(0>b||e<Math.abs(g))if(this.Kd=new d.wd(7,f,-1),this.pk)return 0;this.Hx.write(f,b)}}this.kr=a.ea();this.Ll=new d.ga(0);this.Ll.xb(10);h=a.F();this.wn=NaN;a=new d.ga(0);a.xb(10);this.yp=d.ga.Yc(h,-1);this.hu=d.ga.Yc(h,-1);null!=this.Hi?this.Hi.clear(!1):this.Hi=new d.ga(0);this.Hi.xb(10);this.Za.clear();this.Za.Hn(new c(this));b=0;for(h*=2;0<this.kr&&b<h;b++)if(e=this.wh.get(b),e=this.xh.get(e),0==(e&1)){e>>=1;f=this.$e.read(2*e+1);if(f!=
this.wn&&0!=a.size){if(!this.yr(a))return 0;null!=a&&a.clear(!1)}a.add(e);this.wn=f}return 0<this.kr&&!this.yr(a)?0:this.pk?0==this.Kd.yh&&this.AB()?2:0:0==this.Kd.yh?2:1};f.prototype.TE=function(a){if(1==a.size)return!0;for(var b=0,c=a.size;b<c;b++){var e=a.get(b);this.Hf.Sb(e);var f=this.Hf.oi();this.$a.push(this.Ls(f,e,this.Hf.Qa,!0));this.Hf.ia();f=this.Hf.ia();this.$a.push(this.Ls(f,e,this.Hf.Qa,!1))}var h=this;this.$a.sort(function(a,b){return h.sM(a,b)});e=this.Lg.Wd;-1==e&&(e=this.Lg.jh(0));
this.Lg.$l(this.$a.length);b=0;for(c=this.$a.length;b<c;b++)this.Lg.addElement(e,b);for(var b=!0,l=c=-1;b;){b=!1;f=this.Lg.gc(e);if(-1==f)break;for(var g=this.Lg.bb(f);-1!=g;){c=this.Lg.getData(f);l=this.Lg.getData(g);c=this.$a[c].tn;l=this.$a[l].tn;if(c==l)if(b=!0,this.Lg.Jc(e,f),f=this.Lg.ge(g),g=this.Lg.Jc(e,g),-1==g||-1==f)break;else continue;f=g;g=this.Lg.bb(f)}}b=this.Lg.vq(e);this.Lg.CB(e);if(0<b)return this.Kd=new d.wd(5,c,l),!1;b=0;for(c=a.size;b<c;b++)this.my(this.$a[b]);this.$a.length=
0;return!0};f.prototype.yr=function(a){for(var b=0,c=a.size;b<c;b++){var e=a.get(b),f=this.yp.read(e);if(-1!=f){var h=this.Za.da(f);this.Hi.add(h);this.Za.kd(f,-1);this.my(this.$a[h]);this.$a[h]=null;this.yp.write(e,-1)}f=this.hu.read(e);-1!=f&&(h=this.Za.da(f),this.Hi.add(h),this.Za.kd(f,-1),this.my(this.$a[h]),this.$a[h]=null,this.hu.write(e,-1))}b=0;for(c=a.size;b<c;b++){e=a.get(b);this.Hf.Sb(e);f=this.Hf.oi();if(f.ja>f.ha){var l=this.Hf.Jb(),g=this.Ls(f,e,this.Hf.Qa,!0);0<this.Hi.size?(h=this.Hi.tc(),
this.Hi.af(),this.$a[h]=g):(h=this.$a.length,this.$a.push(g));f=this.Za.addElement(h,-1);-1==this.yp.read(l)?this.yp.write(l,f):this.hu.write(l,f);0==(this.gn.read(this.Hf.Qa)&3)&&this.Ll.add(f)}this.Hf.ia();f=this.Hf.ia();f.ja<f.ha&&(l=this.Hf.Bm(),g=this.Ls(f,e,this.Hf.Qa,!1),0<this.Hi.size?(h=this.Hi.tc(),this.Hi.af(),this.$a[h]=g):(h=this.$a.length,this.$a.push(g)),f=this.Za.addElement(h,-1),-1==this.yp.read(l)?this.yp.write(l,f):this.hu.write(l,f),0==(this.gn.read(this.Hf.Qa)&3)&&this.Ll.add(f))}b=
0;for(c=this.Ll.size;b<c&&0<this.kr;b++)if(f=this.Ll.get(b),0==(this.gn.read(this.$a[this.Za.da(f)].Gx)&3)){a=-1;for(var e=this.Za.ge(f),m=f,g=null,h=-1,p=0;-1!=e;){h=this.Za.da(e);g=this.$a[h];h=g.Gx;p=this.gn.read(h);if(0!=(p&3))break;m=e;e=this.Za.ge(e)}-1==e?(l=1,e=m):(a=1==(p&3)?h:this.Hx.read(h),l=0!=g.LC()?0:1,e=this.Za.bb(e));do{h=this.Za.da(e);g=this.$a[h];h=g.Gx;m=this.gn.read(h);if(0==(m&3)){if(l!=g.LC())return this.Kd=new d.wd(6,h,-1),!1;p=0==l||g.sl()?2:1;m=m&252|p;this.gn.write(h,p);
if(2==p&&0==this.Kd.yh&&this.Hx.read(h)!=a&&(this.Kd=new d.wd(7,h,-1),this.pk))return!1;this.kr--;if(0==this.kr)return!0}1==(m&3)&&(a=h);m=e;e=this.Za.bb(e);l=0!=l?0:1}while(m!=f)}null!=this.Ll?this.Ll.clear(!1):this.Ll=new d.ga(0);return!0};f.prototype.Ls=function(a,b,c,e){if(322==a.D())a=this.PL(a);else throw d.g.wa();a.tn=b;a.Gx=c;a.hp=0;a.hS(e);return a};f.prototype.PL=function(a){var b;0<this.dn.length?(b=this.dn[this.dn.length-1],--this.dn.length,a.copyTo(b.Zd)):(b=new m,b.Zd=d.fA.Yj(a));return b};
f.prototype.my=function(a){322==a.Zd.D()&&this.dn.push(a)};f.prototype.eQ=function(){for(var a=this.U.F(),b=new d.ga(0),c=0;c<a;c++)b.add(c);var e=this;b.xd(0,a,function(a,b){return e.Is(a,b)});for(c=1;c<a;c++)if(0==this.Is(b.get(c-1),b.get(c)))return this.Kd=new d.wd(3,b.get(c-1),b.get(c)),0;return 2};f.prototype.NQ=function(){return this.yB()?this.xB(!0)?2:0:0};f.prototype.LQ=function(){return this.Yw()};f.prototype.fQ=function(){for(var a=this.U.F(),b=new d.ga(0),c=0;c<a;c++)b.add(c);var e=this;
b.xd(0,a,function(a,b){return e.uL(a,b)});var f=Array(a);d.I.Ps(f,!1);f[b.get(0)]=!0;for(c=1;c<a;c++){var h=b.get(c-1),g=b.get(c);0==this.Is(h,g)?f[g]=!1:f[g]=!0}for(var b=this.U.Pa(),h=this.U,g=0,m=1,c=0;c<a;c++)f[c]?m=c+1:(g<m&&b.Pd(h,g,m),g=c+1);g<m&&b.Pd(h,g,m);b.hg(2,this.pn);return b};f.prototype.OQ=function(){var a=this.U,b=a.Ca(),c=a.Ca(),e=this.U.Pa(),f=this.U,h=a.hasAttribute(1),g=h?d.Ia.rB(this.sg,a,!0):0,m=new d.ga(0),p=new d.ga(0);m.xb(d.I.truncate(a.F()/2+1));for(p.xb(d.I.truncate(a.F()/
2+1));b.kb();)if(c.kb(),!(2>a.Ha(b.Qa))){c.zR();for(var v,C,A=!0;b.La();){var y=b.ia(),z=c.oi();if(b.Jb()>c.Jb())break;A&&(m.add(b.Jb()),p.add(c.Bm()),A=!1);C=m.tc();var B=b.Bm();if(1<B-C){var D=new d.b;D.pc(a.Fa(C),a.Fa(B));v=D.length()}else v=y.$b();C=p.tc();B=c.Jb();1<B-C?(D=new d.b,D.pc(a.Fa(C),a.Fa(B)),C=D.length()):C=z.$b();v>this.pn?m.add(b.Bm()):h&&(v=a.ld(1,m.tc(),0),y=y.Ws(1,0),Math.abs(y-v)>g&&m.add(b.Bm()));C>this.pn?p.add(c.Jb()):h&&(v=a.ld(1,p.tc(),0),y=z.Ws(1,0),Math.abs(y-v)>g&&p.add(c.Jb()))}m.tc()<
p.tc()?m.size>p.size?m.af():p.af():(m.tc()!=p.tc()&&p.af(),p.af());if(2<=p.size+m.size){A=new d.Va;z=0;for(y=m.size;z<y;z++)f.Sd(m.get(z),A),0==z?e.df(A):e.lineTo(A);for(z=p.size-1;0<z;z--)f.Sd(p.get(z),A),e.lineTo(A);f.vc(b.Qa)?e.ro():0<p.size&&(f.Sd(p.get(0),A),e.lineTo(A))}null!=m&&m.clear(!1);null!=p&&p.clear(!1)}e.hg(2,this.pn);return e};f.prototype.MQ=function(){return this.xS()};f.prototype.xS=function(){if(1736==this.U.D()&&1==this.U.Cm())return d.Of.Qj(this.U,this.pn,!0,!1,this.oe);this.Zh=
new d.fd;this.Zh.Eb(this.U);0!=this.Zh.pd&&(1!=this.yx&&d.aj.$(this.Zh,this.pn,this.oe,!0),1736==this.U.D()&&d.mm.$(this.Zh,this.Zh.$c,this.yx,!1,this.oe));this.U=this.Zh.hf(this.Zh.$c);1736==this.U.D()&&(this.U.hl(),this.U.Pp(0));this.U.hg(2,this.pn);return this.U};f.ac=function(a,b,c){if(a.s())return 1;var e=a.D();if(33==e)return 1;if(197==e)return c=new d.i,a.o(c),c.mg(d.Ia.Cg(b,a,!1))?0:1;if(d.T.Lc(e))throw d.g.wa();if(!d.T.Th(e))throw d.g.wa();var e=d.Ia.Cg(b,a,!1),h=a.rj(e);c=c?-1:h;if(-1!=
c)return c;1==c&&(e=0);c=(new f(a,b,c,0,!1)).Yw();a.hg(c,e);return c};f.Ro=function(a,b,c,e,h){null!=e&&(e.yh=0,e.Fk=-1,e.Gk=-1);if(a.s())return 1;var l=a.D();if(33==l)return 1;var g=d.Ia.Cg(b,a,!1);if(197==l)return b=new d.i,a.o(b),b.mg(g)?(null!=e&&(e.yh=2,e.Fk=-1,e.Gk=-1),0):1;if(d.T.Lc(l))return g=new d.Xa(a.description),g.Bc(a,!0),f.Ro(g,b,c,e,h);h=a.rj(g);c=c?-1:h;if(-1!=c)return c;b=new f(a,b,c,0,!1);if(550==l)c=b.eQ();else if(1607==l)c=b.NQ();else if(1736==l)c=b.LQ();else throw d.g.wa();a.hg(c,
g);null!=e&&0==c&&e.aq(b.Kd);return c};f.ob=function(a,b,c,e,h){null!=e&&(e.yh=0,e.Fk=-1,e.Gk=-1);if(a.s())return 1;var l=a.D();if(33==l)return 1;var g=d.Ia.Cg(b,a,!1);if(197==l)return b=new d.i,a.o(b),b.mg(g)?(null!=e&&(e.yh=2,e.Fk=-1,e.Gk=-1),0):1;if(d.T.Lc(l))return l=new d.Xa(a.description),l.Bc(a,!0),f.Ro(l,b,c,e,h);a=new f(a,b,-1,0,!0);if(550==l||1607==l||1736==l)b=a.Yw();else throw d.g.wa();null!=e&&e.aq(a.Kd);return b};f.cG=function(a,b,c,e){if(a.s())return a;var h=a.D();if(33==h)return a;
var l=d.Ia.Cg(b,a,!1);if(197==h)return b=new d.i,a.o(b),b.mg(l)?a.Pa():a;if(d.T.Lc(h))return h=new d.Xa(a.description),h.Bc(a,!0),f.cG(h,b,c,e);e=a.rj(l);c=c?-1:e;if(2==c)return a;a=new f(a,b,c,0,!1);if(550==h)a=a.fQ();else if(1607==h)a=a.OQ();else if(1736==h)a=a.MQ();else throw d.g.wa();return a};f.Ry=function(a,b,c,e){if(a.s())return a;var h=a.D();if(33==h)return a;var l=d.Ia.Cg(b,a,!1);if(197==h)return b=new d.i,a.o(b),b.mg(l)?a.Pa():a;if(d.T.Lc(h))return l=new d.Xa(a.description),l.Bc(a,!0),f.Ry(l,
b,c,e);if(!d.T.Th(h))throw d.g.ra("OGC simplify is not implemented for this geometry type "+h);return d.Of.Ry(a,l,!1,e)};f.prototype.kj=function(a,b,c){if(a==b)return 0;a=this.xh.get(a);var e=this.xh.get(b);b=a>>1;var f=e>>1,h=new d.b,l=new d.b;this.$e.ec(2*b,h);h.y+=0!=(a&1)?this.Ri:-this.Ri;this.$e.ec(2*f,l);l.y+=0!=(e&1)?this.Ri:-this.Ri;a=h.compare(l);return 0==a&&c?(c=this.Bk.get(b)-this.Bk.get(f),0>c?-1:0<c?1:0):a};f.prototype.Is=function(a,b){if(a==b)return 0;var c=this.U,e=c.Fa(a),f=c.Fa(b);
if(e.x<f.x)return-1;if(e.x>f.x)return 1;if(e.y<f.y)return-1;if(e.y>f.y)return 1;for(e=1;e<this.wP;e++)for(var f=this.SD.Hd(e),h=d.pa.Wa(f),l=0;l<h;l++){var g=c.ld(f,a,l),k=c.ld(f,b,l);if(g<k)return-1;if(g>k)return 1}return 0};f.prototype.uL=function(a,b){var c=this.Is(a,b);return 0==c?a<b?-1:1:c};f.prototype.sM=function(a,b){if(a===b)return 0;var c=a.Zd.Pf(a.sl()?1:0);a.sl()&&c.Bp();var e=b.Zd.Pf(b.sl()?1:0);b.sl()&&e.Bp();var d=c.ps(),f=e.ps();return f==d?(d=c.Ai(e),Math.abs(d)<=8.881784197001252E-16*
(Math.abs(e.x*c.y)+Math.abs(e.y*c.x))&&(d--,d++),0>d?1:0<d?-1:0):d<f?-1:1};return f}();d.cv=f})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.prototype.D=function(){return 30};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,e,f){return a instanceof d.T?(a=new d.Pc(a),b=new d.Pc(b),this.$(a,b,e,f).next()):new d.hI(a,b,e,f)};b.On=function(a,c,e,f){var h=a.fb(),l=c.fb();if(a.s()&&c.s())return h>l?a:c;if(a.s())return c;if(c.s())return a;
var g=new d.i,n=new d.i,u=new d.i;a.o(g);c.o(n);u.K(g);u.Db(n);g=d.Ia.zd(e,u,!1);n=a.D();u=c.D();return 33==n&&33==u?b.qP(a,c,g):n!=u?0<h||0<l?h>l?a:c:550==n?b.pA(a,c,g):b.pA(c,a,g):d.Of.On(a,c,e,f)};b.qP=function(a,b,e){e=e*Math.sqrt(2)*1.00001;e*=e;var c=a.w(),h=b.w(),l=new d.pe(a.description);d.b.Zb(c,h)>e&&(l.add(a),l.add(b));return l};b.pA=function(a,b,e){var c=a.mc(0),h=a.F(),l=b.w(),g=a.Pa();e=e*Math.sqrt(2)*1.00001;var n=new d.i;a.o(n);n.P(e,e);if(n.contains(l)){e*=e;for(var n=!1,u=[],q=0;q<
h;q++)u[q]=!1;for(q=0;q<h;q++){var m=c.read(2*q),p=c.read(2*q+1),m=m-l.x,p=p-l.y;m*m+p*p<=e&&(n=!0,u[q]=!0)}if(n)for(q=0;q<h;q++)u[q]||g.Pd(a,q,q+1);else g.Pd(a,0,h),g.add(b)}else g.Pd(a,0,h),g.add(b);return g};b.V=null;return b}(d.Me);d.dv=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c,e){this.Fq=null==a;this.ua=-1;this.ne=b;this.cg=c;this.QP=a.next();this.Yb=e}g.prototype.next=function(){if(this.Fq)return null;var b;return null!=(b=this.ne.next())?(this.ua=this.ne.ya(),d.dv.On(b,
this.QP,this.cg,this.Yb)):null};g.prototype.ya=function(){return this.ua};return g}();d.hI=m})(p||(p={}));(function(d){var m=function(){function a(){}a.prototype.jt=function(){this.iw=null;this.Vu=-1;this.xG=!1};return a}(),g=function(){function a(){this.jq=0;this.Ci=[]}a.prototype.TJ=function(a){this.jq+=a.Vu;this.Ci.push(a)};a.prototype.PQ=function(){this.jq-=this.Ci[this.Ci.length-1].Vu;--this.Ci.length};a.prototype.Dv=function(){return this.Ci[this.Ci.length-1]};a.prototype.lc=function(a){return a===
this};return a}(),b=function(){function a(a,b,d){this.ua=-1;this.Ec=!1;this.bE=[!1,!1,!1,!1];this.ep=[0,0,0,0];this.ox=!1;this.Gj=-1;this.So=0;this.Tm=-1;this.rn=[];this.ne=a;this.cg=b;this.Yb=d}a.ac=function(a){var b=[],c;for(c in a)b.push(Number(c));b.sort(function(a,b){return a-b});return b};a.prototype.UC=function(b){var c=this.rn[b],f=a.ac(c)[0],h=c[f],l=h.Dv().iw,h=h.Dv().xG;delete c[f];h&&(l=d.as.local().$(l,this.cg,!1,this.Yb),0==b&&33==l.D()&&(b=new d.pe(l.description),l.s()||b.add(l),l=
b));return l};a.prototype.next=function(){if(this.Ec&&this.Tm==this.Gj)return null;for(;!this.FS(););if(-1==this.Gj)return null;if(this.ox){for(this.Tm++;;){if(this.Tm>this.Gj||0>this.Tm)throw d.g.wa();if(this.bE[this.Tm])break}this.ua++;return this.UC(this.Tm)}this.ua=0;this.Tm=this.Gj;return this.UC(this.Gj)};a.prototype.ya=function(){return this.ua};a.prototype.FS=function(){if(this.Ec)return!0;var a=null;null!=this.ne&&(a=this.ne.next(),null==a&&(this.Ec=!0,this.ne=null));if(null!=a){var b=a.fb();
this.bE[b]=!0;b>=this.Gj&&!this.ox&&(this.SA(b,!1,a),b>this.Gj&&!this.ox&&this.vR(b))}if(0<this.So)for(b=0;b<=this.Gj;b++)for(;1<this.ep[b];)if(a=this.jL(b),0!=a.length)a=d.Of.oM(a,this.cg,this.Yb),this.SA(b,!0,a);else break;return this.Ec};a.prototype.jL=function(b){for(var c=[],d=[],h=this.rn[b],l=a.ac(h),g=0;g<l.length;g++){var n=l[g],u=h[n];if(this.Ec||1E4<u.jq&&1<u.Ci.length){this.ep[b]-=u.Ci.length;for(this.So-=u.Ci.length;0<u.Ci.length;)c.push(u.Dv().iw),u.PQ();d.push(n)}}for(g=0;g<d.length;g++)delete h[d[g]];
return c};a.prototype.vR=function(a){for(var b=0;b<a;b++)this.rn[b]=[],this.So-=this.ep[b],this.ep[b]=0};a.prototype.SA=function(b,e,d){var c=new m;c.jt();c.iw=d;d=a.$g(d);c.Vu=d;d=a.Wf(d);if(b+1>this.rn.length)for(var f=0,k=Math.max(2,b+1);f<k;f++)this.rn.push([]);f=this.rn[b][d];void 0===f&&(f=new g,this.rn[b][d]=f);c.xG=e;f.TJ(c);this.ep[b]++;this.So++;this.Gj=Math.max(this.Gj,b)};a.Wf=function(a){return 0<a?d.I.truncate(Math.log(a)/Math.log(4)+.5):0};a.$g=function(a){var b=a.D();if(d.T.Th(b))return a.F();
if(33==b)return 1;if(197==b)return 4;if(d.T.Lc(b))return 2;throw d.g.wa();};return a}();d.jI=b})(p||(p={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}L(b,g);b.prototype.D=function(){return 1};b.prototype.$=function(a,b,e,f){return void 0===f?new d.jI(a,b,e):this.xM(a,b,e,f)};b.prototype.xM=function(a,b,e,f){a=new d.Pc([a,b]);return this.$(a,e,f).next()};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.V=null;return b}(d.Me);d.wi=m})(p||(p={}));(function(d){var m;
(function(d){d[d.nextPath=0]="nextPath";d[d.nextSegment=1]="nextSegment";d[d.iterate=2]="iterate"})(m||(m={}));m=function(){function g(b,a,c,e){this.dr=new d.i;this.LP=b;this.MP=a;this.Wo=e;this.hn=-1;this.qk=!1;var f=b.pb;null!=f&&(f=e?f.nn:f.Ab,null!=f&&(this.Ec=!1,this.ka=c,this.Ab=f,this.au=this.Ab.Re(),this.Xo=this.qk=!0,this.Hb=0,e?this.hn=a.ea():this.bd=a.Ca()));this.qk||(f=a.pb,null!=f&&(f=e?f.nn:f.Ab,null!=f&&(this.Ec=!1,this.ka=c,this.Ab=f,this.au=this.Ab.Re(),this.qk=!0,this.Xo=!1,this.Hb=
0,e?this.hn=b.ea():this.bd=b.Ca())));this.qk||(this.th=e?d.Ia.BN(b,a,c,1<=b.rj(0),1<=a.rj(0)):d.Ia.AN(b,a,c))}g.prototype.next=function(){if(this.qk){if(this.Ec)return!1;for(var b=!0;b;)switch(this.Hb){case 0:b=this.nQ();break;case 1:b=this.oQ();break;case 2:b=this.$w();break;default:throw d.g.ra("internal error");}return this.Ec?!1:!0}return null==this.th?!1:this.th.next()};g.prototype.jk=function(){return this.qk?this.Xo?this.Ab.da(this.Rq):this.Wo?this.hn:this.bd.Jb():this.th.jk(this.th.Ff)};g.prototype.ek=
function(){return this.qk?this.Xo?this.Wo?this.hn:this.bd.Jb():this.Ab.da(this.Rq):this.th.ek(this.th.mf)};g.prototype.Fw=function(){if(!this.Wo)throw d.g.ra("internal error");return this.qk?this.Xo?this.Ab.uC(this.Rq):this.dr:this.th.Fw(this.th.Ff)};g.prototype.jw=function(){if(!this.Wo)throw d.g.ra("internal error");return this.qk?this.Xo?this.dr:this.Ab.uC(this.Rq):this.th.jw(this.th.mf)};g.prototype.nQ=function(){if(!this.Wo){if(!this.bd.kb())return this.Ec=!0,!1;this.Hb=1;return!0}if(-1==--this.hn)return this.Ec=
!0,!1;this.Xo?this.MP.Ti(this.hn,this.dr):this.LP.Ti(this.hn,this.dr);this.au.Ch(this.dr,this.ka);this.Hb=2;return!0};g.prototype.oQ=function(){if(!this.bd.La())return this.Hb=0,!0;var b=this.bd.ia();this.au.Fn(b,this.ka);this.Hb=2;return!0};g.prototype.$w=function(){this.Rq=this.au.next();return-1==this.Rq?(this.Hb=this.Wo?0:1,!0):!1};return g}();d.cl=m})(p||(p={}));(function(d){d=d.kI||(d.kI={});d[d.enumClosed=1]="enumClosed";d[d.enumHasNonlinearSegments=2]="enumHasNonlinearSegments";d[d.enumOGCStartPolygon=
4]="enumOGCStartPolygon";d[d.enumCalcMask=4]="enumCalcMask"})(p||(p={}));(function(d){var m=function(){function g(){}g.Fb=function(b,a,c,e,f,h,l,k,n){var u=[0,0,0],q=[0,0,0],m=[0,0,0],p=[0,0,0,0],t=new d.ca(0),x=new d.ca(0),v=new d.ca(0);if(null!=l||null!=k||null!=n)if(d.j.Ih(a))d.zg.Fb(b,c,e,f,h,l,k,n);else{f=d.u.W(f);c=d.u.W(c);var C=d.u.W(f-c);if(d.j.S(e,h)&&(d.j.S(c,f)||d.j.S(d.j.H(e),1.570796326794897)))null!=l&&(l.l=0),null!=k&&(k.l=0),null!=n&&(n.l=0);else{if(d.j.S(e,-h)){if(d.j.S(d.j.H(e),
1.570796326794897)){null!=l&&(l.l=2*d.u.gg(b,a));null!=k&&(k.l=0<e?d.u.W(3.141592653589793-d.u.W(f)):d.u.W(f));null!=n&&(n.l=0<e?d.u.W(f):d.u.W(3.141592653589793-d.u.W(f)));return}d.j.S(d.j.H(C),3.141592653589793)&&(null!=l&&(l.l=2*d.u.gg(b,a)),null!=k&&(k.l=0),null!=n&&(n.l=0))}else{if(d.j.S(d.j.H(e),1.570796326794897)||d.j.S(d.j.H(h),1.570796326794897)){d.Xj.Fb(b,a,c,e,f,h,l,k,n);return}if(d.j.S(c,f)||d.j.S(d.j.H(C),3.141592653589793)){d.Xj.Fb(b,a,c,e,f,h,l,k,n);return}if(d.j.Vc(e)){d.Xj.Fb(b,a,
c,e,f,h,l,k,n);return}}var A=Math.sqrt(1-a);f=d.u.W(f-c);c=0;d.u.wm(a,e,c,t,x,v);u[0]=t.l;u[1]=x.l;u[2]=v.l;d.u.wm(a,h,f,t,x,v);q[0]=t.l;q[1]=x.l;q[2]=v.l;m[0]=0;m[1]=0;m[2]=-1*a*d.u.n(1,a,e)*Math.sin(e);0>f?d.u.Ep(m,q,u,p,0):d.u.Ep(m,u,q,p,0);for(var x=[0,0,0],v=[0,0,0],y=[0,0,0],u=[0,0,0],t=[0,0,0],z=Math.acos(p[2]/1),B=1-a,D=Math.tan(z),E=1+D*D/B,G=2*m[2]*D/B,D=Math.sqrt(G*G-4*E*(m[2]*m[2]/B-1)),E=2*E,B=(-G+D)/E,G=(-G-D)/E,D=Math.tan(z),E=D*B+m[2],z=(B+G)/2,m=(E+(D*G+m[2]))/2,D=d.u.Sn(B-z,E-m),
B=m/A*1.570796326794897,G=0;100>G;G++){E=d.u.Tk(a,B);E=E*E/Math.cos(B)*(Math.sin(B)-m*E/(1*(1-a)));if(d.j.Vc(E))break;B-=E}var m=d.u.n(1,a,B)*Math.cos(B),m=Math.sqrt((m-z)*(m+z)),D=1-D/m,D=D*(2-D),E=d.u.jm(x),z=d.u.jm(v),B=d.u.jm(y),F=d.u.Qr(y,x),G=d.u.Qr(y,v);d.u.Uu(y,x,u);d.u.Uu(y,v,t);x=Math.acos(F/(B*E));v=Math.acos(G/(B*z));v*=d.j.nb(1,d.u.Qr(u,t));if(1.570796326794897<=d.j.H(x)&&1.570796326794897<=d.j.H(v)||3.141592653589793<d.j.H(x-v))x=(3.141592653589793-d.j.H(x))*d.j.nb(1,x),v=(3.141592653589793-
d.j.H(v))*d.j.nb(1,v);u=d.u.Si(D,v);t=d.u.q(m,D,d.u.Si(D,x));u=d.u.q(m,D,u);u=d.j.H(u-t)*b;x=new d.ca(0);v=new d.ca(0);y=p[1]/1;y*=-d.j.nb(1,C);t=Math.acos(y)*d.j.nb(1,C);g.gf(b,a,c,e,u,t,x,v);d.j.S(f,x.l)&&d.j.S(h,v.l)||(D=d.u.Sn(d.u.W(f-x.l),h-v.l),g.gf(b,a,c,e,u,d.u.W(t+3.141592653589793),x,v),E=d.u.Sn(d.u.W(f-x.l),h-v.l),E<D&&(t=d.u.W(t+3.141592653589793)));x=[0,0,0,0];v=[0,0,0,0];m=[0,0,0];D=[0,0,0];b=[0,0,0];c=[0,0,0];e=[0,0,0];y=[0,0,0];m[0]=0;m[1]=0;m[2]=A;D[0]=0;D[1]=0;D[2]=0;d.u.Ep(D,m,
q,x,0);d.j.Vc(h)?(b[0]=q[0],b[1]=q[1],b[2]=1,c[0]=1*Math.cos(f)-1*Math.sin(f),c[1]=1*Math.sin(f)+1*Math.cos(f)):(a=d.u.n(1,a,h)*Math.cos(h),b[0]=0,b[1]=0,q[2]+=Math.tan(1.570796326794897-d.j.H(h))*a*d.j.nb(1,h),c[0]=a*Math.cos(f)-a*Math.sin(f),c[1]=a*Math.sin(f)+a*Math.cos(f));c[2]=q[2];d.u.Ep(q,c,b,v,1);d.u.Uu(v,x,e);d.u.Uu(v,p,y);y=d.u.Qr(e,y)/(d.u.jm(e)*d.u.jm(y));y*=d.j.nb(1,C);f=Math.acos(y)*-d.j.nb(1,C);0<t&&0<f?f=d.u.W(f+3.141592653589793):0>t&&0>f&&(f=d.u.W(f+3.141592653589793));null!=l&&
(l.l=u);null!=k&&(k.l=t);null!=n&&(n.l=f)}}};g.gf=function(b,a,c,e,f,h,l,g){var k=[0,0,0],u=[0,0,0],m=[0,0,0],r=[0,0,0],p=[0,0,0],t=[0,0,0],x=[0,0,0],v=[0,0,0,0],C=new d.ca(0),A=new d.ca(0),y=new d.ca(0),z=new d.ca(0),B=new d.ca(0),D=new d.ca(0);if(null!=l&&null!=g)if(d.j.Ih(a))d.zg.gf(b,c,e,f,h,l,g);else if(d.j.Vc(f))null!=l&&(l.l=c),null!=g&&(g.l=e);else if(h=d.u.W(h),0>f&&(f=d.j.H(f),h=d.u.W(h+3.141592653589793)),c=d.u.W(c),e=d.u.W(e),1.570796326794897<d.j.H(e)&&(c=d.u.W(c+3.141592653589793),e=
d.j.nb(3.141592653589793,e)-e),d.j.S(d.j.H(e),1.570796326794897)||d.j.Vc(e)||d.j.Vc(h)||d.j.S(d.j.H(h),3.141592653589793))d.Xj.gf(b,a,c,e,f,h,l,g);else{var E=Math.sqrt(1-a);b=f/b;d.u.wm(a,e,0,z,B,D);k[0]=z.l;k[1]=B.l;k[2]=B.l;x[0]=0;x[1]=0;x[2]=-1*a*d.u.n(1,a,e)*Math.sin(e);z=d.u.n(1,a,e);B=d.u.W(1.570796326794897-h);D=Math.sin(B);f=Math.cos(e);e=Math.sin(e);p[0]=z*f-e*D;p[1]=Math.cos(B);p[2]=(1-a)*z*e+f*D;0>h?d.u.Ep(x,p,k,v,0):d.u.Ep(x,k,p,v,0);k=Math.acos(v[2]/1);v=Math.atan2(-v[1],-v[0]);e=1-a;
p=Math.tan(k);B=1+p*p/e;z=2*x[2]*p/e;p=Math.sqrt(z*z-4*B*(x[2]*x[2]/e-1));B*=2;e=(-z+p)/B;z=(-z-p)/B;p=Math.tan(k);B=p*e+x[2];k=(e+z)/2;x=(B+(p*z+x[2]))/2;p=d.u.Sn(e-k,B-x);E=x/E*1.570796326794897;for(e=0;100>e;e++){z=d.u.Tk(a,E);z=z*z/Math.cos(E)*(Math.sin(E)-x*z/(1*(1-a)));if(d.j.Vc(z))break;E-=z}E=d.u.n(1,a,E)*Math.cos(E);E=Math.sqrt((E-k)*(E+k));x=1-p/E;x*=2-x;t=Math.acos(d.u.Qr(t,u)/(d.u.jm(t)*d.u.jm(u)));t*=d.j.nb(1,u[0]);h=(d.u.q(E,x,d.u.Si(x,t))+b*d.j.nb(1,h))/d.u.gg(E,x);h=d.u.W(1.570796326794897*
h);h=d.u.xn(x,h);d.u.n(E,x,h);p=d.u.W(v+c);c=Math.cos(p);h=Math.sin(p);m[0]=r[0]*c+r[1]*-h;m[1]=r[0]*h+r[1]*c;m[2]=r[2];d.u.JK(a,m[0],m[1],m[2],y,A,C);null!=l&&(l.l=A.l);null!=g&&(g.l=y.l)}};return g}();d.$z=m})(p||(p={}));(function(d){var m=function(){function a(a){this.Na=null;this.Ar=new d.b;this.Br=new d.b;this.a=a}a.prototype.compare=function(a,b,c){this.a.uc(b,this.Ar);this.a.uc(a.da(c),this.Br);return this.Ar.compare(this.Br)};return a}(),g=function(){function a(a){this.nf=new d.b;this.ln=
new d.b;this.a=a}a.prototype.bh=function(a){this.nf.J(a)};a.prototype.compare=function(a,b){this.a.uc(a.da(b),this.ln);return this.nf.compare(this.ln)};return a}(),b=function(a){function b(b){a.call(this,b.a,b.ka,!1);this.ab=b}L(b,a);b.prototype.compare=function(a,b,c){if(this.Zf)return-1;var e=this.ab.Cd.Dm(this.ab.lh(b));a=a.da(c);var d=this.ab.Cd.Dm(this.ab.lh(a));this.Cl=c;return this.JB(b,e,a,d)};return b}(d.hA),a=function(a){function b(b){a.call(this,b.a,b.ka);this.ab=b}L(b,a);b.prototype.compare=
function(a,b){if(this.Zf)return-1;var c=this.ab.Cd.Dm(this.ab.lh(a.da(b)));this.Cl=b;return this.KB(b,c)};return b}(d.JI),c=function(){function c(){this.zc=this.Ue=this.Zm=this.Cd=this.Kg=this.nd=this.$a=this.a=null;this.og=!1;this.Xg=this.Kl=this.Vd=this.Lj=this.Mg=this.Hj=this.sf=this.Ld=null;this.Yg=this.rp=this.Tx=this.ka=0;this.Ht=this.Nm=!1;this.mn=new d.b;this.Ck=new d.b;this.$a=new d.Fc(8);this.nd=new d.Fc(5);this.Kg=new d.Ur;this.Cd=new d.Ur;this.og=!1;this.Xg=new d.b;this.Xg.ma(0,0);this.ka=
0;this.Yg=-1;this.Nm=!1;this.a=null;this.Ue=new d.bj;this.zc=new d.bj;this.Mg=new d.ga(0);this.Lj=new d.gA;this.sf=new d.ga(0);this.Hj=new d.ga(0);this.Zm=new d.Va}c.prototype.GS=function(a,b){var c=new d.Bg;c.Oy();a.Oe(c);this.Op(a);this.Nm=!1;this.ka=b;this.Tx=b*b;var e=this.Xy();a.Oe(c);e||(this.JM(),e||this.Xy());-1!=this.Yg&&(this.a.bf(this.Yg),this.Yg=-1);this.a=null;return this.Nm};c.prototype.KS=function(a,b){this.Op(a);this.Nm=!1;this.ka=b;this.Tx=b*b;this.og=!1;this.Xy();this.og||(this.og=
1==a.xo(b,!0,!1));-1!=this.Yg&&(this.a.bf(this.Yg),this.Yg=-1);this.a=null};c.prototype.Uf=function(a,b){return this.$a.O(a,0+b)};c.prototype.zy=function(a,b,c){this.$a.L(a,0+b,c)};c.prototype.lh=function(a){return this.$a.O(a,2)};c.prototype.UR=function(a,b){this.$a.L(a,2,b)};c.prototype.FC=function(a,b){return this.$a.O(a,3+b)};c.prototype.Eo=function(a){return this.$a.O(a,7)};c.prototype.Nk=function(a,b){this.$a.L(a,7,b)};c.prototype.Go=function(a,b){return this.$a.O(a,3+this.Do(a,b))};c.prototype.Qp=
function(a,b,c){this.$a.L(a,3+this.Do(a,b),c)};c.prototype.ZN=function(a,b){return this.$a.O(a,5+this.Do(a,b))};c.prototype.Sp=function(a,b,c){this.$a.L(a,5+this.Do(a,b),c)};c.prototype.rq=function(a){return this.nd.O(a,0)};c.prototype.RR=function(a,b){this.nd.L(a,0,b)};c.prototype.ow=function(a){return this.nd.O(a,4)};c.prototype.Lp=function(a,b){this.nd.L(a,4,b)};c.prototype.fk=function(a){return this.nd.O(a,1)};c.prototype.dm=function(a,b){this.nd.L(a,1,b)};c.prototype.nw=function(a){return this.nd.O(a,
3)};c.prototype.Hr=function(a,b){this.nd.L(a,3,b)};c.prototype.Ul=function(a){var b=this.nd.be(),c=this.Kg.jh();this.RR(b,c);-1!=a?(this.Kg.addElement(c,a),this.a.lb(a,this.Yg,b),this.Lp(b,this.a.gb(a))):this.Lp(b,-1);return b};c.prototype.aM=function(a){this.nd.Jc(a)};c.prototype.QA=function(a,b){this.Kg.addElement(this.rq(a),b);this.a.lb(b,this.Yg,a)};c.prototype.rr=function(a){var b=this.$a.be(),c=this.Cd.jh();this.UR(b,c);-1!=a&&this.Cd.addElement(c,a);return b};c.prototype.RA=function(a,b){this.Cd.addElement(this.lh(a),
b)};c.prototype.Ns=function(a){this.$a.Jc(a);a=this.Mg.Qs(a);0<=a&&this.Mg.QE(a)};c.prototype.yi=function(a,b){if(-1==this.Uf(a,0))this.zy(a,0,b);else if(-1==this.Uf(a,1))this.zy(a,1,b);else throw d.g.wa();this.Av(a,b)};c.prototype.Av=function(a,b){var c=this.fk(b);if(-1!=c){var e=this.Go(c,b);this.Sp(e,b,a);this.Qp(a,b,e);this.Qp(c,b,a);this.Sp(a,b,c)}else this.Sp(a,b,a),this.Qp(a,b,a),this.dm(b,a)};c.prototype.Do=function(a,b){return this.Uf(a,0)==b?0:1};c.prototype.Tl=function(a,b){var c=this.nw(b);
-1!=c&&(this.Ue.kd(c,-1),this.Hr(b,-1));var e,c=this.fk(b);if(-1!=c){var d=e=c,f;do{f=!1;var h=this.Do(e,b),g=this.FC(e,h);if(this.Uf(e,h+1&1)==a){this.Os(e);this.Cd.Fg(this.lh(e));this.Ns(e);if(e==g){c=-1;break}c==e&&(c=this.fk(b),d=g,f=!0)}e=g}while(e!=d||f);if(-1!=c){do h=this.Do(e,b),g=this.FC(e,h),this.zy(e,h,a),e=g;while(e!=d);e=this.fk(a);-1!=e?(d=this.Go(e,a),f=this.Go(c,a),d==e?(this.dm(a,c),this.Av(e,a),this.dm(a,e)):f==c&&this.Av(c,a),this.Qp(c,a,d),this.Sp(d,a,c),this.Qp(e,a,f),this.Sp(f,
a,e)):this.dm(a,c)}}c=this.rq(a);e=this.rq(b);for(d=this.Kg.gc(e);-1!=d;d=this.Kg.bb(d))this.a.lb(this.Kg.da(d),this.Yg,a);this.Kg.Qv(c,e);this.aM(b)};c.prototype.YP=function(a,b){var c=this.Uf(a,0),e=this.Uf(a,1),d=this.Uf(b,0),f=this.Uf(b,1);this.Cd.Qv(this.lh(a),this.lh(b));b==this.fk(c)&&this.dm(c,a);b==this.fk(e)&&this.dm(e,a);this.Os(b);this.Ns(b);c==d&&e==f||e==d&&c==f||(this.zm(c,this.mn),this.zm(d,this.Ck),this.mn.ub(this.Ck)?(c!=d&&this.Tl(c,d),e!=f&&this.Tl(e,f)):(e!=d&&this.Tl(e,d),c!=
f&&this.Tl(c,f)))};c.prototype.Os=function(a){var b=this.Uf(a,1);this.SB(a,this.Uf(a,0));this.SB(a,b)};c.prototype.SB=function(a,b){var c=this.Go(a,b),e=this.ZN(a,b),d=this.fk(b);c!=a?(this.Qp(e,b,c),this.Sp(c,b,e),d==a&&this.dm(b,c)):this.dm(b,-1)};c.prototype.YA=function(a,b,c){var e=this.Cd.gc(a),d=this.Cd.da(e);a=this.se(d);var f=this.se(this.a.X(d));this.a.Tp(d,b,c,!0);for(e=this.Cd.bb(e);-1!=e;e=this.Cd.bb(e)){var d=this.Cd.da(e),h=this.se(d)==a;this.a.Tp(d,b,c,h)}e=b.Io(c,0).Mb();b=b.Io(c,
b.kk(c)-1).oc();this.yG(a,e);this.yG(f,b)};c.prototype.PB=function(a,b,c){var e=this.lh(a),d=this.Uf(a,0),f=this.Uf(a,1),h=this.rr(-1);this.Mg.add(h);this.Nk(h,-3);this.sf.add(h);this.yi(h,d);a=1;for(b=b.kk(c);a<b;a++)c=this.Ul(-1),this.Hj.add(c),this.sf.add(c),this.yi(h,c),h=this.rr(-1),this.Mg.add(h),this.Nk(h,-3),this.sf.add(h),this.yi(h,c);this.yi(h,f);for(e=this.Cd.gc(e);-1!=e;e=this.Cd.bb(e))if(f=this.Cd.da(e),this.se(f)==d){a=0;do 0<a&&(h=this.sf.get(a-1),this.QA(h,f),-1==this.ow(h)&&this.Lp(h,
this.a.gb(f))),h=this.sf.get(a),a+=2,this.RA(h,f),f=this.a.X(f);while(a<this.sf.size)}else{a=this.sf.size-1;do a<this.sf.size-2&&(h=this.sf.get(a+1),this.QA(h,f),0>this.ow(h)&&this.Lp(h,this.a.gb(f))),h=this.sf.get(a),a-=2,this.RA(h,f),f=this.a.X(f);while(0<=a)}this.sf.clear(!1)};c.prototype.se=function(a){return this.a.Ra(a,this.Yg)};c.prototype.UE=function(a,b,c){var e=this.Uf(b,0),f=new d.b;this.zm(e,f);var h=new d.b,g=this.Uf(b,1);this.zm(g,h);var l=c.kk(a),m=c.Io(a,0),p=new d.b;m.ht(p);if(!f.ub(p)){if(!this.og){var x=
f.compare(this.Xg),p=p.compare(this.Xg);0>x*p&&(this.og=!0)}this.lC(e,this.sf);this.Hj.add(e)}!this.og&&1<l&&(x=f.compare(h),m=m.oc(),f.compare(m)!=x||m.compare(h)!=x?this.og=!0:0>m.compare(this.Xg)&&(this.og=!0));m=c.Io(a,l-1);a=m.oc();h.ub(a)||(this.og||(x=h.compare(this.Xg),p=a.compare(this.Xg),0>x*p&&(this.og=!0)),this.lC(g,this.sf),this.Hj.add(g));this.sf.add(b);h=0;for(g=this.sf.size;h<g;h++)a=this.sf.get(h),c=this.Eo(a),d.Fc.Zw(c)&&(this.zc.kd(c,-1),this.Nk(a,-1)),a!=b&&-3!=this.Eo(a)&&(this.Mg.add(a),
this.Nk(a,-3));this.sf.clear(!1)};c.prototype.NK=function(a,b){this.Ld.compare(this.zc,this.zc.da(a),b);this.Ld.Zf&&(this.Ld.lq(),this.dC(a,b))};c.prototype.dC=function(a,b){this.Nm=!0;var c=this.zc.da(a),e=this.zc.da(b),f,h;h=this.Cd.Dm(this.lh(c));var g=this.Cd.Dm(this.lh(e));f=this.a.cc(h);null==f&&(null==this.Vd&&(this.Vd=new d.yb),this.a.Oc(h,this.Vd),f=this.Vd);h=this.a.cc(g);null==h&&(null==this.Kl&&(this.Kl=new d.yb),this.a.Oc(g,this.Kl),h=this.Kl);this.Lj.zn(f);this.Lj.zn(h);this.Lj.Ga(this.ka,
!0)&&(this.og=!0);this.fG(c,e,-1,this.Lj);this.Lj.clear()};c.prototype.VM=function(a,b){this.Nm=!0;var c=this.zc.da(b),e,f=this.Cd.Dm(this.lh(c));e=this.a.cc(f);null==e&&(null==this.Vd&&(this.Vd=new d.yb),this.a.Oc(f,this.Vd),e=this.Vd);f=this.qC(a);this.Lj.zn(e);this.a.Jk(f,this.Zm);this.Lj.Tw(this.ka,this.Zm,!0);this.fG(c,-1,a,this.Lj);this.Lj.clear()};c.prototype.DO=function(){if(0!=this.Mg.size)for(;0!=this.Mg.size;){if(this.Mg.size>Math.max(100,this.a.pd)){this.Mg.clear(!1);this.og=!0;break}var a=
this.Mg.tc();this.Mg.af();this.Nk(a,-1);-1!=this.TO(a)&&this.CO(a);this.Mm=!1}};c.prototype.CO=function(a){var b;this.Mm?(b=this.zc.vs(this.lE,this.iE,a,!0),this.Mm=!1):b=this.zc.PA(a);-1==b?this.YP(this.zc.da(this.zc.tC()),a):(this.Nk(a,b),this.Ld.Zf&&(this.Ld.lq(),this.dC(this.Ld.Cl,b)))};c.prototype.TO=function(a){var b=this.Uf(a,0);a=this.Uf(a,1);this.zm(b,this.mn);this.zm(a,this.Ck);if(d.b.Zb(this.mn,this.Ck)<=this.Tx)return this.og=!0,-1;var c=this.mn.compare(this.Xg),e=this.Ck.compare(this.Xg);
return 0>=c&&0<e?a:0>=e&&0<c?b:-1};c.prototype.HM=function(){var a=new d.ga(0);a.xb(this.a.pd);for(var b=this.a.Gp(),c=b.next();-1!=c;c=b.next())-1!=this.a.Ra(c,this.Yg)&&a.add(c);this.a.Mu(a,a.size);this.IM(a)};c.prototype.IM=function(a){this.Ue.clear();this.Ue.de(a.size);this.Ue.Hn(new m(this.a));var b=new d.b;b.Eh();for(var c=-1,e=new d.b,f=0,g=a.size;f<g;f++){var q=a.get(f);this.a.uc(q,e);e.ub(b)?(q=this.a.Ra(q,this.Yg),this.Tl(c,q)):(c=this.se(q),this.a.uc(q,b),q=this.Ue.qm(q),this.Hr(c,q))}};
c.prototype.JM=function(){var a=new d.ga(0);a.xb(this.a.pd);for(var b=this.Ue.gc(-1);-1!=b;b=this.Ue.bb(b))a.add(this.Ue.da(b));this.Ue.clear();this.a.Mu(a,a.size);for(var b=0,c=a.size;b<c;b++){var e=a.get(b),g=this.se(e),e=this.Ue.qm(e);this.Hr(g,e)}};c.prototype.lC=function(a,b){var c=this.fk(a);if(-1!=c){var e=c;do d.Fc.Zw(this.Eo(e))&&b.add(e),e=this.Go(e,a);while(e!=c)}};c.prototype.yG=function(a,b){for(var c=this.Kg.gc(this.rq(a));-1!=c;c=this.Kg.bb(c))this.a.Yi(this.Kg.da(c),b)};c.prototype.fG=
function(a,b,c,e){this.Os(a);-1!=b&&this.Os(b);this.UE(0,a,e);-1!=b&&this.UE(1,b,e);-1!=c&&(e.nf.w(this.mn),this.zm(c,this.Ck),this.Ck.ub(this.mn)||this.Hj.add(c));c=0;for(var d=this.Hj.size;c<d;c++){var f=this.Hj.get(c),h=this.nw(f);-1!=h&&(this.Ue.kd(h,-1),this.Hr(f,-1))}c=this.lh(a);d=-1!=b?this.lh(b):-1;this.YA(c,e,0);-1!=b&&this.YA(d,e,1);this.PB(a,e,0);-1!=b&&this.PB(b,e,1);this.Cd.Fg(c);this.Ns(a);-1!=b&&(this.Cd.Fg(d),this.Ns(b));c=0;for(d=this.Hj.size;c<d;c++)f=this.Hj.get(c),f==this.rp&&
(this.Ht=!0),h=this.nw(f),-1==h&&(h=this.Ue.PA(this.qC(f)),-1==h?(a=this.se(this.Ue.da(this.Ue.tC())),this.Tl(a,f)):this.Hr(f,h));this.Hj.clear(!1)};c.prototype.zm=function(a,b){this.a.SC(this.ow(a),b)};c.prototype.qC=function(a){return this.Kg.Dm(this.rq(a))};c.prototype.Xy=function(){this.Ht=!1;this.rp=-1;null==this.Ld&&(this.zc.Ct=!1,this.Ld=new b(this),this.zc.Qm=this.Ld);var c=new d.ga(0),e=null,l=null,k=0;this.iE=this.lE=-1;this.Mm=!1;for(var n=this.Ue.gc(-1);-1!=n;){k++;this.Mm=!1;var m=this.Ue.da(n);
this.rp=this.se(m);this.a.uc(m,this.Xg);this.Ld.XF(this.Xg.y,this.Xg.x);var q,r=this.fk(this.rp);q=-1==r;if(!q){m=r;do{var p=this.Eo(m);-1==p?(this.Mg.add(m),this.Nk(m,-3)):-3!=p&&c.add(p);m=this.Go(m,this.rp)}while(m!=r)}if(0<c.size){this.Mm=1==c.size&&1==this.Mg.size;q=0;for(r=c.size;q<r;q++)m=this.zc.da(c.get(q)),this.Nk(m,-2);var t=-2,x=-2;q=0;for(r=c.size;q<r;q++){p=c.get(q);if(-2==t){var v=this.zc.ge(p);-1!=v?(m=this.zc.da(v),m=this.Eo(m),-2!=m&&(t=v)):t=-1}-2==x&&(p=this.zc.bb(p),-1!=p?(m=
this.zc.da(p),m=this.Eo(m),-2!=m&&(x=p)):x=-1);if(-2!=t&&-2!=x)break}q=0;for(r=c.size;q<r;q++)p=c.get(q),m=this.zc.da(p),this.zc.kd(p,-1),this.Nk(m,-1);c.clear(!1);this.lE=-1!=t?t:-1;this.iE=-1!=x?x:-1;-1!=t&&-1!=x?this.Mm||this.NK(t,x):-1==t&&-1==x&&(this.Mm=!1)}else q&&(null==e&&(e=new a(this)),e.bh(this.Xg),this.zc.sF(e),e.Zf&&(e.lq(),this.VM(this.rp,e.Cl)));this.DO();this.Ht?(this.Ht=!1,null==l&&(l=new g(this.a)),l.bh(this.Xg),n=this.Ue.sF(l)):n=this.Ue.bb(n)}return this.Nm};c.prototype.Op=function(a){this.a=
a;this.Yg=this.a.re();this.$a.de(a.pd+32);this.nd.de(a.pd);this.Kg.Dr(a.pd);this.Kg.$l(a.pd);this.Cd.Dr(a.pd+32);this.Cd.$l(a.pd+32);for(a=this.a.$c;-1!=a;a=this.a.we(a))if(d.T.Kc(this.a.Lb(a)))for(r=this.a.Vb(a);-1!=r;r=this.a.bc(r)){var b=this.a.Ha(r),c=this.a.Cb(r),e=this.Ul(c),f=this.rr(c);this.yi(f,e);p=this.a.X(c);c=0;for(b-=2;c<b;c++){var g=this.a.X(p),m=this.Ul(p);this.yi(f,m);f=this.rr(p);this.yi(f,m);p=g}this.a.vc(r)?(m=this.Ul(p),this.yi(f,m),f=this.rr(p),this.yi(f,m),this.yi(f,e)):(m=
this.Ul(p),this.yi(f,m))}else for(var r=this.a.Vb(a);-1!=r;r=this.a.bc(r))for(var p=this.a.Cb(r),e=0,b=this.a.Ha(r);e<b;e++)this.Ul(p),p=this.a.X(p);this.HM()};return c}();d.aA=c})(p||(p={}));(function(d){var m=function(g){function b(a,b,e){g.call(this);if(void 0!==a)if(void 0!==e){this.description=d.Od.Tf();var c=new d.ee;c.K(a,b,e);this.Py(c)}else if(void 0!==b)this.description=d.Od.Tf(),this.ic(a,b);else if(a instanceof d.pa)this.description=a;else if(a instanceof d.b)this.description=d.Od.Tf(),
this.ic(a);else throw d.g.N();else this.description=d.Od.Tf()}L(b,g);b.prototype.w=function(a){if(void 0!==a){if(this.sc())throw d.g.ra("This operation should not be performed on an empty geometry.");a.ma(this.fa[0],this.fa[1])}else{if(this.sc())throw d.g.ra("This operation should not be performed on an empty geometry.");a=new d.b;a.ma(this.fa[0],this.fa[1]);return a}};b.prototype.ic=function(a,b){"number"===typeof a?(this.qc(),null==this.fa&&this.ko(),this.fa[0]=a,this.fa[1]=b):(this.qc(),this.ic(a.x,
a.y))};b.prototype.Lw=function(){if(this.sc())throw d.g.ra("This operation should not be performed on an empty geometry.");var a=new d.ee;a.x=this.fa[0];a.y=this.fa[1];this.description.WC()?a.z=this.fa[2]:a.z=d.pa.ue(1);return a};b.prototype.Py=function(a){this.qc();var b=this.hasAttribute(1);b||d.pa.nD(1,a.z)||(this.Ne(1),b=!0);null==this.fa&&this.ko();this.fa[0]=a.x;this.fa[1]=a.y;b&&(this.fa[2]=a.z)};b.prototype.lk=function(){if(this.sc())throw d.g.ra("This operation should not be performed on an empty geometry.");
return this.fa[0]};b.prototype.qS=function(a){this.setAttribute(0,0,a)};b.prototype.mk=function(){if(this.sc())throw d.g.ra("This operation should not be performed on an empty geometry.");return this.fa[1]};b.prototype.$F=function(a){this.setAttribute(0,1,a)};b.prototype.lO=function(){return this.ld(1,0)};b.prototype.rS=function(a){this.setAttribute(1,0,a)};b.prototype.NN=function(){return this.ld(2,0)};b.prototype.bS=function(a){this.setAttribute(2,0,a)};b.prototype.Qc=function(){return this.nC(3,
0)};b.prototype.ld=function(a,b){var c=this.description.zf(a);return 0<=c?this.fa[this.description.fj(c)+b]:d.pa.ue(a)};b.prototype.nC=function(a,b){var c=this.description.zf(a);return 0<=c?this.fa[this.description.fj(c)+b]:d.pa.ue(a)};b.prototype.setAttribute=function(a,b,e){this.qc();var c=this.description.zf(a);0>c&&(this.Ne(a),c=this.description.zf(a));null==this.fa&&this.ko();this.fa[this.description.fj(c)+b]=e};b.prototype.D=function(){return 33};b.prototype.fb=function(){return 0};b.prototype.Ja=
function(){this.qc();null!=this.fa&&(this.fa[0]=NaN,this.fa[1]=NaN)};b.prototype.nm=function(a){if(null!=this.fa){for(var b=d.Od.iu(a,this.description),e=[],f=0,h=0,g=a.Aa;h<g;h++){var k=a.Hd(h),n=d.pa.Wa(k);if(-1==b[h])for(var m=d.pa.ue(k),k=0;k<n;k++)e[f]=m,f++;else for(m=this.description.fj(b[h]),k=0;k<n;k++)e[f]=this.fa[m],f++,m++}this.fa=e}this.description=a};b.prototype.ko=function(){this.iF(this.description.le.length);b.ob(this.description.le,this.fa,this.description.le.length);this.fa[0]=
NaN;this.fa[1]=NaN};b.prototype.Oe=function(a){if(a instanceof d.Bg){if(!this.sc()){var b=this.w();a.Zi(b,b);this.ic(b)}}else this.sc()||(this.Ne(1),b=this.Lw(),this.Py(a.Qn(b)))};b.prototype.copyTo=function(a){if(33!=a.D())throw d.g.N();a.qc();null==this.fa?(a.Ja(),a.fa=null,a.Qf(this.description)):(a.Qf(this.description),a.iF(this.description.le.length),b.ob(this.fa,a.fa,this.description.le.length))};b.prototype.Pa=function(){return new b(this.description)};b.prototype.s=function(){return this.sc()};
b.prototype.sc=function(){return null==this.fa||isNaN(this.fa[0])||isNaN(this.fa[1])};b.prototype.Fp=function(a){a.Ja();this.description!=a.description&&a.Qf(this.description);a.Db(this)};b.prototype.o=function(a){this.sc()?a.Ja():(a.v=this.fa[0],a.C=this.fa[1],a.B=this.fa[0],a.G=this.fa[1])};b.prototype.Cn=function(a){if(this.sc())a.Ja();else{var b=this.Lw();a.v=b.x;a.C=b.y;a.Je=b.z;a.B=b.x;a.G=b.y;a.ig=b.z}};b.prototype.Ah=function(a,b){var c=new d.Nd;if(this.sc())return c.Ja(),c;var f=this.ld(a,
b);c.qa=f;c.va=f;return c};b.prototype.iF=function(a){if(null==this.fa)this.fa=d.I.Lh(a);else if(this.fa.length<a){for(var b=this.fa.slice(0),e=this.fa.length;e<a;e++)b[e]=0;this.fa=b}};b.ob=function(a,b,e){if(0<e)for(e=0;e<a.length;e++)b[e]=a[e]};b.prototype.lc=function(a){if(a==this)return!0;if(!(a instanceof b)||this.description!=a.description)return!1;if(this.sc())return a.sc()?!0:!1;for(var c=0,e=this.description.le.length;c<e;c++)if(this.fa[c]!=a.fa[c])return!1;return!0};b.prototype.hc=function(){var a=
this.description.hc();if(!this.sc())for(var b=0,e=this.description.le.length;b<e;b++)var f=this.fa[b],f=d.I.truncate(f^f>>>32),a=d.I.kg(f,a);return a};b.prototype.Rf=function(){return null};return b}(d.T);d.Va=m})(p||(p={}));(function(d){var m=function(){function d(b,a,c){void 0!==b&&(this.x=b,this.y=a,this.z=c)}d.Oa=function(b,a,c){var e=new d;e.x=b;e.y=a;e.z=c;return e};d.prototype.K=function(b,a,c){this.x=b;this.y=a;this.z=c};d.prototype.Lu=function(){this.z=this.y=this.x=0};d.prototype.normalize=
function(){var b=this.length();0==b&&(this.x/=b,this.y/=b,this.z/=b)};d.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)};d.prototype.sub=function(b){return new d(this.x-b.x,this.y-b.y,this.z-b.z)};d.prototype.Ap=function(b){return new d(this.x*b,this.y*b,this.z*b)};d.prototype.FA=function(){this.x=NaN};d.prototype.pv=function(){return isNaN(this.x)};return d}();d.ee=m})(p||(p={}));(function(d){var m=function(){function g(b,a,c){this.gu=this.Yt=null;this.Gf=
a;this.KP=a.y-c;this.JP=a.y+c;this.xp=0;this.ix=b;this.ka=c;this.UP=c*c;this.jx=0!=c;this.xt=!1}g.prototype.result=function(){return 0!=this.xp?1:0};g.prototype.DJ=function(b){b=b.Kb(b.Gd(this.Gf,!1));return d.b.Zb(b,this.Gf)<=this.UP?!0:!1};g.prototype.WB=function(b){if(!this.jx&&(this.ix&&this.Gf.ub(b.Mb())||this.Gf.ub(b.oc())))this.xt=!0;else if(b.ja==this.Gf.y&&b.ja==b.ha){if(this.ix&&!this.jx){var a=Math.max(b.na,b.la);this.Gf.x>Math.min(b.na,b.la)&&this.Gf.x<a&&(this.xt=!0)}}else{var c=!1,a=
Math.max(b.na,b.la);this.Gf.x>a?c=!0:this.Gf.x>=Math.min(b.na,b.la)&&(c=0<b.nt(!0,this.Gf.y,this.gu,null)&&this.gu[0]<=this.Gf.x);if(c){if(this.Gf.y==b.Mb().y){if(this.Gf.y<b.oc().y)return}else if(this.Gf.y==b.oc().y&&this.Gf.y<b.Mb().y)return;this.xp=this.ix?this.xp^1:this.xp+(b.Mb().y>b.oc().y?1:-1)}}};g.prototype.zr=function(b){var a=b.Ah(0,1);if(a.qa>this.JP||a.va<this.KP)return!1;if(this.jx&&this.DJ(b))return!0;if(a.qa>this.Gf.y||a.va<this.Gf.y)return!1;null==this.Yt&&(this.Yt=[null,null,null,
null,null]);null==this.gu&&(this.gu=[0,0,0]);a=b.TC(this.Yt);if(0<a)for(b=0;b<a;b++){var c=this.Yt[b].get();this.WB(c);if(this.xt)return!0}else if(this.WB(b),this.xt)return!0;return!1};g.V=function(b,a,c){a=new g(0==b.Cm(),a,c);for(b=b.Ca();b.kb();)for(;b.La();)if(c=b.ia(),a.zr(c))return-1;return a.result()};g.Bd=function(b,a,c,e){var f=new d.i;b.dd(f);f.P(e,e);var h=new g(0==b.Cm(),c,e);b=b.Ca();var l=new d.i;l.K(f);l.B=c.x+e;l.C=c.y-e;l.G=c.y+e;c=a.xw(l,e);for(e=c.next();-1!=e;e=c.next())if(b.Sb(a.da(e)),
b.La()&&(e=b.ia(),h.zr(e)))return-1;return h.result()};g.xl=function(b,a,c){if(b.s())return 0;var e=new d.i;b.dd(e);e.P(c,c);if(!e.contains(a))return 0;e=b.pb;if(null!=e){var f=e.hi;if(null!=f){f=f.Kk(a.x,a.y);if(1==f)return 1;if(0==f)return 0}e=e.Ab;if(null!=e)return g.Bd(b,e,a,c)}return g.V(b,a,c)};g.aP=function(b,a,c,e){if(b.s())return 0;var f=new d.i;b.dd(f);f.P(e,e);if(!f.contains(a,c))return 0;f=b.pb;if(null!=f&&(f=f.hi,null!=f)){f=f.Kk(a,c);if(1==f)return 1;if(0==f)return 0}return g.V(b,d.b.Oa(a,
c),e)};g.$O=function(b,a,c){return a.s()?0:g.xl(b,a.w(),c)};g.vD=function(b,a,c,e,f){var h=new d.i;b.dd(h);h.P(e,e);if(!h.contains(c))return 0;var l=new g(!0,c,e);if(null!=f){var k=new d.i;k.K(h);k.B=c.x+e;k.C=c.y-e;k.G=c.y+e;b=b.Ca();e=f.xw(k,e);for(k=e.next();-1!=k;k=e.next())if(b.Sb(f.da(k),a),b.La()&&b.Qa==a&&(k=b.ia(),l.zr(k)))return-1}else if(b=b.Ca(),b.vy(a),b.kb())for(;b.La();)if(k=b.ia(),l.zr(k))return-1;return l.result()};g.tD=function(b,a,c){var e=new d.i;b.dd(e);e.P(c,c);if(!e.contains(a))return 0;
a=new g(!1,a,c);for(c=b.Ca();c.kb();)if(!(0>b.oo(c.Qa))){for(a.xp=0;c.La();)if(e=c.ia(),a.zr(e))return-1;if(0!=a.xp)return 1}return a.result()};g.$i=function(b,a,c,e,f){var h=b.Ca();h.vy(a);if(!h.kb()||!h.La())throw d.g.ra("corrupted geometry");for(a=2;2==a&&h.La();)a=h.ia().Kb(.5),a=g.vD(b,c,a,e,f);if(2==a)throw d.g.ra("internal error");return 1==a?!0:!1};g.An=function(b,a){var c=b.F();return 16>c?!1:2*c+Math.log(c)/Math.log(2)*1*a<1*c*a};return g}();d.ff=m})(p||(p={}));(function(d){var m=function(d){function b(a){d.call(this,
!0,a)}L(b,d);b.prototype.Pa=function(){return new b(this.description)};b.prototype.fb=function(){return 2};b.prototype.D=function(){return 1736};return b}(d.al);d.Ka=m})(p||(p={}));(function(d){(function(d){d[d.PiPOutside=0]="PiPOutside";d[d.PiPInside=1]="PiPInside";d[d.PiPBoundary=2]="PiPBoundary"})(d.pI||(d.pI={}));var m=function(){function g(){}g.uD=function(b,a,c){b=d.ff.$O(b,a,c);return 0==b?0:1==b?1:2};g.he=function(b,a,c){b=d.ff.xl(b,a,c);return 0==b?0:1==b?1:2};g.CH=function(b,a,c,e){b=d.ff.aP(b,
a,c,e);return 0==b?0:1==b?1:2};g.gU=function(b,a,c,e){return 0==d.ff.vD(b,a,c,e,null)?0:1};g.tD=function(b,a,c){return 0==d.ff.tD(b,a,c)?0:1};g.ZS=function(b,a,c,e,f){if(a.length<c||f.length<c)throw d.g.N();for(var h=0;h<c;h++)f[h]=g.he(b,a[h],e)};g.eT=function(b,a,c,e,f){if(a.length/2<c||f.length<c)throw d.g.N();for(var h=0;h<c;h++)f[h]=g.CH(b,a[2*h],a[2*h+1],e)};g.nG=function(b,a,c,e,f){if(1736==b.D())g.ZS(b,a,c,e,f);else if(197==b.D()){var h=new d.i;b.o(h);g.jP(h,a,c,e,f)}else throw d.g.ra("invalid_call");
};g.nU=function(b,a,c,e,f){if(1736==b.D())g.eT(b,a,c,e,f);else if(197==b.D()){var h=new d.i;b.o(h);g.mP(h,a,c,e,f)}else throw d.g.xa();};g.jP=function(b,a,c,e,f){if(a.length<c||f.length<c)throw d.g.N();if(b.s())for(e=0;e<c;e++)f[e]=0;else for(b.P(.5*-e,.5*-e),b.P(.5*e,.5*e),e=0;e<c;e++)b.contains(a[e])?f[e]=1:b.contains(a[e])?f[e]=2:f[e]=0};g.mP=function(b,a,c,e,f){if(a.length/2<c||f.length<c)throw d.g.N();if(b.s())for(e=0;e<c;e++)f[e]=0;else for(b.P(.5*-e,.5*-e),b.P(.5*e,.5*e),e=0;e<c;e++)b.contains(a[2*
e],a[2*e+1])?f[e]=1:b.contains(a[2*e],a[2*e+1])?f[e]=2:f[e]=0};g.lT=function(b,a,c,e,d){for(var f=0;f<c;f++)d[f]=b.Eq(a[f],e)?2:0};g.hT=function(b,a,c,e,d){var f=b.pb,g=null;null!=f&&(g=f.hi);for(var f=c,k=0;k<c;k++)if(d[k]=1,null!=g){var n=a[k];0==g.Kk(n.x,n.y)&&(d[k]=0,f--)}if(0!=f)for(b=b.Ca();b.kb()&&0!=f;)for(;b.La()&&0!=f;)for(g=b.ia(),k=0;k<c&&0!=f;k++)1==d[k]&&g.Eq(a[k],e)&&(d[k]=2,f--);for(k=0;k<c;k++)1==d[k]&&(d[k]=0)};g.oG=function(b,a,c,e,f){var h=b.D();if(1607==h)g.hT(b,a,c,e,f);else if(d.T.Lc(h))g.lT(b,
a,c,e,f);else throw d.g.ra("Invalid call.");};return g}();d.gd=m})(p||(p={}));(function(d){var m=function(d){function b(a,b){2==arguments.length?(d.call(this,!1,a.description),this.df(a),this.lineTo(b)):d.call(this,!1,a)}L(b,d);b.prototype.Pa=function(){return new b(this.description)};b.prototype.fb=function(){return 1};b.prototype.D=function(){return 1607};return b}(d.al);d.Xa=m})(p||(p={}));(function(d){var m=function(){function d(){}d.GT=function(){};return d}();d.RT=m})(p||(p={}));(function(d){var m=
function(){function b(){}b.Rv=function(a){return a*b.rQ};b.aG=function(a,c){return b.cR(c-a)};b.kR=function(a){if(-360<=a&&720>a)return 0>a?a+=360:360<=a&&(a-=360),a;a=d.vi.gH(a);0>a&&(a+=360);return a};b.cR=function(a){a=b.kR(a);180<a&&(a-=360);return a};b.OT=.0174532925199433;b.rQ=57.29577951308232;return b}(),g=function(){function b(){}b.qo=function(a,b){var c=new d.i;a.o(c);var f=d.Ya.Fm(b),h=new d.i;h.K(f);h.v=c.v;h.B=c.B;h.P(.01*h.ba(),0);f=d.Ia.zd(b,c,!1);return h.contains(c)?a:d.Ed.clip(a,
h,f,0)};b.Rw=function(a,c,e,f){if(!d.Ya.Qo(c))throw d.g.N();var h=d.Ia.Cg(c,a,!1),g=d.Ya.Fm(c),k=d.Ya.Em(c),n=k.Se().Dj,m=d.Ya.ft(k),k=d.Ya.Ts(k),m=m*(2-m),q=new d.Nd;g.wu(q);var r=[[0,0],[0,0]];2==d.Nf.Am(c)?(r[0][0]=b.pu(f,q),r[0][1]=g.Vs(),d.Ya.tu(),g=r[0][0]*n):g=f*n;var p=new d.ca,t=new d.fd;a=t.Eb(a);for(var x=[0],v=new d.b,C=new d.b,A=new d.b,y=new d.b,z=new d.b,B=new d.b,D=t.Vb(a);-1!=D;D=t.bc(D)){var E=t.Cb(D);t.w(E,A);for(var G=!1,F=E=t.X(E);-1!=F;F=t.X(F)){if(F==E){if(G)break;G=!0}t.w(F,
y);if((h<f-A.x&&y.x-f>h||h<f-y.x&&A.x-f>h||h<-y.y&&A.y>h)&&!(Math.abs(A.x-y.x)>=.5*q.aa())&&(2==d.Nf.Am(c)?(r[0][0]=b.pu(A.x,q),r[0][1]=A.y,r[1][0]=b.pu(y.x,q),r[1][1]=y.y,d.Ya.YQ(),z.x=r[0][0]*n,z.y=r[0][1]*n,B.x=r[1][0]*n,B.y=r[1][1]*n):(z.x=A.x*n,z.y=A.y*n,B.x=y.x*n,B.y=y.y*n),B.x=6.283185307179586*(y.x-A.x)/q.aa()+z.x,C.x=g,C.y=b.yH(k,m,z,B,g,e),!isNaN(C.y))){d.zb.Rd(k,m,z.x,z.y,B.x,B.y,p,null,null,e);var H=p.l;d.zb.Rd(k,m,z.x,z.y,C.x,C.y,p,null,null,e);var K=p.l;2==d.Nf.Am(c)?(r[0][0]=C.x/n,
r[0][1]=C.y/n,d.Ya.qN(),v.y=r[0][1],v.x=f):(v.x=f,v.y=C.y/n);x[0]=0<H?d.I.Kr(K/H,0,1):.5;0!=x[0]&&1!=x[0]&&(H=t.Ua(F),t.Mr(H,x,1),t.ic(t.X(H),v.x,v.y))}A.J(y)}}return t.hf(a)};b.aN=function(a,c,e){if(a.s())return a;var f=d.Ya.IC(c);return b.gC(a,0-180*f,360*f,c,e)};b.yH=function(a,c,e,f,h,g){if(3.141592653589793<=Math.abs(e.x-f.x)||!b.Jv(e.x,f.x,h))return NaN;var l;e.x>f.x?l=f:(l=e,e=f);f=new d.ca(0);var n=new d.ca(0),m=new d.ca(0);d.zb.Rd(a,c,l.x,l.y,e.x,e.y,n,f,null,g);var q=n.l,r=0,p=1,t=new d.b;
for(t.J(l);q*(p-r)>1E-12*a;){var x=.5*(r+p);d.zb.dk(a,c,l.x,l.y,q*x,f.l,n,m,g);t.x=n.l;t.y=m.l;if(t.x==h)break;if(b.Jv(l.x,t.x,h))p=x;else if(b.Jv(e.x,t.x,h))r=x;else return NaN}return t.y};b.Jv=function(a,b,e){a=m.Rv(a);b=m.aG(a,m.Rv(b));e=m.aG(a,m.Rv(e));return 0==e||0<b&&0<e&&e<=b||0>b&&0>e&&e>=b?!0:!1};b.pu=function(a,b){var c=b.va-b.qa;return b.Sy(a-Math.floor((a-b.qa)/c)*c)};b.eU=function(a,b,e,f){var c=new d.Nd;c.K(b,e);e=f.aa();a=Math.floor((a-b)/e)*e+a;for(c=c.Af();Math.abs(a-c)>Math.abs(a+
e-c);)a+=e;return a};b.cU=function(a,b,e,f,h){var c;e.y>f.y?c=f:(c=e,e=f);f=new d.Nd;f.K(c.y,e.y);if(!f.contains(0)||3.141592653589793<=Math.abs(c.x-e.x))return NaN;if(c.x==e.x)return c.x;var g=new d.ca(0),n=new d.ca(0),m=new d.ca(0);d.zb.Rd(a,b,c.x,c.y,e.x,e.y,n,g,null,h);var q=n.l,r=0,p=1,t=new d.b;for(t.J(c);q*(p-r)>1E-12*a;){var x=.5*(r+p);d.zb.dk(a,b,c.x,c.y,q*x,g.l,n,m,h);t.x=n.l;t.y=m.l;f.K(c.y,t.y);if(0==t.y)break;if(f.contains(0))p=x;else if(f.K(e.y,t.y),f.contains(0))r=x;else return NaN}return t.x};
b.gC=function(a,b,e,f,h){var c=new d.i;a.o(c);if(c.s())return a;var g=new d.Nd;c.wu(g);var n=new d.Nd;n.K(b,b+e);if(n.contains(g)&&n.va!=g.va)return a;var m=new d.i;m.K(c);var q=a.D();if(33==q){m=h?a:a.vm();c=m.lk();if(c<n.qa||c>=n.va||c==n.va)c+=Math.ceil((n.qa-c)/e)*e,c=n.Sy(c),m.qS(c);return m}if(550==q){m=h?a:a.vm();f=m.mc(0);q=2*m.F();a=!1;for(h=0;h<q;h+=2)if(c=f.read(h),c<n.qa||c>=n.va||c==n.va)a=!0,c+=Math.ceil((n.qa-c)/e)*e,c=n.Sy(c),f.write(h,c);a&&m.ce(1993);return m}if(n.contains(g))return a;
if(197==q)return e=h?a:a.vm(),c.Ga(m),e.Cu(c),e;var r=.1*Math.max(c.ba(),c.aa());m.P(0,r);n=a;a=f.Ko();h=d.wi.local();for(var p=new d.Bg,t=0;;){var x=Math.floor((g.qa-b)/e),v=Math.ceil((g.va-b)/e);if(3<v-x){x=Math.floor(.5*(v+x));m.v=c.v-r;m.B=b+e*x;var C=d.Ed.clip(n,m,a,0);m.v=m.B;m.B=c.B+r;var A=d.Ed.clip(n,m,a,0);p.Nn((x-v)*e,0);A.Oe(p);1736==q?n=h.$(C,A,f,null):(n=C,n.add(A,!1));n.o(c);c.wu(g);t++}else break}m.v=b;m.B=b+e;b=new d.i;b.K(m);b.P(a,0);b=Math.floor((c.v-m.v)/e)*e;0!=b?(m.move(b,0),
p.Nn(-b,0)):p.IF();b=1607==q?new d.Xa(n.description):new d.Ka(n.description);g=new d.i;for(r=new d.i;c.B>m.v;){t=d.Ed.clip(n,m,a,0);t.o(r);if(1607==q?!t.s()&&(r.aa()>a||r.ba()>a):!t.s()&&(1736!=q||r.aa()>a))t.Oe(p),t.o(r),b.o(g),g.P(a,a),g.jc(r)&&1736==q?b=h.$(b,t,f,null):b.add(t,!1);m.move(e,0);p.shift(-e,0)}return b};b.ZQ=function(a,b,e,f){var c=new d.pe(e.description);c.Pd(e,0,-1);var c=d.Ya.Wl(c,a,b),g=e.F();f.Ja();if(!d.Ya.Qo(a)||g!=c.F())return!1;var k=new d.i;e.o(k);var n=new d.i;c.o(n);k=
k.aa();n=n.aa();if(0!=k&&0!=n){if(n/=k,a=d.Ya.Fm(b).aa()/d.Ya.Fm(a).aa(),1E-10<Math.abs(n/a-1))return!1}else if(0!=k||0!=n)return!1;f.add(e,!1);for(e=0;e<g;e++)a=c.Fa(e),f.ic(e,a);return!0};b.dU=function(){throw d.g.qe();};return b}();d.gh=g})(p||(p={}));(function(d){(function(d){d[d.rightSide=1]="rightSide"})(d.sI||(d.sI={}));var m=function(){function g(b,a,c){this.Nq=new d.b;void 0===b?this.tn=-1:(this.Nq.J(b),this.tn=a,this.Da=c,this.Ut=0)}g.prototype.UF=function(b){this.Ut=b?this.Ut|1:this.Ut&
-2};g.prototype.s=function(){return 0>this.tn};g.prototype.pw=function(){if(this.s())throw d.g.ra("invalid call");return new d.Va(this.Nq.x,this.Nq.y)};g.prototype.gb=function(){if(this.s())throw d.g.ra("invalid call");return this.tn};g.prototype.sw=function(){if(this.s())throw d.g.ra("invalid call");return this.Da};g.prototype.Xw=function(){return 0!=(this.Ut&1)};g.prototype.tv=function(b,a,c,e){this.Nq.x=b;this.Nq.y=a;this.tn=c;this.Da=e};return g}();d.dl=m})(p||(p={}));(function(d){var m=function(){function b(){}
b.prototype.Fn=function(a,b){this.Vg.resize(0);this.ai.length=0;this.Aj=-1;a.dd(this.Kj);this.Kj.P(b,b);this.Kj.jc(this.Ab.Qb)?((this.Iq=d.T.Lc(a.D()))?(this.rE=a.Mb(),this.qE=a.oc(),this.ka=b):this.ka=NaN,this.Vg.add(this.Ab.Ze),this.ai.push(this.Ab.Qb),this.ar=this.Ab.sq(this.Ab.Ze)):this.ar=-1};b.prototype.Ch=function(a,b){this.Vg.resize(0);this.ai.length=0;this.Aj=-1;this.Kj.K(a);this.Kj.P(b,b);this.ka=NaN;this.Kj.jc(this.Ab.Qb)?(this.Vg.add(this.Ab.Ze),this.ai.push(this.Ab.Qb),this.ar=this.Ab.sq(this.Ab.Ze),
this.Iq=!1):this.ar=-1};b.prototype.next=function(){if(0==this.Vg.size)return-1;this.Aj=this.ar;var a=null,b=null,e,f=null,h=null;this.Iq&&(a=new d.b,b=new d.b,f=new d.i);for(var l=!1;!l;){for(;-1!=this.Aj;){e=this.Ab.kw(this.Ab.Us(this.Aj));if(e.jc(this.Kj))if(this.Iq){if(a.J(this.rE),b.J(this.qE),f.K(e),f.P(this.ka,this.ka),0<f.Nv(a,b)){l=!0;break}}else{l=!0;break}this.Aj=this.Ab.at(this.Aj)}if(-1==this.Aj){e=this.Vg.tc();var k=this.ai[this.ai.length-1];null==h&&(h=[],h[0]=new d.i,h[1]=new d.i,
h[2]=new d.i,h[3]=new d.i);g.BF(k,h);this.Vg.af();--this.ai.length;for(k=0;4>k;k++){var n=this.Ab.zo(e,k);if(-1!=n&&0<this.Ab.gO(n)&&h[k].jc(this.Kj))if(this.Iq){if(a.J(this.rE),b.J(this.qE),f.K(h[k]),f.P(this.ka,this.ka),0<f.Nv(a,b)){var m=new d.i;m.K(h[k]);this.Vg.add(n);this.ai.push(m)}}else m=new d.i,m.K(h[k]),this.Vg.add(n),this.ai.push(m)}if(0==this.Vg.size)return-1;this.Aj=this.Ab.sq(this.Vg.get(this.Vg.size-1))}}this.ar=this.Ab.at(this.Aj);return this.Aj};b.HL=function(a,c,e){var f=new b;
f.Ab=a;f.Kj=new d.i;f.Vg=new d.ga(0);f.ai=[];f.Fn(c,e);return f};b.GL=function(a,c,e){var f=new b;f.Ab=a;f.Kj=new d.i;f.Vg=new d.ga(0);f.ai=[];f.Ch(c,e);return f};b.FL=function(a){var c=new b;c.Ab=a;c.Kj=new d.i;c.Vg=new d.ga(0);c.ai=[];return c};return b}();d.TT=m;var g=function(){function b(a,b){this.Ye=new d.Fc(11);this.qh=new d.Fc(5);this.Jq=[];this.Rt=new d.ga(0);this.Qb=new d.i;this.Rj(a,b)}b.prototype.reset=function(a,b){this.Ye.Nh(!1);this.qh.Nh(!1);this.Jq.length=0;this.Rt.clear(!1);this.Rj(a,
b)};b.prototype.lg=function(a,b){return this.lt(a,b,0,this.Qb,this.Ze,!1,-1)};b.prototype.kt=function(a,b,e){e=-1==e?this.Ze:this.KC(e);var c=this.ba(e),d=this.CN(e);return this.lt(a,b,c,d,e,!1,-1)};b.prototype.da=function(a){return this.yN(a)};b.prototype.uC=function(a){return this.kw(this.Us(a))};b.prototype.ba=function(a){return this.Xs(a)};b.prototype.CN=function(a){var b=new d.i;b.K(this.Qb);var e=this.Xs(a);a=this.EC(a);for(var f=0;f<2*e;f+=2){var h=d.I.truncate(3&a>>f);0==h?(b.v=.5*(b.v+b.B),
b.C=.5*(b.C+b.G)):1==h?(b.B=.5*(b.v+b.B),b.C=.5*(b.C+b.G)):(2==h?b.B=.5*(b.v+b.B):b.v=.5*(b.v+b.B),b.G=.5*(b.C+b.G))}return b};b.prototype.gO=function(a){return this.Kw(a)};b.prototype.KN=function(a,b){return m.HL(this,a,b)};b.prototype.xw=function(a,b){return m.GL(this,a,b)};b.prototype.Re=function(){return m.FL(this)};b.prototype.Rj=function(a,b){if(0>b||32<2*b)throw d.g.N("invalid height");this.GP=b;this.Qb.K(a);this.Ze=this.Ye.be();this.Ku(this.Ze,0);this.Eu(this.Ze,0);this.LF(this.Ze,0);this.HF(this.Ze,
0)};b.prototype.lt=function(a,c,e,f,h,g,k){if(!f.contains(c))return 0==e?-1:this.lt(a,c,0,this.Qb,this.Ze,g,k);if(!g)for(var l=h;-1!=l;l=this.UN(l))this.Ku(l,this.Kw(l)+1);l=new d.i;l.K(f);f=h;var m=[];m[0]=new d.i;m[1]=new d.i;m[2]=new d.i;for(m[3]=new d.i;e<this.GP&&this.IK(f);e++){b.BF(l,m);for(var q=!1,r=0;4>r;r++)if(m[r].contains(c)){var q=!0,p=this.zo(f,r);-1==p&&(p=this.OL(f,r));this.Ku(p,this.Kw(p)+1);f=p;l.K(m[r]);break}if(!q)break}return this.zO(a,c,e,l,f,g,h,k)};b.prototype.zO=function(a,
b,e,d,h,g,k,n){var c=this.AC(h);if(g){if(h==k)return n;this.mM(n);g=n}else g=this.QL(),this.By(g,a),this.IR(this.Us(g),b);this.gS(g,h);-1!=c?(this.Ju(g,c),this.Fu(c,g)):this.DF(h,g);this.Fy(h,g);this.Eu(h,this.Zs(h)+1);this.HK(h)&&this.$M(e,d,h);return g};b.prototype.mM=function(a){var b=this.KC(a),e=this.AC(b),d=this.$N(a),h=this.at(a);this.sq(b)==a?(-1!=h?this.Ju(h,-1):this.Fy(b,-1),this.DF(b,h)):e==a?(this.Fu(d,-1),this.Fy(b,d)):(this.Ju(h,d),this.Fu(d,h));this.Ju(a,-1);this.Fu(a,-1);this.Eu(b,
this.Zs(b)-1)};b.BF=function(a,b){var c=.5*(a.v+a.B),d=.5*(a.C+a.G);b[0].K(c,d,a.B,a.G);b[1].K(a.v,d,c,a.G);b[2].K(a.v,a.C,c,d);b[3].K(c,a.C,a.B,d)};b.prototype.HK=function(a){return 8==this.Zs(a)&&!this.VC(a)};b.prototype.$M=function(a,b,e){var c,d,g=this.sq(e);do d=this.Us(g),c=this.qh.O(g,0),d=this.kw(d),this.lt(c,d,a,b,e,!0,g),g=c=this.at(g);while(-1!=g)};b.prototype.IK=function(a){return 8<=this.Zs(a)||this.VC(a)};b.prototype.VC=function(a){return-1!=this.zo(a,0)||-1!=this.zo(a,1)||-1!=this.zo(a,
2)||-1!=this.zo(a,3)};b.prototype.OL=function(a,b){var c=this.Ye.be();this.MR(a,b,c);this.Ku(c,0);this.Eu(c,0);this.Tj(c,a);this.HF(c,this.Xs(a)+1);this.LF(c,b<<2*this.Xs(a)|this.EC(a));return c};b.prototype.QL=function(){var a=this.qh.be(),b;0<this.Rt.size?(b=this.Rt.tc(),this.Rt.af()):(b=this.Jq.length,this.Jq.push(new d.i));this.JR(a,b);return a};b.prototype.zo=function(a,b){return this.Ye.O(a,b)};b.prototype.MR=function(a,b,e){this.Ye.L(a,b,e)};b.prototype.sq=function(a){return this.Ye.O(a,4)};
b.prototype.DF=function(a,b){this.Ye.L(a,4,b)};b.prototype.AC=function(a){return this.Ye.O(a,5)};b.prototype.Fy=function(a,b){this.Ye.L(a,5,b)};b.prototype.EC=function(a){return this.Ye.O(a,6)};b.prototype.LF=function(a,b){this.Ye.L(a,6,b)};b.prototype.Zs=function(a){return this.Ye.O(a,7)};b.prototype.Kw=function(a){return this.Ye.O(a,8)};b.prototype.Eu=function(a,b){this.Ye.L(a,7,b)};b.prototype.Ku=function(a,b){this.Ye.L(a,8,b)};b.prototype.UN=function(a){return this.Ye.O(a,9)};b.prototype.Tj=function(a,
b){this.Ye.L(a,9,b)};b.prototype.Xs=function(a){return this.Ye.O(a,10)};b.prototype.HF=function(a,b){this.Ye.L(a,10,b)};b.prototype.yN=function(a){return this.qh.O(a,0)};b.prototype.By=function(a,b){this.qh.L(a,0,b)};b.prototype.$N=function(a){return this.qh.O(a,1)};b.prototype.at=function(a){return this.qh.O(a,2)};b.prototype.Ju=function(a,b){this.qh.L(a,1,b)};b.prototype.Fu=function(a,b){this.qh.L(a,2,b)};b.prototype.KC=function(a){return this.qh.O(a,3)};b.prototype.gS=function(a,b){this.qh.L(a,
3,b)};b.prototype.Us=function(a){return this.qh.O(a,4)};b.prototype.JR=function(a,b){this.qh.L(a,4,b)};b.prototype.kw=function(a){return this.Jq[a]};b.prototype.IR=function(a,b){this.Jq[a].K(b)};return b}();d.co=g})(p||(p={}));(function(d){(function(b){b[b.Outside=0]="Outside";b[b.Inside=1]="Inside";b[b.Border=2]="Border"})(d.wH||(d.wH={}));var m=function(){function b(a,b){this.Hg=null;this.SP=b;this.Hg=a}b.prototype.Bu=function(a,b){this.PD!=b&&a.flush();this.PD=b};b.prototype.XB=function(a,b){for(var c=
0;c<b;)for(var d=a[c++],h=a[c++],g=a[c++]*this.SP;d<h;d++)this.Hg[g+(d>>4)]|=this.PD<<2*(d&15)};return b}();d.VT=m;var g=function(){function b(a,b,e){this.Hg=null;this.Qx=this.Sx=this.zE=this.xE=this.Qq=this.VD=this.tf=this.Pl=0;this.ii=this.Nj=this.sk=null;this.jt(a,b,e)}b.create=function(a,c,e){if(!b.Cc(a))throw d.g.N();return b.Id(a,c,e)};b.ti=function(a,c,e){if(!b.Cc(a))throw d.g.N();return b.ye(a,c,e)};b.jR=function(a){switch(a){case 0:a=1024;break;case 1:a=16384;break;case 2:a=262144;break;
default:throw d.g.ra("Internal Error");}return a};b.Cc=function(a){return a.s()||1607!=a.D()&&1736!=a.D()?!1:!0};b.prototype.KM=function(a,b){for(var c=b.Ca(),f=new d.b,h=new d.b;c.kb();)for(;c.La();){var g=c.ia();if(322!=g.D())throw d.g.ra("Internal Error");a.Zi(g.Mb(),f);a.Zi(g.oc(),h);this.ii.zv(f.x,f.y,h.x,h.y)}this.ii.fF(d.ev.$u)};b.prototype.LM=function(){throw d.g.ra("Internal Error");};b.prototype.cw=function(a,b){for(var c=1;4>c;c++)a.zv(b[c-1].x,b[c-1].y,b[c].x,b[c].y);a.zv(b[3].x,b[3].y,
b[0].x,b[0].y);this.ii.fF(d.ev.$u)};b.prototype.kG=function(a,b,e){for(var c=[null,null,null,null],h=0;h<c.length;h++)c[h]=new d.b;b=b.Ca();e=this.Nj.TS(e)+1.5;for(var h=new d.b,g=new d.b,k=new d.b,n=new d.b,m=new d.b,q=new d.i,r=new d.b;b.kb();){var p=!1,t=!0;for(r.ma(0,0);b.La();){var x=b.ia();n.x=x.na;n.y=x.ja;m.x=x.la;m.y=x.ha;q.Ja();q.Db(n.x,n.y);q.Oj(m.x,m.y);if(this.sk.rD(q)){this.Nj.Zi(m,m);t?(this.Nj.Zi(n,n),r.J(n),t=!1):n.J(r);h.pc(m,n);var x=h.length(),v=.5>x;0==x?h.ma(1,0):(v||r.J(m),
h.scale(e/x),g.ma(-h.y,h.x),k.ma(h.y,-h.x),n.sub(h),m.add(h),c[0].add(n,g),c[1].add(n,k),c[2].add(m,k),c[3].add(m,g),v?p=!0:this.cw(a,c))}else p&&(this.cw(a,c),p=!1),t=!0}p&&this.cw(a,c)}};b.prototype.fz=function(a){return d.I.truncate(a*this.VD+this.xE)};b.prototype.gz=function(a){return d.I.truncate(a*this.Qq+this.zE)};b.Id=function(a,c,e){return new b(a,c,e)};b.ye=function(a,c,e){return new b(a,c,e)};b.prototype.jt=function(a,b,e){this.tf=Math.max(d.I.truncate(2*Math.sqrt(e)+.5),64);this.Pl=d.I.truncate((2*
this.tf+31)/32);this.sk=new d.i;this.Sx=b;e=0;for(var c=this.tf,h=this.Pl;8<=c;)e+=c*h,c=d.I.truncate(c/2),h=d.I.truncate((2*c+31)/32);this.Hg=d.I.Lh(e,0);this.ii=new d.ev;e=new m(this.Hg,this.Pl,this);this.ii.vS(this.tf,this.tf,e);a.o(this.sk);this.sk.P(b,b);var c=new d.i,h=d.i.Oa(1,1,this.tf-2,this.tf-2),g=b*h.aa();b*=h.ba();c.K(this.sk.Af(),Math.max(g,this.sk.aa()),Math.max(b,this.sk.ba()));this.Qx=this.Sx;this.Nj=new d.Bg;this.Nj.wO(c,h);new d.Bg;switch(a.D()){case 550:e.Bu(this.ii,2);this.LM();
break;case 1607:e.Bu(this.ii,2);this.kG(this.ii,a,this.Qx);break;case 1736:e.Bu(this.ii,1),this.KM(this.Nj,a),e.Bu(this.ii,2),this.kG(this.ii,a,this.Qx)}this.VD=this.Nj.mb;this.Qq=this.Nj.eb;this.xE=this.Nj.Nb;this.zE=this.Nj.Ob;this.BK()};b.prototype.BK=function(){this.ii.flush();for(var a=0,b=this.tf*this.Pl,e=this.tf,f=d.I.truncate(this.tf/2),h=this.Pl,g=d.I.truncate((2*f+31)/32);8<e;){for(e=0;e<f;e++)for(var k=2*e,n=2*e+1,m=0;m<f;m++){var q=2*m,r=2*m+1,p=q>>4,q=2*(q&15),t=r>>4,r=2*(r&15),x=this.Hg[a+
h*k+p]>>q&3,x=x|this.Hg[a+h*k+t]>>r&3,x=x|this.Hg[a+h*n+p]>>q&3,x=x|this.Hg[a+h*n+t]>>r&3;this.Hg[b+g*e+(m>>4)]|=x<<2*(m&15)}e=f;h=g;a=b;f=d.I.truncate(e/2);g=d.I.truncate((2*f+31)/32);b=a+h*e}};b.prototype.Kk=function(a,b){if(!this.sk.contains(a,b))return 0;var c=this.fz(a),d=this.gz(b);if(0>c||c>=this.tf||0>d||d>=this.tf)return 0;c=this.Hg[this.Pl*d+(c>>4)]>>2*(c&15)&3;return 0==c?0:1==c?1:2};b.prototype.Dn=function(a){if(!a.Ga(this.sk))return 0;var b=this.fz(a.v),e=this.fz(a.B),f=this.gz(a.C);
a=this.gz(a.G);0>b&&(b=0);0>f&&(f=0);e>=this.tf&&(e=this.tf-1);a>=this.tf&&(a=this.tf-1);if(b>e||f>a)return 0;for(var h=Math.max(e-b,1)*Math.max(a-f,1),g=0,k=this.Pl,n=this.tf,m=0;;){if(32>h||16>n){for(h=f;h<=a;h++)for(var q=b;q<=e;q++)if(m=this.Hg[g+k*h+(q>>4)]>>2*(q&15)&3,1<m)return 2;if(0==m)return 0;if(1==m)return 1}g+=k*n;n=d.I.truncate(n/2);k=d.I.truncate((2*n+31)/32);b=d.I.truncate(b/2);f=d.I.truncate(f/2);e=d.I.truncate(e/2);a=d.I.truncate(a/2);h=Math.max(e-b,1)*Math.max(a-f,1)}};b.prototype.cO=
function(){return this.tf*this.Pl};return b}();d.dA=g})(p||(p={}));(function(d){(function(b){b[b.contains=1]="contains";b[b.within=2]="within";b[b.equals=3]="equals";b[b.disjoint=4]="disjoint";b[b.touches=8]="touches";b[b.crosses=16]="crosses";b[b.overlaps=32]="overlaps";b[b.unknown=0]="unknown";b[b.intersects=1073741824]="intersects"})(d.zI||(d.zI={}));var m=function(){function b(){}b.Oa=function(a,c,e,d,h,g,k,n){var f=new b;f.Wt=a;f.Jl=c;f.Oi=e;f.ji=d;f.dE=h;f.tU=g;f.uU=k;f.vU=n;return f};return b}(),
g=function(){function b(){}b.vT=function(a,c,e){if(!b.pQ(a))return!1;var f=d.Ia.Cg(c,a,!1);c=!1;d.Wj.vB(a)&&(c=c||a.jv(f,e));f=a.D();1736!=f&&1607!=f||!d.Wj.tB(a)||0==e||(c=c||a.dj(e));1736!=f&&1607!=f||!d.Wj.uB(a)||0==e||(c=c||a.jJ());return c};b.pQ=function(a){return d.Wj.vB(a)||d.Wj.tB(a)||d.Wj.uB(a)};return b}();d.rT=g;g=function(){function b(){this.Tg=[]}b.qy=function(a,c,e,f,h){var g=a.D(),k=c.D();if(197==g){if(197==k)return b.AQ(a,c,e,f);if(33==k)return 2==f?f=1:1==f&&(f=2),b.Iz(c,a,e,f)}else if(33==
g){if(197==k)return b.Iz(a,c,e,f);if(33==k)return b.eR(a,c,e,f)}if(a.s()||c.s())return 4==f?!0:!1;var n=new d.i;a.o(n);var m=new d.i;c.o(m);var q=new d.i;q.K(n);q.Db(m);e=d.Ia.zd(e,q,!1);if(b.nj(n,m,e))return 4==f?!0:!1;n=!1;d.al.Lc(g)&&(g=new d.Xa(a.description),g.Bc(a,!0),a=g,g=1607);d.al.Lc(k)&&(k=new d.Xa(c.description),k.Bc(c,!0),c=k,k=1607);if(197!=g&&197!=k){if(a.fb()<c.fb()||33==g&&550==k)2==f?f=1:1==f&&(f=2)}else 1736!=g&&197!=k&&(2==f?f=1:1==f&&(f=2));switch(g){case 1736:switch(k){case 1736:n=
b.vr(a,c,e,f,h);break;case 1607:n=b.Vl(a,c,e,f,h);break;case 33:n=b.ur(a,c,e,f,h);break;case 550:n=b.tr(a,c,e,f,h);break;case 197:n=b.xD(a,c,e,f,h)}break;case 1607:switch(k){case 1736:n=b.Vl(c,a,e,f,h);break;case 1607:n=b.ey(a,c,e,f,h);break;case 33:n=b.xr(a,c,e,f,h);break;case 550:n=b.wr(a,c,e,f,h);break;case 197:n=b.WE(a,c,e,f)}break;case 33:switch(k){case 1736:n=b.ur(c,a,e,f,h);break;case 1607:n=b.xr(c,a,e,f,h);break;case 550:n=b.pr(c,a,e,f,h)}break;case 550:switch(k){case 1736:n=b.tr(c,a,e,f,
h);break;case 1607:n=b.wr(c,a,e,f,h);break;case 550:n=b.Wx(a,c,e,f,h);break;case 33:n=b.pr(a,c,e,f,h);break;case 197:n=b.oA(a,c,e,f)}break;case 197:switch(k){case 1736:n=b.xD(c,a,e,f,h);break;case 1607:n=b.WE(c,a,e,f);break;case 550:n=b.oA(c,a,e,f)}}return n};b.AQ=function(a,c,e,f){if(a.s()||c.s())return 4==f?!0:!1;var h=new d.i,g=new d.i,k=new d.i;a.o(h);c.o(g);k.K(h);k.Db(g);a=d.Ia.zd(e,k,!1);switch(f){case 4:return b.nj(h,g,a);case 2:return b.Bz(g,h,a);case 1:return b.Bz(h,g,a);case 3:return b.ye(h,
g,a);case 8:return b.kT(h,g,a);case 32:return b.fT(h,g,a);case 16:return b.cT(h,g,a)}return!1};b.Iz=function(a,c,e,f){if(a.s()||c.s())return 4==f?!0:!1;a=a.w();var h=new d.i,g=new d.i;c.o(h);g.K(a);g.Db(h);c=d.Ia.zd(e,g,!1);switch(f){case 4:return b.ru(a,h,c);case 2:return b.bx(a,h,c);case 1:return b.YL(a,h,c);case 3:return b.KA(a,h,c);case 8:return b.ax(a,h,c)}return!1};b.eR=function(a,c,e,f){if(a.s()||c.s())return 4==f?!0:!1;a=a.w();c=c.w();var h=new d.i;h.K(a);h.Db(c);e=d.Ia.zd(e,h,!1);switch(f){case 4:return b.rM(a,
c,e);case 2:return b.hz(c,a,e);case 1:return b.hz(a,c,e);case 3:return b.dB(a,c,e)}return!1};b.vr=function(a,c,e,d,h){switch(d){case 4:return b.dT(a,c,e);case 2:return b.su(c,a,e,h);case 1:return b.su(a,c,e,h);case 3:return b.TG(a,c,e);case 8:return b.vH(a,c,e);case 32:return b.bH(a,c,e,h)}return!1};b.Vl=function(a,c,e,d,h){switch(d){case 4:return b.gT(a,c,e);case 1:return b.dy(a,c,e,h);case 8:return b.zH(a,c,e,h);case 16:return b.lR(a,c,e)}return!1};b.ur=function(a,c,e,d){switch(d){case 4:return b.YS(a,
c,e);case 1:return b.qQ(a,c,e);case 8:return b.lH(a,c,e)}return!1};b.tr=function(a,c,e,d){switch(d){case 4:return b.OS(a,c,e);case 1:return b.hQ(a,c,e);case 8:return b.iH(a,c,e);case 16:return b.dR(a,c,e)}return!1};b.xD=function(a,c,e,d,h){if(b.ER(a,c,e))return 4==d?!0:!1;if(4==d)return!1;switch(d){case 2:return b.DH(a,c,e);case 1:return b.WP(a,c,e);case 3:return b.OG(a,c,e);case 8:return b.eH(a,c,e,h);case 32:return b.WG(a,c,e,h);case 16:return b.zQ(a,c,e,h)}return!1};b.ey=function(a,c,e,d){switch(d){case 4:return b.EI(a,
c,e);case 2:return b.JE(c,a,e);case 1:return b.JE(a,c,e);case 3:return b.QI(a,c,e);case 8:return b.cF(a,c,e);case 32:return b.$I(a,c,e);case 16:return b.LE(a,c,e)}return!1};b.xr=function(a,c,e,d){switch(d){case 4:return b.yI(a,c,e);case 1:return b.KH(a,c,e);case 8:return b.MG(a,c,e)}return!1};b.wr=function(a,c,e,d){switch(d){case 4:return b.vI(a,c,e);case 1:return b.IH(a,c,e);case 8:return b.fJ(a,c,e);case 16:return b.QH(a,c,e)}return!1};b.WE=function(a,c,e,d){if(b.nI(a,c,e))return 4==d?!0:!1;if(4==
d)return!1;switch(d){case 2:return b.WJ(a,c,e);case 1:return b.GH(a,c,e);case 3:return b.MI(a,c,e);case 8:return b.cJ(a,c,e);case 32:return b.XI(a,c,e);case 16:return b.MH(a,c,e)}return!1};b.Wx=function(a,c,e,d){switch(d){case 4:return b.xI(a,c,e);case 2:return b.kA(c,a,e);case 1:return b.kA(a,c,e);case 3:return b.LI(a,c,e);case 32:return b.bJ(a,c,e)}return!1};b.pr=function(a,c,e,d){switch(d){case 4:return b.lA(a,c,e);case 2:return b.HJ(a,c,e);case 1:return b.PH(a,c,e);case 3:return b.mu(a,c,e)}return!1};
b.oA=function(a,c,e,d){switch(d){case 4:return b.uI(a,c,e);case 2:return b.LG(a,c,e);case 1:return b.LH(a,c,e);case 3:return b.DI(a,c,e);case 8:return b.eJ(a,c,e);case 16:return b.mI(a,c,e)}return!1};b.TG=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);if(!b.ye(f,h,e))return!1;f=b.fc(a,c,!1);if(4==f||1==f||2==f)return!1;if(b.jA(a,c,e))return!0;f=a.$b();h=c.$b();return Math.abs(f-h)>4*Math.max(a.F(),c.F())*e?!1:b.Vv(a,c,e,!0)};b.dT=function(a,c,e){var d=b.fc(a,c,!0);return 4==d?!0:1==d||2==d||
1073741824==d?!1:b.ZC(a,c,e)};b.vH=function(a,c,e){var d=b.fc(a,c,!1);return 4==d||1==d||2==d?!1:b.AE(a,c,e,null)};b.bH=function(a,c,e,d){var f=b.fc(a,c,!1);return 4==f||1==f||2==f?!1:b.wD(a,c,e,d)};b.su=function(a,c,e,f){var h=new d.i,g=new d.i;a.o(h);c.o(g);if(!b.rc(h,g,e))return!1;h=b.fc(a,c,!1);return 4==h||2==h?!1:1==h?!0:b.bC(a,c,e,f)};b.gT=function(a,c,e){var d=b.fc(a,c,!0);return 4==d?!0:1==d||1073741824==d?!1:b.ZC(a,c,e)};b.zH=function(a,c,e,d){var f=b.fc(a,c,!1);return 4==f||1==f?!1:b.CE(a,
c,e,d)};b.lR=function(a,c,e){var d=b.fc(a,c,!1);return 4==d||1==d?!1:b.YC(a,c,e,null)};b.dy=function(a,c,e,f){var h=new d.i,g=new d.i;a.o(h);c.o(g);if(!b.rc(h,g,e))return!1;h=b.fc(a,c,!1);return 4==h?!1:1==h?!0:b.jC(a,c,e,f)};b.YS=function(a,b,e){return 0==d.gd.uD(a,b,e)?!0:!1};b.lH=function(a,c,e){c=c.w();return b.yD(a,c,e)};b.qQ=function(a,c,e){c=c.w();return b.YB(a,c,e)};b.OS=function(a,c,e){var f=b.fc(a,c,!1);if(4==f)return!0;if(1==f)return!1;f=new d.i;a.o(f);f.P(e,e);for(var h=new d.b,g=0;g<
c.F();g++)if(c.w(g,h),f.contains(h)){var k=d.gd.he(a,h,e);if(1==k||2==k)return!1}return!0};b.iH=function(a,b,e){var c=this.fc(a,b,!1);if(4==c||1==c)return!1;c=new d.i;a.o(c);c.P(e,e);var h,g=!1,k;k=a;for(var n=!1,m=0;m<b.F();m++){h=b.Fa(m);if(c.contains(h))if(h=d.gd.he(k,h,e),2==h)g=!0;else if(1==h)return!1;n||(!d.ff.An(a,b.F()-1)||null!=a.pb&&null!=a.pb.Ab?k=a:(k=new d.Ka,a.copyTo(k),k.dj(1)),n=!0)}return g?!0:!1};b.dR=function(a,b,e){var c=this.fc(a,b,!1);if(4==c||1==c)return!1;var h=new d.i,c=
new d.i,g=new d.i;a.o(h);b.o(g);c.K(h);c.P(e,e);var g=h=!1,k,n;n=a;for(var m=!1,q=0;q<b.F();q++){k=b.Fa(q);c.contains(k)?(k=d.gd.he(n,k,e),0==k?g=!0:1==k&&(h=!0)):g=!0;if(h&&g)return!0;m||(!d.ff.An(a,b.F()-1)||null!=a.pb&&null!=a.pb.Ab?n=a:(n=new d.Ka,a.copyTo(n),n.dj(1)),m=!0)}return!1};b.hQ=function(a,b,e){var c=new d.i,h=new d.i;a.o(c);b.o(h);if(!this.rc(c,h,e))return!1;h=this.fc(a,b,!1);if(4==h)return!1;if(1==h)return!0;var h=!1,g,k;k=a;for(var n=!1,m=0;m<b.F();m++){g=b.Fa(m);if(!c.contains(g))return!1;
g=d.gd.he(k,g,e);if(1==g)h=!0;else if(0==g)return!1;n||(!d.ff.An(a,b.F()-1)||null!=a.pb&&null!=a.pb.Ab?k=a:(k=new d.Ka,a.copyTo(k),k.dj(1)),n=!0)}return h};b.OG=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);if(!b.ye(f,h,e))return!1;f=new d.Ka;f.Wc(c,!1);return b.Vv(a,f,e,!0)};b.ER=function(a,c,e){var f=b.fc(a,c,!1);if(4==f)return!0;if(1==f||2==f)return!1;var h=new d.i,f=new d.i;a.o(h);c.o(f);if(b.rc(f,h,e))return!1;h=new d.b;f.Yl(h);c=d.gd.he(a,h,e);if(0!=c)return!1;f.YE(h);c=d.gd.he(a,h,
e);if(0!=c)return!1;f.Zl(h);c=d.gd.he(a,h,e);if(0!=c)return!1;f.aF(h);c=d.gd.he(a,h,e);if(0!=c)return!1;c=a.mc(0);h=new d.i;h.K(f);h.P(e,e);for(var g=0,k=a.F();g<k;g++){var n=c.read(2*g),m=c.read(2*g+1);if(h.contains(n,m))return!1}return!b.cA(a,f,e)};b.eH=function(a,c,e,f){var h=b.fc(a,c,!1);if(4==h||1==h||2==h)return!1;var h=new d.i,g=new d.i;a.o(h);c.o(g);if(b.rc(g,h,e))return!1;if(g.aa()<=e&&g.ba()<=e)return c=c.qq(),b.yD(a,c,e);if(g.aa()<=e||g.ba()<=e)return h=new d.Xa,g=new d.Va,c.uf(0,g),h.df(g),
c.uf(2,g),h.lineTo(g),b.CE(a,h,e,f);h=new d.Ka;h.Wc(c,!1);return b.AE(a,h,e,f)};b.WG=function(a,c,e,f){var h=b.fc(a,c,!1);if(4==h||1==h||2==h)return!1;var h=new d.i,g=new d.i;a.o(h);c.o(g);if(b.rc(g,h,e)||g.aa()<=e||g.ba()<=e)return!1;h=new d.Ka;h.Wc(c,!1);return b.wD(a,h,e,f)};b.DH=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);return b.rc(h,f,e)};b.WP=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);if(!b.rc(f,h,e))return!1;f=b.fc(a,c,!1);if(4==f||2==f)return!1;if(1==f)return!0;if(h.aa()<=
e&&h.ba()<=e)return c=c.qq(),b.YB(a,c,e);if(h.aa()<=e||h.ba()<=e)return h=new d.Xa,f=new d.Va,c.uf(0,f),h.df(f),c.uf(2,f),h.lineTo(f),b.jC(a,h,e,null);h=new d.Ka;h.Wc(c,!1);return b.bC(a,h,e,null)};b.zQ=function(a,c,e,f){var h=new d.i,g=new d.i;a.o(h);c.o(g);if(b.rc(g,h,e)||g.ba()>e&&g.aa()>e||g.ba()<=e&&g.aa()<=e)return!1;h=new d.Xa;g=new d.Va;c.uf(0,g);h.df(g);c.uf(2,g);h.lineTo(g);return b.YC(a,h,e,f)};b.QI=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);return b.ye(f,h,e)&&4!=b.fc(a,c,!1)?
b.jA(a,c,e)?!0:b.Vv(a,c,e,!1):!1};b.EI=function(a,b,e){return 4==this.fc(a,b,!1)?!0:(new d.cl(a,b,e,!0)).next()?!this.ED(a,b,e):!1};b.cF=function(a,c,e){if(4==b.fc(a,c,!1))return!1;var f=new d.qd(0);if(0!=b.Zv(a,c,e,f))return!1;for(var h=new d.pe,g=0;g<f.size;g+=2){var k=f.read(g),n=f.read(g+1);h.zs(k,n)}a=a.Rf();c=c.Rf();a.Pd(c,0,c.F());return b.lu(a,h,e)};b.LE=function(a,c,e){if(4==b.fc(a,c,!1))return!1;var f=new d.qd(0);if(0!=b.Zv(a,c,e,f))return!1;for(var h=new d.pe,g=0;g<f.size;g+=2){var k=f.read(g),
n=f.read(g+1);h.zs(k,n)}a=a.Rf();c=c.Rf();a.Pd(c,0,c.F());return!b.lu(a,h,e)};b.$I=function(a,c,e){return 4==b.fc(a,c,!1)?!1:b.iA(a,c,e)};b.JE=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);return b.rc(f,h,e)&&4!=b.fc(a,c,!1)?b.Wf(c,a,e,!1):!1};b.yI=function(a,c,e){if(4==b.fc(a,c,!1))return!0;c=c.w();return!b.ex(a,c,e)};b.MG=function(a,c,e){if(4==b.fc(a,c,!1))return!1;c=c.w();return b.bw(a,c,e)};b.KH=function(a,c,e){if(4==b.fc(a,c,!1))return!1;c=c.w();return b.bA(a,c,e)};b.vI=function(a,c,
e){return 4==b.fc(a,c,!1)?!0:!b.eA(a,c,e,!1)};b.fJ=function(a,b,e){if(4==this.fc(a,b,!1))return!1;var c=a.Ca(),h=new d.i,g=new d.i,k=new d.i;a.o(h);b.o(g);h.P(e,e);g.P(e,e);k.K(h);k.Ga(g);var n,m,h=null;n=a.pb;null!=n?(m=n.Ab,h=n.nn,null==m&&(m=n=d.Ia.ij(a,k))):m=n=d.Ia.ij(a,k);var q=m.Re(),r=null;null!=h&&(r=h.Re());var p=new d.b,t=new d.b,x=!1,v=e*e,h=new d.Wk(b.F());for(n=0;n<b.F();n++)h.write(n,0);for(n=0;n<b.F();n++)if(b.w(n,p),k.contains(p))if(g.K(p.x,p.y,p.x,p.y),null==r||(r.Ch(g,e),-1!=r.next())){q.Ch(g,
e);for(var C=q.next();-1!=C;C=q.next())if(c.Sb(m.da(C)),C=c.ia(),C.Kb(C.Gd(p,!1),t),d.b.Zb(p,t)<=v){h.write(n,1);x=!0;break}}if(!x)return!1;a=a.Rf();c=new d.pe;g=new d.b;for(n=0;n<b.F();n++)0!=h.read(n)&&(b.w(n,g),c.zs(g.x,g.y));return this.lu(a,c,e)};b.QH=function(a,b,e){if(4==this.fc(a,b,!1))return!1;var c=a.Ca(),h=new d.i,g=new d.i,k=new d.i;a.o(h);b.o(g);h.P(e,e);g.P(e,e);k.K(h);k.Ga(g);var n,m,h=null;n=a.pb;null!=n?(m=n.Ab,h=n.nn,null==m&&(m=n=d.Ia.ij(a,k))):m=n=d.Ia.ij(a,k);var q=m.Re(),r=null;
null!=h&&(r=h.Re());var p=new d.b,t=new d.b,x=!1,v=!1,C=e*e,h=new d.Wk(b.F());for(n=0;n<b.F();n++)h.write(n,0);for(n=0;n<b.F();n++)if(b.w(n,p),k.contains(p))if(g.K(p.x,p.y,p.x,p.y),null!=r&&(r.Ch(g,e),-1==r.next()))v=!0;else{q.Ch(g,e);for(var A=!1,y=q.next();-1!=y;y=q.next())if(c.Sb(m.da(y)),y=c.ia(),y.Kb(y.Gd(p,!1),t),d.b.Zb(p,t)<=C){h.write(n,1);A=x=!0;break}A||(v=!0)}else v=!0;if(!x||!v)return!1;a=a.Rf();c=new d.pe;g=new d.b;for(n=0;n<b.F();n++)0!=h.read(n)&&(b.w(n,g),c.zs(g.x,g.y));return!this.lu(a,
c,e)};b.IH=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);if(!b.rc(f,h,e)||4==b.fc(a,c,!1)||!b.eA(a,c,e,!0))return!1;a=a.Rf();return!b.nA(a,c,e)};b.MI=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);return h.ba()>e&&h.aa()>e?!1:b.ye(f,h,e)};b.nI=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);return b.rc(h,f,e)?!1:!b.cA(a,h,e)};b.cJ=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);if(h.ba()<=e&&h.aa()<=e)return h=c.qq(),b.bw(a,h,e);if(h.ba()<=e||h.aa()<=e)return h=new d.Xa,
f=new d.Va,c.uf(0,f),h.df(f),c.uf(2,f),h.lineTo(f),b.cF(a,h,e);a=a.Ca();c=new d.i;f=new d.i;c.K(h);f.K(h);c.P(-e,-e);f.P(e,e);for(var h=!1,g=new d.i,k=new d.i;a.kb();)for(;a.La();){a.ia().o(g);k.K(c);k.Ga(g);if(!k.s()&&(k.ba()>e||k.aa()>e))return!1;k.K(f);k.Ga(g);k.s()||(h=!0)}return h};b.XI=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);if(b.rc(f,h,e)||b.rc(h,f,e)||b.rc(h,f,e)||h.ba()>e&&h.aa()>e||h.ba()<=e&&h.aa()<=e)return!1;f=new d.Xa;h=new d.Va;c.uf(0,h);f.df(h);c.uf(2,h);f.lineTo(h);
return b.iA(a,f,e)};b.WJ=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);if(!b.rc(h,f,e)||h.ba()<=e&&h.aa()<=e)return!1;if(h.ba()<=e||h.aa()<=e)return b.rc(h,f,e);a=a.Ca();c=new d.i;c.K(h);c.P(-e,-e);for(var h=!1,f=new d.i,g=new d.i;a.kb();)for(;a.La();)a.ia().o(f),c.jl(f)?h=!0:(g.K(c),g.Ga(f),!g.s()&&(g.ba()>e||g.aa()>e)&&(h=!0));return h};b.GH=function(a,c,e){var f=new d.i,h=new d.i;c.o(h);a.o(f);if(!b.rc(f,h,e)||h.ba()>e&&h.aa()>e)return!1;if(h.ba()<=e&&h.aa()<=e)return c=c.qq(),b.bA(a,c,
e);f=new d.Xa;h=new d.Va;c.uf(0,h);f.df(h);c.uf(2,h);f.lineTo(h);return b.Wf(f,a,e,!1)};b.MH=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);if(b.rc(h,f,e)||h.ba()<=e&&h.aa()<=e)return!1;if(h.ba()<=e||h.aa()<=e)return f=new d.Xa,h=new d.Va,c.uf(0,h),f.df(h),c.uf(2,h),f.lineTo(h),b.LE(a,f,e);a=a.Ca();c=new d.i;f=new d.i;f.K(h);c.K(h);f.P(-e,-e);c.P(e,e);for(var g=h=!1,k=new d.i,n=new d.i;a.kb();)for(;a.La();)if(a.ia().o(k),g||c.contains(k)||(g=!0),h||(n.K(f),n.Ga(k),!n.s()&&(n.ba()>e||n.aa()>
e)&&(h=!0)),h&&g)return!0;return!1};b.LI=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);return b.ye(f,h,e)?b.OI(a,c,e)?!0:b.Pw(a,c,e,!1,!0,!1):!1};b.xI=function(a,c,e){return!b.nA(a,c,e)};b.bJ=function(a,c,e){return b.Pw(a,c,e,!1,!1,!0)};b.kA=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);return b.rc(f,h,e)?b.Pw(c,a,e,!0,!1,!1):!1};b.lu=function(a,b,e){e*=e;for(var c=new d.b,h=new d.b,g=0;g<b.F();g++){b.w(g,h);for(var k=!1,n=0;n<a.F();n++)if(a.w(n,c),d.b.Zb(c,h)<=e){k=!0;break}if(!k)return!1}return!0};
b.mu=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);return b.ye(f,h,e)};b.lA=function(a,c,e){c=c.w();return b.or(a,c,e)};b.HJ=function(a,c,e){return b.mu(a,c,e)};b.PH=function(a,c,e){return!b.lA(a,c,e)};b.DI=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);return h.ba()>e||h.aa()>e?!1:b.ye(f,h,e)};b.uI=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);if(b.rc(h,f,e))return!1;c=new d.i;c.K(h);c.P(e,e);e=new d.b;for(h=0;h<a.F();h++)if(a.w(h,e),c.contains(e))return!1;return!0};b.eJ=function(a,
b,e){var c=new d.i,h=new d.i,g=new d.i;b.o(c);if(c.ba()<=e&&c.aa()<=e)return!1;if(c.ba()<=e||c.aa()<=e){b=new d.b;var k=!1;h.K(c);g.K(c);h.P(e,e);c.ba()>e?g.P(0,-e):g.P(-e,0);for(var n=0;n<a.F();n++)if(a.w(n,b),h.contains(b)){if(c.ba()>e){if(b.y>g.C&&b.y<g.G)return!1}else if(b.x>g.v&&b.x<g.B)return!1;k=!0}return k}h.K(c);g.K(c);h.P(e,e);g.P(-e,-e);b=new d.b;k=!1;for(n=0;n<a.F();n++)if(a.w(n,b),h.contains(b)){if(g.jl(b))return!1;k=!0}return k};b.LG=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);
if(!b.rc(h,f,e))return!1;if(h.ba()<=e&&h.aa()<=e)return b.ye(f,h,e);if(h.ba()<=e||h.aa()<=e){c=!1;var f=new d.i,g=new d.i;f.K(h);g.K(h);h.ba()>e?f.P(0,-e):f.P(-e,0);g.P(e,e);for(var k=new d.b,n=0;n<a.F();n++){a.w(n,k);if(!g.contains(k))return!1;h.ba()>e?k.y>f.C&&k.y<f.G&&(c=!0):k.x>f.v&&k.x<f.B&&(c=!0)}return c}c=!1;f=new d.i;g=new d.i;f.K(h);g.K(h);f.P(-e,-e);g.P(e,e);k=new d.b;for(n=0;n<a.F();n++){a.w(n,k);if(!g.contains(k))return!1;f.jl(k)&&(c=!0)}return c};b.LH=function(a,c,e){var f=new d.i,h=
new d.i;a.o(f);c.o(h);if(!b.rc(f,h,e)||h.ba()>e||h.aa()>e)return!1;c=c.qq();return!b.or(a,c,e)};b.mI=function(a,c,e){var f=new d.i,h=new d.i;a.o(f);c.o(h);if(b.rc(h,f,e)||h.ba()<=e&&h.aa()<=e)return!1;if(h.ba()<=e||h.aa()<=e){c=new d.i;f=new d.i;c.K(h);h.ba()>e?c.P(0,-e):c.P(-e,0);f.K(h);f.P(e,e);for(var g=new d.b,k=!1,n=!1,m=0;m<a.F();m++)if(a.w(m,g),k||(h.ba()>e?g.y>c.C&&g.y<c.G&&(k=!0):g.x>c.v&&g.x<c.B&&(k=!0)),n||f.contains(g)||(n=!0),k&&n)return!0;return!1}c=new d.i;f=new d.i;c.K(h);c.P(-e,-e);
f.K(h);f.P(e,e);g=new d.b;n=k=!1;for(m=0;m<a.F();m++)if(a.w(m,g),!k&&c.jl(g)&&(k=!0),n||f.contains(g)||(n=!0),k&&n)return!0;return!1};b.dB=function(a,b,e){return d.b.Zb(a,b)<=e*e?!0:!1};b.rM=function(a,b,e){return d.b.Zb(a,b)>e*e?!0:!1};b.hz=function(a,c,e){return b.dB(a,c,e)};b.KA=function(a,c,e){var f=new d.i;f.K(a);return b.ye(f,c,e)};b.ru=function(a,b,e){var c=new d.i;c.K(b);c.P(e,e);return!c.contains(a)};b.ax=function(a,b,e){if(b.ba()<=e&&b.aa()<=e)return!1;var c=new d.i,h=new d.i;c.K(b);c.P(e,
e);if(!c.contains(a))return!1;if(b.ba()<=e||b.aa()<=e){h.K(b);b.ba()>e?h.P(0,-e):h.P(-e,0);if(b.ba()>e){if(a.y>h.C&&a.y<h.G)return!1}else if(a.x>h.v&&a.x<h.B)return!1;return!0}h.K(b);h.P(-e,-e);return h.jl(a)?!1:!0};b.bx=function(a,b,e){if(b.ba()<=e&&b.aa()<=e)return!0;if(b.ba()<=e||b.aa()<=e){var c=new d.i;c.K(b);b.ba()>e?c.P(0,-e):c.P(-e,0);var h=!1;b.ba()>e?a.y>c.C&&a.y<c.G&&(h=!0):a.x>c.v&&a.x<c.B&&(h=!0);return h}c=new d.i;c.K(b);c.P(-e,-e);return c.jl(a)};b.YL=function(a,c,e){return b.KA(a,
c,e)};b.ye=function(a,c,e){return b.rc(a,c,e)&&b.rc(c,a,e)};b.nj=function(a,b,e){var c=new d.i;c.K(b);c.P(e,e);return!a.jc(c)};b.kT=function(a,c,e){if(a.ba()<=e&&a.aa()<=e){var f=a.Af();return b.ax(f,c,e)}if(c.ba()<=e&&c.aa()<=e)return f=c.Af(),b.ax(f,a,e);a.ba()>e&&a.aa()>e&&(c.ba()<=e||c.aa()<=e)?f=c:(f=a,a=c);if(f.ba()<=e||f.aa()<=e){if(a.ba()<=e||a.aa()<=e){c=new d.yb;var h=new d.yb,g=[0,0],k=[0,0],n=new d.b;f.Yl(n);c.ed(n);f.Zl(n);c.vd(n);a.Yl(n);h.ed(n);a.Zl(n);h.vd(n);c.Ga(h,null,g,k,e);return 1!=
c.Ga(h,null,null,null,e)?!1:0==g[0]||1==g[1]||0==k[0]||1==k[1]}c=new d.i;h=new d.i;c.K(a);c.P(-e,-e);h.K(c);h.Ga(f);return!h.s()&&(h.ba()>e||h.aa()>e)?!1:!0}a.P(e,e);h=new d.i;h.K(f);h.Ga(a);return h.s()||!h.s()&&h.ba()>e&&h.aa()>e?!1:!0};b.fT=function(a,c,e){if(b.rc(a,c,e)||b.rc(c,a,e)||a.ba()<=e&&a.aa()<=e||c.ba()<=e&&c.aa()<=e)return!1;if(a.ba()<=e||a.aa()<=e){if(c.ba()>e&&c.aa()>e)return!1;var f=new d.yb,h=new d.yb,g=[0,0],k=[0,0],n=new d.b;a.Yl(n);f.ed(n);a.Zl(n);f.vd(n);c.Yl(n);h.ed(n);c.Zl(n);
h.vd(n);f.Ga(h,null,g,k,e);return 2!=f.Ga(h,null,null,null,e)?!1:(0<g[0]||1>g[1])&&(0<k[0]||1>k[1])}if(c.ba()<=e||c.aa()<=e)return!1;f=new d.i;f.K(a);f.Ga(c);return f.s()||f.ba()<=e||f.aa()<=e?!1:!0};b.Bz=function(a,c,e){if(!b.rc(a,c,e))return!1;if(a.ba()<=e&&a.aa()<=e)return a=a.Af(),b.bx(a,c,e);if(c.ba()<=e&&c.aa()<=e)return c=c.Af(),b.bx(c,a,e);if(a.ba()<=e||a.aa()<=e)return b.rc(a,c,e);if(c.ba()<=e||c.aa()<=e){var f=new d.i;f.K(a);f.P(-e,-e);if(f.jl(c))return!0;a=new d.i;a.K(f);a.Ga(c);return a.s()||
a.ba()<=e&&a.aa()<=e?!1:!0}return b.rc(a,c,e)};b.cT=function(a,c,e){if(b.rc(a,c,e)||b.rc(c,a,e)||a.ba()<=e&&a.aa()<=e||c.ba()<=e&&c.aa()<=e||c.ba()>e&&c.aa()>e&&a.ba()>e&&a.aa()>e)return!1;var f;a.ba()>e&&a.aa()>e?f=c:(f=a,a=c);if(a.ba()>e&&a.aa()>e){c=new d.i;var h=new d.i;h.K(a);h.P(-e,-e);c.K(h);c.Ga(f);return c.s()||c.ba()<=e&&c.aa()<=e?!1:!0}c=new d.yb;var h=new d.yb,g=[0,0],k=[0,0],n=new d.b;f.Yl(n);c.ed(n);f.Zl(n);c.vd(n);a.Yl(n);h.ed(n);a.Zl(n);h.vd(n);c.Ga(h,null,g,k,e);return 1!=c.Ga(h,
null,null,null,e)?!1:0<g[0]&&1>g[1]&&0<k[0]&&1>k[1]};b.ZC=function(a,b,e){var c,h,g=new d.i,k=new d.i,n=new d.cl(a,b,e,!0);if(!n.next())return!0;if(this.ED(a,b,e))return!1;var m;m=a;var q;q=null;1736==b.D()&&(q=b);var r=!1,p=!1;do{c=n.jk();h=n.ek();h=b.Fa(b.Ea(h));g.K(n.Fw());g.P(e,e);if(g.contains(h)&&(h=d.gd.he(m,h,0),0!=h)||1736==b.D()&&(c=a.Fa(a.Ea(c)),k.K(n.jw()),k.P(e,e),k.contains(c)&&(h=d.gd.he(q,c,0),0!=h)))return!1;r||(!d.ff.An(a,b.ea()-1)||null!=a.pb&&null!=a.pb.Ab?m=a:(m=new d.Ka,a.copyTo(m),
m.dj(1)),r=!0);1736!=b.D()||p||(p=b,!d.ff.An(p,a.ea()-1)||null!=b.pb&&null!=b.pb.Ab?q=b:(q=new d.Ka,p.copyTo(q),q.dj(1)),p=!0)}while(n.next());return!0};b.rc=function(a,b,e){var c=new d.i;c.K(a);c.P(e,e);return c.contains(b)};b.lm=function(a,b,e){var c=new d.i;c.K(b);c.P(e,e);b=new d.b;a.Yl(b);if(!c.contains(b))return!0;a.YE(b);if(!c.contains(b))return!0;a.aF(b);if(!c.contains(b))return!0;a.Zl(b);return c.contains(b)?!1:!0};b.jA=function(a,b,e){if(a.ea()!=b.ea()||a.F()!=b.F())return!1;var c=new d.b,
h=new d.b,g=!0;e*=e;for(var k=0;k<a.ea();k++){if(a.Dc(k)!=b.Dc(k)){g=!1;break}for(var n=a.Ea(k);n<b.Dc(k);n++)if(a.w(n,c),b.w(n,h),d.b.Zb(c,h)>e){g=!1;break}if(!g)break}return g?!0:!1};b.OI=function(a,b,e){if(a.F()!=b.F())return!1;var c=new d.b,h=new d.b,g=!0;e*=e;for(var k=0;k<a.F();k++)if(a.w(k,c),b.w(k,h),d.b.Zb(c,h)>e){g=!1;break}return g?!0:!1};b.Pw=function(a,b,e,f,h,g){var c=!1,l;a.F()>b.F()?(f&&(f=!1,c=!0),l=b):(l=a,a=b);b=null;if(h||g||c){b=new d.Wk(a.F());for(var m=0;m<a.F();m++)b.write(m,
0)}var m=new d.i,q=new d.i,r=new d.i;l.o(m);a.o(q);m.P(e,e);q.P(e,e);r.K(m);r.Ga(q);for(var q=new d.b,p=new d.b,t=!0,x=d.Ia.oB(a,r),v=x.Re(),C=e*e,A=0;A<l.F();A++)if(l.w(A,q),r.contains(q)){var y=!1;m.K(q.x,q.y,q.x,q.y);v.Ch(m,e);for(var z=v.next();-1!=z&&!(z=x.da(z),a.w(z,p),d.b.Zb(q,p)<=C&&((h||g||c)&&b.write(z,1),y=!0,f));z=v.next());if(!y&&(t=!1,h||f))return!1}else{if(h||f)return!1;t=!1}if(g&&t)return!1;if(f)return!0;for(m=0;m<a.F();m++)if(1==b.read(m)){if(g)return!0}else if(h||c)return!1;return g?
!1:!0};b.nA=function(a,b,e){var c;a.F()>b.F()?c=b:(c=a,a=b);b=new d.i;var h=new d.i,g=new d.i;c.o(b);a.o(h);b.P(e,e);h.P(e,e);g.K(b);g.Ga(h);for(var h=new d.b,k=new d.b,n=e*e,m=d.Ia.oB(a,g),q=m.Re(),r=0;r<c.F();r++)if(c.w(r,h),g.contains(h)){b.K(h.x,h.y,h.x,h.y);q.Ch(b,e);for(var p=q.next();-1!=p;p=q.next())if(a.w(m.da(p),k),d.b.Zb(h,k)<=n)return!0}return!1};b.Vv=function(a,c,e,d){return b.Wf(a,c,e,d)&&b.Wf(c,a,e,d)};b.Wf=function(a,c,e,f){function h(a,b){return r.IB(a,b)}var g=!0,k=[0,0],n=[0,0],
u=0,q=new d.ga(0),r=new b,p,t=new d.i,x=new d.i,v=new d.i;a.o(t);c.o(x);t.P(e,e);x.P(e,e);v.K(t);v.Ga(x);a=a.Ca();var x=c.Ca(),C=null,A=C=null,y=c.pb;null!=y?(C=y.Ab,A=y.nn,null==C&&(C=d.Ia.ij(c,v))):C=d.Ia.ij(c,v);c=C.Re();y=null;for(null!=A&&(y=A.Re());a.kb();)for(;a.La();){var z=!1,B=a.ia();B.o(t);if(!t.jc(v))return!1;if(null!=y&&(y.Ch(t,e),-1==y.next()))return g=!1;A=B.$b();c.Fn(B,e);for(p=c.next();-1!=p;p=c.next()){x.Sb(C.da(p));p=x.ia();var D=B.Ga(p,null,k,n,e);if(2==D&&(!f||n[0]<=n[1])){var D=
k[0],E=k[1],G=n[0],F=n[1];if(D*A<=e&&(1-E)*A<=e){z=!0;u=0;q.resize(0);r.Tg.length=0;for(var H=a.Jb(),G=!0;G;){if(a.La()){B=a.ia();A=B.$b();D=B.Ga(p,null,k,n,e);if(2==D&&(!f||n[0]<=n[1])&&(D=k[0],E=k[1],D*A<=e&&(1-E)*A<=e)){H=a.Jb();continue}if(x.La()&&(p=x.ia(),D=B.Ga(p,null,k,n,e),2==D&&(!f||n[0]<=n[1])&&(D=k[0],E=k[1],D*A<=e&&(1-E)*A<=e))){H=a.Jb();continue}}G=!1}H!=a.Jb()&&(a.Sb(H),a.ia());break}else H=a.Jb(),p=m.Oa(H,a.Qa,D,E,x.Jb(),x.Qa,G,F),r.Tg.push(p),q.add(q.size)}}if(!z){if(u==r.Tg.length)return!1;
1<q.size-u&&q.xd(u,q.size,h);for(z=0;u<r.Tg.length;u++)if(p=r.Tg[q.get(u)],!(p.Oi<z&&p.ji<z)){if(A*(p.Oi-z)>e)return!1;z=p.ji;if(A*(1-z)<=e||1==z)break}if(A*(1-z)>e)return!1;u=0;q.resize(0);r.Tg.length=0}}return g};b.iA=function(a,c,e){if(1>b.Zv(a,c,e,null))return!1;var f=new d.i,h=new d.i;a.o(f);c.o(h);var g=b.lm(f,h,e),f=b.lm(h,f,e);return g&&f?!0:g&&!f?!b.Wf(c,a,e,!1):f&&!g?!b.Wf(a,c,e,!1):!b.Wf(a,c,e,!1)&&!b.Wf(c,a,e,!1)};b.Zv=function(a,c,e,f){function h(a,b){return x.IB(a,b)}var g,k;a.Iw()>
c.Iw()?(g=c,k=a):(g=a,k=c);a=g.Ca();c=k.Ca();var n=[0,0],u=[0,0],q=-1,r=0,p,t=new d.ga(0),x=new b,v,C=new d.i,A=new d.i,y=new d.i;g.o(C);k.o(A);C.P(e,e);A.P(e,e);y.K(C);y.Ga(A);g=null;null!=f&&(g=new d.b);p=A=A=null;var z=k.pb;null!=z?(A=z.Ab,p=z.nn,null==A&&(A=d.Ia.ij(k,y))):A=d.Ia.ij(k,y);k=A.Re();z=null;for(null!=p&&(z=p.Re());a.kb();)for(p=0;a.La();){var B=a.ia();B.o(C);if(C.jc(y)&&(null==z||(z.Ch(C,e),-1!=z.next()))){var D=B.$b();k.Fn(B,e);for(var E=k.next();-1!=E;E=k.next()){var G=A.da(E);c.Sb(G);
v=c.ia();var F=v.$b(),H=B.Ga(v,null,n,u,e);if(0<H){var E=n[0],q=u[0],K=2==H?n[1]:NaN,L=2==H?u[1]:NaN;if(2==H){if(D*(K-E)>e)return q=1;var O=D*(K-E);if(c.La()){v=c.ia();H=B.Ga(v,null,n,null,e);if(2==H){var H=n[0],J=n[1],H=D*(J-H);if(O+H>e)return q=1}c.Sb(G);c.ia()}if(!c.wl()){c.oi();v=c.oi();H=B.Ga(v,null,n,null,e);if(2==H&&(H=n[0],J=n[1],H=D*(J-H),O+H>e))return q=1;c.Sb(G);c.ia()}if(a.La()){G=a.Jb();B=a.ia();H=B.Ga(v,null,n,null,e);if(2==H&&(H=n[0],J=n[1],H=D*(J-H),O+H>e))return q=1;a.Sb(G);a.ia()}if(!a.wl()){G=
a.Jb();a.oi();B=a.oi();H=B.Ga(v,null,n,null,e);if(2==H&&(H=n[0],J=n[1],H=F*(J-H),O+H>e))return q=1;a.Sb(G);a.ia()}v=m.Oa(a.Jb(),a.Qa,E,K,c.Jb(),c.Qa,q,L);x.Tg.push(v);t.add(t.size)}q=0;null!=f&&(B.Kb(E,g),f.add(g.x),f.add(g.y))}}if(r<x.Tg.length){t.xd(r,t.size,h);B=0;for(E=x.Tg[t.get(r)].Jl;r<x.Tg.length;r++)if(v=x.Tg[t.get(r)],!(v.Oi<B&&v.ji<B))if(D*(v.Oi-B)>e)p=D*(v.ji-v.Oi),B=v.ji,E=v.Jl;else{v.Jl!=E?(p=D*(v.ji-v.Oi),E=v.Jl):p+=D*(v.ji-v.Oi);if(p>e)return q=1;B=v.ji;if(1==B)break}D*(1-B)>e&&(p=
0);r=0;t.resize(0);x.Tg.length=0}}}return q};b.ED=function(a,b,e){var c=a.Ca(),h=b.Ca();for(a=new d.cl(a,b,e,!1);a.next();){b=a.jk();var g=a.ek();c.Sb(b);h.Sb(g);b=c.ia();if(0<h.ia().Ga(b,null,null,null,e))return!0}return!1};b.eA=function(a,b,e,f){var c=a.Ca(),g=new d.i,k=new d.i,n=new d.i;a.o(g);b.o(k);g.P(e,e);g.contains(k);k.P(e,e);n.K(g);n.Ga(k);g=a.pb;null!=g?(g=g.Ab,null==g&&(g=d.Ia.ij(a,n))):g=d.Ia.ij(a,n);a=g.Re();for(var m=new d.b,q=new d.b,r=e*e,p=0;p<b.F();p++)if(b.w(p,m),n.contains(m)){k.K(m.x,
m.y,m.x,m.y);a.Ch(k,e);for(var t=!1,x=a.next();-1!=x;x=a.next())if(c.Sb(g.da(x)),x=c.ia(),x.Kb(x.Gd(m,!1),q),d.b.Zb(q,m)<=r){t=!0;break}if(f){if(!t)return!1}else if(t)return!0}return f?!0:!1};b.ex=function(a,b,e){var c=new d.b,h=e*e,g=a.Ca();a=a.pb;if(null!=a&&(a=a.Ab,null!=a)){var k=new d.i;k.K(b);e=a.xw(k,e);for(k=e.next();-1!=k;k=e.next())if(g.Sb(a.da(k)),g.La()){var k=g.ia(),n=k.Gd(b,!1);k.Kb(n,c);if(d.b.Zb(b,c)<=h)return!0}return!1}for(a=new d.i;g.kb();)for(;g.La();)if(k=g.ia(),k.o(a),a.P(e,
e),a.contains(b)&&(n=k.Gd(b,!1),k.Kb(n,c),d.b.Zb(b,c)<=h))return!0;return!1};b.bA=function(a,c,e){return b.ex(a,c,e)&&!b.bw(a,c,e)};b.bw=function(a,c,e){a=a.Rf();return!b.or(a,c,e)};b.cA=function(a,b,e){if(a.Hm()){var c=new d.yb(b.v,b.C,b.v,b.G),h=new d.yb(b.v,b.G,b.B,b.G),g=new d.yb(b.B,b.G,b.B,b.C);b=new d.yb(b.B,b.C,b.v,b.C);for(a=a.Ca();a.kb();)for(;a.La();){var k=a.ia();if(k.jc(c,e)||k.jc(h,e)||k.jc(g,e)||k.jc(b,e))return!0}}else{c=new d.i;c.K(b);c.P(e,e);e=a.mc(0);h=new d.b;g=new d.b;b=new d.b;
for(var k=new d.b,n=0,m=a.ea();n<m;n++)for(var q=!0,r=a.Ea(n),p=a.Dc(n);r<p;r++)if(q)e.ec(2*r,g),q=!1;else{e.ec(2*r,h);b.J(g);k.J(h);if(0!=c.Nv(b,k))return!0;g.J(h)}}return!1};b.fc=function(a,c,e){var f=a.D(),h=c.D();if(d.T.Th(f)){var g=a.pb;if(null!=g&&(g=g.hi,null!=g))if(33==h){var k=c.w(),k=g.Kk(k.x,k.y);if(1==k)return 1;if(0==k)return 4}else{k=new d.i;c.o(k);k=g.Dn(k);if(1==k)return 1;if(0==k)return 4;if(e&&d.T.Th(h)&&b.zz(c,g))return 1073741824}}if(d.T.Th(h)&&(g=c.pb,null!=g&&(g=g.hi,null!=g)))if(33==
f){a=a.w();k=g.Kk(a.x,a.y);if(1==k)return 2;if(0==k)return 4}else{c=new d.i;a.o(c);k=g.Dn(c);if(1==k)return 2;if(0==k)return 4;if(e&&d.T.Th(f)&&b.zz(a,g))return 1073741824}return 0};b.zz=function(a,b){for(var c=a.F(),f=new d.b,h=0;h<c;h++)if(a.w(h,f),1==b.Kk(f.x,f.y))return!0;return!1};b.AE=function(a,b,e,f){for(var c=1<=a.rj(0)&&1<=b.rj(0),g=a.Ca(),k=b.Ca(),n=[0,0],m=[0,0],q=new d.cl(a,b,e,!1),r=!1;q.next();){var p=q.jk(),t=q.ek();g.Sb(p);k.Sb(t);p=g.ia();t=k.ia().Ga(p,null,m,n,e);if(2==t){r=n[0];
t=n[1];p=p.$b();if(c&&(t-r)*p>e)return!1;r=!0}else if(0!=t){r=n[0];p=m[0];if(0<r&&1>r&&0<p&&1>p)return!1;r=!0}}if(!r)return!1;g=new d.i;k=new d.i;c=new d.i;a.o(g);b.o(k);g.P(1E3*e,1E3*e);k.P(1E3*e,1E3*e);c.K(g);c.Ga(k);return 10<a.F()&&(a=d.Ed.clip(a,c,e,0),a.s())||10<b.F()&&(b=d.Ed.clip(b,c,e,0),b.s())?!1:d.el.vr(a,b,e,"F********",f)};b.wD=function(a,c,e,f){var h=1<=a.rj(0)&&1<=c.rj(0),g=new d.i,k=new d.i,n=new d.i;a.o(g);c.o(k);for(var m=!1,q=b.lm(g,k,e),r=b.lm(k,g,e),p=a.Ca(),t=c.Ca(),x=[0,0],
v=[0,0],C=new d.cl(a,c,e,!1);C.next();){var A=C.jk(),y=C.ek();p.Sb(A);t.Sb(y);y=p.ia();A=t.ia().Ga(y,null,v,x,e);if(2==A){var A=x[0],z=x[1],y=y.$b();if(h&&(z-A)*y>e&&(m=!0,q&&r))return!0}else if(0!=A&&(A=x[0],y=v[0],0<A&&1>A&&0<y&&1>y))return!0}h=new d.i;p=new d.i;h.K(g);h.P(1E3*e,1E3*e);p.K(k);p.P(1E3*e,1E3*e);n.K(h);n.Ga(p);g="";g=m?g+"**":g+"T*";if(q){if(10<c.F()&&(c=d.Ed.clip(c,n,e,0),c.s()))return!1;g+="****"}else g+="T***";if(r){if(10<a.F()&&(a=d.Ed.clip(a,n,e,0),a.s()))return!1;g+="***"}else g+=
"T**";return d.el.vr(a,c,e,g.toString(),f)};b.bC=function(a,c,e,f){var h=[!1],g=b.wB(a,c,e,h);if(h[0])return g;h=new d.i;c.o(h);h.P(1E3*e,1E3*e);return 10<a.F()&&(a=d.Ed.clip(a,h,e,0),a.s())?!1:d.el.su(a,c,e,f)};b.wB=function(a,b,e,f){f[0]=!1;for(var c=a.Ca(),g=b.Ca(),k=[0,0],n=[0,0],m=new d.cl(a,b,e,!1),q=!1;m.next();){var r=m.jk(),p=m.ek();c.Sb(r,-1);g.Sb(p,-1);r=c.ia();r=g.ia().Ga(r,null,n,k,e);if(0!=r&&(q=!0,1==r&&(r=k[0],p=n[0],0<r&&1>r&&0<p&&1>p)))return f[0]=!0,!1}if(!q){f[0]=!0;k=new d.i;
a.o(k);k.P(e,e);m=a;q=!1;n=new d.i;f=0;for(c=b.ea();f<c;f++)if(0<b.Ha(f)){b.Ti(f,n);if(k.jc(n)){if(g=b.Fa(b.Ea(f)),g=d.ff.xl(m,g,0),0==g)return!1}else return!1;q||(!d.ff.An(a,b.ea()-1)||null!=a.pb&&null!=a.pb.Ab?m=a:(g=new d.Ka,a.copyTo(g),g.dj(1),m=g),q=!0)}if(1==a.ea()||1607==b.D())return!0;k=new d.i;b.o(k);k.P(e,e);n=b;m=!1;e=new d.i;f=0;for(c=a.ea();f<c;f++)if(0<a.Ha(f)){a.Ti(f,e);if(k.jc(e)&&(g=a.Fa(a.Ea(f)),g=d.ff.xl(n,g,0),1==g))return!1;m||(!d.ff.An(b,a.ea()-1)||null!=b.pb&&null!=b.pb.Ab?
n=b:(g=new d.Ka,b.copyTo(g),g.dj(1),n=g),m=!0)}return!0}return!1};b.CE=function(a,b,e,f){for(var c=a.Ca(),g=b.Ca(),k=[0,0],n=[0,0],m=new d.cl(a,b,e,!1),q=!1;m.next();){var r=m.jk(),p=m.ek();c.Sb(r);g.Sb(p);r=c.ia();r=g.ia().Ga(r,null,n,k,e);if(2==r)q=!0;else if(0!=r){q=k[0];r=n[0];if(0<q&&1>q&&0<r&&1>r)return!1;q=!0}}if(!q)return!1;g=new d.i;k=new d.i;c=new d.i;a.o(g);b.o(k);g.P(1E3*e,1E3*e);k.P(1E3*e,1E3*e);c.K(g);c.Ga(k);return 10<a.F()&&(a=d.Ed.clip(a,c,e,0),a.s())||10<b.F()&&(b=d.Ed.clip(b,c,
e,0),b.s())?!1:d.el.Vl(a,b,e,"F********",f)};b.YC=function(a,c,e,f){for(var h=a.Ca(),g=c.Ca(),k=[0,0],n=[0,0],m=new d.cl(a,c,e,!1),q=!1;m.next();){var r=m.jk(),p=m.ek();h.Sb(r);g.Sb(p);r=h.ia();r=g.ia().Ga(r,null,n,k,e);if(2==r)q=!0;else if(0!=r){q=k[0];r=n[0];if(0<q&&1>q&&0<r&&1>r)return!0;q=!0}}if(!q)return!1;g=new d.i;k=new d.i;n=new d.i;m=new d.i;h=new d.i;a.o(g);c.o(k);return b.lm(k,g,e)?(n.K(g),n.P(1E3*e,1E3*e),m.K(k),m.P(1E3*e,1E3*e),h.K(n),h.Ga(m),10<a.F()&&(a=d.Ed.clip(a,h,e,0),a.s())||10<
c.F()&&(c=d.Ed.clip(c,h,e,0),c.s())?!1:e=d.el.Vl(a,c,e,"T********",f)):e=d.el.Vl(a,c,e,"T*****T**",f)};b.jC=function(a,c,e,f){var h=[!1],g=b.wB(a,c,e,h);if(h[0])return g;h=new d.i;c.o(h);h.P(1E3*e,1E3*e);return 10<a.F()&&(a=d.Ed.clip(a,h,e,0),a.s())?!1:d.el.dy(a,c,e,f)};b.YB=function(a,b,e){return 1==d.gd.he(a,b,e)?!0:!1};b.yD=function(a,b,e){return 2==d.gd.he(a,b,e)?!0:!1};b.or=function(a,b,e){var c=new d.b;e*=e;for(var h=0;h<a.F();h++)if(a.w(h,c),d.b.Zb(c,b)<=e)return!1;return!0};b.prototype.IB=
function(a,b){var c=this.Tg[a],d=this.Tg[b];return c.Jl<d.Jl||c.Jl==d.Jl&&(c.Wt<d.Wt||c.Wt==d.Wt&&(c.Oi<d.Oi||c.Oi==d.Oi&&(c.ji<d.ji||c.ji==d.ji&&c.dE<d.dE)))?-1:1};return b}();d.hd=g})(p||(p={}));(function(d){var m;(function(b){b[b.InteriorInterior=0]="InteriorInterior";b[b.InteriorBoundary=1]="InteriorBoundary";b[b.InteriorExterior=2]="InteriorExterior";b[b.BoundaryInterior=3]="BoundaryInterior";b[b.BoundaryBoundary=4]="BoundaryBoundary";b[b.BoundaryExterior=5]="BoundaryExterior";b[b.ExteriorInterior=
6]="ExteriorInterior";b[b.ExteriorBoundary=7]="ExteriorBoundary";b[b.ExteriorExterior=8]="ExteriorExterior"})(m||(m={}));var g;(function(b){b[b.AreaAreaPredicates=0]="AreaAreaPredicates";b[b.AreaLinePredicates=1]="AreaLinePredicates";b[b.LineLinePredicates=2]="LineLinePredicates";b[b.AreaPointPredicates=3]="AreaPointPredicates";b[b.LinePointPredicates=4]="LinePointPredicates";b[b.PointPointPredicates=5]="PointPointPredicates"})(g||(g={}));m=function(){function b(){this.Xd=0;this.h=new d.gs;this.A=
[0,0,0,0,0,0,0,0,0];this.Ta=[0,0,0,0,0,0,0,0,0];this.Y=[!1,!1,!1,!1,!1,!1,!1,!1,!1];this.Nl=this.$t=-1}b.py=function(a,b,e,f,h){if(9!=f.length)throw d.g.ra("relation string length has to be 9 characters");for(var c=0;9>c;c++){var g=f.charAt(c);if("*"!=g&&"T"!=g&&"F"!=g&&"0"!=g&&"1"!=g&&"2"!=g)throw d.g.ra("relation string");}c=this.YN(f,a.fb(),b.fb());if(0!=c)return d.hd.qy(a,b,e,c,h);c=new d.i;a.o(c);g=new d.i;b.o(g);var n=new d.i;n.K(c);n.Db(g);e=d.Ia.zd(e,n,!1);a=this.NB(a,e);b=this.NB(b,e);if(a.s()||
b.s())return this.rR(a,b,f);c=b.D();g=!1;switch(a.D()){case 1736:switch(c){case 1736:g=this.vr(a,b,e,f,h);break;case 1607:g=this.Vl(a,b,e,f,h);break;case 33:g=this.ur(a,b,e,f,h);break;case 550:g=this.tr(a,b,e,f,h)}break;case 1607:switch(c){case 1736:g=this.Vl(b,a,e,this.Lo(f),h);break;case 1607:g=this.ey(a,b,e,f,h);break;case 33:g=this.xr(a,b,e,f,h);break;case 550:g=this.wr(a,b,e,f,h)}break;case 33:switch(c){case 1736:g=this.ur(b,a,e,this.Lo(f),h);break;case 1607:g=this.xr(b,a,e,this.Lo(f),h);break;
case 33:g=this.KQ(a,b,e,f);break;case 550:g=this.pr(b,a,e,this.Lo(f),h)}break;case 550:switch(c){case 1736:g=this.tr(b,a,e,this.Lo(f),h);break;case 1607:g=this.wr(b,a,e,this.Lo(f),h);break;case 550:g=this.Wx(a,b,e,f,h);break;case 33:g=this.pr(a,b,e,f,h)}break;default:g=!1}return g};b.vr=function(a,c,e,f,h){var g=new b;g.pi();g.si(f);g.vF();var k=new d.i,n=new d.i;a.o(k);c.o(n);f=!1;d.hd.nj(k,n,e)&&(g.Bs(a,c),f=!0);f||(k=d.hd.fc(a,c,!1),4==k?(g.Bs(a,c),f=!0):1==k?(g.Bv(c),f=!0):2==k&&(g.$A(a),f=!0));
f||(f=new d.fd,a=f.Eb(a),c=f.Eb(c),g.In(f,e,h),g.so(a,c),g.h.xg());return b.Mf(g.A,g.Hc)};b.su=function(a,c,e,f){var h=new b;h.pi();h.si("T*****F**");h.vF();var g=new d.i,k=new d.i;a.o(g);c.o(k);var n=!1;d.hd.nj(g,k,e)&&(h.Bs(a,c),n=!0);n||(g=d.hd.fc(a,c,!1),4==g?(h.Bs(a,c),n=!0):1==g?(h.Bv(c),n=!0):2==g&&(h.$A(a),n=!0));if(n)return g=this.Mf(h.A,h.Hc);n=new d.fd;a=n.Eb(a);g=n.Eb(c);d.aj.$(n,e,f,!1);e=n.hf(g).Rf();n.xo(0,!0,!0);d.mm.$(n,a,-1,!1,f);if(0==n.F(a))return!1;d.mm.$(n,g,-1,!1,f);h.Op(n,
f);c=0==n.F(g);if(!c&&(h.so(a,g),h.h.xg(),g=this.Mf(h.A,h.Hc),!g))return g;a=n.hf(a);n=new d.fd;a=n.Eb(a);g=n.Eb(e);h.Op(n,f);h.Xd=0;h.pi();h.si(c?"T*****F**":"******F**");h.wy();h.so(a,g);h.h.xg();return g=this.Mf(h.A,h.Hc)};b.Vl=function(a,c,e,f,h){var g=new b;g.pi();g.si(f);g.wy();var k=new d.i,n=new d.i;a.o(k);c.o(n);f=!1;d.hd.nj(k,n,e)&&(g.Cs(a,c),f=!0);f||(k=d.hd.fc(a,c,!1),4==k?(g.Cs(a,c),f=!0):1==k&&(g.aB(c),f=!0));f||(f=new d.fd,a=f.Eb(a),c=f.Eb(c),g.In(f,e,h),g.Jg=g.h.uo(),b.es(c,g.h,g.Jg),
g.so(a,c),g.h.vo(g.Jg),g.h.xg());return b.Mf(g.A,g.Hc)};b.dy=function(a,c,e,f){var h=new b;h.pi();h.si("T*****F**");h.wy();var g=new d.i,k=new d.i;a.o(g);c.o(k);var n=!1;d.hd.nj(g,k,e)&&(h.Cs(a,c),n=!0);n||(g=d.hd.fc(a,c,!1),4==g?(h.Cs(a,c),n=!0):1==g&&(h.aB(c),n=!0));if(n)return e=this.Mf(h.A,h.Hc);n=new d.fd;a=n.Eb(a);c=n.Eb(c);h.In(n,e,f);if(0==n.F(a))return!1;h.so(a,c);h.h.xg();return e=this.Mf(h.A,h.Hc)};b.tr=function(a,c,e,f,h){var g=new b;g.pi();g.si(f);g.wF();var k=new d.i,n=new d.i;a.o(k);
c.o(n);f=!1;d.hd.nj(k,n,e)&&(g.Ds(a),f=!0);f||(k=d.hd.fc(a,c,!1),4==k?(g.Ds(a),f=!0):1==k&&(g.cK(),f=!0));f||(f=new d.fd,a=f.Eb(a),c=f.Eb(c),g.In(f,e,h),g.Pv(a,c),g.h.xg());return b.Mf(g.A,g.Hc)};b.ey=function(a,c,e,f,h){var g=new b;g.pi();g.si(f);g.ZR();f=new d.i;var k=new d.i;a.o(f);c.o(k);var n=!1;d.hd.nj(f,k,e)&&(g.CD(a,c),n=!0);n||4!=d.hd.fc(a,c,!1)||(g.CD(a,c),n=!0);n||(f=new d.fd,a=f.Eb(a),c=f.Eb(c),g.In(f,e,h),g.ph=g.h.uo(),g.Jg=g.h.uo(),b.es(a,g.h,g.ph),b.es(c,g.h,g.Jg),g.so(a,c),g.h.vo(g.ph),
g.h.vo(g.Jg),g.h.xg());return b.Mf(g.A,g.Hc)};b.wr=function(a,c,e,f,h){var g=new b;g.pi();g.si(f);g.KF();f=new d.i;var k=new d.i;a.o(f);c.o(k);var n=!1;d.hd.nj(f,k,e)&&(g.dx(a),n=!0);n||4!=d.hd.fc(a,c,!1)||(g.dx(a),n=!0);n||(f=new d.fd,a=f.Eb(a),c=f.Eb(c),g.In(f,e,h),g.ph=g.h.uo(),b.es(a,g.h,g.ph),g.Pv(a,c),g.h.vo(g.ph),g.h.xg());return b.Mf(g.A,g.Hc)};b.Wx=function(a,c,e,f,h){var g=new b;g.pi();g.si(f);g.PF();f=new d.i;var k=new d.i;a.o(f);c.o(k);var n=!1;d.hd.nj(f,k,e)&&(g.PE(),n=!0);n||(f=new d.fd,
a=f.Eb(a),c=f.Eb(c),g.In(f,e,h),g.Pv(a,c),g.h.xg());return b.Mf(g.A,g.Hc)};b.ur=function(a,c,e,f){var h=new b;h.pi();h.si(f);h.wF();var g=new d.i;a.o(g);c=c.w();var k=!1;d.hd.ru(c,g,e)&&(h.Ds(a),k=!0);k||(e=d.gd.he(a,c,e),1==e?(h.A[0]=0,h.A[2]=2,h.A[3]=-1,h.A[5]=1,h.A[6]=-1):2==e?(h.A[6]=-1,0!=a.Mh()?(h.A[0]=-1,h.A[3]=0,h.A[2]=2,h.A[5]=1):(h.A[0]=0,h.A[3]=-1,h.A[5]=-1,e=new d.i,a.o(e),h.A[2]=0==e.ba()&&0==e.aa()?-1:1)):h.Ds(a));return this.Mf(h.A,f)};b.xr=function(a,c,e,f,h){var g=new b;g.pi();g.si(f);
g.KF();var k=new d.i;a.o(k);f=c.w();var n=!1;d.hd.ru(f,k,e)&&(g.dx(a),n=!0);if(!n){var k=null,m=n=!1;if(g.Y[0]||g.Y[6])d.hd.ex(a,f,e)?(g.Y[0]&&(k=d.Hh.il(a,h),m=!d.hd.or(k,f,e),n=!0,g.A[0]=m?-1:0),g.A[6]=-1):(g.A[0]=-1,g.A[6]=0);g.Y[3]&&(null!=k&&k.s()?g.A[3]=-1:(n||(null==k&&(k=d.Hh.il(a,h)),m=!d.hd.or(k,f,e),n=!0),g.A[3]=m?0:-1));g.Y[5]&&(null!=k&&k.s()?g.A[5]=-1:n&&!m?g.A[5]=0:(null==k&&(k=d.Hh.il(a,h)),h=d.hd.mu(k,c,e),g.A[5]=h?-1:0));g.Y[2]&&(0!=a.$b()?g.A[2]=1:(h=new d.pe(a.description),h.Pd(a,
0,a.F()),a=d.hd.mu(h,c,e),g.A[2]=a?-1:0))}return this.Mf(g.A,g.Hc)};b.pr=function(a,c,e,f){var h=new b;h.pi();h.si(f);h.PF();var g=new d.i;a.o(g);c=c.w();var k=!1;d.hd.ru(c,g,e)&&(h.PE(),k=!0);if(!k){g=!1;k=!0;e*=e;for(var n=0;n<a.F();n++){var m=a.Fa(n);d.b.Zb(m,c)<=e?g=!0:k=!1;if(g&&!k)break}g?(h.A[0]=0,h.A[2]=k?-1:0,h.A[6]=-1):(h.A[0]=-1,h.A[2]=0,h.A[6]=0)}return b.Mf(h.A,f)};b.KQ=function(a,c,e,f){a=a.w();c=c.w();for(var h=[],g=0;9>g;g++)h[g]=-1;d.b.Zb(a,c)<=e*e?h[0]=0:(h[2]=0,h[6]=0);h[8]=2;return b.Mf(h,
f)};b.Mf=function(a,b){for(var c=0;9>c;c++)switch(b.charAt(c)){case "T":if(-1==a[c])return!1;break;case "F":if(-1!=a[c])return!1;break;case "0":if(0!=a[c])return!1;break;case "1":if(1!=a[c])return!1;break;case "2":if(2!=a[c])return!1}return!0};b.rR=function(a,b,e){var c=[-1,-1,-1,-1,-1,-1,-1,-1,-1];if(a.s()&&b.s()){for(var h=0;9>h;h++)c[h]=-1;return this.Mf(c,e)}h=!1;a.s()&&(a=b,h=!0);c[0]=-1;c[1]=-1;c[3]=-1;c[4]=-1;c[6]=-1;c[7]=-1;c[8]=2;b=a.D();d.T.Kc(b)?1736==b?0!=a.Mh()?(c[2]=2,c[5]=1):(c[5]=
-1,b=new d.i,a.o(b),c[2]=0==b.ba()&&0==b.aa()?0:1):(b=0!=a.$b(),c[2]=b?1:0,c[5]=d.Hh.No(a)?0:-1):(c[2]=0,c[5]=-1);h&&this.qG(c);return this.Mf(c,e)};b.YN=function(a,c,e){return b.mT(a)?3:b.NS(a)?4:b.nT(a,c,e)?8:b.CR(a,c,e)?16:b.yQ(a)?1:b.LK(a,c,e)?32:0};b.mT=function(a){return"T"==a.charAt(0)&&"*"==a.charAt(1)&&"F"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"F"==a.charAt(5)&&"F"==a.charAt(6)&&"F"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.NS=function(a){return"F"==a.charAt(0)&&"F"==a.charAt(1)&&
"*"==a.charAt(2)&&"F"==a.charAt(3)&&"F"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.nT=function(a,b,e){if(0==b&&0==e)return!1;if(2!=b||2!=e)if("F"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"T"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)||1==b&&1==e&&"F"==a.charAt(0)&&"T"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&
"*"==a.charAt(8))return!0;return 0!=e&&"F"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"T"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.CR=function(a,b,e){return b>e?"T"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"T"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1:1==b&&1==e&&"0"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&
"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.yQ=function(a){return"T"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"F"==a.charAt(6)&&"F"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.LK=function(a,b,e){if(b==e){if(1!=b)return"T"==a.charAt(0)&&"*"==a.charAt(1)&&"T"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"T"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1;if("1"==a.charAt(0)&&
"*"==a.charAt(1)&&"T"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"T"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8))return!0}return!1};b.es=function(a,b,e){a=b.ya(a);for(var c=b.Be;-1!=c;c=b.Bf(c))if(0!=(b.md(c)&a)){var d=b.te(c);if(-1==d)b.fm(c,e,0);else{var g=d,k=0;do 0!=(b.Gg(g)&a)&&k++,g=b.Wb(b.sa(g));while(g!=d);b.fm(c,e,k)}}};b.Lo=function(a){var b;b=""+a.charAt(0);b+=a.charAt(3);b+=a.charAt(6);b+=a.charAt(1);b+=a.charAt(4);b+=a.charAt(7);b+=a.charAt(2);b+=a.charAt(5);
return b+=a.charAt(8)};b.prototype.pi=function(){for(var a=0;9>a;a++)this.A[a]=-2,this.Ta[a]=-2};b.qG=function(a){var b=a[1],e=a[2],d=a[5];a[1]=a[3];a[2]=a[6];a[5]=a[7];a[3]=b;a[6]=e;a[7]=d};b.prototype.si=function(a){this.Hc=a;for(a=0;9>a;a++)"*"!=this.Hc.charAt(a)?(this.Y[a]=!0,this.Xd++):this.Y[a]=!1};b.prototype.SF=function(){for(var a=0;9>a;a++)this.Y[a]&&-2==this.A[a]&&(this.A[a]=-1,this.Y[a]=!1)};b.prototype.dc=function(a){if(-2==this.A[a])return!1;if(-1==this.A[a])return this.Y[a]=!1,this.Xd--,
!0;if("T"!=this.Hc.charAt(a)&&"F"!=this.Hc.charAt(a)){if(this.A[a]<this.Ta[a])return!1;this.Y[a]=!1;this.Xd--;return!0}this.Y[a]=!1;this.Xd--;return!0};b.prototype.vF=function(){this.$t=0;this.Ta[0]=2;this.Ta[1]=1;this.Ta[2]=2;this.Ta[3]=1;this.Ta[4]=1;this.Ta[5]=1;this.Ta[6]=2;this.Ta[7]=1;this.Ta[8]=2;this.Y[8]&&(this.A[8]=2,this.Y[8]=!1,this.Xd--)};b.prototype.wy=function(){this.$t=1;this.Nl=3;this.Ta[0]=1;this.Ta[1]=0;this.Ta[2]=2;this.Ta[3]=1;this.Ta[4]=0;this.Ta[5]=1;this.Ta[6]=1;this.Ta[7]=
0;this.Ta[8]=2;this.Y[8]&&(this.A[8]=2,this.Y[8]=!1,this.Xd--)};b.prototype.ZR=function(){this.$t=2;this.Nl=4;this.Ta[0]=1;this.Ta[1]=0;this.Ta[2]=1;this.Ta[3]=0;this.Ta[4]=0;this.Ta[5]=0;this.Ta[6]=1;this.Ta[7]=0;this.Ta[8]=2;this.Y[8]&&(this.A[8]=2,this.Y[8]=!1,this.Xd--)};b.prototype.wF=function(){this.Nl=3;this.Ta[0]=0;this.Ta[1]=-1;this.Ta[2]=2;this.Ta[3]=0;this.Ta[4]=-1;this.Ta[5]=1;this.Ta[6]=0;this.Ta[7]=-1;this.Ta[8]=2;this.Y[1]&&(this.A[1]=-1,this.Y[1]=!1,this.Xd--);this.Y[4]&&(this.A[4]=
-1,this.Y[4]=!1,this.Xd--);this.Y[7]&&(this.A[7]=-1,this.Y[7]=!1,this.Xd--);this.Y[8]&&(this.A[8]=2,this.Y[8]=!1,this.Xd--)};b.prototype.KF=function(){this.Nl=4;this.Ta[0]=0;this.Ta[1]=-1;this.Ta[2]=1;this.Ta[3]=0;this.Ta[4]=-1;this.Ta[5]=0;this.Ta[6]=0;this.Ta[7]=-1;this.Ta[8]=2;this.Y[1]&&(this.A[1]=-1,this.Y[1]=!1,this.Xd--);this.Y[4]&&(this.A[4]=-1,this.Y[4]=!1,this.Xd--);this.Y[7]&&(this.A[7]=-1,this.Y[7]=!1,this.Xd--);this.Y[8]&&(this.A[8]=2,this.Y[8]=!1,this.Xd--)};b.prototype.PF=function(){this.Nl=
5;this.Ta[0]=0;this.Ta[1]=-1;this.Ta[2]=0;this.Ta[3]=-1;this.Ta[4]=-1;this.Ta[5]=-1;this.Ta[6]=0;this.Ta[7]=-1;this.Ta[8]=2;this.Y[1]&&(this.A[1]=-1,this.Y[1]=!1,this.Xd--);this.Y[3]&&(this.A[3]=-1,this.Y[3]=!1,this.Xd--);this.Y[4]&&(this.A[4]=-1,this.Y[4]=!1,this.Xd--);this.Y[5]&&(this.A[5]=-1,this.Y[5]=!1,this.Xd--);this.Y[7]&&(this.A[7]=-1,this.Y[7]=!1,this.Xd--);this.Y[8]&&(this.A[8]=2,this.Y[8]=!1,this.Xd--)};b.prototype.aK=function(a,b,e){var c=!0;this.Y[0]&&(this.HO(a,b,e),c=c&&this.dc(0));
this.Y[1]&&(this.eD(a,b,1),c=c&&this.dc(1));this.Y[2]&&(this.fD(a,b,e,2),c=c&&this.dc(2));this.Y[3]&&(this.eD(a,e,3),c=c&&this.dc(3));this.Y[4]&&(this.gK(a,b,e),c=c&&this.dc(4));this.Y[5]&&(this.eB(a,e,5),c=c&&this.dc(5));this.Y[6]&&(this.fD(a,e,b,6),c=c&&this.dc(6));this.Y[7]&&(this.eB(a,b,7),c=c&&this.dc(7));return c};b.prototype.Bs=function(a,b){this.A[0]=-1;this.A[1]=-1;this.A[3]=-1;this.A[4]=-1;this.iq(a,this.Y[2]?2:-1,this.Hc.charAt(2),this.Y[5]?5:-1,this.Hc.charAt(5));this.iq(b,this.Y[6]?6:
-1,this.Hc.charAt(6),this.Y[7]?7:-1,this.Hc.charAt(7))};b.prototype.iq=function(a,b,e,f,h){if(-1!=b||-1!=f)("T"!=e&&"F"!=e&&-1!=b||"T"!=h&&"F"!=h&&-1!=f?0!=a.Mh():1)?(-1!=b&&(this.A[b]=2),-1!=f&&(this.A[f]=1)):(-1!=f&&(this.A[f]=-1),-1!=b&&(e=new d.i,a.o(e),this.A[b]=0==e.ba()&&0==e.aa()?0:1))};b.prototype.Bv=function(a){this.A[2]=2;this.A[3]=-1;this.A[4]=-1;this.A[5]=1;this.A[6]=-1;this.A[7]=-1;this.iq(a,this.Y[0]?0:-1,this.Hc.charAt(0),this.Y[1]?1:-1,this.Hc.charAt(1))};b.prototype.$A=function(a){this.Bv(a);
b.qG(this.A)};b.prototype.Cs=function(a,b){this.A[0]=-1;this.A[1]=-1;this.A[3]=-1;this.A[4]=-1;if(this.Y[6]){var c=this.Hc.charAt(6),c="T"!=c&&"F"!=c?0!=b.$b():!0;this.A[6]=c?1:0}this.Y[7]&&(c=d.Hh.No(b),this.A[7]=c?0:-1);this.iq(a,this.Y[2]?2:-1,this.Hc.charAt(2),this.Y[5]?5:-1,this.Hc.charAt(5))};b.prototype.aB=function(a){if(this.Y[0]){var b=this.Hc.charAt(0),b="T"!=b&&"F"!=b?0!=a.$b():!0;this.A[0]=b?1:0}this.Y[1]&&(a=d.Hh.No(a),this.A[1]=a?0:-1);this.A[2]=2;this.A[3]=-1;this.A[4]=-1;this.A[5]=
1;this.A[6]=-1;this.A[7]=-1};b.prototype.Ds=function(a){this.A[0]=-1;this.A[3]=-1;this.A[6]=0;this.iq(a,this.Y[2]?2:-1,this.Hc.charAt(2),this.Y[5]?5:-1,this.Hc.charAt(5))};b.prototype.cK=function(){this.A[0]=0;this.A[2]=2;this.A[3]=-1;this.A[5]=1;this.A[6]=-1};b.prototype.CD=function(a,b){this.A[0]=-1;this.A[1]=-1;this.A[3]=-1;this.A[4]=-1;if(this.Y[2]){var c=this.Hc.charAt(2),c="T"!=c&&"F"!=c?0!=a.$b():!0;this.A[2]=c?1:0}this.Y[5]&&(c=d.Hh.No(a),this.A[5]=c?0:-1);this.Y[6]&&(c=this.Hc.charAt(6),
c="T"!=c&&"F"!=c?0!=b.$b():!0,this.A[6]=c?1:0);this.Y[7]&&(c=d.Hh.No(b),this.A[7]=c?0:-1)};b.prototype.dx=function(a){this.A[0]=-1;this.A[3]=-1;if(this.Y[2]){var b=this.Hc.charAt(2),b="T"!=b&&"F"!=b?0!=a.$b():!0;this.A[2]=b?1:0}this.Y[5]&&(a=d.Hh.No(a),this.A[5]=a?0:-1);this.A[6]=0};b.prototype.PE=function(){this.A[0]=-1;this.A[2]=0;this.A[6]=0};b.prototype.bK=function(a,b,e){var c=!0;this.Y[0]&&(this.IO(a,b),c=c&&this.dc(0));this.Y[1]&&(this.EO(a,b,e,this.Jg),c=c&&this.dc(1));this.Y[2]&&(this.FO(a,
b),c=c&&this.dc(2));this.Y[3]&&(this.kK(a,b,e,this.Jg),c=c&&this.dc(3));this.Y[4]&&(this.hK(a,b,e,this.Jg),c=c&&this.dc(4));this.Y[5]&&(this.iK(a,b,e),c=c&&this.dc(5));this.Y[6]&&(this.BM(a,b),c=c&&this.dc(6));this.Y[7]&&(this.AM(a,b,e,this.Jg),c=c&&this.dc(7));return c};b.prototype.uP=function(a,b,e){var c=!0;this.Y[0]&&(this.LO(a,b,e,this.ph,this.Jg),c=c&&this.dc(0));this.Y[1]&&(this.gD(a,b,e,this.ph,this.Jg,1),c=c&&this.dc(1));this.Y[2]&&(this.hD(a,b,e,2),c=c&&this.dc(2));this.Y[3]&&(this.gD(a,
e,b,this.Jg,this.ph,3),c=c&&this.dc(3));this.Y[4]&&(this.mK(a,b,e,this.ph,this.Jg),c=c&&this.dc(4));this.Y[5]&&(this.fB(a,e,this.ph,5),c=c&&this.dc(5));this.Y[6]&&(this.hD(a,e,b,6),c=c&&this.dc(6));this.Y[7]&&(this.fB(a,b,this.Jg,7),c=c&&this.dc(7));return c};b.prototype.bB=function(a,b,e){var c=!0;this.Y[0]&&(this.JO(a,b),c=c&&this.dc(0));this.Y[2]&&(this.GO(a,b),c=c&&this.dc(2));this.Y[3]&&(this.lK(a,b,e),c=c&&this.dc(3));this.Y[5]&&(this.jK(a,b),c=c&&this.dc(5));this.Y[6]&&(this.CM(a,b),c=c&&this.dc(6));
return c};b.prototype.DD=function(a,b,e){var c=!0;this.Y[0]&&(this.MO(a,b,e,this.ph),c=c&&this.dc(0));this.Y[2]&&(this.KO(a,e),c=c&&this.dc(2));this.Y[3]&&(this.oK(a,b,e,this.ph),c=c&&this.dc(3));this.Y[5]&&(this.nK(a,b,e,this.ph),c=c&&this.dc(5));this.Y[6]&&(this.DM(a,b,e),c=c&&this.dc(6));return c};b.prototype.JQ=function(a,b,e){var c=!0;this.Y[0]&&(this.NO(a,b,e),c=c&&this.dc(0));this.Y[2]&&(this.iD(a,b,e,2),c=c&&this.dc(2));this.Y[6]&&(this.iD(a,e,b,6),c=c&&this.dc(6));return c};b.prototype.HO=
function(a,b,e){2!=this.A[0]&&(a=this.h.Qe(a),0!=(a&b)&&0!=(a&e)&&(this.A[0]=2))};b.prototype.eD=function(a,b,e){if(1!=this.A[e]){var c=this.h.Qe(this.h.sa(a));0!=(this.h.Qe(a)&b)&&0!=(c&b)&&(this.A[e]=1)}};b.prototype.fD=function(a,b,e,d){2!=this.A[d]&&(a=this.h.Qe(a),0!=(a&b)&&0==(a&e)&&(this.A[d]=2))};b.prototype.gK=function(a,b,e){if(1!=this.A[4]){var c=this.h.Gg(a);0!=(c&b)&&0!=(c&e)?this.A[4]=1:0!=this.A[4]&&1!=this.h.tb(this.h.fe(this.h.sa(a)),this.ni)&&(a=this.h.md(this.h.jf(a)),0!=(a&b)&&
0!=(a&e)&&(this.A[4]=0))}};b.prototype.eB=function(a,b,e){if(1!=this.A[e]){var c=this.h.Qe(this.h.sa(a));0==(this.h.Qe(a)&b)&&0==(c&b)&&(this.A[e]=1)}};b.prototype.IO=function(a,b){if(1!=this.A[0]){var c=this.h.Qe(this.h.sa(a));0!=(this.h.Qe(a)&b)&&0!=(c&b)&&(this.A[0]=1)}};b.prototype.EO=function(a,b,e,d){if(0!=this.A[1]&&1!=this.h.tb(this.h.fe(this.h.sa(a)),this.ni)){var c=this.h.jf(a),f=this.h.md(c);0==(f&b)&&0!=(this.h.Qe(a)&b)&&(a=this.h.Sf(c,d),0!=(f&e)&&0!=a%2&&(this.A[1]=0))}};b.prototype.FO=
function(a,b){2!=this.A[2]&&0!=(this.h.Gg(a)&b)&&(this.A[2]=2)};b.prototype.kK=function(a,b,e,d){if(1!=this.A[3]){var c=this.h.Gg(a);0!=(c&b)&&0!=(c&e)?this.A[3]=1:0!=this.A[3]&&1!=this.h.tb(this.h.fe(this.h.sa(a)),this.ni)&&(c=this.h.jf(a),a=this.h.md(c),0!=(a&b)&&(b=this.h.Sf(c,d),0!=(a&e)&&0==b%2&&(this.A[3]=0)))}};b.prototype.hK=function(a,b,e,d){if(0!=this.A[4]&&1!=this.h.tb(this.h.fe(this.h.sa(a)),this.ni)){var c=this.h.jf(a);a=this.h.md(c);0!=(a&b)&&(b=this.h.Sf(c,d),0!=(a&e)&&0!=b%2&&(this.A[4]=
0))}};b.prototype.iK=function(a,b,e){1!=this.A[5]&&(a=this.h.Gg(a),0!=(a&b)&&0==(a&e)&&(this.A[5]=1))};b.prototype.BM=function(a,b){if(1!=this.A[6]){var c=this.h.Qe(this.h.sa(a));0==(this.h.Qe(a)&b)&&0==(c&b)&&(this.A[6]=1)}};b.prototype.AM=function(a,b,e,d){if(0!=this.A[7]&&1!=this.h.tb(this.h.fe(this.h.sa(a)),this.ni)){var c=this.h.jf(a),f=this.h.md(c);0==(f&b)&&0==(this.h.Qe(a)&b)&&(a=this.h.Sf(c,d),0!=(f&e)&&0!=a%2&&(this.A[7]=0))}};b.prototype.LO=function(a,b,e,d,h){if(1!=this.A[0]){var c=this.h.Gg(a);
0!=(c&b)&&0!=(c&e)?this.A[0]=1:0!=this.A[0]&&1!=this.h.tb(this.h.fe(this.h.sa(a)),this.ni)&&(a=this.h.jf(a),c=this.h.md(a),0!=(c&b)&&0!=(c&e)&&(b=this.h.Sf(a,d),h=this.h.Sf(a,h),0==b%2&&0==h%2&&(this.A[0]=0)))}};b.prototype.gD=function(a,b,e,d,h,g){if(0!=this.A[g]&&1!=this.h.tb(this.h.fe(this.h.sa(a)),this.ni)){a=this.h.jf(a);var c=this.h.md(a);0!=(c&b)&&0!=(c&e)&&(b=this.h.Sf(a,d),h=this.h.Sf(a,h),0==b%2&&0!=h%2&&(this.A[g]=0))}};b.prototype.hD=function(a,b,e,d){1!=this.A[d]&&(a=this.h.Gg(a),0!=
(a&b)&&0==(a&e)&&(this.A[d]=1))};b.prototype.mK=function(a,b,e,d,h){if(0!=this.A[4]&&1!=this.h.tb(this.h.fe(this.h.sa(a)),this.ni)){a=this.h.jf(a);var c=this.h.md(a);0!=(c&b)&&0!=(c&e)&&(b=this.h.Sf(a,d),h=this.h.Sf(a,h),0!=b%2&&0!=h%2&&(this.A[4]=0))}};b.prototype.fB=function(a,b,e,d){0!=this.A[d]&&1!=this.h.tb(this.h.fe(this.h.sa(a)),this.ni)&&(a=this.h.jf(a),0==(this.h.md(a)&b)&&0!=this.h.Sf(a,e)%2&&(this.A[d]=0))};b.prototype.JO=function(a,b){0!=this.A[0]&&0==(this.h.md(a)&b)&&0!=(this.h.pj(this.h.mw(a))&
b)&&(this.A[0]=0)};b.prototype.GO=function(a,b){2!=this.A[2]&&0!=(this.h.md(a)&b)&&(this.A[2]=2)};b.prototype.lK=function(a,b,e){0!=this.A[3]&&(a=this.h.md(a),0!=(a&b)&&0!=(a&e)&&(this.A[3]=0))};b.prototype.jK=function(a,b){1!=this.A[5]&&0!=(this.h.md(a)&b)&&(this.A[5]=1)};b.prototype.CM=function(a,b){0!=this.A[6]&&0==(this.h.md(a)&b)&&0==(this.h.pj(this.h.mw(a))&b)&&(this.A[6]=0)};b.prototype.MO=function(a,b,e,d){if(0!=this.A[0]){var c=this.h.md(a);0!=(c&b)&&0!=(c&e)&&0==this.h.Sf(a,d)%2&&(this.A[0]=
0)}};b.prototype.KO=function(a,b){1!=this.A[2]&&(-1!=this.h.te(a)?this.A[2]=1:0!=this.A[2]&&0==(this.h.md(a)&b)&&(this.A[2]=0))};b.prototype.oK=function(a,b,e,d){if(0!=this.A[3]){var c=this.h.md(a);0!=(c&b)&&0!=(c&e)&&0!=this.h.Sf(a,d)%2&&(this.A[3]=0)}};b.prototype.nK=function(a,b,e,d){if(0!=this.A[5]){var c=this.h.md(a);0!=(c&b)&&0==(c&e)&&0!=this.h.Sf(a,d)%2&&(this.A[5]=0)}};b.prototype.DM=function(a,b,e){0!=this.A[6]&&(a=this.h.md(a),0==(a&b)&&0!=(a&e)&&(this.A[6]=0))};b.prototype.NO=function(a,
b,e){0!=this.A[0]&&(a=this.h.md(a),0!=(a&b)&&0!=(a&e)&&(this.A[0]=0))};b.prototype.iD=function(a,b,e,d){0!=this.A[d]&&(a=this.h.md(a),0!=(a&b)&&0==(a&e)&&(this.A[d]=0))};b.prototype.so=function(a,b){var c=!1,f=this.h.ya(a),h=this.h.ya(b);this.ni=this.h.Eg();for(var g=this.h.Be;-1!=g;g=this.h.Bf(g)){var k=this.h.te(g);if(-1==k){if(-1!=this.Nl)switch(this.Nl){case 3:c=this.bB(g,f,h);break;case 4:c=this.DD(g,f,h);break;default:throw d.g.ra("internal error");}}else{var n=k;do{var m=n;if(1!=this.h.tb(m,
this.ni)){do{switch(this.$t){case 0:c=this.aK(m,f,h);break;case 1:c=this.bK(m,f,h);break;case 2:c=this.uP(m,f,h);break;default:throw d.g.ra("internal error");}if(c)break;this.h.Bb(m,this.ni,1);m=this.h.Wb(m)}while(m!=n&&!c)}if(c)break;n=this.h.Wb(this.h.sa(m))}while(n!=k);if(c)break}}c||this.SF();this.h.kh(this.ni)};b.prototype.Pv=function(a,b){for(var c=!1,f=this.h.ya(a),h=this.h.ya(b),g=this.h.Be;-1!=g;g=this.h.Bf(g)){switch(this.Nl){case 3:c=this.bB(g,f,h);break;case 4:c=this.DD(g,f,h);break;case 5:c=
this.JQ(g,f,h);break;default:throw d.g.wa();}if(c)break}c||this.SF()};b.prototype.Op=function(a,b){this.h.Mp(a,b)};b.prototype.In=function(a,b,e){this.tM(a,b,e);this.Op(a,e)};b.prototype.tM=function(a,b,e){d.aj.$(a,b,e,!1);a.xo(0,!0,!0);for(b=a.$c;-1!=b;b=a.we(b))1736==a.Lb(b)&&d.mm.$(a,b,-1,!1,e)};b.NB=function(a,b){var c=a.D();if(d.T.Lc(c))return c=new d.Xa(a.description),c.Bc(a,!0),c;if(197==c){c=new d.i;a.o(c);if(c.ba()<=b&&c.aa()<=b)return c=new d.Va(a.description),a.Af(c),c;if(c.ba()<=b||c.aa()<=
b){var c=new d.Xa(a.description),f=new d.Va;a.uf(0,f);c.df(f);a.uf(2,f);c.lineTo(f);return c}c=new d.Ka(a.description);c.Wc(a,!1);return c}return a};return b}();d.el=m})(p||(p={}));(function(d){var m=function(){function a(a){this.Dl=new d.ga(0);this.Ot=new d.ga(0);this.Ar=new d.b;this.Br=new d.b;this.a=a;this.Tq=-1}a.prototype.cc=function(a){return this.a.cc(this.Jw(a))};a.prototype.ot=function(a){var b=this.tw(a);a=this.vC(a);if(this.a.Ua(b)==a){var c=b,b=a;a=c}this.a.uc(b,this.Ar);this.a.uc(a,this.Br);
return this.Ar.y<this.Br.y};a.prototype.Jw=function(a){var b=this.tw(a);a=this.vC(a);return this.a.X(b)==a?b:a};a.prototype.tw=function(a){return this.Dl.get(a)};a.prototype.vC=function(a){return this.Ot.get(a)};a.prototype.hC=function(a){this.Dl.set(a,this.Tq);this.Tq=a};a.prototype.GE=function(a){if(-1!=this.Tq){var b=this.Tq;this.Tq=this.Dl.get(b);this.Dl.set(b,a);this.Ot.set(b,this.a.X(a));return b}null==this.Dl&&(this.Dl=new d.ga(0),this.Ot=new d.ga(0));b=this.Dl.size;this.Dl.add(a);this.Ot.add(this.a.X(a));
return b};a.prototype.Dw=function(a){return this.a.rd(this.tw(a))};return a}();d.BT=m;var g=function(){function a(a){this.me=a;this.Vd=new d.yb;this.Kl=new d.yb;this.eE=0;this.on=null;this.zx=-1}a.prototype.compare=function(a,b,d){d=a.da(d);var c=this.me.$a,e;this.zx==b?e=this.eE:(this.on=c.cc(b),null==this.on?(a=c.a,a.Oc(c.Jw(b),this.Vd),this.on=this.Vd,e=this.Vd.xe(this.me.Zg,0)):e=this.on.xe(this.me.Zg,0),this.eE=e,this.zx=b);a=c.cc(d);var f;null==a?(a=c.a,a.Oc(c.Jw(d),this.Kl),a=this.Kl,f=this.Kl.xe(this.me.Zg,
0)):f=a.xe(this.me.Zg,0);e==f&&(b=c.ot(b),d=c.ot(d),d=Math.min(b?this.on.ha:this.on.ja,d?a.ha:a.ja),b=.5*(d+this.me.Zg),b==this.me.Zg&&(b=d),e=this.on.xe(b,0),f=a.xe(b,0));return e<f?-1:e>f?1:0};a.prototype.reset=function(){this.zx=-1};return a}(),b=function(){function a(){this.Rl=this.Dk=null;this.Za=new d.bj;this.Za.lM();this.Ld=new g(this);this.Za.Hn(this.Ld)}a.prototype.XM=function(){var a=!1;this.Qt&&(a=this.YM());if(1==this.a.ea(this.U)){var b=this.a.Vb(this.U),a=this.a.Gw(b);this.a.Dy(b,!0);
return 0>a?(a=this.a.Cb(b),this.a.lF(a),this.a.Wi(b,this.a.Ua(a)),!0):!1}this.Ak=this.a.Uv();this.kn=this.a.Uv();for(b=this.a.Vb(this.U);-1!=b;b=this.a.bc(b))this.a.Rp(b,this.Ak,0),this.a.Rp(b,this.kn,-1);b=new d.ga(0);this.Zg=NaN;var f=new d.b;this.lr=this.a.ea(this.U);this.fn=this.a.re();this.br=this.a.re();for(var h=this.Dk.gc(this.Dk.Wd);-1!=h;h=this.Dk.bb(h)){var g=this.Dk.getData(h);this.a.uc(g,f);f.y!=this.Zg&&0!=b.size&&(a=this.yr(b)||a,this.Ld.reset(),b.clear(!1));b.add(g);this.Zg=f.y;if(0==
this.lr)break}0<this.lr&&(a=this.yr(b)||a,b.clear(!1));this.a.bf(this.fn);this.a.bf(this.br);for(b=this.a.Vb(this.U);-1!=b;)if(3==this.a.Ei(b,this.Ak)){this.a.Dy(b,!0);f=b;for(b=this.a.Ei(b,this.kn);-1!=b;)h=this.a.Ei(b,this.kn),this.a.bQ(this.U,this.a.bc(f),b),f=b,b=h;b=this.a.bc(f)}else this.a.Dy(b,!1),b=this.a.bc(b);this.a.ty(this.Ak);this.a.ty(this.kn);return a};a.prototype.yr=function(a){return this.WQ(a)};a.prototype.WQ=function(a){var b=!1;null==this.$a&&(this.$a=new m(this.a));null==this.Rl?
(this.Rl=new d.ga(0),this.Rl.xb(16)):this.Rl.clear(!1);this.VQ(a);for(var c=0,h=a.size;c<h;c++){var g=a.get(c);-1!=g&&this.bD(g,-1)}for(c=0;c<this.Rl.size&&0<this.lr;c++)if(a=this.Rl.get(c),g=this.$a.Dw(this.Za.da(a)),h=-1,0==this.a.Ei(g,this.Ak)){for(var g=this.Za.ge(a),k=a,n;-1!=g;){var p=this.Za.da(g),q=this.$a.Dw(p),r=this.a.Ei(q,this.Ak);if(0!=r){h=q;break}k=g;g=this.Za.ge(g)}-1==g?(n=!0,g=k):(p=this.Za.da(g),n=this.$a.ot(p),g=this.Za.bb(g),n=!n);do{p=this.Za.da(g);q=this.$a.Dw(p);r=this.a.Ei(q,
this.Ak);if(0==r&&(n!=this.$a.ot(p)&&(b=this.a.Cb(q),this.a.lF(b),this.a.Wi(q,this.a.Ua(b)),b=!0),this.a.Rp(q,this.Ak,n?3:2),n||(k=this.a.Ei(h,this.kn),this.a.Rp(h,this.kn,q),this.a.Rp(q,this.kn,k)),this.lr--,0==this.lr))return b;h=q;k=g;g=this.Za.bb(g);n=!n}while(k!=a)}return b};a.prototype.VQ=function(a){for(var b=0,c=a.size;b<c;b++){var d=a.get(b),g=this.a.Ra(d,this.fn),k=this.a.Ra(d,this.br);if(-1!=g){var n=this.Za.da(g);this.$a.hC(n);this.a.lb(d,this.fn,-1)}-1!=k&&(n=this.Za.da(k),this.$a.hC(n),
this.a.lb(d,this.br,-1));n=-1;-1!=g&&-1!=k?(this.Za.kd(g,-1),this.Za.kd(k,-1),a.set(b,-1)):n=-1!=g?g:k;-1!=n&&(this.bD(d,n)||this.Za.kd(n,-1),a.set(b,-1))}};a.prototype.bD=function(a,b){var c=new d.b,e=new d.b;this.a.uc(a,c);var g=this.a.X(a);this.a.uc(g,e);var k=!1;if(c.y<e.y){var k=!0,n=this.$a.GE(a),m;-1==b?m=this.Za.addElement(n,-1):(m=b,this.Za.Vi(m,n));n=this.a.Ra(g,this.fn);-1==n?this.a.lb(g,this.fn,m):this.a.lb(g,this.br,m);g=this.a.rd(a);0==this.a.Ei(g,this.Ak)&&this.Rl.add(m)}g=this.a.Ua(a);
this.a.uc(g,e);c.y<e.y&&(k=!0,n=this.$a.GE(g),-1==b?m=this.Za.addElement(n,-1):(m=b,this.Za.Vi(m,n)),n=this.a.Ra(g,this.fn),-1==n?this.a.lb(g,this.fn,m):this.a.lb(g,this.br,m),g=this.a.rd(a),0==this.a.Ei(g,this.Ak)&&this.Rl.add(m));return k};a.$=function(b,e,d,h){var c=new a;c.a=b;c.U=e;c.Dk=d;c.Qt=h;return c.XM()};a.prototype.YM=function(){var a=new d.ga(0),b=new d.ga(0),f=-1,h=-1,g=new d.b;g.Eh();for(var k=-1,n=-1,m=-1,q=new d.b,r=this.Dk.gc(this.Dk.Wd);-1!=r;r=this.Dk.bb(r)){var p=this.Dk.getData(r);
this.a.uc(p,q);var t=this.a.rd(p);g.ub(q)&&n==t?(-1==h&&(f=this.a.Uv(),h=this.a.re()),-1==m&&(m=b.size,this.a.lb(k,h,m),b.add(1),-1==this.a.Ei(t,f)&&(this.a.Rp(t,f,k),a.add(t))),this.a.lb(p,h,m),b.JF(b.tc()+1)):(m=-1,g.J(q));k=p;n=t}if(0==a.size)return!1;g=new d.ga(0);k=new d.ga(0);n=0;for(m=a.size;n<m;n++){var t=a.get(n),x=this.a.Ei(t,f),p=this.a.Ra(x,h);g.clear(!1);k.clear(!1);g.add(x);k.add(p);for(p=this.a.X(x);p!=x;p=this.a.X(p)){var v=p,q=this.a.Ra(v,h);if(-1!=q)if(0==k.size)k.add(q),g.add(v);
else if(k.tc()==q){var r=g.tc(),C=this.a.X(r),x=this.a.X(v);this.a.Sc(r,x);this.a.Tc(x,r);this.a.Sc(v,C);this.a.Tc(C,v);v=[!1];C=this.a.aD(this.U,C,this.a.Cb(t),v);this.a.lb(p,h,-1);v[0]&&this.a.Dh(t,x);p=this.a.Ha(t);x=this.a.Ha(C);p-=x;this.a.hm(t,p);b.set(q,b.get(q)-1);1==b.get(q)&&(b.set(q,0),k.af(),g.af());p=x=r}else g.add(p),k.add(q)}}this.a.ty(f);this.a.bf(h);return!0};return a}();d.AI=b})(p||(p={}));(function(d){var m=function(){function g(){}g.prototype.Ag=function(){this.Mx=this.ib=null};
g.prototype.get=function(){return this.Mx};g.prototype.set=function(b){this.Mx=b;if(null!=b)throw 322==b.D()&&(this.ib=b),d.g.wa();};g.prototype.create=function(b){if(322==b)this.mq();else throw d.g.ra("Not Implemented");};g.prototype.mq=function(){null==this.ib&&(this.ib=new d.yb);this.Mx=this.ib};return g}();d.Ag=m})(p||(p={}));(function(d){d=d.FI||(d.FI={});d[d.enumLineSeg=1]="enumLineSeg";d[d.enumBezierSeg=2]="enumBezierSeg";d[d.enumArcSeg=4]="enumArcSeg";d[d.enumNonlinearSegmentMask=6]="enumNonlinearSegmentMask";
d[d.enumSegmentMask=7]="enumSegmentMask";d[d.enumDensified=8]="enumDensified"})(p||(p={}));(function(d){var m=function(){return function(b){this.ri=b;this.dz=this.ez=1;this.ky=this.jy=this.ly=0}}(),g=function(){function b(){this.op=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.Ij=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.nf=new d.Va;this.ka=this.fu=0;this.an=[];this.ir=[];this.bu=[];this.qp=[];this.Jx=[]}b.prototype.ny=function(a){if(null!=a){for(var b=0,e=a.length;b<e;b++)this.oR(a[b]);a.length=0}};b.prototype.oR=
function(a){a.ri=null;this.qp.push(a)};b.prototype.nu=function(a){if(0===this.qp.length)var b=new m(a);else b=this.qp[this.qp.length-1],b.ri=a,--this.qp.length;return b};b.prototype.dO=function(a,b){return 0==a?this.ir[b]:this.bu[b]};b.prototype.Zx=function(){this.fu>=this.Jx.length&&this.Jx.push(new d.Ag);var a=this.Jx[this.fu];this.fu++;return a};b.prototype.clear=function(){this.ny(this.an);this.ny(this.ir);this.ny(this.bu);this.fu=0};b.prototype.zn=function(a){this.an.push(this.nu(a))};b.prototype.kk=
function(a){return 0==a?this.ir.length:this.bu.length};b.prototype.Io=function(a,b){return this.dO(a,b).ri};b.prototype.Ga=function(a,b){if(2!=this.an.length)throw d.g.wa();this.ka=a;var c=d.vi.Ty(.01*a),f=!1,h=this.an[0],g=this.an[1];if(b||0!=(h.ri.fq(g.ri,a,!0)&5)){if(322==h.ri.D()){var k=h.ri;if(322==g.ri.D()){var n=g.ri,m=d.yb.ov(k,n,null,this.op,this.Ij,a);if(0==m)throw d.yb.ov(k,n,null,this.op,this.Ij,a),d.g.wa();var q=Array(9);d.I.Ps(q,null);for(var p=0;p<m;p++){var w=this.op[p],t=this.Ij[p],
x=h.ky,v=1;0==w?(x=h.ly,v=h.ez):1==w&&(x=h.jy,v=h.dz);var C=g.ky,A=1;0==t?(C=g.ly,A=g.ez):1==t&&(C=g.jy,A=g.dz);var y=new d.b;x==C?(x=new d.b,k.Kb(w,x),w=new d.b,n.Kb(t,w),t=v+A,A/=t,d.vi.BD(x,w,A,y),d.b.Zb(y,x)+d.b.Zb(y,w)>c&&(f=!0)):x>C?(k.Kb(w,y),w=new d.b,n.Kb(t,w),d.b.Zb(y,w)>c&&(f=!0)):(n.Kb(t,y),x=new d.b,k.Kb(w,x),d.b.Zb(y,x)>c&&(f=!0));q[p]=y}h=0;g=-1;for(p=0;p<=m;p++)A=p<m?this.op[p]:1,A!=h&&(c=this.Zx(),k.Bi(h,A,c),-1!=g&&c.get().ed(q[g]),p!=m&&c.get().vd(q[p]),h=A,this.ir.push(this.nu(c.get()))),
g=p;k=[0,0,0,0,0,0,0,0,0];for(p=0;p<m;p++)k[p]=p;1<m&&this.Ij[0]>this.Ij[1]&&(A=this.Ij[0],this.Ij[0]=this.Ij[1],this.Ij[1]=A,p=k[0],k[0]=k[1],k[1]=p);h=0;g=-1;for(p=0;p<=m;p++)A=p<m?this.Ij[p]:1,A!=h&&(c=this.Zx(),n.Bi(h,A,c),-1!=g&&(h=k[g],c.get().ed(q[h])),p!=m&&(h=k[p],c.get().vd(q[h])),h=A,this.bu.push(this.nu(c.get()))),g=p;return f}}throw d.g.wa();}return!1};b.prototype.Tw=function(a,b,e){b.copyTo(this.nf);if(1!=this.an.length)throw d.g.wa();this.ka=a;var c=this.an[0];if(e||c.ri.qs(b.w(),a,
!0))if(322==c.ri.D()){a=c.ri;var h=a.Gd(b.w(),!1);this.op[0]=h;var g=c.ky;e=1;0==h?(g=c.ly,e=c.ez):1==h&&(g=c.jy,e=c.dz);c=new d.b;0==g?(g=new d.b,a.Kb(h,g),b=b.w(),d.vi.BD(g,b,1/(e+1),c)):0<g?(c=new d.b,a.Kb(h,c)):c=b.w();e=0;h=-1;for(g=0;1>=g;g++){b=1>g?this.op[g]:1;if(b!=e){var k=this.Zx();a.Bi(e,b,k);-1!=h&&k.get().ed(c);1!=g&&k.get().vd(c);e=b;this.ir.push(this.nu(k.get()))}h=g}this.nf.ic(c)}else throw d.g.wa();};return b}();d.gA=g})(p||(p={}));(function(d){var m=function(){function g(b){this.Pq=
this.yj=this.ib=null;this.zk=this.Ee=this.Gc=this.ze=this.Sg=this.Qa=0;this.ab=null;this.zl=!1;this.ze=-1;this.Sg=this.Gc=0;this.Qa=-1;this.ab=b;this.Ee=this.eq(this.Sg);this.zl=!1;this.yj=null;this.zk=-1;this.Pq=new d.b}g.Yn=function(b,a){if(0>a||a>=b.F())throw d.g.Uc();var c=new g(b),e=b.Ew(a);c.Gc=a-b.Ea(e);c.Sg=e+1;c.Qa=e;c.Ee=c.eq(c.Qa);c.zk=c.ab.Ea(c.Qa);return c};g.Un=function(b,a,c){if(0>a||a>=b.ea()||0>c)throw d.g.Uc();var e=b.vc(a)?0:1;if(c>=b.Ha(a)-e)throw d.g.Uc();b=new g(b);b.ze=-1;b.Gc=
c;b.Qa=a;b.Sg=b.Gc+1;b.Ee=b.eq(b.Sg);b.zk=b.ab.Ea(b.Qa);return b};g.prototype.xR=function(b){if(this.ab!=b.ab)throw d.g.xa();this.ze=b.ze;this.Gc=b.Gc;this.Qa=b.Qa;this.Sg=b.Sg;this.Ee=b.Ee;this.zl=b.zl;this.zk=b.zk;this.yj=null};g.prototype.ia=function(){this.ze!=this.Gc&&this.JA();if(this.zl)this.Gc=(this.Gc+1)%this.Ee;else{if(this.Gc==this.Ee)throw d.g.Uc();this.Gc++}return this.yj};g.prototype.oi=function(){if(this.zl)this.Gc=(this.Ee+this.Gc-1)%this.Ee;else{if(0==this.Gc)throw d.g.Uc();this.Gc--}this.Gc!=
this.ze&&this.JA();return this.yj};g.prototype.yR=function(){this.ze=-1;this.Gc=0};g.prototype.zR=function(){this.Gc=this.Ee;this.ze=-1};g.prototype.Sb=function(b,a){void 0===a&&(a=-1);if(0<=this.Qa&&this.Qa<this.ab.ea()){var c=this.uJ();if(b>=c&&b<this.ab.Dc(this.Qa)){this.ze=-1;this.Gc=b-c;return}}c=0<=a&&a<this.ab.ea()&&b>=this.ab.Ea(a)&&b<this.ab.Dc(a)?a:this.ab.Ew(b);this.Sg=c+1;this.Qa=c;this.ze=-1;this.Gc=b-this.ab.Ea(c);this.Ee=this.eq(c);this.zk=this.ab.Ea(this.Qa)};g.prototype.kb=function(){this.Qa=
this.Sg;if(this.Qa>=this.ab.ea())return!1;this.ze=-1;this.Gc=0;this.Ee=this.eq(this.Qa);this.zk=this.ab.Ea(this.Qa);this.Sg++;return!0};g.prototype.Lk=function(){this.Ee=this.Gc=this.ze=-1;this.Sg=0;this.zk=this.Qa=-1};g.prototype.vy=function(b){if(0>b)throw d.g.Uc();this.Sg=b;this.zk=this.Ee=this.Gc=this.ze=this.Qa=-1};g.prototype.eq=function(b){if(this.ab.sc())return 0;var a=1;this.ab.vc(b)&&(a=0);return this.ab.Ha(b)-a};g.prototype.lD=function(){return this.ze==this.Ee-1&&this.ab.vc(this.Qa)};
g.prototype.NR=function(){this.zl=!0};g.prototype.Jb=function(){return this.ab.jb.f[this.Qa]+this.ze};g.prototype.uJ=function(){return this.ab.Ea(this.Qa)};g.prototype.Bm=function(){return this.lD()?this.ab.Ea(this.Qa):this.Jb()+1};g.prototype.wl=function(){return 0==this.ze};g.prototype.Jm=function(){return this.ze==this.Ee-1};g.prototype.La=function(){return this.Gc<this.Ee};g.prototype.Ow=function(){return 0<this.Gc};g.prototype.vm=function(){var b=new g(this.ab);b.ze=this.ze;b.Gc=this.Gc;b.Ee=
this.Ee;b.Qa=this.Qa;b.Sg=this.Sg;b.ab=this.ab;b.zl=this.zl;return b};g.prototype.JA=function(){if(0>this.Gc||this.Gc>=this.Ee)throw d.g.Uc();this.ze=this.Gc;var b=this.Jb();this.ab.kc();var a=this.ab.Fe,c=1;null!=a&&(c=a.read(b)&7);a=this.ab.description;switch(c){case 1:null==this.ib&&(this.ib=new d.yb);this.yj=this.ib;break;case 2:throw d.g.ra("internal error");case 4:throw d.g.wa();default:throw d.g.wa();}this.yj.Qf(a);c=this.Bm();this.ab.uc(b,this.Pq);this.yj.ed(this.Pq);this.ab.uc(c,this.Pq);
this.yj.vd(this.Pq);for(var e=1,f=a.Aa;e<f;e++)for(var h=a.Hd(e),g=d.pa.Wa(h),k=0;k<g;k++){var n=this.ab.ld(h,b,k);this.yj.My(h,k,n);n=this.ab.ld(h,c,k);this.yj.Cy(h,k,n)}};g.prototype.YO=function(){return this.Qa==this.ab.ea()-1};return g}();d.GI=m})(p||(p={}));(function(d){var m=function(){function g(b){b instanceof d.T?(this.ZD=b,this.ua=-1,this.Wh=1):(this.DP=b.slice(0),this.ua=-1,this.Wh=b.length)}g.prototype.ya=function(){return this.ua};g.prototype.next=function(){return this.ua<this.Wh-1?
(this.ua++,null!=this.ZD?this.ZD:this.DP[this.ua]):null};return g}();d.Pc=m})(p||(p={}));(function(d){var m=function(){return function(){this.next=null}}(),g=function(){function b(){this.Cp=this.ju=this.ku=this.vj=this.eh=0;this.aC=!1;this.eG=0;this.am=this.wf=this.Vk=this.hh=null;this.Mk=0;this.Kv=null;this.vj=this.eh=-1}b.prototype.vS=function(a,b,e){this.eh=a;this.vj=b;this.hh=this.Vk=null;this.Cp=0;this.Kv=e;null==this.am&&(this.am=d.I.Lh(384,0));this.hG()};b.prototype.aa=function(){return this.eh};
b.prototype.ba=function(){return this.vj};b.prototype.flush=function(){0<this.Mk&&(this.Kv.XB(this.am,this.Mk),this.Mk=0)};b.prototype.hG=function(){if(0<this.Cp){for(var a=0;a<this.vj;a++){for(var b=this.Vk[a];null!=b;){var e=b,b=b.next;e.next=null}this.Vk[a]=null}this.hh=null}this.ku=this.vj;this.ju=-1;this.Cp=0};b.prototype.fF=function(a){this.aC=a==b.$u;for(a=this.ku;a<=this.ju;a++)this.VJ(),this.PJ(a),this.vM();this.hG()};b.prototype.zv=function(a,b,e,f){if(b!=f){var c=1;b>f&&(c=a,a=e,e=c,c=
b,b=f,f=c,c=-1);if(!(0>f||b>=this.vj)){0>a&&0>e?e=a=-1:a>=this.eh&&e>=this.eh&&(e=a=this.eh);var g=(e-a)/(f-b);f>this.vj&&(f=this.vj,e=g*(f-b)+a);0>b&&(a=g*(0-b)+a,b=0);var k=Math.max(this.eh+1,8388607);-8388607>a?(b=(0-a)/g+b,a=0):a>k&&(b=(this.eh-a)/g+b,a=this.eh);-8388607>e?f=(0-a)/g+b:e>k&&(f=(this.eh-a)/g+b);b=d.I.truncate(b);f=d.I.truncate(f);b!=f&&(e=new m,e.x=d.I.truncate(4294967296*a),e.y=b,e.G=f,e.pM=d.I.truncate(4294967296*g),e.dir=c,null==this.Vk&&(this.Vk=d.I.Lh(this.vj,null)),e.next=
this.Vk[e.y],this.Vk[e.y]=e,e.y<this.ku&&(this.ku=e.y),e.G>this.ju&&(this.ju=e.G),this.Cp++)}}};b.prototype.VJ=function(){if(null!=this.hh){for(var a=!1,b=null,e=this.hh;null!=e;)if(e.y++,e.y==e.G){var d=e,e=e.next;null!=b?b.next=e:this.hh=e;d.next=null}else e.x+=e.pM,null!=b&&b.x>e.x&&(a=!0),b=e,e=e.next;a&&(this.hh=this.dG(this.hh))}};b.prototype.PJ=function(a){if(!(a>=this.vj)){var b=this.Vk[a];if(null!=b){this.Vk[a]=null;b=this.dG(b);this.Cp-=this.eG;a=this.hh;for(var e=!0,d=b,h=null;null!=a&&
null!=d;)a.x>d.x?(e&&(this.hh=d),e=d.next,d.next=a,null!=h&&(h.next=d),h=d,d=e):(e=a.next,a.next=d,null!=h&&(h.next=a),h=a,a=e),e=!1;null==this.hh&&(this.hh=b)}}};b.Mz=function(a,b){return 0>a?0:a>b?b:a};b.prototype.vM=function(){if(null!=this.hh)for(var a=0,c=this.hh,e=d.I.truncate(d.I.FD(c.x)),f=c.next;null!=f;f=f.next)if(a=this.aC?a^1:a+f.dir,f.x>c.x){var h=d.I.truncate(d.I.FD(f.x));0!=a&&(c=b.Mz(e,this.eh),e=b.Mz(h,this.eh),e>c&&c<this.eh&&(this.am[this.Mk++]=c,this.am[this.Mk++]=e,this.am[this.Mk++]=
f.y,this.Mk==this.am.length&&(this.Kv.XB(this.am,this.Mk),this.Mk=0)));c=f;e=h}};b.prototype.dG=function(a){for(var c=0,e=a;null!=e;e=e.next)c++;this.eG=c;if(1==c)return a;null==this.wf?this.wf=d.I.Lh(Math.max(c,16),null):this.wf.length<c&&(this.wf=d.I.Lh(Math.max(c,2*this.wf.length),null));for(var f=0,e=a;null!=e;e=e.next)this.wf[f++]=e;2==c?this.wf[0].x>this.wf[1].x&&(a=this.wf[0],this.wf[0]=this.wf[1],this.wf[1]=a):b.pP(this.wf,c,function(a,b){return a==b?0:a.x<b.x?-1:a.x>b.x?1:0});a=this.wf[0];
this.wf[0]=null;e=a;for(f=1;f<c;f++)e.next=this.wf[f],e=this.wf[f],this.wf[f]=null;e.next=null;return a};b.pP=function(a,b,e){if(b==a.length)a.sort(e);else{var c=a.slice(0,0),d=a.slice(b);b=a.slice(0,b).sort(e);a.length=0;a.push.apply(a,c.concat(b).concat(d))}};b.$u=0;b.sT=1;return b}();d.ev=g})(p||(p={}));(function(d){var m=function(){function g(){}g.prototype.Jh=function(b,a){var c=this.a.Ra(b,this.vp);this.yk==c&&(this.yk=this.$d.bb(this.yk));this.Xm==c&&(this.Xm=this.$d.bb(this.Xm));this.$d.Jc(this.Ox,
c);this.hj(b);if(a&&(c=this.a.rd(b),-1!=c&&this.a.Cb(c)==b)){var e=this.a.X(b);if(e!=b){var d=this.a.rd(e);if(d==c){this.a.Dh(c,e);return}e=this.a.Ua(b);if(e!=b&&(d=this.a.rd(e),d==c)){this.a.Dh(c,e);return}}this.a.Dh(c,-1);this.a.Wi(c,-1)}};g.prototype.yA=function(){for(var b=!1,a=0,c=new d.b;;){a++;null==this.nh?(this.nh=new d.ga(0),this.Mq=new d.ga(0),this.ie=new d.ga(0)):(this.nh.clear(!1),this.Mq.clear(!1),this.ie.clear(!1));for(var e=this.Xm,f=0,h=!0;e!=this.yk;){var g=this.$d.getData(e),k=
new d.b;this.a.uc(g,k);h&&(this.a.uc(g,c),h=!1);var k=this.a.Ua(g),n=this.a.X(g);-559038737!=this.a.Ra(k,this.fg)&&(this.nh.add(k),this.a.lb(k,this.fg,-559038737),this.Mq.add(g),this.ie.add(f++));-559038737!=this.a.Ra(n,this.fg)&&(this.nh.add(n),this.a.lb(n,this.fg,-559038737),this.Mq.add(g),this.ie.add(f++));e=this.$d.bb(e)}if(2>this.nh.size)break;var m=this;this.ie.xd(0,this.ie.size,function(a,b){return m.mJ(a,b)});e=0;for(f=this.ie.size;e<f;e++)h=this.ie.get(e),h=this.nh.get(h),this.a.lb(h,this.fg,
e),k=new d.b,this.a.uc(h,k);k=this.zJ(c);e=0;for(f=this.ie.size;e<f;e++)h=this.ie.get(e),-1!=h&&(h=this.nh.get(h),this.a.lb(h,this.fg,-1));if(k)b=!0;else break}return b};g.prototype.zJ=function(b){for(var a=!1,c=!0;c;){var c=!1,e=0;-1==this.ie.get(e)&&(e=this.fl(e));for(var d=this.fl(e),h=0,g=this.ie.size;h<g&&-1!=e&&-1!=d&&e!=d;h++){var k=this.ie.get(e),d=this.ie.get(d),k=this.nh.get(k),d=this.nh.get(d),n=this.a.X(k);this.a.pt(n,b)||(n=this.a.Ua(k));var m=this.a.X(d);this.a.pt(m,b)||(m=this.a.Ua(d));
var q=this.os(n,k),p=this.os(m,d),w=q?this.a.Ua(n):this.a.X(n),t=p?this.a.Ua(m):this.a.X(m),x=!1;this.io(n)?x=!0:this.io(m)?x=!0:this.io(k)?x=!0:this.io(d)?x=!0:this.io(w)?x=!0:this.io(t)&&(x=!0);!x&&this.a.Cq(k,d)&&(x=!0,this.BA(q,p,n,k,m,d));!x&&this.a.Cq(w,t)&&(x=!0,this.BA(!q,!p,n,w,m,t));x&&(a=!0);c=c||x;e=this.fl(e);d=this.fl(e)}}if(!a)for(e=0,-1==this.ie.get(e)&&(e=this.fl(e)),d=this.fl(e),h=0,g=this.ie.size;h<g&&-1!=e&&-1!=d&&e!=d;h++)k=this.ie.get(e),d=this.ie.get(d),k=this.nh.get(k),d=this.nh.get(d),
n=this.a.X(k),this.a.pt(n,b)||(n=this.a.Ua(k)),m=this.a.X(d),this.a.pt(m,b)||(m=this.a.Ua(d)),q=this.os(n,k),p=this.os(m,d),w=q?this.a.Ua(n):this.a.X(n),t=p?this.a.Ua(m):this.a.X(m),this.qJ(q,p,k,n,w,d,m,t)&&(a=!0),e=this.fl(e),d=this.fl(e);return a};g.prototype.CJ=function(){1736==this.a.Lb(this.U)&&1==this.a.Cm(this.U)&&(new d.Of).DQ(this.Qt,this.a,this.U,this.oe);var b=!1,a=!0;this.fg=this.vp=-1;var c=this.a.F(this.U),e=new d.ga(0);e.xb(c);for(var f=this.a.Vb(this.U);-1!=f;f=this.a.bc(f))for(var h=
this.a.Cb(f),g=0,k=this.a.Ha(f);g<k;g++)e.add(h),h=this.a.X(h);var n=this.a.cd.f,m=this.a.cd.Ic;this.a.wb.kc();var q=this.a.wb.Ba[0].f;e.xd(0,c,function(a,b){var c=n[m*a],e=n[m*b],d=q[2*c],c=q[2*c+1],f=q[2*e],e=q[2*e+1],d=c<e?-1:c>e?1:d<f?-1:d>f?1:0;0==d&&(d=n[m*a+3],e=n[m*b+3],d=d<e?-1:d==e?0:1);return d});this.vp=this.a.re();this.$d=new d.$n;this.Ox=this.$d.jh(0);this.$d.$l(c);for(f=0;f<c;f++)h=e.get(f),g=this.$d.addElement(this.Ox,h),this.a.lb(h,this.vp,g);this.fg=this.a.re();this.yk=-1;for(this.sA()&&
(b=!0);a;){a=!1;c=0;e=!1;do{e=!1;this.Xm=-1;for(var k=0,f=new d.b,g=new d.b,p=this.$d.gc(this.Ox);-1!=p;)h=this.$d.getData(p),-1!=this.Xm?(this.a.uc(h,g),f.ub(g))?k++:(f.J(g),this.yk=p,0<k&&(h=this.yA())&&(e=!0,-1!=this.yk&&(h=this.$d.getData(this.yk),this.a.uc(h,f))),this.Xm=p=this.yk,k=0):(this.Xm=p,this.a.uc(this.$d.getData(p),f),k=0),-1!=p&&(p=this.$d.bb(p));this.yk=-1;0<k&&(h=this.yA())&&(e=!0);if(10<c++)throw d.g.wa();e&&this.tJ();this.sA()&&(e=!0);a=a||e&&!1;b=b||e}while(e)}this.a.bf(this.vp);
this.a.bf(this.fg);return b=d.AI.$(this.a,this.U,this.$d,this.Qt)||b};g.prototype.os=function(b,a){return this.a.X(a)==b?!1:!0};g.prototype.qJ=function(b,a,c,e,d,h,g,k){if(e==g)return this.hj(c),this.hj(h),!1;var f=this.a.Ra(c,this.fg),l=this.a.Ra(d,this.fg),m=this.a.Ra(h,this.fg),p=this.a.Ra(k,this.fg);c=[0,0,0,0,0,0,0,0];var w=[0,0,0,0];c[0]=0;w[0]=f;c[1]=0;w[1]=l;c[2]=1;w[2]=m;c[3]=1;w[3]=p;for(f=1;4>f;f++){l=w[f];m=c[f];for(p=f-1;0<=p&&w[p]>l;)w[p+1]=w[p],c[p+1]=c[p],p--;w[p+1]=l;c[p+1]=m}w=0;
0!=c[0]&&(w|=1);0!=c[1]&&(w|=2);0!=c[2]&&(w|=4);0!=c[3]&&(w|=8);if(5!=w&&10!=w)return!1;b==a?b?(this.a.Sc(k,e),this.a.Tc(e,k),this.a.Sc(d,g),this.a.Tc(g,d)):(this.a.Tc(k,e),this.a.Sc(e,k),this.a.Tc(d,g),this.a.Sc(g,d)):b?(this.a.Tc(e,h),this.a.Sc(h,e),this.a.Tc(g,d),this.a.Sc(d,g)):(this.a.Sc(e,h),this.a.Tc(h,e),this.a.Sc(g,d),this.a.Tc(d,g));return!0};g.prototype.BA=function(b,a,c,e,d,h){this.pU?this.BJ():this.AJ(b,a,c,e,d,h)};g.prototype.BJ=function(){throw d.g.ra("not implemented.");};g.prototype.AJ=
function(b,a,c,e,d,h){if(b!=a)b?(this.a.Sc(c,d),this.a.Tc(d,c),this.a.Sc(h,e),this.a.Tc(e,h),this.pm(d,c),this.Jh(d,!0),this.a.Ui(d,!0),this.hj(c),this.pm(h,e),this.Jh(h,!0),this.a.Ui(h,!1)):(this.a.Sc(d,c),this.a.Tc(c,d),this.a.Sc(e,h),this.a.Tc(h,e),this.pm(d,c),this.Jh(d,!0),this.a.Ui(d,!1),this.hj(c),this.pm(h,e),this.Jh(h,!0),this.a.Ui(h,!0)),this.hj(e);else{var f=b?c:e,g=a?d:h;b=b?e:c;a=a?h:d;d=!1;this.a.Sc(f,g);this.a.Sc(g,f);this.a.Tc(b,a);this.a.Tc(a,b);for(h=a;h!=g;)c=this.a.Ua(h),e=this.a.X(h),
this.a.Tc(h,e),this.a.Sc(h,c),d=d||h==f,h=e;d||(c=this.a.Ua(g),e=this.a.X(g),this.a.Tc(g,e),this.a.Sc(g,c));this.pm(g,f);this.Jh(g,!0);this.a.Ui(g,!1);this.hj(f);this.pm(a,b);this.Jh(a,!0);this.a.Ui(a,!1);this.hj(b)}};g.prototype.sA=function(){for(var b=!1,a=this.a.Vb(this.U);-1!=a;){for(var c=this.a.Cb(a),e=0,d=this.a.Ha(a);e<d&&1<d;){var h=this.a.Ua(c),g=this.a.X(c);this.a.Cq(h,g)?(b=!0,this.Jh(c,!1),this.a.vf(c,!0),this.Jh(g,!1),this.a.vf(g,!0),c=h,e=0,d=this.a.Ha(a)):(c=g,e++)}if(2>this.a.Ha(a)){b=
this.a.Cb(a);e=0;for(d=this.a.Ha(a);e<d;e++)this.Jh(b,!1),b=this.a.X(b);a=this.a.Cr(a);b=!0}else a=this.a.bc(a)}return b};g.prototype.io=function(b){for(var a=!1;;){var c=this.a.X(b),e=this.a.Ua(b);if(c==b)return this.Jh(b,!0),this.a.Ui(b,!1),!0;if(!this.a.Cq(c,e))break;a=!0;this.hj(e);this.hj(c);this.Jh(b,!0);this.a.Ui(b,!1);this.pm(c,e);this.Jh(c,!0);this.a.Ui(c,!0);if(c==e)break;b=e}return a};g.prototype.tJ=function(){for(var b=0,a=this.$d.gc(this.$d.Wd);-1!=a;a=this.$d.bb(a)){var c=this.$d.getData(a);
this.a.im(c,-1)}for(var e=0,d=this.a.Vb(this.U);-1!=d;)if(a=this.a.Cb(d),-1==a||-1!=this.a.rd(a))c=d,d=this.a.bc(d),this.a.yu(c);else{this.a.im(a,d);for(var h=1,c=this.a.X(a);c!=a;c=this.a.X(c))this.a.im(c,d),h++;this.a.Jr(d,!1);this.a.hm(d,h);this.a.Wi(d,this.a.Ua(a));e+=h;b++;d=this.a.bc(d)}for(a=this.$d.gc(this.$d.Wd);-1!=a;a=this.$d.bb(a))c=this.$d.getData(a),-1==this.a.rd(c)&&(d=this.a.aD(this.U,c,c,null),e+=this.a.Ha(d),b++);this.a.gm(this.U,b);this.a.Pk(this.U,e);b=0;for(e=this.a.$c;-1!=e;e=
this.a.we(e))b+=this.a.F(e);this.a.ZF(b)};g.prototype.fl=function(b){for(var a=0,c=this.ie.size-1;a<c;a++)if(b=(b+1)%this.ie.size,-1!=this.ie.get(b))return b;return-1};g.prototype.pm=function(b,a){var c=this.a.Ra(a,this.vp),e=this.a.Ra(a,this.fg);this.a.Zy(b,a);this.a.lb(a,this.vp,c);this.a.lb(a,this.fg,e)};g.prototype.hj=function(b){var a=this.a.Ra(b,this.fg);-1!=a&&(this.ie.set(a,-1),this.a.lb(b,this.fg,-1))};g.$=function(b,a,c,e,d){var f=new g;f.a=b;f.U=a;f.yx=c;f.Qt=e;f.oe=d;return f.CJ()};g.prototype.mJ=
function(b,a){var c=this.nh.get(b),e=new d.b;this.a.uc(c,e);var c=new d.b,f=this.nh.get(a);this.a.uc(f,c);if(e.ub(c))return 0;var h=this.Mq.get(b),f=new d.b;this.a.uc(h,f);var g=this.Mq.get(a),h=new d.b;this.a.uc(g,h);g=new d.b;g.pc(e,f);e=new d.b;e.pc(c,h);return d.b.cq(g,e)};return g}();d.mm=m})(p||(p={}));(function(d){(function(d){d[d.Local=0]="Local";d[d.Geographic=1]="Geographic";d[d.Projected=2]="Projected";d[d.Unknown=3]="Unknown"})(d.HI||(d.HI={}));(function(d){d[d.Integer32=0]="Integer32";
d[d.Integer64=1]="Integer64";d[d.FloatingPoint=2]="FloatingPoint"})(d.rI||(d.rI={}));var m=function(){function g(){this.fo="";this.mi=0;this.Sl=null}g.prototype.Qc=function(){return this.mi};g.prototype.Ko=function(){var b=.001;0!=this.mi?b=d.ls.SM(this.mi):null!=this.Sl&&(b=d.mA.TM(this.Sl));return b};g.prototype.Se=function(){if(0!=this.mi)return d.Tb.Qd(d.ls.cC(this.mi));if(null!=this.Sl)return d.mA.UM(this.Sl)};g.Am=function(b){if(0!=b.mi){if(!0===d.ls.WO(b.mi))return 1;if(!0===d.ls.ZO(b.mi))return 2}return 3};
g.create=function(b){if(0>=b)throw d.g.N("Invalid or unsupported wkid: "+b);var a=new g;a.mi=b;return a};g.NL=function(b){if(null==b||0==b.length)throw d.g.N("Cannot create SpatialReference from null or empty text.");var a=new g;a.Sl=b;return a};g.prototype.lc=function(b){return this==b?!0:null==b||this.constructor!=b.constructor||this.mi!=b.mi||0==this.mi&&this.Sl!==b.Sl?!1:!0};g.mN=function(b,a){var c=Math.PI/180,e=new d.ca;d.nH.pN(b.w().x*c,b.w().y*c,a.w().x*c,a.w().y*c,e);return e.l};g.prototype.toString=
function(){return"[ tol: "+this.xq()+"; wkid: "+this.Qc()+"; wkt: "+this.Sl+"]"};g.prototype.hc=function(){if(""!==this.fo)return this.fo;var b=this.toString();if(Array.prototype.reduce)return this.fo="S"+b.split("").reduce(function(a,b){a=(a<<5)-a+b.charCodeAt(0);return a&a},0);var a=0;if(0===b.length)return"";for(var c=0;c<b.length;c++)a=(a<<5)-a+b.charCodeAt(c),a&=a;return this.fo="S"+a};g.prototype.xq=function(){return this.Ko()};g.jU=!0;g.ET=2147483645;g.FT=9007199254740990;return g}();d.Nf=
m})(p||(p={}));(function(d){function m(a,b){89.99999<b?b=89.99999:-89.99999>b&&(b=-89.99999);var c=.017453292519943*b;return[111319.49079327169*a,3189068.5*Math.log((1+Math.sin(c))/(1-Math.sin(c)))]}function g(a,b,c){a=a/6378137*57.29577951308232;return c?[a,57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*b/6378137)))]:[a-360*Math.floor((a+180)/360),57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*b/6378137)))]}function b(a,b){var c=a.vm();if(33===a.D()){var e=b(c.lk(),
c.mk());c.ic(e[0],e[1])}else if(197===a.D()){var e=b(a.R.v,a.R.C,!0),f=b(a.R.B,a.R.G,!0);c.K(e[0],e[1],f[0],f[1])}else for(e=new d.b,f=0;f<c.F();f++){c.w(f,e);var h=b(e.x,e.y,!0);e.ma(h[0],h[1]);c.ic(f,e)}return c}function a(a){return b(a,g)}function c(a){return b(a,m)}var e=function(){function a(){}a.Xr=function(a){var b=Math.PI/180,c=Math.sin(a.y*b);return d.b.Oa(6378137*a.x*b,3167719.6636462314*(c/(1-.006694379990197414*c*c)-6.111035746609262*Math.log((1-.0818191908429643*c)/(1+.0818191908429643*
c))))};a.Wu=function(a,b,c,e){var f=1/298.257223563,h=Math.sin(c);c=Math.cos(c);var g=(1-f)*Math.tan(a);a=1/Math.sqrt(1+g*g);for(var k=g*a,l=Math.atan2(g,c),g=a*h*a*h,m=1-g,n=2.7233160610754688E11*m/4.040829998466145E13,p=1+n/16384*(4096+n*(-768+n*(320-175*n))),A=n/1024*(256+n*(-128+n*(74-47*n))),n=e/(6356752.31424518*p),y=2*Math.PI,z,B,D,E;1E-12<Math.abs(n-y);)D=Math.cos(2*l+n),z=Math.sin(n),B=Math.cos(n),E=A*z*(D+A/4*(B*(-1+2*D*D)-A/6*D*(-3+4*z*z)*(-3+4*D*D))),y=n,n=e/(6356752.31424518*p)+E;e=k*
z-a*B*c;m=f/16*m*(4+f*(4-3*m));return d.b.Oa((b+(Math.atan2(z*h,a*B-k*z*c)-(1-m)*f*Math.sqrt(g)*(n+m*z*(D+m*B*(-1+2*D*D)))))/(Math.PI/180),Math.atan2(k*B+a*z*c,(1-f)*Math.sqrt(g+e*e))/(Math.PI/180))};a.cN=function(a,b,c,e){var d=1/298.257223563,f=e-b,h=Math.atan((1-d)*Math.tan(a)),g=Math.atan((1-d)*Math.tan(c)),k=Math.sin(h),h=Math.cos(h),l=Math.sin(g),g=Math.cos(g),n=f,m,p=1E3,y,z,B,D,E,G,F;do{B=Math.sin(n);D=Math.cos(n);z=Math.sqrt(g*B*g*B+(h*l-k*g*D)*(h*l-k*g*D));if(0===z)return 0;D=k*l+h*g*D;
E=Math.atan2(z,D);G=h*g*B/z;y=1-G*G;B=D-2*k*l/y;isNaN(B)&&(B=0);F=d/16*y*(4+d*(4-3*y));m=n;n=f+(1-F)*d*G*(E+F*z*(B+F*D*(-1+2*B*B)))}while(1E-12<Math.abs(n-m)&&0<--p);if(0===p)return k=e-b,{azimuth:Math.atan2(Math.sin(k)*Math.cos(c),Math.cos(a)*Math.sin(c)-Math.sin(a)*Math.cos(c)*Math.cos(k)),geodesicDistance:6371009*Math.acos(Math.sin(a)*Math.sin(c)+Math.cos(a)*Math.cos(c)*Math.cos(e-b))};a=2.7233160610754688E11*y/4.040829998466145E13;b=a/1024*(256+a*(-128+a*(74-47*a)));return{azimuth:Math.atan2(g*
Math.sin(n),h*l-k*g*Math.cos(n)),lN:6356752.31424518*(1+a/16384*(4096+a*(-768+a*(320-175*a))))*(E-b*z*(B+b/4*(D*(-1+2*B*B)-b/6*B*(-3+4*z*z)*(-3+4*B*B)))),yU:Math.atan2(h*Math.sin(n),h*l*Math.cos(n)-k*g)}};a.oT=function(a){var b=a.hasAttribute(1),c=a.hasAttribute(2),e=[],f=a.ea(),h=null,g=null;b&&(h=a.mc(1));c&&(g=a.mc(2));for(var m=new d.b,p=0;p<f;p++){for(var x=a.Ea(p),v=a.Ha(p),C=0,A=0,y=NaN,z=NaN,B=NaN,D=NaN,E=a.vc(p),G=[],F=x;F<x+v;F++){a.w(F,m);var D=B=NaN,H=[m.x,m.y];b&&(B=h.get(F),H.push(B));
c&&(f=g.get(F),H.push(D));F==x&&E&&(C=m.x,A=m.y,y=B,z=D);G.push(H)}!E||C==m.x&&A==m.y&&(!b||isNaN(y)&&isNaN(B)||y==B)&&(!c||isNaN(z)&&isNaN(D)||z==D)||G.push(G[0].slice(0));e.push(G)}return e};a.fw=function(b,c){var e=a.oT(b),d=Math.PI/180;637.100877151506>c&&(c=637.100877151506);for(var f=[],h=0;h<e.length;h++){var g=e[h],l;f.push(l=[]);l.push([g[0][0],g[0][1]]);var m,p,v,C,A,y;m=g[0][0]*d;p=g[0][1]*d;for(A=0;A<g.length-1;A++)if(v=g[A+1][0]*d,C=g[A+1][1]*d,m!==v||p!==C){C=a.cN(p,m,C,v);v=C.azimuth;
C=C.lN;var z=C/c;if(1<z){for(y=1;y<=z-1;y++){var B=a.Wu(p,m,v,y*c);l.push([B.x,B.y])}y=a.Wu(p,m,v,(C+Math.floor(z-1)*c)/2);l.push([y.x,y.y])}p=a.Wu(p,m,v,C);l.push([p.x,p.y]);m=p.x*d;p=p.y*d}}return{mF:f}};a.kN=function(b){for(var c=[],e=0;e<b.length;e++){var f=b[e],f=a.fw(f,1E4);c.push(f)}b=[];for(var h,g,m=0;m<c.length;m++){for(var f=c[m],p=0,e=0;e<f.mF.length;e++){var t=f.mF[e];h=a.Xr(d.b.Oa(t[0][0],t[0][1]));g=a.Xr(d.b.Oa(t[t.length-1][0],t[t.length-1][1]));var x=g.x*h.y-h.x*g.y,v;for(v=0;v<t.length-
1;v++)h=a.Xr(d.b.Oa(t[v+1][0],t[v+1][1])),g=a.Xr(d.b.Oa(t[v][0],t[v][1])),x+=g.x*h.y-h.x*g.y;x/=4046.87;p+=x}b.push(p/-2*4046.85642)}return b};return a}();d.oH=e;e=function(){function b(){}b.oy=function(a,c,e,d,f,g,m){b.AG[a.hc()]=c;0==isNaN(e)&&(b.CG[a.hc()]=e);0==isNaN(d)&&(b.iz[a.hc()]=d);0==isNaN(f)&&(b.lG[a.hc()]=f);b.EG[a.hc()]=g;null!==m&&(b.GG[a.hc()]=m)};b.xu=function(a,c,e){b.IG[a.hc()+"-"+c.hc()]=e};b.Em=function(a){a=b.AG[a.hc()];if(void 0==a)throw d.g.qe();return a};b.IC=function(a){a=
b.CG[a.hc()];if(void 0==a)throw d.g.qe();return a};b.ft=function(a){a=b.iz[a.hc()];if(void 0==a)throw d.g.qe();return a};b.Ts=function(a){a=b.lG[a.hc()];if(void 0==a)throw d.g.qe();return a};b.Fm=function(a){a=b.GG[a.hc()];if(void 0==a)throw d.g.qe();return d.i.Oa(a[0],a[1],a[2],a[3])};b.Qo=function(a){a=b.EG[a.hc()];if(void 0==a)throw d.g.qe();return a};b.Wl=function(a,c,e){if(c.lc(e))return a;var f=b.IG[c.hc()+"-"+e.hc()];if(void 0!==f)return f(a,c,e);throw d.g.qe();};b.tu=function(){throw d.g.qe();
};b.qN=function(){throw d.g.qe();};b.YQ=function(){throw d.g.qe();};b.TN=function(){throw d.g.qe();};b.qR=function(){var b=d.Nf.create(102100),e=d.Nf.create(3857),f=d.Nf.create(4326);d.Ya.oy(b,f,NaN,NaN,NaN,!1,null);d.Ya.oy(f,f,1,.0033528106647474805,6378137,!0,[-180,-90,180,90]);d.Ya.oy(e,f,NaN,NaN,NaN,!1,null);d.Ya.xu(b,f,a);d.Ya.xu(f,b,c);d.Ya.xu(e,f,a);d.Ya.xu(f,e,c)};b.AG=[];b.CG=[];b.iz=[];b.lG=[];b.EG=[];b.GG=[];b.IG=[];return b}();d.Ya=e})(p||(p={}));p.Ya.qR();(function(d){var m=function(){function g(b){this.f=
null;this.qg=-1;this.Xc=this.size=this.We=0;this.Ic=b}g.prototype.Jc=function(b){b<this.We?(this.f[b*this.Ic]=this.qg,this.qg=b):this.We--;this.size--};g.prototype.O=function(b,a){return this.f[b*this.Ic+a]};g.prototype.L=function(b,a,c){this.f[b*this.Ic+a]=c};g.prototype.be=function(){var b=this.qg;if(-1==b){if(this.We==this.Xc){b=0!=this.Xc?d.I.truncate(3*(this.Xc+1)/2):1;2147483647<b&&(b=2147483647);if(b==this.Xc)throw d.g.Uc();this.Gm(b)}b=this.We;this.We++}else this.qg=this.f[b*this.Ic];this.size++;
for(var a=b*this.Ic+this.Ic,c=b*this.Ic;c<a;c++)this.f[c]=-1;return b};g.prototype.Pj=function(b){var a=this.qg;if(-1==a){if(this.We==this.Xc){a=0!=this.Xc?d.I.truncate(3*(this.Xc+1)/2):1;2147483647<a&&(a=2147483647);if(a==this.Xc)throw d.g.Uc();this.Gm(a)}a=this.We;this.We++}else this.qg=this.f[a*this.Ic];this.size++;for(var c=a*this.Ic,e=this.Ic,f=0;f<e;f++)this.f[c+f]=b[f];return a};g.prototype.Nh=function(b){this.qg=-1;this.size=this.We=0;b&&(this.f=null,this.Xc=0)};g.prototype.de=function(b){b>
this.Xc&&this.Gm(b)};g.prototype.Pu=function(b,a,c){var e=this.f[this.Ic*a+c];this.f[this.Ic*a+c]=this.f[this.Ic*b+c];this.f[this.Ic*b+c]=e};g.Zk=function(){return-2};g.lm=function(){return-3};g.Zw=function(b){return 0<=b};g.prototype.Gm=function(b){null==this.f&&(this.f=[]);this.Xc=b};return g}();d.Fc=m;m=function(){function g(b){this.f=new Int32Array(0);this.qg=-1;this.Xc=this.size=this.We=0;this.Ic=b}g.prototype.Jc=function(b){b<this.We?(this.f[b*this.Ic]=this.qg,this.qg=b):this.We--;this.size--};
g.prototype.O=function(b,a){return this.f[b*this.Ic+a]};g.prototype.L=function(b,a,c){this.f[b*this.Ic+a]=c};g.prototype.be=function(){var b=this.qg;if(-1==b){if(this.We==this.Xc){b=0!=this.Xc?d.I.truncate(3*(this.Xc+1)/2):1;2147483647<b&&(b=2147483647);if(b==this.Xc)throw d.g.Uc();this.Gm(b)}b=this.We;this.We++}else this.qg=this.f[b*this.Ic];this.size++;for(var a=b*this.Ic;a<b*this.Ic+this.Ic;a++)this.f[a]=-1;return b};g.prototype.Pj=function(b){var a=this.qg;if(-1==a){if(this.We==this.Xc){a=0!=
this.Xc?d.I.truncate(3*(this.Xc+1)/2):1;2147483647<a&&(a=2147483647);if(a==this.Xc)throw d.g.Uc();this.Gm(a)}a=this.We;this.We++}else this.qg=this.f[a*this.Ic];this.size++;for(var c=a*this.Ic,e=0;e<b.length;e++)this.f[c+e]=b[e];return a};g.prototype.Nh=function(b){this.qg=-1;this.size=this.We=0;b&&(this.f=null,this.Xc=0)};g.prototype.de=function(b){b>this.Xc&&this.Gm(b)};g.prototype.Pu=function(b,a,c){var e=this.f[this.Ic*a+c];this.f[this.Ic*a+c]=this.f[this.Ic*b+c];this.f[this.Ic*b+c]=e};g.Zk=function(){return-2};
g.lm=function(){return-3};g.Zw=function(b){return 0<=b};g.prototype.Gm=function(b){null==this.f&&(this.f=new Int32Array(0));var a=new Int32Array(this.Ic*b);a.set(this.f,0);this.f=a;this.Xc=b};return g}();d.II=m;!0===d.ah.Sk&&(d.Fc=d.II)})(p||(p={}));(function(d){var m;(function(a){a[a.enumInputModeBuildGraph=0]="enumInputModeBuildGraph";a[a.enumInputModeSimplifyAlternate=4]="enumInputModeSimplifyAlternate";a[a.enumInputModeSimplifyWinding=5]="enumInputModeSimplifyWinding";a[a.enumInputModeIsSimplePolygon=
7]="enumInputModeIsSimplePolygon"})(m||(m={}));var g=function(){function a(a){this.me=a;this.Zg=NaN;this.LD=new d.Ag;this.MD=new d.Ag;this.Aq=new d.Nd;this.Bq=new d.Nd}a.prototype.compare=function(a,b,d){a=a.da(d);this.me.iy(b,this.LD);this.me.iy(a,this.MD);b=this.LD.get();a=this.MD.get();this.Aq.K(b.na,b.la);this.Bq.K(a.na,a.la);if(this.Aq.va<this.Bq.qa)return-1;if(this.Aq.qa>this.Bq.va)return 1;d=b.ja==b.ha;var c=a.ja==a.ha;if(d||c){if(d&&c)return 0;if(b.ja==a.ja&&b.na==a.na)return d?1:-1;if(b.ha==
a.ha&&b.la==a.la)return d?-1:1}d=b.xe(this.Zg,this.Aq.qa);c=a.xe(this.Zg,this.Bq.qa);d==c&&(d=Math.min(b.ha,a.ha),c=.5*(d+this.Zg),c==this.Zg&&(c=d),d=b.xe(c,this.Aq.qa),c=a.xe(c,this.Bq.qa));return d<c?-1:d>c?1:0};a.prototype.$F=function(a){this.Zg=a};return a}(),b=function(){function a(a){this.ab=a;this.uE=new d.Ag;this.nf=new d.b;this.xx=new d.Nd}a.prototype.eS=function(a){this.nf.J(a)};a.prototype.compare=function(a,b){this.ab.iy(a.da(b),this.uE);var c=this.uE.get();this.xx.K(c.na,c.la);if(this.nf.x<
this.xx.qa)return-1;if(this.nf.x>this.xx.va)return 1;c=c.xe(this.nf.y,this.nf.x);return this.nf.x<c?-1:this.nf.x>c?1:0};return a}();m=function(){function a(){this.OD=this.Vh=this.Yh=this.px=this.Pm=this.je=this.xc=this.Ig=this.Td=null;this.sn=this.eg=-1;this.ND=!0;this.tx=!1;this.qx=NaN;this.ei=new d.wd;this.EK=2147483647;this.DK=d.I.truncate(-2147483648);this.Kf=this.Md=this.Ek=this.lp=this.Bl=this.kp=this.Zq=this.Be=-1;this.ta=0}a.prototype.Mv=function(a){this.qx=a};a.prototype.Ul=function(){null==
this.Td&&(this.Td=new d.Fc(8));var a=this.Td.be();this.Td.L(a,1,0);return a};a.prototype.kQ=function(){null==this.xc&&(this.xc=new d.Fc(8));var a=this.xc.be();this.xc.L(a,2,0);this.xc.L(a,3,0);var b=this.xc.be();this.xc.L(b,2,0);this.xc.L(b,3,0);this.GF(a,b);this.GF(b,a);return a};a.prototype.FE=function(){null==this.je&&(this.je=new d.Fc(8));var a=this.je.be();this.je.L(a,2,0);return a};a.prototype.QR=function(a,b){this.Td.L(a,7,b)};a.prototype.em=function(a,b){this.Td.L(a,2,b)};a.prototype.PR=function(a,
b){this.Td.L(a,1,b)};a.prototype.fS=function(a,b){this.Td.L(a,3,b)};a.prototype.cS=function(a,b){this.Td.L(a,4,b)};a.prototype.Lp=function(a,b){this.Td.L(a,5,b)};a.prototype.uN=function(a){return this.Td.O(a,5)};a.prototype.OR=function(a,b){this.Td.L(a,6,b)};a.prototype.IJ=function(a,b){this.OR(b,a)};a.prototype.FF=function(a,b){this.xc.L(a,1,b)};a.prototype.GF=function(a,b){this.xc.L(a,4,b)};a.prototype.Rk=function(a,b){this.xc.L(a,5,b)};a.prototype.Qk=function(a,b){this.xc.L(a,6,b)};a.prototype.VR=
function(a,b){this.xc.L(a,2,b)};a.prototype.Du=function(a,b){this.xc.L(a,3,b)};a.prototype.zC=function(a){return this.xc.O(a,3)};a.prototype.Ir=function(a,b){this.xc.L(a,7,b)};a.prototype.zG=function(a,b){if(-1!=this.ql(a))for(var c=b?-1:a,e=this.ql(a);-1!=e;e=this.zq(e))this.a.lb(this.Gi(e),this.lp,c)};a.prototype.Tu=function(a,b){-1!=a&&(this.zG(a,b),this.zG(this.sa(a),b))};a.prototype.Gr=function(a,b){this.je.L(a,1,b)};a.prototype.yg=function(a,b){this.je.L(a,2,b)};a.prototype.cm=function(a,b){this.je.L(a,
3,b);this.LR(a,this.tN(b));this.KR(b,a)};a.prototype.KR=function(a,b){this.je.L(a,4,b)};a.prototype.LR=function(a,b){this.je.L(a,5,b)};a.prototype.AF=function(a,b){this.je.L(a,6,b)};a.prototype.yF=function(a,b){this.je.L(a,7,b)};a.prototype.xF=function(a,b){this.Pm.write(a,b)};a.prototype.zF=function(a,b){this.px.write(a,b)};a.prototype.bT=function(a){var b=0,c=0,h=this.pC(a),g=new d.b,k=new d.b,m=new d.b;this.tq(h,g);k.J(g);var p=h;do this.pl(p,m),c+=d.b.Fb(k,m),this.Pe(this.sa(p))!=a&&(b+=(m.x-
g.x-(k.x-g.x))*(m.y-g.y+(k.y-g.y))*.5),k.J(m),p=this.Wb(p);while(p!=h);this.Pm.write(a,b);this.px.write(a,c)};a.prototype.GQ=function(a){var c=new g(this),f=new d.bj;f.de(d.I.truncate(this.ta/2));f.Hn(c);for(var h=new d.ga(0),l=this.Eg(),k=null,m=0,p=new d.b,q=this.Be;-1!=q;q=this.Bf(q)){m++;var r=this.te(q);if(-1!=r){h.cf(0);if(!this.VS(f,l,h,r)){this.w(q,p);c.$F(p.y);var w=r;do{var t=this.tb(w,l);-1!=t&&(f.kd(t,-1),this.Bb(w,l,-2));w=this.Wb(this.sa(w))}while(r!=w);w=r;do t=this.tb(w,l),-1==t&&
(t=f.addElement(w,-1),h.add(t)),w=this.Wb(this.sa(w));while(r!=w)}for(r=h.size-1;0<=r;r--)t=h.get(r),w=f.da(t),this.Bb(this.sa(w),l,t),this.FQ(f,t,a)}else-1==this.mw(q)&&(null==k&&(k=new b(this)),this.w(q,p),k.eS(p),w=f.GR(k),r=this.Ek,-1!=w&&(t=f.da(w),this.Pe(t)==this.Pe(this.sa(t))&&(t=this.BC(f,w)),-1!=t&&(r=this.Pe(t))),this.IJ(r,q))}this.kh(l)};a.prototype.FQ=function(a,b,d){var c=a.da(b),e=this.Pe(c);if(-1==this.ym(e)){var f=this.BC(a,b),g=this.sa(c),m=this.Pe(g);this.yo(e);this.yo(m);var p=
this.ym(e),r=this.ym(m);-1==f&&-1==p&&(m==e?(this.cm(m,this.Ek),p=r=this.Ek):(-1==r&&(this.cm(m,this.Ek),r=this.Ek),this.cm(e,m),p=m));if(-1!=f){var w=this.Pe(f);-1==r&&(0>=this.yo(w)?(r=this.ym(w),this.cm(m,r)):(this.cm(m,w),r=w),m==e&&(p=r))}-1==p&&this.WS(e,m);0==d?this.aR(a,b,c,f,e,m):5==d?this.bR(a,b,c,g,e,m):4==d&&this.$Q(c,f,e,m)}};a.prototype.aR=function(a,b,d,h,g,k){var c=this.pj(g);if(-1!=h){var e=this.pj(k),f=this.pj(this.Pe(h));h=c&e&f;f^=f&this.Gg(d);f|=h;0!=f&&(this.yg(k,e|f),this.yg(g,
f|c),c=c||f)}for(b=a.bb(b);-1!=b;b=a.bb(b)){h=a.da(b);d=this.Pe(this.sa(h));g=this.pj(d);k=this.Gg(h);e=this.Pe(h);f=this.pj(e);h=g&f&c;c^=c&k;c|=h;if(0==c)break;this.yg(d,g|c);this.yg(e,f|c)}};a.prototype.bR=function(a,b,f,h,g,k){if(g!=k){f=this.tb(f,this.Kf);f+=this.tb(h,this.Kf);h=0;var c=new d.ga(0),e=new d.ga(0);e.add(0);for(var l=a.gc(-1);l!=b;l=a.bb(l)){var m=a.da(l),p=this.sa(m),t=this.Pe(m),x=this.Pe(p);if(t!=x){m=this.tb(m,this.Kf);m+=this.tb(p,this.Kf);h+=m;p=!1;0!=c.size&&c.tc()==x&&(e.af(),
c.af(),p=!0);if(-1==this.ym(x))throw d.g.wa();p&&this.ym(x)==t||(e.add(h),c.add(t))}}h+=f;0!=c.size&&c.tc()==k&&(e.af(),c.af());0!=h?0==e.tc()&&(a=this.a.$c,a=this.ya(a),this.yg(g,a)):0!=e.tc()&&(a=this.a.$c,a=this.ya(a),this.yg(g,a))}};a.prototype.$Q=function(a,b,d,h){var c=this.ya(this.a.$c);if(-1==b)this.yg(h,this.sn),a=this.tb(a,this.eg),0!=(a&1)?this.yg(d,c):this.yg(d,this.sn);else{var e=this.pj(h);0==e&&(e=this.pj(this.Pe(b)),this.yg(h,e));a=this.tb(a,this.eg);0!=(a&1)?this.yg(d,e==c?this.sn:
c):this.yg(d,e)}};a.prototype.VS=function(a,b,d,h){var c=h,e=-1,f=-1,g=0;do{if(2==g)return!1;var m=this.tb(c,b);if(-1!=m){if(-1!=e)return!1;e=m}else{if(-1!=f)return!1;f=c}g++;c=this.Wb(this.sa(c))}while(h!=c);if(-1==f||-1==e)return!1;this.Bb(a.da(e),b,-2);a.Vi(e,f);d.add(e);return!0};a.prototype.WS=function(a,b){var c=this.yo(a);if(0!=c){var e=this.yo(b);0<c&&0>e?this.cm(a,b):0>c&&0<e?this.cm(a,b):(c=this.ym(b),-1!=c&&this.cm(a,c))}};a.prototype.RL=function(a,b){this.lp=this.a.re();for(var c=0,e=
b.size;c<e;c++){var g=b.get(c),k=this.a.Ra(g,this.Bl),m=this.a.Vf(this.a.rd(g)),p=this.a.Lb(m);if(d.T.Kc(p)){var q=this.a.X(g);if(-1!=q){var r=this.a.Ra(q,this.Bl);if(k!=r){var w=this.kQ(),t=this.sa(w),x=this.Ig.be();this.Ig.L(x,0,g);this.Ig.L(x,1,-1);this.Ir(w,x);this.FF(w,k);x=this.te(k);-1==x?(this.em(k,w),this.Rk(w,t),this.Qk(t,w)):(k=this.fe(x),this.Rk(x,t),this.Qk(t,x),this.Qk(k,w),this.Rk(w,k));this.FF(t,r);k=this.te(r);-1==k?(this.em(r,t),this.Qk(w,t),this.Rk(t,w)):(r=this.fe(k),this.Rk(k,
w),this.Qk(w,k),this.Qk(r,t),this.Rk(t,r));m=this.ya(m);0==a?(this.Bb(t,this.Md,0),this.Bb(w,this.Md,1736==p?m:0)):5==a?(r=new d.b,this.a.w(g,r),g=new d.b,this.a.w(q,g),k=q=0,0>r.compare(g)?q=1:k=-1,this.Bb(t,this.Md,0),this.Bb(w,this.Md,0),this.Bb(w,this.Kf,q),this.Bb(t,this.Kf,k)):7==a?(this.Bb(t,this.Md,this.sn),this.Bb(w,this.Md,1736==p?m:0)):4==a&&(this.Bb(t,this.Md,0),this.Bb(w,this.Md,0),this.Bb(w,this.eg,1),this.Bb(t,this.eg,1));p=1736==p?this.DK:0;this.Du(w,m|p);this.Du(t,m|p)}}}}};a.prototype.ZP=
function(a,b){var c=this.ql(b);if(-1!=c){var e=this.ql(a);this.Ig.L(c,1,e);this.Ir(a,c);this.Ir(b,-1)}var d=this.sa(a),g=this.sa(b),c=this.ql(g);-1!=c&&(e=this.ql(d),this.Ig.L(c,1,e),this.Ir(d,c),this.Ir(g,-1))};a.prototype.AS=function(a){function b(a,b){return h.lL(a,b)}var c=new d.ga(0);c.xb(10);for(var h=this,g=this.Be;-1!=g;g=this.Bf(g)){c.clear(!1);var k=this.te(g);if(-1!=k){var m=k;do c.add(m),m=this.Wb(this.sa(m));while(m!=k);if(1<c.size){m=!0;if(2<c.size)c.xd(0,c.size,b),c.add(c.get(0));else if(0<
this.kL(c.get(0),c.get(1))){var p=c.get(0);c.set(0,c.get(1));c.set(1,p)}else m=!1;for(var q=p=c.get(0),r=this.jf(q),w=this.sa(q),t=-1,x=1,v=c.size;x<v;x++){var C=c.get(x),A=this.sa(C),y=this.qj(A);if(y==r&&C!=q){if(0==a)t=this.zC(q)|this.zC(C),this.Du(q,t),this.Du(w,t),this.Bb(q,this.Md,this.tb(q,this.Md)|this.tb(C,this.Md)),this.Bb(w,this.Md,this.tb(w,this.Md)|this.tb(A,this.Md));else if(-1!=this.Kf)t=this.tb(q,this.Kf)+this.tb(C,this.Kf),A=this.tb(w,this.Kf)+this.tb(A,this.Kf),this.Bb(q,this.Kf,
t),this.Bb(w,this.Kf,A);else{if(7==a){this.ei=new d.wd(5,g,-1);return}-1!=this.eg&&(t=this.tb(q,this.eg)+this.tb(C,this.eg),A=this.tb(w,this.eg)+this.tb(A,this.eg),this.Bb(q,this.eg,t),this.Bb(w,this.eg,A))}this.ZP(q,C);this.Wv(C);t=q;c.set(x,-1);C==p&&(c.set(0,-1),p=-1)}else this.Tu(t,!1),t=-1,q=C,r=y,w=A}this.Tu(t,!1);t=-1;if(m){p=-1;x=0;for(v=c.size;x<v;x++)if(C=c.get(x),-1!=C)if(-1==p)q=p=C,r=this.jf(q),w=this.sa(q);else if(C!=q&&(A=this.sa(C),y=this.qj(A),this.Qk(w,C),this.Rk(C,w),q=C,r=y,w=
A,7==a&&(this.tb(C,this.Md)|this.tb(this.fe(C),this.Md))==(this.sn|1))){this.ei=new d.wd(5,g,-1);return}this.em(g,p)}else{p=-1;x=0;for(v=c.size;x<v;x++)if(C=c.get(x),-1!=C){p=C;break}k!=p&&this.em(g,p)}}}}};a.prototype.AK=function(){for(var a=-1,b=this.Eg(),f=this.Be;-1!=f;f=this.Bf(f)){var h=this.te(f);if(-1!=h){var g=h;do{if(1!=this.tb(g,b)){var k=this.FE();this.Gr(k,g);this.yF(k,a);-1!=a&&this.AF(a,k);var a=k,m=0,p=g;do m|=this.tb(p,this.Md),this.VR(p,k),this.Bb(p,b,1),p=this.Wb(p);while(p!=g);
this.yg(k,m)}g=this.Wb(this.sa(g))}while(g!=h)}}k=this.FE();this.Gr(k,-1);this.yF(k,a);-1!=a&&this.AF(a,k);this.Ek=k;this.Pm=d.qd.Yc(this.je.size,NaN);this.px=d.qd.Yc(this.je.size,NaN);this.xF(this.Ek,Infinity);this.zF(this.Ek,Infinity);this.kh(b)};a.prototype.EN=function(a,b,d){b=-1!=b?b:this.te(a);if(-1==b)return-1;for(a=b;;){if(1!=this.tb(b,d))return b;b=this.Wb(this.sa(b));if(b==a)return-1}};a.prototype.uR=function(){for(var a=this.Eg(),b=this.Be;-1!=b;b=this.Bf(b))for(var d=-1;;){var h=this.EN(b,
d,a);if(-1==h)break;for(var d=this.Wb(this.sa(h)),g=h;;){var k=this.Wb(g),m=this.fe(g),p=this.sa(g);if(m==p){this.bM(g);if(d==g||d==p)d=-1;if(g==h||m==h){h=k;if(g==h||m==h)break;g=k;continue}}else this.Bb(g,a,1);g=k;if(g==h)break}}};a.prototype.Ay=function(a,b,f,h){this.xg();this.ND=h;this.a=a;this.kp=this.a.RB();a=new d.ga(0);a.xb(null!=f?this.a.F(f.get(0)):this.a.pd);var c=0,e=1,g=null!=f?f.get(0):this.a.$c;for(h=1;-1!=g;){this.a.EF(g,this.kp,e);for(var e=e<<1,m=this.a.Vb(g);-1!=m;m=this.a.bc(m))for(var p=
this.a.Cb(m),r=0,w=this.a.Ha(m);r<w;r++)a.add(p),p=this.a.X(p);d.T.Km(this.a.Lb(g))||(c+=this.a.ea(g));null!=f?(g=h<f.size?f.get(h):-1,h++):g=this.a.we(g)}this.sn=e;this.ta=a.size;this.a.Mu(a,this.ta);null==this.Ig&&(this.Ig=new d.Fc(2),this.Td=new d.Fc(8),this.xc=new d.Fc(8),this.je=new d.Fc(8));this.Ig.de(this.ta);this.Td.de(this.ta+10);this.xc.de(2*this.ta+32);this.je.de(Math.max(32,c));this.Bl=this.a.re();f=new d.b;h=0;c=new d.b;f.Eh();for(e=0;e<=this.ta;e++)if(e<this.ta?(p=a.get(e),this.a.w(p,
c)):c.Eh(),!f.ub(c)){if(h<e){p=this.Ul();for(w=r=-1;h<e;h++)w=a.get(h),this.a.lb(w,this.Bl,p),g=this.Ig.be(),this.Ig.L(g,0,w),this.Ig.L(g,1,r),r=g,m=this.a.rd(w),g=this.a.Vf(m),g=this.ya(g),this.PR(p,this.md(p)|g);this.QR(p,r);this.Lp(p,this.a.gb(w));-1!=this.Zq&&this.cS(this.Zq,p);this.fS(p,this.Zq);this.Zq=p;-1==this.Be&&(this.Be=p)}h=e;f.J(c)}this.Md=this.Eg();5==b&&(this.Kf=this.Eg());4==b&&(this.eg=this.Eg());this.RL(b,a);0==this.ei.yh&&(this.AS(b),0==this.ei.yh&&(isNaN(this.qx)||this.ZK()?(this.AK(),
0==this.ei.yh&&(this.kh(this.Md),this.Md=-1,this.ND&&this.GQ(b))):this.tx=!0))};a.prototype.Wv=function(a){var b=this.Wb(a),c=this.fe(a),d=this.sa(a),g=this.Wb(d),k=this.fe(d);b!=d&&(this.Qk(k,b),this.Rk(b,k));c!=d&&(this.Qk(c,g),this.Rk(g,c));c=this.qj(a);this.te(c)==a&&(g!=a?this.em(c,g):this.em(c,-1));g=this.qj(d);this.te(g)==d&&(b!=d?this.em(g,b):this.em(g,-1));this.xc.Jc(a);this.xc.Jc(d)};a.prototype.BC=function(a,b){for(var c=b;;)if(c=a.ge(c),-1!=c){var e=a.da(c);if(this.Pe(e)!=this.Pe(this.sa(e)))return e}else return-1};
a.prototype.Mp=function(a,b,d){void 0===d&&(d=!0);this.Ay(a,0,null,d)};a.prototype.tF=function(a,b){var c=new d.ga(0);c.add(b);this.Ay(a,4,c,1736==a.Lb(b))};a.prototype.uF=function(a,b){var c=new d.ga(0);c.add(b);this.Ay(a,5,c,!0)};a.prototype.xg=function(){null!=this.a&&(-1!=this.kp&&(this.a.tR(this.kp),this.kp=-1),-1!=this.Bl&&(this.a.bf(this.Bl),this.Bl=-1),-1!=this.lp&&(this.a.bf(this.lp),this.lp=-1),-1!=this.Md&&(this.kh(this.Md),this.Md=-1),-1!=this.Kf&&(this.kh(this.Kf),this.Kf=-1),-1!=this.eg&&
(this.kh(this.eg),this.eg=-1),this.a=null,this.Td.Nh(!0),this.Ig.Nh(!0),this.Zq=this.Be=-1,null!=this.xc&&this.xc.Nh(!0),null!=this.Yh&&(this.Yh.length=0),null!=this.Vh&&(this.Vh.length=0),null!=this.OD&&(this.OD.length=0),null!=this.je&&this.je.Nh(!0),this.Ek=-1,this.Pm=null)};a.prototype.te=function(a){return this.Td.O(a,2)};a.prototype.w=function(a,b){this.a.SC(this.uN(a),b)};a.prototype.md=function(a){return this.Td.O(a,1)};a.prototype.Bf=function(a){return this.Td.O(a,4)};a.prototype.mw=function(a){return this.Td.O(a,
6)};a.prototype.ol=function(a){return this.Td.O(a,7)};a.prototype.zq=function(a){return this.Ig.O(a,1)};a.prototype.Gi=function(a){return this.Ig.O(a,0)};a.prototype.Sf=function(a,b){var c=this.Vh[b];return c.size<=a?-1:c.read(a)};a.prototype.fm=function(a,b,d){b=this.Vh[b];b.size<=a&&b.resize(this.Td.size,-1);b.write(a,d)};a.prototype.uo=function(){null==this.Vh&&(this.Vh=[]);for(var a=d.ga.Yc(this.Td.Xc,-1),b=0,f=this.Vh.length;b<f;b++)if(null==this.Vh[b])return this.Vh[b]=a,b;this.Vh.push(a);return this.Vh.length-
1};a.prototype.vo=function(a){this.Vh[a]=null};a.prototype.qj=function(a){return this.xc.O(a,1)};a.prototype.jf=function(a){return this.qj(this.sa(a))};a.prototype.sa=function(a){return this.xc.O(a,4)};a.prototype.fe=function(a){return this.xc.O(a,5)};a.prototype.Wb=function(a){return this.xc.O(a,6)};a.prototype.Pe=function(a){return this.xc.O(a,2)};a.prototype.Qe=function(a){return this.pj(this.xc.O(a,2))};a.prototype.ql=function(a){return this.xc.O(a,7)};a.prototype.tq=function(a,b){this.w(this.qj(a),
b)};a.prototype.pl=function(a,b){this.w(this.jf(a),b)};a.prototype.Gg=function(a){return this.xc.O(a,3)&this.EK};a.prototype.tb=function(a,b){var c=this.Yh[b];return c.size<=a?-1:c.read(a)};a.prototype.Bb=function(a,b,d){b=this.Yh[b];b.size<=a&&b.resize(this.xc.size,-1);b.write(a,d)};a.prototype.Eg=function(){null==this.Yh&&(this.Yh=[]);for(var a=d.ga.Yc(this.xc.Xc,-1),b=0,f=this.Yh.length;b<f;b++)if(null==this.Yh[b])return this.Yh[b]=a,b;this.Yh.push(a);return this.Yh.length-1};a.prototype.kh=function(a){this.Yh[a]=
null};a.prototype.bM=function(a){var b=this.Pe(a),c=this.Wb(a);c==this.sa(a)&&(c=this.Wb(c),c==a&&(c=-1));this.pC(b)==a&&this.Gr(b,c);c=this.Pm.read(b);isNaN(c)||(this.xF(b,NaN),this.zF(b,NaN));this.Tu(a,!0);this.Wv(a)};a.prototype.cM=function(a){for(var b=0,c=a.size;b<c;b++){var d=a.get(b),g=this.Pe(this.sa(d));this.Gr(this.Pe(d),-1);this.Gr(g,-1);this.Tu(d,!0);this.Wv(d)}};a.prototype.pC=function(a){return this.je.O(a,1)};a.prototype.pj=function(a){return this.je.O(a,2)};a.prototype.ym=function(a){return this.je.O(a,
3)};a.prototype.tN=function(a){return this.je.O(a,4)};a.prototype.yo=function(a){var b=this.Pm.read(a);isNaN(b)&&(this.bT(a),b=this.Pm.read(a));return b};a.prototype.ya=function(a){return this.a.yC(a,this.kp)};a.prototype.se=function(a){return this.a.Ra(a,this.Bl)};a.prototype.GN=function(a){return this.a.Ra(a,this.lp)};a.prototype.FN=function(a,b){var c=this.te(a);if(-1==c)return-1;var e=c,d=-1,g=-1;do{if(this.jf(e)==b)return e;if(-1==d){d=this.te(b);if(-1==d)break;g=d}if(this.jf(g)==a)return e=
this.sa(g);e=this.Wb(this.sa(e));g=this.Wb(this.sa(g))}while(e!=c&&g!=d);return-1};a.prototype.iy=function(a,b){b.mq();var c=b.get(),e=new d.b;this.tq(a,e);c.ed(e);this.pl(a,e);c.vd(e)};a.prototype.lL=function(a,b){if(a==b)return 0;var c=new d.b;this.pl(a,c);var e=new d.b;this.pl(b,e);if(c.ub(e))return 0;var g=new d.b;this.tq(a,g);var k=new d.b;k.pc(c,g);c=new d.b;c.pc(e,g);return d.b.cq(k,c)};a.prototype.kL=function(a,b){if(a==b)return 0;var c=new d.b;this.pl(a,c);var e=new d.b;this.pl(b,e);if(c.ub(e))return 0;
var g=new d.b;this.tq(a,g);var k=new d.b;k.pc(c,g);c=new d.b;c.pc(e,g);return 0<=c.y&&0<k.y?d.b.cq(k,c):0};a.prototype.ZK=function(){for(var a=d.vi.Ty(this.qx),b=new d.b,f=new d.b,g=new d.b,l=new d.b,k=new d.b,m=this.Be;-1!=m;m=this.Bf(m)){var p=this.te(m);if(-1!=p){var q=p;this.tq(q,b);this.pl(q,f);k.pc(f,b);var r=k.Up();do{var w=q,q=this.Wb(this.sa(q));if(q!=w){this.pl(q,g);l.pc(g,b);var w=l.Up(),t=l.Ai(k);if(t*t/(w*r)*Math.min(w,r)<=a)return!1;k.J(l);r=w;f.J(g)}}while(q!=p)}}return!0};return a}();
d.gs=m})(p||(p={}));(function(d){var m=function(){function g(){this.h=null;this.TD=new d.b;this.UD=new d.b;this.Qg=null;this.Gq=!1;this.Ym=-1}g.prototype.Te=function(b){return b<this.Qg.length?this.Qg[b]:!1};g.prototype.xm=function(b,a,c,e){var f=d.T.ve(this.h.a.Lb(c));if(2==d.T.ve(this.h.a.Lb(a))&&1==f)this.WL(b,a,c,e);else throw d.g.wa();};g.prototype.Mp=function(b,a){null==this.h&&(this.h=new d.gs);this.h.Mp(b,a)};g.prototype.Np=function(b,a,c){d.aj.$(b,a,c,!0);for(a=b.$c;-1!=a;a=b.we(a))1736==
b.Lb(a)&&d.mm.$(b,a,-1,this.Gq,c);this.Mp(b,c)};g.prototype.EB=function(b,a,c,e,d){var f=this.h.a;if(1736==f.Lb(b))for(b=f.Vb(b);-1!=b;b=f.bc(b)){var g=f.Cb(b);this.h.se(g);this.h.se(f.X(g));var k=this.h.GN(g);if(-1!=k){var m=this.h.tb(k,c);if(1!=m&&2!=m)if(this.Te(this.h.Qe(k))){this.h.Bb(k,c,1);var m=f.Cf(a,-1),p=k,q=this.h.se(g),r=1;do{var w=this.tl(g,d);f.zi(m,w);-1!=e&&this.h.fm(q,e,1);this.h.Bb(p,c,1);var p=this.h.Wb(p),t;do w=1==r?f.X(g):f.Ua(g),t=-1!=w?this.h.se(w):-1;while(t==q);var x=this.h.qj(p);
if(x!=t){do w=1==r?f.Ua(g):f.X(g),t=-1!=w?this.h.se(w):-1;while(t==q);x!=t?(t=x,w=this.h.Gi(this.h.ol(t))):r=-r}q=t;g=w}while(p!=k);f.Gn(m,!0)}else this.h.Bb(k,c,2)}}};g.prototype.UB=function(){for(var b=this.h.Eg(),a=new d.ga(0),c=this.h.Be;-1!=c;c=this.h.Bf(c)){var e=this.h.te(c),f=e;if(-1!=e){do{if(1!=this.h.tb(f,b)){var g=this.h.sa(f);this.h.Bb(g,b,1);this.h.Bb(f,b,1);this.Te(this.h.Qe(f))&&this.Te(this.h.Qe(g))&&a.add(f)}f=this.h.Wb(this.h.sa(f))}while(f!=e)}}this.h.kh(b);this.h.cM(a)};g.prototype.tl=
function(b,a){return-1==a?b:this.kO(b,a)};g.prototype.kO=function(b,a){var c=this.h.a,e,d,g=this.h.ol(this.h.se(b));do{e=this.h.Gi(g);d=c.Vf(c.rd(e));if(d==a)return e;g=this.h.zq(g)}while(-1!=g);return b};g.prototype.Xp=function(b,a,c){this.UB();var e=this.h.a,f=e.jg(1736),g=this.h.Eg();this.pG(b,a,f,c,g,-1);this.h.kh(g);d.mm.$(e,f,1,this.Gq,null);return f};g.prototype.pG=function(b,a,c,e,d,g){this.EB(b,c,d,g,e);-1!=a&&this.EB(a,c,d,g,e);b=this.h.a;for(a=this.h.Be;-1!=a;a=this.h.Bf(a)){var f=this.h.te(a);
if(-1!=f){var h=f;do{var m=this.h.tb(h,d);if(1!=m&&2!=m)if(this.Te(this.h.Qe(h))){var m=b.Cf(c,-1),p=h;do{var q=this.h.ql(p);-1!=q?q=this.h.Gi(q):(q=this.h.Gi(this.h.ql(this.h.sa(p))),q=this.h.a.X(q));q=this.tl(q,e);b.zi(m,q);this.h.Bb(p,d,1);-1!=g&&(q=this.h.se(q),this.h.fm(q,g,1));p=this.h.Wb(p)}while(p!=h);b.Gn(m,!0)}else this.h.Bb(h,d,2);h=this.h.Wb(this.h.sa(h))}while(h!=f)}}};g.prototype.RS=function(b,a,c){var e=this.h.a,f=e.jg(1736),g=e.jg(1607),l=e.jg(550);this.UB();var k=-1,m=this.h.Eg(),
p=this.h.uo();this.pG(b,a,f,c,m,p);for(b=this.h.Be;-1!=b;b=this.h.Bf(b))if(a=this.h.te(b),-1!=a){var q=a;do{var r=this.h.tb(q,m),w=this.h.tb(this.h.sa(q),m),r=r|w;if(2==r)if(r=this.h.Gg(q),this.Te(r)){var t=e.Cf(g,-1),x=q,r=this.Au(b,e),r=this.tl(r,c);e.zi(t,r);this.h.fm(b,p,1);do{r=this.h.jf(x);w=this.Au(r,e);w=this.tl(w,c);e.zi(t,w);this.h.Bb(x,m,1);this.h.Bb(this.h.sa(x),m,1);this.h.fm(r,p,1);x=this.h.Wb(x);r=this.h.tb(x,m);w=this.h.tb(this.h.sa(x),m);r|=w;if(2!=r)break;r=this.h.Gg(x);if(!this.Te(r)){this.h.Bb(x,
m,1);this.h.Bb(this.h.sa(x),m,1);break}}while(x!=q)}else this.h.Bb(q,m,1),this.h.Bb(this.h.sa(q),m,1);q=this.h.Wb(this.h.sa(q))}while(q!=a)}for(b=this.h.Be;-1!=b;b=this.h.Bf(b))r=this.h.Sf(b,p),1!=r&&(r=this.h.md(b),this.Te(r)&&(-1==k&&(k=e.Cf(l,-1)),a=this.h.ol(b),-1!=a&&(a=this.h.Gi(a),r=this.tl(a,c),e.zi(k,r))));this.h.vo(p);this.h.kh(m);d.mm.$(e,f,1,this.Gq,null);c=[];c[0]=l;c[1]=g;c[2]=f;return c};g.prototype.Au=function(b,a){for(var c=-1,e=this.h.ol(b);-1!=e;e=this.h.zq(e)){var d=this.h.Gi(e);
-1==c&&(c=d);var g=this.h.ya(a.Vf(a.rd(d)));if(this.Te(g)){c=d;break}}return c};g.prototype.fy=function(b,a){for(var c=this.h.qj(a),e=this.h.jf(a),f=0,g=0,l=this.h.ol(c);-1!=l;l=this.h.zq(l)){var k=this.h.Gi(l),m=b.rd(k),p=this.h.ya(b.Vf(m)),q=b.X(k),r=b.Ua(k),m=b.Cb(m);m==k&&(this.Ym=a);-1!=q&&this.h.se(q)==e?(f++,this.Te(p)&&(m==q&&(this.Ym=this.h.Wb(a)),g++)):-1!=r&&this.h.se(r)==e&&(f--,this.Te(p)&&(m==r&&(this.Ym=this.h.Wb(a)),g--))}this.h.w(c,this.TD);this.h.w(e,this.UD);c=d.b.Fb(this.TD,this.UD);
return(0!=g?g:f)*c};g.prototype.Ao=function(b){return this.h.Gg(b)|this.h.Qe(b)|this.h.Qe(this.h.sa(b))};g.prototype.sG=function(b){for(var a=this.h.sa(this.h.fe(b)),c=-1;a!=b;){if(this.Te(this.Ao(a))){if(-1!=c)return-1;c=a}a=this.h.sa(this.h.fe(a))}return-1!=c?this.h.sa(c):-1};g.prototype.tG=function(b){for(var a=this.h.sa(this.h.Wb(b)),c=-1;a!=b;){if(this.Te(this.Ao(a))){if(-1!=c)return-1;c=a}a=this.h.sa(this.h.Wb(a))}return-1!=c?this.h.sa(c):-1};g.prototype.jF=function(b,a,c,e,f){var g=this.h.a,
l=b,k=this.h.sa(l);this.h.Bb(l,c,1);this.h.Bb(k,c,1);var m=this.fy(g,l);this.Ym=-1;for(var p=l,q=-1,r=!1,w=1;;){var t=this.h.fe(l);if(t==k)break;k=this.h.Wb(k);if(this.h.sa(t)!=k)if(l=this.sG(l),-1==l)break;else r=!0,k=this.h.sa(l);else l=t;if(l==b){q=b;break}t=this.Ao(l);if(!this.Te(t))break;this.h.Bb(l,c,1);this.h.Bb(k,c,1);p=l;m+=this.fy(g,l);w++}if(-1==q)for(l=b,k=this.h.sa(l),q=l;;){b=this.h.Wb(l);if(b==k)break;k=this.h.fe(k);if(this.h.sa(b)!=k)if(l=this.tG(l),-1==l){r=!0;break}else k=this.h.sa(l);
else l=b;t=this.Ao(l);if(!this.Te(t))break;this.h.Bb(l,c,1);this.h.Bb(k,c,1);q=l;m+=this.fy(g,l);w++}else if(-1!=this.Ym&&(p=this.Ym,q=this.h.fe(this.Ym),this.h.sa(q)!=this.h.Wb(this.h.sa(p))&&(q=this.sG(p),-1==q)))throw d.g.wa();0<=m||(l=q,q=this.h.sa(p),p=this.h.sa(l));c=g.Cf(a,-1);l=p;p=this.h.qj(p);r=this.h.jf(q)==p&&r;m=this.Au(p,g);m=this.tl(m,f);g.zi(c,m);-1!=e&&this.h.fm(p,e,1);p=0;for(w=r?d.I.truncate((w+1)/2):-1;;){b=this.h.jf(l);m=this.Au(b,g);m=this.tl(m,f);g.zi(c,m);p++;-1!=e&&this.h.fm(b,
e,1);r&&p==w&&(c=g.Cf(a,-1),g.zi(c,m));if(l==q)break;b=this.h.Wb(l);if(this.h.fe(this.h.sa(l))!=this.h.sa(b)){if(l=this.tG(l),-1==l)throw d.g.wa();}else l=b}};g.prototype.Yp=function(b){for(var a=this.h.a.jg(1607),c=this.h.Eg(),d=this.h.Be;-1!=d;d=this.h.Bf(d)){var f=this.h.te(d),g=f;do 1!=this.h.tb(g,c)&&this.Te(this.Ao(g))&&this.jF(g,a,c,-1,b),g=this.h.Wb(this.h.sa(g));while(g!=f)}this.h.kh(c);return a};g.prototype.SS=function(b){for(var a=this.h.a,c=a.jg(1607),d=a.jg(550),f=this.h.Eg(),g=this.h.uo(),
l=-1,k=this.h.Be;-1!=k;k=this.h.Bf(k)){var m=this.h.te(k),p=m;do{var q=this.h.tb(p,f);1!=q&&(q=this.Ao(p),this.Te(q)&&this.jF(p,c,f,g,b));p=this.h.Wb(this.h.sa(p))}while(p!=m)}for(k=this.h.Be;-1!=k;k=this.h.Bf(k))q=this.h.Sf(k,g),1!=q&&(q=this.h.md(k),this.Te(q)&&(-1==l&&(l=a.Cf(d,-1)),m=this.h.ol(k),-1!=m&&(m=this.h.Gi(m),m=this.tl(m,b),a.zi(l,m))));this.h.kh(f);this.h.vo(g);b=[];b[0]=d;b[1]=c;return b};g.prototype.Pn=function(){for(var b=this.h.a,a=b.jg(550),c=b.Cf(a,-1),d=this.h.Be;-1!=d;d=this.h.Bf(d))if(this.Te(this.h.md(d))){for(var f=
-1,g=this.h.ol(d);-1!=g;g=this.h.zq(g)){var l=this.h.Gi(g);-1==f&&(f=l);var k=this.h.ya(b.Vf(b.rd(l)));if(this.Te(k)){f=l;break}}b.zi(c,f)}return a};g.prototype.Im=function(b){this.Qg=[];for(var a=0;a<b;a++)this.Qg[a]=!1};g.qF=function(b,a,c,e){var f=b.Pa(),g=Array(1E3);d.I.Ps(g,null);var l=d.I.Lh(1E3,0),k=b.F(),m=!0,p=2==a.fb();if(1!=a.fb()&&2!=a.fb())throw d.g.wa();for(var q=0;q<k;){var r=d.I.truncate(b.fR(g,q)-q);p?d.gd.nG(a,g,r,c,l):d.gd.oG(a,g,r,c,l);for(var w=0,t=0;t<r;t++){var x=0==l[t];e||
(x=!x);x&&(m&&(m=!1,f.Pd(b,0,q)),w!=t&&f.Pd(b,q+w,q+t),w=t+1)}m||w==r||f.Pd(b,q+w,q+r);q+=r}return m?b:f};g.jD=function(b,a,c){return b instanceof d.pe?g.qF(b,a,c,!0):a instanceof d.Va?b.s()||a.s()?b.Pa():d.aj.HE(c,b,a)?d.aj.gL(b,a):b.Pa():g.mG(b,a,c,!0)};g.mt=function(b,a,c,e){var f=new d.i;b.o(f);var h=new d.i;a.o(h);var l=new d.i;l.K(f);l.Db(h);c=d.Ia.zd(c,l,!0);l=new d.i;l.K(h);h=d.Ia.As(c);l.P(h,h);if(!f.jc(l)){if(b.fb()<=a.fb())return g.Cc(g.ob(b.Pa()),b,"\x26");if(b.fb()>a.fb())return g.Cc(g.ob(a.Pa()),
b,"\x26")}h=new g;f=new d.fd;l=f.Eb(g.ob(b));a=f.Eb(g.ob(a));h.Np(f,c,e);e=h.mt(l,a);b=g.Cc(f.hf(e),b,"\x26");d.T.Kc(b.D())&&(b.hg(2,c),1736==b.D()&&b.hl());return b};g.mG=function(b,a,c,e){if(b.s())return b.Pa();if(a.s())return e?b.Pa():null;var f=[null],g=[0],l=2==a.fb();if(1!=a.fb()&&2!=a.fb())throw d.g.wa();f[0]=b.w();l?d.gd.nG(a,f,1,c,g):d.gd.oG(a,f,1,c,g);a=0==g[0];e||(a=!a);return a?b.Pa():b};g.PT=function(b,a,c){return b instanceof d.pe?g.qF(b,a,c,!1):a instanceof d.Va?b.s()?b.Pa():a.s()?
b:d.aj.HE(c,b,a)?b.Pa():b:g.mG(b,a,c,!1)};g.prototype.ME=function(b,a,c,e,f){if(b.s())return b;var g=new d.fd;b=g.Eb(b);return this.Qj(g,b,a,c,e,f)};g.prototype.EQ=function(b,a,c,e,f,g){if(f&&550!=b.Lb(a)){var h=new d.aA;h.KS(b,c);h.og?(d.aj.$(b,c,g,!0),f=!1):this.h.Mv(c)}else d.aj.$(b,c,g,!0),f=!1;e&&550!=b.Lb(a)?this.h.uF(b,a):this.h.tF(b,a);if(this.h.tx)return this.h.xg(),this.h=null,this.Qj(b,a,c,e,!1,g);this.h.Mv(NaN);g=this.h.ya(a);this.Im(g+1);this.Qg[g]=!0;if(1736==b.Lb(a)||e&&550!=b.Lb(a))return b.Pp(a,
0),a=this.Xp(a,-1,-1),b=b.hf(a),b.Pp(0),f?b.hg(1,0):(b.hg(2,c),b.hl()),b;if(1607==b.Lb(a))return a=this.Yp(-1),b=b.hf(a),f||b.hg(2,c),b;if(550==b.Lb(a))return a=this.Pn(),b=b.hf(a),f||b.hg(2,c),b;throw d.g.wa();};g.prototype.Qj=function(b,a,c,e,f,g){this.h=new d.gs;try{return this.EQ(b,a,c,e,f,g)}finally{this.h.xg()}};g.Qj=function(b,a,c,d,f){return(new g).ME(b,a,c,d,f)};g.prototype.DQ=function(b,a,c){this.Gq=b;this.h=new d.gs;b=a.Cm(c);var e=a.Lb(c);1!=b||550==e?this.h.tF(a,c):this.h.uF(a,c);if(!this.h.tx)if(this.h.Mv(NaN),
e=this.h.ya(c),this.Im(e+1),this.Qg[e]=!0,1736==a.Lb(c)||1==b&&550!=a.Lb(c))a.Pp(c,0),b=this.Xp(c,-1,-1),a.Vy(b,c),a.sy(b);else if(1607==a.Lb(c))b=this.Yp(-1),a.Vy(b,c),a.sy(b);else if(550==a.Lb(c))b=this.Pn(),a.Vy(b,c),a.sy(b);else throw d.g.ra("internal error");};g.Ry=function(b,a,c,d){var e=new g;e.Gq=!0;return e.ME(b,a,!1,c,d)};g.prototype.ll=function(b,a){var c=d.T.ve(this.h.a.Lb(b)),e=d.T.ve(this.h.a.Lb(a));if(c>e)return b;var f=this.h.ya(b),g=this.h.ya(a);this.Im((f|g)+1);this.Qg[this.h.ya(b)]=
!0;if(2==c&&2==e)return this.Xp(b,a,-1);if(1==c&&2==e||1==c&&1==e)return this.Yp(-1);if(0==c)return this.Pn();throw d.g.wa();};g.prototype.TB=function(b,a){var c=d.T.ve(this.h.a.Lb(b)),e=d.T.ve(this.h.a.Lb(a));if(c>e)return b;if(c<e)return a;var f=this.h.ya(b),g=this.h.ya(a);this.Im((f|g)+1);this.Qg[this.h.ya(b)]=!0;this.Qg[this.h.ya(a)]=!0;this.Qg[this.h.ya(b)|this.h.ya(a)]=!0;if(2==c&&2==e)return this.Xp(b,a,-1);if(1==c&&1==e)return this.Yp(-1);if(0==c&&0==e)return this.Pn();throw d.g.wa();};g.prototype.mt=
function(b,a){var c=d.T.ve(this.h.a.Lb(b)),e=d.T.ve(this.h.a.Lb(a)),f=this.h.ya(b),g=this.h.ya(a);this.Im((f|g)+1);this.Qg[this.h.ya(b)|this.h.ya(a)]=!0;f=-1;1<this.h.a.wp.Aa&&(f=b);if(2==c&&2==e)return this.Xp(b,a,f);if(1==c&&0<e||1==e&&0<c)return this.Yp(f);if(0==c||0==e)return this.Pn();throw d.g.wa();};g.prototype.Uw=function(b,a){var c=d.T.ve(this.h.a.Lb(b)),e=d.T.ve(this.h.a.Lb(a)),f=this.h.ya(b),g=this.h.ya(a);this.Im((f|g)+1);this.Qg[this.h.ya(b)|this.h.ya(a)]=!0;f=-1;1<this.h.a.wp.Aa&&(f=
b);if(2==c&&2==e)return this.RS(b,a,f);if(1==c&&0<e||1==e&&0<c)return this.SS(f);if(0==c||0==e)return c=[],c[0]=this.Pn(),c;throw d.g.wa();};g.prototype.On=function(b,a){var c=d.T.ve(this.h.a.Lb(b)),e=d.T.ve(this.h.a.Lb(a)),f=this.h.ya(b),g=this.h.ya(a);this.Im((f|g)+1);this.Qg[this.h.ya(b)]=!0;this.Qg[this.h.ya(a)]=!0;if(2==c&&2==e)return this.Xp(b,a,-1);if(1==c&&1==e)return this.Yp(-1);if(0==c&&0==e)return this.Pn();throw d.g.wa();};g.ob=function(b){var a=b.D();return 197==a?(a=new d.Ka(b.description),
b.s()||a.Wc(b,!1),a):33==a?(a=new d.pe(b.description),b.s()||a.add(b),a):322==a?(a=new d.Xa(b.description),b.s()||a.Bc(b,!0),a):b};g.Cc=function(b,a,c){var e=b.D();return 197==e?(a=new d.Ka(b.description),b.s()||a.Wc(b,!1),a):33!=e||"|"!=c&&"^"!=c?322==e?(a=new d.Xa(b.description),b.s()||a.Bc(b,!0),a):33==e&&"-"==c&&33==a.D()||550==e&&"\x26"==c&&33==a.D()?(a=new d.Va(b.description),b.s()||b.Sd(0,a),a):b:(a=new d.pe(b.description),b.s()||a.add(b),a)};g.ll=function(b,a,c,e){if(b.s()||a.s()||b.fb()>
a.fb())return g.Cc(g.ob(b),b,"-");var f=new d.i;b.o(f);var h=new d.i;a.o(h);if(!f.jc(h))return g.Cc(g.ob(b),b,"-");var l=new d.i;l.K(f);l.Db(h);c=d.Ia.zd(c,l,!0);h=new g;f=new d.fd;l=f.Eb(g.ob(b));a=f.Eb(g.ob(a));h.Np(f,c,e);e=h.ll(l,a);e=f.hf(e);b=g.Cc(e,b,"-");d.T.Kc(b.D())&&(b.hg(2,c),1736==b.D()&&b.hl());return b};g.TB=function(b,a,c,e){if(b.fb()>a.fb())return g.Cc(g.ob(b),b,"|");if(b.fb()<a.fb()||b.s())return g.Cc(g.ob(a),b,"|");if(a.s())return g.Cc(g.ob(b),b,"|");var f=new d.i;b.o(f);var h=
new d.i;a.o(h);var l=new d.i;l.K(f);l.Db(h);c=d.Ia.zd(c,l,!0);if(!f.jc(h.IN(c,c)))switch(b=g.ob(b),a=g.ob(a),b.D()){case 550:return b=d.T.Yj(b),b.Pd(a,0,-1),b;case 1607:return b=d.T.Yj(b),b.add(a,!1),b;case 1736:return b=d.T.Yj(b),b.add(a,!1),b;default:throw d.g.wa();}h=new g;f=new d.fd;l=f.Eb(g.ob(b));a=f.Eb(g.ob(a));h.Np(f,c,e);a=h.TB(l,a);b=g.Cc(f.hf(a),b,"|");d.T.Kc(b.D())&&(b.hg(2,c),1736==b.D()&&b.hl());return b};g.oM=function(b,a,c){if(2>b.length)throw d.g.N("not enough geometries to dissolve");
for(var e=0,f=0,h=b.length;f<h;f++)e=Math.max(b[f].fb(),e);var l=new d.i;l.Ja();for(var k=new d.fd,m=-1,p=0,q=-1,f=0,h=b.length;f<h;f++)if(b[f].fb()==e)if(b[f].s())-1==q&&(q=f);else{q=f;-1==m?m=k.Eb(g.ob(b[f])):k.YJ(m,g.ob(b[f]));var r=new d.i;b[f].dd(r);l.Db(r);p++}if(2>p)return g.ob(b[q]);b=2==e;a=d.Ia.zd(0==e?a:null,l,!0);return(new g).Qj(k,m,a,b,!0,c)};g.Uw=function(b,a,c,e){var f=[null,null,null],h=new d.i;b.o(h);var l=new d.i;a.o(l);var k=new d.i;k.K(h);k.Db(l);c=d.Ia.zd(c,k,!0);k=new d.i;k.K(l);
l=d.Ia.As(c);k.P(l,l);if(!h.jc(k)){if(b.fb()<=a.fb())return b=g.Cc(g.ob(b.Pa()),b,"\x26"),f[b.fb()]=b,f;if(b.fb()>a.fb())return b=g.Cc(g.ob(a.Pa()),b,"\x26"),f[b.fb()]=b,f}l=new g;h=new d.fd;k=h.Eb(g.ob(b));a=h.Eb(g.ob(a));l.Np(h,c,e);e=l.Uw(k,a);for(a=0;a<e.length;a++)l=g.Cc(h.hf(e[a]),b,"\x26"),d.T.Kc(l.D())&&(l.hg(2,c),1736==l.D()&&l.hl()),f[l.fb()]=l;return f};g.On=function(b,a,c,e){if(b.fb()>a.fb())return g.Cc(g.ob(b),b,"^");if(b.fb()<a.fb()||b.s())return g.Cc(g.ob(a),b,"^");if(a.s())return g.Cc(g.ob(b),
b,"^");var f=new d.i;b.o(f);var h=new d.i;a.o(h);var l=new d.i;l.K(f);l.Db(h);c=d.Ia.zd(c,l,!0);h=new g;f=new d.fd;l=f.Eb(g.ob(b));a=f.Eb(g.ob(a));h.Np(f,c,e);e=h.On(l,a);b=g.Cc(f.hf(e),b,"^");d.T.Kc(b.D())&&(b.hg(2,c),1736==b.D()&&b.hl());return b};g.uT=function(b,a,c){a=a.D();c=c.D();return 550==b.D()&&(33==a||33==c)&&1>=b.F()?(c=new d.Va(b.description),b.s()||b.Sd(0,c),c):b};g.prototype.ZM=function(b,a){for(var c=this.h.a,d=c.Cf(b,-1),f=a.size,g=0;g<f;g++){var l=a.get(g);c.zi(d,l)}c.Gn(d,!0)};
g.prototype.WR=function(b,a){for(var c=this.h.a,d=c.$c;-1!=d;d=c.we(d))if(d==a)for(var f=c.Vb(d);-1!=f;f=c.bc(f)){var g=c.Cb(f);if(-1!=g)for(var l=c.X(g);-1!=l;){var g=this.h.se(g),k=this.h.se(l),g=this.h.FN(g,k);-1!=g&&(k=this.h.sa(g),this.h.Bb(g,b,1),this.h.Bb(k,b,2));g=l;l=c.X(g)}}};g.prototype.XQ=function(b,a,c,e){c=this.h.ya(c);e=this.h.ya(e);var f=new d.ga(0);f.xb(256);for(var g=this.h.a,l=this.h.Eg(),k=this.h.Be;-1!=k;k=this.h.Bf(k)){var m=this.h.te(k);if(-1!=m){var p=m;do{if(1!=this.h.tb(p,
l)){var q=p,r=p,w=!1,t=0;do{this.h.Bb(q,l,1);if(!w){var x=this.h.Gg(q);0!=(x&e)&&0!=(this.h.Qe(q)&c)&&(r=q,w=!0)}w&&(f.add(this.h.Gi(this.h.ol(this.h.qj(q)))),-1!=b&&(x=this.h.Gg(q),0!=(x&e)&&(x=this.h.tb(q,b),t|=x)));q=this.h.Wb(q)}while(q!=r);w&&0<this.h.yo(this.h.Pe(r))&&(q=g.jg(1736),this.ZM(q,f),-1!=a&&g.EF(q,a,t));f.clear(!1)}p=this.h.Wb(this.h.sa(p))}while(p!=m)}}this.h.kh(l)};g.prototype.WL=function(b,a,c,d){this.h.uR();var e=-1;-1!=b&&(e=this.h.Eg(),this.WR(e,c));this.XQ(e,b,a,c);var g=this.h.a;
b=0;for(e=g.$c;-1!=e;e=g.we(e))e!=a&&e!=c&&(d.add(e),b++);d.xd(0,b,function(a,b){var c=g.Gw(g.Vb(a)),d=g.Gw(g.Vb(b));return c<d?-1:c==d?0:1})};g.prototype.xg=function(){null!=this.h&&(this.h.xg(),this.h=null)};return g}();d.Of=m})(p||(p={}));(function(d){var m=function(){function g(b){void 0!==b?this.Ly(b):this.IF()}g.prototype.Lu=function(){this.Ob=this.Nb=this.sb=this.rb=this.eb=this.mb=0};g.prototype.lc=function(b){return this==b?!0:b instanceof g?this.mb==b.mb&&this.rb==b.rb&&this.Nb==b.Nb&&this.sb==
b.sb&&this.eb==b.eb&&this.Ob==b.Ob:!1};g.prototype.hc=function(){d.I.Rh();d.I.Rh();d.I.Rh();d.I.Rh();d.I.Rh();return d.I.Rh()};g.prototype.Zi=function(b,a){var c=this.sb*b.x+this.eb*b.y+this.Ob;a.x=this.mb*b.x+this.rb*b.y+this.Nb;a.y=c};g.prototype.multiply=function(b){g.multiply(this,b,this)};g.multiply=function(b,a,c){var d,f,g,l,k;d=b.mb*a.mb+b.sb*a.rb;f=b.rb*a.mb+b.eb*a.rb;g=b.Nb*a.mb+b.Ob*a.rb+a.Nb;l=b.mb*a.sb+b.sb*a.eb;k=b.rb*a.sb+b.eb*a.eb;b=b.Nb*a.sb+b.Ob*a.eb+a.Ob;c.mb=d;c.rb=f;c.Nb=g;c.sb=
l;c.eb=k;c.Ob=b};g.prototype.vm=function(){var b=new g;b.mb=this.mb;b.rb=this.rb;b.Nb=this.Nb;b.sb=this.sb;b.eb=this.eb;b.Ob=this.Ob;return b};g.prototype.$y=function(b){if(!b.s()){for(var a=[],c=0;4>c;c++)a[c]=new d.b;b.hy(a);this.US(a,a);b.Ey(a,4)}};g.prototype.US=function(b,a){for(var c=0;c<b.length;c++){var e=new d.b,f=b[c];e.x=this.mb*f.x+this.rb*f.y+this.Nb;e.y=this.sb*f.x+this.eb*f.y+this.Ob;a[c]=e}};g.prototype.wO=function(b,a){b.s()||a.s()||0==b.aa()||0==b.ba()?this.Lu():(this.rb=this.sb=
0,this.mb=a.aa()/b.aa(),this.eb=a.ba()/b.ba(),this.Nb=a.v-b.v*this.mb,this.Ob=a.C-b.C*this.eb)};g.prototype.TS=function(b){var a=new d.b,c=new d.b;a.ma(this.mb,this.sb);c.ma(this.rb,this.eb);a.sub(a);var e=.5*a.Up();a.ma(this.mb,this.sb);c.ma(this.rb,this.eb);a.add(c);a=.5*a.Up();return b*(e>a?Math.sqrt(e):Math.sqrt(a))};g.prototype.IF=function(){this.mb=1;this.sb=this.Nb=this.rb=0;this.eb=1;this.Ob=0};g.prototype.XO=function(){return 1==this.mb&&1==this.eb&&0==this.rb&&0==this.Nb&&0==this.sb&&0==
this.Ob};g.prototype.mg=function(b){return Math.abs(this.mb*this.eb-this.sb*this.rb)<=2*b*(Math.abs(this.mb*this.eb)+Math.abs(this.sb*this.rb))};g.prototype.Nn=function(b,a){this.mb=1;this.rb=0;this.Nb=b;this.sb=0;this.eb=1;this.Ob=a};g.prototype.Ly=function(b,a){void 0!==a?(this.mb=b,this.sb=this.Nb=this.rb=0,this.eb=a,this.Ob=0):this.Ly(b,b)};g.prototype.Oy=function(){this.mb=0;this.rb=1;this.Nb=0;this.sb=1;this.Ob=this.eb=0};g.prototype.jS=function(b){this.kS(Math.cos(b),Math.sin(b))};g.prototype.kS=
function(b,a){this.mb=b;this.rb=-a;this.Nb=0;this.sb=a;this.eb=b;this.Ob=0};g.prototype.shift=function(b,a){this.Nb+=b;this.Ob+=a};g.prototype.scale=function(b,a){this.mb*=b;this.rb*=b;this.Nb*=b;this.sb*=a;this.eb*=a;this.Ob*=a};g.prototype.rotate=function(b){var a=new g;a.jS(b);this.multiply(a)};g.prototype.inverse=function(b){if(void 0!==b){var a=this.mb*this.eb-this.rb*this.sb;0==a?b.Lu():(a=1/a,b.Nb=(this.rb*this.Ob-this.Nb*this.eb)*a,b.Ob=(this.Nb*this.sb-this.mb*this.Ob)*a,b.mb=this.eb*a,b.rb=
-this.rb*a,b.sb=-this.sb*a,b.eb=this.mb*a)}else this.inverse(this)};return g}();d.Bg=m})(p||(p={}));(function(d){var m=function(){function g(){}g.prototype.Lu=function(){this.fh=this.Ob=this.Nb=this.Le=this.Ie=this.He=this.Ke=this.eb=this.rb=this.ef=this.sb=this.mb=0};g.prototype.Ly=function(b,a,c){this.mb=b;this.rb=this.ef=this.sb=0;this.eb=a;this.Ie=this.He=this.Ke=0;this.Le=c;this.fh=this.Ob=this.Nb=0};g.prototype.$y=function(b){if(b.s())return b;for(var a=new d.ee[8],c=0;8>c;c++)a[c]=new d.ee;
b.hy(a);this.transform(a,8,a);b.Ey(a);return b};g.prototype.transform=function(b,a,c){for(var e=0;e<a;e++){var f=new d.ee,g=b[e];f.x=this.mb*g.x+this.rb*g.y+this.He*g.z+this.Nb;f.y=this.sb*g.x+this.eb*g.y+this.Ie*g.z+this.Ob;f.z=this.ef*g.x+this.Ke*g.y+this.Le*g.z+this.fh;c[e]=f}};g.prototype.Qn=function(b){var a=new d.ee;a.x=this.mb*b.x+this.rb*b.y+this.He*b.z+this.Nb;a.y=this.sb*b.x+this.eb*b.y+this.Ie*b.z+this.Ob;a.z=this.ef*b.x+this.Ke*b.y+this.Le*b.z+this.fh;return a};g.prototype.Ap=function(b){g.multiply(this,
b,this)};g.multiply=function(b,a,c){var d,f,g,l,k,m,p,q,r,w,t;d=b.mb*a.mb+b.sb*a.rb+b.ef*a.He;f=b.mb*a.sb+b.sb*a.eb+b.ef*a.Ie;g=b.mb*a.ef+b.sb*a.Ke+b.ef*a.Le;l=b.rb*a.mb+b.eb*a.rb+b.Ke*a.He;k=b.rb*a.sb+b.eb*a.eb+b.Ke*a.Ie;m=b.rb*a.ef+b.eb*a.Ke+b.Ke*a.Le;p=b.He*a.mb+b.Ie*a.rb+b.Le*a.He;q=b.He*a.sb+b.Ie*a.eb+b.Le*a.Ie;r=b.He*a.ef+b.Ie*a.Ke+b.Le*a.Le;w=b.Nb*a.mb+b.Ob*a.rb+b.fh*a.He+a.Nb;t=b.Nb*a.sb+b.Ob*a.eb+b.fh*a.Ie+a.Ob;b=b.Nb*a.ef+b.Ob*a.Ke+b.fh*a.Le+a.fh;c.mb=d;c.sb=f;c.ef=g;c.rb=l;c.eb=k;c.Ke=
m;c.He=p;c.Ie=q;c.Le=r;c.Nb=w;c.Ob=t;c.fh=b};g.inverse=function(b,a){var c=b.mb*(b.eb*b.Le-b.Ke*b.Ie)-b.sb*(b.rb*b.Le-b.Ke*b.He)+b.ef*(b.rb*b.Ie-b.eb*b.He);if(0!=c){var e,f,g,l,k,m,p,q,r,w,t;q=1/c;c=(b.eb*b.Le-b.Ke*b.Ie)*q;g=-(b.rb*b.Le-b.Ke*b.He)*q;m=(b.rb*b.Ie-b.eb*b.He)*q;e=-(b.sb*b.Le-b.Ie*b.ef)*q;l=(b.mb*b.Le-b.ef*b.He)*q;p=-(b.mb*b.Ie-b.sb*b.He)*q;f=(b.sb*b.Ke-b.ef*b.eb)*q;k=-(b.mb*b.Ke-b.ef*b.rb)*q;q*=b.mb*b.eb-b.sb*b.rb;r=-(b.Nb*c+b.Ob*g+b.fh*m);w=-(b.Nb*e+b.Ob*l+b.fh*p);t=-(b.Nb*f+b.Ob*k+
b.fh*q);a.mb=c;a.sb=e;a.ef=f;a.rb=g;a.eb=l;a.Ke=k;a.He=m;a.Ie=p;a.Le=q;a.Nb=r;a.Ob=w;a.fh=t}else throw d.g.ra("math singularity");};g.prototype.vm=function(){var b=new g;b.mb=this.mb;b.sb=this.sb;b.ef=this.ef;b.rb=this.rb;b.eb=this.eb;b.Ke=this.Ke;b.He=this.He;b.Ie=this.Ie;b.Le=this.Le;b.Nb=this.Nb;b.Ob=this.Ob;b.fh=this.fh;return b};return g}();d.ZT=m})(p||(p={}));(function(d){var m=function(b){function a(a){if(void 0!==a)b.call(this,a.hc(),a);else{b.call(this);this.Jf=[];this.Jf[0]=0;this.Aa=1;
this.Wg=[];for(a=0;10>a;a++)this.Wg[a]=-1;this.Wg[this.Jf[0]]=0}this.To=!0}L(a,b);a.prototype.Ne=function(a){this.hasAttribute(a)||(this.Wg[a]=0,this.xA())};a.prototype.removeAttribute=function(a){if(0==a)throw d.g.N("Position attribue cannot be removed");this.hasAttribute(a)&&(this.Wg[a]=-1,this.xA())};a.prototype.reset=function(){this.Jf[0]=0;this.Aa=1;for(var a=0;a<this.Wg.length;a++)this.Wg[a]=-1;this.Wg[this.Jf[0]]=0;this.To=!0};a.prototype.qw=function(){return g.ww().add(this)};a.Tf=function(){return g.ww().iO()};
a.Zn=function(){return g.ww().jO()};a.prototype.pJ=function(){var a=this.hc();return new d.pa(a,this)};a.prototype.xA=function(){for(var a=this.Aa=0,b=0;10>a;a++)0<=this.Wg[a]&&(this.Jf[b]=a,this.Wg[a]=b,b++,this.Aa++);this.To=!0};a.prototype.hc=function(){this.To&&(this.tk=this.jj(),this.To=!1);return this.tk};a.prototype.lc=function(b){if(null==b)return!1;if(b==this)return!0;if(!(b instanceof a)||b.Aa!=this.Aa)return!1;for(var c=0;c<this.Aa;c++)if(this.Jf[c]!=b.Jf[c])return!1;return this.To!=b.To?
!1:!0};a.prototype.qD=function(a){if(a.Aa!=this.Aa)return!1;for(var b=0;b<this.Aa;b++)if(this.Jf[b]!=a.Jf[b])return!1;return!0};a.iu=function(a,b){for(var c=[],d=0;d<a.Aa;d++)c[d]=-1;for(var d=0,e=a.Aa;d<e;d++)c[d]=b.zf(a.Hd(d));return c};a.PN=function(b,d){var c=new a(b);c.Ne(d);return c.qw()};a.QN=function(b,d){for(var c=null,e=0;10>e;e++)!b.hasAttribute(e)&&d.hasAttribute(e)&&(null==c&&(c=new a(b)),c.Ne(e));return null!=c?c.qw():b};a.bo=function(b,d){var c=new a(b);c.removeAttribute(d);return c.qw()};
return a}(d.pa);d.Od=m;var g=function(){function b(){this.map=[];var a=new m;this.add(a);a=new m;a.Ne(1);this.add(a)}b.ww=function(){return b.lI};b.prototype.iO=function(){return b.Yn};b.prototype.jO=function(){return b.Zn};b.prototype.add=function(a){var c=a.hc();if(null!=b.Yn&&b.Yn.hc()==c&&a.qD(b.Yn))return b.Yn;if(null!=b.Zn&&b.Zn.hc()==c&&a.qD(b.Zn))return b.Zn;var d=null;void 0!==this.map[c]&&(d=this.map[c]);null==d&&(d=a.pJ(),1==d.Aa?b.Yn=d:2==d.Aa&&1==d.Hd(1)?b.Zn=d:this.map[c]=d);return d};
b.lI=new b;return b}()})(p||(p={}));var O=0==ra.version.indexOf("4."),qa;(function(d){d[d.Linear=0]="Linear";d[d.Angular=1]="Angular";d[d.Area=2]="Area";d[d.LinearOrAngular=3]="LinearOrAngular"})(qa||(qa={}));var ma={feet:9002,kilometers:9036,meters:9001,miles:9035,"nautical-miles":9030,yards:9096},ta={acres:109402,ares:109463,hectares:109401,"square-feet":109405,"square-kilometers":109414,"square-meters":109404,"square-miles":109413,"square-yards":109442},na={degrees:9102,radians:9101};void 0===
Z.prototype.getCacheValue&&sa.extend(Z,{cache:null,getCacheValue:function(d){if(null===this.cache||void 0===this.cache)this.cache={};return this.cache[d]},setCacheValue:function(d,m){if(null===this.cache||void 0===this.cache)this.cache={};this.cache[d]=m}});var va=p.Nf.create(4326),ua=p.Nf.create(102100);return function(){function d(){}d.extendedSpatialReferenceInfo=function(d){if(null===d)return null;d=pa(d);var g=d.Se();return{tolerance:d.xq(),unitType:null==g?-1:g.Nc,unitID:null==g?-1:g.Qc(),unitBaseFactor:null==
g?0:g.Dj,unitSquareDerivative:null==g?0:p.Tb.PC(g).Qc()}};d.clip=function(d,g){if(null===d)return null;var b=p.Pb.clip(F(d),F(g),K(d));return P(b,d.spatialReference)};d.cut=function(d,g){for(var b=F(g),b=p.Pb.xm(F(d),b,K(d)),a=[],c=0;c<b.length;c++)a.push(P(b[c],d.spatialReference));return a};d.contains=function(d,g){if(null===d||null===g)throw Error("Illegal Argument Exception");return p.Pb.contains(F(d),F(g),K(d))};d.crosses=function(d,g){if(null===d||null===g)throw Error("Illegal Argument Exception");
return p.Pb.VL(F(d),F(g),K(d))};d.distance=function(d,g,b){if(null===d||null===g)throw Error("Illegal Argument Exception");return p.Pb.Fb(F(d),F(g),K(d),p.Tb.Qd(U(b,3)))};d.equals=function(d,g){return null===d&&null!==g||null===g&&null!==d?!1:p.Pb.lc(F(d),F(g),K(d))};d.intersects=function(d,g){if(null===d||null===g)throw Error("Illegal Argument Exception");return p.Pb.RO(F(d),F(g),K(d))};d.touches=function(d,g){if(null===d||null===g)throw Error("Illegal Argument Exception");return p.Pb.touches(F(d),
F(g),K(d))};d.within=function(d,g){if(null===d||null===g)throw Error("Illegal Argument Exception");return p.Pb.jT(F(d),F(g),K(d))};d.disjoint=function(d,g){if(null===d||null===g)throw Error("Illegal Argument Exception");return p.Pb.nM(F(d),F(g),K(d))};d.overlaps=function(d,g){if(null===d||null===g)throw Error("Illegal Argument Exception");return p.Pb.tQ(F(d),F(g),K(d))};d.relate=function(d,g,b){if(null===d||null===g)throw Error("Illegal Argument Exception");return p.Pb.py(F(d),F(g),K(d),b)};d.isSimple=
function(d){if(null===d)throw Error("Illegal Argument Exception");return p.Pb.cP(F(d),K(d))};d.simplify=function(d){if(null===d)throw Error("Illegal Argument Exception");var g=p.Pb.Qy(F(d),K(d));return P(g,d.spatialReference)};d.convexHull=function(m,g){void 0===g&&(g=!1);if(null===m)throw Error("Illegal Argument Exception");if(m instanceof Z){var b=p.Pb.JL(F(m),K(m));return P(b,m.spatialReference)}return d.NI(m,g)};d.NI=function(d,g){for(var b=[],a=0;a<d.length;a++)b.push(F(d[a]));b=p.Pb.KL(b,g);
for(a=0;a<b.length;a++)b[a]=P(b[a],d[0].spatialReference);return b};d.difference=function(m,g){if(null===m||null===g)throw Error("Illegal Argument Exception");if(m instanceof Z){var b=p.Pb.ll(F(m),F(g),K(m));return P(b,m.spatialReference)}return d.XL(m,g)};d.XL=function(d,g){for(var b=[],a=0;a<d.length;a++)b.push(F(d[a]));b=p.Pb.kM(b,F(g),K(g));for(a=0;a<b.length;a++)b[a]=P(b[a],g.spatialReference);return b};d.symmetricDifference=function(m,g){if(null===m||null===g)throw Error("Illegal Argument Exception");
if(m instanceof Z){var b=p.Pb.On(F(m),F(g),K(m));return P(b,m.spatialReference)}return d.tO(m,g)};d.tO=function(d,g){for(var b=[],a=0;a<d.length;a++)b.push(F(d[a]));b=p.Pb.MS(b,F(g),K(g));for(a=0;a<b.length;a++)b[a]=P(b[a],g.spatialReference);return b};d.intersect=function(m,g){if(null===m||null===g)throw Error("Illegal Argument Exception");if(m instanceof Z){var b=p.Pb.Ga(F(m),F(g),K(m));return P(b,m.spatialReference)}return d.EM(m,g)};d.EM=function(d,g){for(var b=[],a=0;a<d.length;a++)b.push(F(d[a]));
b=p.Pb.QO(b,F(g),K(g));for(a=0;a<b.length;a++)b[a]=P(b[a],g.spatialReference);return b};d.union=function(d,g){void 0===g&&(g=null);if(null===d)return null;d instanceof Z&&(d=[d],null!==g&&d.push(g));if(0===d.length)return null;for(var b=[],a=0;a<d.length;a++)b.push(F(d[a]));return P(p.Pb.aT(b,K(d[0])),d[0].spatialReference)};d.offset=function(m,g,b,a,c,e){var f=0;if(null!=a&&void 0!=a)switch(a){case "round":f=0;break;case "bevel":f=1;break;case "miter":f=2;break;case "square":f=3}return m instanceof
Z?(g=p.Pb.offset(F(m),K(m),g,f,c,e,p.Tb.Qd(U(b,3))),P(g,m.spatialReference)):d.qO(m,g,b,f,c,e)};d.qO=function(d,g,b,a,c,e){if(null===d)return null;if(0===d.length)return[];for(var f=[],h=0;h<d.length;h++)f.push(F(d[h]));g=p.Pb.sQ(f,K(d[0]),g,a,c,e,p.Tb.Qd(U(b,3)));for(h=0;h<g.length;h++)g[h]=P(g[h],d[0].spatialReference);return g};d.buffer=function(m,g,b,a){void 0===a&&(a=!1);if(m instanceof Z)return g=p.Pb.buffer(F(m),K(m),g,p.Tb.Qd(U(b,3)),!1,0,NaN),P(g,m.spatialReference);if("[object Array]"!==
Object.prototype.toString.call(g)){for(var c=[],e=0;e<m.length;e++)c.push(g);g=c}if(g.length!=m.length){if(0==g.length)throw Error("Illegal Argument Exception");for(var c=[],f=0,e=0;e<m.length;e++)void 0===g[e]?c.push(f):(c.push(g[e]),f=g[e]);g=c}return d.vG(m,g,b,!1,a,"geodesic",NaN)};d.geodesicBuffer=function(m,g,b,a,c,e){if(m instanceof Z)return void 0===c&&(c=NaN),g=p.Pb.buffer(F(m),K(m),g,p.Tb.Qd(U(b,0)),!0,ja(a),c),P(g,m.spatialReference);if("[object Array]"!==Object.prototype.toString.call(g)){for(var f=
[],h=0;h<m.length;h++)f.push(g);g=f}if(g.length!=m.length){if(0==g.length)throw Error("Illegal Argument Exception");for(var f=[],l=0,h=0;h<m.length;h++)void 0===g[h]?f.push(l):(f.push(g[h]),l=g[h]);g=f}return d.vG(m,g,b,!0,a,c,e)};d.vG=function(d,g,b,a,c,e,f){if(null===d)return null;if(0===d.length)return[];void 0===f&&(f=NaN);for(var h=[],l=0;l<d.length;l++)h.push(F(d[l]));g=p.Pb.rK(h,K(d[0]),g,p.Tb.Qd(U(b,0)),a,c,ja(e),f);for(l=0;l<g.length;l++)g[l]=P(g[l],d[0].spatialReference);return g};d.nearestCoordinate=
function(d,g,b){void 0===b&&(b=!0);g=p.Pb.zw(F(d),F(g),b);return{coordinate:P(g.pw(),d.spatialReference),distance:g.sw(),isRightSide:g.Xw(),vertexIndex:g.gb(),isEmpty:g.s()}};d.nearestVertex=function(d,g){var b=p.Pb.Aw(F(d),F(g));return{coordinate:P(b.pw(),d.spatialReference),distance:b.sw(),isRightSide:b.Xw(),vertexIndex:b.gb(),isEmpty:b.s()}};d.nearestVertices=function(d,g,b,a){g=F(g);b=p.Pb.Bw(F(d),g,b,a);a=[];for(g=0;g<b.length;g++)!1===b[g].s()&&a.push({coordinate:P(b[g].pw(),d.spatialReference),
distance:b[g].sw(),isRightSide:b[g].Xw(),vertexIndex:b[g].gb(),isEmpty:b[g].s()});return a};d.generalize=function(d,g,b,a){g=p.Pb.fN(F(d),K(d),g,b,p.Tb.Qd(U(a,3)));return P(g,d.spatialReference)};d.densify=function(d,g,b){g=p.Pb.oq(F(d),K(d),g,p.Tb.Qd(U(b,3)));return P(g,d.spatialReference)};d.geodesicDensify=function(d,g,b,a){void 0===a&&(a=0);g=p.Pb.fw(F(d),K(d),g,p.Tb.Qd(U(b,3)),a);return P(g,d.spatialReference)};d.rotate=function(d,g,b){if(void 0===b||null===b)switch(d.type){case "point":b=d;
break;case "extent":b=O?d.get("center"):d.getCenter();break;default:b=O?d.get("extent").get("center"):d.getExtent().getCenter()}g=O?p.Wn.rotate(d.toJSON(),g,b.toJSON()):p.Wn.rotate(d.toJson(),g,b.toJson());O?(g=la(g),g.set("spatialReference",d.spatialReference)):(g=ka(g),g.setSpatialReference(d.spatialReference));return g};d.flipHorizontal=function(d,g){if(void 0===g||null===g)switch(d.type){case "point":g=d;break;case "extent":g=O?d.get("center"):d.getCenter();break;default:g=O?d.get("extent").get("center"):
d.getExtent().getCenter()}var b;b=O?p.Wn.eC(d.toJSON(),g.toJSON()):p.Wn.eC(d.toJson(),g.toJson());O?(b=la(b),b.set("spatialReference",d.spatialReference)):(b=ka(b),b.setSpatialReference(d.spatialReference));return b};d.flipVertical=function(d,g){if(void 0===g||null===g)switch(d.type){case "point":g=d;break;case "extent":g=O?d.get("center"):d.getCenter();break;default:g=O?d.get("extent").get("center"):d.getExtent().getCenter()}var b;b=O?p.Wn.fC(d.toJSON(),g.toJSON()):p.Wn.fC(d.toJson(),g.toJson());
O?(b=la(b),b.set("spatialReference",d.spatialReference)):(b=ka(b),b.setSpatialReference(d.spatialReference));return b};d.planarArea=function(d,g){if(null===d)throw Error("Illegal Argument Exception");return p.Pb.BQ(F(d),K(d),p.Tb.Qd(U(g,2)))};d.planarLength=function(d,g){if(null===d)throw Error("Illegal Argument Exception");return p.Pb.CQ(F(d),K(d),p.Tb.Qd(U(g,3)))};d.geodesicArea=function(d,g,b){if(null===d)throw Error("Illegal Argument Exception");return p.Pb.jN(F(d),K(d),p.Tb.Qd(U(g,2)),ja(b))};
d.geodesicLength=function(d,g,b){if(null===d)throw Error("Illegal Argument Exception");return p.Pb.nN(F(d),K(d),p.Tb.Qd(U(g,0)),ja(b))};return d}()});