geometryEngine.js 543 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.6/esri/copyright.txt for details.
//>>built
define("require exports ../kernel ./Geometry ./Polygon ./Polyline ./Point ./Extent ./Multipoint dojo/_base/lang".split(" "),function(wa,xa,ra,aa,fa,ga,ba,ha,ia,sa){function ka(d){if(void 0===ba.fromJson){if(void 0!==d.x&&void 0!==d.y)return new ba(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 ba.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===ba.fromJson){if(void 0!==d.x&&void 0!==d.y)return new ba(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 ba.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 f;if(null==d||void 0===d||"number"===typeof d)return d;var b=d.toString();if(""===b)return null;if(2==m){if(f=ta[b],void 0!==f)return f}else if(0==m){f=ma[b];if(void 0!==f)return f;f=na[d];if(void 0!==f)return f}else if(3==
m&&(f=ma[b],void 0!==f))return f;if(1==m&&(f=na[d],void 0!==f))return f;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 N(d,m){if(null===d||void 0===d||d.s())return null;switch(d.D()){case p.Xn.Point:var f=new ba(d.lk(),d.mk(),m);if(M){var b=d.hasAttribute(p.xf.M);d.hasAttribute(p.xf.Z)&&
f.set("z",d.lO());b&&f.set("m",d.NN())}return f;case p.Xn.Polygon:var f=d.hasAttribute(p.xf.Z),b=d.hasAttribute(p.xf.M),a=oa(d,f,b),f=new fa({rings:a,hasZ:f,hasM:b});M?f.set("spatialReference",m):f.setSpatialReference(m);f.setCacheValue("_geVersion",d);return f;case p.Xn.Polyline:return f=d.hasAttribute(p.xf.Z),b=d.hasAttribute(p.xf.M),a=oa(d,f,b),f=new ga({paths:a,hasZ:f,hasM:b}),M?f.set("spatialReference",m):f.setSpatialReference(m),f.setCacheValue("_geVersion",d),f;case p.Xn.MultiPoint:var f=d.hasAttribute(p.xf.Z),
b=d.hasAttribute(p.xf.M),c=a=null;f&&(a=d.mc(p.xf.Z));b&&(c=d.mc(p.xf.M));var e=new p.b,g=d.F();m=new ia(m);M&&(m.set("hasZ",f),m.set("hasM",b));for(var h=0;h<g;h++){d.w(h,e);var l=[e.x,e.y];f&&l.push(a.get(h));b&&l.push(c.get(h));m.addPoint(l)}m.setCacheValue("_geVersion",d);return m;case p.Xn.Envelope:return a=d.hasAttribute(p.xf.Z),f=d.hasAttribute(p.xf.M),b=new ha(d.R.v,d.R.C,d.R.B,d.R.G,m),M&&(a&&(a=d.Ah(p.xf.Z,0),b.set("zmin",a.qa),b.set("zmax",a.va)),f&&(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,f){var b=[],a=d.ea(),c=null,e=null;m&&(c=d.mc(p.xf.Z));f&&(e=d.mc(p.xf.M));for(var g=new p.b,h=0;h<a;h++){for(var l=d.Ea(h),k=d.Ha(h),n=0,t=0,q=NaN,r=NaN,w=NaN,u=NaN,y=d.vc(h),v=[],D=l;D<l+k;D++){d.w(D,g);var u=w=NaN,x=[g.x,g.y];m&&(w=c.get(D),x.push(w));f&&(u=e.get(D),x.push(u));D==l&&y&&(n=g.x,t=g.y,q=w,r=u);v.push(x)}!y||n==g.x&&t==g.y&&(!m||isNaN(q)&&isNaN(w)||q==w)&&(!f||isNaN(r)&&isNaN(u)||r==u)||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 E(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 I(d){return null===
d.spatialReference?null:pa(d.spatialReference)}var L=this&&this.__extends||function(d,m){function f(){this.constructor=d}for(var b in m)m.hasOwnProperty(b)&&(d[b]=m[b]);d.prototype=null===m?Object.create(m):(f.prototype=m.prototype,new f)},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 f=new ArrayBuffer(0);new Uint8Array(f);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 f(){this.description=
null;this.Ux=0}f.prototype.D=function(){return 0};f.prototype.fb=function(){return-1};f.prototype.Qf=function(b){this.qc();b!=this.description&&this.nm(b)};f.prototype.nm=function(){};f.prototype.Ik=function(b){this.qc();b!=this.description&&(b=d.Od.QN(this.description,b),b!=this.description&&this.nm(b))};f.prototype.hasAttribute=function(b){return this.description.hasAttribute(b)};f.prototype.Ne=function(b){this.qc();this.description.hasAttribute(b)||(b=d.Od.PN(this.description,b),this.nm(b))};f.prototype.Ah=
function(){return null};f.prototype.Fp=function(){};f.prototype.o=function(){};f.prototype.Cn=function(){};f.prototype.dd=function(b){this.o(b)};f.prototype.s=function(){return!0};f.prototype.Ja=function(){};f.prototype.Oe=function(){};f.prototype.Pa=function(){return null};f.prototype.copyTo=function(){};f.prototype.Mh=function(){return 0};f.prototype.$b=function(){return 0};f.prototype.WC=function(){return this.hasAttribute(1)};f.ve=function(b){return((b&192)>>6)+1>>1};f.Km=function(b){return 0!=
(b&32)};f.qT=function(b){return 0!=(b&64)};f.SO=function(b){return 0!=(b&128)};f.Lc=function(b){return 0!=(b&256)};f.Th=function(b){return 0!=(b&512)};f.Kc=function(b){return 0!=(b&1024)};f.prototype.vm=function(){var b=this.Pa();this.copyTo(b);return b};f.prototype.Rf=function(){return null};f.Yj=function(b){var a=b.Pa();b.copyTo(a);return a};f.prototype.qc=function(){0<=this.Ux&&(this.Ux+=2147483649)};f.Vu=function(b){var a=b.D();if(f.Th(a))return b.F();if(b.s())return 0;if(197==a)return 4;if(33==
a)return 1;if(f.Lc(a))return 2;throw d.g.ra("missing type");};return f}();d.T=m})(p||(p={}));(function(d){var m=function(){function f(){this.y=this.x=0}f.Oa=function(b,a){var c=new f;c.x=b;c.y=a;return c};f.prototype.ma=function(b,a){this.x=b;this.y=a};f.prototype.J=function(b){this.x=b.x;this.y=b.y};f.prototype.Cq=function(b,a){return this.x===b&&this.y===a};f.prototype.Ww=function(b){return 2.220446049250313E-16>=Math.abs(this.x-b.x)&&2.220446049250313E-16>=Math.abs(this.y-b.y)};f.prototype.ub=
function(b){return this.x===b.x&&this.y===b.y};f.prototype.lc=function(b){return b==this?!0:b instanceof f?this.x==b.x&&this.y==b.y:!1};f.prototype.sub=function(b){this.x-=b.x;this.y-=b.y};f.prototype.pc=function(b,a){this.x=b.x-a.x;this.y=b.y-a.y};f.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)};f.prototype.Bp=function(){this.x=-this.x;this.y=-this.y};f.prototype.qr=function(b){this.x=-b.x;this.y=-b.y};f.prototype.OO=function(b,a,c){this.x=b.x*(1-
c)+a.x*c;this.y=b.y*(1-c)+a.y*c};f.prototype.Fr=function(b,a){this.x=this.x*b+a.x;this.y=this.y*b+a.y};f.prototype.DR=function(b,a,c){this.x=a.x*b+c.x;this.y=a.y*b+c.y};f.prototype.scale=function(b){this.x*=b;this.y*=b};f.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};f.prototype.normalize=function(){var b=this.length();0==b&&(this.x=1,this.y=0);this.x/=b;this.y/=b};f.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};f.prototype.Up=
function(){return this.x*this.x+this.y*this.y};f.Fb=function(b,a){return Math.sqrt(this.Zb(b,a))};f.Yv=function(b,a,c,e){b-=c;a-=e;return Math.sqrt(b*b+a*a)};f.prototype.ml=function(b){return this.x*b.x+this.y*b.y};f.prototype.uA=function(b){return Math.abs(this.x*b.x)+Math.abs(this.y*b.y)};f.prototype.Ai=function(b){return this.x*b.y-this.y*b.x};f.prototype.Er=function(b,a){var c=-this.x*a+this.y*b;this.x=this.x*b+this.y*a;this.y=c};f.prototype.tt=function(){var b=this.x;this.x=-this.y;this.y=b};
f.prototype.zD=function(b){this.x=-b.y;this.y=b.x};f.prototype.Kp=function(){var b=this.x;this.x=this.y;this.y=-b};f.prototype.FA=function(){this.y=this.x=NaN};f.prototype.pv=function(){return isNaN(this.x)};f.prototype.ps=function(){return 0<this.x?0<=this.y?1:4:0<this.y?2:0==this.x?4:3};f.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};f.HT=function(b,a){return f.cq(b,a)};f.Zb=function(b,a){var c=b.x-a.x;b=b.y-a.y;return c*c+b*b};f.prototype.toString=function(){return"("+
this.x+" , "+this.y+")"};f.prototype.Eh=function(){this.y=this.x=NaN};f.prototype.yJ=function(){return this.pv()?NaN:Math.abs(this.x)>=Math.abs(this.y)?Math.abs(this.x):Math.abs(this.y)};f.prototype.offset=function(b,a){var c=f.Fb(b,a),e=f.Oa(this.x,this.y);if(0==c)return f.Fb(e,b);var g=new f;g.J(a);g.sub(b);e.sub(b);return e.Ai(g)/c};f.yn=function(b,a,c){var e=new d.$k;e.set(a.x);e.sub(b.x);var g=new d.$k;g.set(c.y);g.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(g);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);g=new d.Tn(b.x);h=new d.Tn(b.y);e=e.nr(g);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(g);e=e.Wp(b);a=a.Wp(c);e=e.Wp(a);return e.vP()?-1:e.nO()?1:0};f.prototype.hc=function(){return d.I.Rh(d.I.Rh())};return f}();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,g,h){.5>=g?(h.x=b+(c-b)*g,h.y=a+(e-a)*g):(h.x=c-(c-b)*(1-g),h.y=e-(e-a)*(1-g))};return d}();d.vi=m})(p||(p={}));(function(d){var m=function(f){function b(){f.call(this);this.ha=this.la=this.ja=this.na=0;this.fa=null}L(b,f);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=[],g=b.Xk(this.description,0),h=b.Xk(this.description,1),l=b.Xk(a,0),k=b.Xk(a,
1),n=0,f=1,q=a.Aa;f<q;f++){var r=a.Hd(f),w=d.pa.Wa(r);if(-1==c[f])for(var u=d.pa.ue(r),r=0;r<w;r++)e[l+n]=u,e[k+n]=u,n++;else for(u=this.description.fj(c[f])-2,r=0;r<w;r++)e[l+n]=this.fa[g+u],e[k+n]=this.fa[h+u],n++,u++}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 f=c.ld(l,n);this.om(a,l,n,f)}};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 g=this.description.zf(c);return 0<=g?(null!=this.fa&&this.rv(this.description.le.length-2),
this.fa[b.Xk(this.description,a)+this.description.fj(g)-2+e]):d.pa.ue(c)};b.prototype.om=function(a,c,e,g){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=g:this.la=g:0!=e?this.ja=g:this.na=g:(null==this.fa&&this.rv(this.description.le.length-2),this.fa[b.Xk(this.description,a)+this.description.fj(h)-2+e]=g)};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 g=a.D();switch(this.D()){case 322:if(322==g)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)return c=new d.b,this.Kb(a,c),c;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;c=1.7976931348623157E308;var e,b;e=this.Mb();b=a.Gd(e,!1);e.sub(a.Kb(b));e=e.length();e<c&&(c=e);e=this.oc();b=a.Gd(e,!1);e.sub(a.Kb(b));e=e.length();e<c&&(c=e);e=a.Mb();b=this.Gd(e,!1);e.sub(this.Kb(b));e=e.length();e<c&&(c=e);e=a.oc();b=this.Gd(e,!1);
e.sub(this.Kb(b));e=e.length();e<c&&(c=e);return c};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(f){function b(){f.call(this);this.El=65535;this.ta=0;this.rg=-1;this.pb=
null}L(b,f);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 g=d.pa.Wa(a);if(e>=
g)throw d.g.Uc();this.Ne(a);this.kc();a=this.description.zf(a);this.ce(1993);this.Ba[a].Uk(c*g+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);a=this.description.zf(a);null==this.Ba&&(this.Ba=d.Ac.ay(this.description.Aa));this.Ba[a]=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 b=new d.Nd;if(this.sc())return b.Ja(),
b;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(),b=0,g=this.description.Aa;b<g;b++)a=this.Ba[b].jj(a,0,c*d.pa.Wa(this.description.Fd(b)));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 g=this.description.Hd(e),h=this.mc(g),l=a.mc(g);
if(!h.lc(l,0,c*d.pa.Wa(g)))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,b=null;if(null!=this.Ba)for(var b=[],g=0;g<c;g++)null!=this.Ba[g]&&(b[g]=this.Ba[g].Ip(this.F()*d.pa.Wa(this.description.Fd(g))));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=b;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 b=this.description.Fd(c),g=d.pa.Wa(b),h=this.Ba[c],l=0;l<g;l++){var k=new d.Nd;k.Ja();for(var n=0;n<this.ta;n++){var f=h.Bh(n*g+
l);k.Db(f)}this.R.setInterval(b,l,k)}a&&this.yf(192,!1)}};b.prototype.wv=function(){this.R.Ja();for(var a=this.Ba[0],c=new d.b,b=0;b<this.ta;b++)a.ec(2*b,c),this.R.Db(c)};b.prototype.tm=function(a){a.Ja();for(var c=this.Ba[0],b=new d.b,g=0;g<this.ta;g++)c.ec(2*g,b),a.Db(b)};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 b=d.pa.Wa(c),g=
d.I.truncate(this.Ba[a].size/b);g<this.ta&&(g=d.I.truncate(this.rg>this.ta+5?(5*this.ta+3)/4:this.ta),this.Ba[a].resize(g*b,d.pa.ue(c)));g<this.rg&&(this.rg=g)}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,b,g){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();g.Qf(this.description);g.s()&&g.ko();for(var e=0;e<this.description.Aa;e++)for(var l=this.description.Fd(e),
k=0,n=d.pa.Wa(l);k<n;k++){var f=this.Ba[e].Bh(n*a+k),q=this.Ba[e].Bh(n*c+k);g.setAttribute(l,k,d.vi.ut(f,q,b))}};b.prototype.mv=function(a,c){var b=this.Ba[0].f,g=b[2*a]-b[2*c],b=b[2*a+1]-b[2*c+1];return Math.sqrt(g*g+b*b)};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 b=c.description,g=0;g<b.Aa;g++)for(var h=b.Hd(g),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 f(){this.cb=this.Qm=null;this.Ol=124234251;this.Ct=!0;this.Ae=-1;this.cb=new d.Fc(7);this.Qm=null}f.prototype.Hn=function(b){this.Qm=b};f.prototype.lM=function(){this.Ct=!1};f.prototype.de=function(b){this.cb.de(b)};f.prototype.nq=function(b){var a=this.cb.be();this.mS(a);this.oS(b,a);return a};f.prototype.fM=function(b){this.cb.Jc(b)};f.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)};f.prototype.PA=function(b){-1==this.Ae&&(this.Ae=this.nq(-1));return this.MA(b,1,this.Ae)};f.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};
f.prototype.vs=function(b,a,c,e){var g=-1;-1==g&&(-1==this.Ae&&(this.Ae=this.nq(-1)),g=this.Ae);var h=this.cb.f;if(-1==g||-1==h[7*g])return c=this.cb.Pj([-1,-1,-1,c,this.ck(),-1,-1]),h=this.cb.f,h[7*g]=c,this.mo(-1,c,g,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*g+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*g]=c);this.mo(e,c,g,h);return c};f.prototype.tC=function(){return this.xN(this.Ae)};f.prototype.kd=function(b,a){a=-1==a?this.Ae:a;this.Ct?this.eM(b,a):this.$S(b,a)};f.prototype.search=function(b,a){for(a=this.dt(a);-1!=a;){var c=this.Qm.compare(this,b,a);if(0==c)return a;a=0>c?this.ik(a):this.Jo(a)}return-1};
f.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};f.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};f.prototype.da=function(b){return this.cb.O(b,3)};f.prototype.ik=function(b){return this.cb.O(b,0)};f.prototype.Jo=function(b){return this.cb.O(b,1)};f.prototype.getParent=function(b){return this.cb.O(b,
2)};f.prototype.bb=function(b){return this.cb.O(b,6)};f.prototype.ge=function(b){return this.cb.O(b,5)};f.prototype.gc=function(b){return-1==b?this.gk(this.Ae):this.gk(b)};f.prototype.tc=function(b){return-1==b?this.uq(this.Ae):this.uq(b)};f.prototype.hO=function(b){return-1==b?this.QC(this.Ae):this.QC(b)};f.prototype.Vi=function(b,a){this.By(b,a)};f.prototype.dt=function(b){return-1==b?this.MC(this.Ae):this.MC(b)};f.prototype.clear=function(){this.cb.Nh(!1);this.Ae=-1};f.prototype.size=function(b){return-1==
b?this.OC(this.Ae):this.OC(b)};f.prototype.pK=function(b,a){for(var c=a[7*b],e=a[7*b+1],g=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(g<=Math.min(h,e))break;h<=e?this.oF(c,a):this.nF(b,a);c=a[7*b];e=a[7*b+1]}};f.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]};f.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)};f.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)};f.prototype.Tj=function(b,a){this.cb.L(b,2,a)};f.prototype.Gy=function(b,a){this.cb.L(b,0,a)};f.prototype.Ky=function(b,a){this.cb.L(b,1,a)};f.prototype.Jy=function(b,a){this.cb.L(b,5,a)};f.prototype.Gu=function(b,a){this.cb.L(b,6,a)};f.prototype.VF=function(b,
a){this.cb.L(a,0,b)};f.prototype.mS=function(b){this.cb.L(b,4,0)};f.prototype.oS=function(b,a){this.cb.L(a,5,b)};f.prototype.MC=function(b){return-1==b?-1:this.cb.O(b,0)};f.prototype.gk=function(b){return-1==b?-1:this.cb.O(b,1)};f.prototype.uq=function(b){return-1==b?-1:this.cb.O(b,2)};f.prototype.xN=function(b){return-1==b?-1:this.cb.O(b,3)};f.prototype.OC=function(b){return-1==b?0:this.cb.O(b,4)};f.prototype.QC=function(b){return this.cb.O(b,5)};f.prototype.ou=function(b){return this.cb.Pj([-1,
-1,-1,b,this.ck(),-1,-1])};f.prototype.bk=function(b){-1!=b&&this.cb.Jc(b)};f.prototype.ck=function(){this.Ol=d.I.$x(this.Ol);return this.Ol&1073741823};f.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 g=-1==c?-1:e[7*c];;){var h=-1==a?1:this.Qm.compare(this,b,g);if(0>h)if(h=this.ik(g),-1!=h)g=h;else{a=g;b=this.cb.Pj([-1,-1,g,b,this.ck(),-1,-1]);e=this.cb.f;e[7*g]=b;break}else{if(1==
a&&0==h)return e[7*c+3]=g,-1;h=e[7*g+1];if(-1!=h)g=h;else{a=e[7*g+6];b=this.cb.Pj([-1,-1,g,b,this.ck(),-1,-1]);e=this.cb.f;e[7*g+1]=b;break}}}this.Fv(b,e);-1===e[7*b+2]&&(e[7*c]=b);this.mo(a,b,c,e);return b};f.prototype.mo=function(b,a,c,e){var g;-1!=b?(g=e[7*b+5],e[7*b+5]=a):g=-1==c?-1:e[7*c+2];e[7*a+5]=g;-1!=g&&(e[7*g+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};f.prototype.ry=function(b,a){var c=this.cb.f,e=c[7*b+5];b=c[7*b+6];-1!=e?c[7*
e+6]=b:c[7*a+1]=b;-1!=b?c[7*b+5]=e:c[7*a+2]=e;c[7*a+4]=-1===a?-1:c[7*a+4]-1};f.prototype.$S=function(b,a){this.ry(b,a);var c=this.ik(b),e=this.Jo(b),g=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!=g?this.ik(g)==b?this.Gy(g,l):this.Ky(g,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),g=l):(this.Tj(c,
l),this.Tj(e,l),g=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==g?this.VF(c,a):this.ik(g)==h?this.Gy(g,c):this.Ky(g,c);-1!=c&&this.Tj(c,g);this.bk(b,a)};f.prototype.eM=function(b,a){var c=this.cb.f;c[7*b+4]=2147483647;var e=-1,g=-1,h=-1===a?-1:c[7*a],d=h==b;d&&(e=c[7*h],g=c[7*h+1],-1==e&&-1==g)?(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]?g:e))};f.prototype.By=function(b,a){this.cb.L(b,3,a)};return f}();d.bj=m})(p||(p={}));(function(d){var m=function(){function f(b,a){void 0!==b&&this.K(b,a)}f.prototype.K=function(b,a){this.qa=b;this.va=a;this.normalize()};f.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()}};f.prototype.Ja=function(){this.va=this.qa=NaN};f.prototype.s=function(){return isNaN(this.qa)};f.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()))};f.prototype.Oj=function(b){b<this.qa?this.qa=b:b>this.va&&(this.va=b)};f.prototype.contains=function(b){return"number"===typeof b?b>=this.qa&&b<=this.va:b.qa>=this.qa&&b.va<=this.va};f.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())};
f.prototype.P=function(b){this.s()||(this.qa-=b,this.va+=b,this.va<this.qa&&this.Ja())};f.prototype.lv=function(){return this.s()?2.220446049250313E-14:2.220446049250313E-14*(Math.abs(this.qa)+Math.abs(this.va)+1)};f.prototype.yy=function(b,a){b>a?(this.qa=a,this.va=b):(this.qa=b,this.va=a)};f.prototype.Sy=function(b){return d.I.Kr(b,this.qa,this.va)};f.prototype.aa=function(){return this.va-this.qa};f.prototype.Af=function(){return.5*(this.qa+this.va)};f.prototype.lc=function(b){return b==this?!0:
b instanceof f?this.s()&&b.s()?!0:this.qa!=b.qa||this.va!=b.va?!1:!0:!1};f.prototype.hc=function(){return d.I.Rh(d.I.Rh())};return f}();d.Nd=m})(p||(p={}));(function(d){var m=new d.Nd,f=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(ca);a.uw(X);c.ht(Y);c.uw(da);Q.ma(this.sp,this.Mj);
ca.ub(Y)&&this.Mj==ca.y?0>X.compare(da)?Q.J(X):Q.J(da):ca.ub(da)&&this.Mj==ca.y?0>X.compare(Y)?Q.J(X):Q.J(Y):Y.ub(X)&&this.Mj==Y.y?0>ca.compare(da)?Q.J(ca):Q.J(da):X.ub(da)&&this.Mj==X.y&&(0>ca.compare(Y)?Q.J(ca):Q.J(Y));return a.xe(Q.y,Q.x)<c.xe(Q.y,Q.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);a=this.HB(a,c);return 0>
b&&0>a?-1:0<b&&0<a?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 g=new d.b;g.pc(a.oc(),c.Mb());var e=e.ml(b),b=g.ml(b),g=Math.abs(e),n=Math.abs(b);if(g<n){if(g<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}e=a.ib;a=c.ib;var g=e.na-a.na;c=c.ux*(e.ja-a.ja);var d=this.tp;return g<c-d?-b:g>c+d?b:a.Kh(e.na,e.ja,this.ka)?this.Oh():g<c?-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}e=a.ib;a=c.ib;var g=e.la-a.na;c=c.ux*(e.ha-a.ja);var d=this.tp;return g<c-d?-b:g>c+d?b:a.Kh(e.la,e.ha,this.ka)?this.Oh():g<c?-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,g;e&&a==this.fr?g=this.oE:(g=NaN,this.fr=-1);e&&c==this.gr?e=this.pE:(e=NaN,this.gr=-1);b.Zd.XE(m);d.Zd.XE(f);if(m.va<f.qa)return-1;if(f.va<m.qa)return 1;this.nE=this.Mj;this.mE=this.sp;isNaN(g)&&(this.fr=a,this.oE=
g=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(g-e)<=this.ka?this.tL(b.Zd,d.Zd):g<e?-1:g>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 g;null==g&&(this.mr=d,g=this.vE,this.vE.Lf=b,this.$C(g,d,this.a.cd.f,this.a.Ge));if(e.Et||g.Et)return this.sL(c,d,e,g);if(e.$h.va<g.$h.qa)return-1;if(g.$h.va<e.$h.qa)return 1;a=e.Ft?1:0;a|=g.Ft?2:0;return 0==a?this.rL(e,g):1==a?this.FB(e.ib,g.ib):2==a?-1*this.FB(g.ib,e.ib):this.qL(e.ib,g.ib)};return a}();d.hA=a})(p||(p={}));(function(d){var m=function(){function f(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}f.prototype.lq=function(){this.Zf=!1;this.Cx=1.7976931348623157E308};f.prototype.bh=function(b){this.pp.J(b)};f.prototype.compare=function(b,a){return this.KB(a,b.da(a))};f.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();a=this.Vd.Mb();c=new d.b;c.pc(this.Vd.oc(),a);c.Kp();var e=new d.b;e.pc(this.pp,a);a=c.ml(e);a/=c.length();return a<10*-this.ka?-1:a>10*this.ka?1:this.Vd.Eq(this.pp,this.ka)&&(c=Math.abs(a),c<this.Cx&&(this.Cl=b,this.Cx=c),this.Zf=!0,c<.25*this.ka)?0:0>a?-1:1};return f}();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 f=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;a=new b(a);b.ob=0;return a};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),g=this.f.length;g<a;g++)b[g]=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 g=this.size,h=a.size;if(e>g||e>h&&g!=h)return!1;for(e>g&&(e=g);c<e;c++)if(this.read(c)!=a.read(c))return!1;return!0};b.prototype.nk=function(a,c,b,g,h,l,k){if(this.Sa)throw d.g.xa();if(!h&&(1>l||0!=g%l))throw d.g.N();var e=this.size-k;e<g&&this.resize(this.size+g-e);for(e=0;e<k-a;e++)this.f[a+g+e]=this.f[a+e];this.f==c.f&&a<b&&(b+=g);if(h)for(e=0;e<g;e++)this.f[e+a]=c.f[b+e];else for(h=g,k=0;k<g;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,g){if(this.Sa)throw d.g.xa();g-=a;for(var e=this.f.slice(a,a+g),l=0;l<g;l++)this.f[a+b+l]=e[l];for(g=0;g<b;g++)this.f[a+g]=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,g,h,l){if(0>a||0>c||0>g)throw d.g.N();if(!h&&(0>=l||0!=c%l))throw d.g.N();if(b.size<g+c)throw d.g.N();if(0!=c)if(this.size<c+a&&this.resize(c+a),b==this)this.xi(a,
c,g,h,l);else if(h)for(h=0;h<c;h++)this.f[a]=b.f[g],a++,g++;else if(g=g+c-l,1==l)for(h=0;h<c;h++)this.f[a]=b.f[g],a++,g--;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[g+e];a+=l;g-=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,g,h){if(!g||a!=b){for(var e=0;e<c;e++)this.f[a+e]=this.f[b+e];if(!g)for(b=a,a=a+c-h,g=0,c=d.I.truncate(c/2);g<c;g++){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,g,h){if(0>a||0>
c||0>g)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+=g;g<c;g++)this.f[a]=b[g].x,this.f[a+1]=b[g].y,a+=h};b.prototype.Hp=function(a,c,b,g,h){if(0>a||0>c||0>g||this.size<c+a)throw d.g.N();if(h)for(h=0;h<c;h++)b[g+h]=this.f[a+h];else for(g=g+c-1;a<c;a++)b[g]=this.f[a],g--};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=f;f=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),g=e.f;2>a&&(a=2);if(0!==c)for(var h=0;h<a;h++)g[h]=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);c=e.size;2>c&&(c=2);e.f=new Float64Array(c);e.f.set(a.f.length<=
c?a.f:a.f.subarray(0,c),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,g=this.size;g<a;g++)b[g]=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 g=this.size,h=a.size;if(e>g||e>h&&g!=h)return!1;for(e>g&&(e=g);c<e;c++)if(this.read(c)!=a.read(c))return!1;return!0};b.prototype.nk=function(a,c,b,g,h,l,k){if(this.Sa)throw d.g.xa();if(!h&&(1>l||0!=g%l))throw d.g.N();var e=this.size-k;e<g&&this.resize(this.size+g-e);m(this.f,a+g,a,a+(k-a));this.f==c.f&&a<b&&(b+=g);if(h)this.f.set(c.f.subarray(b,b+g),a);else for(h=g,k=0;k<g;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,g){if(this.Sa)throw d.g.xa();g-=a;m(this.f,a+g,a,a+g);for(g=0;g<b;g++)this.f[a+g]=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,g,h,l){if(0>a||0>c||0>g)throw d.g.N();if(!h&&(0>=l||0!=c%l))throw d.g.N();if(b.size<g+c)throw d.g.N();if(0!=c)if(this.size<c+a&&this.resize(c+a),b==this)this.xi(a,c,g,h,l);else if(h)for(h=0;h<c;h++)this.f[a]=b.f[g],a++,g++;else if(g=g+c-l,1==l)for(h=
0;h<c;h++)this.f[a]=b.f[g],a++,g--;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[g+e];a+=l;g-=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,g,h){if(!g||a!=b)if(this.f.set(this.f.subarray(b,b+c),a),!g)for(b=a,a=a+c-h,g=0,c=d.I.truncate(c/2);g<c;g++){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,g,h){if(0>a||0>c||0>g)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+=g;g<c;g++)this.f[a]=b[g].x,this.f[a+1]=b[g].y,
a+=h};b.prototype.Hp=function(a,c,b,g,h){if(0>a||0>c||0>g||this.size<c+a)throw d.g.N();if(h)for(h=0;h<c;h++)b[g+h]=this.f[a+h];else for(g=g+c-1;a<c;a++)b[g]=this.f[a],g--};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=f})(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 f=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;a=new b(a);b.ob=0;return a};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),g=this.f.length;g<a;g++)b[g]=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 g=this.size,h=a.size;if(e>g||e>h&&g!=h)return!1;for(e>g&&(e=g);c<e;c++)if(this.read(c)!=a.read(c))return!1;return!0};b.prototype.nk=function(a,c,b,g,h,l,k){if(this.Sa)throw d.g.xa();if(!h&&(1>l||0!=g%l))throw d.g.N();for(var e=0;e<k-a;e++)this.f[a+g+e]=this.f[a+e];this.f==c.f&&a<
b&&(b+=g);if(h)for(e=0;e<g;e++)this.f[e+a]=c.f[b+e];else for(h=g,k=0;k<g;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,g){if(this.Sa)throw d.g.xa();g-=a;for(var e=this.f.slice(a,a+g),l=0;l<g;l++)this.f[a+b+l]=e[l];for(g=0;g<b;g++)this.f[a+g]=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,g,h,l){if(0>a||0>c||0>g)throw d.g.N();
if(!h&&(0>=l||0!=c%l))throw d.g.N();if(b.size<g+c)throw d.g.N();if(0!=c)if(this.size<c+a&&this.resize(c+a),b==this)this.xi(a,c,g,h,l);else if(h)for(h=0;h<c;h++)this.f[a]=b.f[g],a++,g++;else if(g=g+c-l,1==l)for(h=0;h<c;h++)this.f[a]=b.f[g],a++,g--;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[g+e];a+=l;g-=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,g,h){if(!g||a!=b){for(var e=0;e<c;e++)this.f[a+e]=this.f[b+e];if(!g)for(b=a,a=a+c-h,g=0,c=d.I.truncate(c/2);g<c;g++){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,g,h){if(0>a||0>c||0>g)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+=g;g<c;g++)this.f[a]=b[g].x,this.f[a+1]=b[g].y,a+=h};b.prototype.Hp=function(a,c,b,g,h){if(0>a||0>c||0>g||this.size<c+a)throw d.g.N();if(h)for(h=0;h<c;h++)b[g+h]=this.f[a+h];else for(g=g+c-1;a<c;a++)b[g]=this.f[a],g--};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=f;f=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),g=e.f;2>a&&(a=2);if(0!==c)for(var h=0;h<a;h++)g[h]=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);c=e.size;2>c&&(c=2);e.f=new Int32Array(c);e.f.set(a.f.length<=
c?a.f:a.f.subarray(0,c),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,g=this.size;g<a;g++)b[g]=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 g=this.size,h=a.size;if(e>g||e>h&&g!=h)return!1;for(e>g&&(e=g);c<e;c++)if(this.read(c)!=a.read(c))return!1;return!0};b.prototype.nk=function(a,c,b,g,h,l,k){if(this.Sa)throw d.g.xa();if(!h&&(1>l||0!=g%l))throw d.g.N();m(this.f,a+g,a,a+(k-a));this.f==c.f&&a<b&&(b+=g);if(h)this.f.set(c.f.subarray(b,b+g),a);else for(h=g,k=0;k<g;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,g){if(this.Sa)throw d.g.xa();
g-=a;m(this.f,a+g,a,a+g);for(g=0;g<b;g++)this.f[a+g]=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,g,h,l){if(0>a||0>c||0>g)throw d.g.N();if(!h&&(0>=l||0!=c%l))throw d.g.N();if(b.size<g+c)throw d.g.N();if(0!=c)if(this.size<c+a&&this.resize(c+a),b==this)this.xi(a,c,g,h,l);else if(h)for(h=0;h<c;h++)this.f[a]=b.f[g],a++,g++;else if(g=g+c-l,1==l)for(h=0;h<c;h++)this.f[a]=b.f[g],a++,g--;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[g+e];a+=l;g-=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,g,h){if(!g||a!=b)if(this.f.set(this.f.subarray(b,b+c),a),!g)for(b=a,a=a+c-h,g=0,c=d.I.truncate(c/2);g<c;g++){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,g,h){if(0>a||0>c||0>g)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+=g;g<c;g++)this.f[a]=b[g].x,this.f[a+1]=b[g].y,a+=h};b.prototype.Hp=function(a,c,b,g,h){if(0>a||0>c||0>
g||this.size<c+a)throw d.g.N();if(h)for(h=0;h<c;h++)b[g+h]=this.f[a+h];else for(g=g+c-1;a<c;a++)b[g]=this.f[a],g--};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,g){for(var e=c;e<b;e++){for(var d=a[e],k=e-1;k>=c&&0<g(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,g){if(!(c>=e))for(;;){if(9>e-c){b.$i(a,c,e+1,g);break}var h=a[c];b.Wf(a,c,e);for(var d=c,k=c;k<e;k++)0>=g(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,g),c=d+1):(b.$g(a,d+1,e,g),e=d-1)}};return b}();d.Xu=f})(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 f=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;a=new b(a);b.ob=0;return a};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),g=this.f.length;g<a;g++)b[g]=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 g=this.size,h=a.size;if(e>g||e>h&&g!=h)return!1;for(e>g&&(e=g);c<e;c++)if(this.read(c)!=a.read(c))return!1;return!0};b.prototype.nk=function(a,
c,b,g,h,l,k){if(this.Sa)throw d.g.xa();if(!h&&(1>l||0!=g%l))throw d.g.N();for(var e=0;e<k-a;e++)this.f[a+g+e]=this.f[a+e];this.f==c.f&&a<b&&(b+=g);if(h)for(e=0;e<g;e++)this.f[e+a]=c.f[b+e];else for(h=g,k=0;k<g;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,g){if(this.Sa)throw d.g.xa();g-=a;for(var e=this.f.slice(a,a+g),l=0;l<g;l++)this.f[a+b+l]=e[l];for(g=0;g<b;g++)this.f[a+g]=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,g,h,l){if(0>a||0>c||0>g)throw d.g.N();if(!h&&(0>=l||0!=c%l))throw d.g.N();if(b.size<g+c)throw d.g.N();if(0!=c)if(this.size<c+a&&this.resize(c+a),b==this)this.xi(a,c,g,h,l);else if(h)for(h=0;h<c;h++)this.f[a]=b.f[g],a++,g++;else if(g=g+c-l,1==l)for(h=0;h<c;h++)this.f[a]=b.f[g],a++,g--;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[g+e];a+=l;g-=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,g,h){if(!g||a!=b){for(var e=0;e<c;e++)this.f[a+e]=this.f[b+e];if(!g)for(b=a,a=a+c-h,g=0,c=d.I.truncate(c/2);g<c;g++){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,g,h){if(0>a||0>c||0>g)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+=g;g<c;g++)this.f[a]=b[g].x,this.f[a+1]=b[g].y,a+=h};b.prototype.Hp=function(a,c,b,g,h){if(0>a||0>c||0>g||this.size<c+a)throw d.g.N();if(h)for(h=0;h<
c;h++)b[g+h]=this.f[a+h];else for(g=g+c-1;a<c;a++)b[g]=this.f[a],g--};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=f;f=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),g=e.f;2>a&&(a=2);if(0!==c)for(var h=0;h<a;h++)g[h]=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);c=e.size;2>c&&(c=2);e.f=new Int8Array(c);e.f.set(a.f.length<=c?a.f:a.f.subarray(0,c),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,g=this.size;g<a;g++)b[g]=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 g=this.size,
h=a.size;if(e>g||e>h&&g!=h)return!1;for(e>g&&(e=g);c<e;c++)if(this.read(c)!=a.read(c))return!1;return!0};b.prototype.nk=function(a,c,b,g,h,l,k){if(this.Sa)throw d.g.xa();if(!h&&(1>l||0!=g%l))throw d.g.N();m(this.f,a+g,a,a+(k-a));this.f==c.f&&a<b&&(b+=g);if(h)this.f.set(c.f.subarray(b,b+g),a);else for(h=g,k=0;k<g;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,g){if(this.Sa)throw d.g.xa();g-=a;m(this.f,a+g,a,a+g);for(g=0;g<b;g++)this.f[a+g]=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,g,h,l){if(0>a||0>c||0>g)throw d.g.N();if(!h&&(0>=l||0!=c%l))throw d.g.N();if(b.size<g+c)throw d.g.N();if(0!=c)if(this.size<c+a&&this.resize(c+a),b==this)this.xi(a,c,g,h,l);else if(h)for(h=0;h<c;h++)this.f[a]=b.f[g],a++,g++;else if(g=g+c-l,1==l)for(h=0;h<c;h++)this.f[a]=b.f[g],a++,g--;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[g+e];a+=l;g-=
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,g,
h){if(!g||a!=b)if(this.f.set(this.f.subarray(b,b+c),a),!g)for(b=a,a=a+c-h,g=0,c=d.I.truncate(c/2);g<c;g++){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,g,h){if(0>a||0>c||0>g)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+=g;g<c;g++)this.f[a]=b[g].x,this.f[a+1]=b[g].y,a+=h};b.prototype.Hp=function(a,c,b,g,h){if(0>a||0>c||0>g||this.size<c+a)throw d.g.N();if(h)for(h=0;h<c;h++)b[g+
h]=this.f[a+h];else for(g=g+c-1;a<c;a++)b[g]=this.f[a],g--};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=
f})(p||(p={}));!0===p.ah.Sk&&(p.Wk=p.Yu);(function(d){var m=function(){function f(){}f.to=function(b,a){return d.Wk.Yc(b,a)};f.kl=function(b,a){return d.qd.Yc(b,a)};f.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};f.Tv=function(b,a){return f.Sv(d.pa.Qh(b),a*d.pa.Wa(b),d.pa.ue(b))};f.Dg=function(b,a){return d.ga.Yc(b,a)};f.ay=function(b){var a,c=[];for(a=0;a<b;a++)c.push(null);return c};return f}();
d.Ac=m})(p||(p={}));(function(d){var m=function(){function f(){}f.to=function(b,a){return d.Yu.Yc(b,a)};f.kl=function(b,a){return d.qd.Yc(b,a)};f.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};f.Tv=function(b,a){return d.Ac.Sv(d.pa.Qh(b),a*d.pa.Wa(b),d.pa.ue(b))};f.Dg=function(b,a){return d.Xu.Yc(b,a)};f.ay=function(b){var a,c=[];for(a=0;a<b;a++)c.push(null);return c};return f}();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 f=function(){function b(){}b.Sn=function(a,c){a=m.H(a);c=m.H(c);var b=0;0!=a+c&&(a>c?(b=c/a,b=a*Math.sqrt(1+b*b)):(b=a/c,b=c*Math.sqrt(1+b*b)));return b};b.Ep=function(a,c,e,g,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]);g[0]=e;g[1]=c;g[2]=d;g[3]=a;k=b.jm(g);g[0]/=k;g[1]/=k;g[2]/=k;g[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),g[0]*=k,g[1]*=k,
g[2]*=k,g[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,g,h,d){var l=b.n(1,a,c),n=Math.cos(c);g.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,g,h,d,k){var l=b.Sn(c,e),f=1*Math.sqrt(1-a),q=f/1;if(m.S(l,0))d.l=0,h.l=m.nb(1.570796326794897,g),k.l=m.H(g)-f;else{d.l=Math.atan2(e,
c);e=Math.atan2(1*g,f*l);d=Math.cos(e);var r=Math.sin(e);c=f*a/(1-a);a*=1;e=Math.atan2(g+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(g+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=(g-f*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,g,h,d,k,n,f,q,r;if(.006884661117170036>a){d=Math.sqrt(1-a);k=(1-d)/(1+d);n=k*k;f=k*n;q=k*f;e=k*q;r=k*e;g=k*r;h=1.572916666666667*f-3.2578125*e+4.295068359375*g;d=2.142578125*q-6.071484375*r;a=3.129296875*e-11.249837239583334*g;var w=4.775276692708333*r,u=7.958636765252976*g,y=Math.cos(2*c);return c+
Math.sin(2*c)*(1.5*k-.84375*f+.525390625*e-.2688395182291667*g-h+a-u+y*(2*(1.3125*n-1.71875*q+1.650146484375*r)-4*d+6*w+y*(4*h-12*a+24*u+y*(8*d-32*w+y*(16*a-80*u+y*(32*w+64*y*u))))))}d=1-a;k=a/2;n=m.H(c);f=n*b.Yr(a)/(1.570796326794897*d);q=9999;r=n;for(n=0;1E-16<q&&50>n;n++)g=b.Tk(a,r),e=(b.Lz(r,a)-k*Math.sin(2*r)/g)/d-f,g=1/(g*g*g),h=e/g,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){c=Math.sqrt(1-c);c=(1-c)/(1+c);var e=c*c,g=e*e;return a/(1+c)*(1+.25*e+.015625*g+.00390625*e*g)*1.570796326794897}return a*b.Yr(c)};b.Dp=function(a,c){var e=m.nb(1,Math.sin(c));c=m.H(b.Hz(c,3.141592653589793));c=1.570796326794897>=c?c:3.141592653589793-c;var g;m.S(c,1.570796326794897)?g=c:g=Math.atan(Math.sqrt(1-a)*Math.tan(c));
return g*e};b.q=function(a,c,e){if(.006884661117170036>c){c=Math.sqrt(1-c);c=(1-c)/(1+c);var g=c*c,h=c*g,d=c*h,k=c*d,n=c*k,f=c*n,q=-.7291666666666666*h+.2278645833333333*k+.03987630208333334*f,r=.615234375*d-.21533203125*n,w=-.54140625*k+.20302734375*f,u=.48876953125*n,y=-.4488699776785715*f,m=Math.cos(2*e);return a/(1+c)*((1+.25*g+.015625*d+.00390625*n)*e+Math.sin(2*e)*(-1.5*c+.1875*h+.0234375*k+.00732421875*f-q+w-y+m*(2*(.9375*g-.234375*d-.03662109375*n)-4*r+6*u+m*(4*q-12*w+24*y+m*(8*r-32*u+m*(16*
w-80*y+m*(32*u+64*m*y)))))))}return a*(b.Lz(e,c)-.5*c*Math.sin(2*e)/b.Tk(c,e))};b.Tk=function(a,c){c=Math.sin(c);return Math.sqrt(1-a*c*c)};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 g=Math.floor(a/1.570796326794897),h;if(1<c)h=0==a?0:NaN;else if(m.Vc(g))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(g%2);var l=b.Yr(c);0<h?(h=Math.sin(1.570796326794897*(g+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*(g+1)-h):(h=Math.sin(a-1.570796326794897*g),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*g+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=1,g=0,h=1,d,k,n,f;;){d=.2*(a+c+3*b);k=(d-a)/d;n=(d-c)/d;f=(d-b)/d;if(1E-4>m.H(k)&&1E-4>m.H(n)&&1E-4>m.H(f))break;f=Math.sqrt(c);d=Math.sqrt(b);f=Math.sqrt(a)*(f+d)+f*
d;g+=h/(d*(b+f));h*=.25;a=.25*(a+f);c=.25*(c+f);b=.25*(b+f)}a=k*n;b=f*f;c=a-b;b=a-6*b;k=b+c+c;return 3*g+h*(1+b*(-.2142857142857143+.10227272727272728*b-.1730769230769231*f*k)+f*(.1666666666666667*k+f*(-.4090909090909091*c+.1153846153846154*f*a)))/(d*Math.sqrt(d))};b.js=function(a,c){for(var b,g,h,d,k=1;;k=.25*(k+b)){b=(a+c+k)/3;g=2-(b+a)/b;h=2-(b+c)/b;d=2-(b+k)/b;if(1E-4>m.H(g)&&1E-4>m.H(h)&&1E-4>m.H(d))break;b=Math.sqrt(c);g=Math.sqrt(k);b=Math.sqrt(a)*(b+g)+b*g;a=.25*(a+b);c=.25*(c+b)}a=g*h-d*
d;c=g*h*d;return(1+(.04166666666666666*a-.1-.06818181818181818*c)*a+.07142857142857142*c)/Math.sqrt(b)};b.qu=function(a,c){if(m.Ih(a)||0==c||m.S(m.H(c),1.570796326794897))return c;var b,g,h;if(.006884661117170036>a){b=a*a;g=a*b;h=a*g;var d=a*h,k=a*d,n=a*k,f=-(.02708333333333333*g+.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,u=-(2.17324089394402E-4*n),y=Math.cos(2*c);return c+Math.sin(2*c)*(-(.5*a+.2083333333333333*b+.09375*g+.04878472222222222*h+.02916666666666667*d+.01938905423280423*k+.01388255931712963*n)-f+r-u+y*(2*(.1041666666666667*b+.0875*g+.06050347222222222*h+.04151785714285714*d+.02958958540013228*k+.02203667534722222*n)-4*q+6*w+y*(4*f-12*r+24*u+y*(8*q-32*w+y*(16*r-80*u+y*(32*w+64*y*u))))))}0==c||m.S(m.H(c),1.570796326794897)?b=c:(g=Math.sqrt(a),h=g*Math.sin(c),
b=Math.tan(.7853981633974483+c/2)*Math.pow((1-h)/(1+h),g/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,g;if(.006884661117170036>a){y=a*a;r=a*y;w=a*r;b=a*w;u=a*b;g=a*u;var h=.05833333333333333*r+.07232142857142858*w+.05634300595238095*b+.0355325796406526*u+.020235546186067*g,d=.02653149801587302*w+.04379960317460317*b+.0429211791776896*u+.03255384637546096*g,k=.01294022817460318*b+.02668104344536636*u+.03155651254609588*
g,n=.00659454790965208*u+.0163075268674227*g,f=.003463473736911237*g,q=Math.cos(2*c);return c+Math.sin(2*c)*(.5*a+.2083333333333333*y+.08333333333333333*r+.03611111111111111*w+.01875*b+.01195601851851852*u+.008863673941798942*g-h+k-f+q*(2*(.1458333333333333*y+.1208333333333333*r+.07039930555555556*w+.03616071428571429*b+.01839451058201058*u+.01017113095238095*g)-4*d+6*n+q*(4*h-12*k+24*f+q*(8*d-32*n+q*(16*k-80*f+q*(32*n+64*q*f))))))}for(var r=Math.sqrt(a),w=r/2,u=Math.tan(.7853981633974483+c/2),h=
0,d=1,y=c;0!=d;y=g)if(b=r*Math.sin(y),g=u*Math.pow((1+b)/(1-b),w),g=2*Math.atan(g)-1.570796326794897,h++,m.S(g,y)||3E4<h)d=0;return y};return b}();d.u=f})(p||(p={}));(function(d){var m=function(){function f(){}f.Fb=function(b,a,c,e,g,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);g=d.u.W(g);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(g)&&(g=d.j.nb(3.141592653589793,g)-g,e=d.u.W(e+3.141592653589793));var n=
d.u.W(e-a);if(d.j.S(c,g)&&(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,-g)){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 f=1.570796326794897==d.j.H(c)?0:
Math.cos(c),q=Math.sin(c),r=1.570796326794897==d.j.H(g)?0:Math.cos(g),w=Math.sin(g),u=1.570796326794897==d.j.H(n)?0:Math.cos(n),y=3.141592653589793==d.j.H(n)?0:Math.sin(n);if(null!=h){var m=Math.sin((g-c)/2),n=Math.sin(n/2);h.l=2*Math.asin(Math.sqrt(m*m+f*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*y,f*w-q*r*u));null!=k&&(d.j.S(d.j.H(g),1.570796326794897)?k.l=0>g?a:d.u.W(3.141592653589793-a):(k.l=Math.atan2(f*y,w*f*u-r*q),k.l=d.u.W(k.l+
3.141592653589793)))}}};f.gf=function(b,a,c,e,g,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);g=d.u.W(g);var k=d.j.S(d.j.H(g),1.570796326794897)?0:Math.cos(g),n=d.j.S(d.j.H(g),3.141592653589793)?0:Math.sin(g),f=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+f*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?g:d.u.W(3.141592653589793-g):a:d.j.S(d.j.H(c),1.570796326794897)&&d.j.S(b,3.141592653589793)?0>c?g:d.u.W(3.141592653589793-g):d.u.W(a+Math.atan2(r*n,f*e-q*r*k)))}};return f}();d.zg=m})(p||(p={}));(function(d){var m=function(){function f(){}f.Fb=function(b,a,c,e,g,h,l,k,n){var f=new d.ca(0),q=new d.ca(0),r=[0,0,0],w=[0,0,0],u=[0,0,0],y=new d.ca(0),m=new d.ca(0),D=new d.ca(0),x=new d.ca(0),
p=new d.ca(0);if(null!=l||null!=k||null!=n)if(d.j.Ih(a))d.zg.Fb(b,c,e,g,h,l,k,n);else{g=d.u.W(g);c=d.u.W(c);var A=d.u.W(g-c);if(d.j.S(e,h)&&(d.j.S(c,g)||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(g)):d.u.W(g));null!=n&&(n.l=0<e?d.u.W(g):d.u.W(3.141592653589793-d.u.W(g)));return}d.j.S(d.j.H(A),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=g:g=c;var z=0,C;0>A&&(z=1,C=c,c=g,g=C,C=e,e=h,h=C);var A=d.u.sr(a,e),F=d.u.sr(a,h);if(null!=k||null!=n)d.zg.Fb(b,c,A,g,F,null,f,q),f=Math.atan2(Math.sin(f.l)*Math.cos(e-A),Math.cos(f.l)),q=Math.atan2(Math.sin(q.l)*Math.cos(h-F),Math.cos(q.l)),0!=z&&(C=f,f=q,q=C),null!=k&&(k.l=f),null!=n&&(n.l=q);null!=l&&(d.u.wm(a,e,c,D,x,p),r[0]=D.l,
r[1]=x.l,r[2]=p.l,d.u.wm(a,h,g,D,x,p),w[0]=D.l,w[1]=x.l,w[2]=p.l,u[0]=r[1]*w[2]-w[1]*r[2],u[1]=-(r[0]*w[2]-w[0]*r[2]),u[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(u[2]/Math.sqrt(u[0]*u[0]+u[1]*u[1]+u[2]*u[2]))))),a*=2-a,k=Math.atan2(-u[1],-u[0]),u=d.u.W(k-1.570796326794897),k=d.u.W(k+1.570796326794897),u=d.j.H(d.u.W(c-u))<=d.j.H(d.u.W(c-k))?u:k,d.zg.Fb(1,u,0,c,A,y,null,null),d.zg.Fb(1,u,0,g,F,m,null,null),3.141592653589793<y.l+m.l&&(u=d.u.W(u+3.141592653589793),d.zg.Fb(1,u,0,
c,A,y,null,null),d.zg.Fb(1,u,0,g,F,m,null,null)),y.l*=d.j.nb(1,e),m.l*=d.j.nb(1,h),y.l=d.u.Si(a,y.l),m.l=d.u.Si(a,m.l),c=d.u.q(b,a,y.l),b=d.u.q(b,a,m.l),l.l=d.j.H(b-c))}}};f.gf=function(b,a,c,e,g,h,l,k){var n=0,f=new d.ca(0),q=new d.ca(0),r=[0,0,0],w=[0,0,0],u=new d.ca(0),y=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,g,h,l,k);else if(d.j.Vc(g))null!=l&&(l.l=c),null!=k&&(k.l=e);else{h=d.u.W(h);0>g&&(g=d.j.H(g),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 D;if(d.j.Vc(e))D=d.j.H(1.570796326794897-d.j.H(h)),D=d.u.Si(a,D),D=1-d.u.Tk(a,d.u.Dp(a,D)),D*=2-D,b=g/d.u.gg(b,D)*1.570796326794897,b=d.u.xn(D,b),b=d.u.sr(D,b),d.zg.gf(1,c,e,b,h,l,f),null!=k&&(n=f.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),f=2*n,b=d.j.nb(1.570796326794897,e),h=0<b?d.u.W(3.141592653589793-h):h,e=n-g,d.j.H(e)<=n?null!=l&&(l.l=
h):(e=Math.floor(g/f),0==d.I.truncate(e%2)?(null!=l&&(l.l=h),e=n-(g-e*f)):(null!=l&&(l.l=d.u.W(h+3.141592653589793)),e=n-((e+1)*f-g))),null!=k&&(k.l=d.u.xn(a,e/n*b));else{D=d.u.sr(a,e);h=Math.atan2(Math.sin(h),Math.cos(h)*Math.cos(e-D));var x=d.I.truncate(d.j.nb(1,D))*(1.570796326794897>=d.j.H(h)?1:-1);h=d.u.W(c+Math.atan(Math.tan(h)*-Math.sin(D)));d.zg.Fb(b,h,0,c,D,null,q,null);D=d.j.H(1.570796326794897-d.j.H(q.l));D=d.u.Si(a,D);D=1-d.u.Tk(a,d.u.Dp(a,D));D*=2-D;d.u.wm(a,0,h,u,y,m);r[0]=u.l;r[1]=
y.l;r[2]=m.l;d.u.wm(a,e,c,u,y,m);w[0]=u.l;w[1]=y.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(D,e);e=d.u.q(b,D,e)+g*x;g=0<e?q.l:d.u.W(q.l+3.141592653589793);b=d.j.H(e)/d.u.gg(b,D)*1.570796326794897;b=d.u.xn(D,b);b=d.u.sr(D,b);d.zg.gf(1,h,0,b,g,l,f);null!=k&&(n=f.l);null!=k&&(k.l=d.u.Si(a,n))}}};return f}();d.Xj=m})(p||(p={}));(function(d){var m=function(){function f(){}f.Fb=function(b,a,c,e,g,h,l,k,n){var f=0,q=0,r=0;if(null!=l||null!=k||
null!=n)if(d.j.Ih(a))d.zg.Fb(b,c,e,g,h,l,k,n);else{var w=d.u.W(g-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(g)):d.u.W(g));null!=n&&(n.l=0<e?d.u.W(g):d.u.W(3.141592653589793-d.u.W(g)));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,g,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,g,h,l,k,n);return}}var u=1-Math.sqrt(1-a),m=a/(1-a),v=b*(1-u);b=d.u.Dp(a,e);var D=d.u.Dp(a,h);a=1.570796326794897==d.j.H(b)?0:Math.cos(b);var x=Math.sin(b),p=1.570796326794897==d.j.H(D)?0:Math.cos(D),A=Math.sin(D),z=w,C=Math.cos(z),F=Math.sin(z),G=1,O=0,H,K,T,E,J;do{H=z;K=Math.sqrt(Math.pow(p*F,2)+Math.pow(a*A-x*p*C,2));T=x*A+a*p*C;E=Math.atan2(K,
T);if(0==K){G=0;break}J=a*p*F/K;f=Math.cos(Math.asin(J));f*=f;q=T-2*x*A/f;1<d.j.H(q)&&(q=d.j.nb(1,q));r=q*q;z=u/16*f*(4+u*(4-3*f));z=w+(1-z)*u*J*(E+z*K*(q+z*T*(2*r-1)));C=Math.cos(z);F=Math.sin(z);O++;if(3.141592653589793<d.j.H(z)&&30<O){G=0;break}}while(5E3>=O&&!d.j.S(H,z));if(0!=G)m*=f,u=m*(256+m*(-128+m*(74-47*m)))/1024,null!=l&&(l.l=v*(1+m*(4096+m*(-768+m*(320-175*m)))/16384)*(E-u*K*(q+u/4*(T*(2*r-1)-u/6*q*(4*K*K-3)*(4*r-3))))),null!=k&&(d.j.S(d.j.H(e),1.570796326794897)?k.l=0>e?g:d.u.W(3.141592653589793-
g):k.l=Math.atan2(p*F,a*A-x*p*C)),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*F,a*A*C-x*p),n.l=d.u.W(n.l+3.141592653589793)));else{z=d.j.nb(3.141592653589793,w);T=x*A-a*p;E=Math.acos(T);K=Math.sin(E);f=1;O=J=0;do r=J,f*=f,C=f*f,J=u*f*(1+u+u*u),q=u*u*C*(1+2.25*u),G=u*u*u*C*f,C=1-.25*J+.1875*q-.1953125*G,J=.25*J-.25*q+.29296875*G,F=.03125*q-.05859375*G,G*=.00651041666666667,q=T-2*x*A/f,1<d.j.H(q)&&(q=d.j.nb(1,q)),f=Math.acos(q),T=Math.cos(2*f),
H=Math.cos(3*f),J=d.j.S(e,-h)?d.u.W(3.141592653589793-w)/(3.141592653589793*u*C):d.u.W(z-w)/(u*(C*E+J*K*q+F*Math.sin(2*E)*T+G*Math.sin(3*E)*H)),F=J*K/(a*p),z=1.570796326794897<d.j.H(w)?d.j.nb(3.141592653589793,F)-Math.asin(F):Math.asin(F),C=Math.cos(z),K=Math.sqrt(Math.pow(p*F,2)+Math.pow(a*A-x*p*C,2)),E=3.141592653589793-Math.asin(d.j.H(K)),T=Math.cos(E),f=Math.cos(Math.asin(J)),O++;while(70>=O&&!d.j.S(r,J));null!=l&&(f*=f,m*=f,C=1+m*(4096+m*(-768+m*(320-175*m)))/16384,d.j.S(e,-h)?l.l=3.141592653589793*
v*C:(q=T-2*x*A/f,f=Math.acos(q),T=Math.cos(2*f),H=Math.cos(3*f),l.l=v*(C*E+m*(-512+m*(128+m*(-60+35*m)))/2048*K*q+m*(-4+5*m)/6144*m*m*Math.sin(2*E)*T+G*Math.sin(3*E)*H+-7.62939453125E-5*m*m*m*m*Math.sin(4*E)*Math.cos(4*f))));null!=k&&(d.j.Vc(e)&&d.j.Vc(h)?(f=Math.sqrt(1-J*J),k.l=Math.acos(f),0>w&&(k.l*=-1)):d.j.S(d.j.H(e),1.570796326794897)?k.l=0>e?g:d.u.W(3.141592653589793-g):(l=J/a,v=Math.sqrt(1-l*l),0>a*A-x*p*Math.cos(z)&&(v*=-1),k.l=Math.atan2(l,v),d.j.S(e,-h)&&d.j.H(d.u.W(c-g))>3.141592653589793*
(1-u*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))f=Math.sqrt(1-J*J),n.l=Math.acos(f),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/p,l=Math.sqrt(1-w*w),v=Math.sin(z/2),0>Math.sin(D-b)-2*a*A*v*v&&(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-
g))>3.141592653589793*(1-u*Math.cos(e))&&(null!=k?v=k.l:(l=J/a,v=Math.sqrt(1-l*l),0>a*A-x*p*Math.cos(z)&&(v*=-1),v=Math.atan2(l,v),d.j.S(e,-h)&&d.j.H(d.u.W(c-g))>3.141592653589793*(1-u*Math.cos(e))&&(0<e&&1.570796326794897>d.j.H(v)||0>e&&1.570796326794897<d.j.H(v))&&(v=d.j.nb(3.141592653589793,v)-v)),1.570796326794897>=d.j.H(v)&&1.570796326794897<d.j.H(n.l)||1.570796326794897<=d.j.H(v)&&1.570796326794897>d.j.H(n.l)))n.l=-1*d.u.W(n.l+3.141592653589793)}}}};f.gf=function(b,a,c,e,g,h,l,k){if(null!=l||
null!=k)if(d.j.Ih(a))d.zg.gf(b,c,e,g,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,g,h,l,k);else{var n=1.570796326794897==d.j.H(h)?0:Math.cos(h),f=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*f,u=w*w,m=1-u,v=a/(1-a)*m;a=v*(256+v*(-128+v*(74-47*v)))/1024;var D=
a/4,p=a/6,B=g/(b*(1-h)*(1+v*(4096+v*(-768+v*(320-175*v)))/16384)),A=B,z;do{z=A;g=1.570796326794897==d.j.H(A)?0:Math.cos(A);var v=3.141592653589793==d.j.H(A)?0:Math.sin(A),C=v*v;b=Math.cos(2*q+A);A=b*b;A=a*v*(b+D*(g*(2*A-1)-p*b*(4*C-3)*(4*A-3)))+B}while(!d.j.S(z,A));g=1.570796326794897==d.j.H(A)?0:Math.cos(A);v=3.141592653589793==d.j.H(A)?0:Math.sin(A);null!=l&&(f=Math.atan2(v*f,e*g-r*v*n),m=h/16*m*(4+h*(4-3*m)),b=Math.cos(2*q+A),l.l=d.u.W(c+(f-(1-m)*h*w*(A+m*v*(b+m*g*(2*b*b-1))))));null!=k&&(m=r*
v-e*g*n,m=(1-h)*Math.sqrt(u+m*m),k.l=Math.atan2(r*g+e*v*n,m))}};return f}();d.cs=m})(p||(p={}));(function(d){var m=function(){function f(){}f.Fb=function(b,a,c,e,g,h,l,k,n){var f=d.u.W(g-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(f)||q))null!=l&&(l.l=0),null!=k&&(k.l=0),null!=n&&(n.l=0);else{var w,u;d.j.Ih(a)?(w=Math.sin(e),u=Math.sin(h),w=Math.sqrt((1+w)/(1-w)),u=Math.sqrt((1+u)/(1-u)),w=Math.log(u)-Math.log(w),w=Math.atan2(f,w),null!=l&&(l.l=
d.j.S(e,h)?d.j.H(b*Math.cos(e)*f):d.j.H((b*h-b*e)/Math.cos(w)))):(u=d.u.qu(a,h),w=Math.sin(d.u.qu(a,e)),u=Math.sin(u),w=Math.sqrt((1+w)/(1-w)),u=Math.sqrt((1+u)/(1-u)),w=Math.log(u)-Math.log(w),w=Math.atan2(f,w),null!=l&&(d.j.S(e,h)?l.l=d.j.H(b*f*Math.cos(e)/d.u.Tk(a,e)):(f=d.u.q(b,a,e),b=d.u.q(b,a,h),l.l=d.j.H((b-f)/Math.cos(w)))));if(null!=k||null!=n)l=d.u.W(w+3.141592653589793),q&&r||!q&&!r||(q?w=0>e?g:d.u.W(3.141592653589793-g):r&&(l=0>h?c:d.u.W(3.141592653589793-c))),null!=k&&(k.l=w),null!=n&&
(n.l=l)}};f.gf=function(b,a,c,e,g,h,l,k){h=d.u.W(h);0>g&&(g=d.j.H(g),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=g/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(g,h)/(b*Math.cos(e))),b=e):(b=e+g*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=g/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(g,h)*d.u.Tk(a,e)/(b*Math.cos(e))),b=e):(b=1.570796326794897*(g*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))||(g=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(g),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 f}();d.Zz=m})(p||(p={}));(function(d){var m=function(){function f(){}f.gw=function(b,a,c,e,g,h,l){d.cs.Fb(b,a,c,e,g,h,null,l,null)};f.Ph=function(b,a,c,e,g,h,l,k){d.cs.gf(b,a,c,e,g,h,l,k)};f.Rd=function(b,a,c,e,g,h,l,k,n,f){switch(f){case 2:d.Xj.Fb(b,a,c,e,g,h,l,k,n);break;case 3:d.$z.Fb(b,a,c,e,g,h,l,k,n);break;case 1:d.Zz.Fb(b,a,c,e,g,h,l,k,n);break;default:d.cs.Fb(b,a,c,e,g,h,l,k,n)}};f.dk=function(b,a,c,e,g,h,l,k,n){switch(n){case 2:d.Xj.gf(b,a,c,
e,g,h,l,k);break;case 3:d.$z.gf(b,a,c,e,g,h,l,k);break;case 1:d.Zz.gf(b,a,c,e,g,h,l,k);break;default:d.cs.gf(b,a,c,e,g,h,l,k)}};return f}();d.zb=m})(p||(p={}));(function(d){var m=function(){function f(){}f.QS=function(b,a){var c=8;0>c&&(c=8);var e=[0,0,0,0],g=new d.b;g.J(a);g.scale(9102==d.Ya.Em(b).Se().Qc()?1:d.Ya.Em(b).Se().Dj/3.141592653589793*180);-180>g.x?(g.x-=g.x%360,-180>g.x&&(g.x+=360)):180<g.x&&(g.x-=g.x%360,180<g.x&&(g.x-=360));90<g.y&&(g.y=90);-90>g.y&&(g.y=-90);b=5*c;a=(b+31)/32;for(var h=
-180,l=180,k=b-1,n=a-1;0<=n;n--)for(var t=k-32*n,q=Math.min(32,b-32*n),r=1;r<q;r+=2){var w=.5*(l+h);g.x>=w?(e[n]|=1<<t,h=w):l=w;t-=2;k-=2}h=-90;l=90;k=b-2;for(n=a-1;0<=n;n--)for(t=k-32*n,q=Math.min(32,b-32*n),r=0;r<q;r+=2)w=.5*(l+h),g.y>=w?(e[n]|=1<<t,h=w):l=w,t-=2,k-=2;return f.XS(e,c,c)};f.XS=function(b,a,c){for(var e=[],g=0;g<a;g++)e[g]="";for(var h=g=0,d=0;d<a;d++){var k=b[g]>>h&31,h=h+5;if(31<h){var n=37-h,k=k&(1<<n)-1,h=h-32;g++;k|=(b[g]&(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 f}();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]]},f={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 g=a.ks(c);g!=c&&(b=a.cC(g))}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 g=a.ks(c);g!=c&&(b=a.Fz(g));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,g=0;g<c.pcsid.length;g+=2)a.Gh[c.pcsid[g]]=c.pcstol[2*c.pcsid[g+1]+1];
for(g=0;g<c.pcsidc.length;g+=1){b=c.pcsidc[g];for(var h=b[0];h<=b[1];h++)a.Gh[h]=c.pcstol[2*b[2]+1]}for(g=0;g<c.gcsid.length;g+=2)a.Un[c.gcsid[g]]=c.gcstol[2*c.gcsid[g+1]+1];for(g=0;g<c.gcsidc.length;g+=1)for(b=c.gcsidc[g],h=b[0];h<=b[1];h++)a.Gh[h]=c.gcstol[2*b[2]+1];for(g=0;g<f.c.length;g+=1)for(b=f.c[g],h=b[0];h<=b[1];h++)a.ds[h]=b[2];for(g=0;g<f.nc.length;g+=2)a.ds[f.nc[g]]=f.nc[g+1];f=null;for(g=0;g<c.newtoold.length;g+=2)a.ew[c.newtoold[g+1]]=c.newtoold[g],a.Mw[c.newtoold[g]]=c.newtoold[g+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 f=[],b=function(){function a(){}a.UM=function(c){try{for(var b=0;b<f.length;b++)if(f[b].wkttext===c)return f[b].unit;for(var g,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)}g=JSON.parse(h);var t=a.Dz(g);if(null===t)return null;g=null;for(n=0;n<t.values.length;n++)if("object"===typeof t.values[n]&&"UNIT"===t.values[n].entity){g=t.values[n];break}if(null===g)return null;var q=d.Tb.EL("GEOGCS"===t.entity?1:0,g.values[1],g.values[2]);f.push({wkttext:c,unit:q});10<f.length&&f.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=[],g=0;g<c.values.length;g++)if("object"===typeof c.values[g]&&void 0!==c.values[g].entity){if("GEOGCS"===c.values[g].entity||"PROJCS"==c.values[g].entity)return c.values[g];b.push(c.values[g])}for(c=0;c<b.length;c++)if(g=a.Dz(b[c]),null!==g)return g;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 f(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(a=b=0;a<this.Aa;a++)this.er[a]=b,b+=f.Wa(this.Jf[a]);this.up=b;this.le=[];for(a=0;a<this.Aa;a++){b=f.Wa(this.Hd(a));for(var c=f.ue(this.Hd(a)),e=0;e<b;e++)this.le[this.er[a]+e]=c}}else this.up=this.Aa=0}f.prototype.Hd=function(b){if(0>b||b>this.Aa)throw d.g.N();
return this.Jf[b]};f.prototype.zf=function(b){return this.Wg[b]};f.JN=function(b){return f.ac[b]};f.Qh=function(b){return f.Cc[b]};f.ye=function(b){return f.Bd[b]};f.Gh=function(b){return f.ye(f.Qh(b))*f.Wa(b)};f.Wa=function(b){return f.ob[b]};f.Wf=function(b){return 2>b};f.ti=function(b){return f.Wf(f.Qh(b))};f.prototype.hasAttribute=function(b){return 0<=this.Wg[b]};f.prototype.WC=function(){return this.hasAttribute(1)};f.ue=function(b){return f.V[b]};f.prototype.XN=function(b){return this.er[b]};
f.nD=function(b,a){return f.V[b]===a};f.$g=function(b){if(4==b)return 2;if(8==b)return 3;throw d.g.N();};f.prototype.lc=function(b){return this===b};f.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};f.prototype.fj=function(b){return this.er[b]};f.prototype.hc=function(){return this.tk};f.prototype.Fd=function(b){return this.Jf[b]};f.V=[0,0,NaN,0,0,0,0,0,0];f.ac=[1,1,1,0,2,1,1,1,0];f.Cc=[1,1,1,2,0,0,0,0,2];f.Bd=[4,8,4,8,1,2];f.ob=[2,1,1,1,3,1,
2,3,2];return f}();d.pa=m})(p||(p={}));(function(d){function m(a,b,g,h){var c=a.jd,e=a.e+b+1;1===g?h=5<=c[e]:2===g?h=5<c[e]||5==c[e]&&(h||0>e||void 0!==c[e+1]||c[e-1]&1):3===g?h=h||void 0!==c[e]||0>e:(h=!1,0!==g&&f("!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 f(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+="")||f(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,f=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!=f)return n>(f^c)?1:-1;d=-1;for(k=(n=b.length)<(f=h.length)?n:f;++d<k;)if(b[d]!=h[d])return b[d]>(h[d]^c)?1:-1;return n==f?0:n>(f^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)&&f("!Big.DP!");if(!b[0]||!e[0])return b[0]==e[0]&&f(NaN),e[0]||f(d/0),new a(0*d);
var n,t,q,r,w=e.slice(),u=n=e.length,y=b.length,v=b.slice(0,n),D=v.length,p=c,B=p.jd=[],A=0,z=k+(p.e=this.e-c.e)+1;p.Dd=d;d=0>z?0:z;for(w.unshift(0);D++<n;v.push(0));do{for(t=0;10>t;t++){if(n!=(D=v.length))q=n>D?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=D==n?e:w;D;){if(v[--D]<c[D]){for(r=D;r&&!v[--r];v[r]=9);--v[r];v[D]+=10}v[D]-=c[D]}for(;!v[0];v.shift());}else break}B[A++]=q?t:++t;v[0]&&q?v[D]=b[u]||0:v=[b[u]]}while((u++<y||void 0!==v[0])&&d--);B[0]||1==A||
(B.shift(),p.e--);A>z&&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 f=c.jd,q=c.e;if(!n[0]||!f[0])return f[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=f);e.reverse();for(k=d;k--;e.push(0));e.reverse()}else for(e=((b=n.length<f.length)?n:f).length,d=k=0;k<e;k++)if(n[k]!=
f[k]){b=n[k]<f[k];break}b&&(e=n,n=f,f=e,c.Dd=-c.Dd);if(0<(k=(e=f.length)-(b=n.length)))for(;k--;n[b++]=0);for(k=b;e>d;){if(n[--e]<f[e]){for(b=e;b&&!n[--b];n[b]=9);--n[b];n[e]+=10}n[e]-=f[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)&&f("!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)&&f("!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&&f(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,f=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=f+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(f=n;f--;){n=0;for(q=k+f;q>f;)n=b[q]+d[f]*e[q-f-1]+n,b[q--]=n%10,n=n/10|0;b[q]=(b[q]+n)%10}n&&++c.e;b[0]||b.shift();for(f=b.length;!b[--f];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}(),f=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,f=1,q=new d.Va,r=new d.b,w=1,u=h.size;w<u;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),f++;else{if(0==(f&1))h.set(n,2147483647);else if(c)return null!=
b&&(b[0]=!0),null;k.J(r);n=w;f=1}if(0==(f&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,u=h.size;w<u&&2147483647!=h.get(w);w++)a.Sd(h.get(w),q),e.add(q)}}return c?null:e};return b}();d.Hh=f})(p||(p={}));(function(d){var m=function(){function f(){this.lf=new d.ga(0);this.Lq=new d.ga(0);this.gE=1;this.Qq=NaN}f.prototype.sort=function(b,a,c,e){if(32>c-a)e.Zp(a,c,b);else{var g=!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 f=b.get(k),n=e.Mo(f),q=this.oC(n);this.lf.set(q,this.lf.get(q)+1);this.Lq.write(k-a,f)}var r=this.lf.get(0);this.lf.set(0,0);for(var k=1,w=this.lf.size;k<w;k++){var u=this.lf.get(k);this.lf.set(k,r);r+=u}for(k=a;k<c;k++){var f=this.Lq.read(k-a),n=e.Mo(f),q=this.oC(n),m=this.lf.get(q);b.set(m+a,f);this.lf.set(q,m+1)}g=!1}}catch(v){this.lf.resize(0),this.Lq.resize(0)}if(g)e.Zp(a,c,b);else{k=c=0;for(w=this.lf.size;k<
w;k++)g=c,c=this.lf.get(k),c>g&&e.Zp(a+g,a+c,b);100<this.lf.size&&(this.lf.resize(0),this.Lq.resize(0))}}};f.prototype.reset=function(b,a,c,e){if(2>b||c==a)return!1;b=Math.min(f.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};f.prototype.oC=function(b){return d.I.truncate((b-this.gE)/this.Qq)};f.tI=65536;return f}();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 f=function(){function a(){}a.Ks=function(c,b,e,g,f,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=g;h.Rg=f;h.Ug=q;return h};a.Oa=function(c,b,e,g){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=g;return h};return a}(),b=function(){function a(a,c,b,e,g,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=g;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,g=a.lk()-this.wE,a=a.mk()-this.yE;c.Nn(g,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,g,f,q){if(null==a)throw d.g.N();if(0>g)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>=f&&(f=96);q.hb=Math.abs(q.Da);q.wt=0!=q.hb?1/q.hb:0;isNaN(g)||0==g?g=1E-5*q.hb:g>.5*q.hb&&(g=.5*q.hb);12>f&&(f=12);a=Math.abs(c)*(1-Math.cos(Math.PI/f));a>g?g=a:(a=Math.PI/Math.acos(1-g/
Math.abs(c)),a<f-1&&(f=d.I.truncate(a),12>f&&(f=12,g=Math.abs(c)*(1-Math.cos(Math.PI/f)))));q.Cj=g;q.mp=f;q.vx=Math.min(q.jr,.25*g);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),g=d.b.Oa(0,1),b=0;b<a;b++)this.sd[b+0*a]=d.b.Oa(g.y,-g.x),this.sd[b+1*a]=d.b.Oa(-g.x,-g.y),this.sd[b+2*a]=d.b.Oa(-g.y,g.x),this.sd[b+
3*a]=g,g=d.b.Oa(g.x,g.y),g.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 g=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(g,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);g.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 f=new d.i;f.K(l);f.P(this.hb,this.hb);k.ws(f);k=this.rm(h);l=1;for(h=k.ea();l<h;l++)g.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(f=new d.i,k.dd(f),f.P(this.hb,this.hb),k.ws(f),k=this.rm(h),l=1,h=k.ea();l<h;l++)g.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++)g.Zj(k,
l,!0)}if(0<this.Da)return 1<g.ea()?g=this.rm(g):e.Id(g);a=new d.i;g.dd(a);if(g.s())return e.Id(g);a.P(this.hb,this.hb);g.ws(a);g=this.rm(g);a=new d.Ka(g.description);l=1;for(h=g.ea();l<h;l++)a.Zj(g,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();var b=new d.Ka(a.description),g=new d.b,h=new d.b,l=new d.b,f=new d.b,w=new d.b,u=new d.b,m=new d.b,v=new d.b,D=a.Ha(c),p=a.Ea(c),B=0;for(c=a.Ha(c);B<c;B++){a.w(p+B,h);a.w(p+(B+1)%D,f);a.w(p+(B+2)%D,u);m.pc(f,h);if(0==m.length())throw d.g.wa();m.tt();
m.normalize();m.scale(this.hb);g.add(m,h);l.add(m,f);0==B?b.Nr(g):b.Lm(g);b.Lm(l);v.pc(u,f);if(0==v.length())throw d.g.wa();v.tt();v.normalize();v.scale(this.hb);w.add(v,f);this.NA(b,f,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 g=new d.Xa(a.description);g.Zj(a,
c,!1);g.ys(a,c,0,a.ct(c),!1);this.sm(g,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,g){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);g&&a.Lm(e)};e.prototype.sm=function(a,c,b,e,g){var h=
new d.fd,l=h.QJ(a,c);h.xo(this.vx,!1,!1);if(2>h.F(l)){if(0>g)return 1;g=a;h=new d.Va;g.Sd(g.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,g),2>h.F(l))){if(0>g)return 1;g=a;h=new d.Va;g.Sd(g.Ea(c),h);this.us(b,h);return 1}this.Jd.length=0;var t=h.Vb(l);c=h.Cb(t);var m=1==g?h.Ua(c):h.X(c);a=1==g?h.X(c):h.Ua(c);var D=!0;e=new d.b;for(var l=new d.b,p=new d.b,B=new d.b,A=new d.b,z=new d.b,C=new d.b,F=new d.b,G=new d.b,O=new d.b,H=this.hb,
t=h.Ha(t),K=0;K<t;K++)h.w(a,l),D&&(h.w(c,e),h.w(m,p),F.pc(e,p),F.normalize(),O.zD(F),O.scale(H),B.add(O,e)),C.pc(l,e),C.normalize(),G.zD(C),G.scale(H),A.add(e,G),m=F.Ai(C),D=F.ml(C),0>m||0>D&&0==m?this.Jd.push(f.Ks(B,A,e,2,this.Jd.length+1,this.Jd.length-1)):B.ub(A)||(this.Jd.push(f.Oa(B,e,this.Jd.length+1,this.Jd.length-1,"dummy")),this.Jd.push(f.Oa(e,A,this.Jd.length+1,this.Jd.length-1,"dummy"))),z.add(l,G),this.Jd.push(f.Ks(A,z,e,1,this.Jd.length+1,this.Jd.length-1)),B.J(z),O.J(G),p.J(e),e.J(l),
F.J(C),m=c,c=a,D=!1,a=1==g?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,g=c;e!=c;g=e){var d=this.Jd[g],e=-1!=d.Rg?d.Rg:(g+1)%this.Jd.length;0!=d.qn&&(b&&a.Nr(d.Fl),2==d.qn?this.NA(a,d.Lt,d.Fl,d.Ql,!0):a.Lm(d.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,g=1,f=null;b!=c;){f=this.Jd[b];if(0!=(f.qn&3))break;b=f.Rg;g++}1!=g&&1==(e.qn&f.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(f.Fl),this.Tt.vd(f.Ql),1==this.Wq.Ga(this.Tt,this.Vq,null,null,this.jr)&&(e.Ql.J(this.Vq[0]),f.Fl.J(this.Vq[0]),e.Rg=b,f.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 g=new d.b;g.pc(c,a);if(g.ml(e)+b>=this.hb)return!0}return!1};e.prototype.MM=function(a,c,b){for(var e=0;1>e;e++){var g=!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),f=0<b?a.X(h):a.Ua(h),m=l,v=!0,D=new d.b,p=new d.b,B=new d.b,A=new d.b,z=new d.b,C=d.b.Oa(0,0),F=new d.b,G=new d.b,O=new d.b,H=new d.b,K=this.hb,E=0,W=0;W<k;){a.w(f,p);v&&(a.w(h,D),a.w(l,B),m=l);G.pc(D,B);G.normalize();
F.pc(p,D);F.normalize();if(m==f)break;var J=G.Ai(F),I=G.ml(F),R=!0;0>J||0>I&&0==J||!this.rt(B,D,p)||(C.J(p),R=!1,++E,g=!0);if(R){if(0<E)for(;;){J=0<b?a.Ua(m):a.X(m);if(J==h)break;a.w(J,A);if(this.rt(A,B,C))B.J(A),m=J,R=!1,++E;else{J!=f&&this.rt(A,B,p)&&this.rt(A,D,p)&&(B.J(A),m=J,R=!1,++E);break}}if(!R)continue;if(0<E){m=0<b?a.Ua(l):a.X(l);for(v=1;v<E;v++)R=0<b?a.Ua(m):a.X(m),a.vf(m,!0),m=R;O.pc(D,B);E=O.length();E=K*K-E*E*.25;E=Math.sqrt(E);K-E>.5*this.Cj?(z.add(B,D),z.scale(.5),O.normalize(),O.Kp(),
H.J(O),H.scale(K-E),z.add(H),a.Yi(l,z)):a.vf(l,!0);E=0}B.J(D);m=h}D.J(p);l=h;h=f;f=0<b?a.X(h):a.Ua(h);W++;v=!1}if(0<E){m=0<b?a.Ua(l):a.X(l);for(v=1;v<E;v++)R=0<b?a.Ua(m):a.X(m),a.vf(m,!0),m=R;z.add(B,D);z.scale(.5);O.pc(D,B);E=O.length();E=K*K-E*E*.25;E=Math.sqrt(E);O.normalize();O.Kp();H.J(O);H.scale(K-E);z.add(H);a.Yi(l,z)}a.xo(this.vx,!1,!1);if(!g)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){c=c.w();if(null!=this.sd&&0!==this.sd.length){var b=new d.b;b.J(this.sd[0]);b.Fr(this.hb,c);a.Nr(b);for(var e=1,g=this.sd.length;e<g;e++)b.J(this.sd[e]),b.Fr(this.hb,c),a.Lm(b)}else for(var e=
this.pB(),b=d.I.truncate((e+3)/4),e=.5*Math.PI/b,g=Math.cos(e),h=Math.sin(e),l=new d.b,f=3;0<=f;f--)switch(l.ma(0,this.hb),f){case 0:for(e=0;e<b;e++)a.wj(l.x+c.x,l.y+c.y),l.Er(g,h);break;case 1:for(e=0;e<b;e++)a.wj(-l.y+c.x,l.x+c.y),l.Er(g,h);break;case 2:for(e=0;e<b;e++)a.wj(-l.x+c.x,-l.y+c.y),l.Er(g,h);break;default:for(a.Uy(l.y+c.x,-l.x+c.y),e=1;e<b;e++)l.Er(g,h),a.wj(l.y+c.x,-l.x+c.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 f(b){this.Qb=b;this.a=new d.fd;this.vg=new d.ga(0)}f.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};f.prototype.cL=function(b,a){return 1736==b.D()?this.dL(b,a):this.eL(b)};f.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,g=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 f=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 u=!1,m=0!=(w&1),v=0;switch(w){case 0:v=this.Qb.v;u=c.v<=v&&c.B>=v;break;case 1:v=this.Qb.C;u=c.C<=v&&c.G>=v;break;case 2:v=this.Qb.B;u=c.v<=v&&c.B>=v;break;case 3:v=this.Qb.G,u=c.C<=v&&c.G>=v}if(u)for(r=!0,u=this.a.Vb(this.U);-1!=u;){var p=-1,x=-1,B=this.a.Cb(u),A=B;do{var z=
this.a.cc(A);null==z&&(z=f,this.a.w(A,h),z.ed(h),this.a.w(this.a.X(A),l),z.vd(l));z.o(e);var C=this.po(e,w,v),F=0,G=-1;if(-1==C){z=z.nt(m,v,k,n);0<z?F=this.a.Mr(A,n,z):F=0;for(var F=F+1,O=A,H=this.a.X(O),z=0;z<F;z++){this.a.w(O,h);this.a.w(H,l);G=this.a.cc(O);null==G&&(G=f,G.ed(h),G.vd(l));G.o(g);G=this.po(g,w,v);if(-1==G){if(m)G=Math.abs(h.y-v),E=Math.abs(l.y-v),G<E?(h.y=v,this.a.Yi(O,h)):(l.y=v,this.a.Yi(H,l));else{var G=Math.abs(h.x-v),E=Math.abs(l.x-v);G<E?(h.x=v,this.a.Yi(O,h)):(l.x=v,this.a.Yi(H,
l))}G=this.a.cc(O);null==G&&(G=f,G.ed(h),G.vd(l));G.o(g);G=this.po(g,w,v)}E=p;p=G;-1==x&&(x=p);if(0!=E||1!=p)1==E&&0==p||0!=E||0!=p||q.add(O);1==p&&(r=!1);G=O=H;H=this.a.X(H)}}if(0==F){E=p;p=C;-1==x&&(x=p);if(0!=E||1!=p)1==E&&0==p||0!=E||0!=p||q.add(A);1==p&&(r=!1);G=this.a.X(A)}A=G}while(A!=B);0==x&&0==p&&q.add(B);z=0;for(p=q.size;z<p;z++)x=q.get(z),this.a.vf(x,!1);q.clear(!1);u=3>this.a.Ha(u)?this.a.Cr(u):this.a.bc(u)}}if(r)return b.Pa();this.AR();0<a&&this.gM(a);return this.a.hf(this.U)};f.prototype.eL=
function(b){var a=new d.i,c=new d.i,e=[0,0,0,0,0,0,0,0,0],g=[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 f=!1,q=0!=(n&1),r=0;switch(n){case 0:r=this.Qb.v;f=k.v<=r&&k.B>=r;break;case 1:r=this.Qb.C;f=k.C<=r&&k.G>=r;break;case 2:r=this.Qb.B;f=k.v<=r&&k.B>=r;break;case 3:r=this.Qb.G,f=k.C<=r&&k.G>=r}if(f){f=l;l=b.Pa();f=f.Ca();f.Lk();for(var w,u=new d.b;f.kb();)for(var m,v=!0;f.La();){var p=f.ia();p.o(a);var x=this.po(a,n,r);if(-1==x){if(x=p.nt(q,r,e,g),0<x){var B=0;w=
p.Mb();for(var A=0;A<=x;A++)if(m=A<x?g[A]:1,B!=m){p.Bi(B,m,h);var z=h.get();z.ed(w);A<x&&(q?(u.x=e[A],u.y=r):(u.x=r,u.y=e[A]),z.vd(u));z.o(c);var C=this.po(c,n,r);if(-1==C){w=z.Mb();B=z.oc();if(q)C=Math.abs(w.y-r),F=Math.abs(B.y-r),C<F?(w.y=r,z.ed(w)):(B.y=r,z.vd(B));else{var C=Math.abs(w.x-r),F=Math.abs(B.x-r);C<F?(w.x=r,z.ed(w)):(B.x=r,z.vd(B))}z.o(c);C=this.po(c,n,r)}w=z.oc();B=m;m=C;1==m?(l.Bc(z,v),v=!1):v=!0}}}else m=x,1==m?(l.Bc(p,v),v=!1):v=!0}}}return l};f.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,g=this.a.Ha(a);e<g;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()};f.prototype.gM=
function(b){for(var a=new d.b,c=new d.b,e=d.I.Lh(2048,0),g=this.a.Vb(this.U);-1!=g;g=this.a.bc(g)){var h=this.a.Cb(g),l=h;do{var k=this.a.X(l);this.a.w(l,a);var f=-1;a.x==this.Qb.v?(this.a.w(k,c),c.x==this.Qb.v&&(f=1)):a.x==this.Qb.B&&(this.a.w(k,c),c.x==this.Qb.B&&(f=1));a.y==this.Qb.C?(this.a.w(k,c),c.y==this.Qb.C&&(f=0)):a.y==this.Qb.G&&(this.a.w(k,c),c.y==this.Qb.G&&(f=0));if(-1!=f&&(f=d.b.Fb(a,c),f=d.I.truncate(Math.min(Math.ceil(f/b),2048)),!(1>=f))){for(var t=1;t<f;t++)e[t-1]=1*t/f;this.a.Mr(l,
e,f-1)}l=k}while(l!=h)}};f.prototype.Nu=function(b,a){var c=this.a.re(),e=new d.b,g=new d.ga(0);g.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,f=this.a.Ha(h);k<f;k++){var t=this.a.X(l);this.a.w(l,e);if(b?e.y==a:e.x==a)if(this.a.w(t,e),b?e.y==a:e.x==a)1!=this.a.Ra(l,c)&&(g.add(l),this.a.lb(l,c,1)),1!=this.a.Ra(t,c)&&(g.add(t),this.a.lb(t,c,1));l=t}this.a.bf(c);if(!(3>g.size)){var q=this;g.xd(0,g.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),f=new d.ga(0),t=this.a.re(),w=this.a.re(),u=0,m=g.size;u<m;u++){var v=g.get(u);this.a.w(v,e);if(!e.ub(h)){if(-1!=r){for(var p=r;p<u;p++){var r=g.get(p),x=this.a.X(r),v=this.a.Ua(r),B=!1;0>this.kj(r,x)&&(this.a.w(x,c),b?c.y==a:c.x==a)&&(k.add(r),B=!0,this.a.lb(r,w,1));0>this.kj(r,v)&&(this.a.w(v,c),b?c.y==a:c.x==a)&&(B||k.add(r),this.a.lb(r,t,1))}p=0;for(B=k.size;p<B;p++){r=k.get(p);v=this.a.Ra(r,t);x=this.a.Ra(r,w);if(1==v){v=this.a.Ua(r);this.a.w(v,l);var A=[0];
A[0]=0;if(!l.ub(e)){var z=d.b.Fb(h,l);A[0]=d.b.Fb(l,e)/z;0==A[0]?A[0]=2.220446049250313E-16:1==A[0]&&(A[0]=.9999999999999998);this.a.Mr(v,A,1);v=this.a.Ua(r);this.a.Yi(v,e);f.add(v);this.a.lb(v,t,1);this.a.lb(v,w,-1)}}1==x&&(x=this.a.X(r),this.a.w(x,l),A=[0],A[0]=0,l.ub(e)||(z=d.b.Fb(h,l),A[0]=d.b.Fb(h,e)/z,0==A[0]?A[0]=2.220446049250313E-16:1==A[0]&&(A[0]=.9999999999999998),this.a.Mr(r,A,1),v=this.a.X(r),this.a.Yi(v,e),f.add(v),this.a.lb(v,t,-1),this.a.lb(v,w,1)))}r=k;k=f;f=r;f.clear(!1)}r=u;h.J(e)}}this.a.bf(t);
this.a.bf(w)}};f.prototype.zu=function(b,a){var c=new d.b,e=new d.ga(0);e.xb(100);for(var g=this.a.re(),h=0,l=this.vg.size;h<l;h++){var k=this.vg.get(h);if(-1!=k){var f=this.a.X(k);this.a.w(k,c);if(b?c.y==a:c.x==a)if(this.a.w(f,c),b?c.y==a:c.x==a)-2!=this.a.Ra(k,g)&&(e.add(k),this.a.lb(k,g,-2)),-2!=this.a.Ra(f,g)&&(e.add(f),this.a.lb(f,g,-2))}}if(0!=e.size){var t=this;e.xd(0,e.size,function(a,c){return t.kj(a,c)});h=0;for(l=e.size;h<l;h++){var q=e.get(h);this.a.lb(q,g,h)}k=new d.b;f=new d.b;f.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(f))){if(-1!=r)for(;;){for(var q=!1,w=1<h-r?h-1:h,u=r;u<w;u++){var m=e.get(u);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,x=this.a.Ua(m);0>this.kj(m,x)&&(this.a.w(x,k),b?k.y==a:k.x==a)&&(p=x);if(-1!=v&&-1!=p)this.no(m,e,g),this.a.vf(m,!1),this.no(v,e,g),this.a.vf(v,!1),q=!0;else if(-1!=v||-1!=p){for(x=u+1;x<h;x++){var B=e.get(x);if(-1!=B){var A=this.a.X(B),z=-1;0>this.kj(B,
A)&&(this.a.w(A,k),b?k.y==a:k.x==a)&&(z=A);var A=this.a.Ua(B),C=-1;0>this.kj(B,A)&&(this.a.w(A,k),b?k.y==a:k.x==a)&&(C=A);if(-1!=z&&-1!=C){this.no(B,e,g);this.a.vf(B,!1);this.no(z,e,g);this.a.vf(z,!1);q=!0;break}if(-1!=v&&-1!=C){this.dF(e,m,v,B,C,g);q=!0;break}else if(-1!=p&&-1!=z){this.dF(e,B,z,m,p,g);q=!0;break}}}if(q)break}}}if(!q)break}r=h;f.J(c)}}this.a.bf(g)};f.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))};f.prototype.dF=function(b,a,c,e,g,d){this.a.Sc(a,e);this.a.Tc(e,a);this.a.Tc(c,g);this.a.Sc(g,c);this.no(e,b,d);this.a.Ui(e,!1);this.no(g,b,d);this.a.Ui(g,!0)};f.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,g=0,d=this.a.Vb(this.U);-1!=d;){var l=this.a.Cb(d);if(-1==l||d!=this.a.rd(l)){var k=d,d=this.a.bc(d);this.a.Dh(k,-1);this.a.yu(k)}else{c=l;k=0;do this.a.im(c,d),k++,c=this.a.X(c);while(c!=
l);2>=k?(c=this.a.Ra(l,this.vn),this.vg.set(c,-1),l=this.a.vf(l,!1),2==k&&(c=this.a.Ra(l,this.vn),this.vg.set(c,-1),this.a.vf(l,!1)),k=d,d=this.a.bc(d),this.a.Dh(k,-1),this.a.yu(k)):(this.a.Jr(d,!1),this.a.Wi(d,this.a.Ua(l)),this.a.hm(d,k),g+=k,e++,d=this.a.bc(d))}}b=0;for(a=this.vg.size;b<a;b++)if(c=this.vg.get(b),-1!=c&&(d=this.a.rd(c),-1==d)){d=this.a.Cf(this.U,-1);k=0;l=c;do this.a.im(c,d),k++,c=this.a.X(c);while(c!=l);2>=k?(c=this.a.Ra(l,this.vn),this.vg.set(c,-1),l=this.a.vf(l,!1),2==k&&(c=
this.a.Ra(l,this.vn),0<=c&&this.vg.set(c,-1),this.a.vf(l,!1)),k=d,this.a.Dh(k,-1),this.a.yu(k)):(this.a.Gn(d,!0),this.a.hm(d,k),this.a.Dh(d,l),this.a.Wi(d,this.a.Ua(l)),this.a.Jr(d,!1),g+=k,e++)}this.a.gm(this.U,e);this.a.Pk(this.U,g);b=0;for(a=this.a.$c;-1!=a;a=this.a.we(a))b+=this.a.F(a);this.a.ZF(b)};f.Xk=function(b,a,c){return(new f(a)).cL(b,c)};f.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 g=new d.i;b.dd(g);if(a.contains(g))return b;if(!a.jc(g))return b.Pa();g=b.pb;if(null!=g&&(g=g.hi,null!=g)){g=g.Dn(a);if(1==g){if(1736!=c)throw d.g.wa();b=new d.Ka(b.description);b.ws(a);return b}if(0==g)return b.Pa()}switch(c){case 550:c=null;for(var g=b.F(),h=b.mc(0),l=0,k=0;k<g;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,g);return 0==l?b:c;case 1736:case 1607:return f.Xk(b,a,e);default:throw d.g.wa();
}};f.prototype.kj=function(b,a){var c=new d.b;this.a.w(b,c);b=new d.b;this.a.w(a,b);return c.compare(b)};return f}();d.Ed=m})(p||(p={}));(function(d){var m=new d.b,f=function(){function a(a,b,g,h,l){this.Ml=new d.b;this.ln=new d.b;this.Ck=new d.b;this.a=a;this.Px=g;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,g,d,l){a-=g;b-=d;return a*a+b*b<=l};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 f=0;1>=f;f+=1){var t=a.XC(h+k,l+f),q=this.uk.DN(t);-1!=q&&(this.Zo[e]=q,this.Kq[e]=t,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,g,h,l){for(var e=new d.b;-1!=h;h=this.uk.SN(h)){var f=this.uk.da(h);c==f||-1!=b&&this.a.Ra(f,this.vk)!=b||(this.a.uc(f,e),a.Vw(g.x,g.y,e.x,e.y,
this.Px)&&l.add(h))}};a.prototype.Tl=function(a,b,g){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);g&&(g=this.St.sB(a),this.a.lb(a,this.vk,g));return b};a.$P=function(c,b,g){c.lc(b);g=c;var e=new d.b;a.HH(c.w(),b.w(),e);g.ic(e)};a.HH=function(a,b,g){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);g.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);b=this.a.RC(b);var k=l+b,f=0,t=c.x;c.x!=e.x&&(t=(c.x*l+e.x*b)/k,f++);var q=c.y;c.y!=e.y&&(q=(c.y*l+e.y*b)/k,f++);0<f&&this.a.ic(a,t,q);this.a.pS(a,k);return 0!=f};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 f(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 g=this.a.Vb(b);-1!=g;g=this.a.bc(g))for(var h=this.a.Cb(g),l=0,k=this.a.Ha(g);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 t=new d.ga(0);t.xb(10);for(b=this.a.$c;-1!=b;b=this.a.we(b))for(g=this.a.Vb(b);-1!=g;g=this.a.bc(g))for(h=this.a.Cb(g),
l=0,k=this.a.Ha(g);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,t);if(0==t.size)break;for(var n=!1,q=0,r=t.size;q<r;q++){var w=t.get(q),u=this.uk.da(w);this.uk.kd(w);n=this.Tl(h,u,q+1==r)||n}a=a||n;t.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 g=this.nd.gc(b);this.a.w(this.nd.da(g),a);for(g=this.nd.bb(g);-1!=
g;g=this.nd.bb(g))this.a.Yi(this.nd.da(g),a)}};return a}();d.Sr=b})(p||(p={}));(function(d){var m=Math.PI,f=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 g=new a;g.x=c.x+b*Math.cos(e);g.y=c.y+b*Math.sin(e);g.type=c.type;g.mh=c.mh;return g};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,g,f,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=f;q.bi=b;q.Dx=g;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 g=this.eu,d,h;d=this.dg[0==e?g-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?g-2:1==e?g-1:e-2],g=a.Ad(d,this.Da,Math.atan2(d.y-h.y,d.x-h.x)-b),this.Ib[this.Xe-1]=g,1==this.bi||2==this.bi?(g=a.Js(g,d),this.Ub(g),g=a.Ad(d,this.Da,this.vt+b),d=a.Js(g,d),d.type|=256,this.Ub(d)):(g=a.Ad(d,this.Da,this.vt+b),g.type|=256),this.Ub(g),
this.Ub(c,e)):(g=a.Ad(h,this.Da,this.vt+b),this.Ub(g),1==this.bi||2==this.bi?(g=a.Js(g,h),this.Ub(g),g=a.Ad(h,this.Da,this.gx-b),d=a.Js(g,h),d.type|=256,this.Ub(d)):(g=a.Ad(h,this.Da,this.gx-b),g.type|=256),this.Ub(g)))}};e.prototype.mB=function(){var c,e,g,n,t,q,r=this.eu;this.Xe=0;var w=.5*this.ka,u=0,y=0;for(c=0;c<r;c++){n=this.dg[c];t=0==c?this.dg[r-1]:this.dg[c-1];q=c==r-1?this.dg[0]:this.dg[c+1];var v=t.x-n.x,p=t.y-n.y,x=q.x-n.x,B=q.y-n.y;e=Math.atan2(p,v);g=Math.atan2(B,x);this.vt=e;this.gx=
g;0==c&&(u=e,y=g);v=v*B-x*p;p=g;g<e&&(g+=f);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,g-b),n=a.LB(n,e),n.type|=256,this.Ub(n),this.Ub(e)):(v=.5*(g-e),v=this.Da/Math.abs(Math.sin(v)),e=a.Ad(n,v,.5*(e+g)),this.Ub(e,c));else if(0!=(n.type&512)){v=1-w/Math.abs(this.Da);t=1;q=0>this.Da?-m:m;-1<v&&1>v&&(p=2*Math.acos(v),.017453292519943295>p&&(p=.017453292519943295),t=d.I.truncate(m/p+1.5),1<t&&(q/=t));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<--t;)p+=q,e=a.Ad(n,v,p),e.type|=1024,this.Ub(e);e=a.Ad(n,this.Da,g-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,g-b),this.Ub(e);else if(0==this.bi)for(v=1-w/Math.abs(this.Da),t=1,q=g-b-(e+b),-1<v&&1>v&&(p=2*Math.acos(v),.017453292519943295>p&&(p=.017453292519943295),t=d.I.truncate(Math.abs(q)/p+1.5),1<t&&(q/=t)),v=this.Da/Math.cos(.5*q),p=e+b+
.5*q,e=a.Ad(n,v,p),this.Ub(e,c);0<--t;)p+=q,e=a.Ad(n,v,p),this.Ub(e);else 2==this.bi?(v=t.x-n.x,p=t.y-n.y,x=q.x-n.x,B=q.y-n.y,t=(v*x+p*B)/Math.sqrt(v*v+p*p)/Math.sqrt(x*x+B*B),.99999999<t?(e=a.Ad(n,1.4142135623730951*this.Da,g-.25*m),this.Ub(e,c),e=a.Ad(n,1.4142135623730951*this.Da,g+.25*m),this.Ub(e)):(t=Math.abs(this.Da/Math.sin(.5*Math.acos(t))),q=Math.abs(this.Dx*this.Da),t>q?(v=.5*(g-e),v=this.Da/Math.abs(Math.sin(v)),e=a.Ad(n,v,.5*(e+g)),g=d.b.Oa(e.x,e.y),e=d.b.Oa(n.x,n.y),n=new d.b,n.pc(g,
e),g=new d.b,g.DR(q/n.length(),n,e),e=(t-q)*Math.abs(this.Da)/Math.sqrt(t*t-this.Da*this.Da),0<this.Da?n.tt():n.Kp(),n.scale(e/n.length()),e=new d.b,e.add(g,n),t=new d.b,t.pc(g,n),e=a.um(e),this.Ub(e,c),e=a.um(t),this.Ub(e)):(v=.5*(g-e),v=this.Da/Math.abs(Math.sin(v)),e=a.Ad(n,v,.5*(e+g)),this.Ub(e,c)))):(g=p,0<this.Da?(g>e&&(g-=f),t=e-g<b):(g<e&&(g+=f),t=g-e<b),t?(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?g-.25*m:g-.75*m,e=a.Ad(n,v,p),this.Ub(e)):(v=.5*(g-
e),v=this.Da/Math.abs(Math.sin(v)),g<e&&(g+=f),e=a.Ad(n,v,(e+g)/2),this.Ub(e,c)))}this.vt=u;this.gx=y;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 g=c.Ea(b),d=c.Dc(b);this.Ib=[];this.Kx=e;if(c.vc(b)){for(b=c.Fa(g);c.Fa(d-1).ub(b);)d--;if(2<=d-g){this.eu=d-g;this.dg=[];for(b=g;b<d;b++)this.dg.push(a.um(c.Fa(b)));
this.mB()&&this.xs(0,this.Xe-1)}}else{for(b=c.Fa(g);g<d&&c.Fa(g+1).ub(b);)g++;for(b=c.Fa(d-1);g<d&&c.Fa(d-2).ub(b);)d--;if(2<=d-g){this.eu=2*(d-g)-2;this.dg=[];e=a.um(c.Fa(g));e.type|=1536;this.dg.push(e);for(b=g+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>=g+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++)(g=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=g;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,g,d=1;d<=c-2;d++){e=b=this.Ib[b].Rg;g=a;for(var h=1;h<=d;h++){g=this.Ib[g].Ug;if(0==(this.Ib[g].type&256)&&0==(this.Ib[e].type&256)){var f=this.oO(g,e);if(-1!=f)return f}e=this.Ib[e].Ug}}return-1};e.prototype.oO=function(a,b){var e,g,h,l;e=this.Ib[this.Ib[a].Ug];g=this.Ib[a];h=this.Ib[this.Ib[b].Ug];l=this.Ib[b];if(!this.HR(e,g,h,l))return-1;var f=new c;return this.NM(e,g,h,l,f)&&!f.cB&&d.I.bG((g.x-e.x)*(l.y-h.y)-
(g.y-e.y)*(l.x-h.x))!=d.I.bG(this.Da)?(e=this.Ib[a].Ug,f.Xl.type=g.type,f.Xl.Rg=b,f.Xl.Ug=e,this.Ib[a]=f.Xl,f.Xl=this.Ib[b],f.Xl.Ug=a,this.Ib[b]=f.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,g,d){d.cB=!1;var h,l,k;h=(b.y-c.y)*(g.x-e.x)-(b.x-c.x)*(g.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=(g.y-e.y)*(b.x-c.x)-(g.x-e.x)*(b.y-c.y),l=(c.y-e.y)*(g.x-e.x)-(c.x-e.x)*(g.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*(g.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}(),f=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 f(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,f=new d.b,t=new d.b;for(c.w(0,k);;){c.w(l,f);if(!(f.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,t),l=b.cz(t),-1!=l&&b.za.Vi(l,e);t=new d.Va;l=b.za.gc(-1);e=new d.Ka(c.description);c.Sd(b.za.da(l),t);e.df(t);for(l=b.za.bb(l);-1!=l;l=b.za.bb(l))c.Sd(b.za.da(l),t),e.lineTo(t);return e};a.Oa=function(c,b,d){for(var e=new a(c),g=1,h=c[0];c[g].Ww(h)&&g<b-1;)g++;e.za.addElement(0,-1);e.za.qm(g);for(g+=1;g<b;g++)h=
e.cz(c[g]),-1!=h&&e.za.Vi(h,g);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),g=c.Dc(b);b=!c.vc(b)&&c.Oo(b);c=c.mc(0);e*=2;g*=2;b&&(g-=2);if(6>g-e)return!0;b=new d.b;var k=new d.b,f=new d.b;c.ec(e,b);c.ec(e+2,k);c.ec(e+4,f);var t=a.Bd(k,f,b);if(t.Dq()||!a.ac(t.value()))return!1;for(var q=d.b.Oa(k.x,k.y),r=new d.b,e=e+6;e<g;e+=2){r.J(k);k.J(f);c.ec(e,f);t=a.Bd(k,f,b);if(t.Dq()||!a.ac(t.value()))return!1;t=a.Bd(q,f,b);if(t.Dq()||!a.ac(t.value()))return!1;
t=a.Bd(k,f,r);if(t.Dq()||!a.ac(t.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 f=this.a.Ub(this.cr,c);this.za.Vi(k,f)}}};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 f=this.a.Ub(this.cr,c);this.za.Vi(k,f)}}};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),f=this.za.da(l),
t=new d.b,q=new d.b;this.oh.w(k,t);this.oh.w(f,q);k=d.b.yn(q,c,t);if(a.ac(k))b=this.za.qm(-1),t=this.az(c,l,e),t!=e&&this.bz(c,e,this.za.ge(t));else if(a.ti(k)){for(var q=this.za.dt(-1),r=this.za.gc(-1),w=this.za.tc(-1),u,k=new d.b,f=new d.b;r!=this.za.ge(w);)u=this.za.da(q),this.oh.w(u,k),u=d.b.yn(k,c,t),a.ti(u)?(w=q,q=this.za.ik(q)):(r=q,q=this.za.Jo(q));q=w;t=r;u=this.za.da(q);r=this.za.da(t);this.oh.w(u,k);this.oh.w(r,f);if(t==e||(k=d.b.yn(f,c,k),a.ac(k)))b=this.za.vs(t,q,-2,!1),this.bz(c,q,l),
this.az(c,t,e)}else null==this.ib&&(this.ib=new d.yb),this.ib.ed(q),this.ib.vd(t),t=this.ib.Gd(c,!0),0>t?(t=this.za.ge(l),this.za.kd(l,-1),b=this.za.qm(-3),this.az(c,t,e)):1<t&&(t=this.za.bb(e),this.za.kd(e,-1),b=this.za.vs(-1,t,-3,!1),this.bz(c,t,l));return b};a.prototype.bz=function(c,b,h){if(b!=h){var e=this.za.da(b),g=this.za.bb(b),f=new d.b,t=new d.b;for(this.oh.w(e,f);b!=h&&2<this.za.size(-1);){this.oh.w(this.za.da(g),t);e=d.b.yn(t,c,f);if(a.ac(e))break;e=b;b=g;f.J(t);g=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),g=this.za.ge(b),f=new d.b,t=new d.b;for(this.oh.w(e,f);b!=h&&2<this.za.size(-1);){this.oh.w(this.za.da(g),t);e=d.b.yn(f,c,t);if(a.ac(e))break;e=b;b=g;f.J(t);g=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 g=new d.$k;g.set(b.y);g.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(g);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 f(b){this.oe=this.a=null;this.WD=!0;this.oe=b}f.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))};f.gL=function(b,a){var c=new d.Va;d.Sr.$P(b,a,c);return c};f.$=function(b,a,c,e){c=new f(c);c.a=b;c.ka=a;c.WD=e;return c.rJ()};f.prototype.lJ=function(b){return d.Sr.zM(this.a,b)};f.prototype.oJ=function(b){return d.Zu.$(this.a,b,this.oe)};f.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,g=30<this.a.pd+10?1E3:(this.a.pd+10)*(this.a.pd+10),h=0,l=this.a.pO();;h++){if(h>g)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 f}();d.aj=m})(p||(p={}));(function(d){var m=function(){function f(b){this.Ld=this.zc=null;this.Yb=b;this.hx=!0}f.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};f.prototype.LL=function(){var b=this.a.Gp(!1),a=!1,c=new d.yb,e=new d.yb,g=new d.i;g.Ja();var h=new d.i;h.Ja();for(var l=new d.Va,k=new d.gA,f=b.next();-1!=f;f=b.next()){var t=null,q=!1;if(!d.T.Km(this.a.Lb(b.mj))){t=this.et(f,c);if(null==t)continue;t.o(g);g.P(this.ka,this.ka);if(t.mg(this.ka))if(t.mg(0))q=!0,t=null;else continue}var r=this.a.Gp(b),w=r.next();for(-1!=w&&(w=r.next());-1!=w;w=r.next()){var u=null,
m=!1;if(!d.T.Km(this.a.Lb(r.mj))){u=this.et(w,e);if(null==u)continue;u.o(h);if(u.mg(this.ka))if(u.mg(0))m=!0,u=null;else continue}var v=0,p=0;if(null!=t&&null!=u)g.rD(h)&&(k.zn(t),k.zn(u),k.Ga(this.ka,!1),v=k.kk(0),p=k.kk(1),0<v+p&&(this.a.Tp(f,k,0,!0),this.a.Tp(w,k,1,!0)),k.clear());else if(null!=t){var x=new d.b;this.a.w(w,x);if(g.contains(x)){k.zn(t);this.a.Jk(w,l);k.Tw(this.ka,l,!1);v=k.kk(0);if(0<v)if(this.a.Tp(f,k,0,!0),m){m=-1;for(x=this.a.X(w);-1!=x&&x!=w&&(u=this.et(x,e),m=x,null!=u&&u.mg(0));x=
this.a.X(x));for(x=w;-1!=x&&(this.a.bh(x,k.nf),x!=m);x=this.a.X(x));}else this.a.bh(w,k.nf);k.clear()}}else if(null!=u){if(x=new d.b,this.a.w(f,x),h.P(this.ka,this.ka),h.contains(x)){k.zn(u);this.a.Jk(f,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(x=this.a.X(f);-1!=x&&x!=f&&(u=this.et(x,e),m=x,null!=u&&u.mg(0));x=this.a.X(x));for(x=f;-1!=x&&(this.a.bh(x,k.nf),x!=m);x=this.a.X(x));}else this.a.bh(f,k.nf);k.clear()}}else continue;if(0!=v+p){if(0!=v){t=this.a.cc(f);if(null==
t){if(!this.a.Oc(f,c))continue;t=c;c.o(g)}else t.o(g);if(t.mg(this.ka))break}a=!0}}}return a};f.prototype.ML=function(){return this.HQ()};f.prototype.HQ=function(){return(new d.aA).GS(this.a,this.ka)};f.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 g=this.a.Gp(),h=g.next();-1!=h;h=g.next())e.add(h);this.a.Mu(e,e.size);e.add(-1);g=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),f=0;new d.b;var t=this.a.cd;this.a.wb.kc();for(var q=this.a.wb.Ba[0].f,r,w,u=e.get(f++);-1!=u;){w=t.O(u,0);r=q[2*w];w=q[2*w+1];var m=r,v=w;do{var p=t.O(u,2),x=t.O(u,1);-1!=p&&(a=t.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(u),k.add(p)));-1!=x&&(a=t.O(x,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(x),k.add(x)));c=this.a.Ra(u,g);-1!=c&&(l.add(c),this.a.lb(u,g,-1));c=this.a.Ra(u,h);-1!=c&&(l.add(c),this.a.lb(u,h,-1));u=e.get(f++);-1!==u&&(v=t.O(u,
0),m=q[2*v],v=q[2*v+1])}while(-1!=u&&m===r&&v===w);m=1==l.size&&2==k.size;c=v=-1;p=0;for(x=l.size;p<x;p++){a=l.get(p);var B=this.zc.ge(a);-1==B||l.Nw(B)||(v=B);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(x=l.size;p<x;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(x=k.size;p<x;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,g)?this.a.lb(r,g,w):this.a.lb(r,h,w)}if(b)break;k.cf(0)}this.a.bf(g);this.a.bf(h);return b};f.prototype.SK=function(b,a){this.Ld.compare(this.zc,this.zc.da(b),a);b=this.Ld.Zf;this.Ld.lq();return b};f.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};f.Yk=function(b,a,c,e){if(!f.Gh(b))return!1;a=new f(e);a.a=b;a.ka=c;if(15>b.pd)b=a.LL();else return a.ML();return b};f.$=function(b,a,c){return f.Yk(b,b.wC(),a,c)};f.DE=function(b,
a,c,e,g){if(!f.Gh(a))return!1;var h=new f(g);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 f(g);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 f}();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,g,d,l,k,f,t,q,r,w){this.U=a;this.cu=b;
this.Yq=g;this.ag=d;this.Il=r;this.xk=w}}();d.yT=m;var f=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,g,d,l,k,f,t,q){this.ag=a;this.Yq=b;this.Lx=g;this.sE=d;this.Wh=l;this.xk=k;this.Il=f;this.tE=t;this.RP=q}}();d.xT=b;var a=function(){function a(){}a.YG=function(c,
b,h,l,k,f){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,f,!0);b=0;h=e.re();for(l=e.$c;-1!=l;l=e.we(l))for(f=e.Vb(l);-1!=f;f=e.bc(f))for(var g=e.Cb(f),n=0,w=e.Ha(f);n<w;g=e.X(g),n++)e.lb(g,h,b++);b=a.qM(h,e);a.CI(c,b,e,k)}};a.qM=function(c,b){for(var e=b.pd,g=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 t=b.Cb(n),q=0,r=b.Ha(n);q<r;t=b.X(t),q++)g.add(t);var w=new f(c,b);g.xd(0,e,function(a,c){return w.nJ(a,
c)});c=[];var m=[],y=b.re(),v=b.re(),k=b.$c,n=b.we(k),r=new d.b,p=new d.b,x=g.get(0),B=b.rd(x),A=b.Vf(B);b.w(x,r);for(var z=1,t=0;z<e-1;){for(var C=!1,q=z;q<e;q++)if(q!=t){var F=g.get(q),G=b.rd(F),E=b.Vf(G);b.w(F,p);if(r.ub(p))A==k&&E==n&&(C=a.SI(y,v,b,c,m,B,x,G,F));else break}if(C||t==z-1){C&&t==z-1&&z--;if(++t==e)break;x=g.get(t);B=b.rd(x);A=b.Vf(B);b.w(x,r)}C||(z=t+1)}e=[];for(k=b.$c;-1!=k;k=b.we(k))for(n=b.Vb(k);-1!=n;n=b.bc(n))for(g=b.Cb(n),q=0,r=b.Ha(n);q<r;g=b.X(g),q++){t=b.Ra(g,v);if(0<=t)for(;t<
m.length&&m[t].ag==g;)e.push(m[t++]);t=b.Ra(g,y);if(0<=t)for(;t<c.length&&c[t].ag==g;)e.push(c[t++])}b.bf(y);b.bf(v);return e};a.SI=function(c,b,d,l,k,f,t,q,r){var e=d.hk(f),g=d.hk(q),h=d.Cb(f),n=d.Cb(q),m=d.Ua(t),p=d.Ua(r),B=!1,A=!1,z=!1,C=!1;t!=h&&(r!=n&&(B=a.VI(c,d,l,f,m,q,p)),r!=g&&(A=a.YI(c,d,l,f,m,q,r)));t!=e&&(r!=n&&(z=a.aJ(b,d,k,f,t,q,p,h)),r!=g&&(C=a.dJ(b,d,k,f,t,q,r,h)));B&&A&&z?(c=l.length-1,2==k[C?k.length-2:k.length-1].Wh&&(l[c-1]=l[c],--l.length)):B&&A&&C&&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 B||A||z||C};a.VI=function(a,c,h,l,k,f,t){var e,g;g=new d.yb;var n=new d.yb,m=[0,0],y=[0,0];e=c.cc(k);null==e&&(c.Oc(k,g),e=g);g=c.cc(t);null==g&&(c.Oc(t,n),g=n);e=e.Ga(g,null,m,y,0);2>e&&(l=new b(k,l,m[0],NaN,e,t,f,y[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,f,t){var e,g;g=new d.yb;var n=new d.yb,m=[0,0],y=[0,0];e=c.cc(k);null==e&&(c.Oc(k,g),e=g);g=c.cc(t);null==g&&(c.Oc(t,n),g=n);e=e.Ga(g,
null,m,y,0);return 2>e?(l=new b(k,l,m[0],NaN,e,t,f,y[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,f,t,q){var e,g;g=new d.yb;var n=new d.yb,m=[0,0],v=[0,0];e=c.cc(k);null==e&&(c.Oc(k,g),e=g);g=c.cc(t);null==g&&(c.Oc(t,n),g=n);e=e.Ga(g,null,m,v,0);if(2==e)return l=new b(k,l,m[0],m[1],e,t,f,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,t,f,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,f,t,q){var e,g;g=new d.yb;var n=new d.yb,m=[0,0],v=[0,0];e=c.cc(k);null==e&&(c.Oc(k,g),e=g);g=c.cc(t);null==g&&(c.Oc(t,n),g=n);e=e.Ga(g,null,m,v,0);if(2==e)return l=new b(k,l,m[0],m[1],e,t,f,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,t,f,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,g=[];g[0]=new d.b;g[1]=new d.b;g[2]=new d.b;g[3]=new d.b;var f=new d.b,q=new d.b,r=
new d.b,w=new d.b,u=null;null!=l&&(u=new d.Ag,u.mq());var y,v=0,p=null,x=new d.yb;new d.yb;for(var B=h.Vb(h.$c);-1!=B;B=h.bc(B)){var A,z=4,C=-1,F,G,E,H=-1,K,T,W,J,I=-1,R=-1,L=NaN;A=!0;var N=!1,Q=!0,M=!0,U=!0,V=0;E=B;K=0;for(var ea=h.Cb(B),aa=h.Ha(B),ca=0;ca<aa;ea=h.X(ea),ca++){y=h.cc(ea);if(null==y){if(!h.Oc(ea,x))continue;y=x}-1==H&&(H=ea);for(var S=0;v<b.length&&ea==b[v].ag;){C=b[v].Yq;F=b[v].ag;G=b[v].Lx;T=b[v].Il;W=b[v].xk;J=b[v].tE;if(2==b[v].Wh){if(N||(E=C,H=F,K=G,I=T,R=W,L=J,z=2,null!=l?p=
new d.Xa:V=0,U=!1,M=!0),G=b[v].sE,J=b[v].RP,null!=l?(y.Bi(S,b[v].sE,u),p.Bc(u.get(),M)):V++,S=G,N=!0,M=A=!1,v+1==b.length||2!=b[v+1].Wh||b[v+1].ag==F&&b[v+1].Lx!=S)null!=l?(e=new m(p,2,C,F,G,z,E,H,K,T,W,J,I,R,L),l.push(e)):null.add(V),E=C,H=F,K=G,I=T,R=W,L=J,z=2,N=A=!1,M=U=!0}else{var Z=h.X(F);if(v<b.length-1&&b[v+1].ag==Z&&b[v+1].xk==W&&2==b[v+1].Wh)G!=S&&(U&&(null!=l?p=new d.Xa:V=0),A=0<v&&b[v-1].Yq==C?1==z?0:0==z?1:3:3,null!=l?(y.Bi(S,G,u),p.Bc(u.get(),M),e=new m(p,A,C,F,G,z,E,H,K,T,W,J,I,R,L),
l.push(e)):(V++,null.add(V)),S=G,E=C,H=F,K=G,I=T,R=W,L=J,z=A,A=Q=!1,M=U=!0);else if(!a.KK(c,h,b,v,f,q)){a.KG(h,b,v,B,ea,r,w);var P=!1,Z=!1;e=!0;if(!(f.ub(r)||q.ub(r)||f.ub(w)||q.ub(w))){g[0].J(f);g[1].J(q);g[2].J(r);g[3].J(w);g.sort(d.b.cq);var X=g[0],Y=g[1],ba=g[2],da=g[3];X.ub(f)?Y.ub(q)?c?(Z=P=!0,e=!1):P=!1:da.ub(q)?c?e=Z=P=!0:P=!1:(P=!0,e=Y.ub(r)):Y.ub(f)?ba.ub(q)?c?(Z=P=!0,e=!1):P=!1:X.ub(q)?c?e=Z=P=!0:P=!1:(P=!0,e=ba.ub(r)):ba.ub(f)?da.ub(q)?c?(Z=P=!0,e=!1):P=!1:Y.ub(q)?c?e=Z=P=!0:P=!1:(P=!0,
e=da.ub(r)):X.ub(q)?c?(Z=P=!0,e=!1):P=!1:ba.ub(q)?c?e=Z=P=!0:P=!1:(P=!0,e=X.ub(r))}if(P){P=ea==F;if(G!=S||P&&0==S)U&&(null!=l?p=new d.Xa:V=0),null!=l?(y.Bi(S,G,u),p.Bc(u.get(),M)):V++;if(e)if(1!=z){if(G!=S||P&&0==S)null!=l?(e=new m(p,1,C,F,G,z,E,H,K,T,W,J,I,R,L),l.push(e)):null.add(V);if(!Z)z=1;else if(v==b.length-2||b[v+2].Yq!=C)z=0}else{if(G!=S||P&&0==S)null!=l?(e=new m(p,3,C,F,G,z,E,H,K,T,W,J,I,R,L),l.push(e)):null.add(V);z=1}else if(0!=z){if(G!=S||P&&0==S)null!=l?(e=new m(p,0,C,F,G,z,E,H,K,T,
W,J,I,R,L),l.push(e)):null.add(V);if(!Z)z=0;else if(v==b.length-2||b[v+2].Yq!=C)z=1}else{if(G!=S||P&&0==S)null!=l?(e=new m(p,3,C,F,G,z,E,H,K,T,W,J,I,R,L),l.push(e)):null.add(V);z=0}if(G!=S||P&&0==S)S=G,E=C,H=F,K=G,I=T,R=W,L=J,A=Q=!1,M=U=!0}}}v++}1!=S&&(U&&(null!=l?p=new d.Xa:V=0),null!=l?(y.Bi(S,1,u),p.Bc(u.get(),M)):V++,M=U=!1,Q=!0)}Q&&(G=1,F=h.hk(B),F=h.Ua(F),W=T=-1,J=NaN,A?null!=l?(e=new m(p,4,C,F,G,z,E,H,K,T,W,J,I,R,L),l.push(e)):null.add(V):(A=1==z?0:0==z?1:3,null!=l?(e=new m(p,A,C,F,G,z,E,H,
K,T,W,J,I,R,L),l.push(e)):null.add(V)))}};a.KK=function(c,b,h,l,k,f){var e=h[l].tE;if(1==e)return a.GJ(c,b,h,l,k,f);if(0==e)return a.dK(c,b,h,l,k,f);throw d.g.wa();};a.GJ=function(a,c,b,l,k,f){var e=new d.yb,g=b[l].ag,h=b[l].Il,n=b[l].xk,m=-1,y=-1,v=-1,p=-1;if(!a&&0<l)var x=b[l-1],m=x.ag,y=x.Il,v=x.xk,p=x.Wh;var B=-1,A=-1,z=-1,C=-1;l<b.length-1&&(x=b[l+1],B=x.ag,A=x.Il,z=x.xk,C=x.Wh);var F=c.X(g),x=c.X(n);if(!a)return 0<l&&m==g&&y==h&&v==x&&2==p||l<b.length-1&&B==F&&A==h&&z==x&&2==C?(a=c.cc(n),null==
a&&(c.Oc(n,e),a=e),f.J(a.Pf(1)),k.qr(f),f.normalize(),k.normalize(),!1):l<b.length-1&&B==g&&A==h&&z==x?(a=c.cc(n),null==a&&(c.Oc(n,e),a=e),k.J(a.Pf(1)),a=c.cc(x),null==a&&(c.Oc(x,e),a=e),f.J(a.Pf(0)),k.Bp(),f.normalize(),k.normalize(),!1):!0;if(l==b.length-1||B!=g||A!=h||z!=x||2==C)return a=c.cc(n),null==a&&(c.Oc(n,e),a=e),f.J(a.Pf(1)),k.qr(f),f.normalize(),k.normalize(),!1;a=c.cc(n);null==a&&(c.Oc(n,e),a=e);k.J(a.Pf(1));a=c.cc(x);null==a&&(c.Oc(x,e),a=e);f.J(a.Pf(0));k.Bp();f.normalize();k.normalize();
return!1};a.dK=function(a,c,b,l,k,f){var e=new d.yb,g=b[l].ag,h=b[l].Il,n=b[l].xk,m=-1,y=-1,v=-1,p=-1;if(!a&&l<b.length-1)var x=b[l+1],m=x.ag,y=x.Il,v=x.xk,p=x.Wh;var B=-1,A=-1,z=-1,x=-1;0<l&&(x=b[l-1],B=x.ag,A=x.Il,z=x.xk,x=x.Wh);var C=c.X(g),F=c.Ua(n);return a?0==l||B!=g||A!=h||z!=F||2==x?(a=c.cc(n),null==a&&(c.Oc(n,e),a=e),f.J(a.Pf(0)),k.qr(f),f.normalize(),k.normalize(),!1):!0:0<l&&B==g&&A==h&&z==F&&2==x||l<b.length-1&&m==C&&y==h&&v==F&&2==p?(a=c.cc(n),null==a&&(c.Oc(n,e),a=e),f.J(a.Pf(0)),k.qr(f),
f.normalize(),k.normalize(),!1):!0};a.KG=function(a,c,b,l,k,f,t){var e=new d.yb,g=a.cc(k);null==g&&(a.Oc(k,e),g=e);b=c[b];c=b.ag;b=b.Lx;k=a.X(c);if(1==b)f.J(g.Pf(1)),-1!=k&&k!=a.hk(l)?(g=a.cc(k),null==g&&(a.Oc(k,e),g=e),t.J(g.Pf(0)),g=a.cc(c),null==g&&a.Oc(c,e)):t.J(f),f.Bp(),t.normalize(),f.normalize();else if(0==b)t.J(g.Pf(b)),f.qr(t),t.normalize(),f.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 g=null;if(void 0!==e&&null!==e)try{"EPSG"===e.values[0]&&(g=a.Qd(parseInt(e.values[1])))}catch(q){}null===g&&(g=new a(-1,c,b));return g};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,g){b=b.rC(e);for(e=0;e<c;e++)g[e]=a[e]*b};return a}();d.Tb=m;for(var f=[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=[],g=0;g<f.length;g+=2)c[f[g]]=new m(f[g],2,f[g+1]);f=null;for(g=0;g<b.length;g+=2)c[b[g]]=new m(b[g],1,b[g+1]);b=null;for(g=0;g<a.length;g+=3)c[a[g]]=new m(a[g],
0,a[g+1]),e[a[g]]=a[g+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 Q=new p.b,ca=new p.b,X=new p.b,Y=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 f=function(){function b(a,
c,b,g,d,l,k){void 0!==c?(this.ab=a,this.mj=c,this.$j=b,this.zh=g,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,g,d,l,k){return new b(a,c,e,g,d,l,k)};return b}();d.CT=f;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,g=this.wb.F();b<g;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 g=0;g<a;g++)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,g=0,h=c.ea();g<h;g++)if(!(2>c.Ha(g))){var l=this.Cf(a,-1);this.Gn(l,c.vc(g));for(var k=c.Ea(g),f=c.Dc(g);k<f;k++){var t=this.vl(l,-1,null);if(b)if(t=this.gb(t),0!=(c.NC(k)&1))this.Fh(t,null);else{var q=new d.Ag;c.cc(k,q,!0);this.Fh(t,q.get())}}}};b.prototype.XA=function(a,c){this.Hk.Pd(c,0,c.F());this.zp=this.wb.mc(0);a=this.Cf(a,-1);var b=0;for(c=c.F();b<c;b++)this.vl(a,-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,f=c.kk(b);k<f;k++){var t=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(t,null):this.Fh(t,d.T.Yj(r));r.Bn(h);k<f-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,f=c.kk(b);k<f;k++){var t=this.gb(a),q=this.X(a),r=c.Io(b,f-k-1);0==k&&(r.Bn(h),this.bh(a,h));322==r.D()?this.Fh(t,null):this.Fh(t,d.T.Yj(r));r.En(h);k<f-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,g=!0,h=c.next();-1!=h;h=c.next())this.w(h,b),g?a.Db(b.x,b.y):a.Oj(b.x,b.y),g=!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 g=this.Cf(b,-1);this.Gn(g,a.vc(c)||!0);var h=null!=this.Ge&&null!=a.Fe,l=a.Ea(c);for(c=a.Dc(c);l<c;l++){var k=this.vl(g,-1,null);if(h)if(k=this.gb(k),0!=(a.NC(l)&1))this.Fh(k,null);else{var f=new d.Ag;a.cc(l,f,!0);this.Fh(k,f.get())}}return b};b.prototype.hf=function(a){var c=this.Lb(a),b=d.sH.jg(c,this.Hk.description),g=this.F(a);if(0==g)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,f=0,t=k.Aa;f<t;f++){for(var q=k.Hd(f),r=d.pa.Wa(q),w=d.Ac.Tv(q,g),
m=this.wb.mc(q),y=0,v=0,p=0,x=this.Vb(a);-1!=x;x=this.bc(x)){var B=0;this.vc(x)&&(B|=1);this.VO(x)&&(B|=4);0!=B&&l.xy(v,B);var A=this.Ha(x);h.write(v++,p);p+=A;if(0==q)for(var A=m,z=w,C=new d.b,B=this.Cb(x);y<p;B=this.X(B),y++){var F=this.gb(B);A.ec(2*F,C);z.Rn(2*y,C)}else for(B=this.Cb(x);y<p;B=this.X(B),y++)for(F=this.gb(B),z=0;z<r;z++)C=m.Bh(F*r+z),w.Uk(y*r+z,C)}b.bm(q,w);h.write(c,g)}b.NF(l);b.OF(h);b.ce(16777215)}else if(550==c){k=b.description;b.resize(g);f=0;for(t=k.Aa;f<t;f++){q=k.Hd(f);r=
d.pa.Wa(q);w=b.mc(q);m=this.wb.mc(q);y=0;x=this.Vb(a);A=this.Ha(x);for(B=this.Cb(x);y<A;B=this.X(B),y++)for(F=this.gb(B),z=0;z<r;z++)C=m.Bh(F*r+z),w.Uk(y*r+z,C);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){a=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=a:(this.QF(a,this.Xt),this.MF(this.Xt,a));return this.Xt=a};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){a=this.xC(a);
c=this.Ej[c];return a<c.size?c.read(a):-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 f=0,t=this.Cb(k);f<d.I.truncate(this.Ha(k)/2);){var q=this.X(t);if(-1==q)break;var r=this.gb(t),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,t),this.vf(q,!0))):t=this.X(t);f++}f=this.Cb(k);for(t=this.vc(k)?f:this.hk(k);0<this.Ha(k);)if(q=this.Ua(t),-1!=q){var m=this.gb(q),w=this.Fi(m);
null!=w?r=w.$b():(r=this.gb(t),r=this.wb.mv(r,m));if(r<=a)0==r?0==e&&(e=-1):e=1,this.Zy(q,t),this.vf(q,!1),f==q&&(f=this.Cb(k));else if(t=this.Ua(t),t==f)break}else{this.vf(t,!0);0==e&&(e=-1);break}t=this.Ha(k);c&&(l?3>t:2>t)?(k=this.Cr(k),e=0<t?1:0==e?-1:e):k=this.bc(k)}}return e};b.prototype.Zy=function(a,c){var b=this.gb(a),g=this.gb(c);null!=this.wg&&(b=this.wg.read(b),this.wg.write(g,b));if(null!=this.sh)for(g=0,b=this.sh.length;g<b;g++)if(null!=this.sh[g]){var d=this.Ra(a,g);-1!=d&&this.lb(c,
g,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),f=this.Fi(l),t=null==f?this.wb.mv(l,k):f.$b(),q=0;q<b;q++){var r=c[q];if(0<r&&1>r){var w=r;null!=f&&(w=0<t?f.rA(r)/t:0);this.wb.vJ(l,k,w,this.Fo());var m=this.vl(this.rd(a),h,this.Fo());e++;if(null!=f){var y=f.xm(0,r),w=this.gb(this.Ua(m));this.Fh(w,y);this.Yi(m,y.oc());if(q==b-1||1==c[q+1])r=f.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);a=this.Ua(a);-1!=a&&(a=this.gb(a),null!=this.Fi(a)&&b.setEnd(c))};b.prototype.Jk=function(a,c){a=this.gb(a);this.wb.Sd(a,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,g){this.wb.setAttribute(a,this.gb(c),b,g)};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){a=this.gb(a);c=this.gb(c);var b=this.wb.Ba[0].f;return b[2*a]===b[2*c]&&b[2*a+1]===b[2*c+1]};b.prototype.pt=
function(a,c){a=this.gb(a);var b=this.wb.Ba[0].f;return b[2*a]===c.x&&b[2*a+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)}a=this.gb(a);a>=this.wg.size&&this.wg.resize(a+1,1);this.wg.write(a,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){a=this.gb(a);c=this.sh[c];return a<c.size?c.read(a):-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 g=new d.Va;this.Jk(a,g);c.setStart(g);this.Jk(b,
g);c.setEnd(g)}else this.wb.uc(this.cd.O(a,0),Q),c.gl(0,Q),this.wb.uc(this.cd.O(b,0),Q),c.gl(1,Q);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,Q),b.gl(0,Q),this.wb.uc(c,Q),b.gl(1,Q)};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 g=this.lQ(a);-1!=c&&this.Mn(c,g);this.Ln(g,c);this.Mn(g,b);-1!=b?this.Ln(b,g):this.Jn(a,g);-1==c&&this.Kn(a,g);this.gm(a,
this.ea(a)+1);return g};b.prototype.aD=function(a,c,b,g){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!=g&&(g[0]=k);return a};b.prototype.Cr=function(a){var c=this.wq(a),b=this.bc(a),g=this.Vf(a);-1!=c?this.Ln(c,b):this.Jn(g,b);-1!=b?this.Mn(b,c):this.Kn(g,c);this.bL(a);this.gm(g,this.ea(g)-1);this.iC(a);return b};b.prototype.bL=function(a){var c=this.Cb(a);if(-1!=c){for(var b=
0,g=this.Ha(a);b<g;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),g=this.hk(a);c?(this.Sc(g,b),this.Tc(b,g)):(this.Sc(g,-1),this.Tc(b,-1));b=this.gb(g);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 g=new d.b;this.w(b,g);for(var h=0,l=0,k=this.Ha(a);l<k;l++,b=this.X(b)){var f=this.cc(b);if(null==f){if(!this.Oc(b,c))continue;f=c}h+=f.kv(g.x,g.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){a=this.bt(a);c=this.Jj[c];return a<c.size?c.read(a):-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),g=this.Ua(a),
h=this.X(a);-1!=g&&this.Sc(g,h);var l=this.Ha(b);a==this.Cb(b)&&this.Dh(b,1<l?h:-1);-1!=h&&this.Tc(h,g);a==this.hk(b)&&this.Wi(b,1<l?g:-1);if(-1!=g&&-1!=h){var g=this.gb(g),k=this.gb(h);c?(c=this.Fi(g),null!=c&&(g=new d.b,this.wb.w(k,g),c.vd(g))):(k=this.gb(a),c=this.Fi(k),this.Fh(g,c),null!=c&&(g=this.wb.Fa(g),c.ed(g)))}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 f)return new f(a);var c,b=-1,g=-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=g=this.Cb(b),l=0,-1!=g){k=!0;break}if(k)break}return f.UL(this,c,b,g,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,g){g?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),g=this.Vf(a);-1!=c?this.Ln(c,b):this.Jn(g,b);-1!=b?this.Mn(b,c):this.Kn(g,c);this.Dh(a,-1);this.Wi(a,-1);this.iC(a)};b.prototype.Ui=function(a,c){var b=this.Ua(a),g=this.X(a);-1!=b&&this.Sc(b,g);-1!=g&&this.Tc(g,b);if(-1!=b&&-1!=g)if(b=this.gb(b),
g=this.gb(g),c){if(c=this.Fi(b),null!=c){var h=new d.b;this.wb.w(g,h);c.vd(h)}}else g=this.gb(a),c=this.Fi(g),this.Fh(b,c),null!=c&&(h=new d.b,this.wb.w(b,h),c.ed(h));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 g=this.wb.Ba[0].f;a.xd(0,c,function(a,c){a=b[5*a];c=b[5*c];var e=g[2*a];a=g[2*a+1];var d=g[2*c];c=g[2*c+1];return a<c?-1:a>c?1:e<d?-1:e>d?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),g=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,g);this.Jn(c,b);this.Kn(a,l);this.Kn(c,d);b=this.F(a);g=this.ea(a);d=this.ea(c);this.Pk(a,this.F(c));this.Pk(c,b);this.gm(a,d);this.gm(c,g);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(f){function b(a,c,b,g){f.call(this);this.R=new d.i;void 0===a?this.MB():"number"===typeof a?this.AL(a,c,b,g):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,f);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,g){this.description=d.Od.Tf();this.K(a,c,b,g)};b.prototype.K=function(a,c,b,g){this.qc();if("number"===typeof a)this.R.K(a,c,b,g);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,g=c.Aa;e<g;e++)for(var h=c.Fd(e),l=d.pa.Wa(h),k=0;k<l;k++){var f=a.ld(h,k),t=this.Ah(h,k);t.Db(f);setInterval(h,k,t)}}}}else if(a instanceof b&&!a.s())for(c=a.description,c!=this.description&&this.Ik(c),this.R.Db(a.R),e=1,g=c.Aa;e<g;e++)for(h=c.Hd(e),l=d.pa.Wa(h),k=0;k<l;k++)f=a.Ah(h,k),t=this.Ah(h,
k),t.Db(f),setInterval(h,k,t)};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 f=a.ld(h,k);this.setInterval(h,k,f,f)}}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++)f=a.ld(h,k),this.setInterval(h,k,f,f)};b.prototype.setInterval=function(a,c,b,g){var e=null;"number"===typeof b?e=new d.Nd(b,g):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(a=0;a<b;a++)for(var g=this.description.Hd(a),h=d.pa.Wa(g),l=0;l<h;l++)c.setAttribute(g,l,this.yd(0,g,l));c.ic(this.R.v,this.R.C);break;case 1:for(a=0;a<b;a++)for(g=this.description.Hd(a),h=d.pa.Wa(g),l=0;l<h;l++)c.setAttribute(g,l,this.yd(1,g,l));c.ic(this.R.v,this.R.G);break;case 2:for(a=0;a<
b;a++)for(g=this.description.Hd(a),h=d.pa.Wa(g),l=0;l<h;l++)c.setAttribute(g,l,this.yd(0,g,l));c.ic(this.R.B,this.R.G);break;case 3:for(a=0;a<b;a++)for(g=this.description.Hd(a),h=d.pa.Wa(g),l=0;l<h;l++)c.setAttribute(g,l,this.yd(1,g,l));c.ic(this.R.B,this.R.C);break;default:throw d.g.Uc();}};b.prototype.vu=function(a,c){a=this.R.vu(a);c.ma(a.x,a.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,g=1,h=this.description.Aa;g<h;g++)for(var l=this.description.Hd(g),k=d.pa.Wa(l),l=d.pa.ue(l),f=0;f<k;f++)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=[],g=b.V(this.description,0),h=b.V(this.description,1),l=b.V(a,0),k=b.V(a,1),f=0,t=1,q=a.Aa;t<q;t++){var r=a.Hd(t),w=d.pa.Wa(r);if(-1==c[t])for(var m=d.pa.ue(r),r=0;r<w;r++)e[l+f]=m,e[k+f]=m,f++;else for(m=this.description.fj(c[t])-2,r=0;r<w;r++)e[l+f]=this.fa[g+m],e[k+f]=this.fa[h+m],f++,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 g=this.description.zf(c);return 0<=g?(this.ns(),this.fa[b.V(this.description,a)+this.description.fj(g)-2+e]):d.pa.ue(c)};b.prototype.DA=function(a,c,e,g){this.qc();if(0==c)0!=a?0!=e?this.R.G=g:this.R.B=g:0!=e?this.R.C=g:this.R.v=g;else{if(e>=d.pa.Wa(c))throw d.g.Uc();if(!this.hasAttribute(c)){if(d.pa.nD(c,g))return;this.Ne(c)}c=this.description.zf(c);this.ns();this.fa[b.V(this.description,a)+this.description.fj(c)-
2+e]=g}};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 g=this.description.Hd(b),
h=d.pa.Wa(g),l=0;l<h;l++){var k=.5*(this.mC(0,g,l)+this.mC(1,g,l));a.setAttribute(g,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(g=this.description.Fd(b),h=d.pa.Wa(g),l=0;l<h;l++)k=.5*(this.yd(0,g,l)+this.yd(1,g,l)),a.setAttribute(g,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 f(b,a,c,e){void 0===b?this.Ja():(this.v=b,this.C=a,this.B=c,this.G=e)}f.Oa=function(b,a,c,e){var g=new f;g.v=b;g.C=a;g.B=c;g.G=e;return g};f.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 f?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))};f.prototype.IN=function(b,a){var c=new f;c.K(this.v,this.C,this.B,this.G);c.P(b,a);return c};f.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)};f.prototype.Ja=function(){this.G=this.B=this.C=this.v=NaN};f.prototype.s=function(){return isNaN(this.v)};f.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 f&&!b.s()&&(this.Db(b.v,b.C),this.Db(b.B,b.G))};f.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)};f.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())};f.prototype.scale=function(b){0>b&&this.Ja();this.s()||(this.v*=b,this.B*=b,this.C*=b,this.G*=b)};f.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)};f.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)};f.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};f.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();}};f.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)};f.prototype.rN=function(){return this.s()?0:this.aa()*this.ba()};f.prototype.CC=function(){return this.s()?
0:2*(this.aa()+this.ba())};f.prototype.lw=function(){return(this.B+this.v)/2};f.prototype.Vs=function(){return(this.G+this.C)/2};f.prototype.aa=function(){return this.B-this.v};f.prototype.ba=function(){return this.G-this.C};f.prototype.move=function(b,a){this.s()||(this.v+=b,this.C+=a,this.B+=b,this.G+=a)};f.prototype.offset=function(b,a){this.v+=b;this.B+=b;this.C+=a;this.G+=a};f.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}};f.prototype.Yl=function(b){b.ma(this.v,this.C)};f.prototype.YE=function(b){b.ma(this.B,this.C)};f.prototype.aF=function(b){b.ma(this.v,this.G)};f.prototype.Zl=function(b){b.ma(this.B,this.G)};f.prototype.dP=function(){return this.s()||this.v<=this.B&&this.C<=this.G};f.prototype.Af=function(){return d.b.Oa((this.B+this.v)/2,(this.G+this.C)/2)};f.prototype.yw=function(){return d.b.Oa(this.v,this.C)};f.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 f)return b.v>=this.v&&b.B<=this.B&&b.C>=this.C&&b.G<=this.G;throw d.g.N();};f.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 f)return b.v>this.v&&b.B<this.B&&b.C>this.C&&b.G<this.G;throw d.g.N();};f.prototype.lc=
function(b){return b==this?!0:b instanceof f?this.s()&&b.s()?!0:this.v!=b.v||this.C!=b.C||this.B!=b.B||this.G!=b.G?!1:!0:!1};f.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)};f.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};f.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))};f.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};f.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)};f.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 g=(0!=c?1:0)|(0!=e?2:0);do{var d=a.x-b.x,l=a.y-b.y;d>l?0!=(c&f.Cc)?(0!=(c&f.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&f.Cc)?(0!=(e&f.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&f.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&f.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&f.Bd)?(0!=(c&f.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&f.Bd)?(0!=(e&f.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&f.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&f.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 g};f.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};f.prototype.mg=function(b){return!this.s()&&(this.aa()<=b||this.ba()<=b)};f.prototype.Fb=function(b){return b instanceof d.b?Math.sqrt(this.gG(b)):
Math.sqrt(this.Ou(b))};f.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};f.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};f.prototype.wu=function(b){this.s()?b.Ja():b.K(this.v,this.B)};f.ob=1;f.ac=4;f.Cc=3;f.Bd=12;return f}();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 f=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),g=this.pq(c,!1);return e>g?this.Qu():e<g?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 f(this,b);this.Al.sort(a,0,c,b)};b.prototype.BS=function(a,c,e,g){var d=this;a.xd(c,e,function(a,c){var e=d.pq(a,g),h=d.pq(c,
g);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)return c=this.vb[a>>1],e=b.Yk(a)?c.C-e:c.G+e;c=this.Zc[a>>1];return e=b.Yk(a)?c.C-e:c.G+e};return b}();d.sz=m})(p||(p={}));(function(d){var m=function(){function f(){}f.Oa=function(b,a,c,e,g,d){var h=new f;h.v=b;h.C=a;h.Je=c;h.B=e;h.G=g;h.ig=d;return h};f.prototype.Ja=function(){this.Je=this.v=NaN};f.prototype.s=function(){return isNaN(this.v)};f.prototype.UO=function(){return isNaN(this.Je)};f.prototype.K=
function(b,a,c,e,g,d){void 0!==e?"number"===typeof b?(this.v=b,this.C=a,this.Je=c,this.B=e,this.G=g,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)};f.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};f.prototype.copyTo=function(b){b.v=this.v;b.C=this.C;b.B=this.B;b.G=this.G};f.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};f.prototype.Db=function(b,a,c,e,g,h){if("number"===typeof b)e?(this.Db(b,a,c),this.Db(e,g,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 f)b.s()||(this.Db(b.v,b.C,b.Je),this.Db(b.B,b.G,b.ig));else throw d.g.N();};f.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)};f.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)};f.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 f}();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}(),f=function(){function a(a,b,g){this.Ma=a;this.Zt=b;this.Om=!1;this.Um=g;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,g=new d.b,h=new d.b,l=[0];this.bd.La()&&8>this.Fx;){var k=this.bd.ia();g.J(k.Mb());h.J(k.oc());g.scale(this.Ma.Rb);h.scale(this.Ma.Rb);d.ui.Hs(g,h)?g.x=h.x:d.ui.Fs(g,h)&&(h.x=g.x);this.Bj.length=0;d.ui.kC(this.Ma.Gb,this.Ma.Xb,
this.Ma.ke,g,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(g,h)?(this.$o.Ja(),this.Ma.Iv(g,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(),g.J(this.Zt.Fa(this.bd.Jb())),h.J(this.Zt.Fa(this.bd.Bm())),
g.scale(this.Ma.Rb),h.scale(this.Ma.Rb),this.rk&&(d.ui.Hs(g,h)?g.x=h.x:d.ui.Fs(g,h)&&(h.x=g.x)),this.Bj.length=0,d.ui.kC(this.Ma.Gb,this.Ma.Xb,this.Ma.ke,h,g,this.Ma.Nx,this.Ma.hr,null,this.Qi,this.Sq,this.Bj,this.Mt),this.TA(a),e--;g.J(this.Zt.Fa(this.bd.Jb()));g.scale(this.Ma.Rb);b.kq(this.Ma.Gb,this.Ma.Xb,this.Ma.Rb,this.Ma.hb,g,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],g,h=this.Qi[0]-1.570796326794897,l=this.Sq[0]+1.570796326794897,k;if(!isNaN(this.uh)){this.uh>=this.Qi[0]?(g=this.uh+1.570796326794897,h=g+3.141592653589793-(this.uh-this.Qi[0])):(g=this.uh+1.570796326794897,h=g+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 f=!1;if(Math.abs(h-g)<=.5*this.Ma.Sm)if(k){var t=a.Fa(a.F()-2);t.scale(this.Ma.Rb);var q=new d.ca(0);d.zb.gw(this.Ma.Gb,this.Ma.Xb,c.x,c.y,t.x,t.y,q);for(t=q.l;t<=g;)t+=6.283185307179586;for(;t>g;)t-=6.283185307179586;t<h&&(f=!0)}else f=!0;f?(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+g))):(k?(g=
new d.b,g.J(c),g.scale(1/this.Ma.Rb),a.kf(0,-1,g)):b.kq(this.Ma.Gb,this.Ma.Xb,this.Ma.Rb,this.Ma.hb,this.Bj[0],g,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(c,b,g,h,l,k){if(null==c)throw d.g.N("Geometry::Geodesic_bufferer::buffer");
if(c.s())return new d.Ka(c.description);var e=new a;e.sg=b;e.wc=d.Ya.Em(b);var f=d.Ya.ft(e.wc);e.Yb=k;e.Gb=d.Ya.Ts(e.wc);e.Xb=f*(2-f);e.Rb=e.wc.Se().Dj;e.ka=e.sg.xq();e.jp=e.wc.xq();e.hr=e.jp*e.Rb;e.ip=1.570796326794897/e.Rb;e.rU=3.141592653589793/e.Rb;e.Uq=6.283185307179586/e.Rb;e.sU=e.Uq/6;e.Ix=0;e.qU=1.5707963267948966*e.Gb/e.Ix;4==g?(e.ke=2,e.Gt=!0):(e.ke=g,e.Gt=!1);e.Da=h;e.hb=Math.abs(h);isNaN(l)||.001>l?e.sS():e.Rm=l;g=c.D();d.T.Lc(g)?(g=new d.Xa(c.description),g.Bc(c,!0),c=g,g=1607):197==
g&&(g=new d.i,c.o(g),g.aa()<=e.ka||g.ba()<=e.ka?(g=new d.Xa(c.description),g.Wc(c,!1),c=g,g=1607):(g=new d.Ka(c.description),g.Wc(c,!1),c=g,g=1736));e.tS();d.T.Km(g)||e.uS();if(e.hb<=.5*e.Rm)return 1736!=g?new d.Ka(c.description):e.Gt?c:d.ui.oq(c,e.sg,e.ke,e.Nx,-1,k);if(0>e.Da&&1736!=g)return new d.Ka(c.description);e.Gt&&d.T.Kc(g)?(b=d.ui.oq(c,b,4,NaN,e.Rm,k),c=d.Ya.Wl(b,e.sg,e.wc)):c=d.Ya.Wl(c,e.sg,e.wc);c=d.gh.qo(c,e.wc);if(c.s())return new d.Ka(c.description);!e.Gt&&d.T.Kc(g)&&(c=d.ui.IE(e.Rb,
c));c=a.PS(c,e.wc);switch(g){case 1736:b=e.yK(c);break;case 1607:b=e.zK(c);break;case 550:b=e.wK(c);break;case 33:b=e.xK(c);break;default:throw d.g.ra("corrupted_geometry");}e=d.Ya.Wl(b,e.wc,e.sg);e.Ik(c.description);return e};a.prototype.yK=function(a){var c=new d.Ka;a=new f(this,a,c);a=d.wi.local().$(a,this.wc,this.Yb).next();a=d.Vn.nl(a,this.wc,2);var b=new d.Bg;b.scale(1/this.Rb,1/this.Rb);c.Oe(b);c=d.Vn.nl(c,this.wc,2);return 0<=this.Da?d.wi.local().$(c,a,this.wc,this.Yb):d.Zr.local().$(c,a,
this.wc,this.Yb)};a.prototype.zK=function(a){a=new f(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 c=new d.Ka;this.Iv(a,!1,c);return c=d.Vn.nl(c,this.wc,2)};a.prototype.Lv=function(c,b,g,h,l,k){var e=c[0],f=c[c.length-1],q=e.y>f.y?e.y:f.y,r=d.u.q(this.Gb,this.Xb,e.y<f.y?e.y:f.y),q=d.u.q(this.Gb,
this.Xb,q);if(.001<this.Ix-(r+b+this.hb)&&.001<this.Ix+(q-b-this.hb))return!1;b=g-1.570796326794897;g=h+1.570796326794897;var r=b-3.141592653589793,q=b+3.141592653589793,w=g+3.141592653589793,m=[NaN],y=[NaN],v=[NaN],p=[NaN];h=!1;a.wG(this.Gb,this.Xb,this.hb,e,b,r,f,g,m,y);a.wG(this.Gb,this.Xb,this.hb,f,w,g,e,r,v,p);g<m[0]&&m[0]<w?h=!0:g<y[0]&&y[0]<w&&(h=!0);h||(r<v[0]&&v[0]<b?h=!0:r<p[0]&&p[0]<b&&(h=!0));if(!h&&l)return!1;for(var x=[],B=c.length-1;0<=B;B--)x.push(c[B]);k.Ja();k.lo();B=[0];a.Hv(this.Gb,
this.Xb,this.Rb,this.hb,this.ke,c,b,g,l,B,k);a.kq(this.Gb,this.Xb,this.Rb,this.hb,f,g,w,this.Sm,l,B,k,m[0],y[0]);a.Hv(this.Gb,this.Xb,this.Rb,this.hb,this.ke,x,w,q,l,B,k);a.kq(this.Gb,this.Xb,this.Rb,this.hb,e,r,b,this.Sm,l,B,k,v[0],p[0]);c=!1;l||(c=this.zB(this.Rb,k));return h||c};a.prototype.Iv=function(c,b,g){g.Ja();g.lo();a.kq(this.Gb,this.Xb,this.Rb,this.hb,c,-this.Sm,6.283185307179586,this.Sm,b,[0],g,NaN,NaN);b||this.zB(this.Rb,g)};a.prototype.zB=function(a,b){var c=this.XK(a,b);a=this.YK(a,
b);return c||a};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,g){var c=g.F(),e=0<b?b-1:c-1,c=g.Fa(b<c-1?b+1:0),e=g.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);g.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),g.kf(0,b,c))};a.prototype.RQ=function(a){var c=new d.Ka,b=new d.Ka,h=new d.Bg,l=a.Fa(0),k=a.Fa(a.F()-1),f=new d.b;l.x>k.x?(k=this.ip,h.Nn(-this.Uq,0)):(k=-this.ip,h.Nn(this.Uq,0));c.add(a,!1);a.Ja();b.add(c,!1);b.Oe(h);l=new d.i;b.o(l);l.P((this.Uq-l.aa())/
2,0);l.C=-this.ip;l.G=this.ip;for(var t=0;t<b.F();t++)b.w(t,f),c.kf(0,-1,f);b.Oe(h);for(t=0;t<b.F();t++)b.w(t,f),c.kf(0,-1,f);b=c.Fa(0);h=c.Fa(c.F()-1);f.ma(h.x,k);c.kf(0,-1,f);f.ma(.5*(h.x+b.x),k);c.kf(0,-1,f);f.ma(b.x,k);c.kf(0,-1,f);c=d.gh.Rw(c,this.wc,2,l.v);c=d.gh.Rw(c,this.wc,2,l.B);c=d.Ed.clip(c,l,this.jp,NaN);a.add(c,!1)};a.prototype.QQ=function(a){var c=new d.i;a.o(c);c.P((this.Uq-c.aa())/2,0);c.C=-this.ip;c.G=this.ip;a.lo();var b=new d.b;b.ma(c.v,c.C);a.kf(1,-1,b);b.ma(c.v,c.G);a.kf(1,-1,
b);b.ma(.5*(c.v+c.B),c.G);a.kf(1,-1,b);b.ma(c.B,c.G);a.kf(1,-1,b);b.ma(c.B,c.C);a.kf(1,-1,b);b.ma(.5*(c.v+c.B),c.C);a.kf(1,-1,b)};a.Hv=function(c,b,g,h,l,k,f,t,q,r,w){var e=null;q||(e=new d.b,e.Eh(),0<w.F()&&(e.J(w.Fa(w.F()-1)),e.scale(g)));var n=new d.ca(0),m=new d.ca(0),p=new d.ca(0),x=new d.b,B=new d.b,A=k[k.length-1];g=1/g;for(var z=0;z<k.length;z++){var C=k[z],F;0==z?F=f:z==k.length-1?F=t:(d.zb.Rd(c,b,A.x,A.y,C.x,C.y,null,null,n,l),F=n.l-1.570796326794897);d.zb.Ph(c,b,C.x,C.y,h,F,m,p);q?B.ma(m.l,
p.l):(x.ma(m.l,p.l),a.Gz(C.x,x.x,e.x,r),B.ma(r[0]+x.x,x.y),e.J(B));B.scale(g);w.kf(0,-1,B)}};a.kq=function(c,b,g,h,l,k,f,t,q,r,w,m,p){if(!(f-k<t)){var e=new d.ca(0),n=new d.ca(0),u=new d.b,y=new d.b,A=null;q||(A=new d.b,A.Eh(),0<w.F()&&(A.J(w.Fa(w.F()-1)),A.scale(g)));var z=d.I.truncate(Math.ceil(k/t)),C=z++*t;C==k&&(C=z++*t);for(g=1/g;C<f+t;){k<m&&m<C?(C=m,z--):k<p&&p<C&&(C=p,z--);if(C>=f)break;d.zb.Ph(c,b,l.x,l.y,h,C,e,n);q?y.ma(e.l,n.l):(u.ma(e.l,n.l),a.Gz(l.x,u.x,A.x,r),y.ma(r[0]+u.x,u.y),A.J(y));
y.scale(g);w.kf(0,-1,y);k=C;C=z++*t}}};a.wG=function(a,b,g,h,l,k,f,t,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,g,l,n,m);c.ma(n.l,m.l);d.zb.Ph(a,b,h.x,h.y,g,k,n,m);e.ma(n.l,m.l);g=new d.ca(0);d.zb.gw(a,b,f.x,f.y,c.x,c.y,g);q[0]=g.l;d.zb.gw(a,b,f.x,f.y,e.x,e.y,g);for(r[0]=g.l;q[0]<=r[0];)q[0]+=6.283185307179586;for(;q[0]>r[0];)q[0]-=6.283185307179586;for(;q[0]>=t;)q[0]-=6.283185307179586,r[0]-=6.283185307179586;for(;q[0]<t;)q[0]+=6.283185307179586,r[0]+=6.283185307179586};
a.Gz=function(a,b,g,d){if(isNaN(g)){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-g?d[0]-=6.283185307179586:3.141592653589793<g-(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=[],f=new d.i,t=0;t<e;t++){l.write(t,t);var q;d.T.Kc(c)?(a.Ti(t,f),q=f.Af()):q=a.Fa(t);q=d.qH.QS(b,q);k[t]=q}l.xd(0,
l.size,function(a,c){return k[a]<k[c]?-1:k[a]>k[c]?1:0});f=a.Pa();for(t=0;t<e;t++)q=l.read(t),d.T.Kc(c)?f.Zj(a,q,!0):f.Pd(a,q,q+1);return f};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 g=45*this.Rb,h=new d.ca(0),l=new d.ca(0),k=new d.ca(0),f=new d.ca(0),t=new d.ca(0),q=new d.ca(0),r=new d.ca(0),w=new d.ca(0),m=new d.b,p=new d.b,v=new d.b,D=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,g,k,f);p.ma(k.l,f.l);for(var h=new d.ca(0),l=new d.ca(0),x=new d.ca(0);;){d.zb.Ph(this.Gb,this.Xb,b.x,b.y,a,.5*(0+g),t,q);v.ma(t.l,q.l);d.zb.Rd(this.Gb,this.Xb,m.x,m.y,p.x,p.y,h,l,null,2);d.zb.dk(this.Gb,this.Xb,m.x,m.y,.5*h.l,l.l,r,w,2);D.ma(r.l,w.l);d.zb.Rd(this.Gb,this.Xb,v.x,v.y,D.x,D.y,x,null,null,2);if(x.l<=this.Rm)break;g*=.9;d.zb.Ph(this.Gb,this.Xb,b.x,b.y,a,g,k,f);p.ma(k.l,f.l)}this.Sm=6.283185307179586/Math.ceil(6.283185307179586/(g-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,g=new d.b;b.ma(0,10*this.Rb);g.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,g.x,g.y,k,h,l,this.ke);var f=new d.ca(0),t=new d.ca(0),q=new d.ca(0),r=new d.ca(0),w=new d.b,m=new d.ca(0),p=new d.ca(0),v=new d.ca(0),D=new d.ca(0),x=new d.ca(0),B=new d.ca(0),A=new d.ca(0),z=new d.ca(0),C=new d.ca(0),F=new d.b,G=
new d.b,E=new d.b,H=new d.b,K=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,p,v);F.ma(p.l,v.l);d.zb.Ph(this.Gb,this.Xb,g.x,g.y,a,l,D,x);G.ma(D.l,x.l);for(var p=new d.ca(0),v=new d.ca(0),l=new d.ca(0),I=new d.ca(0);;){d.zb.dk(this.Gb,this.Xb,b.x,b.y,.5*(0+K)*k,h,f,t,this.ke);w.ma(f.l,t.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,B,A);E.ma(B.l,A.l);d.zb.Rd(this.Gb,this.Xb,F.x,F.y,
G.x,G.y,p,v,null,2);d.zb.dk(this.Gb,this.Xb,F.x,F.y,.5*p.l,v.l,z,C,2);H.ma(z.l,C.l);d.zb.Rd(this.Gb,this.Xb,E.x,E.y,H.x,H.y,l,null,null,2);if(l.l<=this.Rm)break;K*=.9;d.zb.dk(this.Gb,this.Xb,b.x,b.y,K*k,h,q,r,this.ke);g.ma(q.l,r.l);d.zb.Rd(this.Gb,this.Xb,b.x,b.y,g.x,g.y,null,null,I,this.ke);d.zb.Ph(this.Gb,this.Xb,g.x,g.y,a,I.l+1.570796326794897,D,x);G.ma(D.l,x.l)}a=K*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 f(){}f.ac=function(b,a){var c=new d.b;c.J(a);b.push(c)};f.$i=function(b,a){b.add(a.x);b.add(a.y)};f.cx=function(b){b.cf(b.size-2)};f.cy=function(b,a){a.ma(b.get(b.size-2),b.get(b.size-1))};f.oq=function(b,a,c,e,g,h){if(null==b)throw d.g.N();var l=b.D();if(b.s()||d.T.Km(l))return b;var k=new f;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=g;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=f.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};f.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(),g=new d.b,h=new d.b;c.kb();)for(;c.La();){var l=c.ia();g.J(l.Mb());h.J(l.oc());g.scale(b);h.scale(b);if(3.141592653589793<Math.abs(g.x-h.x)){var k=f.Gs(g,h);if(!k){e=!0;break}if(6.283185307179586<Math.abs(g.x-h.x)){e=!0;break}}}if(!e)return a;var e=a.Pa(),n=1<a.description.Aa,t=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 p=NaN,v=[0];c.La();){l=c.ia();g.J(l.Mb());h.J(l.oc());g.scale(b);h.scale(b);isNaN(p)?(f.Bd(g.x,NaN,v),q.J(g)):q.J(r);
p=q.x;if(k=f.Gs(g,h)){if(6.283185307179586<h.x-g.x)for(;6.283185307179586<h.x-g.x;)h.x-=6.283185307179586;if(-6.283185307179586>h.x-g.x)for(;-6.283185307179586>h.x-g.x;)h.x+=6.283185307179586;f.Bd(h.x,NaN,v);r.J(h)}else t.J(h),f.eK(t),f.Bd(t.x,p,v),r.ma(v[0]+t.x,t.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};f.kC=function(b,a,c,e,g,h,l,k,n,t,q,r){var m=new d.b,u=new d.b,p=0<e.compare(g);f.Ez(p,e,g,m,u);f.Jz(b,a,c,m,u,h,NaN,l,k,n,t,null,q,r);p&&f.gy(n,t,null,q)};f.prototype.hw=function(b){var a=b.Pa(),c=b.Ca(),e=[],g=null,h=null,l=1<b.description.Aa;l&&(g=new d.qd(0),h=new d.Ag);for(var k=[0],n=new d.b,t=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());t.J(m.oc());n.scale(this.Rb);t.scale(this.Rb);
var u=0<n.compare(t);f.Ez(u,n,t,q,r);e.length=0;null!=g&&g.cf(0);0<this.Bx?f.Jz(this.Gb,this.Xb,this.ke,q,r,this.Bx,this.Ax,this.hr,null,null,null,l?g:null,e,k):f.dH(this.Gb,this.Xb,this.ke,q,r,this.Ax,this.hr,l?g:null,e,k);u&&f.gy(null,null,l?g:null,e);e[0].J(m.Mb());e[e.length-1].J(m.oc());for(var p=1;p<e.length-1;p++)e[p].scale(1/this.Rb);l?(u=f.Cz(u,m,h),f.oz(c.wl(),c.Jm()&&!b.vc(c.Qa),m,u,g,e,a)):f.mz(c.wl(),c.Jm()&&!b.vc(c.Qa),e,a)}return a};f.prototype.wS=function(b){var a=b.Pa(),c=b.Ca(),
e=[],g=null,h=new d.Ag,l=1<b.description.Aa;for(l&&(g=new d.qd(0));c.kb();)for(;c.La();){var k=c.ia(),n=k.Mb(),t=k.oc(),n=0<n.compare(t),t=f.Cz(n,k,h);e.length=0;null!=g&&g.cf(0);f.FR(this.Gb,this.Xb,this.Rb,t,this.sg,this.Bx,this.Ax,l?g:null,e);n&&f.gy(null,null,l?g:null,e);l?f.oz(c.wl(),c.Jm()&&!b.vc(c.Qa),k,t,g,e,a):f.mz(c.wl(),c.Jm()&&!b.vc(c.Qa),e,a)}return a};f.mz=function(b,a,c,e){b&&e.Sw();b=e.ea()-1;var g=c.slice(0);e.dD(b,g,g.length-1);a&&e.kf(b,-1,c[c.length-1])};f.oz=function(b,a,c,e,
g,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 f=1;f<h.length-1;f++){var t=e.AD(g.get(f)*b);e.uu(t,k);k.ic(h[f]);l.lineTo(k)}}a&&(c.Bn(k),l.lineTo(k))};f.Jz=function(b,a,c,e,g,h,l,k,n,t,q,r,m,u){var w=new d.ca(0),v=new d.ca(0),p=new d.ca(0);d.zb.Rd(b,a,e.x,e.y,g.x,g.y,p,w,v,c);var p=p.l,x=w=w.l,v=v.l;0>x&&(x+=6.283185307179586);0>v&&(v+=6.283185307179586);null!=n&&(n[0]=p);null!=t&&(t[0]=x);null!=q&&(q[0]=v);t=n=NaN;null!=r&&(t=d.u.gg(b,a),q=d.u.q(b,a,e.y),n=(t-
q)/p,t=(t+q)/p);q=f.Hs(e,g);var v=f.Fs(e,g),x=q||v,B=f.wz(e,g,k),A=new d.ca(0),z=new d.ca(0),C=new d.b,F=new d.b,G=new d.b;f.Bd(e.x,NaN,u);var E=[u[0]];if(p<=h)f.ac(m,e),f.Bd(g.x,NaN,u),null!=r&&r.add(0),x?(q&&f.by(e,g,r,m),v&&f.Vx(e,g,r,m)):B?f.Xx(e,g,w,n,t,r,m):0<l&&(F.ma(e.x-E[0],e.y),C.ma(g.x-u[0],g.y),f.yv(b,a,c,e,p,w,F,C,0,1,l,r,m,E)),f.ac(m,g);else{h=1+d.I.truncate(Math.ceil(p/h));var H=p/(h-1),K=new d.b,I=0;f.ac(m,e);K.J(e);F.ma(e.x-u[0],e.y);null!=r&&r.add(0);for(var L=1;L<h;L++){var J;L<
h-1?(d.zb.dk(b,a,e.x,e.y,L*H,w,A,z,c),C.ma(A.l,z.l),f.Bd(C.x,K.x,u),G.ma(u[0]+C.x,C.y),J=L/(h-1)):(f.Bd(g.x,NaN,u),C.ma(g.x-u[0],g.y),G.J(g),J=1);x?(1==L&&q&&f.by(e,G,r,m),L==h-1&&v&&f.Vx(K,g,r,m)):B?f.uz(K,G,k)&&(e.x<g.x?K.x>G.x&&(u[0]+=6.283185307179586,G.ma(u[0]+C.x,C.y)):K.x<G.x&&(u[0]-=6.283185307179586,G.ma(u[0]+C.x,C.y)),f.Xx(K,G,w,n,t,r,m)):0<l&&f.yv(b,a,c,e,p,w,F,C,I,J,l,r,m,E);f.ac(m,G);null!=r&&r.add(J);K.J(G);F.J(C);E[0]=u[0];I=J}}};f.dH=function(b,a,c,e,g,h,l,k,n,t){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,g.x,g.y,m,q,r,c);var r=m.l,q=q.l,u=m=NaN;if(null!=k)var u=d.u.gg(b,a),p=d.u.q(b,a,e.y),m=(u-p)/r,u=(u+p)/r;var p=f.Hs(e,g),v=f.Fs(e,g),D=p||v;l=f.wz(e,g,l);var x=f.Gs(e,g),x=D||l||x;f.Bd(e.x,NaN,t);var B=new d.b;f.ac(n,e);B.J(e);null!=k&&k.add(0);x?(D?(p&&f.by(e,g,k,n),v&&f.Vx(e,g,k,n)):l&&f.Xx(e,g,q,m,u,k,n),f.Bd(g.x,NaN,t),f.ac(n,g)):r<=h?(f.Bd(g.x,NaN,t),f.ac(n,g)):(m=new d.b,l=new d.b,m.J(e),l.J(g),m.x-=t[0],l.x-=t[0],-3.141592653589793>l.x?l.x+=
6.283185307179586:3.141592653589793<l.x&&(l.x-=6.283185307179586),f.yv(b,a,c,e,r,q,m,l,0,1,h,k,n,t),f.ac(n,g),f.Bd(g.x,NaN,t));null!=k&&k.add(1)};f.yv=function(b,a,c,e,g,h,l,k,n,t,q,r,m,u){var w=new d.b,p=new d.b;w.ma(l.x+u[0],l.y);new d.ca(0);new d.ca(0);new d.ca(0);new d.ca(0);var D=new d.ca(0),x=new d.ca(0),B=new d.ca(0),A=new d.b,z=new d.b,C=new d.b,F=new d.b;A.J(l);z.J(k);l=new d.qd(0);k=new d.qd(0);f.$i(l,z);k.add(t);var G=new d.b,E=new d.yb,H=[];for(f.Kz(4,H);0<l.size;){for(var K=!1,I,L=NaN,
J=0;3>J;J++)if(I=H[J]*t+(1-H[J])*n,d.zb.dk(b,a,e.x,e.y,I*g,h,D,x,c),C.ma(D.l,x.l),0==J&&(L=I,F.J(C)),f.mR(A,C,z,E),E.Kb(E.Gd(C,!0),G),d.zb.Rd(b,a,C.x,C.y,G.x,G.y,B,null,null,2),B.l>q){K=!0;break}K?(z.J(F),t=L,f.$i(l,z),k.add(t)):(f.cx(l),k.oj(k.size-1,1,k.size-1),0<l.size&&(f.Bd(z.x,w.x,u),p.ma(u[0]+z.x,z.y),f.ac(m,p),w.J(p),null!=r&&r.add(t),A.J(z),n=t,f.cy(l,z),t=k.get(k.size-1)))}};f.FR=function(b,a,c,e,g,h,l,k,n){var t=new d.b,q=new d.b,r=new d.b,m=new d.b,u=new d.b,p=new d.b,v=new d.b,D=new d.b,
x=new d.b,B=new d.b,A=new d.ca(0),z=new d.ca(0),C=new d.b,F=[[],[]],G=1==d.Nf.Am(g);g=g.Ko();var E=e.Mb(),H=e.oc();G?(p.ma(E.x*c,E.y*c),v.ma(H.x*c,H.y*c)):(F[0][0]=E.x,F[0][1]=E.y,F[1][0]=H.x,F[1][1]=H.y,d.Ya.tu(),p.x=F[0][0]*c,p.y=F[0][1]*c,v.x=F[1][0]*c,v.y=F[1][1]*c);var K=0,I=0,L=1,J=e.mD();t.J(E);q.J(H);var H=new d.qd(0),M=new d.qd(0),R=new d.qd(0);f.$i(H,q);f.$i(M,v);R.add(L);f.ac(n,t);null!=k&&k.add(I);var N=[],Q;Q=0<l?J?5:3:J?5:1;f.Kz(Q,N);for(var U=new d.ca(0),X=new d.ca(0),Y=new d.ca(0),
V=new d.ca(0),aa=new d.ca(0),ba=new d.ca(0),ca=new d.ca(0);0<M.size;){var S=!1,Z,P=NaN;d.zb.Rd(b,a,p.x,p.y,v.x,v.y,U,X,null,2);for(E=0;E<Q;E++){if(0==E){if(!J&&0>=l&&U.l<=h&&3.141592653589793>Math.abs(p.x-v.x))break;if(e.rA(I,L)<=g)break}Z=N[E]*L+(1-N[E])*I;e.Kb(Z,r);G?D.ma(r.x*c,r.y*c):(F[0][0]=r.x,F[0][1]=r.y,d.Ya.tu(),D.x=F[0][0]*c,D.y=F[0][1]*c);if(0==E&&(P=Z,u.J(r),B.J(D),0<h&&(U.l>h||3.141592653589793<=Math.abs(p.x-v.x)))){S=!0;break}if(J&&0<h){if(d.zb.Rd(b,a,p.x,p.y,D.x,D.y,Y,null,null,2),
Y.l>h||3.141592653589793<=Math.abs(p.x-D.x)){S=!0;break}}else if(0<l)if(J?(m.OO(t,q,N[E]),G?x.ma(m.x*c,m.y*c):(F[0][0]=m.x,F[0][1]=m.y,d.Ya.tu(),x.x=F[0][0]*c,x.y=F[0][1]*c)):(m.J(r),x.J(D)),d.zb.Rd(b,a,p.x,p.y,x.x,x.y,V,null,null,2),V.l<=U.l){d.zb.dk(b,a,p.x,p.y,V.l,X.l,A,z,2);C.ma(A.l,z.l);d.zb.Rd(b,a,C.x,C.y,D.x,D.y,aa,null,null,2);if(aa.l>l){S=!0;break}if(J){d.zb.Rd(b,a,C.x,C.y,x.x,x.y,ba,null,null,2);if(ba.l>l){S=!0;break}d.zb.Rd(b,a,x.x,x.y,D.x,D.y,ca,null,null,2);if(ca.l>l){S=!0;break}}}else{S=
!0;break}}S?(q.J(u),v.J(B),L=P,f.$i(H,q),f.$i(M,v),R.add(L)):(f.cx(H),f.cx(M),R.oj(R.size-1,1,R.size-1),f.ac(n,q),K+=U.l,null!=k&&k.add(K),0<M.size&&(t.J(q),p.J(v),I=L,f.cy(H,q),f.cy(M,v),L=R.get(R.size-1)))}if(null!=k)for(b=1/K,E=0;E<k.size;E++)k.write(E,k.read(E)*b)};f.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)};f.Ez=function(b,a,c,e,g){b?(e.J(c),g.J(a)):(e.J(a),g.J(c))};f.Cz=function(b,a,c){if(!b)return a;
c.create(a.D());a.copyTo(c.get());c.get().reverse();return c.get()};f.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)};f.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))};f.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}};f.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};f.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};f.wz=function(b,a,c){return!f.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};f.uz=function(b,a,c){return Math.abs(Math.abs(b.x-a.x)-3.141592653589793)<=c?!0:!1};f.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};f.by=function(b,a,c,e){if(0<b.y){var g=
new d.b;g.ma(a.x,1.570796326794897)}else g=new d.b,g.ma(a.x,-1.570796326794897);d.j.S(b.x,g.x)||d.j.S(a.y,g.y)||(f.ac(e,g),null!=c&&c.add(0))};f.Vx=function(b,a,c,e){if(0<a.y){var g=new d.b;g.ma(b.x,1.570796326794897)}else g=new d.b,g.ma(b.x,-1.570796326794897);d.j.S(a.x,g.x)||d.j.S(b.y,g.y)||(f.ac(e,g),null!=c&&c.add(1))};f.Xx=function(b,a,c,e,g,h,l){d.j.Vc(c)?(0<1.570796326794897-b.y&&(c=new d.b,c.ma(b.x,1.570796326794897),f.ac(l,c),null!=h&&h.add(e)),0<1.570796326794897-a.y&&(c=new d.b,c.ma(a.x,
1.570796326794897),f.ac(l,c),null!=h&&h.add(e))):(0<1.570796326794897+b.y&&(c=new d.b,c.ma(b.x,-1.570796326794897),f.ac(l,c),null!=h&&h.add(g)),0<1.570796326794897+a.y&&(c=new d.b,c.ma(a.x,-1.570796326794897),f.ac(l,c),null!=h&&h.add(g)))};f.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 f}();d.ui=m})(p||(p={}));(function(d){var m=function(){function f(){}f.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,g=e.D();if(d.T.Kc(g)){e=d.gh.qo(b,a);b=new d.i;e.o(b);for(var g=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+g&&l<b.B-g&&(e=d.gh.Rw(e,a,c,l)),l+=h.aa()}else{if(197==g)return b=new d.Ka(e.description),b.Wc(e,!1),f.nl(b,a,c);if(d.T.Lc(g))return b=new d.Xa(e.description),b.Bc(e,!0),f.nl(b,a,c)}return f.VG(e,a)};f.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):f.SG(c,a,c!=b)};f.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),g=0-180*e,e=360*e;2==d.Nf.Am(a)&&(g=d.Ya.Fm(a),e=g.B,g=g.v,e-=g);return d.gh.gC(b,g,e,a,c)};return f}();d.Vn=m})(p||(p={}));(function(d){var m=function(){function f(){}f.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)};f.H=function(b){return 0>b?-b:b};f.nb=function(b,a){return 0<=a?f.H(b):-f.H(b)};f.S=function(b,a){return b==a||f.H(b-a)<=f.bF*(1+(f.H(b)+f.H(a))/2)};f.Vc=function(b){return 0==b||f.H(b)<=f.bF};f.bs=function(b){b=f.OH(b,f.fv);return f.H(b)<=f.$g?b:0>b?b+f.fv:b-f.fv};f.Yz=function(b,a){b.l=f.bs(b.l);a.l=f.bs(a.l);f.H(a.l)>f.Vr&&(b.l=f.bs(b.l+f.$g),a.l=f.nb(f.$g,a.l)-a.l)};f.gg=function(b,a){a=Math.sqrt(1-a);a=(1-a)/(1+a);var c=a*a;return b/(1+
a)*(1+c*(.25+c*(.015625+1/256*c)))*f.Vr};f.pN=function(b,a,c,e,g){var h,l,k,n,t,q,r,m=0,u=q=0,p=0,v=0,D=0;t=0;var x,B,A;r=0;var z,C,F;A=new d.ca;h=new d.ca;if(null!=g)if(A.l=b,h.l=a,f.Yz(A,h),b=A.l,a=h.l,A.l=c,h.l=e,f.Yz(A,h),c=A.l,e=h.l,c=f.bs(c-b),f.S(a,e)&&(f.Vc(c)||f.S(f.H(a),f.Vr)))null!=g&&(g.l=0);else{if(f.S(a,-e)){if(f.S(f.H(a),f.Vr)){null!=g&&(g.l=2*f.gg(6378137,.0066943799901413165));return}if(f.S(f.H(c),f.$g)){null!=g&&(g.l=2*f.gg(6378137,.0066943799901413165));return}}if(f.Vc(.0066943799901413165))v=
Math.cos(a),D=Math.cos(e),null!=g&&(m=Math.sin((e-a)/2),q=Math.sin(c/2),r=2*Math.asin(Math.sqrt(m*m+v*D*q*q)),g.l=6378137*r);else{A=1-Math.sqrt(.9933056200098587);b=1-A;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;C=0;F=1;z=c;for(B=!0;1==B;)C+=1,1==F&&(t=Math.sin(z),q=Math.cos(z),m=l*t,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=1E-15>f.H(m)?h*l*t/f.nb(1E-15,m):h*l*t/m,p=1-u*u,v=1E-15>f.H(p)?q-a*e/f.nb(1E-15,
p)*2:q-a*e/p*2,D=v*v,t=((-3*p+4)*A+4)*p*A/16),x=(1-t)*A*(r+t*m*(v+q*t*(2*D-1))),1==F?(z=c+x*u,1E-14>f.H(z-n)?B=!1:f.H(z)>f.$g?(F=2,z=f.$g,0>c&&(z=-z),u=0,p=1,k=n=2,r=f.$g-f.H(Math.atan(a/h)+Math.atan(e/l)),m=Math.sin(r),q=Math.cos(r),t=((-3*p+4)*A+4)*p*A/16,1E-14>f.H(u-k)?B=!1:(v=1E-15>f.H(p)?q-a*e/f.nb(1E-15,p)*2:q-a*e/p*2,D=v*v)):(0>(z-n)*(n-k)&&5<C&&(z=(2*z+3*n+k)/6),k=n,n=z)):(u=(z-c)/x,0>(u-n)*(n-k)&&5<C&&(u=(2*u+3*n+k)/6),k=n,n=u,p=1-u*u,t=u*m/(h*l),q=-Math.sqrt(f.H(1-t*t)),z=Math.atan2(t,q),
m=l*t,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=((-3*p+4)*A+4)*p*A/16,1E-14>f.H(u-k)?B=!1:(v=1E-15>f.H(p)?q-a*e/f.nb(1E-15,p)*2:q-a*e/p*2,D=v*v));null!=g&&(u=Math.sqrt(1+(1/(b*b)-1)*p),u=(u-1)/(u+1),p=u*(1-.375*u*u),g.l=(1+u*u/4)/(1-u)*b*6378137*(r-p*m*(v+p/4*(q*(-1+2*D)-p/6*v*(-3+4*m*m)*(-3+4*D)))))}}};f.$g=3.141592653589793;f.Vr=1.5707963267948966;f.fv=6.283185307179586;f.bF=3.552713678800501E-15;return f}();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 f(){}f.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};f.aT=function(b,a){var c=d.wi.local();b=new d.Pc(b);return c.$(b,a,null).next()};f.ll=function(b,a,c){return d.Zr.local().$(b,a,c,null)};f.On=function(b,a,c){return d.dv.local().$(b,a,c,null)};f.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};f.lc=function(b,a,c){return d.bl.local().$(3,b,a,c,null)};f.nM=function(b,a,c){return d.bl.local().$(4,b,a,c,null)};f.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};f.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};f.Ga=function(b,a,c){return d.$r.local().$(b,a,c,null)};f.jT=function(b,a,c){return d.bl.local().$(2,b,a,c,null)};f.contains=function(b,a,c){return d.bl.local().$(1,b,a,c,null)};f.VL=function(b,a,c){return d.bl.local().$(16,b,a,c,null)};f.touches=function(b,a,c){return d.bl.local().$(8,
b,a,c,null)};f.tQ=function(b,a,c){return d.bl.local().$(32,b,a,c,null)};f.RO=function(b,a,c){return d.bl.local().$(1073741824,b,a,c,null)};f.py=function(b,a,c,e){return d.fI.local().$(b,a,c,e,null)};f.Fb=function(b,a,c,e){var g=null;if(null!=c){if(g=c.Se(),null!=e&&g.Qc()!=e.Qc()&&g.Nc!=e.Nc)throw d.g.cj();}else if(null!=e)throw d.g.N();b=d.ZH.local().$(b,a,null);null!==g&&null!==e&&(b=d.Tb.ih(b,g,e));return b};f.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)};
f.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)};f.rK=function(b,a,c,e,g,h,l,k){if(!0===g)return f.VP(b,a,c,e,h,l,k);g=c;if(null!=a){if(l=a.Se(),null!=e&&l.Qc()!=e.Qc()){if(l.Nc!=e.Nc)throw d.g.cj();g=[];d.Tb.OB(c,c.length,e,l,g)}}else if(null!=e)throw d.g.N();c=d.Oz.local();if(h){b=new d.Pc(b);a=c.$(b,a,g,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,g[e],null);return h};f.VP=function(b,a,c,e,g,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(g){b=new d.Pc(b);a=e.$(b,a,h,c,l,!1,g,null);for(c=[];null!=(h=a.next());)c.push(h);g=c.slice(0)}else{g=[];for(var k=0;k<b.length;k++)g[k]=e.$(b[k],a,h,c[k],l,!1,null)}return g};f.buffer=function(b,a,c,e,g,h,l){var k=c;if(!1===g){if(null!=a){if(g=a.Se(),null!=e&&g.Qc()!=e.Qc()){if(g.Nc!=
e.Nc)throw d.g.cj();k=d.Tb.ih(c,e,g)}}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};f.sQ=function(b,a,c,e,g,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,g,h,null);for(c=
[];null!=(e=a.next());)c.push(e);return c.slice(0)};f.offset=function(b,a,c,e,g,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,g,h,null)};f.JL=function(b){return d.Qz.local().$(b,null)};f.KL=function(b,a){var c=d.Qz.local();b=new d.Pc(b);c=c.$(b,a,null);for(b=[];null!=(a=c.next());)b.push(a);return b};f.zw=function(b,a,c){return d.bv.local().zw(b,a,c)};f.Aw=function(b,a){return d.bv.local().Aw(b,
a)};f.Bw=function(b,a,c,e){return d.bv.local().Bw(b,a,c,e)};f.Qy=function(b,a){return d.as.local().$(b,a,!1,null)};f.cP=function(b,a){return d.as.local().Ro(b,a,null)};f.fN=function(b,a,c,e,g){var h=d.Sz.local();if(null!=a){if(a=a.Se(),null!=g&&a.Qc()!=g.Qc()){if(a.Nc!=g.Nc)throw d.g.cj();c=d.Tb.ih(c,g,a)}}else if(null!=g)throw d.g.N();return h.$(b,c,e,null)};f.oq=function(b,a,c,e){var g=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 g.$(b,c,null)};f.fw=function(b,a,c,e,g){void 0===g&&(g=0);var h=d.aI.local();if(4==g)throw d.g.qe();if(0!==g)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,g,null)};f.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=f.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};f.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};f.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};f.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 g=new d.b,h=new d.b;a.kb();)for(;a.La();){var l=a.ia();l.ht(g);l.uw(h);b+=d.b.Fb(g,h)}null!==e&&null!==c&&(b=d.Tb.ih(b,e,c));return b};f.YT=function(b,a){return d.Nf.mN(b,
a)};f.IL=function(b){return void 0!==b.points?f.kH(b,void 0===b.hasZ?!1:b.hasZ,void 0===b.hasM?!1:b.hasM):void 0!==b.rings?f.Nz(b.rings,void 0===b.hasZ?!1:b.hasZ,void 0===b.hasM?!1:b.hasM,"P"):void 0!==b.paths?f.Nz(b.paths,void 0===b.hasZ?!1:b.hasZ,void 0===b.hasM?!1:b.hasM,"L"):void 0!==b.x?f.uH(b):void 0!==b.xmin?f.hH(b):null};f.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};f.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};f.kH=function(b,a,c){var e=0,g=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),f=0;f<b.points.length;f++)h.write(2*f,b.points[f][0]),h.write(2*f+1,b.points[f][1]),k.write(f,
a||c?b.points[f][2]:NaN),l.write(f,c&&a?b.points[f][3]:NaN),e++;0!=e&&(g.resize(e),g.bm(0,h));a&&(g.Ne(1),g.bm(1,k));c&&(g.Ne(2),g.bm(2,0==a?k:l));g.ce(16777215);return g};f.Nz=function(b,a,c,e){var g,h=0,l=2;"P"==e?(g=new d.Ka,h=1,l=3):g=new d.Xa;for(var k=d.Ac.Dg(0),f=d.Ac.to(0),t=0,q=0,r=[],m=[],u=0;u<b.length;u++){var p=b[u].length;r[u]=!1;if("P"===e&&b[u][0][0]===b[u][b[u].length-1][0]&&b[u][0][1]===b[u][b[u].length-1][1]){var v=0==c?!0:b[u][0][3]===b[u][b[u].length-1][3]||void 0===b[u][0][3]&&
void 0===b[u][b[u].length-1][3];(0==a||b[u][0][2]===b[u][b[u].length-1][2]||void 0===b[u][0][2]&&void 0===b[u][b[u].length-1][2])&&v&&(r[u]=!0,--p)}p>=l?(m[u]=!1,q+=1,k.add(t),f.add(h),t+=p):m[u]=!0}e=3*t;0!=e%2&&e++;2>e&&(e=2);u=d.I.truncate(3*t/2);4>u?u=4:16>u&&(u=16);e=d.Ac.kl(e,0);h=d.Ac.kl(u);l=d.Ac.kl(u);for(u=p=0;u<b.length;u++)if(!1===m[u])for(v=0;v<b[u].length;v++){var D=!1;v===b[u].length-1&&!0===r[u]&&(D=!0);D||(e.write(2*p,b[u][v][0]),e.write(2*p+1,b[u][v][1]),h.write(p,a||c?b[u][v][2]:
NaN),l.write(p,c&&a?b[u][v][3]:NaN),p++)}0!=t&&(b=g,k.resize(q),f.resize(q),0<t&&(k.add(t),f.add(0)),b.bm(0,e),b.NF(f),b.OF(k));a&&(g.Ne(1),g.bm(1,h));c&&(g.Ne(2),g.bm(2,0==a?h:l));g.ce(16777215);return g};return f}();d.Pb=m})(p||(p={}));(function(d){var m=function(){function d(){}d.Zk=function(b){var a=0,c=0,e=b.length,g=b[c],d;for(c;c<e-1;c++)d=b[c+1],a+=(d[0]-g[0])*(d[1]+g[1]),g=d;return 0<=a};d.rotate=function(b,a,c){a=a*Math.PI/180;var e=Math.cos(a),g=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=[],f=0;f<l.length;f++){var t=l[f].slice(0);k.push(t);var q=e*(l[f][0]-c.x)-g*(l[f][1]-c.y)+c.x,r=g*(l[f][0]-c.x)+e*(l[f][1]-c.y)+c.y;t[0]=q;t[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),f=0;f<l.length;f++)t=l[f].slice(0),k.push(t),q=e*(l[f][0]-c.x)-g*(l[f][1]-c.y)+c.x,r=g*(l[f][0]-c.x)+e*(l[f][1]-c.y)+c.y,t[0]=q,t[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)-g*(b.y-c.y)+c.x,y:g*(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(f=0;f<b.length;f++)h=b[f].slice(0),h[0]=e*(b[f][0]-c.x)-g*(b[f][1]-c.y)+c.x,h[1]=g*(b[f][0]-c.x)+e*(b[f][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 g=0;g<b.paths.length;g++){for(var h=b.paths[g],l=[],k=0;k<h.length;k++){var f=h[k].slice(0);l.push(f);
e=a.x-h[k][0];f[0]=h[k][0]+2*e}c.paths.push(l)}return c}if(void 0!==b.rings){c={rings:[]};for(g=0;g<b.rings.length;g++){for(var h=b.rings[g],t=d.Zk(h),l=[],k=0;k<h.length;k++)f=h[k].slice(0),l.push(f),e=a.x-h[k][0],f[0]=h[k][0]+2*e;d.Zk(l)!==t&&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:[]};g=b.points;for(k=0;k<g.length;k++)h=g[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 g=0;g<b.paths.length;g++){for(var h=b.paths[g],l=[],k=0;k<h.length;k++){var f=h[k].slice(0);l.push(f);e=a.y-h[k][1];f[1]=h[k][1]+2*e}c.paths.push(l)}return c}if(void 0!==b.rings){c={rings:[]};for(g=
0;g<b.rings.length;g++){for(var h=b.rings[g],t=d.Zk(h),l=[],k=0;k<h.length;k++)f=h[k].slice(0),l.push(f),e=a.y-h[k][1],f[1]=h[k][1]+2*e;d.Zk(l)!==t&&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:[]};g=b.points;for(k=0;k<g.length;k++)h=g[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 f(){}f.jg=function(b,a){null==a&&(a=d.Od.Tf());switch(b){case 33:return new d.Va(a);case 322:return new d.yb(a);case 197:return new d.Vj(a);case 550:return new d.pe(a);case 1607:return new d.Xa(a);case 1736:return new d.Ka(a);default:throw d.g.ra("invalid argument.");}};return f}();
d.sH=m})(p||(p={}));(function(d){var m=function(){function f(b,a){this.De=d.ga.Yc(b,-1);this.oa=new d.Ur;this.tk=a}f.prototype.wR=function(b){this.oa.Dr(Math.min(this.De.size,b));this.oa.$l(b)};f.prototype.addElement=function(b,a){if(void 0===a)return this.JJ(b);a=d.I.truncate(a%this.De.size);var c=this.De.get(a);-1==c&&(c=this.oa.jh(),this.De.set(a,c));return this.oa.addElement(c,b)};f.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)};f.prototype.Jc=function(b,a){if(void 0===a)this.dM(b);else{a=d.I.truncate(a%this.De.size);var c=this.De.get(a);if(-1==c)throw d.g.N();for(var e=this.oa.gc(c),g=-1;-1!=e;){var h=this.oa.bb(e);this.oa.da(e)==b?(this.oa.Jc(c,g,e),-1==this.oa.gc(c)&&(this.oa.Fg(c),this.De.set(a,-1))):g=e;e=h}}};f.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),g=-1;-1!=e;){var h=
this.oa.bb(e);this.oa.da(e)==b?(this.oa.Jc(c,g,e),-1==this.oa.gc(c)&&(this.oa.Fg(c),this.De.set(a,-1))):g=e;e=h}};f.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)};f.prototype.SN=function(b){return this.oa.bb(b)};f.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),g=-1;-1!=e;){if(e==b){this.oa.Jc(c,g,e);-1==this.oa.gc(c)&&(this.oa.Fg(c),this.De.set(a,
-1));return}g=e;e=this.oa.bb(e)}throw d.g.N();};f.prototype.da=function(b){return this.oa.da(b)};f.prototype.clear=function(){this.De=d.ga.Yc(this.De.size,-1);this.oa.clear()};f.prototype.size=function(){return this.oa.HC()};return f}();d.AH=m})(p||(p={}));(function(d){var m=function(){function f(){this.ci=new d.Fc(3);this.oa=new d.Fc(6);this.AP=!1;this.Wd=-1}f.prototype.bk=function(b){this.ci.Jc(b)};f.prototype.ou=function(){return this.ci.be()};f.prototype.Rs=function(b){this.oa.Jc(b)};f.prototype.Yx=
function(){return this.oa.be()};f.prototype.Jy=function(b,a){this.ci.L(b,1,a)};f.prototype.Gu=function(b,a){this.ci.L(b,2,a)};f.prototype.aS=function(b,a){this.ci.L(b,3,a)};f.prototype.Hy=function(b,a){this.oa.L(b,4,a)};f.prototype.dS=function(b,a){this.oa.L(b,3,a)};f.prototype.RF=function(b,a){this.oa.L(b,2,a)};f.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};f.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};f.prototype.Dr=function(b){this.oa.de(b)};f.prototype.DC=function(b){return this.oa.O(b,5)};f.prototype.$R=function(b,a){this.oa.L(b,5,a)};f.prototype.addElement=function(b,a){return this.AO(b,a)};f.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};f.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};f.prototype.$l=function(b){this.ci.de(b)};f.prototype.getData=function(b){return this.ci.O(b,0)};f.prototype.setData=function(b,a){this.ci.L(b,0,a)};f.prototype.bb=function(b){return this.ci.O(b,2)};f.prototype.ge=function(b){return this.ci.O(b,1)};f.prototype.gc=function(b){return this.oa.O(b,
0)};f.prototype.tc=function(b){return this.oa.O(b,1)};f.prototype.clear=function(){for(var b=this.Wd;-1!=b;)b=this.Fg(b)};f.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)};f.prototype.s=function(){return 0==this.ci.size};f.prototype.HC=function(){return this.ci.size};f.prototype.vq=function(b){return this.oa.O(b,4)};f.prototype.Cw=function(b){return this.oa.O(b,3)};return f}();d.$n=m})(p||(p={}));(function(d){var m=
function(){function f(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)}f.prototype.bk=function(b){this.bg.Jc(b)};f.prototype.ou=function(){return this.bg.be()};f.prototype.Rs=function(b){this.oa.Jc(b)};f.prototype.Yx=function(){return this.oa.be()};f.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};f.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)};f.prototype.Dr=function(b){this.oa.de(b)};f.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};f.prototype.$l=function(b){this.bg.de(b)};f.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)};f.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)};f.prototype.da=function(b){return this.bg.O(b,0)};f.prototype.Vi=function(b,a){this.bg.L(b,0,a)};f.prototype.bb=function(b){return this.bg.O(b,1)};f.prototype.gc=
function(b){return this.oa.O(b,0)};f.prototype.Dm=function(b){return this.da(this.gc(b))};f.prototype.clear=function(){this.bg.Nh(!0);this.oa.Nh(!0);this.Wd=-1};f.prototype.s=function(b){return void 0===b?0==this.bg.size:-1==this.oa.O(b,0)};f.prototype.HC=function(){return this.bg.size};f.prototype.Cw=function(b){return this.oa.O(b,3)};return f}();d.Ur=m})(p||(p={}));(function(d){var m=function(){function f(){}f.kz=function(b,a,c,e,g,h,l){var k=new d.b;k.J(b);b=new d.b;b.J(a);g.vv(k);g.vv(b);a=g.ms(k);
var n=g.ms(b);0==n&&(n=g.CC());if(k.x!=b.x&&(k.y!=b.y||k.y!=g.C&&k.y!=g.G)||n>a!=h){a=g.vA(k);var n=g.vA(b),t,q=h?1:3;do a=a+q&3,t=g.vu(a),0!=l&&(e=f.kz(k,t,c,e,g,h,l)),c[e++].ma(t.x,t.y),k=t;while((a&3)!=n);0!=l&&(e=f.kz(k,b,c,e,g,h,l))}else if(g=new d.b,g.ma(b.x-k.x,b.y-k.y),0!=l&&(l=d.I.truncate(g.yJ()/l),0<l))for(g.scale(1/(l+1)),h=0;h<l;h++)k.add(g),c[e++].ma(k.x,k.y);return e};f.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)};f.As=function(b){return 2*
Math.sqrt(2)*b};f.UJ=function(b){return Math.sqrt(2)*b};f.Cg=function(b,a,c){var e=new d.i;a.o(e);return f.zd(b,e,c)};f.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)};f.$T=function(b,a){var c=new d.i;b.dd(c);c.Db(a);return c};f.$s=function(b,a){var c=new d.i;b.dd(c);b=new d.i;a.dd(b);c.Db(b);return c};f.fU=function(b,a){var c=b.HN(a),e=b.Ea(a),g=b.Dc(a),h=b.Fa(c);c==e?(g=b.Fa(g-1),c=b.Fa(e+1)):c==g-1?(g=b.Fa(c-1),c=b.Fa(e)):(g=b.Fa(c-1),c=b.Fa(c+1));
h=d.b.yn(g,h,c);return 0==h?0<b.oo(a):-1==h};f.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,g=new d.i,h=!1;do for(var l=0,k=b.ea();l<k;l++)if(b.Ti(l,g),e=c.kt(l,g,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};f.nB=function(b){var a=new d.i;b.dd(a);for(var c=new d.co(a,8),e=-1,g=b.Ca(),h=new d.i,l=!1;g.kb();)for(;g.La();){var k=g.ia(),f=g.Jb();k.o(h);e=c.kt(f,h,e);if(-1==e){if(l)throw d.g.wa();b.tm(a,
!1);l=!0;c.reset(a,8);g.Lk();break}}return c};f.ij=function(b,a){var c=new d.i;b.dd(c);for(var e=new d.co(c,8),g=-1,h=new d.i,l=b.Ca(),k=!1;l.kb();)for(;l.La();){var f=l.ia(),t=l.Jb();f.o(h);if(h.jc(a)&&(g=e.kt(t,h,g),-1==g)){if(k)throw d.g.ra("internal error.");b.tm(c,!1);k=!0;e.reset(c,8);l.Lk();break}}return e};f.DT=function(b){var a=new d.i;b.dd(a);for(var c=new d.co(a,8),e=new d.b,g=new d.i,h=!1,l=0;l<b.F();l++)if(b.w(l,e),g.K(e),-1==c.lg(l,g)){if(h)throw d.g.wa();b.tm(a,!1);h=!0;c.reset(a,8);
l=-1}return c};f.oB=function(b,a){for(var c=new d.co(a,8),e=new d.b,g=!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(g)throw d.g.wa();g=!0;l=new d.i;b.tm(l,!1);c.reset(l,8);l=-1}return c};f.AN=function(b,a,c){var e=new d.i,g=new d.i;b.dd(e);a.dd(g);e.P(c,c);g.P(c,c);var h=new d.i;h.K(e);h.Ga(g);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(g),g.jc(h)&&(e=!0,c=new d.i,c.K(g),l.LA(a.Jb(),c));l.ZB();return e?l:null};f.BN=function(b,a,c,e,g){var h=b.D(),l=a.D(),k=new d.i,f=new d.i;b.dd(k);a.dd(f);k.P(c,c);f.P(c,c);var t=new d.i;t.K(k);t.Ga(f);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(t)&&(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(!g||1736!=l||a.qt(e))a.Ti(e,f),f.jc(t)&&(b=!0,q.LA(e,f));q.ZB();
return b?q:null};f.hU=function(b,a){return 0<b.rj(a)};f.zT=function(b,a){var c=new d.i;b.hR(a,c);var c=new d.co(c,8),e=-1,g=new d.i;b=b.Ca();b.vy(a);if(b.kb())for(;b.La();){a=b.ia();var h=b.Jb();a.dd(g);e=c.kt(h,g,e);if(-1==e)throw d.g.ra("internal error");}return c};return f}();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 g=this.Na.uj(a);return e<g?-1:e==g?c.Po(b)&&c.st(a)?-1:c.Po(a)&&c.st(b)?1:0:1};return a}(),
f=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 g=new a;g.Na=b;g.ug.xb(20);g.Ch(c,e);return g};a.KT=function(b,c,e){var g=new a;g.Na=b;g.ug.xb(20);g.Fn(c,e);return g};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),g=this.Di(e),f=this.sj(e),b=0;!(0<a||e==this.Ze||-1!=g&&-1!=f);)e==this.Di(c)?-1!=g?(this.Sj(c,g),this.Xi(g,c),this.Sj(e,-1)):-1!=f?(this.Sj(c,f),this.Xi(f,c),this.Uj(e,-1)):this.Sj(c,-1):-1!=g?(this.Uj(c,g),this.Xi(g,c),this.Sj(e,-1)):-1!=f?(this.Uj(c,f),this.Xi(f,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,g=this.Di(e),f=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),g=this.uj(e);g!=b&&(this.rh.add(e),b=g)}};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),f=c.get(e>>1);-1!=f?this.TF(f,this.ki.addElement(this.Hw(f),e)):(f=this.cD(e,this.Ze),c.set(e>>1,f))}};b.prototype.cD=function(a,b){var c=b,e=b,g,h=-1,f=0,r=this.rh.size-1,m=0,u=a>>1,p=NaN,v=NaN;g=!0;for(var D=this.RN(u),u=this.ON(u);g;){f<r?(m=f+d.I.truncate((r-f)/2),-1==this.rw(c)&&this.CF(c,this.rh.get(m),this.rh.get(m+1))):-1==this.rw(c)&&this.CF(c,this.rh.get(f),this.rh.get(f));var x=this.Co(c);if(u<x)-1!=b&&(b==c?(e=c,p=x,b=this.Di(c),-1!=b?v=this.Co(b):
v=NaN):v>x&&(x<p?this.Sj(e,c):this.Uj(e,c),this.Uj(c,b),this.Df&&(this.Xi(c,e),this.Xi(b,c)),e=c,p=x,b=-1,v=NaN)),r=this.MN(c),-1==r&&(r=this.Ms(),this.YR(c,r)),c=r,r=m;else if(D>x)-1!=b&&(b==c?(e=c,p=x,b=this.sj(c),-1!=b?v=this.Co(b):v=NaN):v<x&&(x<p?this.Sj(e,c):this.Uj(e,c),this.Sj(c,b),this.Df&&(this.Xi(c,e),this.Xi(b,c)),e=c,p=x,b=-1,v=NaN)),f=this.fO(c),-1==f&&(f=this.Ms(),this.iS(c,f)),c=f,f=m+1;else{g=this.tj(c);-1==g&&(g=this.TL(c),this.WF(c,g));var B=this.KJ(g,a),h=this.SL();this.lS(h,g);
this.XR(h,B);c!=b&&(x<p?this.Sj(e,c):this.Uj(e,c),this.Df&&this.Xi(c,e),-1!=b&&(v<x?this.Sj(c,b):this.Uj(c,b),this.Df&&this.Xi(b,c)));g=!1}}return h};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 f(this);this.Al.sort(a,0,b,c)};b.prototype.yS=function(a,c,e){var d=this;a.xd(c,
e,function(a,c){var e=d.uj(a),g=d.uj(c);return e<g||e==g&&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(f){function b(a,b,e,g){f.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,g))}L(b,f);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 g=this.description.Hd(b),h=d.pa.Wa(g);b<h;b++){var l=this.Ah(g,0);a.setInterval(g,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),f=d.pa.Wa(l),n=0;n<f;n++){var t=this.ld(a,l,n);e.My(l,n,t);t=this.ld(b,l,n);e.Cy(l,n,t)}};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,d=this.ha-this.ja,h=c*c+d*d;if(0==h)return.5;c=((a.x-this.na)*c+(a.y-this.ja)*d)/h;b||(0>c?c=0:1<c&&(c=1));return c};b.prototype.nt=function(a,b,e,d){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!=d&&(d[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;c=(a-this.ja)/c;a=this.sC(c);1==c&&(a=this.la);return a};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){a=d.b.Oa(a,b);a.sub(this.Mb());b=new d.b;b.pc(this.oc(),this.Mb());var c=b.Ai(a);a=8.881784197001252E-16*(Math.abs(b.x*a.y)+Math.abs(b.y*a.x));return c>a?-1:c<-a?1:0};b.prototype.ho=function(a,b,e,g){var c=this.na,l=this.ja,f=a-c,n=b-l,f=Math.sqrt(f*f+n*n);if(f<=Math.max(e,6.661338147750939E-16*f))return g&&0==f?NaN:0;f=a-this.la;n=b-this.ha;f=Math.sqrt(f*f+n*n);if(f<=Math.max(e,6.661338147750939E-16*f))return g&&0==f?NaN:1;f=
this.la-this.na;n=this.ha-this.ja;g=Math.sqrt(f*f+n*n);if(0<g){var t=1/g,f=f*t,n=n*t,q=a-c,r=b-l,m=q*f+r*n,u=1.7763568394002505E-15*(Math.abs(q*f)+Math.abs(r*n)),p=f,f=-n,n=p,u=Math.max(e,u);if(m<-u||m>g+u)return NaN;if(Math.abs(q*f+r*n)<=Math.max(e,1.7763568394002505E-15*(Math.abs(q*f)+Math.abs(r*n)))&&(f=d.I.Kr(m*t,0,1),.5>=f?(n=this.na+(this.la-this.na)*f,g=this.ja+(this.ha-this.ja)*f):(n=this.la-(this.la-this.na)*(1-f),g=this.ha-(this.ha-this.ja)*(1-f)),d.b.Yv(n,g,a,b)<=e)){if(.5>f){if(d.b.Yv(n,
g,c,l)<=e)return 0}else if(d.b.Yv(n,g,this.la,this.ha)<=e)return 1;return f}}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),d=a.rs(b.la,b.ha);if(0>c&&0>d||0<c&&0<d)return!1;c=b.rs(a.na,a.ja);d=b.rs(a.la,a.ha);if(0>c&&0>d||0<c&&0<d)return!1;c=a.$b();d=b.$b();return c>d?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,f=b.la-b.na,n=b.ha-b.ja,t=f*l-h*n;if(0==t)return c;var q=8.881784197001252E-16*(Math.abs(f*l)+Math.abs(h*n)),r=b.na-a.na,m=b.ja-a.ja,u=f*m-r*n,p=u/t,v=Math.abs(t),f=(8.881784197001252E-16*
(Math.abs(f*m)+Math.abs(r*n))*v+q*Math.abs(u))/(t*t)+2.220446049250313E-16*Math.abs(p);if(p<-f||p>1+f)return c;n=h*m-r*l;f=n/t;h=(8.881784197001252E-16*(Math.abs(h*m)+Math.abs(r*l))*v+q*Math.abs(n))/(t*t)+2.220446049250313E-16*Math.abs(f);if(f<-h||f>1+h)return c;p=d.I.Kr(p,0,1);h=d.I.Kr(f,0,1);l=a.Kb(p);t=b.Kb(h);q=new d.b;q.pc(l,t);if(q.length()>e&&(q.add(l,t),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,d){var g=
0;if(a.na==c.na&&a.ja==c.ja||a.na==c.la&&a.ja==c.ha)if(g++,!d)return 1;if(a.la==c.na&&a.ha==c.ja||a.la==c.la&&a.ha==c.ha){g++;if(2==g)return 2;if(!d)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:d&&0!=g?0:0==b.ye(a,c)?0:1};b.ov=function(a,c,e,g,h,l){var f=0,n=a.ho(c.na,c.ja,l,!1),t=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!=g&&(g[f]=n),null!=h&&(h[f]=0),null!=e&&(e[f]=d.b.Oa(c.na,c.ja)),f++);isNaN(t)||(null!=g&&
(g[f]=t),null!=h&&(h[f]=1),null!=e&&(e[f]=d.b.Oa(c.la,c.ha)),f++);2==f||isNaN(q)||0==n&&0==q||0==t&&1==q||(null!=g&&(g[f]=0),null!=h&&(h[f]=q),null!=e&&(e[f]=d.b.Oa(a.na,a.ja)),f++);2==f||isNaN(r)||1==n&&0==r||1==t&&1==r||(null!=g&&(g[f]=1),null!=h&&(h[f]=r),null!=e&&(e[f]=d.b.Oa(c.la,c.ha)),f++);if(0<f)return 2==f&&null!=g&&g[0]>g[1]&&(a=g[0],g[0]=g[1],g[1]=a,null!=h&&(g=h[0],h[0]=h[1],h[1]=g),null!=e&&(h=d.b.Oa(e[0].x,e[0].y),e[0]=e[1],e[1]=h)),f;f=b.Id(a,c,l);if(isNaN(f.x))return 0;null!=e&&(e[0]=
a.Kb(f.x));null!=g&&(g[0]=f.x);null!=h&&(h[0]=f.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(f){function b(a,b){f.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,f);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,g=new d.Va(this.description),
h=0;4>h;h++)a.uf(b?4-h-1:h,g),0==h?this.df(g):this.lineTo(g);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,g,h){h||0!=this.ea()||(h=!0);0>b&&(b=a.ea()-1);if(b>=a.ea()||0>e||0>g||g>a.ct(b))throw d.g.ra("index out of bounds");if(0!=g){var c=a.vc(b)&&e+g==a.ct(b);if(!c||1!=g){this.ng=!1;this.Ik(a.description);e=a.Ea(b)+
e+1;h&&(g++,e--);c&&g--;c=this.ta;this.jo(this.ta+g);this.kc();if(h){if(0==g)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 f=this.description.Aa;h<f;h++){var n=this.description.Hd(h),t=d.pa.Wa(n),q=a.description.zf(n);0>q||null==a.Ba[q]?this.Ba[h].ul(t*c,d.pa.ue(n),g*t,t*c):this.Ba[h].nk(t*c,a.Ba[q],t*e,g*t,!0,t,t*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),g=this.Ha(a),h=0,l=this.description.Aa;h<l;h++)if(null!=this.Ba[h]){var f=d.pa.Wa(this.description.Fd(h));this.Ba[h].oj(f*e,f*g,f*this.ta)}for(e=a+1;e<=b;e++)h=this.jb.read(e),this.jb.write(e-1,h-g);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-=g;this.rg-=g;this.ce(1993)};b.prototype.Cf=function(a,b,e,g){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),f=b.Ha(e),n=this.ta,t=b.vc(e)&&!g?1:0;this.jo(this.ta+f);this.kc();for(var q=a<c?this.Ea(a):n,r=0,m=this.description.Aa;r<m;r++){var u=this.description.Fd(r),p=b.description.zf(u),v=d.pa.Wa(u);0<=p&&null!=b.Ba[p]?(0!=t&&this.Ba[r].nk(q*v,b.Ba[p],v*l,v,!0,v,v*n),this.Ba[r].nk((q+t)*v,b.Ba[p],v*(l+t),v*(f-t),g,v,v*(n+t))):this.Ba[r].ul(q*v,d.pa.ue(u),v*
f,v*n)}this.jb.add(n+f);for(g=c;g>=a+1;g--)l=this.jb.read(g-1),this.jb.write(g,l+f);b.yq(e);this.qb.add(0);for(g=c-1;g>=a+1;g--)c=this.qb.read(g),c&=-5,this.qb.write(g+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 g=this.jb.read(e-1);this.jb.write(e,g+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,f=this.description.Aa;l<f;l++){var n=this.description.Fd(l),t=d.pa.Wa(n);this.Ba[l].km(t*(this.Ea(a)+c+e),(h-this.Ea(a)-c)*t,this.Ba[l],t*(this.Ea(a)+c),!0,t);0==l?this.Ba[l].$p(t*
(this.Ea(a)+c),e,b,0,!0):this.Ba[l].dh(d.pa.ue(n),(this.Ea(a)+c)*t,e*t)}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 f=this.description.Aa;e<f;e++){var n=this.description.Fd(e),t=d.pa.Wa(n);this.Ba[e].ul(t*(l+b),d.pa.ue(n),t,t*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 g=this.Ea(a);0>b&&(b=this.Ha(a)-1);g+=b;b=0;
for(var h=this.description.Aa;b<h;b++)if(null!=this.Ba[b]){var l=d.pa.Wa(this.description.Fd(b));this.Ba[b].oj(l*g,l,l*this.ta)}for(;c>=a+1;c--)g=this.jb.read(c),this.jb.write(c,g-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],g=new d.b,h=new d.b,l,f,n;for(0>b?(l=this.Hm(),f=0,n=this.ta):(l=this.yq(b),f=this.Ea(b),n=this.Dc(b));f<n;f++){g.x=c.read(2*f);g.y=c.read(2*f+1);if(l&&(b=this.li.read(f),0<=b))switch(this.Fe.read(f)&7){case 2:h.x=this.td.read(b);h.y=this.td.read(b+1);a.Zi(h,h);this.td.write(b,h.x);this.td.write(b+1,h.y);h.x=this.td.read(b+3);h.y=this.td.read(b+4);a.Zi(h,h);this.td.write(b+3,h.x);this.td.write(b+4,h.y);break;case 4:throw d.g.wa();}a.Zi(g,g);c.write(2*f,g.x);c.write(2*f+1,g.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],g=new d.ee,h=new d.ee,l=this.Hm(),f=0;f<this.ta;f++){g.x=b.read(2*f);g.y=b.read(2*f+1);g.z=e.read(f);if(l){var n=this.li.read(f);if(0<=n)switch(this.Fe.read(f)&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();}}g=a.Qn(g);b.write(2*f,g.x);b.write(2*f+1,g.y);e.write(f,g.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&&f.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:f.prototype.lc.call(this,a)};b.prototype.Ca=function(){return new d.GI(this)};b.prototype.wv=function(a){f.prototype.wv.call(this,a);if(this.Hm())for(a=this.Ca();a.kb();)for(;a.La();)break};b.prototype.tm=function(a,b){f.prototype.tm.call(this,a,b);if(this.Hm())for(a=this.Ca();a.kb();)for(;a.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,g=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=g++;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 g=this.Uh.read(e);0==e&&(b=0<g?1:-1);0<g*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 g=b+(e-b>>1),h=this.Ea(g);if(a<h)e=g-1;else if(b=this.Dc(g),a>=b)b=g+1;else return this.Qa=g}return this.Qa=b};b.prototype.HN=function(a){var b=this.mc(0);this.WN();var e=this.Dc(a),g=this.Ea(a);a=-1;var h=new d.b,l=new d.b;h.y=-Infinity;h.x=-Infinity;for(g+=0;g<e;g++)b.ec(2*g,l),-1==h.compare(l)&&(a=g,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);b=d.dA.jR(b);var c=this.pb.hi;if(null!=c)if(c.Sx<a||b>c.cO())this.pb.uv(null);else return!0;c=d.dA.create(this,a,b);this.pb.uv(c);return!0};b.prototype.hc=function(){var a=f.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),f=d.pa.Wa(l),n=0;n<f;n++){var t=this.ld(l,a,n);b.My(l,n,t);t=this.ld(l,c,n);b.Cy(l,n,t)}};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),g=new d.b,h=new d.i;h.Ja();var l=this.Ea(a);for(a=this.Dc(a);l<a;l++)c.ec(2*l,g),h.Db(g);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),g=new d.b,h=new d.i;h.Ja();var l=this.Ea(a);for(a=this.Dc(a);l<a;l++)c.ec(2*l,g),h.Db(g);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(f){function b(a){f.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,f);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 f=a.description.Fd(h),n=d.pa.Wa(f),t=this.mc(f),f=a.mc(f);t.nk(c*n,f,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 g=d.pa.Wa(this.description.Fd(b));this.Ba[b].oj(g*
a,g,g*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(){f.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,g=0;g<this.ta;g++)e.x=b.read(2*g),e.y=b.read(2*g+1),a.Zi(e,e),b.write(2*g,e.x),b.write(2*g+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,g=0;g<this.ta;g++){h.x=
b.read(2*g);h.y=b.read(2*g+1);h.z=e.read(g);var l=a.Qn(h);b.write(2*g,l.x);b.write(2*g+1,l.y);e.write(g,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?f.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 g=this.mc(0),h=c-b,
l=[];g.Hp(2*b,2*h,l,0,!0);for(g=0;g<h;g++)a[g]=d.b.Oa(l[2*g],l[2*g+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 f(){}
f.WT=function(b){if(!1===b)throw d.g.PG();};f.bG=function(b){return isNaN(b)?NaN:0===b?b:0<b?1:-1};f.Lh=function(b,a){void 0===a&&(a=0);for(var c=[],e=0;e<b;e++)c[e]=a;return c};f.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};f.Kr=function(b,a,c){return b<a?a:b>c?c:b};f.mU=function(){return 4};f.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};
f.Rh=function(){throw Error("Not Implemented");};f.iU=function(){return-Infinity};f.kU=function(){return Infinity};f.bU=function(){return 2147483647};f.QT=function(){return 2.220446049250313E-16};f.ST=function(){return 1.7976931348623157E308};f.$x=function(b){return f.JH(b)+12345&2147483647};f.FD=function(b){var a=32,c=b%f.gv|0,e=b/f.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*f.gv+(b>>>0)};f.JH=function(b){b|=0;return(1103495168*b|0)+(20077*b|0)|0};
f.truncate=function(b){return 0>b?-1*Math.floor(Math.abs(b)):Math.floor(b)};f.aH=Math.pow(2,53)-1;f.UT=-f.aH;f.pF=65536;f.zU=16777216;f.gv=f.pF*f.pF;return f}();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 f(){}f.prototype.D=function(){return null};f.NT=function(b){d.T.Th(b.D())&&(b=b.pb,null!=b&&(b.uv(null),b.GA(null)))};return f}();d.Me=m})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,
arguments)}L(b,f);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,g,h){return a instanceof d.T?(h=new d.Pc(a),this.$(h,b,[e],!1,g).next()):!0===g?(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 f(b,a,c,e,g){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=g}f.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};f.prototype.ya=function(){return this.ua};f.prototype.buffer=function(b,a){return d.UG.buffer(b,a,this.fx,NaN,96,this.Yb)};return f}();d.Pz=m})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}L(b,f);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,g){return a instanceof
d.T?(a=new d.Pc(a),this.$(a,b,e,g).next()):new d.TH(a,b,e,g)};b.V=null;return b}(d.Me);d.SH=m})(p||(p={}));(function(d){var m=function(){function f(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)}f.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};f.prototype.ya=function(){return this.ua};return f}();d.TH=m})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}
L(b,f);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 f(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}f.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(),f.qB(b);this.Ec=!0}return null};f.prototype.ya=function(){return this.ua};f.prototype.GK=function(b){for(var a;null!=(a=b.next());)this.cE.Eb(a);return this.cE.sN()};f.qB=function(b){if(f.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)};f.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 f}();d.Rz=m})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}L(b,f);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,g,h){return new d.VH(a,b,e,g,h)};b.V=null;return b}(d.Me);d.UH=m})(p||(p={}));(function(d){var m=function(){function f(b,a,c,e,g){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=g}f.prototype.ya=function(){return 0};f.prototype.next=function(){this.gN();return++this.QD<this.Ef.length?this.Ef[this.QD]:null};f.prototype.gN=function(){if(null==this.Ef)switch(this.Ef=[],this.rx.D()){case 1607:this.iN();break;case 1736:this.hN()}};f.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 g=0;g<e.length;g++){var h=e[g];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)};f.prototype.hN=function(){var b=new d.ga(0),a=new d.fd,c=a.RB(),e=a.Eb(this.rx),g=a.Eb(this.RD),h=new d.Of;try{h.Np(a,this.ka,this.oe);h.xm(c,e,g,b);var l=a.hf(e),f=new d.Ka,n=new d.Ka;this.Ef.length=0;this.Ef.push(f);this.Ef.push(n);
for(e=0;e<b.size;e++){var t,q=new d.fd,r=q.Eb(l),m=q.Eb(a.hf(b.get(e)));h.Mp(q,this.oe);var u=h.mt(r,m);t=q.hf(u);if(!t.s()){var p=a.yC(b.get(e),c);2==p?f.add(t,!1):1==p?n.add(t,!1):this.Ef.push(t);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);f.s()&&n.s()&&(this.Ef.length=0)}finally{h.xg()}};return f}();d.VH=m})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}L(b,f);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 f(b,a){this.ua=-1;this.ne=b;this.$q=a}f.prototype.ya=function(){return this.ua};f.prototype.next=function(){var b;return null!=(b=this.ne.next())?(this.ua=this.ne.ya(),this.hM(b)):null};f.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();};f.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)};f.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)};f.prototype.Xv=function(b){for(var a=b.Pa(),c=b.Ca();c.kb();)for(var e=!0;c.La();){var g=c.ia();if(322!=
g.D())throw d.g.ra("not implemented");var h=c.lD(),l=g.$b();if(l>this.$q){var f=Math.ceil(l/this.$q),l=new d.Va(b.description);e&&(g.En(l),a.df(l));for(var n=e=1/f,t=0,f=f-1;t<f;t++)g.uu(n,l),a.lineTo(l),n+=e;h?a.ro():(g.Bn(l),a.lineTo(l))}else h?a.ro():a.Bc(g,e);e=!1}return a};return f}();d.XH=m})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}L(b,f);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,g){return a instanceof d.T?(a=new d.Pc(a),b=new d.Pc(b),this.$(a,b,e,g).next()):new d.YH(a,b,e,g)};b.ll=function(a,c,e,g){if(a.s()||c.s())return a;var h=a.fb(),l=c.fb();if(h>l)return a;var f=a.D(),n=c.D(),t=new d.i,q=new d.i,r=new d.i;a.o(t);c.o(q);r.K(t);r.Db(q);var r=d.Ia.zd(e,r,!1),m=r*Math.sqrt(2)*1.00001,u=new d.i;u.K(t);u.P(m,m);if(!u.jc(q))return a;if(1==h&&2==l)return b.UI(a,c,n,e,g);if(33==f)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==f)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,g)};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,f=new d.i;b.kb();)for(;b.La();){var n=b.ia();n.o(f);f.P(h,h);if(f.contains(c)){if(n.Eq(c,e))return a.Pa();
var t=n.Mb();if(d.b.Zb(c,t)<=l)return a.Pa();t=n.oc();if(d.b.Zb(c,t)<=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 f=0;f<b;f++)if(c.ec(2*f,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,f=[],n=0;n<h;n++)f[n]=!1;for(var t=new d.b,n=0;n<h;n++)a.w(n,t),c.contains(t)&&0!=d.gd.he(b,t,e)&&(l=!0,f[n]=!0);if(!l)return a;b=a.Pa();for(n=0;n<h;n++)f[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 f=new d.b,l=0;l<b;l++)a.w(l,f),c.contains(f)&&(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(),
f=new d.b,n=!1;b=[];for(var t=0;t<h;t++)b[t]=!1;t=e*Math.sqrt(2)*1.00001;e=t*t;for(t=0;t<h;t++)c.ec(2*t,f),d.b.Zb(f,l)<=e&&(n=!0,b[t]=!0);if(!n)return a;c=a.Pa();for(t=0;t<h;t++)b[t]||c.Pd(a,t,t+1);return c};b.UI=function(a,b,e,g,h){var c=new d.Vj;a.Fp(c);var f=new d.i;b.o(f);c.Db(f);c.P(.1*c.aa(),.1*c.ba());f=new d.Ka;f.Wc(c,!1);1736==e?f.add(b,!0):f.Wc(b,!0);return d.$r.local().$(a,f,g,h)};b.V=null;return b}(d.Me);d.Zr=m})(p||(p={}));(function(d){var m=function(){function f(b,a,c,e){this.Fq=null==
a;this.ua=-1;this.ne=b;this.fx=c;this.EP=a.next();this.Yb=e}f.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};f.prototype.ya=function(){return this.ua};return f}();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,f=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(f),l.Ou(f)<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,f=new d.b,n,t=b.F();for(e=!e&&1736==a.D();c.kb();)for(;c.La();){var q=c.ia();q.o(h);if(!(1<t&&h.Ou(this.Ng)>
l)){for(var r=0;r<t;r++){b.w(r,f);if(e&&0!=d.gd.he(a,f,0))return 0;n=q.Gd(f,!1);f.sub(q.Kb(n));n=f.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,g=new d.b,h=new d.b,l,f=a.F(),n=b.F(),t=0;t<f;t++)if(a.w(t,g),!(1<n&&this.Ng.gG(g)>c))for(var q=0;q<n;q++)if(b.w(q,h),l=d.b.Zb(g,h),l<c){if(0==l)return 0;c=l}return Math.sqrt(c)};b.prototype.iT=function(a,b,e,g){if(1736==a.D()){for(;g.kb();)if(g.La()){var c=g.ia();if(0!=d.gd.he(a,
c.oc(),0))return!0}g.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}(),f=function(b){function a(){b.apply(this,arguments)}L(a,b);a.prototype.$=function(a,b,g){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 g=new d.i,b.o(g),g.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),g=new d.i,b.o(g),g.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(g)).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=f})(p||(p={}));(function(d){var m=function(){function f(b,a,c,e){this.aE=b;this.fE=a;this.oe=e;this.HD=c}f.prototype.next=function(){var b=this.aE.next();return null==
b?null:this.yz(b)};f.prototype.ya=function(){return this.aE.ya()};f.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,g=b.ea();e<g;e++)this.mH(b,e,a,c);return a};f.prototype.mH=function(b,a,c,e){if(!(2>b.Ha(a))){var g=b.Ea(a),h=b.Dc(a)-1,l=b.mc(0),f=b.vc(a),n=new d.ga(0);n.xb(b.Ha(a)+1);var t=new d.ga(0);t.xb(b.Ha(a)+1);n.add(f?g:h);n.add(g);for(g=new d.b;1<
n.size;){var q=n.tc();n.af();var r=n.tc();b.w(q,g);e.ed(g);b.w(r,g);e.vd(g);r=this.jH(e,g,l,q,r,h);0<=r?(n.add(r),n.add(q)):t.add(q)}f||t.add(n.get(0));if(t.size==n.size)c.Zj(b,a,!0);else if(2<=t.size&&(!this.HD||2!=t.size||!(f||d.b.Fb(b.Fa(t.get(0)),b.Fa(t.get(1)))<=this.fE))){a=new d.Va;e=0;for(h=t.size;e<h;e++)b.Sd(t.get(e),a),0==e?c.df(a):c.lineTo(a);f&&(this.HD||2!=t.size||c.lineTo(a),c.ro())}}};f.prototype.jH=function(b,a,c,e,d,h){var g=d-1;d<=e&&(g=h);h=d=-1;for(e+=1;e<=g;e++){c.ec(2*e,a);
var f=a.x,n=a.y;b.Kb(b.Gd(a,!1),a);a.x-=f;a.y-=n;f=a.length();f>this.fE&&f>h&&(d=e,h=f)}return d};return f}();d.$H=m})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}L(b,f);b.prototype.D=function(){return 29};b.prototype.$=function(a,b,e,g){return a instanceof d.T?(a=new d.Pc(a),this.$(a,b,e,g).next()):new d.$H(a,b,e,g)};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(f){function b(){f.apply(this,
arguments)}L(b,f);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,g,h,l,f,n){return a instanceof d.T?(n=new d.Pc(a),this.$(n,b,e,[g],h,l,!1,f).next()):!0===f?(e=new d.Uz(a,b,e,g,h,!1,!1,n),d.wi.local().$(e,b,n)):new d.Uz(a,b,e,g,h,!1,!1,n)};b.V=null;return b}(d.Me);d.Tz=m})(p||(p={}));(function(d){var m=function(){function f(b,a,c,e,g,h,l,f){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=g;this.Vm=-1;this.Yb=f;this.CP=new d.i;this.CP.Ja()}f.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};f.prototype.ya=function(){return this.ua};f.prototype.oN=function(b,a){return d.pH.buffer(b,this.cg,this.ke,a,this.Rm,this.Yb)};return f}();d.Uz=m})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}L(b,f);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),f=c.Se().Dj,n=a.D(),t;1736==n||197==n?t=a.Rf():d.T.Lc(n)?(t=new d.Xa(a.description),t.Bc(a,!0)):t=a;if(0==c.lc(b)){if(d.Ya.Qo(b)){t=d.gh.qo(t,b);1607==n&&t==a&&(t=d.T.Yj(a));a=new d.Nd;d.Ya.Fm(b).wu(a);for(var n=0,q=t.F();n<q;n++){var r=t.Fa(n);r.x=d.gh.pu(r.x,a);t.ic(n,r)}}a=t.Pa();t=d.gh.ZQ(b,
c,t,a)?a:d.Ya.Wl(t,b,c)}return this.yM(t,e,l,h,f)};b.prototype.yM=function(a,b,e,g,h){var c=new d.ca(0),f=0;for(a=a.Ca();a.kb();)for(;a.La();){var n=a.ia(),t=n.Mb(),n=n.oc();t.scale(h);n.scale(h);d.zb.Rd(e,g,t.x,t.y,n.x,n.y,c,null,null,b);f+=c.l}return f};b.V=null;return b}(d.Me);d.cI=m})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}L(b,f);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,g,h){return a instanceof
d.T?(a=new d.Pc(a),this.$(a,b,e,g,h).next()):new d.bI(a,e,g,b,-1,-1,h)};b.V=null;return b}(d.Me);d.aI=m})(p||(p={}));(function(d){var m=function(){function f(b,a,c,e,g,h){if(0<h)throw d.g.qe();if(4!=c&&0<g)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=g}f.prototype.next=function(){for(var b;null!=(b=this.Xq.next());)return this.ua=this.Xq.ya(),this.hw(b);return null};f.prototype.ya=function(){return this.ua};f.prototype.hw=function(b){return d.ui.oq(b,
this.cg,this.ke,this.IP,this.HP,this.Yb)};return f}();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 f(){}f.lU=function(b,
a,c,e){if(a.s()||b.s())return 4;var g=b.D(),h=a.D(),l;d.T.Lc(g)&&(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(g){case 33:switch(h){case 33:return f.sO(b,a,c);case 197:return f.Id(f.BG(a,b,c));case 550:return f.Id(f.HG(a,b,c));case 1607:return f.Id(f.Az(a,b,c,e));case 1736:return f.Id(f.pz(a,b,c))}throw d.g.wa();case 197:switch(h){case 33:return f.BG(b,a,c);case 197:return f.fK(b,a,c);case 550:return f.Id(f.DG(a,b,c,e));case 1607:return f.Id(f.vz(a,
b));case 1736:return f.Id(f.lz(a,b))}throw d.g.wa();case 550:switch(h){case 33:return f.HG(b,a,c);case 197:return f.DG(b,a,c,e);case 550:return f.FG(b,a,c,e);case 1607:return f.Id(f.xz(a,b));case 1736:return f.Id(f.nz(a,b))}throw d.g.wa();case 1607:switch(h){case 33:return f.Az(b,a,c,e);case 197:return f.vz(b,a);case 550:return f.xz(b,a);case 1607:return f.iQ(b,a);case 1736:return f.Id(f.rz(a,b))}throw d.g.wa();case 1736:switch(h){case 33:return f.pz(b,a,c);case 197:return f.lz(b,a);case 550:return f.nz(b,
a);case 1607:return f.rz(b,a);case 1736:return f.oP(b,a)}throw d.g.wa();default:throw d.g.wa();}};f.sO=function(b,a,c){b=b.w();a=a.w();return f.jz(b,a,c)};f.jz=function(b,a,c){b.sub(a);return b.Up()<=c*c?3:4};f.BG=function(b,a,c){var e=new d.i;b.o(e);b=a.w();return f.ZL(e,b,c)};f.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};f.uM=function(b,a,c){return a.contains(c)?1:b.contains(c)?8:4};f.fK=function(b,a,c){var e=new d.i;b.o(e);b=new d.i;a.o(b);return f.MK(e,
b,c)};f.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};f.HG=function(b,a,c){a=a.w();return f.JG(b,a,c)};f.JG=function(b,a,c){for(var e=0,d=b.F();e<d;e++){var h;h=b.Fa(e);h=f.jz(h,a,c);if(4!=h)return 0!=(h&2)&&1!=d?1:h}return 4};f.DG=function(b,a,c,e){var g=new d.i;a.o(g);return f.eN(b,g,c,e)};f.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=f.Id(f.uM(a,a,l));if(4!=l&&(c|=l,4==e))return 1073741824}return 0==c?4:2==c?c:32};f.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=f.JG(b,k,c);if(4!=k&&(d++,4==e))return 1073741824}return 0<d?d==a.F()?3==e?(k=f.FG(a,b,c,1),1==k?3:0):1:32:0};f.Az=function(b,a,c,e){a=a.w();return f.XP(b,a,c,e)};f.GM=function(b,a){var c=null;b=b.pb;null!=b&&(c=b.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};f.XP=function(b,a,c,e){if(0==(e&1073741839))return 64;var g=f.GM(b,a);if(0<g)return g;c*=c;for(g=b.Ca();g.kb();){var h=g.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(;g.La();)if(l=g.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};f.vz=function(b,a){var c=new d.i;a.o(c);return f.rP(b,c)};f.rP=function(b,a){b=f.ao(b,a);
return 0<b?b:0};f.ao=function(b,a){b=b.pb;if(null!=b)b=b.hi;else return-1;if(null!=b){b=b.Dn(a);if(0==b)return 4;if(1==b)return 1}else return-1;return 0};f.xz=function(b,a){var c=new d.i;a.o(c);c=f.ao(b,c);return 0<c?c:0};f.fs=function(b,a){var c=new d.i;a.o(c);c=f.ao(b,c);return 0<c?c:-1==c&&(c=new d.i,b.o(c),c=f.ao(a,c),0<c)?f.Id(c):0};f.iQ=function(b,a){b=f.fs(b,a);return 0<b?b:0};f.pz=function(b,a,c){a=a.w();return f.lP(b,a,c)};f.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();};f.lz=function(b,a){var c=new d.i;a.o(c);return f.uO(b,c)};f.uO=function(b,a){b=f.ao(b,a);return 0<b?b:0};f.nz=function(b,a){b=f.fs(b,a);return 0<b?b:0};f.rz=function(b,a){b=f.fs(b,a);return 0<b?b:0};f.oP=function(b,a){b=f.fs(b,a);return 0<b?b:0};f.iR=function(b,a){var c=b.D(),e=a.D(),g;if(d.T.Th(c)&&(g=b.pb,null!=g&&(g=g.hi,null!=g))){if(33==e){var h=a.w();g=g.Kk(h.x,h.y)}else h=new d.i,a.o(h),g=g.Dn(h);if(1==g)return 1;if(0==g)return 4}if(d.T.Th(e)&&(g=a.pb,null!=
g&&(g=g.hi,null!=g))){33==c?(c=b.w(),g=g.Kk(c.x,c.y)):(c=new d.i,b.o(c),g=g.Dn(c));if(1==g)return 2;if(0==g)return 4}return 0};f.Id=function(b){0!=(b&1)&&(b=b&-2|2);0!=(b&2)&&(b=b&-3|1);return b};return f}();d.dI=m})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}L(b,f);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,g,h){return a instanceof d.T?(a=new d.Pc(a),b=new d.Pc(b),this.$(a,b,e,g,h).next()):
void 0===h?new d.Vz(a,b,e,g,-1):new d.Vz(a,b,e,g,h)};b.V=null;return b}(d.Me);d.$r=m})(p||(p={}));(function(d){var m=function(){function f(b,a,c,e,g){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=g;if(-1!=this.Xh&&(0>=this.Xh||7<this.Xh))throw d.g.N("bad dimension mask");}f.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};f.prototype.ya=function(){return this.ua};f.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)};f.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 g=
0;g<c.length-1;g++)c[g]=c[g+1];if(0!=(a&2))null==c[e]&&(c[e]=new d.Xa(b)),e++;else for(g=e;g<c.length-1;g++)c[g]=c[g+1];if(0!=(a&4))null==c[e]&&(c[e]=new d.Ka(b)),e++;else for(g=e;g<c.length-1;g++)c[g]=c[g+1];if(3!=e){b=[];for(g=0;g<e;g++)b[g]=c[g];return new d.Pc(b)}return new d.Pc(c)};f.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)};f.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(),g=this.Ce.s(),g=e||g;if(!g){g=new d.i;b.o(g);var h=new d.i;this.Ce.o(h);h.P(2*c,2*c);g=!g.jc(h)}if(!g)if(h=d.dI.iR(this.Ce,b),4==h)g=!0;else{if(0!=(h&2))return this.Ce;if(0!=(h&1))return b}if(g)return c=d.T.ve(a),g=d.T.ve(this.Ji),c<g?f.V(b,e):c>g?this.kF():
0==c?550==a&&33==this.Ji?this.kF():f.V(b,e):f.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)};f.prototype.rG=function(b,a){var c=b,e=a,g=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*g,2*g);h.Ga(l);h.P(10*g,10*g);var c=b=d.Ed.clip(b,h,0,0),l=new d.ga(0),f=-1,n=e.pb;if(null!=n){var t=n.hi;if(null!=t){f=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=t.Dn(q);1==m?l.add(1):
0==m?l.add(0):(l.add(-1),f++)}}}5<a.F()&&(e=a=d.Ed.clip(a,h,0,0),n=e.pb);0>f&&(f=c.Iw());h=c.F()+e.F();if(f*e.F()>Math.log(h)*h*4)return null;h=null;f=e.Ca();null!=n&&null!=n.Ab&&(h=n.Ab);null==h&&20<e.F()&&(h=d.Ia.nB(e));e=b.Pa();n=null;t=c.Ca();q=[0,0,0,0,0,0,0,0,0];r=new d.qd(0);m=new d.Ag;b=-1;for(var u=0,p=0,v=0<l.size,D=-1;t.kb();){var D=t.Qa,x=0;b=-1;for(u=0;t.La();){var B=v?d.I.truncate(l.get(p)):-1;p++;var A=t.ia();if(0>B){if(null!=h)for(null==n?n=h.KN(A,g):n.Fn(A,g),B=n.next();-1!=B;B=n.next()){f.Sb(h.da(B));
for(var B=f.ia(),z=A.Ga(B,null,q,null,g),B=0;B<z;B++)r.add(q[B])}else for(f.Lk();f.kb();)for(;f.La();)for(B=f.ia(),z=A.Ga(B,null,q,null,g),B=0;B<z;B++)r.add(q[B]);if(0<r.size){r.xd(0,r.size,function(a,b){return a-b});var C=0;r.add(1);for(var z=-1,B=0,F=r.size;B<F;B++){var E=r.get(B);if(E!=C){var I=!1;0!=C||1!=E?(A.Bi(C,E,m),C=m.get()):(C=A,I=!0);if(2<=x){e.ys(c,D,b,u,3==x);if(1!=this.UA(a,C.Mb(),g)&&1!=this.VA(a,C,g))return null;e.Bc(C,!1);x=1;u=0}else switch(z=this.VA(a,C,g),z){case 1:I?2>x?(b=t.Jb()-
c.Ea(D),u=1,x=0==x?3:2):u++:(e.Bc(C,0==x),x=1);break;case 0:x=0;b=-1;u=0;break;default:return null}C=E}}}else{B=this.UA(a,A.Mb(),g);if(0>B)return null;1==B?(2>x&&(b=t.Jb()-c.Ea(D),x=0==x?3:2),u++):(b=-1,u=0)}r.clear(!1)}else 0!=B&&1==B&&(0==x?(x=3,b=t.Jb()-c.Ea(D)):1==x?(x=2,b=t.Jb()-c.Ea(D)):u++)}2<=x&&(e.ys(c,D,b,u,3==x),b=-1)}return e};f.prototype.UA=function(b,a,c){return d.ff.xl(b,a,c)};f.prototype.VA=function(b,a,c){var e=a.Mb();a=a.oc();var g=d.ff.xl(b,e,c),h=d.ff.xl(b,a,c);if(1==g&&0==h||
0==g&&1==h)return-1;if(0==g||0==h)return 0;if(1==g||1==h)return 1;g=new d.b;g.add(e,a);g.scale(.5);b=d.ff.xl(b,g,c);return 0==b?0:1==b?1:-1};f.V=function(b,a){return a?b:b.Pa()};f.prototype.kF=function(){null==this.$D&&(this.$D=this.Ce.Pa());return this.$D};return f}();d.Vz=m})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}L(b,f);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,g,h,l,f){return a instanceof
d.T?(a=new d.Pc(a),this.$(a,b,e,g,h,l,f).next()):new d.eI(a,b,e,g,h,l,f)};b.V=null;return b}(d.Me);d.Wz=m})(p||(p={}));(function(d){var m=function(){function f(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}f.prototype.next=function(){var b=this.ne.next();return null!=b?(this.ua=this.ne.ya(),this.RH(b)):null};f.prototype.ya=function(){return this.ua};f.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 f}();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,g){this.Fj=this.QM(b,e,g);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);g=new d.b;g.J(l);g.sub(c.Mb());l=new d.b;l.J(a);l.sub(c.Mb());this.Uo=0>g.Ai(l);this.Pg=this.PM(b,this.Fj);if(-1!=this.Pg){b.Sb(this.Pg,-1);var c=b.ia(),f=c.Gd(a,!1),f=c.Kb(f),n=d.b.Zb(f,a);n>e?this.Pg=-1:(g.J(f),g.sub(c.Mb()),l.J(a),l.sub(c.Mb()),this.Hq=0>g.Ai(l))}-1==this.Pg&&(this.Pg=this.RM(b,this.Fj),-1!=this.Pg&&(b.Sb(this.Pg,
-1),c=b.ia(),f=c.Gd(a,!1),f=c.Kb(f),n=d.b.Zb(f,a),n>e?this.Pg=-1:(g.J(f),g.sub(c.Mb()),l.J(a),l.sub(c.Mb()),this.Hq=0>g.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}(),f=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,g,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,g,h);default:throw d.g.ra("not implemented");}};a.prototype.Aw=function(a,b){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:case 1607:case 1736:return this.BE(c,b);default:throw d.g.ra("not implemented");}};a.prototype.Bw=function(a,b,g,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,g,h);case 550:case 1607:case 1736:return this.gQ(c,b,g,h);default:throw d.g.ra("not implemented");}};a.prototype.dQ=function(a,b,g,h){if(1736==a.D()&&g&&(g=new d.i,a.o(g),g=d.Ia.zd(null,g,
!1),0!=(h?d.gd.he(a,b,0):d.gd.he(a,b,g)))){var c=new d.dl(b,0,0);h&&c.UF(!0);return c}for(var e=a.Ca(),c=new d.b,f=g=-1,t=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<t?(q=1,c=r,g=e.Jb(),f=e.Qa,t=w):w==t&&q++}c=new d.dl(c,g,Math.sqrt(t));h&&(e.Sb(g,f),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,g,f)),c.UF(h));return c};a.prototype.OE=function(a,b){a=a.w();b=d.b.Fb(a,b);return new d.dl(a,0,b)};a.prototype.BE=function(a,
b){var c=a.mc(0);a=a.F();for(var e=0,l=0,f=0,n=1.7976931348623157E308,t=0;t<a;t++){var q=new d.b;c.ec(2*t,q);var r=d.b.Zb(q,b);r<n&&(l=q.x,f=q.y,e=t,n=r)}c=new d.dl;c.tv(l,f,e,Math.sqrt(n));return c};a.prototype.IQ=function(a,b,g,h){if(0==h)return g=[];g*=g;a=a.w();b=d.b.Zb(a,b);b<=g?(g=[],h=new d.dl,h.tv(a.x,a.y,0,Math.sqrt(b)),g[0]=h):g=[];return g};a.prototype.gQ=function(a,b,g,h){if(0==h)return h=[];var c=a.mc(0),e=a.F();a=[];var f=0;g*=g;for(var t=0;t<e;t++){var q=c.read(2*t),r=c.read(2*t+1),
m=b.x-q,u=b.y-r,m=m*m+u*u;m<=g&&(u=new d.dl,u.tv(q,r,t,Math.sqrt(m)),f++,a.push(u))}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=f})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}L(b,f);b.prototype.D=function(){return 4};b.prototype.$=function(a,b,e,g,h){return d.el.py(a,b,e,g,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(f){function b(){f.apply(this,arguments)}L(b,f);b.prototype.D=function(){return 33};b.prototype.$=function(a,b,e,g,h){return 1073741824===a?!d.hd.qy(b,e,g,4,h):d.hd.qy(b,e,g,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 f(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}f.prototype.next=function(){var b;return null!=(b=
this.wk.next())?(this.ua=this.wk.ya(),this.Qy(b)):null};f.prototype.ya=function(){return this.ua};f.prototype.Qy=function(b){if(null==b)throw d.g.N();return d.cv.cG(b,this.Pi,this.yP,this.oe)};return f}();d.gI=m})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}L(b,f);b.prototype.D=function(){return 26};b.prototype.$=function(a,b,e,g){return a instanceof d.T?(a=new d.Pc(a),this.$(a,b,e,g).next()):new d.gI(a,b,e,g)};b.prototype.Ro=function(a,b,e,g,h){return 0<(void 0!==
g?d.cv.Ro(a,b,e,g,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 f=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 g=a.Zd.xe(this.me.wn,0);c==g&&(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),g=a.Zd.xe(e,0));return c<g?-1:c>g?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}(),g=function(){function g(a,b,c,e,g){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=g}g.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};g.prototype.Yy=function(a,b){var c=this.$e.read(2*a);a=this.$e.read(2*a+1);var e=this.$e.read(2*b);b=this.$e.read(2*b+1);var g=!d.Sr.Vw(c,a,e,b,this.Ri*this.Ri);return g?g:0==this.U.fb()?!1:c==e&&a==b};g.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};g.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 g=c.ia();if(!(g.$b()>this.Ri)){if(a&&e){var h=g.gt(1,0),g=g.gt(1,0);if(Math.abs(g-h)>b)continue}this.Kd=new d.wd(2,c.Jb(),-1);return!1}}return!0};g.prototype.OK=function(){var b=this.U,c=null;d.T.Kc(this.U.D())&&(c=this.U);var g=(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);g&&(null==this.Bk&&(this.Bk=new d.ga(0)),this.Bk.xb(h));for(var f=b=0;f<h;f++)if(this.xh.add(2*f),this.xh.add(2*f+1),this.wh.add(2*f),this.wh.add(2*f+1),g){for(;f>=c.Dc(b);)b++;this.Bk.add(b)}(new d.Rr).sort(this.wh,0,2*h,new e(this,g));this.Za.clear();this.Za.Hn(new a(this));this.Za.de(h);c=0;for(h*=2;c<h;c++)if(g=this.wh.get(c),b=this.xh.get(g),g=b>>1,0==(b&1)){b=this.Za.addElement(g,-1);f=this.Za.ge(b);if(-1!=f&&!this.Yy(this.Za.da(f),g))return this.Kd=
new d.wd(3,g,this.Za.da(f)),!1;var r=this.Za.bb(b);if(-1!=r&&!this.Yy(this.Za.da(r),g))return this.Kd=new d.wd(3,g,this.Za.da(r)),!1}else if(b=this.Za.search(g,-1),f=this.Za.ge(b),r=this.Za.bb(b),this.Za.kd(b,-1),-1!=f&&-1!=r&&!this.Yy(this.Za.da(f),this.Za.da(r)))return this.Kd=new d.wd(3,this.Za.da(f),this.Za.da(r)),!1;return!0};g.prototype.RK=function(){return 10>this.U.F()?this.PK():this.QK()};g.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};g.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};g.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,g=0,a=2*a.F();g<a;g++){var h=this.wh.get(g),
h=this.xh.get(h);if(0==(h&1)){var h=h>>1,f=this.$e.read(2*h),m=this.$e.read(2*h+1);if(0!=b.size&&(f!=c||m!=e)){if(!this.TE(b))return!1;null!=b&&b.clear(!1)}b.add(h);c=f;e=m}}return this.TE(b)?!0:!1};g.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 f,g,h,m,u=new d.b,c=this.wh.get(0),c=this.xh.get(c),p=c>>1;this.$e.ec(2*p,u);c=this.Bk.get(p);g=b[c];h=a.Ea(c);m=a.Dc(c)-1;e.ak=p==h||p==m;e.Ev=this.pk?!g&&e.ak:e.ak;e.Sh=c;e.x=u.x;e.y=u.y;e.yl=p;for(var v=
new f,D=1,x=this.wh.size;D<x;D++)if(c=this.wh.get(D),c=this.xh.get(c),0==(c&1)){p=c>>1;this.$e.ec(2*p,u);c=this.Bk.get(p);c!=e.Sh&&(g=b[c],h=a.Ea(c),m=a.Dc(c)-1);var B,A=p==h||p==m;B=this.pk?!g&&e.ak:e.ak;v.x=u.x;v.y=u.y;v.Sh=c;v.yl=p;v.Ev=B;v.ak=A;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};g.prototype.AB=function(){for(var a=this.U,c=[],e=-1,
g=!1,h=0,f=a.ea();h<f;h++)a.qt(h)&&(g=!1,e++,h<f-1&&(a.qt(h+1)||(g=!0))),c[h]=g?e:-1;var g=new d.b,h=this.wh.get(0),h=this.xh.get(h),m=h>>1;this.$e.ec(2*m,g);for(var h=this.Bk.get(m),e=new b(g.x,g.y,h,m,c[h]),a=[],u=1,f=this.wh.size;u<f;u++)if(h=this.wh.get(u),h=this.xh.get(h),0==(h&1)){m=h>>1;this.$e.ec(2*m,g);h=this.Bk.get(m);h=new b(g.x,g.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);g=-1;u=new d.b;u.Eh();e=0;for(f=a.length;e<f;e++){m=a[e];if(m.x!=u.x||m.y!=u.y)g=h.jh(0),u.x=m.x,u.y=m.y;var p=c[m.Sh];-1==p&&(p=h.jh(2),c[m.Sh]=p);h.addElement(p,g);h.addElement(g,p)}f=new d.ga(0);f.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;f.add(e);for(f.add(-1);0<f.size;){g=f.tc();f.af();u=f.tc();f.af();m=h.DC(u);if(0!=(m&1)){a=0==(m&2)?g:u;break}h.$R(u,m|1);for(m=h.gc(u);-1!=m;m=h.bb(m))p=h.getData(m),
p!=g&&(f.add(p),f.add(u))}if(-1!=a){h=-1;e=0;for(f=c.length;e<f;e++)if(c[e]==a){h=e;break}this.Kd=new d.wd(10,h,-1);return!1}}return!0};g.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,g=0,h=a.ea();g<h;g++){var f=a.oo(g);this.gn.write(g,0>f?0:256);if(0<f)b=g,e=f;else{if(0==f)return this.Kd=new d.wd(6,g,-1),0;if(0>b||e<Math.abs(f))if(this.Kd=
new d.wd(7,g,-1),this.pk)return 0;this.Hx.write(g,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;g=this.$e.read(2*e+1);if(g!=this.wn&&0!=a.size){if(!this.yr(a))return 0;null!=a&&a.clear(!1)}a.add(e);this.wn=g}return 0<
this.kr&&!this.yr(a)?0:this.pk?0==this.Kd.yh&&this.AB()?2:0:0==this.Kd.yh?2:1};g.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 g=this.Hf.oi();this.$a.push(this.Ls(g,e,this.Hf.Qa,!0));this.Hf.ia();g=this.Hf.ia();this.$a.push(this.Ls(g,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;g=this.Lg.gc(e);if(-1==g)break;for(var f=this.Lg.bb(g);-1!=f;){c=this.Lg.getData(g);l=this.Lg.getData(f);c=this.$a[c].tn;l=this.$a[l].tn;if(c==l)if(b=!0,this.Lg.Jc(e,g),g=this.Lg.ge(f),f=this.Lg.Jc(e,f),-1==f||-1==g)break;else continue;g=f;f=this.Lg.bb(g)}}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};g.prototype.yr=function(a){for(var b=0,c=a.size;b<c;b++){var e=a.get(b),g=this.yp.read(e);
if(-1!=g){var h=this.Za.da(g);this.Hi.add(h);this.Za.kd(g,-1);this.my(this.$a[h]);this.$a[h]=null;this.yp.write(e,-1)}g=this.hu.read(e);-1!=g&&(h=this.Za.da(g),this.Hi.add(h),this.Za.kd(g,-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);g=this.Hf.oi();if(g.ja>g.ha){var l=this.Hf.Jb(),f=this.Ls(g,e,this.Hf.Qa,!0);0<this.Hi.size?(h=this.Hi.tc(),this.Hi.af(),this.$a[h]=f):(h=this.$a.length,this.$a.push(f));g=this.Za.addElement(h,-1);-1==
this.yp.read(l)?this.yp.write(l,g):this.hu.write(l,g);0==(this.gn.read(this.Hf.Qa)&3)&&this.Ll.add(g)}this.Hf.ia();g=this.Hf.ia();g.ja<g.ha&&(l=this.Hf.Bm(),f=this.Ls(g,e,this.Hf.Qa,!1),0<this.Hi.size?(h=this.Hi.tc(),this.Hi.af(),this.$a[h]=f):(h=this.$a.length,this.$a.push(f)),g=this.Za.addElement(h,-1),-1==this.yp.read(l)?this.yp.write(l,g):this.hu.write(l,g),0==(this.gn.read(this.Hf.Qa)&3)&&this.Ll.add(g))}b=0;for(c=this.Ll.size;b<c&&0<this.kr;b++)if(g=this.Ll.get(b),0==(this.gn.read(this.$a[this.Za.da(g)].Gx)&
3)){a=-1;for(var e=this.Za.ge(g),m=g,f=null,h=-1,p=0;-1!=e;){h=this.Za.da(e);f=this.$a[h];h=f.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!=f.LC()?0:1,e=this.Za.bb(e));do{h=this.Za.da(e);f=this.$a[h];h=f.Gx;m=this.gn.read(h);if(0==(m&3)){if(l!=f.LC())return this.Kd=new d.wd(6,h,-1),!1;p=0==l||f.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!=g)}null!=this.Ll?this.Ll.clear(!1):this.Ll=new d.ga(0);return!0};g.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};g.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};g.prototype.my=function(a){322==a.Zd.D()&&this.dn.push(a)};g.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};g.prototype.NQ=function(){return this.yB()?this.xB(!0)?2:0:0};g.prototype.LQ=function(){return this.Yw()};g.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 g=Array(a);d.I.Ps(g,!1);g[b.get(0)]=!0;for(c=1;c<a;c++){var h=
b.get(c-1),f=b.get(c);0==this.Is(h,f)?g[f]=!1:g[f]=!0}for(var b=this.U.Pa(),h=this.U,f=0,m=1,c=0;c<a;c++)g[c]?m=c+1:(f<m&&b.Pd(h,f,m),f=c+1);f<m&&b.Pd(h,f,m);b.hg(2,this.pn);return b};g.prototype.OQ=function(){var a=this.U,b=a.Ca(),c=a.Ca(),e=this.U.Pa(),g=this.U,h=a.hasAttribute(1),f=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,D,x=!0;b.La();){var B=b.ia(),A=c.oi();if(b.Jb()>
c.Jb())break;x&&(m.add(b.Jb()),p.add(c.Bm()),x=!1);D=m.tc();var z=b.Bm();if(1<z-D){var C=new d.b;C.pc(a.Fa(D),a.Fa(z));v=C.length()}else v=B.$b();D=p.tc();z=c.Jb();1<z-D?(C=new d.b,C.pc(a.Fa(D),a.Fa(z)),D=C.length()):D=A.$b();v>this.pn?m.add(b.Bm()):h&&(v=a.ld(1,m.tc(),0),B=B.Ws(1,0),Math.abs(B-v)>f&&m.add(b.Bm()));D>this.pn?p.add(c.Jb()):h&&(v=a.ld(1,p.tc(),0),B=A.Ws(1,0),Math.abs(B-v)>f&&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){x=
new d.Va;A=0;for(B=m.size;A<B;A++)g.Sd(m.get(A),x),0==A?e.df(x):e.lineTo(x);for(A=p.size-1;0<A;A--)g.Sd(p.get(A),x),e.lineTo(x);g.vc(b.Qa)?e.ro():0<p.size&&(g.Sd(p.get(0),x),e.lineTo(x))}null!=m&&m.clear(!1);null!=p&&p.clear(!1)}e.hg(2,this.pn);return e};g.prototype.MQ=function(){return this.xS()};g.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};g.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 g(a,b,c,0,!1)).Yw();a.hg(c,e);return c};g.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 f=d.Ia.Cg(b,a,!1);if(197==l)return b=new d.i,a.o(b),b.mg(f)?(null!=e&&(e.yh=2,e.Fk=-1,e.Gk=-1),0):1;if(d.T.Lc(l))return f=new d.Xa(a.description),f.Bc(a,!0),g.Ro(f,b,c,e,h);h=a.rj(f);c=c?-1:h;if(-1!=c)return c;b=new g(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,f);null!=e&&0==c&&e.aq(b.Kd);return c};g.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 f=d.Ia.Cg(b,a,!1);if(197==l)return b=new d.i,a.o(b),b.mg(f)?(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),g.Ro(l,b,c,e,h);a=new g(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};g.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),g.cG(h,b,c,e);e=a.rj(l);c=c?-1:e;if(2==c)return a;a=new g(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};g.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),g.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)};g.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 g=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*g,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(g),0>c?-1:0<c?1:0):a};g.prototype.Is=function(a,b){if(a==b)return 0;var c=this.U,e=c.Fa(a),g=c.Fa(b);if(e.x<g.x)return-1;if(e.x>g.x)return 1;if(e.y<g.y)return-1;if(e.y>g.y)return 1;for(e=1;e<
this.wP;e++)for(var g=this.SD.Hd(e),h=d.pa.Wa(g),l=0;l<h;l++){var f=c.ld(g,a,l),k=c.ld(g,b,l);if(f<k)return-1;if(f>k)return 1}return 0};g.prototype.uL=function(a,b){var c=this.Is(a,b);return 0==c?a<b?-1:1:c};g.prototype.sM=function(a,b){if(a===b)return 0;var c=a.Zd.Pf(a.sl()?1:0);a.sl()&&c.Bp();a=b.Zd.Pf(b.sl()?1:0);b.sl()&&a.Bp();b=c.ps();var e=a.ps();return e==b?(b=c.Ai(a),Math.abs(b)<=8.881784197001252E-16*(Math.abs(a.x*c.y)+Math.abs(a.y*c.x))&&(b--,b++),0>b?1:0<b?-1:0):b<e?-1:1};return g}();d.cv=
g})(p||(p={}));(function(d){var m=function(f){function b(){f.apply(this,arguments)}L(b,f);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,g){return a instanceof d.T?(a=new d.Pc(a),b=new d.Pc(b),this.$(a,b,e,g).next()):new d.hI(a,b,e,g)};b.On=function(a,c,e,g){var h=a.fb(),f=c.fb();if(a.s()&&c.s())return h>f?a:c;if(a.s())return c;if(c.s())return a;var k=new d.i,n=new d.i,t=new d.i;a.o(k);c.o(n);t.K(k);t.Db(n);k=d.Ia.zd(e,t,!1);
n=a.D();t=c.D();return 33==n&&33==t?b.qP(a,c,k):n!=t?0<h||0<f?h>f?a:c:550==n?b.pA(a,c,k):b.pA(c,a,k):d.Of.On(a,c,e,g)};b.qP=function(a,b,e){e=e*Math.sqrt(2)*1.00001;e*=e;var c=a.w(),h=b.w(),f=new d.pe(a.description);d.b.Zb(c,h)>e&&(f.add(a),f.add(b));return f};b.pA=function(a,b,e){var c=a.mc(0),h=a.F(),f=b.w(),k=a.Pa();e=e*Math.sqrt(2)*1.00001;var n=new d.i;a.o(n);n.P(e,e);if(n.contains(f)){e*=e;for(var n=!1,t=[],m=0;m<h;m++)t[m]=!1;for(m=0;m<h;m++){var r=c.read(2*m),p=c.read(2*m+1),r=r-f.x,p=p-f.y;
r*r+p*p<=e&&(n=!0,t[m]=!0)}if(n)for(m=0;m<h;m++)t[m]||k.Pd(a,m,m+1);else k.Pd(a,0,h),k.add(b)}else k.Pd(a,0,h),k.add(b);return k};b.V=null;return b}(d.Me);d.dv=m})(p||(p={}));(function(d){var m=function(){function f(b,a,c,e){this.Fq=null==a;this.ua=-1;this.ne=b;this.cg=c;this.QP=a.next();this.Yb=e}f.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};f.prototype.ya=function(){return this.ua};return f}();
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}(),f=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],g=a.ac(c)[0],h=c[g],f=h.Dv().iw,h=h.Dv().xG;delete c[g];h&&(f=d.as.local().$(f,this.cg,!1,this.Yb),0==b&&33==f.D()&&(b=new d.pe(f.description),f.s()||b.add(f),f=b));return f};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],f=a.ac(h),k=0;k<f.length;k++){var n=f[k],t=h[n];if(this.Ec||1E4<t.jq&&1<t.Ci.length){this.ep[b]-=t.Ci.length;for(this.So-=t.Ci.length;0<t.Ci.length;)c.push(t.Dv().iw),t.PQ();d.push(n)}}for(k=0;k<d.length;k++)delete h[d[k]];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 g=0,k=Math.max(2,b+1);g<k;g++)this.rn.push([]);g=this.rn[b][d];void 0===g&&(g=new f,this.rn[b][d]=g);c.xG=e;g.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(f){function b(){f.apply(this,arguments)}L(b,f);b.prototype.D=function(){return 1};b.prototype.$=function(a,b,e,g){return void 0===g?new d.jI(a,b,e):this.xM(a,b,e,g)};b.prototype.xM=function(a,b,e,g){a=new d.Pc([a,b]);return this.$(a,e,g).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 f(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 g=b.pb;null!=g&&(g=e?g.nn:g.Ab,null!=g&&(this.Ec=!1,this.ka=c,this.Ab=g,this.au=this.Ab.Re(),this.Xo=this.qk=!0,this.Hb=0,e?this.hn=a.ea():this.bd=a.Ca()));this.qk||(g=a.pb,null!=g&&(g=e?g.nn:g.Ab,null!=g&&(this.Ec=!1,this.ka=c,this.Ab=g,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))}f.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()};f.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)};f.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)};f.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)};f.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)};f.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};f.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};f.prototype.$w=function(){this.Rq=this.au.next();return-1==this.Rq?(this.Hb=this.Wo?0:1,!0):!1};return f}();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 f(){}f.Fb=function(b,a,c,e,g,h,l,k,n){var t=[0,0,0],m=[0,0,0],r=[0,0,0],p=[0,0,0,0],u=new d.ca(0),y=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,g,h,l,k,n);else{g=d.u.W(g);c=d.u.W(c);var D=d.u.W(g-c);if(d.j.S(e,h)&&(d.j.S(c,g)||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(g)):d.u.W(g));null!=n&&(n.l=0<e?d.u.W(g):d.u.W(3.141592653589793-d.u.W(g)));return}d.j.S(d.j.H(D),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,g,h,l,k,n);return}if(d.j.S(c,g)||d.j.S(d.j.H(D),3.141592653589793)){d.Xj.Fb(b,a,c,e,g,h,l,k,n);return}if(d.j.Vc(e)){d.Xj.Fb(b,a,c,e,g,h,l,k,n);return}}var x=
Math.sqrt(1-a);g=d.u.W(g-c);c=0;d.u.wm(a,e,c,u,y,v);t[0]=u.l;t[1]=y.l;t[2]=v.l;d.u.wm(a,h,g,u,y,v);m[0]=u.l;m[1]=y.l;m[2]=v.l;r[0]=0;r[1]=0;r[2]=-1*a*d.u.n(1,a,e)*Math.sin(e);0>g?d.u.Ep(r,m,t,p,0):d.u.Ep(r,t,m,p,0);for(var y=[0,0,0],v=[0,0,0],B=[0,0,0],t=[0,0,0],u=[0,0,0],A=Math.acos(p[2]/1),z=1-a,C=Math.tan(A),F=1+C*C/z,E=2*r[2]*C/z,C=Math.sqrt(E*E-4*F*(r[2]*r[2]/z-1)),F=2*F,z=(-E+C)/F,E=(-E-C)/F,C=Math.tan(A),F=C*z+r[2],A=(z+E)/2,r=(F+(C*E+r[2]))/2,C=d.u.Sn(z-A,F-r),z=r/x*1.570796326794897,E=0;100>
E;E++){F=d.u.Tk(a,z);F=F*F/Math.cos(z)*(Math.sin(z)-r*F/(1*(1-a)));if(d.j.Vc(F))break;z-=F}var r=d.u.n(1,a,z)*Math.cos(z),r=Math.sqrt((r-A)*(r+A)),C=1-C/r,C=C*(2-C),F=d.u.jm(y),A=d.u.jm(v),z=d.u.jm(B),I=d.u.Qr(B,y),E=d.u.Qr(B,v);d.u.Uu(B,y,t);d.u.Uu(B,v,u);y=Math.acos(I/(z*F));v=Math.acos(E/(z*A));v*=d.j.nb(1,d.u.Qr(t,u));if(1.570796326794897<=d.j.H(y)&&1.570796326794897<=d.j.H(v)||3.141592653589793<d.j.H(y-v))y=(3.141592653589793-d.j.H(y))*d.j.nb(1,y),v=(3.141592653589793-d.j.H(v))*d.j.nb(1,v);t=
d.u.Si(C,v);u=d.u.q(r,C,d.u.Si(C,y));t=d.u.q(r,C,t);t=d.j.H(t-u)*b;y=new d.ca(0);v=new d.ca(0);B=p[1]/1;B*=-d.j.nb(1,D);u=Math.acos(B)*d.j.nb(1,D);f.gf(b,a,c,e,t,u,y,v);d.j.S(g,y.l)&&d.j.S(h,v.l)||(C=d.u.Sn(d.u.W(g-y.l),h-v.l),f.gf(b,a,c,e,t,d.u.W(u+3.141592653589793),y,v),F=d.u.Sn(d.u.W(g-y.l),h-v.l),F<C&&(u=d.u.W(u+3.141592653589793)));y=[0,0,0,0];v=[0,0,0,0];r=[0,0,0];C=[0,0,0];b=[0,0,0];c=[0,0,0];e=[0,0,0];B=[0,0,0];r[0]=0;r[1]=0;r[2]=x;C[0]=0;C[1]=0;C[2]=0;d.u.Ep(C,r,m,y,0);d.j.Vc(h)?(b[0]=m[0],
b[1]=m[1],b[2]=1,c[0]=1*Math.cos(g)-1*Math.sin(g),c[1]=1*Math.sin(g)+1*Math.cos(g)):(a=d.u.n(1,a,h)*Math.cos(h),b[0]=0,b[1]=0,m[2]+=Math.tan(1.570796326794897-d.j.H(h))*a*d.j.nb(1,h),c[0]=a*Math.cos(g)-a*Math.sin(g),c[1]=a*Math.sin(g)+a*Math.cos(g));c[2]=m[2];d.u.Ep(m,c,b,v,1);d.u.Uu(v,y,e);d.u.Uu(v,p,B);B=d.u.Qr(e,B)/(d.u.jm(e)*d.u.jm(B));B*=d.j.nb(1,D);g=Math.acos(B)*-d.j.nb(1,D);0<u&&0<g?g=d.u.W(g+3.141592653589793):0>u&&0>g&&(g=d.u.W(g+3.141592653589793));null!=l&&(l.l=t);null!=k&&(k.l=u);null!=
n&&(n.l=g)}}};f.gf=function(b,a,c,e,g,h,f,k){var l=[0,0,0],t=[0,0,0],m=[0,0,0],r=[0,0,0],p=[0,0,0],u=[0,0,0],y=[0,0,0],v=[0,0,0,0],D=new d.ca(0),x=new d.ca(0),B=new d.ca(0),A=new d.ca(0),z=new d.ca(0),C=new d.ca(0);if(null!=f&&null!=k)if(d.j.Ih(a))d.zg.gf(b,c,e,g,h,f,k);else if(d.j.Vc(g))null!=f&&(f.l=c),null!=k&&(k.l=e);else if(h=d.u.W(h),0>g&&(g=d.j.H(g),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,g,h,f,k);else{var F=Math.sqrt(1-a);b=g/b;d.u.wm(a,e,0,A,z,C);l[0]=A.l;l[1]=z.l;l[2]=z.l;y[0]=0;y[1]=0;y[2]=-1*a*d.u.n(1,a,e)*Math.sin(e);A=d.u.n(1,a,e);z=d.u.W(1.570796326794897-h);C=Math.sin(z);g=Math.cos(e);e=Math.sin(e);p[0]=A*g-e*C;p[1]=Math.cos(z);p[2]=(1-a)*A*e+g*C;0>h?d.u.Ep(y,p,l,v,0):d.u.Ep(y,l,p,v,0);l=Math.acos(v[2]/1);v=Math.atan2(-v[1],-v[0]);e=1-a;p=Math.tan(l);z=1+p*p/e;A=2*y[2]*
p/e;p=Math.sqrt(A*A-4*z*(y[2]*y[2]/e-1));z*=2;e=(-A+p)/z;A=(-A-p)/z;p=Math.tan(l);z=p*e+y[2];l=(e+A)/2;y=(z+(p*A+y[2]))/2;p=d.u.Sn(e-l,z-y);F=y/F*1.570796326794897;for(e=0;100>e;e++){A=d.u.Tk(a,F);A=A*A/Math.cos(F)*(Math.sin(F)-y*A/(1*(1-a)));if(d.j.Vc(A))break;F-=A}F=d.u.n(1,a,F)*Math.cos(F);F=Math.sqrt((F-l)*(F+l));y=1-p/F;y*=2-y;u=Math.acos(d.u.Qr(u,t)/(d.u.jm(u)*d.u.jm(t)));u*=d.j.nb(1,t[0]);h=(d.u.q(F,y,d.u.Si(y,u))+b*d.j.nb(1,h))/d.u.gg(F,y);h=d.u.W(1.570796326794897*h);h=d.u.xn(y,h);d.u.n(F,
y,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],B,x,D);null!=f&&(f.l=x.l);null!=k&&(k.l=B.l)}};return f}();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}(),f=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;
a=this.ab.Cd.Dm(this.ab.lh(a.da(b)));this.Cl=b;return this.KB(b,a)};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;b=this.Xy();a.Oe(c);b||(this.JM(),b||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,g;do{g=!1;var h=this.Do(e,b),f=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==f){c=-1;break}c==e&&(c=this.fk(b),d=f,g=!0)}e=f}while(e!=d||g);if(-1!=c){do h=this.Do(e,b),f=this.FC(e,h),this.zy(e,h,a),e=f;while(e!=d);e=this.fk(a);-1!=e?(d=this.Go(e,a),g=this.Go(c,a),d==e?(this.dm(a,c),this.Av(e,a),this.dm(a,e)):g==c&&this.Av(c,a),this.Qp(c,a,d),this.Sp(d,a,c),this.Qp(e,a,g),this.Sp(g,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),g=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==g||e==d&&c==g||(this.zm(c,this.mn),this.zm(d,this.Ck),this.mn.ub(this.Ck)?(c!=d&&this.Tl(c,d),e!=g&&this.Tl(e,g)):(e!=d&&this.Tl(e,d),c!=g&&this.Tl(c,g)))};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 g=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(g,
b)};c.prototype.PB=function(a,b,c){var e=this.lh(a),d=this.Uf(a,0),g=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,g);for(e=this.Cd.gc(e);-1!=e;e=this.Cd.bb(e))if(g=this.Cd.da(e),this.se(g)==d){a=0;do 0<a&&(h=this.sf.get(a-1),this.QA(h,g),-1==this.ow(h)&&this.Lp(h,this.a.gb(g))),h=this.sf.get(a),a+=
2,this.RA(h,g),g=this.a.X(g);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,g),0>this.ow(h)&&this.Lp(h,this.a.gb(g))),h=this.sf.get(a),a-=2,this.RA(h,g),g=this.a.X(g);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),g=new d.b;this.zm(e,g);var h=new d.b,f=this.Uf(b,1);this.zm(f,h);var l=c.kk(a),m=c.Io(a,0),p=new d.b;m.ht(p);if(!g.ub(p)){if(!this.og){var y=g.compare(this.Xg),
p=p.compare(this.Xg);0>y*p&&(this.og=!0)}this.lC(e,this.sf);this.Hj.add(e)}!this.og&&1<l&&(y=g.compare(h),m=m.oc(),g.compare(m)!=y||m.compare(h)!=y?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||(y=h.compare(this.Xg),p=a.compare(this.Xg),0>y*p&&(this.og=!0)),this.lC(f,this.sf),this.Hj.add(f));this.sf.add(b);h=0;for(f=this.sf.size;h<f;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;a=this.zc.da(a);b=this.zc.da(b);var c,e;e=this.Cd.Dm(this.lh(a));var g=this.Cd.Dm(this.lh(b));c=this.a.cc(e);null==c&&(null==this.Vd&&(this.Vd=new d.yb),this.a.Oc(e,this.Vd),c=this.Vd);e=this.a.cc(g);null==e&&(null==this.Kl&&(this.Kl=new d.yb),this.a.Oc(g,this.Kl),e=this.Kl);this.Lj.zn(c);this.Lj.zn(e);this.Lj.Ga(this.ka,!0)&&
(this.og=!0);this.fG(a,b,-1,this.Lj);this.Lj.clear()};c.prototype.VM=function(a,b){this.Nm=!0;b=this.zc.da(b);var c,e=this.Cd.Dm(this.lh(b));c=this.a.cc(e);null==c&&(null==this.Vd&&(this.Vd=new d.yb),this.a.Oc(e,this.Vd),c=this.Vd);e=this.qC(a);this.Lj.zn(c);this.a.Jk(e,this.Zm);this.Lj.Tw(this.ka,this.Zm,!0);this.fG(b,-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,g=0,f=a.size;g<f;g++){var q=a.get(g);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),f=this.se(e),e=this.Ue.qm(e);this.Hr(f,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(a=this.Kg.gc(this.rq(a));-1!=a;a=this.Kg.bb(a))this.a.Yi(this.Kg.da(a),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 g=this.Hj.get(c),h=this.nw(g);-1!=h&&(this.Ue.kd(h,-1),this.Hr(g,-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++)g=this.Hj.get(c),g==this.rp&&
(this.Ht=!0),h=this.nw(g),-1==h&&(h=this.Ue.PA(this.qC(g)),-1==h?(a=this.se(this.Ue.da(this.Ue.tC())),this.Tl(a,g)):this.Hr(g,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 t=this.Ue.da(n);
this.rp=this.se(t);this.a.uc(t,this.Xg);this.Ld.XF(this.Xg.y,this.Xg.x);var m,r=this.fk(this.rp);m=-1==r;if(!m){t=r;do{var p=this.Eo(t);-1==p?(this.Mg.add(t),this.Nk(t,-3)):-3!=p&&c.add(p);t=this.Go(t,this.rp)}while(t!=r)}if(0<c.size){this.Mm=1==c.size&&1==this.Mg.size;m=0;for(r=c.size;m<r;m++)t=this.zc.da(c.get(m)),this.Nk(t,-2);var u=-2,y=-2;m=0;for(r=c.size;m<r;m++){p=c.get(m);if(-2==u){var v=this.zc.ge(p);-1!=v?(t=this.zc.da(v),t=this.Eo(t),-2!=t&&(u=v)):u=-1}-2==y&&(p=this.zc.bb(p),-1!=p?(t=
this.zc.da(p),t=this.Eo(t),-2!=t&&(y=p)):y=-1);if(-2!=u&&-2!=y)break}m=0;for(r=c.size;m<r;m++)p=c.get(m),t=this.zc.da(p),this.zc.kd(p,-1),this.Nk(t,-1);c.clear(!1);this.lE=-1!=u?u:-1;this.iE=-1!=y?y:-1;-1!=u&&-1!=y?this.Mm||this.NK(u,y):-1==u&&-1==y&&(this.Mm=!1)}else m&&(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 f(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),g=this.rr(c);this.yi(g,e);p=this.a.X(c);c=0;for(b-=2;c<b;c++){var f=this.a.X(p),m=this.Ul(p);this.yi(g,m);g=this.rr(p);this.yi(g,m);p=f}this.a.vc(r)?(m=this.Ul(p),this.yi(g,m),g=this.rr(p),this.yi(g,m),this.yi(g,e)):(m=
this.Ul(p),this.yi(g,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(f){function b(a,b,e){f.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,f);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=[],g=0,h=0,f=a.Aa;h<f;h++){var k=a.Hd(h),n=d.pa.Wa(k);if(-1==b[h])for(var t=d.pa.ue(k),k=0;k<n;k++)e[g]=t,g++;else for(t=this.description.fj(b[h]),k=0;k<n;k++)e[g]=this.fa[t],g++,t++}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;a=this.ld(a,b);
c.qa=a;c.va=a;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 g=this.fa[b],g=d.I.truncate(g^g>>>32),a=d.I.kg(g,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 f(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}f.prototype.result=function(){return 0!=this.xp?1:0};f.prototype.DJ=function(b){b=b.Kb(b.Gd(this.Gf,!1));return d.b.Zb(b,this.Gf)<=this.UP?!0:!1};f.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)}}};f.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};f.V=function(b,a,c){a=new f(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()};f.Bd=function(b,a,c,e){var g=new d.i;b.dd(g);g.P(e,e);var h=new f(0==b.Cm(),c,e);b=b.Ca();var l=new d.i;l.K(g);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()};f.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 g=e.hi;if(null!=g){g=g.Kk(a.x,a.y);if(1==g)return 1;if(0==g)return 0}e=e.Ab;if(null!=e)return f.Bd(b,e,a,c)}return f.V(b,a,c)};f.aP=function(b,a,c,e){if(b.s())return 0;var g=new d.i;b.dd(g);g.P(e,e);if(!g.contains(a,c))return 0;g=b.pb;if(null!=g&&(g=g.hi,null!=g)){g=g.Kk(a,c);if(1==g)return 1;if(0==g)return 0}return f.V(b,d.b.Oa(a,
c),e)};f.$O=function(b,a,c){return a.s()?0:f.xl(b,a.w(),c)};f.vD=function(b,a,c,e,g){var h=new d.i;b.dd(h);h.P(e,e);if(!h.contains(c))return 0;var l=new f(!0,c,e);if(null!=g){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=g.xw(k,e);for(k=e.next();-1!=k;k=e.next())if(b.Sb(g.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()};f.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 f(!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()};f.$i=function(b,a,c,e,g){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=f.vD(b,c,a,e,g);if(2==a)throw d.g.ra("internal error");return 1==a?!0:!1};f.An=function(b,a){b=b.F();return 16>b?!1:2*b+Math.log(b)/Math.log(2)*1*a<1*b*a};return f}();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 f(){}f.uD=function(b,a,c){b=d.ff.$O(b,a,c);return 0==b?0:1==b?1:2};f.he=function(b,a,c){b=d.ff.xl(b,a,c);return 0==b?0:1==b?1:2};f.CH=function(b,a,c,e){b=d.ff.aP(b,
a,c,e);return 0==b?0:1==b?1:2};f.gU=function(b,a,c,e){return 0==d.ff.vD(b,a,c,e,null)?0:1};f.tD=function(b,a,c){return 0==d.ff.tD(b,a,c)?0:1};f.ZS=function(b,a,c,e,g){if(a.length<c||g.length<c)throw d.g.N();for(var h=0;h<c;h++)g[h]=f.he(b,a[h],e)};f.eT=function(b,a,c,e,g){if(a.length/2<c||g.length<c)throw d.g.N();for(var h=0;h<c;h++)g[h]=f.CH(b,a[2*h],a[2*h+1],e)};f.nG=function(b,a,c,e,g){if(1736==b.D())f.ZS(b,a,c,e,g);else if(197==b.D()){var h=new d.i;b.o(h);f.jP(h,a,c,e,g)}else throw d.g.ra("invalid_call");
};f.nU=function(b,a,c,e,g){if(1736==b.D())f.eT(b,a,c,e,g);else if(197==b.D()){var h=new d.i;b.o(h);f.mP(h,a,c,e,g)}else throw d.g.xa();};f.jP=function(b,a,c,e,g){if(a.length<c||g.length<c)throw d.g.N();if(b.s())for(e=0;e<c;e++)g[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])?g[e]=1:b.contains(a[e])?g[e]=2:g[e]=0};f.mP=function(b,a,c,e,g){if(a.length/2<c||g.length<c)throw d.g.N();if(b.s())for(e=0;e<c;e++)g[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])?g[e]=1:b.contains(a[2*e],a[2*e+1])?g[e]=2:g[e]=0};f.lT=function(b,a,c,e,d){for(var g=0;g<c;g++)d[g]=b.Eq(a[g],e)?2:0};f.hT=function(b,a,c,e,d){var g=b.pb,f=null;null!=g&&(f=g.hi);for(var g=c,k=0;k<c;k++)if(d[k]=1,null!=f){var n=a[k];0==f.Kk(n.x,n.y)&&(d[k]=0,g--)}if(0!=g)for(b=b.Ca();b.kb()&&0!=g;)for(;b.La()&&0!=g;)for(f=b.ia(),k=0;k<c&&0!=g;k++)1==d[k]&&f.Eq(a[k],e)&&(d[k]=2,g--);for(k=0;k<c;k++)1==d[k]&&(d[k]=0)};f.oG=function(b,a,c,e,g){var h=b.D();if(1607==h)f.hT(b,a,c,e,g);else if(d.T.Lc(h))f.lT(b,
a,c,e,g);else throw d.g.ra("Invalid call.");};return f}();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}(),f=function(){function b(){}b.qo=function(a,b){var c=new d.i;a.o(c);var g=d.Ya.Fm(b),h=new d.i;h.K(g);h.v=c.v;h.B=c.B;h.P(.01*h.ba(),0);g=d.Ia.zd(b,c,!1);return h.contains(c)?a:d.Ed.clip(a,
h,g,0)};b.Rw=function(a,c,e,g){if(!d.Ya.Qo(c))throw d.g.N();var h=d.Ia.Cg(c,a,!1),f=d.Ya.Fm(c),k=d.Ya.Em(c),n=k.Se().Dj,t=d.Ya.ft(k),k=d.Ya.Ts(k),t=t*(2-t),m=new d.Nd;f.wu(m);var r=[[0,0],[0,0]];2==d.Nf.Am(c)?(r[0][0]=b.pu(g,m),r[0][1]=f.Vs(),d.Ya.tu(),f=r[0][0]*n):f=g*n;var p=new d.ca,u=new d.fd;a=u.Eb(a);for(var y=[0],v=new d.b,D=new d.b,x=new d.b,B=new d.b,A=new d.b,z=new d.b,C=u.Vb(a);-1!=C;C=u.bc(C)){var F=u.Cb(C);u.w(F,x);for(var E=!1,I=F=u.X(F);-1!=I;I=u.X(I)){if(I==F){if(E)break;E=!0}u.w(I,
B);if((h<g-x.x&&B.x-g>h||h<g-B.x&&x.x-g>h||h<-B.y&&x.y>h)&&!(Math.abs(x.x-B.x)>=.5*m.aa())&&(2==d.Nf.Am(c)?(r[0][0]=b.pu(x.x,m),r[0][1]=x.y,r[1][0]=b.pu(B.x,m),r[1][1]=B.y,d.Ya.YQ(),A.x=r[0][0]*n,A.y=r[0][1]*n,z.x=r[1][0]*n,z.y=r[1][1]*n):(A.x=x.x*n,A.y=x.y*n,z.x=B.x*n,z.y=B.y*n),z.x=6.283185307179586*(B.x-x.x)/m.aa()+A.x,D.x=f,D.y=b.yH(k,t,A,z,f,e),!isNaN(D.y))){d.zb.Rd(k,t,A.x,A.y,z.x,z.y,p,null,null,e);var H=p.l;d.zb.Rd(k,t,A.x,A.y,D.x,D.y,p,null,null,e);var K=p.l;2==d.Nf.Am(c)?(r[0][0]=D.x/n,
r[0][1]=D.y/n,d.Ya.qN(),v.y=r[0][1],v.x=g):(v.x=g,v.y=D.y/n);y[0]=0<H?d.I.Kr(K/H,0,1):.5;0!=y[0]&&1!=y[0]&&(H=u.Ua(I),u.Mr(H,y,1),u.ic(u.X(H),v.x,v.y))}x.J(B)}}return u.hf(a)};b.aN=function(a,c,e){if(a.s())return a;var g=d.Ya.IC(c);return b.gC(a,0-180*g,360*g,c,e)};b.yH=function(a,c,e,g,h,f){if(3.141592653589793<=Math.abs(e.x-g.x)||!b.Jv(e.x,g.x,h))return NaN;var l;e.x>g.x?l=g:(l=e,e=g);g=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,g,null,f);var q=n.l,r=0,p=1,u=new d.b;
for(u.J(l);q*(p-r)>1E-12*a;){var y=.5*(r+p);d.zb.dk(a,c,l.x,l.y,q*y,g.l,n,m,f);u.x=n.l;u.y=m.l;if(u.x==h)break;if(b.Jv(l.x,u.x,h))p=y;else if(b.Jv(e.x,u.x,h))r=y;else return NaN}return u.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,g){var c=new d.Nd;c.K(b,e);e=g.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,g,h){var c;e.y>g.y?c=g:(c=e,e=g);g=new d.Nd;g.K(c.y,e.y);if(!g.contains(0)||3.141592653589793<=Math.abs(c.x-e.x))return NaN;if(c.x==e.x)return c.x;var f=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,f,null,h);var q=n.l,r=0,p=1,u=new d.b;for(u.J(c);q*(p-r)>1E-12*a;){var y=.5*(r+p);d.zb.dk(a,b,c.x,c.y,q*y,f.l,n,m,h);u.x=n.l;u.y=m.l;g.K(c.y,u.y);if(0==u.y)break;if(g.contains(0))p=y;else if(g.K(e.y,u.y),g.contains(0))r=y;else return NaN}return u.x};
b.gC=function(a,b,e,g,h){var c=new d.i;a.o(c);if(c.s())return a;var f=new d.Nd;c.wu(f);var n=new d.Nd;n.K(b,b+e);if(n.contains(f)&&n.va!=f.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();g=m.mc(0);q=2*m.F();a=!1;for(h=0;h<q;h+=2)if(c=g.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),g.write(h,c);a&&m.ce(1993);return m}if(n.contains(f))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=g.Ko();h=d.wi.local();for(var p=new d.Bg,u=0;;){var y=Math.floor((f.qa-b)/e),v=Math.ceil((f.va-b)/e);if(3<v-y){y=Math.floor(.5*(v+y));m.v=c.v-r;m.B=b+e*y;var D=d.Ed.clip(n,m,a,0);m.v=m.B;m.B=c.B+r;var x=d.Ed.clip(n,m,a,0);p.Nn((y-v)*e,0);x.Oe(p);1736==q?n=h.$(D,x,g,null):(n=D,n.add(x,!1));n.o(c);c.wu(f);u++}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);f=new d.i;for(r=new d.i;c.B>m.v;){u=d.Ed.clip(n,m,a,0);u.o(r);if(1607==q?!u.s()&&(r.aa()>a||r.ba()>a):!u.s()&&(1736!=q||r.aa()>a))u.Oe(p),u.o(r),b.o(f),f.P(a,a),f.jc(r)&&1736==q?b=h.$(b,u,g,null):b.add(u,!1);m.move(e,0);p.shift(-e,0)}return b};b.ZQ=function(a,b,e,g){var c=new d.pe(e.description);c.Pd(e,0,-1);var c=d.Ya.Wl(c,a,b),f=e.F();g.Ja();if(!d.Ya.Qo(a)||f!=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;g.add(e,!1);for(e=0;e<f;e++)a=c.Fa(e),g.ic(e,a);return!0};b.dU=function(){throw d.g.qe();};return b}();d.gh=f})(p||(p={}));(function(d){(function(d){d[d.rightSide=1]="rightSide"})(d.sI||(d.sI={}));var m=function(){function f(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)}f.prototype.UF=function(b){this.Ut=b?this.Ut|1:this.Ut&
-2};f.prototype.s=function(){return 0>this.tn};f.prototype.pw=function(){if(this.s())throw d.g.ra("invalid call");return new d.Va(this.Nq.x,this.Nq.y)};f.prototype.gb=function(){if(this.s())throw d.g.ra("invalid call");return this.tn};f.prototype.sw=function(){if(this.s())throw d.g.ra("invalid call");return this.Da};f.prototype.Xw=function(){return 0!=(this.Ut&1)};f.prototype.tv=function(b,a,c,e){this.Nq.x=b;this.Nq.y=a;this.tn=c;this.Da=e};return f}();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,g=null,h=null;this.Iq&&(a=new d.b,b=new d.b,g=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),g.K(e),g.P(this.ka,this.ka),0<g.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);f.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),g.K(h[k]),g.P(this.ka,this.ka),0<g.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 g=new b;
g.Ab=a;g.Kj=new d.i;g.Vg=new d.ga(0);g.ai=[];g.Fn(c,e);return g};b.GL=function(a,c,e){var g=new b;g.Ab=a;g.Kj=new d.i;g.Vg=new d.ga(0);g.ai=[];g.Ch(c,e);return g};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 f=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 g=0;g<2*e;g+=2){var h=d.I.truncate(3&a>>g);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,g,h,f,k){if(!g.contains(c))return 0==e?-1:this.lt(a,c,0,this.Qb,this.Ze,f,k);if(!f)for(var l=h;-1!=l;l=this.UN(l))this.Ku(l,this.Kw(l)+1);l=new d.i;l.K(g);g=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(g);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(g,r);-1==p&&(p=this.OL(g,r));this.Ku(p,this.Kw(p)+1);g=p;l.K(m[r]);break}if(!q)break}return this.zO(a,c,e,l,g,f,h,k)};b.prototype.zO=function(a,
b,e,d,h,f,k,n){var c=this.AC(h);if(f){if(h==k)return n;this.mM(n);f=n}else f=this.QL(),this.By(f,a),this.IR(this.Us(f),b);this.gS(f,h);-1!=c?(this.Ju(f,c),this.Fu(c,f)):this.DF(h,f);this.Fy(h,f);this.Eu(h,this.Zs(h)+1);this.HK(h)&&this.$M(e,d,h);return f};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,f=this.sq(e);do d=this.Us(f),c=this.qh.O(f,0),d=this.kw(d),this.lt(c,d,a,b,e,!0,f),f=c=this.at(f);while(-1!=f)};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=f})(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++],f=a[c++]*this.SP;d<h;d++)this.Hg[f+(d>>4)]|=this.PD<<2*(d&15)};return b}();d.VT=m;var f=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){b=b.Ca();for(var c=new d.b,g=new d.b;b.kb();)for(;b.La();){var h=b.ia();if(322!=h.D())throw d.g.ra("Internal Error");a.Zi(h.Mb(),c);a.Zi(h.oc(),g);this.ii.zv(c.x,c.y,g.x,g.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,f=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,u=!0;for(r.ma(0,0);b.La();){var y=b.ia();n.x=y.na;n.y=y.ja;m.x=y.la;m.y=y.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);u?(this.Nj.Zi(n,n),r.J(n),u=!1):n.J(r);h.pc(m,n);var y=h.length(),v=.5>y;0==y?h.ma(1,0):(v||r.J(m),
h.scale(e/y),f.ma(-h.y,h.x),k.ma(h.y,-h.x),n.sub(h),m.add(h),c[0].add(n,f),c[1].add(n,k),c[2].add(m,k),c[3].add(m,f),v?p=!0:this.cw(a,c))}else p&&(this.cw(a,c),p=!1),u=!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),f=b*h.aa();b*=h.ba();c.K(this.sk.Af(),Math.max(f,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,g=d.I.truncate(this.tf/2),h=this.Pl,f=d.I.truncate((2*g+31)/32);8<e;){for(e=0;e<g;e++)for(var k=2*e,n=2*e+1,m=0;m<g;m++){var q=2*m,r=2*m+1,p=q>>4,q=2*(q&15),u=r>>4,r=2*(r&15),y=this.Hg[a+
h*k+p]>>q&3,y=y|this.Hg[a+h*k+u]>>r&3,y=y|this.Hg[a+h*n+p]>>q&3,y=y|this.Hg[a+h*n+u]>>r&3;this.Hg[b+f*e+(m>>4)]|=y<<2*(m&15)}e=g;h=f;a=b;g=d.I.truncate(e/2);f=d.I.truncate((2*g+31)/32);b=a+h*e}};b.prototype.Kk=function(a,b){if(!this.sk.contains(a,b))return 0;a=this.fz(a);b=this.gz(b);if(0>a||a>=this.tf||0>b||b>=this.tf)return 0;a=this.Hg[this.Pl*b+(a>>4)]>>2*(a&15)&3;return 0==a?0:1==a?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),g=this.gz(a.C);a=this.gz(a.G);
0>b&&(b=0);0>g&&(g=0);e>=this.tf&&(e=this.tf-1);a>=this.tf&&(a=this.tf-1);if(b>e||g>a)return 0;for(var h=Math.max(e-b,1)*Math.max(a-g,1),f=0,k=this.Pl,n=this.tf,m=0;;){if(32>h||16>n){for(h=g;h<=a;h++)for(var q=b;q<=e;q++)if(m=this.Hg[f+k*h+(q>>4)]>>2*(q&15)&3,1<m)return 2;if(0==m)return 0;if(1==m)return 1}f+=k*n;n=d.I.truncate(n/2);k=d.I.truncate((2*n+31)/32);b=d.I.truncate(b/2);g=d.I.truncate(g/2);e=d.I.truncate(e/2);a=d.I.truncate(a/2);h=Math.max(e-b,1)*Math.max(a-g,1)}};b.prototype.cO=function(){return this.tf*
this.Pl};return b}();d.dA=f})(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,f,k,n){var g=new b;g.Wt=a;g.Jl=c;g.Oi=e;g.ji=d;g.dE=h;g.tU=f;g.uU=k;g.vU=n;return g};return b}(),f=function(){function b(){}
b.vT=function(a,c,e){if(!b.pQ(a))return!1;var g=d.Ia.Cg(c,a,!1);c=!1;d.Wj.vB(a)&&(c=c||a.jv(g,e));g=a.D();1736!=g&&1607!=g||!d.Wj.tB(a)||0==e||(c=c||a.dj(e));1736!=g&&1607!=g||!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=f;f=function(){function b(){this.Tg=[]}b.qy=function(a,c,e,g,h){var f=a.D(),k=c.D();if(197==f){if(197==k)return b.AQ(a,c,e,g);if(33==k)return 2==g?g=1:1==g&&(g=2),b.Iz(c,a,e,g)}else if(33==f){if(197==k)return b.Iz(a,
c,e,g);if(33==k)return b.eR(a,c,e,g)}if(a.s()||c.s())return 4==g?!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==g?!0:!1;n=!1;d.al.Lc(f)&&(f=new d.Xa(a.description),f.Bc(a,!0),a=f,f=1607);d.al.Lc(k)&&(k=new d.Xa(c.description),k.Bc(c,!0),c=k,k=1607);if(197!=f&&197!=k){if(a.fb()<c.fb()||33==f&&550==k)2==g?g=1:1==g&&(g=2)}else 1736!=f&&197!=k&&(2==g?g=1:1==g&&(g=2));switch(f){case 1736:switch(k){case 1736:n=b.vr(a,c,e,g,h);break;
case 1607:n=b.Vl(a,c,e,g,h);break;case 33:n=b.ur(a,c,e,g,h);break;case 550:n=b.tr(a,c,e,g,h);break;case 197:n=b.xD(a,c,e,g,h)}break;case 1607:switch(k){case 1736:n=b.Vl(c,a,e,g,h);break;case 1607:n=b.ey(a,c,e,g,h);break;case 33:n=b.xr(a,c,e,g,h);break;case 550:n=b.wr(a,c,e,g,h);break;case 197:n=b.WE(a,c,e,g)}break;case 33:switch(k){case 1736:n=b.ur(c,a,e,g,h);break;case 1607:n=b.xr(c,a,e,g,h);break;case 550:n=b.pr(c,a,e,g,h)}break;case 550:switch(k){case 1736:n=b.tr(c,a,e,g,h);break;case 1607:n=b.wr(c,
a,e,g,h);break;case 550:n=b.Wx(a,c,e,g,h);break;case 33:n=b.pr(a,c,e,g,h);break;case 197:n=b.oA(a,c,e,g)}break;case 197:switch(k){case 1736:n=b.xD(c,a,e,g,h);break;case 1607:n=b.WE(c,a,e,g);break;case 550:n=b.oA(c,a,e,g)}}return n};b.AQ=function(a,c,e,g){if(a.s()||c.s())return 4==g?!0:!1;var h=new d.i,f=new d.i,k=new d.i;a.o(h);c.o(f);k.K(h);k.Db(f);a=d.Ia.zd(e,k,!1);switch(g){case 4:return b.nj(h,f,a);case 2:return b.Bz(f,h,a);case 1:return b.Bz(h,f,a);case 3:return b.ye(h,f,a);case 8:return b.kT(h,
f,a);case 32:return b.fT(h,f,a);case 16:return b.cT(h,f,a)}return!1};b.Iz=function(a,c,e,g){if(a.s()||c.s())return 4==g?!0:!1;a=a.w();var h=new d.i,f=new d.i;c.o(h);f.K(a);f.Db(h);c=d.Ia.zd(e,f,!1);switch(g){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,g){if(a.s()||c.s())return 4==g?!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(g){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 g=new d.i,h=new d.i;a.o(g);c.o(h);if(!b.ye(g,h,e))return!1;g=b.fc(a,c,!1);if(4==g||1==g||2==g)return!1;if(b.jA(a,c,e))return!0;g=a.$b();h=c.$b();return Math.abs(g-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 g=b.fc(a,c,!1);return 4==g||1==g||2==g?!1:b.wD(a,c,e,d)};b.su=function(a,c,e,g){var h=new d.i,f=new d.i;a.o(h);c.o(f);if(!b.rc(h,f,e))return!1;h=b.fc(a,c,!1);return 4==h||2==h?!1:1==h?!0:b.bC(a,c,e,g)};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 g=b.fc(a,c,!1);return 4==g||1==g?!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,g){var h=new d.i,f=new d.i;a.o(h);c.o(f);if(!b.rc(h,f,e))return!1;h=b.fc(a,c,!1);return 4==h?!1:1==h?!0:b.jC(a,c,e,g)};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 g=b.fc(a,c,!1);if(4==g)return!0;if(1==g)return!1;g=new d.i;a.o(g);g.P(e,e);for(var h=new d.b,f=0;f<
c.F();f++)if(c.w(f,h),g.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,f=!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)f=!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 f?!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,f=new d.i;a.o(h);b.o(f);c.K(h);c.P(e,e);var f=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?f=!0:1==k&&(h=!0)):f=!0;if(h&&f)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,f,k;k=a;for(var n=!1,m=0;m<b.F();m++){f=b.Fa(m);if(!c.contains(f))return!1;
f=d.gd.he(k,f,e);if(1==f)h=!0;else if(0==f)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 g=new d.i,h=new d.i;a.o(g);c.o(h);if(!b.ye(g,h,e))return!1;g=new d.Ka;g.Wc(c,!1);return b.Vv(a,g,e,!0)};b.ER=function(a,c,e){var g=b.fc(a,c,!1);if(4==g)return!0;if(1==g||2==g)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;h=new d.b;g.Yl(h);c=d.gd.he(a,h,e);if(0!=c)return!1;g.YE(h);c=d.gd.he(a,h,
e);if(0!=c)return!1;g.Zl(h);c=d.gd.he(a,h,e);if(0!=c)return!1;g.aF(h);c=d.gd.he(a,h,e);if(0!=c)return!1;c=a.mc(0);h=new d.i;h.K(g);h.P(e,e);for(var f=0,k=a.F();f<k;f++){var n=c.read(2*f),m=c.read(2*f+1);if(h.contains(n,m))return!1}return!b.cA(a,g,e)};b.eH=function(a,c,e,g){var h=b.fc(a,c,!1);if(4==h||1==h||2==h)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;if(f.aa()<=e&&f.ba()<=e)return c=c.qq(),b.yD(a,c,e);if(f.aa()<=e||f.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.CE(a,h,e,g);h=new d.Ka;h.Wc(c,!1);return b.AE(a,h,e,g)};b.WG=function(a,c,e,g){var h=b.fc(a,c,!1);if(4==h||1==h||2==h)return!1;var h=new d.i,f=new d.i;a.o(h);c.o(f);if(b.rc(f,h,e)||f.aa()<=e||f.ba()<=e)return!1;h=new d.Ka;h.Wc(c,!1);return b.wD(a,h,e,g)};b.DH=function(a,c,e){var g=new d.i,h=new d.i;a.o(g);c.o(h);return b.rc(h,g,e)};b.WP=function(a,c,e){var g=new d.i,h=new d.i;a.o(g);c.o(h);if(!b.rc(g,h,e))return!1;g=b.fc(a,c,!1);if(4==g||2==g)return!1;if(1==g)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,g=new d.Va,c.uf(0,g),h.df(g),c.uf(2,g),h.lineTo(g),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,g){var h=new d.i,f=new d.i;a.o(h);c.o(f);if(b.rc(f,h,e)||f.ba()>e&&f.aa()>e||f.ba()<=e&&f.aa()<=e)return!1;h=new d.Xa;f=new d.Va;c.uf(0,f);h.df(f);c.uf(2,f);h.lineTo(f);return b.YC(a,h,e,g)};b.QI=function(a,c,e){var g=new d.i,h=new d.i;a.o(g);c.o(h);return b.ye(g,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 g=new d.qd(0);if(0!=b.Zv(a,c,e,g))return!1;for(var h=new d.pe,f=0;f<g.size;f+=2){var k=g.read(f),n=g.read(f+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 g=new d.qd(0);if(0!=b.Zv(a,c,e,g))return!1;for(var h=new d.pe,f=0;f<g.size;f+=2){var k=g.read(f),
n=g.read(f+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 g=new d.i,h=new d.i;a.o(g);c.o(h);return b.rc(g,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,f=new d.i,k=new d.i;a.o(h);b.o(f);h.P(e,e);f.P(e,e);k.K(h);k.Ga(f);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,u=new d.b,y=!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(f.K(p.x,p.y,p.x,p.y),null==r||(r.Ch(f,e),-1!=r.next())){q.Ch(f,
e);for(var D=q.next();-1!=D;D=q.next())if(c.Sb(m.da(D)),D=c.ia(),D.Kb(D.Gd(p,!1),u),d.b.Zb(p,u)<=v){h.write(n,1);y=!0;break}}if(!y)return!1;a=a.Rf();c=new d.pe;f=new d.b;for(n=0;n<b.F();n++)0!=h.read(n)&&(b.w(n,f),c.zs(f.x,f.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,f=new d.i,k=new d.i;a.o(h);b.o(f);h.P(e,e);f.P(e,e);k.K(h);k.Ga(f);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,u=new d.b,y=!1,v=!1,D=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(f.K(p.x,p.y,p.x,p.y),null!=r&&(r.Ch(f,e),-1==r.next()))v=!0;else{q.Ch(f,e);for(var x=!1,B=q.next();-1!=B;B=q.next())if(c.Sb(m.da(B)),B=c.ia(),B.Kb(B.Gd(p,!1),u),d.b.Zb(p,u)<=D){h.write(n,1);x=y=!0;break}x||(v=!0)}else v=!0;if(!y||!v)return!1;a=a.Rf();c=new d.pe;f=new d.b;for(n=0;n<b.F();n++)0!=h.read(n)&&(b.w(n,f),c.zs(f.x,f.y));return!this.lu(a,
c,e)};b.IH=function(a,c,e){var g=new d.i,h=new d.i;a.o(g);c.o(h);if(!b.rc(g,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 g=new d.i,h=new d.i;a.o(g);c.o(h);return h.ba()>e&&h.aa()>e?!1:b.ye(g,h,e)};b.nI=function(a,c,e){var g=new d.i,h=new d.i;a.o(g);c.o(h);return b.rc(h,g,e)?!1:!b.cA(a,h,e)};b.cJ=function(a,c,e){var g=new d.i,h=new d.i;a.o(g);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,
g=new d.Va,c.uf(0,g),h.df(g),c.uf(2,g),h.lineTo(g),b.cF(a,h,e);a=a.Ca();c=new d.i;g=new d.i;c.K(h);g.K(h);c.P(-e,-e);g.P(e,e);for(var h=!1,f=new d.i,k=new d.i;a.kb();)for(;a.La();){a.ia().o(f);k.K(c);k.Ga(f);if(!k.s()&&(k.ba()>e||k.aa()>e))return!1;k.K(g);k.Ga(f);k.s()||(h=!0)}return h};b.XI=function(a,c,e){var g=new d.i,h=new d.i;a.o(g);c.o(h);if(b.rc(g,h,e)||b.rc(h,g,e)||b.rc(h,g,e)||h.ba()>e&&h.aa()>e||h.ba()<=e&&h.aa()<=e)return!1;g=new d.Xa;h=new d.Va;c.uf(0,h);g.df(h);c.uf(2,h);g.lineTo(h);
return b.iA(a,g,e)};b.WJ=function(a,c,e){var g=new d.i,h=new d.i;a.o(g);c.o(h);if(!b.rc(h,g,e)||h.ba()<=e&&h.aa()<=e)return!1;if(h.ba()<=e||h.aa()<=e)return b.rc(h,g,e);a=a.Ca();c=new d.i;c.K(h);c.P(-e,-e);for(var h=!1,g=new d.i,f=new d.i;a.kb();)for(;a.La();)a.ia().o(g),c.jl(g)?h=!0:(f.K(c),f.Ga(g),!f.s()&&(f.ba()>e||f.aa()>e)&&(h=!0));return h};b.GH=function(a,c,e){var g=new d.i,h=new d.i;c.o(h);a.o(g);if(!b.rc(g,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);g=new d.Xa;h=new d.Va;c.uf(0,h);g.df(h);c.uf(2,h);g.lineTo(h);return b.Wf(g,a,e,!1)};b.MH=function(a,c,e){var g=new d.i,h=new d.i;a.o(g);c.o(h);if(b.rc(h,g,e)||h.ba()<=e&&h.aa()<=e)return!1;if(h.ba()<=e||h.aa()<=e)return g=new d.Xa,h=new d.Va,c.uf(0,h),g.df(h),c.uf(2,h),g.lineTo(h),b.LE(a,g,e);a=a.Ca();c=new d.i;g=new d.i;g.K(h);c.K(h);g.P(-e,-e);c.P(e,e);for(var f=h=!1,k=new d.i,n=new d.i;a.kb();)for(;a.La();)if(a.ia().o(k),f||c.contains(k)||(f=!0),h||(n.K(g),n.Ga(k),!n.s()&&(n.ba()>e||n.aa()>
e)&&(h=!0)),h&&f)return!0;return!1};b.LI=function(a,c,e){var g=new d.i,h=new d.i;a.o(g);c.o(h);return b.ye(g,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 g=new d.i,h=new d.i;a.o(g);c.o(h);return b.rc(g,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,f=0;f<b.F();f++){b.w(f,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 g=new d.i,h=new d.i;a.o(g);c.o(h);return b.ye(g,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 g=new d.i,h=new d.i;a.o(g);c.o(h);return h.ba()>e||h.aa()>e?!1:b.ye(g,h,e)};b.uI=function(a,c,e){var g=new d.i,h=new d.i;a.o(g);c.o(h);if(b.rc(h,g,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,f=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);f.K(c);h.P(e,e);c.ba()>e?f.P(0,-e):f.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>f.C&&b.y<f.G)return!1}else if(b.x>f.v&&b.x<f.B)return!1;k=!0}return k}h.K(c);f.K(c);h.P(e,e);f.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(f.jl(b))return!1;k=!0}return k};b.LG=function(a,c,e){var g=new d.i,h=new d.i;a.o(g);c.o(h);
if(!b.rc(h,g,e))return!1;if(h.ba()<=e&&h.aa()<=e)return b.ye(g,h,e);if(h.ba()<=e||h.aa()<=e){c=!1;var g=new d.i,f=new d.i;g.K(h);f.K(h);h.ba()>e?g.P(0,-e):g.P(-e,0);f.P(e,e);for(var k=new d.b,n=0;n<a.F();n++){a.w(n,k);if(!f.contains(k))return!1;h.ba()>e?k.y>g.C&&k.y<g.G&&(c=!0):k.x>g.v&&k.x<g.B&&(c=!0)}return c}c=!1;g=new d.i;f=new d.i;g.K(h);f.K(h);g.P(-e,-e);f.P(e,e);k=new d.b;for(n=0;n<a.F();n++){a.w(n,k);if(!f.contains(k))return!1;g.jl(k)&&(c=!0)}return c};b.LH=function(a,c,e){var g=new d.i,h=
new d.i;a.o(g);c.o(h);if(!b.rc(g,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 g=new d.i,h=new d.i;a.o(g);c.o(h);if(b.rc(h,g,e)||h.ba()<=e&&h.aa()<=e)return!1;if(h.ba()<=e||h.aa()<=e){c=new d.i;g=new d.i;c.K(h);h.ba()>e?c.P(0,-e):c.P(-e,0);g.K(h);g.P(e,e);for(var f=new d.b,k=!1,n=!1,m=0;m<a.F();m++)if(a.w(m,f),k||(h.ba()>e?f.y>c.C&&f.y<c.G&&(k=!0):f.x>c.v&&f.x<c.B&&(k=!0)),n||g.contains(f)||(n=!0),k&&n)return!0;return!1}c=new d.i;g=new d.i;c.K(h);c.P(-e,-e);
g.K(h);g.P(e,e);f=new d.b;n=k=!1;for(m=0;m<a.F();m++)if(a.w(m,f),!k&&c.jl(f)&&(k=!0),n||g.contains(f)||(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 g=new d.i;g.K(a);return b.ye(g,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 g=a.Af();return b.ax(g,c,e)}if(c.ba()<=e&&c.aa()<=e)return g=c.Af(),b.ax(g,a,e);a.ba()>e&&a.aa()>e&&(c.ba()<=e||c.aa()<=e)?g=c:(g=a,a=c);if(g.ba()<=e||g.aa()<=e){if(a.ba()<=e||a.aa()<=e){c=new d.yb;var h=new d.yb,f=[0,0],k=[0,0],n=new d.b;g.Yl(n);c.ed(n);g.Zl(n);c.vd(n);a.Yl(n);h.ed(n);a.Zl(n);h.vd(n);c.Ga(h,null,f,k,e);return 1!=
c.Ga(h,null,null,null,e)?!1:0==f[0]||1==f[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(g);return!h.s()&&(h.ba()>e||h.aa()>e)?!1:!0}a.P(e,e);h=new d.i;h.K(g);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 g=new d.yb,h=new d.yb,f=[0,0],k=[0,0],n=new d.b;a.Yl(n);g.ed(n);a.Zl(n);g.vd(n);c.Yl(n);h.ed(n);c.Zl(n);
h.vd(n);g.Ga(h,null,f,k,e);return 2!=g.Ga(h,null,null,null,e)?!1:(0<f[0]||1>f[1])&&(0<k[0]||1>k[1])}if(c.ba()<=e||c.aa()<=e)return!1;g=new d.i;g.K(a);g.Ga(c);return g.s()||g.ba()<=e||g.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 g=new d.i;g.K(a);g.P(-e,-e);if(g.jl(c))return!0;a=new d.i;a.K(g);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 g;a.ba()>e&&a.aa()>e?g=c:(g=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(g);return c.s()||c.ba()<=e&&c.aa()<=e?!1:!0}c=new d.yb;var h=new d.yb,f=[0,0],k=[0,0],n=new d.b;g.Yl(n);c.ed(n);g.Zl(n);c.vd(n);a.Yl(n);h.ed(n);a.Zl(n);h.vd(n);c.Ga(h,null,f,k,e);return 1!=c.Ga(h,
null,null,null,e)?!1:0<f[0]&&1>f[1]&&0<k[0]&&1>k[1]};b.ZC=function(a,b,e){var c,h,f=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));f.K(n.Fw());f.P(e,e);if(f.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,f=!0;e*=e;for(var k=0;k<a.ea();k++){if(a.Dc(k)!=b.Dc(k)){f=!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){f=!1;break}if(!f)break}return f?!0:!1};b.OI=function(a,b,e){if(a.F()!=b.F())return!1;var c=new d.b,h=new d.b,f=!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){f=!1;break}return f?!0:!1};b.Pw=function(a,b,e,g,h,f){var c=!1,l;a.F()>b.F()?(g&&(g=!1,c=!0),l=b):(l=a,a=b);b=null;if(h||f||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,u=!0,y=d.Ia.oB(a,r),v=y.Re(),D=e*e,x=0;x<l.F();x++)if(l.w(x,q),r.contains(q)){var B=!1;m.K(q.x,q.y,q.x,q.y);v.Ch(m,e);for(var A=v.next();-1!=A&&!(A=y.da(A),a.w(A,p),d.b.Zb(q,p)<=D&&((h||f||c)&&b.write(A,1),B=!0,g));A=v.next());if(!B&&(u=!1,h||g))return!1}else{if(h||g)return!1;u=!1}if(f&&u)return!1;if(g)return!0;for(m=0;m<a.F();m++)if(1==b.read(m)){if(f)return!0}else if(h||c)return!1;return f?
!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,f=new d.i;c.o(b);a.o(h);b.P(e,e);h.P(e,e);f.K(b);f.Ga(h);for(var h=new d.b,k=new d.b,n=e*e,m=d.Ia.oB(a,f),q=m.Re(),r=0;r<c.F();r++)if(c.w(r,h),f.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,g){function h(a,b){return r.IB(a,b)}var f=!0,k=[0,0],n=[0,0],
t=0,q=new d.ga(0),r=new b,p,u=new d.i,y=new d.i,v=new d.i;a.o(u);c.o(y);u.P(e,e);y.P(e,e);v.K(u);v.Ga(y);a=a.Ca();var y=c.Ca(),D=null,x=D=null,B=c.pb;null!=B?(D=B.Ab,x=B.nn,null==D&&(D=d.Ia.ij(c,v))):D=d.Ia.ij(c,v);c=D.Re();B=null;for(null!=x&&(B=x.Re());a.kb();)for(;a.La();){var A=!1,z=a.ia();z.o(u);if(!u.jc(v))return!1;if(null!=B&&(B.Ch(u,e),-1==B.next()))return f=!1;x=z.$b();c.Fn(z,e);for(p=c.next();-1!=p;p=c.next()){y.Sb(D.da(p));p=y.ia();var C=z.Ga(p,null,k,n,e);if(2==C&&(!g||n[0]<=n[1])){var C=
k[0],F=k[1],E=n[0],I=n[1];if(C*x<=e&&(1-F)*x<=e){A=!0;t=0;q.resize(0);r.Tg.length=0;for(var H=a.Jb(),E=!0;E;){if(a.La()){z=a.ia();x=z.$b();C=z.Ga(p,null,k,n,e);if(2==C&&(!g||n[0]<=n[1])&&(C=k[0],F=k[1],C*x<=e&&(1-F)*x<=e)){H=a.Jb();continue}if(y.La()&&(p=y.ia(),C=z.Ga(p,null,k,n,e),2==C&&(!g||n[0]<=n[1])&&(C=k[0],F=k[1],C*x<=e&&(1-F)*x<=e))){H=a.Jb();continue}}E=!1}H!=a.Jb()&&(a.Sb(H),a.ia());break}else H=a.Jb(),p=m.Oa(H,a.Qa,C,F,y.Jb(),y.Qa,E,I),r.Tg.push(p),q.add(q.size)}}if(!A){if(t==r.Tg.length)return!1;
1<q.size-t&&q.xd(t,q.size,h);for(A=0;t<r.Tg.length;t++)if(p=r.Tg[q.get(t)],!(p.Oi<A&&p.ji<A)){if(x*(p.Oi-A)>e)return!1;A=p.ji;if(x*(1-A)<=e||1==A)break}if(x*(1-A)>e)return!1;t=0;q.resize(0);r.Tg.length=0}}return f};b.iA=function(a,c,e){if(1>b.Zv(a,c,e,null))return!1;var g=new d.i,h=new d.i;a.o(g);c.o(h);var f=b.lm(g,h,e),g=b.lm(h,g,e);return f&&g?!0:f&&!g?!b.Wf(c,a,e,!1):g&&!f?!b.Wf(a,c,e,!1):!b.Wf(a,c,e,!1)&&!b.Wf(c,a,e,!1)};b.Zv=function(a,c,e,g){function h(a,b){return y.IB(a,b)}var f,k;a.Iw()>
c.Iw()?(f=c,k=a):(f=a,k=c);a=f.Ca();c=k.Ca();var n=[0,0],t=[0,0],q=-1,r=0,p,u=new d.ga(0),y=new b,v,D=new d.i,x=new d.i,B=new d.i;f.o(D);k.o(x);D.P(e,e);x.P(e,e);B.K(D);B.Ga(x);f=null;null!=g&&(f=new d.b);p=x=x=null;var A=k.pb;null!=A?(x=A.Ab,p=A.nn,null==x&&(x=d.Ia.ij(k,B))):x=d.Ia.ij(k,B);k=x.Re();A=null;for(null!=p&&(A=p.Re());a.kb();)for(p=0;a.La();){var z=a.ia();z.o(D);if(D.jc(B)&&(null==A||(A.Ch(D,e),-1!=A.next()))){var C=z.$b();k.Fn(z,e);for(var F=k.next();-1!=F;F=k.next()){var E=x.da(F);c.Sb(E);
v=c.ia();var I=v.$b(),H=z.Ga(v,null,n,t,e);if(0<H){var F=n[0],q=t[0],K=2==H?n[1]:NaN,L=2==H?t[1]:NaN;if(2==H){if(C*(K-F)>e)return q=1;var M=C*(K-F);if(c.La()){v=c.ia();H=z.Ga(v,null,n,null,e);if(2==H){var H=n[0],J=n[1],H=C*(J-H);if(M+H>e)return q=1}c.Sb(E);c.ia()}if(!c.wl()){c.oi();v=c.oi();H=z.Ga(v,null,n,null,e);if(2==H&&(H=n[0],J=n[1],H=C*(J-H),M+H>e))return q=1;c.Sb(E);c.ia()}if(a.La()){E=a.Jb();z=a.ia();H=z.Ga(v,null,n,null,e);if(2==H&&(H=n[0],J=n[1],H=C*(J-H),M+H>e))return q=1;a.Sb(E);a.ia()}if(!a.wl()){E=
a.Jb();a.oi();z=a.oi();H=z.Ga(v,null,n,null,e);if(2==H&&(H=n[0],J=n[1],H=I*(J-H),M+H>e))return q=1;a.Sb(E);a.ia()}v=m.Oa(a.Jb(),a.Qa,F,K,c.Jb(),c.Qa,q,L);y.Tg.push(v);u.add(u.size)}q=0;null!=g&&(z.Kb(F,f),g.add(f.x),g.add(f.y))}}if(r<y.Tg.length){u.xd(r,u.size,h);z=0;for(F=y.Tg[u.get(r)].Jl;r<y.Tg.length;r++)if(v=y.Tg[u.get(r)],!(v.Oi<z&&v.ji<z))if(C*(v.Oi-z)>e)p=C*(v.ji-v.Oi),z=v.ji,F=v.Jl;else{v.Jl!=F?(p=C*(v.ji-v.Oi),F=v.Jl):p+=C*(v.ji-v.Oi);if(p>e)return q=1;z=v.ji;if(1==z)break}C*(1-z)>e&&(p=
0);r=0;u.resize(0);y.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 f=a.ek();c.Sb(b);h.Sb(f);b=c.ia();if(0<h.ia().Ga(b,null,null,null,e))return!0}return!1};b.eA=function(a,b,e,g){var c=a.Ca(),f=new d.i,k=new d.i,n=new d.i;a.o(f);b.o(k);f.P(e,e);f.contains(k);k.P(e,e);n.K(f);n.Ga(k);f=a.pb;null!=f?(f=f.Ab,null==f&&(f=d.Ia.ij(a,n))):f=d.Ia.ij(a,n);a=f.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 u=!1,y=a.next();-1!=y;y=a.next())if(c.Sb(f.da(y)),y=c.ia(),y.Kb(y.Gd(m,!1),q),d.b.Zb(q,m)<=r){u=!0;break}if(g){if(!u)return!1}else if(u)return!0}return g?!0:!1};b.ex=function(a,b,e){var c=new d.b,h=e*e,f=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(f.Sb(a.da(k)),f.La()){var k=f.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;f.kb();)for(;f.La();)if(k=f.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),f=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(f,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;f=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,p=a.Ea(n),w=a.Dc(n);p<w;p++)if(q)e.ec(2*p,f),q=!1;else{e.ec(2*p,h);b.J(f);k.J(h);if(0!=c.Nv(b,k))return!0;f.J(h)}}return!1};b.fc=function(a,c,e){var g=a.D(),h=c.D();if(d.T.Th(g)){var f=a.pb;if(null!=f&&(f=f.hi,null!=f))if(33==h){var k=c.w(),k=f.Kk(k.x,k.y);if(1==k)return 1;if(0==k)return 4}else{k=new d.i;c.o(k);k=f.Dn(k);if(1==k)return 1;if(0==k)return 4;if(e&&d.T.Th(h)&&b.zz(c,f))return 1073741824}}if(d.T.Th(h)&&(f=c.pb,null!=f&&(f=f.hi,null!=f)))if(33==
g){a=a.w();k=f.Kk(a.x,a.y);if(1==k)return 2;if(0==k)return 4}else{c=new d.i;a.o(c);k=f.Dn(c);if(1==k)return 2;if(0==k)return 4;if(e&&d.T.Th(g)&&b.zz(a,f))return 1073741824}return 0};b.zz=function(a,b){for(var c=a.F(),g=new d.b,h=0;h<c;h++)if(a.w(h,g),1==b.Kk(g.x,g.y))return!0;return!1};b.AE=function(a,b,e,g){for(var c=1<=a.rj(0)&&1<=b.rj(0),f=a.Ca(),k=b.Ca(),n=[0,0],m=[0,0],q=new d.cl(a,b,e,!1),p=!1;q.next();){var w=q.jk(),u=q.ek();f.Sb(w);k.Sb(u);w=f.ia();u=k.ia().Ga(w,null,m,n,e);if(2==u){p=n[0];
u=n[1];w=w.$b();if(c&&(u-p)*w>e)return!1;p=!0}else if(0!=u){p=n[0];w=m[0];if(0<p&&1>p&&0<w&&1>w)return!1;p=!0}}if(!p)return!1;f=new d.i;k=new d.i;c=new d.i;a.o(f);b.o(k);f.P(1E3*e,1E3*e);k.P(1E3*e,1E3*e);c.K(f);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********",g)};b.wD=function(a,c,e,g){var h=1<=a.rj(0)&&1<=c.rj(0),f=new d.i,k=new d.i,n=new d.i;a.o(f);c.o(k);for(var m=!1,q=b.lm(f,k,e),p=b.lm(k,f,e),w=a.Ca(),u=c.Ca(),y=[0,0],
v=[0,0],D=new d.cl(a,c,e,!1);D.next();){var x=D.jk(),B=D.ek();w.Sb(x);u.Sb(B);B=w.ia();x=u.ia().Ga(B,null,v,y,e);if(2==x){var x=y[0],A=y[1],B=B.$b();if(h&&(A-x)*B>e&&(m=!0,q&&p))return!0}else if(0!=x&&(x=y[0],B=v[0],0<x&&1>x&&0<B&&1>B))return!0}h=new d.i;w=new d.i;h.K(f);h.P(1E3*e,1E3*e);w.K(k);w.P(1E3*e,1E3*e);n.K(h);n.Ga(w);f="";f=m?f+"**":f+"T*";if(q){if(10<c.F()&&(c=d.Ed.clip(c,n,e,0),c.s()))return!1;f+="****"}else f+="T***";if(p){if(10<a.F()&&(a=d.Ed.clip(a,n,e,0),a.s()))return!1;f+="***"}else f+=
"T**";return d.el.vr(a,c,e,f.toString(),g)};b.bC=function(a,c,e,g){var h=[!1],f=b.wB(a,c,e,h);if(h[0])return f;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,g)};b.wB=function(a,b,e,g){g[0]=!1;for(var c=a.Ca(),f=b.Ca(),k=[0,0],n=[0,0],m=new d.cl(a,b,e,!1),q=!1;m.next();){var p=m.jk(),w=m.ek();c.Sb(p,-1);f.Sb(w,-1);p=c.ia();p=f.ia().Ga(p,null,n,k,e);if(0!=p&&(q=!0,1==p&&(p=k[0],w=n[0],0<p&&1>p&&0<w&&1>w)))return g[0]=!0,!1}if(!q){g[0]=!0;k=new d.i;
a.o(k);k.P(e,e);m=a;q=!1;n=new d.i;g=0;for(c=b.ea();g<c;g++)if(0<b.Ha(g)){b.Ti(g,n);if(k.jc(n)){if(f=b.Fa(b.Ea(g)),f=d.ff.xl(m,f,0),0==f)return!1}else return!1;q||(!d.ff.An(a,b.ea()-1)||null!=a.pb&&null!=a.pb.Ab?m=a:(f=new d.Ka,a.copyTo(f),f.dj(1),m=f),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;g=0;for(c=a.ea();g<c;g++)if(0<a.Ha(g)){a.Ti(g,e);if(k.jc(e)&&(f=a.Fa(a.Ea(g)),f=d.ff.xl(n,f,0),1==f))return!1;m||(!d.ff.An(b,a.ea()-1)||null!=b.pb&&null!=b.pb.Ab?
n=b:(f=new d.Ka,b.copyTo(f),f.dj(1),n=f),m=!0)}return!0}return!1};b.CE=function(a,b,e,g){for(var c=a.Ca(),f=b.Ca(),k=[0,0],n=[0,0],m=new d.cl(a,b,e,!1),q=!1;m.next();){var p=m.jk(),w=m.ek();c.Sb(p);f.Sb(w);p=c.ia();p=f.ia().Ga(p,null,n,k,e);if(2==p)q=!0;else if(0!=p){q=k[0];p=n[0];if(0<q&&1>q&&0<p&&1>p)return!1;q=!0}}if(!q)return!1;f=new d.i;k=new d.i;c=new d.i;a.o(f);b.o(k);f.P(1E3*e,1E3*e);k.P(1E3*e,1E3*e);c.K(f);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********",g)};b.YC=function(a,c,e,g){for(var h=a.Ca(),f=c.Ca(),k=[0,0],n=[0,0],m=new d.cl(a,c,e,!1),q=!1;m.next();){var p=m.jk(),w=m.ek();h.Sb(p);f.Sb(w);p=h.ia();p=f.ia().Ga(p,null,n,k,e);if(2==p)q=!0;else if(0!=p){q=k[0];p=n[0];if(0<q&&1>q&&0<p&&1>p)return!0;q=!0}}if(!q)return!1;f=new d.i;k=new d.i;n=new d.i;m=new d.i;h=new d.i;a.o(f);c.o(k);return b.lm(k,f,e)?(n.K(f),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********",g)):e=d.el.Vl(a,c,e,"T*****T**",g)};b.jC=function(a,c,e,g){var h=[!1],f=b.wB(a,c,e,h);if(h[0])return f;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,g)};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){a=this.Tg[a];b=this.Tg[b];return a.Jl<b.Jl||a.Jl==b.Jl&&(a.Wt<b.Wt||a.Wt==b.Wt&&(a.Oi<b.Oi||a.Oi==b.Oi&&(a.ji<b.ji||a.ji==b.ji&&a.dE<b.dE)))?-1:1};return b}();d.hd=f})(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 f;(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"})(f||(f={}));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,g,h){if(9!=g.length)throw d.g.ra("relation string length has to be 9 characters");for(var c=0;9>c;c++){var f=g.charAt(c);if("*"!=f&&"T"!=f&&"F"!=f&&"0"!=f&&"1"!=f&&"2"!=f)throw d.g.ra("relation string");}c=this.YN(g,a.fb(),b.fb());if(0!=c)return d.hd.qy(a,b,e,c,h);c=new d.i;a.o(c);f=new d.i;b.o(f);var n=new d.i;n.K(c);n.Db(f);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,g);c=b.D();f=!1;switch(a.D()){case 1736:switch(c){case 1736:f=this.vr(a,b,e,g,h);break;case 1607:f=this.Vl(a,b,e,g,h);break;case 33:f=this.ur(a,b,e,g,h);break;case 550:f=this.tr(a,b,e,g,h)}break;case 1607:switch(c){case 1736:f=this.Vl(b,a,e,this.Lo(g),h);break;case 1607:f=this.ey(a,b,e,g,h);break;case 33:f=this.xr(a,b,e,g,h);break;case 550:f=this.wr(a,b,e,g,h)}break;case 33:switch(c){case 1736:f=this.ur(b,a,e,this.Lo(g),h);break;case 1607:f=this.xr(b,a,e,this.Lo(g),h);break;
case 33:f=this.KQ(a,b,e,g);break;case 550:f=this.pr(b,a,e,this.Lo(g),h)}break;case 550:switch(c){case 1736:f=this.tr(b,a,e,this.Lo(g),h);break;case 1607:f=this.wr(b,a,e,this.Lo(g),h);break;case 550:f=this.Wx(a,b,e,g,h);break;case 33:f=this.pr(a,b,e,g,h)}break;default:f=!1}return f};b.vr=function(a,c,e,g,h){var f=new b;f.pi();f.si(g);f.vF();var k=new d.i,n=new d.i;a.o(k);c.o(n);g=!1;d.hd.nj(k,n,e)&&(f.Bs(a,c),g=!0);g||(k=d.hd.fc(a,c,!1),4==k?(f.Bs(a,c),g=!0):1==k?(f.Bv(c),g=!0):2==k&&(f.$A(a),g=!0));
g||(g=new d.fd,a=g.Eb(a),c=g.Eb(c),f.In(g,e,h),f.so(a,c),f.h.xg());return b.Mf(f.A,f.Hc)};b.su=function(a,c,e,g){var h=new b;h.pi();h.si("T*****F**");h.vF();var f=new d.i,k=new d.i;a.o(f);c.o(k);var n=!1;d.hd.nj(f,k,e)&&(h.Bs(a,c),n=!0);n||(f=d.hd.fc(a,c,!1),4==f?(h.Bs(a,c),n=!0):1==f?(h.Bv(c),n=!0):2==f&&(h.$A(a),n=!0));if(n)return f=this.Mf(h.A,h.Hc);n=new d.fd;a=n.Eb(a);f=n.Eb(c);d.aj.$(n,e,g,!1);e=n.hf(f).Rf();n.xo(0,!0,!0);d.mm.$(n,a,-1,!1,g);if(0==n.F(a))return!1;d.mm.$(n,f,-1,!1,g);h.Op(n,
g);c=0==n.F(f);if(!c&&(h.so(a,f),h.h.xg(),f=this.Mf(h.A,h.Hc),!f))return f;a=n.hf(a);n=new d.fd;a=n.Eb(a);f=n.Eb(e);h.Op(n,g);h.Xd=0;h.pi();h.si(c?"T*****F**":"******F**");h.wy();h.so(a,f);h.h.xg();return f=this.Mf(h.A,h.Hc)};b.Vl=function(a,c,e,g,h){var f=new b;f.pi();f.si(g);f.wy();var k=new d.i,n=new d.i;a.o(k);c.o(n);g=!1;d.hd.nj(k,n,e)&&(f.Cs(a,c),g=!0);g||(k=d.hd.fc(a,c,!1),4==k?(f.Cs(a,c),g=!0):1==k&&(f.aB(c),g=!0));g||(g=new d.fd,a=g.Eb(a),c=g.Eb(c),f.In(g,e,h),f.Jg=f.h.uo(),b.es(c,f.h,f.Jg),
f.so(a,c),f.h.vo(f.Jg),f.h.xg());return b.Mf(f.A,f.Hc)};b.dy=function(a,c,e,g){var h=new b;h.pi();h.si("T*****F**");h.wy();var f=new d.i,k=new d.i;a.o(f);c.o(k);var n=!1;d.hd.nj(f,k,e)&&(h.Cs(a,c),n=!0);n||(f=d.hd.fc(a,c,!1),4==f?(h.Cs(a,c),n=!0):1==f&&(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,g);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,g,h){var f=new b;f.pi();f.si(g);f.wF();var k=new d.i,n=new d.i;a.o(k);
c.o(n);g=!1;d.hd.nj(k,n,e)&&(f.Ds(a),g=!0);g||(k=d.hd.fc(a,c,!1),4==k?(f.Ds(a),g=!0):1==k&&(f.cK(),g=!0));g||(g=new d.fd,a=g.Eb(a),c=g.Eb(c),f.In(g,e,h),f.Pv(a,c),f.h.xg());return b.Mf(f.A,f.Hc)};b.ey=function(a,c,e,g,h){var f=new b;f.pi();f.si(g);f.ZR();g=new d.i;var k=new d.i;a.o(g);c.o(k);var n=!1;d.hd.nj(g,k,e)&&(f.CD(a,c),n=!0);n||4!=d.hd.fc(a,c,!1)||(f.CD(a,c),n=!0);n||(g=new d.fd,a=g.Eb(a),c=g.Eb(c),f.In(g,e,h),f.ph=f.h.uo(),f.Jg=f.h.uo(),b.es(a,f.h,f.ph),b.es(c,f.h,f.Jg),f.so(a,c),f.h.vo(f.ph),
f.h.vo(f.Jg),f.h.xg());return b.Mf(f.A,f.Hc)};b.wr=function(a,c,e,g,h){var f=new b;f.pi();f.si(g);f.KF();g=new d.i;var k=new d.i;a.o(g);c.o(k);var n=!1;d.hd.nj(g,k,e)&&(f.dx(a),n=!0);n||4!=d.hd.fc(a,c,!1)||(f.dx(a),n=!0);n||(g=new d.fd,a=g.Eb(a),c=g.Eb(c),f.In(g,e,h),f.ph=f.h.uo(),b.es(a,f.h,f.ph),f.Pv(a,c),f.h.vo(f.ph),f.h.xg());return b.Mf(f.A,f.Hc)};b.Wx=function(a,c,e,g,h){var f=new b;f.pi();f.si(g);f.PF();g=new d.i;var k=new d.i;a.o(g);c.o(k);var n=!1;d.hd.nj(g,k,e)&&(f.PE(),n=!0);n||(g=new d.fd,
a=g.Eb(a),c=g.Eb(c),f.In(g,e,h),f.Pv(a,c),f.h.xg());return b.Mf(f.A,f.Hc)};b.ur=function(a,c,e,g){var h=new b;h.pi();h.si(g);h.wF();var f=new d.i;a.o(f);c=c.w();var k=!1;d.hd.ru(c,f,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,g)};b.xr=function(a,c,e,g,h){var f=new b;f.pi();f.si(g);
f.KF();var k=new d.i;a.o(k);g=c.w();var n=!1;d.hd.ru(g,k,e)&&(f.dx(a),n=!0);if(!n){var k=null,m=n=!1;if(f.Y[0]||f.Y[6])d.hd.ex(a,g,e)?(f.Y[0]&&(k=d.Hh.il(a,h),m=!d.hd.or(k,g,e),n=!0,f.A[0]=m?-1:0),f.A[6]=-1):(f.A[0]=-1,f.A[6]=0);f.Y[3]&&(null!=k&&k.s()?f.A[3]=-1:(n||(null==k&&(k=d.Hh.il(a,h)),m=!d.hd.or(k,g,e),n=!0),f.A[3]=m?0:-1));f.Y[5]&&(null!=k&&k.s()?f.A[5]=-1:n&&!m?f.A[5]=0:(null==k&&(k=d.Hh.il(a,h)),h=d.hd.mu(k,c,e),f.A[5]=h?-1:0));f.Y[2]&&(0!=a.$b()?f.A[2]=1:(h=new d.pe(a.description),h.Pd(a,
0,a.F()),a=d.hd.mu(h,c,e),f.A[2]=a?-1:0))}return this.Mf(f.A,f.Hc)};b.pr=function(a,c,e,g){var h=new b;h.pi();h.si(g);h.PF();var f=new d.i;a.o(f);c=c.w();var k=!1;d.hd.ru(c,f,e)&&(h.PE(),k=!0);if(!k){f=!1;k=!0;e*=e;for(var n=0;n<a.F();n++){var m=a.Fa(n);d.b.Zb(m,c)<=e?f=!0:k=!1;if(f&&!k)break}f?(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,g)};b.KQ=function(a,c,e,g){a=a.w();c=c.w();for(var h=[],f=0;9>f;f++)h[f]=-1;d.b.Zb(a,c)<=e*e?h[0]=0:(h[2]=0,h[6]=0);h[8]=2;return b.Mf(h,
g)};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 f=d,k=0;do 0!=(b.Gg(f)&a)&&k++,f=b.Wb(b.sa(f));while(f!=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,g,h){if(-1!=b||-1!=g)("T"!=e&&"F"!=e&&-1!=b||"T"!=h&&"F"!=h&&-1!=g?0!=a.Mh():1)?(-1!=b&&(this.A[b]=2),-1!=g&&(this.A[g]=1)):(-1!=g&&(this.A[g]=-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),g=this.h.md(c);0==(g&b)&&0!=(this.h.Qe(a)&b)&&(a=this.h.Sf(c,d),0!=(g&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),g=this.h.md(c);0==(g&b)&&0==(this.h.Qe(a)&b)&&(a=this.h.Sf(c,d),0!=(g&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,f){if(0!=this.A[f]&&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[f]=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;a=this.h.ya(a);b=this.h.ya(b);this.ni=this.h.Eg();for(var g=this.h.Be;-1!=g;g=this.h.Bf(g)){var h=this.h.te(g);if(-1==h){if(-1!=this.Nl)switch(this.Nl){case 3:c=this.bB(g,a,b);break;case 4:c=this.DD(g,a,b);break;default:throw d.g.ra("internal error");}}else{var f=h;do{var k=f;if(1!=this.h.tb(k,
this.ni)){do{switch(this.$t){case 0:c=this.aK(k,a,b);break;case 1:c=this.bK(k,a,b);break;case 2:c=this.uP(k,a,b);break;default:throw d.g.ra("internal error");}if(c)break;this.h.Bb(k,this.ni,1);k=this.h.Wb(k)}while(k!=f&&!c)}if(c)break;f=this.h.Wb(this.h.sa(k))}while(f!=h);if(c)break}}c||this.SF();this.h.kh(this.ni)};b.prototype.Pv=function(a,b){var c=!1;a=this.h.ya(a);b=this.h.ya(b);for(var g=this.h.Be;-1!=g;g=this.h.Bf(g)){switch(this.Nl){case 3:c=this.bB(g,a,b);break;case 4:c=this.DD(g,a,b);break;
case 5:c=this.JQ(g,a,b);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)return c=new d.Xa(a.description),b=new d.Va,a.uf(0,b),c.df(b),a.uf(2,b),c.lineTo(b),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 f=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 g;null==a?(a=c.a,a.Oc(c.Jw(d),
this.Kl),a=this.Kl,g=this.Kl.xe(this.me.Zg,0)):g=a.xe(this.me.Zg,0);e==g&&(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),g=a.xe(b,0));return e<g?-1:e>g?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 f(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 g=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 f=this.Dk.getData(h);this.a.uc(f,g);g.y!=this.Zg&&0!=b.size&&(a=this.yr(b)||a,this.Ld.reset(),b.clear(!1));
b.add(f);this.Zg=g.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);g=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(g),b),g=b,b=h;b=this.a.bc(g)}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 f=a.get(c);-1!=f&&this.bD(f,-1)}for(c=0;c<this.Rl.size&&0<this.lr;c++)if(a=this.Rl.get(c),f=this.$a.Dw(this.Za.da(a)),h=-1,0==this.a.Ei(f,this.Ak)){for(var f=this.Za.ge(a),k=a,n;-1!=f;){var p=this.Za.da(f),q=this.$a.Dw(p),r=this.a.Ei(q,this.Ak);if(0!=r){h=q;break}k=f;f=this.Za.ge(f)}-1==f?(n=!0,f=k):(p=this.Za.da(f),n=this.$a.ot(p),f=this.Za.bb(f),n=!n);do{p=this.Za.da(f);
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=f;f=this.Za.bb(f);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),f=this.a.Ra(d,this.fn),k=this.a.Ra(d,this.br);if(-1!=f){var n=this.Za.da(f);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!=f&&-1!=k?(this.Za.kd(f,-1),this.Za.kd(k,-1),a.set(b,-1)):n=-1!=f?f: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 f=this.a.X(a);this.a.uc(f,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(f,this.fn);-1==n?this.a.lb(f,this.fn,m):this.a.lb(f,this.br,m);f=this.a.rd(a);0==this.a.Ei(f,this.Ak)&&
this.Rl.add(m)}f=this.a.Ua(a);this.a.uc(f,e);c.y<e.y&&(k=!0,n=this.$a.GE(f),-1==b?m=this.Za.addElement(n,-1):(m=b,this.Za.Vi(m,n)),n=this.a.Ra(f,this.fn),-1==n?this.a.lb(f,this.fn,m):this.a.lb(f,this.br,m),f=this.a.rd(a),0==this.a.Ei(f,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),g=-1,h=-1,f=new d.b;f.Eh();for(var k=-1,n=-1,m=-1,p=new d.b,r=this.Dk.gc(this.Dk.Wd);-1!=r;r=this.Dk.bb(r)){var w=
this.Dk.getData(r);this.a.uc(w,p);var u=this.a.rd(w);f.ub(p)&&n==u?(-1==h&&(g=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(u,g)&&(this.a.Rp(u,g,k),a.add(u))),this.a.lb(w,h,m),b.JF(b.tc()+1)):(m=-1,f.J(p));k=w;n=u}if(0==a.size)return!1;f=new d.ga(0);k=new d.ga(0);n=0;for(m=a.size;n<m;n++){var u=a.get(n),y=this.a.Ei(u,g),w=this.a.Ra(y,h);f.clear(!1);k.clear(!1);f.add(y);k.add(w);for(w=this.a.X(y);w!=y;w=this.a.X(w)){var v=w,p=this.a.Ra(v,h);if(-1!=p)if(0==k.size)k.add(p),
f.add(v);else if(k.tc()==p){var r=f.tc(),D=this.a.X(r),y=this.a.X(v);this.a.Sc(r,y);this.a.Tc(y,r);this.a.Sc(v,D);this.a.Tc(D,v);v=[!1];D=this.a.aD(this.U,D,this.a.Cb(u),v);this.a.lb(w,h,-1);v[0]&&this.a.Dh(u,y);w=this.a.Ha(u);y=this.a.Ha(D);w-=y;this.a.hm(u,w);b.set(p,b.get(p)-1);1==b.get(p)&&(b.set(p,0),k.af(),f.af());w=y=r}else f.add(w),k.add(p)}}this.a.ty(g);this.a.bf(h);return!0};return a}();d.AI=b})(p||(p={}));(function(d){var m=function(){function f(){}f.prototype.Ag=function(){this.Mx=this.ib=
null};f.prototype.get=function(){return this.Mx};f.prototype.set=function(b){this.Mx=b;if(null!=b)throw 322==b.D()&&(this.ib=b),d.g.wa();};f.prototype.create=function(b){if(322==b)this.mq();else throw d.g.ra("Not Implemented");};f.prototype.mq=function(){null==this.ib&&(this.ib=new d.yb);this.Mx=this.ib};return f}();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}}(),f=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),g=!1,h=this.an[0],f=this.an[1];if(b||0!=(h.ri.fq(f.ri,a,!0)&5)){if(322==h.ri.D()&&(b=h.ri,322==f.ri.D())){var k=f.ri,n=d.yb.ov(b,k,null,this.op,this.Ij,a);if(0==n)throw d.yb.ov(b,k,null,this.op,this.Ij,a),d.g.wa();a=Array(9);d.I.Ps(a,null);for(var m=0;m<n;m++){var p=this.op[m],r=this.Ij[m],
w=h.ky,u=1;0==p?(w=h.ly,u=h.ez):1==p&&(w=h.jy,u=h.dz);var y=f.ky,v=1;0==r?(y=f.ly,v=f.ez):1==r&&(y=f.jy,v=f.dz);var D=new d.b;w==y?(w=new d.b,b.Kb(p,w),p=new d.b,k.Kb(r,p),r=u+v,v/=r,d.vi.BD(w,p,v,D),d.b.Zb(D,w)+d.b.Zb(D,p)>c&&(g=!0)):w>y?(b.Kb(p,D),p=new d.b,k.Kb(r,p),d.b.Zb(D,p)>c&&(g=!0)):(k.Kb(r,D),w=new d.b,b.Kb(p,w),d.b.Zb(D,w)>c&&(g=!0));a[m]=D}h=0;f=-1;for(m=0;m<=n;m++)v=m<n?this.op[m]:1,v!=h&&(c=this.Zx(),b.Bi(h,v,c),-1!=f&&c.get().ed(a[f]),m!=n&&c.get().vd(a[m]),h=v,this.ir.push(this.nu(c.get()))),
f=m;b=[0,0,0,0,0,0,0,0,0];for(m=0;m<n;m++)b[m]=m;1<n&&this.Ij[0]>this.Ij[1]&&(v=this.Ij[0],this.Ij[0]=this.Ij[1],this.Ij[1]=v,m=b[0],b[0]=b[1],b[1]=m);h=0;f=-1;for(m=0;m<=n;m++)v=m<n?this.Ij[m]:1,v!=h&&(c=this.Zx(),k.Bi(h,v,c),-1!=f&&(h=b[f],c.get().ed(a[h])),m!=n&&(h=b[m],c.get().vd(a[h])),h=v,this.bu.push(this.nu(c.get()))),f=m;return g}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 f=c.ky;e=1;0==h?(f=c.ly,e=c.ez):1==h&&(f=c.jy,e=c.dz);c=new d.b;0==f?(f=new d.b,a.Kb(h,f),b=b.w(),d.vi.BD(f,b,1/(e+1),c)):0<f?(c=new d.b,a.Kb(h,c)):c=b.w();e=0;h=-1;for(f=0;1>=f;f++){b=1>f?this.op[f]:1;if(b!=e){var k=this.Zx();a.Bi(e,b,k);-1!=h&&k.get().ed(c);1!=f&&k.get().vd(c);e=b;this.ir.push(this.nu(k.get()))}h=f}this.nf.ic(c)}else throw d.g.wa();};return b}();d.gA=f})(p||(p={}));(function(d){var m=function(){function f(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}f.Yn=function(b,a){if(0>a||a>=b.F())throw d.g.Uc();var c=new f(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};f.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 f(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};f.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};f.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};f.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};f.prototype.yR=function(){this.ze=-1;this.Gc=0};f.prototype.zR=function(){this.Gc=this.Ee;this.ze=-1};f.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)};f.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};f.prototype.Lk=function(){this.Ee=this.Gc=this.ze=-1;this.Sg=0;this.zk=this.Qa=-1};f.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};f.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};f.prototype.lD=function(){return this.ze==this.Ee-1&&this.ab.vc(this.Qa)};
f.prototype.NR=function(){this.zl=!0};f.prototype.Jb=function(){return this.ab.jb.f[this.Qa]+this.ze};f.prototype.uJ=function(){return this.ab.Ea(this.Qa)};f.prototype.Bm=function(){return this.lD()?this.ab.Ea(this.Qa):this.Jb()+1};f.prototype.wl=function(){return 0==this.ze};f.prototype.Jm=function(){return this.ze==this.Ee-1};f.prototype.La=function(){return this.Gc<this.Ee};f.prototype.Ow=function(){return 0<this.Gc};f.prototype.vm=function(){var b=new f(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};f.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,g=a.Aa;e<g;e++)for(var h=a.Hd(e),f=d.pa.Wa(h),k=0;k<f;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)}};f.prototype.YO=function(){return this.Qa==this.ab.ea()-1};return f}();d.GI=m})(p||(p={}));(function(d){var m=function(){function f(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)}f.prototype.ya=function(){return this.ua};f.prototype.next=function(){return this.ua<this.Wh-1?
(this.ua++,null!=this.ZD?this.ZD:this.DP[this.ua]):null};return f}();d.Pc=m})(p||(p={}));(function(d){var m=function(){return function(){this.next=null}}(),f=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,g){if(b!=g){var c=1;b>g&&(c=a,a=e,e=c,c=
b,b=g,g=c,c=-1);if(!(0>g||b>=this.vj)){0>a&&0>e?e=a=-1:a>=this.eh&&e>=this.eh&&(e=a=this.eh);var f=(e-a)/(g-b);g>this.vj&&(g=this.vj,e=f*(g-b)+a);0>b&&(a=f*(0-b)+a,b=0);var k=Math.max(this.eh+1,8388607);-8388607>a?(b=(0-a)/f+b,a=0):a>k&&(b=(this.eh-a)/f+b,a=this.eh);-8388607>e?g=(0-a)/f+b:e>k&&(g=(this.eh-a)/f+b);b=d.I.truncate(b);g=d.I.truncate(g);b!=g&&(e=new m,e.x=d.I.truncate(4294967296*a),e.y=b,e.G=g,e.pM=d.I.truncate(4294967296*f),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)),g=c.next;null!=g;g=g.next)if(a=this.aC?a^1:a+g.dir,g.x>c.x){var h=d.I.truncate(d.I.FD(g.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++]=
g.y,this.Mk==this.am.length&&(this.Kv.XB(this.am,this.Mk),this.Mk=0)));c=g;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 g=0,e=a;null!=e;e=e.next)this.wf[g++]=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(g=1;g<c;g++)e.next=this.wf[g],e=this.wf[g],this.wf[g]=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=f})(p||(p={}));(function(d){var m=function(){function f(){}f.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)){a=this.a.X(b);if(a!=b){var e=this.a.rd(a);if(e==c){this.a.Dh(c,a);return}a=this.a.Ua(b);if(a!=b&&(e=this.a.rd(a),e==c)){this.a.Dh(c,a);return}}this.a.Dh(c,-1);this.a.Wi(c,-1)}};f.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,g=0,h=!0;e!=this.yk;){var f=this.$d.getData(e),k=new d.b;
this.a.uc(f,k);h&&(this.a.uc(f,c),h=!1);var k=this.a.Ua(f),n=this.a.X(f);-559038737!=this.a.Ra(k,this.fg)&&(this.nh.add(k),this.a.lb(k,this.fg,-559038737),this.Mq.add(f),this.ie.add(g++));-559038737!=this.a.Ra(n,this.fg)&&(this.nh.add(n),this.a.lb(n,this.fg,-559038737),this.Mq.add(f),this.ie.add(g++));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(g=this.ie.size;e<g;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(g=this.ie.size;e<g;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};f.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,f=this.ie.size;h<f&&-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 p=this.os(n,k),r=this.os(m,d),w=p?this.a.Ua(n):this.a.X(n),u=r?this.a.Ua(m):this.a.X(m),y=!1;this.io(n)?y=!0:this.io(m)?y=!0:this.io(k)?y=!0:this.io(d)?y=!0:this.io(w)?y=!0:this.io(u)&&(y=!0);!y&&this.a.Cq(k,d)&&(y=!0,this.BA(p,r,n,k,m,d));!y&&this.a.Cq(w,u)&&(y=!0,this.BA(!p,!r,n,w,m,u));y&&(a=!0);c=c||y;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,f=this.ie.size;h<f&&-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)),p=this.os(n,k),r=this.os(m,d),w=p?this.a.Ua(n):this.a.X(n),u=r?this.a.Ua(m):this.a.X(m),this.qJ(p,r,k,n,w,d,m,u)&&(a=!0),e=this.fl(e),d=this.fl(e);return a};f.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 g=this.a.Vb(this.U);-1!=g;g=this.a.bc(g))for(var h=
this.a.Cb(g),f=0,k=this.a.Ha(g);f<k;f++)e.add(h),h=this.a.X(h);var n=this.a.cd.f,m=this.a.cd.Ic;this.a.wb.kc();var p=this.a.wb.Ba[0].f;e.xd(0,c,function(a,b){var c=n[m*a],e=n[m*b],d=p[2*c],c=p[2*c+1],g=p[2*e],e=p[2*e+1],d=c<e?-1:c>e?1:d<g?-1:d>g?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(g=0;g<c;g++)h=e.get(g),f=this.$d.addElement(this.Ox,h),this.a.lb(h,this.vp,f);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,g=new d.b,f=new d.b,r=this.$d.gc(this.Ox);-1!=r;)h=this.$d.getData(r),-1!=this.Xm?(this.a.uc(h,f),g.ub(f))?k++:(g.J(f),this.yk=r,0<k&&(h=this.yA())&&(e=!0,-1!=this.yk&&(h=this.$d.getData(this.yk),this.a.uc(h,g))),this.Xm=r=this.yk,k=0):(this.Xm=r,this.a.uc(this.$d.getData(r),g),k=0),-1!=r&&(r=this.$d.bb(r));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};f.prototype.os=function(b,a){return this.a.X(a)==b?!1:!0};f.prototype.qJ=function(b,a,c,e,d,h,f,k){if(e==f)return this.hj(c),this.hj(h),!1;var g=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]=g;c[1]=0;w[1]=l;c[2]=1;w[2]=m;c[3]=1;w[3]=p;for(g=1;4>g;g++){l=w[g];m=c[g];for(p=g-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,f),this.a.Tc(f,d)):(this.a.Tc(k,e),this.a.Sc(e,k),this.a.Tc(d,f),this.a.Sc(f,d)):b?(this.a.Tc(e,h),this.a.Sc(h,e),this.a.Tc(f,d),this.a.Sc(d,f)):(this.a.Sc(e,h),this.a.Tc(h,e),this.a.Sc(f,d),this.a.Tc(d,f));return!0};f.prototype.BA=function(b,a,c,e,d,h){this.pU?this.BJ():this.AJ(b,a,c,e,d,h)};f.prototype.BJ=function(){throw d.g.ra("not implemented.");};f.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 g=b?c:e,f=a?d:h;b=b?e:c;a=a?h:d;d=!1;this.a.Sc(g,f);this.a.Sc(f,g);this.a.Tc(b,a);this.a.Tc(a,b);for(h=a;h!=f;)c=this.a.Ua(h),e=this.a.X(h),
this.a.Tc(h,e),this.a.Sc(h,c),d=d||h==g,h=e;d||(c=this.a.Ua(f),e=this.a.X(f),this.a.Tc(f,e),this.a.Sc(f,c));this.pm(f,g);this.Jh(f,!0);this.a.Ui(f,!1);this.hj(g);this.pm(a,b);this.Jh(a,!0);this.a.Ui(a,!1);this.hj(b)}};f.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),f=this.a.X(c);this.a.Cq(h,f)?(b=!0,this.Jh(c,!1),this.a.vf(c,!0),this.Jh(f,!1),this.a.vf(f,!0),c=h,e=0,d=this.a.Ha(a)):(c=f,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};f.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};f.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)};f.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};f.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)};f.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))};f.$=function(b,a,c,e,d){var g=new f;g.a=b;g.U=a;g.yx=c;g.Qt=e;g.oe=d;return g.CJ()};f.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,g=this.nh.get(a);this.a.uc(g,c);if(e.ub(c))return 0;b=this.Mq.get(b);g=new d.b;this.a.uc(b,g);a=this.Mq.get(a);b=new d.b;this.a.uc(a,b);a=new d.b;a.pc(e,g);e=new d.b;e.pc(c,b);return d.b.cq(a,e)};return f}();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 f(){this.fo="";this.mi=0;this.Sl=null}f.prototype.Qc=function(){return this.mi};f.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};f.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)};f.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};
f.create=function(b){if(0>=b)throw d.g.N("Invalid or unsupported wkid: "+b);var a=new f;a.mi=b;return a};f.NL=function(b){if(null==b||0==b.length)throw d.g.N("Cannot create SpatialReference from null or empty text.");var a=new f;a.Sl=b;return a};f.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};f.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};f.prototype.toString=
function(){return"[ tol: "+this.xq()+"; wkid: "+this.Qc()+"; wkt: "+this.Sl+"]"};f.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};f.prototype.xq=function(){return this.Ko()};f.jU=!0;f.ET=2147483645;f.FT=9007199254740990;return f}();d.Nf=
m})(p||(p={}));(function(d){function m(a,b){89.99999<b?b=89.99999:-89.99999>b&&(b=-89.99999);b*=.017453292519943;return[111319.49079327169*a,3189068.5*Math.log((1+Math.sin(b))/(1-Math.sin(b)))]}function f(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())e=b(a.R.v,a.R.C,!0),a=b(a.R.B,a.R.G,!0),c.K(e[0],e[1],a[0],a[1]);else for(e=new d.b,a=0;a<c.F();a++){c.w(a,e);var g=b(e.x,e.y,!0);e.ma(g[0],g[1]);c.ic(a,e)}return c}function a(a){return b(a,f)}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 g=1/298.257223563,h=Math.sin(c);c=Math.cos(c);var f=(1-g)*Math.tan(a);a=1/Math.sqrt(1+f*f);for(var k=f*a,l=Math.atan2(f,c),f=a*h*a*h,m=1-f,n=2.7233160610754688E11*m/4.040829998466145E13,p=1+n/16384*(4096+n*(-768+n*(320-175*n))),x=n/1024*(256+n*(-128+n*(74-47*n))),n=e/(6356752.31424518*p),B=2*Math.PI,A,z,C,E;1E-12<Math.abs(n-B);)C=Math.cos(2*l+n),A=Math.sin(n),z=Math.cos(n),E=x*A*(C+x/4*(z*(-1+2*C*C)-x/6*C*(-3+4*A*A)*(-3+4*C*C))),B=n,n=e/(6356752.31424518*p)+E;e=k*A-a*z*c;m=g/
16*m*(4+g*(4-3*m));return d.b.Oa((b+(Math.atan2(A*h,a*z-k*A*c)-(1-m)*g*Math.sqrt(f)*(n+m*A*(C+m*z*(-1+2*C*C)))))/(Math.PI/180),Math.atan2(k*z+a*A*c,(1-g)*Math.sqrt(f+e*e))/(Math.PI/180))};a.cN=function(a,b,c,e){var d=1/298.257223563,g=e-b,h=Math.atan((1-d)*Math.tan(a)),f=Math.atan((1-d)*Math.tan(c)),k=Math.sin(h),h=Math.cos(h),l=Math.sin(f),f=Math.cos(f),m=g,n,p=1E3,B,A,z,C,E,G,I;do{z=Math.sin(m);C=Math.cos(m);A=Math.sqrt(f*z*f*z+(h*l-k*f*C)*(h*l-k*f*C));if(0===A)return 0;C=k*l+h*f*C;E=Math.atan2(A,
C);G=h*f*z/A;B=1-G*G;z=C-2*k*l/B;isNaN(z)&&(z=0);I=d/16*B*(4+d*(4-3*B));n=m;m=g+(1-I)*d*G*(E+I*A*(z+I*C*(-1+2*z*z)))}while(1E-12<Math.abs(m-n)&&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*B/4.040829998466145E13;b=a/1024*(256+a*(-128+a*(74-47*a)));return{azimuth:Math.atan2(f*Math.sin(m),h*
l-k*f*Math.cos(m)),lN:6356752.31424518*(1+a/16384*(4096+a*(-768+a*(320-175*a))))*(E-b*A*(z+b/4*(C*(-1+2*z*z)-b/6*z*(-3+4*A*A)*(-3+4*z*z)))),yU:Math.atan2(h*Math.sin(m),h*l*Math.cos(m)-k*f)}};a.oT=function(a){var b=a.hasAttribute(1),c=a.hasAttribute(2),e=[],g=a.ea(),h=null,f=null;b&&(h=a.mc(1));c&&(f=a.mc(2));for(var m=new d.b,p=0;p<g;p++){for(var y=a.Ea(p),v=a.Ha(p),D=0,x=0,B=NaN,A=NaN,z=NaN,C=NaN,E=a.vc(p),G=[],I=y;I<y+v;I++){a.w(I,m);var C=z=NaN,H=[m.x,m.y];b&&(z=h.get(I),H.push(z));c&&(g=f.get(I),
H.push(C));I==y&&E&&(D=m.x,x=m.y,B=z,A=C);G.push(H)}!E||D==m.x&&x==m.y&&(!b||isNaN(B)&&isNaN(z)||B==z)&&(!c||isNaN(A)&&isNaN(C)||A==C)||G.push(G[0].slice(0));e.push(G)}return e};a.fw=function(b,c){b=a.oT(b);var e=Math.PI/180;637.100877151506>c&&(c=637.100877151506);for(var d=[],g=0;g<b.length;g++){var h=b[g],f;d.push(f=[]);f.push([h[0][0],h[0][1]]);var l,m,p,v,D,x;l=h[0][0]*e;m=h[0][1]*e;for(D=0;D<h.length-1;D++)if(p=h[D+1][0]*e,v=h[D+1][1]*e,l!==p||m!==v){v=a.cN(m,l,v,p);p=v.azimuth;v=v.lN;var B=
v/c;if(1<B){for(x=1;x<=B-1;x++){var A=a.Wu(m,l,p,x*c);f.push([A.x,A.y])}x=a.Wu(m,l,p,(v+Math.floor(B-1)*c)/2);f.push([x.x,x.y])}m=a.Wu(m,l,p,v);f.push([m.x,m.y]);l=m.x*e;m=m.y*e}}return{mF:d}};a.kN=function(b){for(var c=[],e=0;e<b.length;e++){var g=b[e],g=a.fw(g,1E4);c.push(g)}b=[];for(var h,f,m=0;m<c.length;m++){for(var g=c[m],p=0,e=0;e<g.mF.length;e++){var u=g.mF[e];h=a.Xr(d.b.Oa(u[0][0],u[0][1]));f=a.Xr(d.b.Oa(u[u.length-1][0],u[u.length-1][1]));var y=f.x*h.y-h.x*f.y,v;for(v=0;v<u.length-1;v++)h=
a.Xr(d.b.Oa(u[v+1][0],u[v+1][1])),f=a.Xr(d.b.Oa(u[v][0],u[v][1])),y+=f.x*h.y-h.x*f.y;y/=4046.87;p+=y}b.push(p/-2*4046.85642)}return b};return a}();d.oH=e;e=function(){function b(){}b.oy=function(a,c,e,d,g,f,m){b.AG[a.hc()]=c;0==isNaN(e)&&(b.CG[a.hc()]=e);0==isNaN(d)&&(b.iz[a.hc()]=d);0==isNaN(g)&&(b.lG[a.hc()]=g);b.EG[a.hc()]=f;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 g=b.IG[c.hc()+"-"+e.hc()];if(void 0!==g)return g(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),g=d.Nf.create(4326);d.Ya.oy(b,g,NaN,NaN,NaN,!1,null);d.Ya.oy(g,g,1,.0033528106647474805,6378137,!0,[-180,-90,180,90]);d.Ya.oy(e,g,NaN,NaN,NaN,!1,null);d.Ya.xu(b,g,a);d.Ya.xu(g,b,c);d.Ya.xu(e,g,a);d.Ya.xu(g,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 f(b){this.f=null;this.qg=
-1;this.Xc=this.size=this.We=0;this.Ic=b}f.prototype.Jc=function(b){b<this.We?(this.f[b*this.Ic]=this.qg,this.qg=b):this.We--;this.size--};f.prototype.O=function(b,a){return this.f[b*this.Ic+a]};f.prototype.L=function(b,a,c){this.f[b*this.Ic+a]=c};f.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};f.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,g=0;g<e;g++)this.f[c+g]=b[g];return a};f.prototype.Nh=function(b){this.qg=-1;this.size=this.We=0;b&&(this.f=null,this.Xc=0)};f.prototype.de=function(b){b>this.Xc&&
this.Gm(b)};f.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};f.Zk=function(){return-2};f.lm=function(){return-3};f.Zw=function(b){return 0<=b};f.prototype.Gm=function(b){null==this.f&&(this.f=[]);this.Xc=b};return f}();d.Fc=m;m=function(){function f(b){this.f=new Int32Array(0);this.qg=-1;this.Xc=this.size=this.We=0;this.Ic=b}f.prototype.Jc=function(b){b<this.We?(this.f[b*this.Ic]=this.qg,this.qg=b):this.We--;this.size--};f.prototype.O=
function(b,a){return this.f[b*this.Ic+a]};f.prototype.L=function(b,a,c){this.f[b*this.Ic+a]=c};f.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};f.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};f.prototype.Nh=function(b){this.qg=-1;this.size=this.We=0;b&&(this.f=null,this.Xc=0)};f.prototype.de=function(b){b>this.Xc&&this.Gm(b)};f.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};f.Zk=function(){return-2};f.lm=
function(){return-3};f.Zw=function(b){return 0<=b};f.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 f}();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 f=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);a=this.uE.get();this.xx.K(a.na,a.la);if(this.nf.x<
this.xx.qa)return-1;if(this.nf.x>this.xx.va)return 1;a=a.xe(this.nf.y,this.nf.x);return this.nf.x<a?-1:this.nf.x>a?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(b=b?-1:a,a=this.ql(a);-1!=a;a=this.zq(a))this.a.lb(this.Gi(a),this.lp,b)};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,f=this.pC(a),l=new d.b,k=new d.b,m=new d.b;this.tq(f,l);k.J(l);var p=f;do this.pl(p,m),c+=d.b.Fb(k,m),this.Pe(this.sa(p))!=a&&(b+=(m.x-
l.x-(k.x-l.x))*(m.y-l.y+(k.y-l.y))*.5),k.J(m),p=this.Wb(p);while(p!=f);this.Pm.write(a,b);this.px.write(a,c)};a.prototype.GQ=function(a){var c=new f(this),g=new d.bj;g.de(d.I.truncate(this.ta/2));g.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(g,l,h,r)){this.w(q,p);c.$F(p.y);var w=r;do{var u=this.tb(w,l);-1!=u&&(g.kd(u,-1),this.Bb(w,l,-2));w=this.Wb(this.sa(w))}while(r!=w);w=r;do u=this.tb(w,l),-1==u&&
(u=g.addElement(w,-1),h.add(u)),w=this.Wb(this.sa(w));while(r!=w)}for(r=h.size-1;0<=r;r--)u=h.get(r),w=g.da(u),this.Bb(this.sa(w),l,u),this.FQ(g,u,a)}else-1==this.mw(q)&&(null==k&&(k=new b(this)),this.w(q,p),k.eS(p),w=g.GR(k),r=this.Ek,-1!=w&&(u=g.da(w),this.Pe(u)==this.Pe(this.sa(u))&&(u=this.BC(g,w)),-1!=u&&(r=this.Pe(u))),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 g=this.BC(a,b),f=this.sa(c),m=this.Pe(f);this.yo(e);this.yo(m);var p=
this.ym(e),r=this.ym(m);-1==g&&-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!=g){var w=this.Pe(g);-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,g,e,m):5==d?this.bR(a,b,c,f,e,m):4==d&&this.$Q(c,g,e,m)}};a.prototype.aR=function(a,b,d,f,l,k){var c=this.pj(l);if(-1!=f){var e=this.pj(k),g=this.pj(this.Pe(f));f=c&e&g;g^=g&this.Gg(d);g|=f;0!=g&&(this.yg(k,e|g),this.yg(l,
g|c),c=c||g)}for(b=a.bb(b);-1!=b;b=a.bb(b)){f=a.da(b);d=this.Pe(this.sa(f));l=this.pj(d);k=this.Gg(f);e=this.Pe(f);g=this.pj(e);f=l&g&c;c^=c&k;c|=f;if(0==c)break;this.yg(d,l|c);this.yg(e,g|c)}};a.prototype.bR=function(a,b,g,f,l,k){if(l!=k){g=this.tb(g,this.Kf);g+=this.tb(f,this.Kf);f=0;var c=new d.ga(0),e=new d.ga(0);e.add(0);for(var h=a.gc(-1);h!=b;h=a.bb(h)){var m=a.da(h),p=this.sa(m),u=this.Pe(m),y=this.Pe(p);if(u!=y){m=this.tb(m,this.Kf);m+=this.tb(p,this.Kf);f+=m;p=!1;0!=c.size&&c.tc()==y&&(e.af(),
c.af(),p=!0);if(-1==this.ym(y))throw d.g.wa();p&&this.ym(y)==u||(e.add(f),c.add(u))}}f+=g;0!=c.size&&c.tc()==k&&(e.af(),c.af());0!=f?0==e.tc()&&(a=this.a.$c,a=this.ya(a),this.yg(l,a)):0!=e.tc()&&(a=this.a.$c,a=this.ya(a),this.yg(l,a))}};a.prototype.$Q=function(a,b,d,f){var c=this.ya(this.a.$c);if(-1==b)this.yg(f,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(f);0==e&&(e=this.pj(this.Pe(b)),this.yg(f,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,f){var c=f,e=-1,g=-1,h=0;do{if(2==h)return!1;var m=this.tb(c,b);if(-1!=m){if(-1!=e)return!1;e=m}else{if(-1!=g)return!1;g=c}h++;c=this.Wb(this.sa(c))}while(f!=c);if(-1==g||-1==e)return!1;this.Bb(a.da(e),b,-2);a.Vi(e,g);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 f=b.get(c),k=this.a.Ra(f,this.Bl),m=this.a.Vf(this.a.rd(f)),p=this.a.Lb(m);if(d.T.Kc(p)){var q=this.a.X(f);if(-1!=q){var r=this.a.Ra(q,this.Bl);if(k!=r){var w=this.kQ(),u=this.sa(w),y=this.Ig.be();this.Ig.L(y,0,f);this.Ig.L(y,1,-1);this.Ir(w,y);this.FF(w,k);y=this.te(k);-1==y?(this.em(k,w),this.Rk(w,u),this.Qk(u,w)):(k=this.fe(y),this.Rk(y,u),this.Qk(u,y),this.Qk(k,w),this.Rk(w,k));this.FF(u,r);k=this.te(r);-1==k?(this.em(r,u),this.Qk(w,u),this.Rk(u,w)):(r=this.fe(k),this.Rk(k,
w),this.Qk(w,k),this.Qk(r,u),this.Rk(u,r));m=this.ya(m);0==a?(this.Bb(u,this.Md,0),this.Bb(w,this.Md,1736==p?m:0)):5==a?(r=new d.b,this.a.w(f,r),f=new d.b,this.a.w(q,f),k=q=0,0>r.compare(f)?q=1:k=-1,this.Bb(u,this.Md,0),this.Bb(w,this.Md,0),this.Bb(w,this.Kf,q),this.Bb(u,this.Kf,k)):7==a?(this.Bb(u,this.Md,this.sn),this.Bb(w,this.Md,1736==p?m:0)):4==a&&(this.Bb(u,this.Md,0),this.Bb(w,this.Md,0),this.Bb(w,this.eg,1),this.Bb(u,this.eg,1));p=1736==p?this.DK:0;this.Du(w,m|p);this.Du(u,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)}a=this.sa(a);b=this.sa(b);c=this.ql(b);-1!=c&&(e=this.ql(a),this.Ig.L(c,1,e),this.Ir(a,c),this.Ir(b,-1))};a.prototype.AS=function(a){function b(a,b){return f.lL(a,b)}var c=new d.ga(0);c.xb(10);for(var f=this,l=this.Be;-1!=l;l=this.Bf(l)){c.clear(!1);var k=this.te(l);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),u=-1,y=1,v=c.size;y<v;y++){var D=c.get(y),x=this.sa(D),B=this.qj(x);if(B==r&&D!=q){if(0==a)u=this.zC(q)|this.zC(D),this.Du(q,u),this.Du(w,u),this.Bb(q,this.Md,this.tb(q,this.Md)|this.tb(D,this.Md)),this.Bb(w,this.Md,this.tb(w,this.Md)|this.tb(x,this.Md));else if(-1!=this.Kf)u=this.tb(q,this.Kf)+this.tb(D,this.Kf),x=this.tb(w,this.Kf)+this.tb(x,this.Kf),this.Bb(q,this.Kf,
u),this.Bb(w,this.Kf,x);else{if(7==a){this.ei=new d.wd(5,l,-1);return}-1!=this.eg&&(u=this.tb(q,this.eg)+this.tb(D,this.eg),x=this.tb(w,this.eg)+this.tb(x,this.eg),this.Bb(q,this.eg,u),this.Bb(w,this.eg,x))}this.ZP(q,D);this.Wv(D);u=q;c.set(y,-1);D==p&&(c.set(0,-1),p=-1)}else this.Tu(u,!1),u=-1,q=D,r=B,w=x}this.Tu(u,!1);u=-1;if(m){p=-1;y=0;for(v=c.size;y<v;y++)if(D=c.get(y),-1!=D)if(-1==p)q=p=D,r=this.jf(q),w=this.sa(q);else if(D!=q&&(x=this.sa(D),B=this.qj(x),this.Qk(w,D),this.Rk(D,w),q=D,r=B,w=
x,7==a&&(this.tb(D,this.Md)|this.tb(this.fe(D),this.Md))==(this.sn|1))){this.ei=new d.wd(5,l,-1);return}this.em(l,p)}else{p=-1;y=0;for(v=c.size;y<v;y++)if(D=c.get(y),-1!=D){p=D;break}k!=p&&this.em(l,p)}}}}};a.prototype.AK=function(){for(var a=-1,b=this.Eg(),g=this.Be;-1!=g;g=this.Bf(g)){var f=this.te(g);if(-1!=f){var l=f;do{if(1!=this.tb(l,b)){var k=this.FE();this.Gr(k,l);this.yF(k,a);-1!=a&&this.AF(a,k);var a=k,m=0,p=l;do m|=this.tb(p,this.Md),this.VR(p,k),this.Bb(p,b,1),p=this.Wb(p);while(p!=l);
this.yg(k,m)}l=this.Wb(this.sa(l))}while(l!=f)}}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 f=this.EN(b,
d,a);if(-1==f)break;for(var d=this.Wb(this.sa(f)),l=f;;){var k=this.Wb(l),m=this.fe(l),p=this.sa(l);if(m==p){this.bM(l);if(d==l||d==p)d=-1;if(l==f||m==f){f=k;if(l==f||m==f)break;l=k;continue}}else this.Bb(l,a,1);l=k;if(l==f)break}}};a.prototype.Ay=function(a,b,g,f){this.xg();this.ND=f;this.a=a;this.kp=this.a.RB();a=new d.ga(0);a.xb(null!=g?this.a.F(g.get(0)):this.a.pd);var c=0,e=1,h=null!=g?g.get(0):this.a.$c;for(f=1;-1!=h;){this.a.EF(h,this.kp,e);for(var e=e<<1,m=this.a.Vb(h);-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(h))||(c+=this.a.ea(h));null!=g?(h=f<g.size?g.get(f):-1,f++):h=this.a.we(h)}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();g=new d.b;f=0;c=new d.b;g.Eh();for(e=0;e<=this.ta;e++)if(e<this.ta?(p=a.get(e),this.a.w(p,
c)):c.Eh(),!g.ub(c)){if(f<e){p=this.Ul();for(w=r=-1;f<e;f++)w=a.get(f),this.a.lb(w,this.Bl,p),h=this.Ig.be(),this.Ig.L(h,0,w),this.Ig.L(h,1,r),r=h,m=this.a.rd(w),h=this.a.Vf(m),h=this.ya(h),this.PR(p,this.md(p)|h);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)}f=e;g.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),f=this.Wb(d),k=this.fe(d);b!=d&&(this.Qk(k,b),this.Rk(b,k));c!=d&&(this.Qk(c,f),this.Rk(f,c));c=this.qj(a);this.te(c)==a&&(f!=a?this.em(c,f):this.em(c,-1));f=this.qj(d);this.te(f)==d&&(b!=d?this.em(f,b):this.em(f,-1));this.xc.Jc(a);this.xc.Jc(d)};a.prototype.BC=function(a,b){for(;;)if(b=a.ge(b),-1!=b){var c=a.da(b);if(this.Pe(c)!=this.Pe(this.sa(c)))return c}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){b=this.Vh[b];return b.size<=a?-1:b.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,g=this.Vh.length;b<g;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){b=this.Yh[b];return b.size<=a?-1:b.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,g=this.Yh.length;b<g;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),f=this.Pe(this.sa(d));this.Gr(this.Pe(d),-1);this.Gr(f,-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,f=-1;do{if(this.jf(e)==b)return e;if(-1==d){d=this.te(b);if(-1==d)break;f=d}if(this.jf(f)==a)return e=
this.sa(f);e=this.Wb(this.sa(e));f=this.Wb(this.sa(f))}while(e!=c&&f!=d);return-1};a.prototype.iy=function(a,b){b.mq();b=b.get();var c=new d.b;this.tq(a,c);b.ed(c);this.pl(a,c);b.vd(c)};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;b=new d.b;this.tq(a,b);a=new d.b;a.pc(c,b);c=new d.b;c.pc(e,b);return d.b.cq(a,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;
b=new d.b;this.tq(a,b);a=new d.b;a.pc(c,b);c=new d.b;c.pc(e,b);return 0<=c.y&&0<a.y?d.b.cq(a,c):0};a.prototype.ZK=function(){for(var a=d.vi.Ty(this.qx),b=new d.b,g=new d.b,f=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,g);k.pc(g,b);var r=k.Up();do{var w=q,q=this.Wb(this.sa(q));if(q!=w){this.pl(q,f);l.pc(f,b);var w=l.Up(),u=l.Ai(k);if(u*u/(w*r)*Math.min(w,r)<=a)return!1;k.J(l);r=w;g.J(f)}}while(q!=p)}}return!0};return a}();d.gs=
m})(p||(p={}));(function(d){var m=function(){function f(){this.h=null;this.TD=new d.b;this.UD=new d.b;this.Qg=null;this.Gq=!1;this.Ym=-1}f.prototype.Te=function(b){return b<this.Qg.length?this.Qg[b]:!1};f.prototype.xm=function(b,a,c,e){var g=d.T.ve(this.h.a.Lb(c));if(2==d.T.ve(this.h.a.Lb(a))&&1==g)this.WL(b,a,c,e);else throw d.g.wa();};f.prototype.Mp=function(b,a){null==this.h&&(this.h=new d.gs);this.h.Mp(b,a)};f.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)};f.prototype.EB=function(b,a,c,d,g){var e=this.h.a;if(1736==e.Lb(b))for(b=e.Vb(b);-1!=b;b=e.bc(b)){var f=e.Cb(b);this.h.se(f);this.h.se(e.X(f));var k=this.h.GN(f);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=e.Cf(a,-1),p=k,q=this.h.se(f),r=1;do{var w=this.tl(f,g);e.zi(m,w);-1!=d&&this.h.fm(q,d,1);this.h.Bb(p,c,1);var p=this.h.Wb(p),u;do w=1==r?e.X(f):e.Ua(f),u=-1!=w?this.h.se(w):-1;while(u==q);var y=this.h.qj(p);
if(y!=u){do w=1==r?e.Ua(f):e.X(f),u=-1!=w?this.h.se(w):-1;while(u==q);y!=u?(u=y,w=this.h.Gi(this.h.ol(u))):r=-r}q=u;f=w}while(p!=k);e.Gn(m,!0)}else this.h.Bb(k,c,2)}}};f.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),g=e;if(-1!=e){do{if(1!=this.h.tb(g,b)){var f=this.h.sa(g);this.h.Bb(f,b,1);this.h.Bb(g,b,1);this.Te(this.h.Qe(g))&&this.Te(this.h.Qe(f))&&a.add(g)}g=this.h.Wb(this.h.sa(g))}while(g!=e)}}this.h.kh(b);this.h.cM(a)};f.prototype.tl=
function(b,a){return-1==a?b:this.kO(b,a)};f.prototype.kO=function(b,a){var c=this.h.a,e,d,f=this.h.ol(this.h.se(b));do{e=this.h.Gi(f);d=c.Vf(c.rd(e));if(d==a)return e;f=this.h.zq(f)}while(-1!=f);return b};f.prototype.Xp=function(b,a,c){this.UB();var e=this.h.a,g=e.jg(1736),f=this.h.Eg();this.pG(b,a,g,c,f,-1);this.h.kh(f);d.mm.$(e,g,1,this.Gq,null);return g};f.prototype.pG=function(b,a,c,e,d,f){this.EB(b,c,d,f,e);-1!=a&&this.EB(a,c,d,f,e);b=this.h.a;for(a=this.h.Be;-1!=a;a=this.h.Bf(a)){var g=this.h.te(a);
if(-1!=g){var h=g;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!=f&&(q=this.h.se(q),this.h.fm(q,f,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!=g)}}};f.prototype.RS=function(b,a,c){var e=this.h.a,g=e.jg(1736),f=e.jg(1607),l=e.jg(550);this.UB();var k=-1,m=this.h.Eg(),
p=this.h.uo();this.pG(b,a,g,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 u=e.Cf(f,-1),y=q,r=this.Au(b,e),r=this.tl(r,c);e.zi(u,r);this.h.fm(b,p,1);do{r=this.h.jf(y);w=this.Au(r,e);w=this.tl(w,c);e.zi(u,w);this.h.Bb(y,m,1);this.h.Bb(this.h.sa(y),m,1);this.h.fm(r,p,1);y=this.h.Wb(y);r=this.h.tb(y,m);w=this.h.tb(this.h.sa(y),m);r|=w;if(2!=r)break;r=this.h.Gg(y);if(!this.Te(r)){this.h.Bb(y,
m,1);this.h.Bb(this.h.sa(y),m,1);break}}while(y!=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,g,1,this.Gq,null);c=[];c[0]=l;c[1]=f;c[2]=g;return c};f.prototype.Au=function(b,a){var c=-1;for(b=this.h.ol(b);-1!=b;b=this.h.zq(b)){var d=this.h.Gi(b);
-1==c&&(c=d);var g=this.h.ya(a.Vf(a.rd(d)));if(this.Te(g)){c=d;break}}return c};f.prototype.fy=function(b,a){for(var c=this.h.qj(a),e=this.h.jf(a),g=0,f=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?(g++,this.Te(p)&&(m==q&&(this.Ym=this.h.Wb(a)),f++)):-1!=r&&this.h.se(r)==e&&(g--,this.Te(p)&&(m==r&&(this.Ym=this.h.Wb(a)),f--))}this.h.w(c,this.TD);this.h.w(e,this.UD);c=d.b.Fb(this.TD,this.UD);
return(0!=f?f:g)*c};f.prototype.Ao=function(b){return this.h.Gg(b)|this.h.Qe(b)|this.h.Qe(this.h.sa(b))};f.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};f.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};f.prototype.jF=function(b,a,c,e,g){var f=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(f,l);this.Ym=-1;for(var p=l,q=-1,r=!1,w=1;;){var u=this.h.fe(l);if(u==k)break;k=this.h.Wb(k);if(this.h.sa(u)!=k)if(l=this.sG(l),-1==l)break;else r=!0,k=this.h.sa(l);else l=u;if(l==b){q=b;break}u=this.Ao(l);if(!this.Te(u))break;this.h.Bb(l,c,1);this.h.Bb(k,c,1);p=l;m+=this.fy(f,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;u=this.Ao(l);if(!this.Te(u))break;this.h.Bb(l,c,1);this.h.Bb(k,c,1);q=l;m+=this.fy(f,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=f.Cf(a,-1);l=p;p=this.h.qj(p);r=this.h.jf(q)==p&&r;m=this.Au(p,f);m=this.tl(m,g);f.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,f);m=this.tl(m,g);f.zi(c,m);p++;-1!=e&&this.h.fm(b,
e,1);r&&p==w&&(c=f.Cf(a,-1),f.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}};f.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 g=this.h.te(d),f=g;do 1!=this.h.tb(f,c)&&this.Te(this.Ao(f))&&this.jF(f,a,c,-1,b),f=this.h.Wb(this.h.sa(f));while(f!=g)}this.h.kh(c);return a};f.prototype.SS=function(b){for(var a=this.h.a,c=a.jg(1607),d=a.jg(550),g=this.h.Eg(),f=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,g);1!=q&&(q=this.Ao(p),this.Te(q)&&this.jF(p,c,g,f,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,f),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(g);this.h.vo(f);b=[];b[0]=d;b[1]=c;return b};f.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 g=
-1,f=this.h.ol(d);-1!=f;f=this.h.zq(f)){var l=this.h.Gi(f);-1==g&&(g=l);var k=this.h.ya(b.Vf(b.rd(l)));if(this.Te(k)){g=l;break}}b.zi(c,g)}return a};f.prototype.Im=function(b){this.Qg=[];for(var a=0;a<b;a++)this.Qg[a]=!1};f.qF=function(b,a,c,e){var g=b.Pa(),f=Array(1E3);d.I.Ps(f,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(f,q)-q);p?d.gd.nG(a,f,r,c,l):d.gd.oG(a,f,r,c,l);for(var w=0,u=0;u<r;u++){var y=0==l[u];e||
(y=!y);y&&(m&&(m=!1,g.Pd(b,0,q)),w!=u&&g.Pd(b,q+w,q+u),w=u+1)}m||w==r||g.Pd(b,q+w,q+r);q+=r}return m?b:g};f.jD=function(b,a,c){return b instanceof d.pe?f.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():f.mG(b,a,c,!0)};f.mt=function(b,a,c,e){var g=new d.i;b.o(g);var h=new d.i;a.o(h);var l=new d.i;l.K(g);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(!g.jc(l)){if(b.fb()<=a.fb())return f.Cc(f.ob(b.Pa()),b,"\x26");if(b.fb()>a.fb())return f.Cc(f.ob(a.Pa()),
b,"\x26")}h=new f;g=new d.fd;l=g.Eb(f.ob(b));a=g.Eb(f.ob(a));h.Np(g,c,e);e=h.mt(l,a);b=f.Cc(g.hf(e),b,"\x26");d.T.Kc(b.D())&&(b.hg(2,c),1736==b.D()&&b.hl());return b};f.mG=function(b,a,c,e){if(b.s())return b.Pa();if(a.s())return e?b.Pa():null;var g=[null],f=[0],l=2==a.fb();if(1!=a.fb()&&2!=a.fb())throw d.g.wa();g[0]=b.w();l?d.gd.nG(a,g,1,c,f):d.gd.oG(a,g,1,c,f);a=0==f[0];e||(a=!a);return a?b.Pa():b};f.PT=function(b,a,c){return b instanceof d.pe?f.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:f.mG(b,a,c,!1)};f.prototype.ME=function(b,a,c,e,g){if(b.s())return b;var f=new d.fd;b=f.Eb(b);return this.Qj(f,b,a,c,e,g)};f.prototype.EQ=function(b,a,c,e,g,f){if(g&&550!=b.Lb(a)){var h=new d.aA;h.KS(b,c);h.og?(d.aj.$(b,c,f,!0),g=!1):this.h.Mv(c)}else d.aj.$(b,c,f,!0),g=!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,f);this.h.Mv(NaN);f=this.h.ya(a);this.Im(f+1);this.Qg[f]=!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),g?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),g||b.hg(2,c),b;if(550==b.Lb(a))return a=this.Pn(),b=b.hf(a),g||b.hg(2,c),b;throw d.g.wa();};f.prototype.Qj=function(b,a,c,e,g,f){this.h=new d.gs;try{return this.EQ(b,a,c,e,g,f)}finally{this.h.xg()}};f.Qj=function(b,a,c,d,g){return(new f).ME(b,a,c,d,g)};f.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");};f.Ry=function(b,a,c,d){var e=new f;e.Gq=!0;return e.ME(b,a,!1,c,d)};f.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 g=this.h.ya(b),f=this.h.ya(a);this.Im((g|f)+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();};f.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 g=this.h.ya(b),f=this.h.ya(a);this.Im((g|f)+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();};f.prototype.mt=
function(b,a){var c=d.T.ve(this.h.a.Lb(b)),e=d.T.ve(this.h.a.Lb(a)),g=this.h.ya(b),f=this.h.ya(a);this.Im((g|f)+1);this.Qg[this.h.ya(b)|this.h.ya(a)]=!0;g=-1;1<this.h.a.wp.Aa&&(g=b);if(2==c&&2==e)return this.Xp(b,a,g);if(1==c&&0<e||1==e&&0<c)return this.Yp(g);if(0==c||0==e)return this.Pn();throw d.g.wa();};f.prototype.Uw=function(b,a){var c=d.T.ve(this.h.a.Lb(b)),e=d.T.ve(this.h.a.Lb(a)),g=this.h.ya(b),f=this.h.ya(a);this.Im((g|f)+1);this.Qg[this.h.ya(b)|this.h.ya(a)]=!0;g=-1;1<this.h.a.wp.Aa&&(g=
b);if(2==c&&2==e)return this.RS(b,a,g);if(1==c&&0<e||1==e&&0<c)return this.SS(g);if(0==c||0==e)return c=[],c[0]=this.Pn(),c;throw d.g.wa();};f.prototype.On=function(b,a){var c=d.T.ve(this.h.a.Lb(b)),e=d.T.ve(this.h.a.Lb(a)),g=this.h.ya(b),f=this.h.ya(a);this.Im((g|f)+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();};f.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};f.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)};f.ll=function(b,a,c,e){if(b.s()||a.s()||b.fb()>
a.fb())return f.Cc(f.ob(b),b,"-");var g=new d.i;b.o(g);var h=new d.i;a.o(h);if(!g.jc(h))return f.Cc(f.ob(b),b,"-");var l=new d.i;l.K(g);l.Db(h);c=d.Ia.zd(c,l,!0);h=new f;g=new d.fd;l=g.Eb(f.ob(b));a=g.Eb(f.ob(a));h.Np(g,c,e);e=h.ll(l,a);e=g.hf(e);b=f.Cc(e,b,"-");d.T.Kc(b.D())&&(b.hg(2,c),1736==b.D()&&b.hl());return b};f.TB=function(b,a,c,e){if(b.fb()>a.fb())return f.Cc(f.ob(b),b,"|");if(b.fb()<a.fb()||b.s())return f.Cc(f.ob(a),b,"|");if(a.s())return f.Cc(f.ob(b),b,"|");var g=new d.i;b.o(g);var h=
new d.i;a.o(h);var l=new d.i;l.K(g);l.Db(h);c=d.Ia.zd(c,l,!0);if(!g.jc(h.IN(c,c)))switch(b=f.ob(b),a=f.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 f;g=new d.fd;l=g.Eb(f.ob(b));a=g.Eb(f.ob(a));h.Np(g,c,e);a=h.TB(l,a);b=f.Cc(g.hf(a),b,"|");d.T.Kc(b.D())&&(b.hg(2,c),1736==b.D()&&b.hl());return b};f.oM=function(b,a,c){if(2>b.length)throw d.g.N("not enough geometries to dissolve");
for(var e=0,g=0,h=b.length;g<h;g++)e=Math.max(b[g].fb(),e);var l=new d.i;l.Ja();for(var k=new d.fd,m=-1,p=0,q=-1,g=0,h=b.length;g<h;g++)if(b[g].fb()==e)if(b[g].s())-1==q&&(q=g);else{q=g;-1==m?m=k.Eb(f.ob(b[g])):k.YJ(m,f.ob(b[g]));var r=new d.i;b[g].dd(r);l.Db(r);p++}if(2>p)return f.ob(b[q]);b=2==e;a=d.Ia.zd(0==e?a:null,l,!0);return(new f).Qj(k,m,a,b,!0,c)};f.Uw=function(b,a,c,e){var g=[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=f.Cc(f.ob(b.Pa()),b,"\x26"),g[b.fb()]=b,g;if(b.fb()>a.fb())return b=f.Cc(f.ob(a.Pa()),b,"\x26"),g[b.fb()]=b,g}l=new f;h=new d.fd;k=h.Eb(f.ob(b));a=h.Eb(f.ob(a));l.Np(h,c,e);e=l.Uw(k,a);for(a=0;a<e.length;a++)l=f.Cc(h.hf(e[a]),b,"\x26"),d.T.Kc(l.D())&&(l.hg(2,c),1736==l.D()&&l.hl()),g[l.fb()]=l;return g};f.On=function(b,a,c,e){if(b.fb()>a.fb())return f.Cc(f.ob(b),b,"^");if(b.fb()<a.fb()||b.s())return f.Cc(f.ob(a),b,"^");if(a.s())return f.Cc(f.ob(b),
b,"^");var g=new d.i;b.o(g);var h=new d.i;a.o(h);var l=new d.i;l.K(g);l.Db(h);c=d.Ia.zd(c,l,!0);h=new f;g=new d.fd;l=g.Eb(f.ob(b));a=g.Eb(f.ob(a));h.Np(g,c,e);e=h.On(l,a);b=f.Cc(g.hf(e),b,"^");d.T.Kc(b.D())&&(b.hg(2,c),1736==b.D()&&b.hl());return b};f.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};f.prototype.ZM=function(b,a){var c=this.h.a;b=c.Cf(b,-1);for(var d=a.size,g=0;g<d;g++){var f=a.get(g);c.zi(b,f)}c.Gn(b,!0)};
f.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 g=c.Vb(d);-1!=g;g=c.bc(g)){var f=c.Cb(g);if(-1!=f)for(var l=c.X(f);-1!=l;){var f=this.h.se(f),k=this.h.se(l),f=this.h.FN(f,k);-1!=f&&(k=this.h.sa(f),this.h.Bb(f,b,1),this.h.Bb(k,b,2));f=l;l=c.X(f)}}};f.prototype.XQ=function(b,a,c,e){c=this.h.ya(c);e=this.h.ya(e);var g=new d.ga(0);g.xb(256);for(var f=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,u=0;do{this.h.Bb(q,l,1);if(!w){var y=this.h.Gg(q);0!=(y&e)&&0!=(this.h.Qe(q)&c)&&(r=q,w=!0)}w&&(g.add(this.h.Gi(this.h.ol(this.h.qj(q)))),-1!=b&&(y=this.h.Gg(q),0!=(y&e)&&(y=this.h.tb(q,b),u|=y)));q=this.h.Wb(q)}while(q!=r);w&&0<this.h.yo(this.h.Pe(r))&&(q=f.jg(1736),this.ZM(q,g),-1!=a&&f.EF(q,a,u));g.clear(!1)}p=this.h.Wb(this.h.sa(p))}while(p!=m)}}this.h.kh(l)};f.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 f=this.h.a;
b=0;for(e=f.$c;-1!=e;e=f.we(e))e!=a&&e!=c&&(d.add(e),b++);d.xd(0,b,function(a,b){a=f.Gw(f.Vb(a));b=f.Gw(f.Vb(b));return a<b?-1:a==b?0:1})};f.prototype.xg=function(){null!=this.h&&(this.h.xg(),this.h=null)};return f}();d.Of=m})(p||(p={}));(function(d){var m=function(){function f(b){void 0!==b?this.Ly(b):this.IF()}f.prototype.Lu=function(){this.Ob=this.Nb=this.sb=this.rb=this.eb=this.mb=0};f.prototype.lc=function(b){return this==b?!0:b instanceof f?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};f.prototype.hc=function(){d.I.Rh();d.I.Rh();d.I.Rh();d.I.Rh();d.I.Rh();return d.I.Rh()};f.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};f.prototype.multiply=function(b){f.multiply(this,b,this)};f.multiply=function(b,a,c){var d,g,f,l,k;d=b.mb*a.mb+b.sb*a.rb;g=b.rb*a.mb+b.eb*a.rb;f=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=g;c.Nb=f;c.sb=
l;c.eb=k;c.Ob=b};f.prototype.vm=function(){var b=new f;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};f.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)}};f.prototype.US=function(b,a){for(var c=0;c<b.length;c++){var e=new d.b,g=b[c];e.x=this.mb*g.x+this.rb*g.y+this.Nb;e.y=this.sb*g.x+this.eb*g.y+this.Ob;a[c]=e}};f.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)};f.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))};f.prototype.IF=function(){this.mb=1;this.sb=this.Nb=this.rb=0;this.eb=1;this.Ob=0};f.prototype.XO=function(){return 1==this.mb&&1==this.eb&&0==this.rb&&0==this.Nb&&0==this.sb&&0==
this.Ob};f.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))};f.prototype.Nn=function(b,a){this.mb=1;this.rb=0;this.Nb=b;this.sb=0;this.eb=1;this.Ob=a};f.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)};f.prototype.Oy=function(){this.mb=0;this.rb=1;this.Nb=0;this.sb=1;this.Ob=this.eb=0};f.prototype.jS=function(b){this.kS(Math.cos(b),Math.sin(b))};f.prototype.kS=
function(b,a){this.mb=b;this.rb=-a;this.Nb=0;this.sb=a;this.eb=b;this.Ob=0};f.prototype.shift=function(b,a){this.Nb+=b;this.Ob+=a};f.prototype.scale=function(b,a){this.mb*=b;this.rb*=b;this.Nb*=b;this.sb*=a;this.eb*=a;this.Ob*=a};f.prototype.rotate=function(b){var a=new f;a.jS(b);this.multiply(a)};f.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 f}();d.Bg=m})(p||(p={}));(function(d){var m=function(){function f(){}f.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};f.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};f.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};f.prototype.transform=function(b,a,c){for(var e=0;e<a;e++){var g=new d.ee,f=b[e];g.x=this.mb*f.x+this.rb*f.y+this.He*f.z+this.Nb;g.y=this.sb*f.x+this.eb*f.y+this.Ie*f.z+this.Ob;g.z=this.ef*f.x+this.Ke*f.y+this.Le*f.z+this.fh;c[e]=g}};f.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};f.prototype.Ap=function(b){f.multiply(this,
b,this)};f.multiply=function(b,a,c){var d,g,f,l,k,m,p,q,r,w,u;d=b.mb*a.mb+b.sb*a.rb+b.ef*a.He;g=b.mb*a.sb+b.sb*a.eb+b.ef*a.Ie;f=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;u=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=g;c.ef=f;c.rb=l;c.eb=k;c.Ke=
m;c.He=p;c.Ie=q;c.Le=r;c.Nb=w;c.Ob=u;c.fh=b};f.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,g,f,l,k,m,p,q,r,w;q=1/c;c=(b.eb*b.Le-b.Ke*b.Ie)*q;f=-(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;g=(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*f+b.fh*m);w=-(b.Nb*e+b.Ob*l+b.fh*p);b=-(b.Nb*g+b.Ob*k+b.fh*
q);a.mb=c;a.sb=e;a.ef=g;a.rb=f;a.eb=l;a.Ke=k;a.He=m;a.Ie=p;a.Le=q;a.Nb=r;a.Ob=w;a.fh=b}else throw d.g.ra("math singularity");};f.prototype.vm=function(){var b=new f;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 f}();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 f.ww().add(this)};a.Tf=function(){return f.ww().iO()};
a.Zn=function(){return f.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){b=new a(b);b.Ne(d);return b.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){b=new a(b);b.removeAttribute(d);return b.qw()};
return a}(d.pa);d.Od=m;var f=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 M=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===
aa.prototype.getCacheValue&&sa.extend(aa,{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 f=d.Se();return{tolerance:d.xq(),unitType:null==f?-1:f.Nc,unitID:null==f?-1:f.Qc(),
unitBaseFactor:null==f?0:f.Dj,unitSquareDerivative:null==f?0:p.Tb.PC(f).Qc()}};d.clip=function(d,f){if(null===d)return null;f=p.Pb.clip(E(d),E(f),I(d));return N(f,d.spatialReference)};d.cut=function(d,f){f=E(f);f=p.Pb.xm(E(d),f,I(d));for(var b=[],a=0;a<f.length;a++)b.push(N(f[a],d.spatialReference));return b};d.contains=function(d,f){if(null===d||null===f)throw Error("Illegal Argument Exception");return p.Pb.contains(E(d),E(f),I(d))};d.crosses=function(d,f){if(null===d||null===f)throw Error("Illegal Argument Exception");
return p.Pb.VL(E(d),E(f),I(d))};d.distance=function(d,f,b){if(null===d||null===f)throw Error("Illegal Argument Exception");return p.Pb.Fb(E(d),E(f),I(d),p.Tb.Qd(U(b,3)))};d.equals=function(d,f){return null===d&&null!==f||null===f&&null!==d?!1:p.Pb.lc(E(d),E(f),I(d))};d.intersects=function(d,f){if(null===d||null===f)throw Error("Illegal Argument Exception");return p.Pb.RO(E(d),E(f),I(d))};d.touches=function(d,f){if(null===d||null===f)throw Error("Illegal Argument Exception");return p.Pb.touches(E(d),
E(f),I(d))};d.within=function(d,f){if(null===d||null===f)throw Error("Illegal Argument Exception");return p.Pb.jT(E(d),E(f),I(d))};d.disjoint=function(d,f){if(null===d||null===f)throw Error("Illegal Argument Exception");return p.Pb.nM(E(d),E(f),I(d))};d.overlaps=function(d,f){if(null===d||null===f)throw Error("Illegal Argument Exception");return p.Pb.tQ(E(d),E(f),I(d))};d.relate=function(d,f,b){if(null===d||null===f)throw Error("Illegal Argument Exception");return p.Pb.py(E(d),E(f),I(d),b)};d.isSimple=
function(d){if(null===d)throw Error("Illegal Argument Exception");return p.Pb.cP(E(d),I(d))};d.simplify=function(d){if(null===d)throw Error("Illegal Argument Exception");var f=p.Pb.Qy(E(d),I(d));return N(f,d.spatialReference)};d.convexHull=function(m,f){void 0===f&&(f=!1);if(null===m)throw Error("Illegal Argument Exception");return m instanceof aa?(f=p.Pb.JL(E(m),I(m)),N(f,m.spatialReference)):d.NI(m,f)};d.NI=function(d,f){for(var b=[],a=0;a<d.length;a++)b.push(E(d[a]));b=p.Pb.KL(b,f);for(a=0;a<b.length;a++)b[a]=
N(b[a],d[0].spatialReference);return b};d.difference=function(m,f){if(null===m||null===f)throw Error("Illegal Argument Exception");return m instanceof aa?(f=p.Pb.ll(E(m),E(f),I(m)),N(f,m.spatialReference)):d.XL(m,f)};d.XL=function(d,f){for(var b=[],a=0;a<d.length;a++)b.push(E(d[a]));b=p.Pb.kM(b,E(f),I(f));for(a=0;a<b.length;a++)b[a]=N(b[a],f.spatialReference);return b};d.symmetricDifference=function(m,f){if(null===m||null===f)throw Error("Illegal Argument Exception");return m instanceof aa?(f=p.Pb.On(E(m),
E(f),I(m)),N(f,m.spatialReference)):d.tO(m,f)};d.tO=function(d,f){for(var b=[],a=0;a<d.length;a++)b.push(E(d[a]));b=p.Pb.MS(b,E(f),I(f));for(a=0;a<b.length;a++)b[a]=N(b[a],f.spatialReference);return b};d.intersect=function(m,f){if(null===m||null===f)throw Error("Illegal Argument Exception");return m instanceof aa?(f=p.Pb.Ga(E(m),E(f),I(m)),N(f,m.spatialReference)):d.EM(m,f)};d.EM=function(d,f){for(var b=[],a=0;a<d.length;a++)b.push(E(d[a]));b=p.Pb.QO(b,E(f),I(f));for(a=0;a<b.length;a++)b[a]=N(b[a],
f.spatialReference);return b};d.union=function(d,f){void 0===f&&(f=null);if(null===d)return null;d instanceof aa&&(d=[d],null!==f&&d.push(f));if(0===d.length)return null;f=[];for(var b=0;b<d.length;b++)f.push(E(d[b]));return N(p.Pb.aT(f,I(d[0])),d[0].spatialReference)};d.offset=function(m,f,b,a,c,e){var g=0;if(null!=a&&void 0!=a)switch(a){case "round":g=0;break;case "bevel":g=1;break;case "miter":g=2;break;case "square":g=3}return m instanceof aa?(f=p.Pb.offset(E(m),I(m),f,g,c,e,p.Tb.Qd(U(b,3))),
N(f,m.spatialReference)):d.qO(m,f,b,g,c,e)};d.qO=function(d,f,b,a,c,e){if(null===d)return null;if(0===d.length)return[];for(var g=[],h=0;h<d.length;h++)g.push(E(d[h]));f=p.Pb.sQ(g,I(d[0]),f,a,c,e,p.Tb.Qd(U(b,3)));for(h=0;h<f.length;h++)f[h]=N(f[h],d[0].spatialReference);return f};d.buffer=function(m,f,b,a){void 0===a&&(a=!1);if(m instanceof aa)return f=p.Pb.buffer(E(m),I(m),f,p.Tb.Qd(U(b,3)),!1,0,NaN),N(f,m.spatialReference);if("[object Array]"!==Object.prototype.toString.call(f)){for(var c=[],e=
0;e<m.length;e++)c.push(f);f=c}if(f.length!=m.length){if(0==f.length)throw Error("Illegal Argument Exception");for(var c=[],g=0,e=0;e<m.length;e++)void 0===f[e]?c.push(g):(c.push(f[e]),g=f[e]);f=c}return d.vG(m,f,b,!1,a,"geodesic",NaN)};d.geodesicBuffer=function(m,f,b,a,c,e){if(m instanceof aa)return void 0===c&&(c=NaN),f=p.Pb.buffer(E(m),I(m),f,p.Tb.Qd(U(b,0)),!0,ja(a),c),N(f,m.spatialReference);if("[object Array]"!==Object.prototype.toString.call(f)){for(var g=[],h=0;h<m.length;h++)g.push(f);f=
g}if(f.length!=m.length){if(0==f.length)throw Error("Illegal Argument Exception");for(var g=[],l=0,h=0;h<m.length;h++)void 0===f[h]?g.push(l):(g.push(f[h]),l=f[h]);f=g}return d.vG(m,f,b,!0,a,c,e)};d.vG=function(d,f,b,a,c,e,g){if(null===d)return null;if(0===d.length)return[];void 0===g&&(g=NaN);for(var h=[],l=0;l<d.length;l++)h.push(E(d[l]));f=p.Pb.rK(h,I(d[0]),f,p.Tb.Qd(U(b,0)),a,c,ja(e),g);for(l=0;l<f.length;l++)f[l]=N(f[l],d[0].spatialReference);return f};d.nearestCoordinate=function(d,f,b){void 0===
b&&(b=!0);f=p.Pb.zw(E(d),E(f),b);return{coordinate:N(f.pw(),d.spatialReference),distance:f.sw(),isRightSide:f.Xw(),vertexIndex:f.gb(),isEmpty:f.s()}};d.nearestVertex=function(d,f){f=p.Pb.Aw(E(d),E(f));return{coordinate:N(f.pw(),d.spatialReference),distance:f.sw(),isRightSide:f.Xw(),vertexIndex:f.gb(),isEmpty:f.s()}};d.nearestVertices=function(d,f,b,a){f=E(f);b=p.Pb.Bw(E(d),f,b,a);a=[];for(f=0;f<b.length;f++)!1===b[f].s()&&a.push({coordinate:N(b[f].pw(),d.spatialReference),distance:b[f].sw(),isRightSide:b[f].Xw(),
vertexIndex:b[f].gb(),isEmpty:b[f].s()});return a};d.generalize=function(d,f,b,a){f=p.Pb.fN(E(d),I(d),f,b,p.Tb.Qd(U(a,3)));return N(f,d.spatialReference)};d.densify=function(d,f,b){f=p.Pb.oq(E(d),I(d),f,p.Tb.Qd(U(b,3)));return N(f,d.spatialReference)};d.geodesicDensify=function(d,f,b,a){void 0===a&&(a=0);f=p.Pb.fw(E(d),I(d),f,p.Tb.Qd(U(b,3)),a);return N(f,d.spatialReference)};d.rotate=function(d,f,b){if(void 0===b||null===b)switch(d.type){case "point":b=d;break;case "extent":b=M?d.get("center"):d.getCenter();
break;default:b=M?d.get("extent").get("center"):d.getExtent().getCenter()}f=M?p.Wn.rotate(d.toJSON(),f,b.toJSON()):p.Wn.rotate(d.toJson(),f,b.toJson());M?(f=la(f),f.set("spatialReference",d.spatialReference)):(f=ka(f),f.setSpatialReference(d.spatialReference));return f};d.flipHorizontal=function(d,f){if(void 0===f||null===f)switch(d.type){case "point":f=d;break;case "extent":f=M?d.get("center"):d.getCenter();break;default:f=M?d.get("extent").get("center"):d.getExtent().getCenter()}f=M?p.Wn.eC(d.toJSON(),
f.toJSON()):p.Wn.eC(d.toJson(),f.toJson());M?(f=la(f),f.set("spatialReference",d.spatialReference)):(f=ka(f),f.setSpatialReference(d.spatialReference));return f};d.flipVertical=function(d,f){if(void 0===f||null===f)switch(d.type){case "point":f=d;break;case "extent":f=M?d.get("center"):d.getCenter();break;default:f=M?d.get("extent").get("center"):d.getExtent().getCenter()}f=M?p.Wn.fC(d.toJSON(),f.toJSON()):p.Wn.fC(d.toJson(),f.toJson());M?(f=la(f),f.set("spatialReference",d.spatialReference)):(f=
ka(f),f.setSpatialReference(d.spatialReference));return f};d.planarArea=function(d,f){if(null===d)throw Error("Illegal Argument Exception");return p.Pb.BQ(E(d),I(d),p.Tb.Qd(U(f,2)))};d.planarLength=function(d,f){if(null===d)throw Error("Illegal Argument Exception");return p.Pb.CQ(E(d),I(d),p.Tb.Qd(U(f,3)))};d.geodesicArea=function(d,f,b){if(null===d)throw Error("Illegal Argument Exception");return p.Pb.jN(E(d),I(d),p.Tb.Qd(U(f,2)),ja(b))};d.geodesicLength=function(d,f,b){if(null===d)throw Error("Illegal Argument Exception");
return p.Pb.nN(E(d),I(d),p.Tb.Qd(U(f,0)),ja(b))};return d}()});