olcesium.js 563 KB
Newer Older
Patrick's avatar
Patrick committed
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
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
// Ol-Cesium. See https://github.com/openlayers/ol-cesium/
// License: https://github.com/openlayers/ol-cesium/blob/master/LICENSE
// Version: v3.6-276-g4aa8d6063

(function(){'use strict';var k,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ca(){ca=function(){};ba.Symbol||(ba.Symbol=da)}var da=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}();
function ea(){ca();var a=ba.Symbol.iterator;a||(a=ba.Symbol.iterator=ba.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(this)}});ea=function(){}}function fa(a){var b=0;return ha(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})}function ha(a){ea();a={next:a};a[ba.Symbol.iterator]=function(){return this};return a}
function ia(a){if(!(a instanceof Array)){ea();var b=a[Symbol.iterator];a=b?b.call(a):fa(a);for(var c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}function ja(a,b){if(b){var c=ba;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&aa(c,a,{configurable:!0,writable:!0,value:b})}}ja("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
ja("Object.assign",function(a){return a?a:function(a,c){for(var b=1;b<arguments.length;b++){var e=arguments[b];if(e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(a[f]=e[f])}return a}});ja("Math.cosh",function(a){if(a)return a;var b=Math.exp;return function(a){a=Number(a);return(b(a)+b(-a))/2}});ja("Number.EPSILON",function(){return Math.pow(2,-52)});ja("Object.is",function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}});
ja("Number.isFinite",function(a){return a?a:function(a){return"number"!==typeof a?!1:!isNaN(a)&&Infinity!==a&&-Infinity!==a}});var ka=this;function r(a,b){a=a.split(".");var c=ka;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}
function la(a,b){function c(){}c.prototype=b.prototype;a.gs=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.bs=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};function ma(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ma);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}la(ma,Error);ma.prototype.name="CustomError";function na(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")};function oa(a,b){b.unshift(a);ma.call(this,na.apply(null,b));b.shift()}la(oa,ma);oa.prototype.name="AssertionError";function qa(a,b){throw new oa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var sa,ta;function v(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a}function ua(){}function x(a){return a.xj||(a.xj=++va)}var va=0;var wa="function"===typeof Object.assign?Object.assign:function(a,b){if(void 0===a||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1,e=arguments.length;d<e;++d){var f=arguments[d];if(void 0!==f&&null!==f)for(var g in f)f.hasOwnProperty(g)&&(c[g]=f[g])}return c};function xa(a){for(var b in a)delete a[b]}function za(a){var b=[],c;for(c in a)b.push(a[c]);return b}function Aa(a){for(var b in a)return!1;return!b};function Ba(a){function b(b){var c=a.listener,e=a.Oh||a.target;a.Qh&&Ca(a);return c.call(e,b)}return a.Ph=b}function Ea(a,b,c,d){for(var e,f=0,g=a.length;f<g;++f)if(e=a[f],e.listener===b&&e.Oh===c)return d&&(e.deleteIndex=f),e}function Fa(a,b){return(a=a.Za)?a[b]:void 0}function Ga(a){var b=a.Za;b||(b=a.Za={});return b}
function Ha(a,b){var c=Fa(a,b);if(c){for(var d=0,e=c.length;d<e;++d)a.removeEventListener(b,c[d].Ph),xa(c[d]);c.length=0;if(c=a.Za)delete c[b],0===Object.keys(c).length&&delete a.Za}}function y(a,b,c,d,e){var f=Ga(a),g=f[b];g||(g=f[b]=[]);(f=Ea(g,c,d,!1))?e||(f.Qh=!1):(f={Oh:d,Qh:!!e,listener:c,target:a,type:b},a.addEventListener(b,Ba(f)),g.push(f));return f}function Ia(a,b,c,d){return y(a,b,c,d,!0)}function Ja(a,b,c,d){(a=Fa(a,b))&&(c=Ea(a,c,d,!0))&&Ca(c)}
function Ca(a){if(a&&a.target){a.target.removeEventListener(a.type,a.Ph);var b=Fa(a.target,a.type);if(b){var c="deleteIndex"in a?a.deleteIndex:b.indexOf(a);-1!==c&&b.splice(c,1);0===b.length&&Ha(a.target,a.type)}xa(a)}}function Ka(a){var b=Ga(a),c;for(c in b)Ha(a,c)};function La(){}La.prototype.Db=!1;function Ma(a){a.Db||(a.Db=!0,a.xa())}La.prototype.xa=ua;function Na(a){this.type=a;this.target=null}Na.prototype.preventDefault=Na.prototype.stopPropagation=function(){this.lq=!0};function Oa(a){a.stopPropagation()};function Qa(){this.Ba={};this.ta={};this.ea={}}v(Qa,La);Qa.prototype.addEventListener=function(a,b){var c=this.ea[a];c||(c=this.ea[a]=[]);-1===c.indexOf(b)&&c.push(b)};
Qa.prototype.b=function(a){var b="string"===typeof a?new Na(a):a;a=b.type;b.target=this;var c=this.ea[a];if(c){a in this.ta||(this.ta[a]=0,this.Ba[a]=0);++this.ta[a];for(var d=0,e=c.length;d<e;++d)if(!1===c[d].call(this,b)||b.lq){var f=!1;break}--this.ta[a];if(0===this.ta[a]){b=this.Ba[a];for(delete this.Ba[a];b--;)this.removeEventListener(a,ua);delete this.ta[a]}return f}};Qa.prototype.xa=function(){Ka(this)};function Ra(a,b){return b?b in a.ea:0<Object.keys(a.ea).length}
Qa.prototype.removeEventListener=function(a,b){var c=this.ea[a];c&&(b=c.indexOf(b),a in this.Ba?(c[b]=ua,++this.Ba[a]):(c.splice(b,1),0===c.length&&delete this.ea[a]))};function Sa(){Qa.call(this);this.g=0}v(Sa,Qa);function Ta(a){if(Array.isArray(a))for(var b=0,c=a.length;b<c;++b)Ca(a[b]);else Ca(a)}k=Sa.prototype;k.u=function(){++this.g;this.b("change")};k.M=function(){return this.g};k.H=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=y(this,a[f],b,c);return e}return y(this,a,b,c)};k.once=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=Ia(this,a[f],b,c);return e}return Ia(this,a,b,c)};
k.K=function(a,b,c){if(Array.isArray(a))for(var d=0,e=a.length;d<e;++d)Ja(this,a[d],b,c);else Ja(this,a,b,c)};function Va(a){this.message="Assertion failed. See https://openlayers.org/en/latest/doc/errors/#"+a+" for details.";this.code=a;this.name="AssertionError"}v(Va,Error);function Wa(a){Sa.call(this);x(this);this.I={};void 0!==a&&this.J(a)}v(Wa,Sa);var Xa={};function Ya(a){return Xa.hasOwnProperty(a)?Xa[a]:Xa[a]="change:"+a.toString()}k=Wa.prototype;k.get=function(a){var b;this.I.hasOwnProperty(a)&&(b=this.I[a]);return b};k.P=function(){return[].concat(Object.keys(this.I),Object.getOwnPropertySymbols(this.I))};k.L=function(){return Object.assign({},this.I)};function Za(a,b,c){var d=Ya(b);a.b(new ab(d,b,c));a.b(new ab("propertychange",b,c))}
k.set=function(a,b,c){c?this.I[a]=b:(c=this.I[a],this.I[a]=b,c!==b&&Za(this,a,c))};k.J=function(a,b){if(a)for(var c,d=[].concat(Object.keys(a),Object.getOwnPropertySymbols(a)),e=d.length,f=0;f<e;f++)c=d[f],this.set(c,a[c],b)};k.S=function(a,b){if(a in this.I){var c=this.I[a];delete this.I[a];b||Za(this,a,c)}};function ab(a,b,c){Na.call(this,a);this.key=b;this.oldValue=c}v(ab,Na);function bb(a,b){Wa.call(this);this.c=!!(b||{}).unique;this.a=a?a:[];if(this.c)for(a=0,b=this.a.length;a<b;++a)cb(this,this.a[a],a);db(this)}v(bb,Wa);k=bb.prototype;k.clear=function(){for(;0<this.rc();)this.pop()};k.Fg=function(a){var b;var c=0;for(b=a.length;c<b;++c)this.push(a[c]);return this};k.forEach=function(a,b){this.a.forEach(a,b)};k.ln=function(){return this.a};k.item=function(a){return this.a[a]};k.rc=function(){return this.get(eb)};
k.ff=function(a,b){this.c&&cb(this,b);this.a.splice(a,0,b);db(this);this.b(new fb("add",b))};k.pop=function(){return this.ih(this.rc()-1)};k.push=function(a){this.c&&cb(this,a);var b=this.rc();this.ff(b,a);return this.rc()};k.remove=function(a){var b=this.a,c;var d=0;for(c=b.length;d<c;++d)if(b[d]===a)return this.ih(d)};k.ih=function(a){var b=this.a[a];this.a.splice(a,1);db(this);this.b(new fb("remove",b));return b};
k.gr=function(a,b){var c=this.rc();if(a<c)this.c&&cb(this,b,a),c=this.a[a],this.a[a]=b,this.b(new fb("remove",c)),this.b(new fb("add",b));else{for(;c<a;++c)this.ff(c,void 0);this.ff(a,b)}};function db(a){a.set(eb,a.a.length)}function cb(a,b,c){for(var d=0,e=a.a.length;d<e;++d)if(a.a[d]===b&&d!==c)throw new Va(58);}var eb="length";function fb(a,b){Na.call(this,a);this.element=b}v(fb,Na);function gb(a,b){if(!a)throw new Va(b);};function hb(a){for(var b=ib(),c=0,d=a.length;c<d;++c)jb(b,a[c]);return b}function kb(a,b,c){return c?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]}function lb(a,b){return b?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function mb(a,b,c){b=b<a[0]?a[0]-b:a[2]<b?b-a[2]:0;a=c<a[1]?a[1]-c:a[3]<c?c-a[3]:0;return b*b+a*a}function nb(a,b){return ob(a,b[0],b[1])}function pb(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}
function ob(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function qb(a,b){var c=a[1],d=a[2],e=a[3],f=b[0];b=b[1];var g=0;f<a[0]?g|=16:f>d&&(g|=4);b<c?g|=8:b>e&&(g|=2);0===g&&(g=1);return g}function ib(){return[Infinity,Infinity,-Infinity,-Infinity]}function rb(a,b,c,d,e){return e?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function sb(a,b){var c=a[0];a=a[1];return rb(c,a,c,a,b)}function tb(a,b,c,d,e){e=rb(Infinity,Infinity,-Infinity,-Infinity,e);return ub(e,a,b,c,d)}
function vb(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function wb(a,b){b[0]<a[0]&&(a[0]=b[0]);b[2]>a[2]&&(a[2]=b[2]);b[1]<a[1]&&(a[1]=b[1]);b[3]>a[3]&&(a[3]=b[3]);return a}function jb(a,b){b[0]<a[0]&&(a[0]=b[0]);b[0]>a[2]&&(a[2]=b[0]);b[1]<a[1]&&(a[1]=b[1]);b[1]>a[3]&&(a[3]=b[1])}function ub(a,b,c,d,e){for(;c<d;c+=e){var f=a,g=b[c],h=b[c+1];f[0]=Math.min(f[0],g);f[1]=Math.min(f[1],h);f[2]=Math.max(f[2],g);f[3]=Math.max(f[3],h)}return a}
function xb(a,b,c){var d;return(d=b.call(c,yb(a)))||(d=b.call(c,zb(a)))||(d=b.call(c,Ab(a)))?d:(d=b.call(c,Bb(a)))?d:!1}function Cb(a){var b=0;Db(a)||(b=Eb(a)*Fb(a));return b}function yb(a){return[a[0],a[1]]}function zb(a){return[a[2],a[1]]}function Gb(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
function Hb(a,b,c,d,e){var f=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);var g=Math.sin(c);c=f*b;f*=g;b*=d;var h=d*g,l=a[0],m=a[1];a=l-c+h;d=l-c-h;g=l+c-h;c=l+c+h;h=m-f-b;l=m-f+b;var n=m+f+b;f=m+f-b;return rb(Math.min(a,d,g,c),Math.min(h,l,n,f),Math.max(a,d,g,c),Math.max(h,l,n,f),e)}function Fb(a){return a[3]-a[1]}function Ib(a,b,c){c=c?c:ib();Jb(a,b)&&(c[0]=a[0]>b[0]?a[0]:b[0],c[1]=a[1]>b[1]?a[1]:b[1],c[2]=a[2]<b[2]?a[2]:b[2],c[3]=a[3]<b[3]?a[3]:b[3]);return c}function Bb(a){return[a[0],a[3]]}
function Ab(a){return[a[2],a[3]]}function Eb(a){return a[2]-a[0]}function Jb(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Db(a){return a[2]<a[0]||a[3]<a[1]}function Kb(a,b){var c=(a[2]-a[0])/2*(b-1);b=(a[3]-a[1])/2*(b-1);a[0]-=c;a[2]+=c;a[1]-=b;a[3]+=b}
function Lb(a,b,c){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];b(a,a,2);var d=[a[0],a[2],a[4],a[6]],e=[a[1],a[3],a[5],a[7]];b=Math.min.apply(null,d);a=Math.min.apply(null,e);d=Math.max.apply(null,d);e=Math.max.apply(null,e);return rb(b,a,d,e,c)};function Mb(a,b,c){return Math.min(Math.max(a,b),c)}var Nb=function(){var a;"cosh"in Math?a=Math.cosh:a=function(a){a=Math.exp(a);return(a+1/a)/2};return a}();function Ob(a){gb(0<a,29);return Math.pow(2,Math.ceil(Math.log(a)/Math.LN2))}function Pb(a,b,c,d,e,f){var g=e-c,h=f-d;if(0!==g||0!==h){var l=((a-c)*g+(b-d)*h)/(g*g+h*h);1<l?(c=e,d=f):0<l&&(c+=g*l,d+=h*l)}return Qb(a,b,c,d)}function Qb(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function Rb(a){return a*Math.PI/180}
function Sb(a,b){a%=b;return 0>a*b?a+b:a}function Tb(a,b,c){return a+c*(b-a)};function Ub(a){Wa.call(this);var b=wa({},a);b.opacity=void 0!==a.opacity?a.opacity:1;b.visible=void 0!==a.visible?a.visible:!0;b.zIndex=void 0!==a.zIndex?a.zIndex:0;b.maxResolution=void 0!==a.maxResolution?a.maxResolution:Infinity;b.minResolution=void 0!==a.minResolution?a.minResolution:0;this.J(b);this.c={layer:this,hf:!0}}v(Ub,Wa);
function Vb(a){a.c.opacity=Mb(a.La(),0,1);a.c.dk=a.wg();a.c.visible=a.lb();a.c.extent=a.D();a.c.zIndex=a.Da();a.c.maxResolution=a.tc();a.c.minResolution=Math.max(a.uc(),0);return a.c}k=Ub.prototype;k.D=function(){return this.get("extent")};k.tc=function(){return this.get("maxResolution")};k.uc=function(){return this.get("minResolution")};k.La=function(){return this.get("opacity")};k.lb=function(){return this.get("visible")};k.Da=function(){return this.get("zIndex")};
k.Oc=function(a){this.set("extent",a)};k.Sc=function(a){this.set("maxResolution",a)};k.Tc=function(a){this.set("minResolution",a)};k.Pc=function(a){this.set("opacity",a)};k.ec=function(a){this.set("visible",a)};k.jc=function(a){this.set("zIndex",a)};function Wb(a){var b=a||{};a=wa({},b);delete a.layers;b=b.layers;Ub.call(this,a);this.i=[];this.a={};y(this,Ya(Xb),this.wm,this);b?Array.isArray(b)?b=new bb(b.slice(),{unique:!0}):gb(b instanceof bb,43):b=new bb(void 0,{unique:!0});this.Yi(b)}v(Wb,Ub);k=Wb.prototype;k.Yd=function(){};k.df=function(){this.lb()&&this.u()};
k.wm=function(){this.i.forEach(Ca);this.i.length=0;var a=this.Tb();this.i.push(y(a,"add",this.vm,this),y(a,"remove",this.xm,this));for(var b in this.a)this.a[b].forEach(Ca);xa(this.a);a=a.a;var c;b=0;for(c=a.length;b<c;b++){var d=a[b];this.a[x(d).toString()]=[y(d,"propertychange",this.df,this),y(d,"change",this.df,this)]}this.u()};k.vm=function(a){a=a.element;var b=x(a).toString();this.a[b]=[y(a,"propertychange",this.df,this),y(a,"change",this.df,this)];this.u()};
k.xm=function(a){a=x(a.element).toString();this.a[a].forEach(Ca);delete this.a[a];this.u()};k.Tb=function(){return this.get(Xb)};k.Yi=function(a){this.set(Xb,a)};
k.tg=function(a){var b=void 0!==a?a:[],c=b.length;this.Tb().forEach(function(a){a.tg(b)});a=Vb(this);var d;for(d=b.length;c<d;c++){var e=b[c];e.opacity*=a.opacity;e.visible=e.visible&&a.visible;e.maxResolution=Math.min(e.maxResolution,a.maxResolution);e.minResolution=Math.max(e.minResolution,a.minResolution);void 0!==a.extent&&(e.extent=void 0!==e.extent?Ib(e.extent,a.extent):a.extent)}return b};k.wg=function(){return"ready"};var Xb="layers";function Yb(a,b){this.map=a;this.view=a.Z();this.scene=b;a.Nb().Tb();this.c=a.Nb();this.ed={};this.g={};this.a={}}Yb.prototype.vh=function(){this.Lj(!0);for(var a in this.a)this.a[a].forEach(Ta);for(a in this.g)Ta(this.g[a]);this.a={};this.g={};this.ed={};Zb(this,this.c)};Yb.prototype.Rg=function(){};
function Zb(a,b){for(var c=[b];0<c.length;){b=c.splice(0,1)[0];var d=x(b).toString(),e=null;b instanceof Wb?($b(a,b),(e=a.Zd(b))||b.Tb().forEach(function(a){a&&c.push(a)})):e=a.Zd(b);e&&(a.ed[d]=e,a.g[d]=y(b,"change:zIndex",a.Rg,a),e.forEach(function(a){this.Oe(a)},a))}a.Rg()}function ac(a,b){b=x(b).toString();var c=a.ed[b];c&&(c.forEach(function(a){this.kh(a,!1);this.jg(a)},a),Ta(a.g[b]),delete a.g[b]);delete a.ed[b];return!!c}
function bc(a,b){b!==a.c&&(b=x(b).toString(),a.a[b].forEach(function(a){Ta(a)}),delete a.a[b],delete a.ed[b])}function cc(a,b){if(b)for(var c=[b];0<c.length;){b=c.splice(0,1)[0];var d=ac(a,b);b instanceof Wb&&(bc(a,b),d||b.Tb().forEach(function(a){c.push(a)}))}}
function $b(a,b){var c=x(b).toString(),d=[];a.a[c]=d;var e=[],f=function(){var a=b.Tb();a&&(e=[a.H("add",function(a){Zb(this,a.element)},this),a.H("remove",function(a){cc(this,a.element)},this)],d.push.apply(d,[].concat(ia(e))))}.bind(a);f();d.push(b.H("change:layers",function(){e.forEach(function(a){var b=d.indexOf(a);0<=b&&d.splice(b,1);Ta(a)});f()}))};function ec(a){this.i=a;this.g=a.b;this.j=!1;this.a=this.b.bind(this);this.o=new Cesium.Matrix4;this.c=0;this.f=!1;this.g.postRender.addEventListener(this.N.bind(this));this.l="";this.l="onwheel"in this.g.canvas?"wheel":document.onmousewheel?"mousewheel":"DOMMouseScroll";this.ta=Cesium.loadWithXhr.load;this.G=Cesium.TaskProcessor.prototype.a;this.ea=Cesium.Camera.prototype.setView;this.C=Cesium.Camera.prototype.move;this.B=Cesium.Camera.prototype.rotate;this.v=Cesium.Camera.prototype.lookAt;this.I=
Cesium.Camera.prototype.flyTo;fc(this)}function gc(a,b){a.g.canvas.addEventListener(b,a.a,!1)}
function fc(a){gc(a,"mousemove");gc(a,"mousedown");gc(a,"mouseup");gc(a,"touchstart");gc(a,"touchend");gc(a,"touchmove");window.PointerEvent&&(gc(a,"pointerdown"),gc(a,"pointerup"),gc(a,"pointermove"));gc(a,a.l);window.addEventListener("resize",a.a,!1);Cesium.loadWithXhr.load=function(b,c,d,e,f,g,h,l,m){g.promise.always(a.a);a.ta(b,c,d,e,f,g,h,l,m)};Cesium.TaskProcessor.prototype.a=function(b,c){b=a.G.call(this,b,c);var d=this;d.b||(c=d._worker,d.b=c.onmessage,c.onmessage=function(b){d.b(b);a.b()});
return b};Cesium.Camera.prototype.setView=function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];a.ea.apply(this,c);a.b()};Cesium.Camera.prototype.move=function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];a.C.apply(this,c);a.b()};Cesium.Camera.prototype.rotate=function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];a.B.apply(this,c);a.b()};Cesium.Camera.prototype.lookAt=function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];a.v.apply(this,
c);a.b()};Cesium.Camera.prototype.flyTo=function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];a.I.apply(this,c);a.b()};a.i.R.Nb().H("change",a.a)}
ec.prototype.N=function(){var a=Date.now(),b=this.g,c=b.camera;Cesium.Matrix4.equalsEpsilon(this.o,c.viewMatrix,1E-5)||(this.c=a);var d=b.globe._surface;d=!d.tileProvider.ready||0<d._tileLoadQueueHigh.length||0<d._tileLoadQueueMedium.length||0<d._tileLoadQueueLow.length||0<d._debug.tilesWaitingForChildren;b=b.tweens;1E3>a-this.c||d||0!=b.length||(this.j&&console.log("stopping rendering @ "+Date.now()),this.i.ph(!0),this.f=!0);Cesium.Matrix4.clone(c.viewMatrix,this.o)};ec.prototype.s=function(){this.b()};
ec.prototype.b=function(){this.j&&this.f&&console.log("starting rendering @ "+Date.now());this.c=Date.now();this.i.ph(!1);this.f=!1};ec.prototype.Ba=function(a){this.j=a};/*

 Latitude/longitude spherical geodesy formulae taken from
 http://www.movable-type.co.uk/scripts/latlong.html
 Licensed under CC-BY-3.0.
*/
function hc(a){this.radius=a}hc.prototype.a=function(a){for(var b=0,c=a.length,d=a[c-1][0],e=a[c-1][1],f=0;f<c;f++){var g=a[f][0],h=a[f][1];b+=Rb(g-d)*(2+Math.sin(Rb(e))+Math.sin(Rb(h)));d=g;e=h}return b*this.radius*this.radius/2};hc.prototype.b=function(a,b){var c=Rb(a[1]),d=Rb(b[1]),e=(d-c)/2;a=Rb(b[0]-a[0])/2;c=Math.sin(e)*Math.sin(e)+Math.sin(a)*Math.sin(a)*Math.cos(c)*Math.cos(d);return 2*this.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};
hc.prototype.offset=function(a,b,c){var d=Rb(a[1]);b/=this.radius;var e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return[180*(Rb(a[0])+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI]};var jc=new hc(6370997);var kc={};kc.degrees=2*Math.PI*jc.radius/360;kc.ft=.3048;kc.m=1;kc["us-ft"]=1200/3937;var lc=null;function mc(a){this.tb=a.code;this.i=a.units;this.c=void 0!==a.extent?a.extent:null;this.f=void 0!==a.worldExtent?a.worldExtent:null;this.b=void 0!==a.axisOrientation?a.axisOrientation:"enu";this.g=void 0!==a.global?a.global:!1;this.a=!(!this.g||!this.c);this.l=a.getPointResolution;this.j=null;this.o=a.metersPerUnit;var b=a.code,c=lc||window.proj4;"function"==typeof c&&(b=c.defs(b),void 0!==b&&(void 0!==b.axis&&void 0===a.axisOrientation&&(this.b=b.axis),void 0===a.metersPerUnit&&(this.o=b.to_meter),
void 0===a.units&&(this.i=b.units)))}k=mc.prototype;k.vl=function(){return this.tb};k.D=function(){return this.c};k.Pb=function(){return this.i};k.dc=function(){return this.o||kc[this.i]};k.im=function(){return this.f};k.Um=function(){return this.g};k.kr=function(a){this.g=a;this.a=!(!a||!this.c)};k.Mo=function(a){this.c=a;this.a=!(!this.g||!a)};k.zr=function(a){this.f=a};k.jr=function(a){this.l=a};function nc(a){mc.call(this,{code:a,units:"m",extent:oc,global:!0,worldExtent:pc,getPointResolution:function(a,c){return a/Nb(c[1]/6378137)}})}v(nc,mc);var rc=6378137*Math.PI,oc=[-rc,-rc,rc,rc],pc=[-180,-85,180,85],sc="EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" ").map(function(a){return new nc(a)});
function tc(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(2<c?b=a.slice():b=Array(d));for(var e=0;e<d;e+=c){b[e]=rc*a[e]/180;var f=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));f>rc?f=rc:f<-rc&&(f=-rc);b[e+1]=f}return b}function uc(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(2<c?b=a.slice():b=Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/rc,b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b};var vc=new hc(6378137);function wc(a,b){mc.call(this,{code:a,units:"degrees",extent:xc,axisOrientation:b,global:!0,metersPerUnit:yc,worldExtent:xc})}v(wc,mc);var xc=[-180,-90,180,90],yc=Math.PI*vc.radius/180,zc=[new wc("CRS:84"),new wc("EPSG:4326","neu"),new wc("urn:ogc:def:crs:EPSG::4326","neu"),new wc("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new wc("urn:ogc:def:crs:OGC:1.3:CRS84"),new wc("urn:ogc:def:crs:OGC:2:84"),new wc("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new wc("urn:x-ogc:def:crs:EPSG:4326","neu")];var Ac={};var Bc={};function Cc(a,b,c){a=a.tb;b=b.tb;a in Bc||(Bc[a]={});Bc[a][b]=c}function Dc(a,b){var c;a in Bc&&b in Bc[a]&&(c=Bc[a][b]);return c};function Ec(a,b,c){var d=a.l;d?b=d(b,c):"degrees"!=a.Pb()&&(d=Fc(a,Gc("EPSG:4326")),b=[c[0]-b/2,c[1],c[0]+b/2,c[1],c[0],c[1]-b/2,c[0],c[1]+b/2],b=d(b,b,2),b=(jc.b(b.slice(0,2),b.slice(2,4))+jc.b(b.slice(4,6),b.slice(6,8)))/2,a=a.dc(),void 0!==a&&(b/=a));return b}function Hc(a){Ic(a);a.forEach(function(b){a.forEach(function(a){b!==a&&Cc(b,a,Jc)})})}function Kc(){zc.forEach(function(a){sc.forEach(function(b){Cc(a,b,tc);Cc(b,a,uc)})})}function Lc(a){Ac[a.tb]=a;Cc(a,a,Jc)}
function Ic(a){var b=[];a.forEach(function(a){b.push(Lc(a))})}function Mc(a){return a?"string"===typeof a?Gc(a):a:Gc("EPSG:3857")}function Nc(a,b,c,d){a=Gc(a);b=Gc(b);Cc(a,b,Oc(c));Cc(b,a,Oc(d))}function Oc(a){return function(b,c,d){var e=b.length;d=void 0!==d?d:2;c=void 0!==c?c:Array(e);var f;for(f=0;f<e;f+=d){var g=a([b[f],b[f+1]]);c[f]=g[0];c[f+1]=g[1];for(g=d-1;2<=g;--g)c[f+g]=b[f+g]}return c}}
function Gc(a){var b=null;if(a instanceof mc)b=a;else if("string"===typeof a){b=Ac[a]||null;var c=lc||window.proj4;b||"function"!=typeof c||void 0===c.defs(a)||(b=new mc({code:a}),Lc(b))}return b}function Pc(a,b){if(a===b)return!0;var c=a.Pb()===b.Pb();return a.tb===b.tb?c:Fc(a,b)===Jc&&c}function Qc(a,b){a=Gc(a);b=Gc(b);return Fc(a,b)}
function Fc(a,b){var c=a.tb,d=b.tb,e=Dc(c,d);if(!e){var f=lc||window.proj4;if("function"==typeof f){var g=f.defs(c),h=f.defs(d);void 0!==g&&void 0!==h&&(g===h?Hc([b,a]):(e=f(d,c),Nc(b,a,e.forward,e.inverse)),e=Dc(c,d))}}e||(e=Rc);return e}function Rc(a,b){if(void 0!==b&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}function Jc(a,b){if(void 0!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}else a=a.slice();return a}function Sc(a,b,c){return Qc(b,c)(a,void 0,a.length)}
function Tc(a,b,c){b=Qc(b,c);return Lb(a,b)}function Uc(){Hc(sc);Hc(zc);Kc()}Uc();function Vc(a){var b=wa({},a);delete b.source;Ub.call(this,b);this.v=this.o=this.l=null;a.map&&this.setMap(a.map);y(this,Ya("source"),this.Jm,this);this.rd(a.source?a.source:null)}v(Vc,Ub);function Wc(a,b){return a.visible&&b>=a.minResolution&&b<a.maxResolution}k=Vc.prototype;k.tg=function(a){a=a?a:[];a.push(Vb(this));return a};k.ba=function(){return this.get("source")||null};k.wg=function(){var a=this.ba();return a?a.getState():"undefined"};k.Lo=function(){this.u()};
k.Jm=function(){this.v&&(Ca(this.v),this.v=null);var a=this.ba();a&&(this.v=y(a,"change",this.Lo,this));this.u()};k.setMap=function(a){this.l&&(Ca(this.l),this.l=null);a||this.u();this.o&&(Ca(this.o),this.o=null);a&&(this.l=y(a,"precompose",function(a){var b=Vb(this);b.hf=!1;b.zIndex=Infinity;a.frameState.layerStatesArray.push(b);a.frameState.layerStates[x(this)]=b},this),this.o=y(this,"change",a.render,a),this.u())};k.rd=function(a){this.set("source",a)};function Xc(a,b,c,d){this.ga=a;this.da=b;this.ha=c;this.ka=d}function Yc(a,b,c){return a.ga<=b&&b<=a.da&&a.ha<=c&&c<=a.ka}function Zc(a,b){return a.ga==b.ga&&a.ha==b.ha&&a.da==b.da&&a.ka==b.ka}function $c(a,b){return a.ga<=b.da&&a.da>=b.ga&&a.ha<=b.ka&&a.ka>=b.ha};function ad(a,b){return a>b?1:a<b?-1:0}function bd(a,b){return 0<=a.indexOf(b)}function cd(a,b,c){var d=a.length;if(a[0]<=b)return 0;if(!(b<=a[d-1]))if(0<c)for(c=1;c<d;++c){if(a[c]<b)return c-1}else if(0>c)for(c=1;c<d;++c){if(a[c]<=b)return c}else for(c=1;c<d;++c){if(a[c]==b)return c;if(a[c]<b)return a[c-1]-b<b-a[c]?c-1:c}return d-1}function dd(a,b){var c=Array.isArray(b)?b:[b],d=c.length;for(b=0;b<d;b++)a[a.length]=c[b]}
function ed(a,b){for(var c=a.length>>>0,d,e=0;e<c;e++)if(d=a[e],b(d,e,a))return d;return null}function fd(a,b){var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}function gd(a,b){var c=a.length,d=Array(a.length),e;for(e=0;e<c;e++)d[e]={index:e,value:a[e]};d.sort(function(a,c){return b(a.value,c.value)||a.index-c.index});for(e=0;e<a.length;e++)a[e]=d[e].value}function hd(a,b){var c;return a.every(function(d,e){c=e;return!b(d,e,a)})?-1:c}
function id(a,b){var c=b||ad;return a.every(function(b,e){if(0===e)return!0;b=c(a[e-1],b);return!(0<b||0===b)})};function kd(a,b){var c=document.createElement("CANVAS");a&&(c.width=a);b&&(c.height=b);return c.getContext("2d")}function ld(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function md(a){a&&a.parentNode&&a.parentNode.removeChild(a)};function nd(a,b){a=void 0!==b?a.toFixed(b):""+a;b=a.indexOf(".");b=-1===b?a.length:b;return 2<b?a:Array(3-b).join("0")+a}function od(a){a=(""+a).split(".");for(var b=["1","3"],c=0;c<Math.max(a.length,b.length);c++){var d=parseInt(a[c]||"0",10),e=parseInt(b[c]||"0",10);if(d>e)return 1;if(e>d)return-1}return 0};function pd(a,b){a[0]+=b[0];a[1]+=b[1];return a}function qd(a,b){var c=a[0];a=a[1];var d=b[0],e=b[1];b=d[0];d=d[1];var f=e[0];e=e[1];var g=f-b,h=e-d;c=0===g&&0===h?0:(g*(c-b)+h*(a-d))/(g*g+h*h||0);0>=c?(a=b,c=d):1<=c?(a=f,c=e):(a=b+c*g,c=d+c*h);return[a,c]}
function rd(a,b,c){a=Sb(a+180,360)-180;var d=Math.abs(3600*a);c=c||0;var e=Math.pow(10,c),f=Math.floor(d/3600),g=Math.floor((d-3600*f)/60);d=Math.ceil((d-3600*f-60*g)*e)/e;60<=d&&(d=0,g+=1);60<=g&&(g=0,f+=1);return f+"\u00b0 "+nd(g)+"\u2032 "+nd(d,c)+"\u2033 "+b.charAt(0>a?1:0)}function sd(a,b,c){return a?b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}function td(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}
function ud(a,b){var c=Math.cos(b);b=Math.sin(b);var d=a[1]*c+a[0]*b;a[0]=a[0]*c-a[1]*b;a[1]=d;return a}function vd(a,b){a[0]*=b;a[1]*=b}function wd(a,b){var c=a[0]-b[0];a=a[1]-b[1];return c*c+a*a}function xd(a,b){return Math.sqrt(wd(a,b))}function yd(a,b){return wd(a,qd(a,b))}function zd(a,b){return sd(a,"{x}, {y}",b)};function Ad(){return!0}function Bd(){return!1};function Cd(a,b,c,d,e){Na.call(this,a);this.vectorContext=b;this.frameState=c;this.context=d;this.glContext=e}v(Cd,Na);var Dd=[0,0,0,1],Ed=[],Fd=[0,0,0,1];function Gd(a,b,c,d){0!==b&&(a.translate(c,d),a.rotate(b),a.translate(-c,-d))};var Hd=/^#(?:[0-9a-f]{3}){1,2}$/i,Id=/^([a-z]*)$/i;function Jd(a){return Array.isArray(a)?a:Kd(a)}function Ld(a){if("string"!==typeof a){var b=a[0];b!=(b|0)&&(b=b+.5|0);var c=a[1];c!=(c|0)&&(c=c+.5|0);var d=a[2];d!=(d|0)&&(d=d+.5|0);a="rgba("+b+","+c+","+d+","+(void 0===a[3]?1:a[3])+")"}return a}
var Kd=function(){var a={},b=0;return function(c){if(a.hasOwnProperty(c))var d=a[c];else{if(1024<=b){d=0;for(var e in a)0===(d++&3)&&(delete a[e],--b)}d=c;Id.exec(d)&&(e=document.createElement("div"),e.style.color=d,document.body.appendChild(e),d=getComputedStyle(e).color,document.body.removeChild(e));if(Hd.exec(d)){var f=d.length-1;gb(3==f||6==f,54);var g=3==f?1:2;f=parseInt(d.substr(1+0*g,g),16);e=parseInt(d.substr(1+1*g,g),16);d=parseInt(d.substr(1+2*g,g),16);1==g&&(f=(f<<4)+f,e=(e<<4)+e,d=(d<<
4)+d);f=[f,e,d,1]}else 0==d.indexOf("rgba(")?(d=d.slice(5,-1).split(",").map(Number),f=Md(d)):0==d.indexOf("rgb(")?(d=d.slice(4,-1).split(",").map(Number),d.push(1),f=Md(d)):gb(!1,14);d=f;a[c]=d;++b}return d}}();function Md(a){var b=[];b[0]=Mb(a[0]+.5|0,0,255);b[1]=Mb(a[1]+.5|0,0,255);b[2]=Mb(a[2]+.5|0,0,255);b[3]=Mb(a[3],0,1);return b};function Nd(a){return"string"===typeof a||a instanceof CanvasPattern||a instanceof CanvasGradient?a:Ld(a)};function Od(){Wa.call(this);this.o=ib();this.s=-1;this.i={};this.l=this.f=0}v(Od,Wa);k=Od.prototype;k.Fb=function(a,b){b=b?b:[NaN,NaN];this.Lb(a[0],a[1],b,Infinity);return b};k.yb=function(a){return this.hd(a[0],a[1])};k.hd=Bd;k.D=function(a){this.s!=this.g&&(this.o=this.Qe(this.o),this.s=this.g);var b=this.o;a?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};k.Wb=function(a){return this.le(a*a)};k.transform=function(a,b){this.yc(Qc(a,b));return this};function Pd(a,b,c,d,e,f){for(var g=f?f:[],h=0;b<c;b+=d){var l=a[b],m=a[b+1];g[h++]=e[0]*l+e[2]*m+e[4];g[h++]=e[1]*l+e[3]*m+e[5]}f&&g.length!=h&&(g.length=h);return g}function Qd(a,b,c,d,e,f){var g=f?f:[],h=0,l,m;for(l=0;l<b;l+=c)for(g[h++]=a[l]+d,g[h++]=a[l+1]+e,m=l+2;m<l+c;++m)g[h++]=a[m];f&&g.length!=h&&(g.length=h);return g};function Rd(){Od.call(this);this.ma="XY";this.a=2;this.A=null}v(Rd,Od);function Sd(a){var b;"XY"==a?b=2:"XYZ"==a||"XYM"==a?b=3:"XYZM"==a&&(b=4);return b}k=Rd.prototype;k.hd=Bd;k.Qe=function(a){return tb(this.A,0,this.A.length,this.a,a)};k.ac=function(){return this.A.slice(0,this.a)};k.ja=function(){return this.A};k.pc=function(){return this.A.slice(this.A.length-this.a)};k.qc=function(){return this.ma};
k.le=function(a){this.l!=this.g&&(xa(this.i),this.f=0,this.l=this.g);if(0>a||0!==this.f&&a<=this.f)return this;var b=a.toString();if(this.i.hasOwnProperty(b))return this.i[b];var c=this.Dd(a);if(c.ja().length<this.A.length)return this.i[b]=c;this.f=a;return this};k.Dd=function(){return this};k.ya=function(){return this.a};function Td(a,b,c){a.a=Sd(b);a.ma=b;a.A=c}
function Ud(a,b,c,d){if(b)c=Sd(b);else{for(b=0;b<d;++b){if(0===c.length){a.ma="XY";a.a=2;return}c=c[0]}c=c.length;var e;2==c?e="XY":3==c?e="XYZ":4==c&&(e="XYZM");b=e}a.ma=b;a.a=c}k.yc=function(a){this.A&&(a(this.A,this.A,this.a),this.u())};
k.rotate=function(a,b){var c=this.ja();if(c){var d=c.length,e=this.ya(),f=c?c:[],g=Math.cos(a);a=Math.sin(a);var h=b[0];b=b[1];for(var l=0,m=0;m<d;m+=e){var n=c[m]-h,p=c[m+1]-b;f[l++]=h+n*g-p*a;f[l++]=b+n*a+p*g;for(n=m+2;n<m+e;++n)f[l++]=c[n]}c&&f.length!=l&&(f.length=l);this.u()}};
k.scale=function(a,b,c){var d=b;void 0===d&&(d=a);var e=c;e||(e=Gb(this.D()));if(c=this.ja()){b=c.length;var f=this.ya(),g=c?c:[],h=e[0];e=e[1];for(var l=0,m=0;m<b;m+=f){var n=c[m]-h,p=c[m+1]-e;g[l++]=h+a*n;g[l++]=e+d*p;for(n=m+2;n<m+f;++n)g[l++]=c[n]}c&&g.length!=l&&(g.length=l);this.u()}};k.translate=function(a,b){var c=this.ja();c&&(Qd(c,c.length,this.ya(),a,b,c),this.u())};var Vd=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Wd(a,b){var c,d,e=Vd.length;for(d=0;d<e;++d)try{if(c=a.getContext(Vd[d],b))return c}catch(f){}return null};var Xd,Yd="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"",Zd=-1!==Yd.indexOf("firefox"),$d=-1!==Yd.indexOf("safari")&&-1==Yd.indexOf("chrom"),ae=-1!==Yd.indexOf("webkit")&&-1==Yd.indexOf("edge"),be=-1!==Yd.indexOf("macintosh"),ce=window.devicePixelRatio||1,de=!1,ee=function(){if(!("HTMLCanvasElement"in window))return!1;try{var a=document.createElement("CANVAS").getContext("2d");return a?(void 0!==a.setLineDash&&(de=!0),!0):!1}catch(b){return!1}}(),fe="DeviceOrientationEvent"in
window,ge="geolocation"in navigator,he="ontouchstart"in window,ie="PointerEvent"in window,je=!!navigator.msPointerEnabled,ke=!1,le,me=[];if("WebGLRenderingContext"in window)try{var ne=Wd(document.createElement("CANVAS"),{failIfMajorPerformanceCaveat:!0});ne&&(ke=!0,le=ne.getParameter(ne.MAX_TEXTURE_SIZE),me=ne.getSupportedExtensions())}catch(a){}Xd=ke;ta=me;sa=le;function oe(){}k=oe.prototype;k.Ac=function(){};k.Id=function(){};k.nc=function(){};k.Re=function(){};k.Se=function(){};k.Yb=function(){};k.Bc=function(){};k.Cc=function(){};k.Dc=function(){};k.Ec=function(){};k.Fc=function(){};k.Qc=function(){};k.Ta=function(){};k.ic=function(){};k.fc=function(){};var pe=Array(6);function qe(){return[1,0,0,1,0,0]}function re(a){return se(a,1,0,0,1,0,0)}function te(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],l=b[0],m=b[1],n=b[2],p=b[3],q=b[4];b=b[5];a[0]=c*l+e*m;a[1]=d*l+f*m;a[2]=c*n+e*p;a[3]=d*n+f*p;a[4]=c*q+e*b+g;a[5]=d*q+f*b+h;return a}function se(a,b,c,d,e,f,g){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;return a}function ue(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];return a}
function ve(a,b){var c=b[0],d=b[1];b[0]=a[0]*c+a[2]*d+a[4];b[1]=a[1]*c+a[3]*d+a[5];return b}function we(a,b){var c=Math.cos(b);b=Math.sin(b);te(a,se(pe,c,b,-b,c,0,0))}function xe(a,b,c){return te(a,se(pe,b,0,0,c,0,0))}function ye(a,b,c){te(a,se(pe,1,0,0,1,b,c))}function ze(a,b,c,d,e,f,g,h){var l=Math.sin(f);f=Math.cos(f);a[0]=d*f;a[1]=e*l;a[2]=-d*l;a[3]=e*f;a[4]=g*d*f-h*d*l+b;a[5]=g*e*l+h*e*f+c;return a}
function Ae(a){var b=a[0]*a[3]-a[1]*a[2];gb(0!==b,32);var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5];a[0]=f/b;a[1]=-d/b;a[2]=-e/b;a[3]=c/b;a[4]=(e*h-f*g)/b;a[5]=-(c*h-d*g)/b;return a};function Be(a,b,c,d,e){this.g=a;this.I=b;this.c=c;this.v=d;this.lc=e;this.O=this.b=this.a=this.aa=this.Ba=this.N=null;this.$=this.X=this.o=this.ea=this.B=this.C=0;this.Za=!1;this.i=this.la=0;this.na=!1;this.ta=0;this.Ja="";this.wa=this.Db=0;this.Xa=!1;this.j=this.Ua=0;this.G=this.l=this.f=null;this.s=[];this.rb=qe()}v(Be,oe);
function Ce(a,b,c){if(a.O){b=Pd(b,0,c,2,a.v,a.s);c=a.g;var d=a.rb,e=c.globalAlpha;1!=a.o&&(c.globalAlpha=e*a.o);var f=a.la;a.Za&&(f+=a.lc);var g;var h=0;for(g=b.length;h<g;h+=2){var l=b[h]-a.C,m=b[h+1]-a.B;a.na&&(l=Math.round(l),m=Math.round(m));if(0!==f||1!=a.i){var n=l+a.C,p=m+a.B;ze(d,n,p,a.i,a.i,f,-n,-p);c.setTransform.apply(c,d)}c.drawImage(a.O,a.X,a.$,a.ta,a.ea,l,m,a.ta,a.ea)}0===f&&1==a.i||c.setTransform(1,0,0,1,0,0);1!=a.o&&(c.globalAlpha=e)}}
function De(a,b,c,d){var e=0;if(a.G&&""!==a.Ja){a.f&&Ee(a,a.f);a.l&&Fe(a,a.l);var f=a.G,g=a.g,h=a.aa;h?(h.font!=f.font&&(h.font=g.font=f.font),h.textAlign!=f.textAlign&&(h.textAlign=g.textAlign=f.textAlign),h.textBaseline!=f.textBaseline&&(h.textBaseline=g.textBaseline=f.textBaseline)):(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline,a.aa={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});b=Pd(b,e,c,d,a.v,a.s);f=a.g;g=a.Ua;for(a.Xa&&(g+=a.lc);e<c;e+=d){h=b[e]+a.Db;
var l=b[e+1]+a.wa;if(0!==g||1!=a.j){var m=ze(a.rb,h,l,a.j,a.j,g,-h,-l);f.setTransform.apply(f,m)}a.l&&f.strokeText(a.Ja,h,l);a.f&&f.fillText(a.Ja,h,l)}0===g&&1==a.j||f.setTransform(1,0,0,1,0,0)}}function Ge(a,b,c,d,e,f){var g=a.g;a=Pd(b,c,d,e,a.v,a.s);g.moveTo(a[0],a[1]);b=a.length;f&&(b-=2);for(c=2;c<b;c+=2)g.lineTo(a[c],a[c+1]);f&&g.closePath();return d}function He(a,b,c,d,e){var f;var g=0;for(f=d.length;g<f;++g)c=Ge(a,b,c,d[g],e,!0);return c}k=Be.prototype;
k.nc=function(a){if(Jb(this.c,a.D())){if(this.a||this.b){this.a&&Ee(this,this.a);this.b&&Fe(this,this.b);var b=this.v;var c=this.s,d=a.ja();b=d?Pd(d,0,d.length,a.ya(),b,c):null;c=b[2]-b[0];d=b[3]-b[1];c=Math.sqrt(c*c+d*d);d=this.g;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);this.a&&d.fill();this.b&&d.stroke()}""!==this.Ja&&De(this,a.va(),2,2)}};k.Id=function(a){this.Ta(a.qa(),a.pa());this.ic(a.W());this.fc(a.ra())};
k.Ac=function(a){switch(a.T()){case "Point":this.Ec(a);break;case "LineString":this.Yb(a);break;case "Polygon":this.Fc(a);break;case "MultiPoint":this.Cc(a);break;case "MultiLineString":this.Bc(a);break;case "MultiPolygon":this.Dc(a);break;case "GeometryCollection":this.Se(a);break;case "Circle":this.nc(a)}};k.Re=function(a,b){(a=(0,b.Va)(a))&&Jb(this.c,a.D())&&(this.Id(b),this.Ac(a))};k.Se=function(a){a=a.a;var b;var c=0;for(b=a.length;c<b;++c)this.Ac(a[c])};
k.Ec=function(a){var b=a.ja();a=a.ya();this.O&&Ce(this,b,b.length);""!==this.Ja&&De(this,b,b.length,a)};k.Cc=function(a){var b=a.ja();a=a.ya();this.O&&Ce(this,b,b.length);""!==this.Ja&&De(this,b,b.length,a)};k.Yb=function(a){if(Jb(this.c,a.D())){if(this.b){Fe(this,this.b);var b=this.g,c=a.ja();b.beginPath();Ge(this,c,0,c.length,a.ya(),!1);b.stroke()}""!==this.Ja&&(a=Ie(a),De(this,a,2,2))}};
k.Bc=function(a){var b=a.D();if(Jb(this.c,b)){if(this.b){Fe(this,this.b);b=this.g;var c=a.ja(),d=0,e=a.$b(),f=a.ya();b.beginPath();var g;var h=0;for(g=e.length;h<g;++h)d=Ge(this,c,d,e[h],f,!1);b.stroke()}""!==this.Ja&&(a=Je(a),De(this,a,a.length,2))}};k.Fc=function(a){if(Jb(this.c,a.D())){if(this.b||this.a){this.a&&Ee(this,this.a);this.b&&Fe(this,this.b);var b=this.g;b.beginPath();He(this,a.sc(),0,a.$b(),a.ya());this.a&&b.fill();this.b&&b.stroke()}""!==this.Ja&&(a=Ke(a),De(this,a,2,2))}};
k.Dc=function(a){if(Jb(this.c,a.D())){if(this.b||this.a){this.a&&Ee(this,this.a);this.b&&Fe(this,this.b);var b=this.g,c=Le(a),d=0,e=a.c,f=a.ya(),g;b.beginPath();var h=0;for(g=e.length;h<g;++h)d=He(this,c,d,e[h],f);this.a&&b.fill();this.b&&b.stroke()}""!==this.Ja&&(a=Me(a),De(this,a,a.length,2))}};function Ee(a,b){var c=a.g,d=a.N;d?d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle):(c.fillStyle=b.fillStyle,a.N={fillStyle:b.fillStyle})}
function Fe(a,b){var c=a.g,d=a.Ba;d?(d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap),de&&!fd(d.lineDash,b.lineDash)&&c.setLineDash(d.lineDash=b.lineDash),d.lineJoin!=b.lineJoin&&(d.lineJoin=c.lineJoin=b.lineJoin),d.lineWidth!=b.lineWidth&&(d.lineWidth=c.lineWidth=b.lineWidth),d.miterLimit!=b.miterLimit&&(d.miterLimit=c.miterLimit=b.miterLimit),d.strokeStyle!=b.strokeStyle&&(d.strokeStyle=c.strokeStyle=b.strokeStyle)):(c.lineCap=b.lineCap,de&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=
b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.Ba={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle})}
k.Ta=function(a,b){a?(a=a.b,this.a={fillStyle:Nd(a?a:Dd)}):this.a=null;if(b){a=b.b;var c=b.i,d=b.g,e=b.f,f=b.j,g=b.c;b=b.l;this.b={lineCap:void 0!==c?c:"round",lineDash:d?d:Ed,lineDashOffset:e?e:0,lineJoin:void 0!==f?f:"round",lineWidth:this.I*(void 0!==g?g:1),miterLimit:void 0!==b?b:10,strokeStyle:Nd(a?a:Fd)}}else this.b=null};
k.ic=function(a){if(a){var b=a.Gc(),c=a.W(1),d=a.jd(),e=a.gc();this.C=b[0];this.B=b[1];this.ea=e[1];this.O=c;this.o=a.La();this.X=d[0];this.$=d[1];this.Za=a.j;this.la=a.i;this.i=a.Ma();this.na=a.l;this.ta=e[0]}else this.O=null};
k.fc=function(a){if(a){var b=a.qa();b?(b=b.b,this.f={fillStyle:Nd(b?b:Dd)}):this.f=null;var c=a.pa();if(c){b=c.b;var d=c.i,e=c.g,f=c.f,g=c.j,h=c.c;c=c.l;this.l={lineCap:void 0!==d?d:"round",lineDash:e?e:Ed,lineDashOffset:f?f:0,lineJoin:void 0!==g?g:"round",lineWidth:void 0!==h?h:1,miterLimit:void 0!==c?c:10,strokeStyle:Nd(b?b:Fd)}}else this.l=null;b=a.Zb;d=a.Lc;e=a.Mc;f=a.a;g=a.b;h=a.Ma();c=a.ra();var l=a.Vc;a=a.sb;this.G={font:void 0!==b?b:"10px sans-serif",textAlign:void 0!==l?l:"center",textBaseline:void 0!==
a?a:"middle"};this.Ja=void 0!==c?c:"";this.Db=void 0!==d?this.I*d:0;this.wa=void 0!==e?this.I*e:0;this.Xa=void 0!==f?f:!1;this.Ua=void 0!==g?g:0;this.j=this.I*(void 0!==h?h:1)}else this.Ja=""};function Ne(a){Sa.call(this);this.a=a}v(Ne,Sa);Ne.prototype.Ga=ua;Ne.prototype.vf=Bd;Ne.prototype.hg=function(a,b,c){return function(d,e){return Oe(a,b,d,e,function(a){c[d]||(c[d]={});c[d][a.Ka.toString()]=a})}};Ne.prototype.$=function(a){2===a.target.getState()&&Pe(this)};function Qe(a,b){var c=b.getState();2!=c&&3!=c&&y(b,"change",a.$,a);0==c&&(b.load(),c=b.getState());return 2==c}function Pe(a){var b=a.a;b.lb()&&"ready"==b.wg()&&a.u()}
function Re(a,b){b.lj()&&a.postRenderFunctions.push(function(a,b,e){b=x(a).toString();a.Bd(e.viewState.projection,e.usedTiles[b])}.bind(null,b))}function Se(a,b){if(b){var c;var d=0;for(c=b.length;d<c;++d){var e=b[d];a[x(e).toString()]=e}}}function Te(a,b){b=b.C;void 0!==b&&("string"===typeof b?a.logos[b]="":b&&(gb("string"==typeof b.href,44),gb("string"==typeof b.src,45),a.logos[b.src]=b.href))}
function Ue(a,b,c,d){b=x(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],d.ga<a.ga&&(a.ga=d.ga),d.da>a.da&&(a.da=d.da),d.ha<a.ha&&(a.ha=d.ha),d.ka>a.ka&&(a.ka=d.ka)):a[b][c]=d:(a[b]={},a[b][c]=d)}
function Ve(a,b,c,d,e,f,g,h,l,m){var n=x(b).toString();n in a.wantedTiles||(a.wantedTiles[n]={});var p=a.wantedTiles[n];a=a.tileQueue;var q=c.minZoom,t,u,w;for(w=g;w>=q;--w){var z=We(c,f,w,z);var D=c.Ra(w);for(t=z.ga;t<=z.da;++t)for(u=z.ha;u<=z.ka;++u)if(g-w<=h){var B=b.cd(w,t,u,d,e);0==B.getState()&&(p[B.ob()]=!0,B.ob()in a.a||a.i([B,n,Xe(c,B.Ka),D]));void 0!==l&&l.call(m,B)}else b.xh(w,t,u,e)}};function Ye(a){Ne.call(this,a);this.la=qe()}v(Ye,Ne);function Ze(a,b,c){var d=b.pixelRatio,e=b.size[0]*d,f=b.size[1]*d,g=b.viewState.rotation,h=Bb(c),l=Ab(c),m=zb(c);c=yb(c);ve(b.coordinateToPixelTransform,h);ve(b.coordinateToPixelTransform,l);ve(b.coordinateToPixelTransform,m);ve(b.coordinateToPixelTransform,c);a.save();Gd(a,-g,e/2,f/2);a.beginPath();a.moveTo(h[0]*d,h[1]*d);a.lineTo(l[0]*d,l[1]*d);a.lineTo(m[0]*d,m[1]*d);a.lineTo(c[0]*d,c[1]*d);a.clip();Gd(a,g,e/2,f/2)}
function $e(a,b,c,d,e){var f=a.a;if(Ra(f,b)){var g=d.size[0]*d.pixelRatio,h=d.size[1]*d.pixelRatio,l=d.viewState.rotation;Gd(c,-l,g/2,h/2);a=void 0!==e?e:af(a,d,0);f.b(new Cd(b,new Be(c,d.pixelRatio,d.extent,a,d.viewState.rotation),d,c,null));Gd(c,l,g/2,h/2)}}Ye.prototype.I=function(a,b,c,d){if(this.Ga(a,b,0,Ad,this))return c.call(d,this.a,null)};Ye.prototype.Cf=function(a,b,c,d){$e(this,"postcompose",a,b,d)};
function af(a,b,c){var d=b.viewState,e=b.pixelRatio,f=e/d.resolution;return ze(a.la,e*b.size[0]/2,e*b.size[1]/2,f,-f,-d.rotation,-d.center[0]+c,-d.center[1])};function bf(a){Ye.call(this,a);this.s=qe();this.j=null}v(bf,Ye);bf.prototype.v=function(a,b,c){$e(this,"precompose",c,a,void 0);var d=this.W();if(d){var e=b.extent,f=void 0!==e&&!pb(e,a.extent)&&Jb(e,a.extent);f&&Ze(c,a,e);e=this.C();var g=c.globalAlpha;c.globalAlpha=b.opacity;c.drawImage(d,0,0,+d.width,+d.height,Math.round(e[4]),Math.round(e[5]),Math.round(d.width*e[0]),Math.round(d.height*e[3]));c.globalAlpha=g;f&&c.restore()}this.Cf(c,a,b)};
bf.prototype.Ga=function(a,b,c,d,e){var f=this.a;return f.ba().Ga(a,b.viewState.resolution,b.viewState.rotation,c,b.skippedFeatureUids,function(a){return d.call(e,a,f)})};
bf.prototype.I=function(a,b,c,d){if(this.W()){if(this.a.ba().Ga!==ua)return Ye.prototype.I.apply(this,arguments);var e=ve(this.s,a.slice());vd(e,b.viewState.resolution/this.f);this.j||(this.j=kd(1,1));this.j.clearRect(0,0,1,1);this.j.drawImage(this.W(),e[0],e[1],1,1,0,0,1,1);e=this.j.getImageData(0,0,1,1).data;if(0<e[3])return c.call(d,this.a,e)}};function cf(a){bf.call(this,a);this.c=null===this.c?null:kd();this.l=null;this.i=[];this.o=ib();this.wa=new Xc(0,0,0,0);this.B=qe();this.X=0}v(cf,bf);function df(a,b){b=b.getState();a=a.a.oe();return 2==b||4==b||3==b&&!a}
cf.prototype.Jd=function(a,b){var c=a.pixelRatio,d=a.size,e=a.viewState,f=e.projection,g=e.resolution;e=e.center;var h=this.a,l=h.ba(),m=l.g,n=l.Ob(f),p=n.dd(g,this.X),q=n.Ra(p),t=Math.round(g/q)||1,u=a.extent;void 0!==b.extent&&(u=Ib(u,b.extent));if(Db(u))return!1;var w=ef(n,u,q);var z=n.kd(p);var D=n.Ra(p),B=ff(n.gb(p),n.j);z=rb(z[0]+w.ga*B[0]*D,z[1]+w.ha*B[1]*D,z[0]+(w.da+1)*B[0]*D,z[1]+(w.ka+1)*B[1]*D,void 0);D=l.vb(c);B={};B[p]={};var S=this.hg(l,f,B),Ua=this.o,ya=this.wa,Da=!1,C,pa;for(C=w.ga;C<=
w.da;++C)for(pa=w.ha;pa<=w.ka;++pa){var $a=l.cd(p,C,pa,c,f);df(this,$a)||($a=gf($a));df(this,$a)?2==$a.getState()&&(B[p][$a.Ka.toString()]=$a,Da||-1!=this.i.indexOf($a)||(Da=!0)):hf(n,$a.Ka,S,ya,Ua)||($a=jf(n,$a.Ka,ya,Ua))&&S(p+1,$a)}C=a.viewHints;if(!(this.f&&16<Date.now()-a.time&&(C[0]||C[1])||!Da&&this.l&&pb(this.l,u)&&this.If==m)||t!=this.N){if(C=this.c)pa=l.ne(p,c,f),$a=Math.round((w.da-w.ga+1)*pa[0]/t),pa=Math.round((w.ka-w.ha+1)*pa[1]/t),Da=C.canvas,Da.width!=$a||Da.height!=pa?(this.N=t,Da.width=
$a,Da.height=pa):(C.clearRect(0,0,$a,pa),t=this.N);this.i.length=0;Da=Object.keys(B).map(Number);Da.sort(ad);var ra;ya=0;for(ra=Da.length;ya<ra;++ya){C=Da[ya];S=l.ne(C,c,f);$a=n.Ra(C);var dc=$a/q;var Pa=D*l.rg(f);var ic=B[C];for(var jd in ic){$a=ic[jd];pa=n.Ya($a.Ka,Ua);C=(pa[0]-z[0])/q*D/t;pa=(z[3]-pa[3])/q*D/t;var qc=S[0]*dc/t;var Lf=S[1]*dc/t;this.kg($a,a,b,C,pa,qc,Lf,Pa);this.i.push($a)}}this.If=m;this.f=q*c/D*t;this.l=z}b=this.f/g;b=ze(this.B,c*d[0]/2,c*d[1]/2,b,b,0,(this.l[0]-e[0])/this.f*c,
(e[1]-this.l[3])/this.f*c);ze(this.s,c*d[0]/2-b[4],c*d[1]/2-b[5],c/g,-c/g,0,-e[0],-e[1]);Ue(a.usedTiles,l,p,w);Ve(a,l,n,c,f,u,p,h.ke());Re(a,l);Te(a,l);return 0<this.i.length};cf.prototype.kg=function(a,b,c,d,e,f,g,h){this.a.ba().vg(b.viewState.projection)||this.c.clearRect(d,e,f,g);(a=a.W())&&this.c.drawImage(a,h,h,a.width-2*h,a.height-2*h,d,e,f,g)};cf.prototype.W=function(){var a=this.c;return a?a.canvas:null};cf.prototype.C=function(){return this.B};var lf=["Polygon","Circle","LineString","Image","Text"];function mf(){};function nf(a){this.b=a};function of(a){this.b=a}v(of,nf);of.prototype.T=function(){return 35632};function pf(a){this.b=a}v(pf,nf);pf.prototype.T=function(){return 35633};function qf(){this.b="precision mediump float;\nvarying vec2 v_center;\nvarying vec2 v_offset;\nvarying float v_halfWidth;\nvarying float v_pixelRatio;\n\n\n\nuniform float u_opacity;\nuniform vec4 u_fillColor;\nuniform vec4 u_strokeColor;\nuniform vec2 u_size;\n\nvoid main(void) {\n  vec2 windowCenter = vec2((v_center.x + 1.0) / 2.0 * u_size.x * v_pixelRatio,\n      (v_center.y + 1.0) / 2.0 * u_size.y * v_pixelRatio);\n  vec2 windowOffset = vec2((v_offset.x + 1.0) / 2.0 * u_size.x * v_pixelRatio,\n      (v_offset.y + 1.0) / 2.0 * u_size.y * v_pixelRatio);\n  float radius = length(windowCenter - windowOffset);\n  float dist = length(windowCenter - gl_FragCoord.xy);\n  if (dist > radius + v_halfWidth) {\n    if (u_strokeColor.a == 0.0) {\n      gl_FragColor = u_fillColor;\n    } else {\n      gl_FragColor = u_strokeColor;\n    }\n    gl_FragColor.a = gl_FragColor.a - (dist - (radius + v_halfWidth));\n  } else if (u_fillColor.a == 0.0) {\n    // Hooray, no fill, just stroke. We can use real antialiasing.\n    gl_FragColor = u_strokeColor;\n    if (dist < radius - v_halfWidth) {\n      gl_FragColor.a = gl_FragColor.a - (radius - v_halfWidth - dist);\n    }\n  } else {\n    gl_FragColor = u_fillColor;\n    float strokeDist = radius - v_halfWidth;\n    float antialias = 2.0 * v_pixelRatio;\n    if (dist > strokeDist) {\n      gl_FragColor = u_strokeColor;\n    } else if (dist >= strokeDist - antialias) {\n      float step = smoothstep(strokeDist - antialias, strokeDist, dist);\n      gl_FragColor = mix(u_fillColor, u_strokeColor, step);\n    }\n  }\n  gl_FragColor.a = gl_FragColor.a * u_opacity;\n  if (gl_FragColor.a <= 0.0) {\n    discard;\n  }\n}\n"}
v(qf,of);var rf=new qf;
function sf(){this.b="varying vec2 v_center;\nvarying vec2 v_offset;\nvarying float v_halfWidth;\nvarying float v_pixelRatio;\n\n\nattribute vec2 a_position;\nattribute float a_instruction;\nattribute float a_radius;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_lineWidth;\nuniform float u_pixelRatio;\n\nvoid main(void) {\n  mat4 offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n  v_center = vec4(u_projectionMatrix * vec4(a_position, 0.0, 1.0)).xy;\n  v_pixelRatio = u_pixelRatio;\n  float lineWidth = u_lineWidth * u_pixelRatio;\n  v_halfWidth = lineWidth / 2.0;\n  if (lineWidth == 0.0) {\n    lineWidth = 2.0 * u_pixelRatio;\n  }\n  vec2 offset;\n  // Radius with anitaliasing (roughly).\n  float radius = a_radius + 3.0 * u_pixelRatio;\n  // Until we get gl_VertexID in WebGL, we store an instruction.\n  if (a_instruction == 0.0) {\n    // Offsetting the edges of the triangle by lineWidth / 2 is necessary, however\n    // we should also leave some space for the antialiasing, thus we offset by lineWidth.\n    offset = vec2(-1.0, 1.0);\n  } else if (a_instruction == 1.0) {\n    offset = vec2(-1.0, -1.0);\n  } else if (a_instruction == 2.0) {\n    offset = vec2(1.0, -1.0);\n  } else {\n    offset = vec2(1.0, 1.0);\n  }\n\n  gl_Position = u_projectionMatrix * vec4(a_position + offset * radius, 0.0, 1.0) +\n      offsetMatrix * vec4(offset * lineWidth, 0.0, 0.0);\n  v_offset = vec4(u_projectionMatrix * vec4(a_position.x + a_radius, a_position.y,\n      0.0, 1.0)).xy;\n\n  if (distance(v_center, v_offset) > 20000.0) {\n    gl_Position = vec4(v_center, 0.0, 1.0);\n  }\n}\n\n\n"}
v(sf,pf);var tf=new sf;
function uf(a,b){this.ea=a.getUniformLocation(b,"u_fillColor");this.ta=a.getUniformLocation(b,"u_lineWidth");this.c=a.getUniformLocation(b,"u_offsetRotateMatrix");this.i=a.getUniformLocation(b,"u_offsetScaleMatrix");this.a=a.getUniformLocation(b,"u_opacity");this.G=a.getUniformLocation(b,"u_pixelRatio");this.g=a.getUniformLocation(b,"u_projectionMatrix");this.N=a.getUniformLocation(b,"u_size");this.Ba=a.getUniformLocation(b,"u_strokeColor");this.j=a.getAttribLocation(b,"a_instruction");this.b=a.getAttribLocation(b,
"a_position");this.v=a.getAttribLocation(b,"a_radius")};function vf(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function wf(a,b){a[0]=b[0];a[1]=b[1];a[4]=b[2];a[5]=b[3];a[12]=b[4];a[13]=b[5];return a};function xf(a,b){this.origin=Gb(b);this.lc=qe();this.Ua=qe();this.rb=qe();this.wa=vf();this.b=[];this.o=null;this.g=[];this.f=[];this.a=[];this.s=null;this.j=void 0}v(xf,oe);
xf.prototype.i=function(a,b,c,d,e,f,g,h,l,m,n){var p=a.b;if(this.j){var q=p.isEnabled(p.STENCIL_TEST);var t=p.getParameter(p.STENCIL_FUNC);var u=p.getParameter(p.STENCIL_VALUE_MASK);var w=p.getParameter(p.STENCIL_REF);var z=p.getParameter(p.STENCIL_WRITEMASK);var D=p.getParameter(p.STENCIL_FAIL);var B=p.getParameter(p.STENCIL_PASS_DEPTH_PASS);var S=p.getParameter(p.STENCIL_PASS_DEPTH_FAIL);p.enable(p.STENCIL_TEST);p.clear(p.STENCIL_BUFFER_BIT);p.stencilMask(255);p.stencilFunc(p.ALWAYS,1,255);p.stencilOp(p.KEEP,
p.KEEP,p.REPLACE);this.j.i(a,b,c,d,e,f,g,h,l,m,n);p.stencilMask(0);p.stencilFunc(p.NOTEQUAL,1,255)}yf(a,34962,this.s);yf(a,34963,this.o);f=this.Nf(p,a,e,f);var Ua=re(this.lc);xe(Ua,2/(c*e[0]),2/(c*e[1]));we(Ua,-d);ye(Ua,-(b[0]-this.origin[0]),-(b[1]-this.origin[1]));b=re(this.rb);xe(b,2/e[0],2/e[1]);e=re(this.Ua);0!==d&&we(e,-d);p.uniformMatrix4fv(f.g,!1,wf(this.wa,Ua));p.uniformMatrix4fv(f.i,!1,wf(this.wa,b));p.uniformMatrix4fv(f.c,!1,wf(this.wa,e));p.uniform1f(f.a,g);if(void 0===l)this.he(p,a,h,
!1);else{m?a=this.Te(p,a,h,l,n):(p.clear(p.COLOR_BUFFER_BIT|p.DEPTH_BUFFER_BIT),this.he(p,a,h,!0),a=(a=l(null))?a:void 0);var ya=a}this.Of(p,f);this.j&&(q||p.disable(p.STENCIL_TEST),p.clear(p.STENCIL_BUFFER_BIT),p.stencilFunc(t,w,u),p.stencilMask(z),p.stencilOp(D,S,B));return ya};function zf(a,b,c,d){a.drawElements(4,d-c,b.f?5125:5123,c*(b.f?4:2))};var Af=[0,0,0,1],Bf=[],Cf=[0,0,0,1];function Df(a,b,c,d,e,f){a=(c-a)*(f-b)-(e-a)*(d-b);return a<=Ef&&a>=-Ef?void 0:0<a}var Ef=Number.EPSILON||2.220446049250313E-16;function Ff(a){this.b=void 0!==a?a:[];this.a=Gf}var Gf=35044;function Hf(a,b){xf.call(this,a,b);this.I=null;this.l=[];this.v=[];this.C=0;this.c={fillColor:null,strokeColor:null,lineDash:null,lineDashOffset:void 0,lineWidth:void 0,u:!1}}v(Hf,xf);k=Hf.prototype;
k.nc=function(a,b){var c=a.Gd(),d=a.ya();if(c){this.g.push(this.b.length);this.f.push(b);this.c.u&&(this.v.push(this.b.length),this.c.u=!1);this.C=c;a=a.ja();a=Qd(a,2,d,-this.origin[0],-this.origin[1]);b=this.a.length;c=this.b.length;var e=b/4,f;for(f=0;2>f;f+=d)this.a[b++]=a[f],this.a[b++]=a[f+1],this.a[b++]=0,this.a[b++]=this.C,this.a[b++]=a[f],this.a[b++]=a[f+1],this.a[b++]=1,this.a[b++]=this.C,this.a[b++]=a[f],this.a[b++]=a[f+1],this.a[b++]=2,this.a[b++]=this.C,this.a[b++]=a[f],this.a[b++]=a[f+
1],this.a[b++]=3,this.a[b++]=this.C,this.b[c++]=e,this.b[c++]=e+1,this.b[c++]=e+2,this.b[c++]=e+2,this.b[c++]=e+3,this.b[c++]=e,e+=4}else this.c.u&&(this.l.pop(),this.l.length&&(d=this.l[this.l.length-1],this.c.fillColor=d[0],this.c.strokeColor=d[1],this.c.lineWidth=d[2],this.c.u=!1))};k.Gb=function(){this.s=new Ff(this.a);this.o=new Ff(this.b);this.g.push(this.b.length);0===this.v.length&&0<this.l.length&&(this.l=[]);this.b=this.a=null};
k.Hb=function(a){var b=this.s,c=this.o;return function(){If(a,b);If(a,c)}};k.Nf=function(a,b,c,d){var e=Jf(b,rf,tf);if(this.I)var f=this.I;else this.I=f=new uf(a,e);b.ld(e);a.enableVertexAttribArray(f.b);a.vertexAttribPointer(f.b,2,5126,!1,16,0);a.enableVertexAttribArray(f.j);a.vertexAttribPointer(f.j,1,5126,!1,16,8);a.enableVertexAttribArray(f.v);a.vertexAttribPointer(f.v,1,5126,!1,16,12);a.uniform2fv(f.N,c);a.uniform1f(f.G,d);return f};
k.Of=function(a,b){a.disableVertexAttribArray(b.b);a.disableVertexAttribArray(b.j);a.disableVertexAttribArray(b.v)};
k.he=function(a,b,c){if(Aa(c)){var d=this.g[this.g.length-1];for(c=this.v.length-1;0<=c;--c){var e=this.v[c];var f=this.l[c];a.uniform4fv(this.I.ea,f[0]);Kf(this,a,f[1],f[2]);zf(a,b,e,d);d=e}}else{var g=this.g.length-2;f=d=this.g[g+1];for(e=this.v.length-1;0<=e;--e){var h=this.l[e];a.uniform4fv(this.I.ea,h[0]);Kf(this,a,h[1],h[2]);for(h=this.v[e];0<=g&&this.g[g]>=h;){var l=this.g[g];var m=this.f[g];m=x(m).toString();c[m]&&(d!==f&&zf(a,b,d,f),f=l);g--;d=l}d!==f&&zf(a,b,d,f);d=f=h}}};
k.Te=function(a,b,c,d,e){var f,g;var h=this.g.length-2;var l=this.g[h+1];for(f=this.v.length-1;0<=f;--f){var m=this.l[f];a.uniform4fv(this.I.ea,m[0]);Kf(this,a,m[1],m[2]);for(g=this.v[f];0<=h&&this.g[h]>=g;){m=this.g[h];var n=this.f[h];var p=x(n).toString();if(void 0===c[p]&&n.V()&&(void 0===e||Jb(e,n.V().D()))&&(a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),zf(a,b,m,l),l=d(n)))return l;h--;l=m}}};function Kf(a,b,c,d){b.uniform4fv(a.I.Ba,c);b.uniform1f(a.I.ta,d)}
k.Ta=function(a,b){if(b){var c=b.g;this.c.lineDash=c?c:Bf;c=b.f;this.c.lineDashOffset=c?c:0;c=b.b;c instanceof CanvasGradient||c instanceof CanvasPattern?c=Cf:c=Jd(c).map(function(a,b){return 3!=b?a/255:a})||Cf;b=b.c;b=void 0!==b?b:1}else c=[0,0,0,0],b=0;a=a?a.b:[0,0,0,0];a instanceof CanvasGradient||a instanceof CanvasPattern?a=Af:a=Jd(a).map(function(a,b){return 3!=b?a/255:a})||Af;this.c.strokeColor&&fd(this.c.strokeColor,c)&&this.c.fillColor&&fd(this.c.fillColor,a)&&this.c.lineWidth===b||(this.c.u=
!0,this.c.fillColor=a,this.c.strokeColor=c,this.c.lineWidth=b,this.l.push([a,c,b]))};function Mf(){this.b="precision mediump float;\nvarying vec2 v_texCoord;\nvarying float v_opacity;\n\nuniform float u_opacity;\nuniform sampler2D u_image;\n\nvoid main(void) {\n  vec4 texColor = texture2D(u_image, v_texCoord);\n  gl_FragColor.rgb = texColor.rgb;\n  float alpha = texColor.a * v_opacity * u_opacity;\n  if (alpha == 0.0) {\n    discard;\n  }\n  gl_FragColor.a = alpha;\n}\n"}v(Mf,of);var Nf=new Mf;
function Of(){this.b="varying vec2 v_texCoord;\nvarying float v_opacity;\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\nattribute vec2 a_offsets;\nattribute float a_opacity;\nattribute float a_rotateWithView;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\n\nvoid main(void) {\n  mat4 offsetMatrix = u_offsetScaleMatrix;\n  if (a_rotateWithView == 1.0) {\n    offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n  }\n  vec4 offsets = offsetMatrix * vec4(a_offsets, 0.0, 0.0);\n  gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n  v_texCoord = a_texCoord;\n  v_opacity = a_opacity;\n}\n\n\n"}
v(Of,pf);var Pf=new Of;function Qf(a,b){this.c=a.getUniformLocation(b,"u_offsetRotateMatrix");this.i=a.getUniformLocation(b,"u_offsetScaleMatrix");this.a=a.getUniformLocation(b,"u_opacity");this.g=a.getUniformLocation(b,"u_projectionMatrix");this.s=a.getAttribLocation(b,"a_offsets");this.I=a.getAttribLocation(b,"a_opacity");this.b=a.getAttribLocation(b,"a_position");this.C=a.getAttribLocation(b,"a_rotateWithView");this.B=a.getAttribLocation(b,"a_texCoord")};function Rf(a,b){this.j=a;this.b=b;this.a={};this.c={};this.g={};this.o=this.s=this.i=this.l=null;(this.f=bd(ta,"OES_element_index_uint"))&&b.getExtension("OES_element_index_uint");y(this.j,"webglcontextlost",this.Jp,this);y(this.j,"webglcontextrestored",this.Kp,this)}v(Rf,La);
function yf(a,b,c){var d=a.b,e=c.b,f=String(x(c));if(f in a.a)d.bindBuffer(b,a.a[f].buffer);else{var g=d.createBuffer();d.bindBuffer(b,g);var h;34962==b?h=new Float32Array(e):34963==b&&(h=a.f?new Uint32Array(e):new Uint16Array(e));d.bufferData(b,h,c.a);a.a[f]={mc:c,buffer:g}}}function If(a,b){var c=a.b;b=String(x(b));var d=a.a[b];c.isContextLost()||c.deleteBuffer(d.buffer);delete a.a[b]}k=Rf.prototype;
k.xa=function(){Ka(this.j);var a=this.b;if(!a.isContextLost()){for(var b in this.a)a.deleteBuffer(this.a[b].buffer);for(b in this.g)a.deleteProgram(this.g[b]);for(b in this.c)a.deleteShader(this.c[b]);a.deleteFramebuffer(this.i);a.deleteRenderbuffer(this.o);a.deleteTexture(this.s)}};k.Ip=function(){return this.b};
function Sf(a){if(!a.i){var b=a.b,c=b.createFramebuffer();b.bindFramebuffer(b.FRAMEBUFFER,c);var d=Tf(b,1,1),e=b.createRenderbuffer();b.bindRenderbuffer(b.RENDERBUFFER,e);b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,1,1);b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,d,0);b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,e);b.bindTexture(b.TEXTURE_2D,null);b.bindRenderbuffer(b.RENDERBUFFER,null);b.bindFramebuffer(b.FRAMEBUFFER,null);a.i=c;
a.s=d;a.o=e}return a.i}function Uf(a,b){var c=String(x(b));if(c in a.c)return a.c[c];var d=a.b,e=d.createShader(b.T());d.shaderSource(e,b.b);d.compileShader(e);return a.c[c]=e}function Jf(a,b,c){var d=x(b)+"/"+x(c);if(d in a.g)return a.g[d];var e=a.b,f=e.createProgram();e.attachShader(f,Uf(a,b));e.attachShader(f,Uf(a,c));e.linkProgram(f);return a.g[d]=f}k.Jp=function(){xa(this.a);xa(this.c);xa(this.g);this.o=this.s=this.i=this.l=null};k.Kp=function(){};
k.ld=function(a){if(a==this.l)return!1;this.b.useProgram(a);this.l=a;return!0};function Vf(a,b,c){var d=a.createTexture();a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);void 0!==b&&a.texParameteri(3553,10242,b);void 0!==c&&a.texParameteri(3553,10243,c);return d}function Tf(a,b,c){var d=Vf(a,void 0,void 0);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,b,c,0,a.RGBA,a.UNSIGNED_BYTE,null);return d}
function Wf(a,b){var c=Vf(a,33071,33071);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);return c};function Xf(a,b){xf.call(this,a,b);this.ea=this.B=void 0;this.C=[];this.I=[];this.G=void 0;this.l=[];this.c=[];this.Ba=this.N=void 0;this.ta=null;this.na=this.la=this.Za=this.$=this.X=this.aa=void 0;this.Xa=[];this.v=[];this.Db=void 0}v(Xf,xf);k=Xf.prototype;k.Hb=function(a){var b=this.s,c=this.o,d=this.Xa,e=this.v,f=a.b;return function(){if(!f.isContextLost()){var g;var h=0;for(g=d.length;h<g;++h)f.deleteTexture(d[h]);h=0;for(g=e.length;h<g;++h)f.deleteTexture(e[h])}If(a,b);If(a,c)}};
function Yf(a,b,c,d){var e=a.B,f=a.ea,g=a.G,h=a.N,l=a.Ba,m=a.aa,n=a.X,p=a.$,q=a.Za?1:0,t=-a.la,u=a.na,w=a.Db,z=Math.cos(t);t=Math.sin(t);var D=a.b.length,B=a.a.length,S;for(S=0;S<c;S+=d){var Ua=b[S]-a.origin[0];var ya=b[S+1]-a.origin[1];var Da=B/8;var C=-u*e;var pa=-u*(g-f);a.a[B++]=Ua;a.a[B++]=ya;a.a[B++]=C*z-pa*t;a.a[B++]=C*t+pa*z;a.a[B++]=n/l;a.a[B++]=(p+g)/h;a.a[B++]=m;a.a[B++]=q;C=u*(w-e);pa=-u*(g-f);a.a[B++]=Ua;a.a[B++]=ya;a.a[B++]=C*z-pa*t;a.a[B++]=C*t+pa*z;a.a[B++]=(n+w)/l;a.a[B++]=(p+g)/
h;a.a[B++]=m;a.a[B++]=q;C=u*(w-e);pa=u*f;a.a[B++]=Ua;a.a[B++]=ya;a.a[B++]=C*z-pa*t;a.a[B++]=C*t+pa*z;a.a[B++]=(n+w)/l;a.a[B++]=p/h;a.a[B++]=m;a.a[B++]=q;C=-u*e;pa=u*f;a.a[B++]=Ua;a.a[B++]=ya;a.a[B++]=C*z-pa*t;a.a[B++]=C*t+pa*z;a.a[B++]=n/l;a.a[B++]=p/h;a.a[B++]=m;a.a[B++]=q;a.b[D++]=Da;a.b[D++]=Da+1;a.b[D++]=Da+2;a.b[D++]=Da;a.b[D++]=Da+2;a.b[D++]=Da+3}}k.Cc=function(a,b){this.g.push(this.b.length);this.f.push(b);b=a.ja();Yf(this,b,b.length,a.ya())};
k.Ec=function(a,b){this.g.push(this.b.length);this.f.push(b);b=a.ja();Yf(this,b,b.length,a.ya())};k.Gb=function(a){a=a.b;this.C.push(this.b.length);this.I.push(this.b.length);this.s=new Ff(this.a);this.o=new Ff(this.b);var b={};Zf(this.Xa,this.l,b,a);Zf(this.v,this.c,b,a);this.G=this.ea=this.B=void 0;this.c=this.l=null;this.Ba=this.N=void 0;this.b=null;this.na=this.la=this.Za=this.$=this.X=this.aa=void 0;this.a=null;this.Db=void 0};
function Zf(a,b,c,d){var e,f=b.length;for(e=0;e<f;++e){var g=b[e];var h=x(g).toString();h in c?g=c[h]:(g=Wf(d,g),c[h]=g);a[e]=g}}
k.Nf=function(a,b){var c=Jf(b,Nf,Pf);if(this.ta)var d=this.ta;else this.ta=d=new Qf(a,c);b.ld(c);a.enableVertexAttribArray(d.b);a.vertexAttribPointer(d.b,2,5126,!1,32,0);a.enableVertexAttribArray(d.s);a.vertexAttribPointer(d.s,2,5126,!1,32,8);a.enableVertexAttribArray(d.B);a.vertexAttribPointer(d.B,2,5126,!1,32,16);a.enableVertexAttribArray(d.I);a.vertexAttribPointer(d.I,1,5126,!1,32,24);a.enableVertexAttribArray(d.C);a.vertexAttribPointer(d.C,1,5126,!1,32,28);return d};
k.Of=function(a,b){a.disableVertexAttribArray(b.b);a.disableVertexAttribArray(b.s);a.disableVertexAttribArray(b.B);a.disableVertexAttribArray(b.I);a.disableVertexAttribArray(b.C)};
k.he=function(a,b,c,d){var e=d?this.v:this.Xa;d=d?this.I:this.C;if(Aa(c)){var f;c=0;var g=e.length;for(f=0;c<g;++c){a.bindTexture(3553,e[c]);var h=d[c];zf(a,b,f,h);f=h}}else for(f=g=0,h=e.length;f<h;++f){a.bindTexture(3553,e[f]);for(var l=0<f?d[f-1]:0,m=d[f],n=l;g<this.g.length&&this.g[g]<=m;){var p=x(this.f[g]).toString();void 0!==c[p]?(n!==l&&zf(a,b,n,l),l=n=g===this.g.length-1?m:this.g[g+1]):l=g===this.g.length-1?m:this.g[g+1];g++}n!==l&&zf(a,b,n,l)}};
k.Te=function(a,b,c,d,e){var f,g,h=this.g.length-1;for(f=this.v.length-1;0<=f;--f){a.bindTexture(3553,this.v[f]);var l=0<f?this.I[f-1]:0;for(g=this.I[f];0<=h&&this.g[h]>=l;){var m=this.g[h];var n=this.f[h];var p=x(n).toString();if(void 0===c[p]&&n.V()&&(void 0===e||Jb(e,n.V().D()))&&(a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),zf(a,b,m,g),g=d(n)))return g;g=m;h--}}};
k.ic=function(a){var b=a.Gc(),c=a.W(1),d=a.Ye(),e=a.Qg(),f=a.La(),g=a.jd(),h=a.j,l=a.i,m=a.gc();a=a.Ma();if(0===this.l.length)this.l.push(c);else{var n=this.l[this.l.length-1];x(n)!=x(c)&&(this.C.push(this.b.length),this.l.push(c))}0===this.c.length?this.c.push(e):(n=this.c[this.c.length-1],x(n)!=x(e)&&(this.I.push(this.b.length),this.c.push(e)));this.B=b[0];this.ea=b[1];this.G=m[1];this.N=d[1];this.Ba=d[0];this.aa=f;this.X=g[0];this.$=g[1];this.la=l;this.Za=h;this.na=a;this.Db=m[0]};function $f(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d){var h=a[b],l=a[b+1];e+=(h-f)*(l+g);f=h;g=l}return 0<e}function ag(a,b,c,d){var e=0;d=void 0!==d?d:!1;var f;var g=0;for(f=b.length;g<f;++g){var h=b[g];e=$f(a,e,h,c);if(0===g){if(d&&e||!d&&!e)return!1}else if(d&&!e||!d&&e)return!1;e=h}return!0}
function bg(a,b,c,d,e){e=void 0!==e?e:!1;var f;var g=0;for(f=c.length;g<f;++g){var h=c[g],l=$f(a,b,h,d);if(0===g?e&&l||!e&&!l:e&&!l||!e&&l){l=a;for(var m=h,n=d;b<m-n;){var p;for(p=0;p<n;++p){var q=l[b+p];l[b+p]=l[m-n+p];l[m-n+p]=q}b+=n;m-=n}}b=h}return b}function cg(a,b,c,d){var e=0,f;var g=0;for(f=b.length;g<f;++g)e=bg(a,e,b[g],c,d);return e};function dg(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d){var h=a[b],l=a[b+1];e+=g*h-f*l;f=h;g=l}return e/2}function eg(a,b,c,d){var e=0,f;var g=0;for(f=c.length;g<f;++g){var h=c[g];e+=dg(a,b,h,d);b=h}return e};function fg(a,b,c){var d=b-c;return a[0]===a[d]&&a[1]===a[d+1]&&3<(b-0)/c?!!dg(a,0,b,c):!1};function gg(){this.b="precision mediump float;\nvarying float v_round;\nvarying vec2 v_roundVertex;\nvarying float v_halfWidth;\n\n\n\nuniform float u_opacity;\nuniform vec4 u_color;\nuniform vec2 u_size;\nuniform float u_pixelRatio;\n\nvoid main(void) {\n  if (v_round > 0.0) {\n    vec2 windowCoords = vec2((v_roundVertex.x + 1.0) / 2.0 * u_size.x * u_pixelRatio,\n        (v_roundVertex.y + 1.0) / 2.0 * u_size.y * u_pixelRatio);\n    if (length(windowCoords - gl_FragCoord.xy) > v_halfWidth * u_pixelRatio) {\n      discard;\n    }\n  }\n  gl_FragColor = u_color;\n  float alpha = u_color.a * u_opacity;\n  if (alpha == 0.0) {\n    discard;\n  }\n  gl_FragColor.a = alpha;\n}\n"}
v(gg,of);var hg=new gg;
function ig(){this.b="varying float v_round;\nvarying vec2 v_roundVertex;\nvarying float v_halfWidth;\n\n\nattribute vec2 a_lastPos;\nattribute vec2 a_position;\nattribute vec2 a_nextPos;\nattribute float a_direction;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_lineWidth;\nuniform float u_miterLimit;\n\nbool nearlyEquals(in float value, in float ref) {\n  float epsilon = 0.000000000001;\n  return value >= ref - epsilon && value <= ref + epsilon;\n}\n\nvoid alongNormal(out vec2 offset, in vec2 nextP, in float turnDir, in float direction) {\n  vec2 dirVect = nextP - a_position;\n  vec2 normal = normalize(vec2(-turnDir * dirVect.y, turnDir * dirVect.x));\n  offset = u_lineWidth / 2.0 * normal * direction;\n}\n\nvoid miterUp(out vec2 offset, out float round, in bool isRound, in float direction) {\n  float halfWidth = u_lineWidth / 2.0;\n  vec2 tangent = normalize(normalize(a_nextPos - a_position) + normalize(a_position - a_lastPos));\n  vec2 normal = vec2(-tangent.y, tangent.x);\n  vec2 dirVect = a_nextPos - a_position;\n  vec2 tmpNormal = normalize(vec2(-dirVect.y, dirVect.x));\n  float miterLength = abs(halfWidth / dot(normal, tmpNormal));\n  offset = normal * direction * miterLength;\n  round = 0.0;\n  if (isRound) {\n    round = 1.0;\n  } else if (miterLength > u_miterLimit + u_lineWidth) {\n    offset = halfWidth * tmpNormal * direction;\n  }\n}\n\nbool miterDown(out vec2 offset, in vec4 projPos, in mat4 offsetMatrix, in float direction) {\n  bool degenerate = false;\n  vec2 tangent = normalize(normalize(a_nextPos - a_position) + normalize(a_position - a_lastPos));\n  vec2 normal = vec2(-tangent.y, tangent.x);\n  vec2 dirVect = a_lastPos - a_position;\n  vec2 tmpNormal = normalize(vec2(-dirVect.y, dirVect.x));\n  vec2 longOffset, shortOffset, longVertex;\n  vec4 shortProjVertex;\n  float halfWidth = u_lineWidth / 2.0;\n  if (length(a_nextPos - a_position) > length(a_lastPos - a_position)) {\n    longOffset = tmpNormal * direction * halfWidth;\n    shortOffset = normalize(vec2(dirVect.y, -dirVect.x)) * direction * halfWidth;\n    longVertex = a_nextPos;\n    shortProjVertex = u_projectionMatrix * vec4(a_lastPos, 0.0, 1.0);\n  } else {\n    shortOffset = tmpNormal * direction * halfWidth;\n    longOffset = normalize(vec2(dirVect.y, -dirVect.x)) * direction * halfWidth;\n    longVertex = a_lastPos;\n    shortProjVertex = u_projectionMatrix * vec4(a_nextPos, 0.0, 1.0);\n  }\n  //Intersection algorithm based on theory by Paul Bourke (http://paulbourke.net/geometry/pointlineplane/).\n  vec4 p1 = u_projectionMatrix * vec4(longVertex, 0.0, 1.0) + offsetMatrix * vec4(longOffset, 0.0, 0.0);\n  vec4 p2 = projPos + offsetMatrix * vec4(longOffset, 0.0, 0.0);\n  vec4 p3 = shortProjVertex + offsetMatrix * vec4(-shortOffset, 0.0, 0.0);\n  vec4 p4 = shortProjVertex + offsetMatrix * vec4(shortOffset, 0.0, 0.0);\n  float denom = (p4.y - p3.y) * (p2.x - p1.x) - (p4.x - p3.x) * (p2.y - p1.y);\n  float firstU = ((p4.x - p3.x) * (p1.y - p3.y) - (p4.y - p3.y) * (p1.x - p3.x)) / denom;\n  float secondU = ((p2.x - p1.x) * (p1.y - p3.y) - (p2.y - p1.y) * (p1.x - p3.x)) / denom;\n  float epsilon = 0.000000000001;\n  if (firstU > epsilon && firstU < 1.0 - epsilon && secondU > epsilon && secondU < 1.0 - epsilon) {\n    shortProjVertex.x = p1.x + firstU * (p2.x - p1.x);\n    shortProjVertex.y = p1.y + firstU * (p2.y - p1.y);\n    offset = shortProjVertex.xy;\n    degenerate = true;\n  } else {\n    float miterLength = abs(halfWidth / dot(normal, tmpNormal));\n    offset = normal * direction * miterLength;\n  }\n  return degenerate;\n}\n\nvoid squareCap(out vec2 offset, out float round, in bool isRound, in vec2 nextP,\n    in float turnDir, in float direction) {\n  round = 0.0;\n  vec2 dirVect = a_position - nextP;\n  vec2 firstNormal = normalize(dirVect);\n  vec2 secondNormal = vec2(turnDir * firstNormal.y * direction, -turnDir * firstNormal.x * direction);\n  vec2 hypotenuse = normalize(firstNormal - secondNormal);\n  vec2 normal = vec2(turnDir * hypotenuse.y * direction, -turnDir * hypotenuse.x * direction);\n  float length = sqrt(v_halfWidth * v_halfWidth * 2.0);\n  offset = normal * length;\n  if (isRound) {\n    round = 1.0;\n  }\n}\n\nvoid main(void) {\n  bool degenerate = false;\n  float direction = float(sign(a_direction));\n  mat4 offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n  vec2 offset;\n  vec4 projPos = u_projectionMatrix * vec4(a_position, 0.0, 1.0);\n  bool round = nearlyEquals(mod(a_direction, 2.0), 0.0);\n\n  v_round = 0.0;\n  v_halfWidth = u_lineWidth / 2.0;\n  v_roundVertex = projPos.xy;\n\n  if (nearlyEquals(mod(a_direction, 3.0), 0.0) || nearlyEquals(mod(a_direction, 17.0), 0.0)) {\n    alongNormal(offset, a_nextPos, 1.0, direction);\n  } else if (nearlyEquals(mod(a_direction, 5.0), 0.0) || nearlyEquals(mod(a_direction, 13.0), 0.0)) {\n    alongNormal(offset, a_lastPos, -1.0, direction);\n  } else if (nearlyEquals(mod(a_direction, 23.0), 0.0)) {\n    miterUp(offset, v_round, round, direction);\n  } else if (nearlyEquals(mod(a_direction, 19.0), 0.0)) {\n    degenerate = miterDown(offset, projPos, offsetMatrix, direction);\n  } else if (nearlyEquals(mod(a_direction, 7.0), 0.0)) {\n    squareCap(offset, v_round, round, a_nextPos, 1.0, direction);\n  } else if (nearlyEquals(mod(a_direction, 11.0), 0.0)) {\n    squareCap(offset, v_round, round, a_lastPos, -1.0, direction);\n  }\n  if (!degenerate) {\n    vec4 offsets = offsetMatrix * vec4(offset, 0.0, 0.0);\n    gl_Position = projPos + offsets;\n  } else {\n    gl_Position = vec4(offset, 0.0, 1.0);\n  }\n}\n\n\n"}
v(ig,pf);var jg=new ig;
function kg(a,b){this.ea=a.getUniformLocation(b,"u_color");this.ta=a.getUniformLocation(b,"u_lineWidth");this.Ba=a.getUniformLocation(b,"u_miterLimit");this.c=a.getUniformLocation(b,"u_offsetRotateMatrix");this.i=a.getUniformLocation(b,"u_offsetScaleMatrix");this.a=a.getUniformLocation(b,"u_opacity");this.G=a.getUniformLocation(b,"u_pixelRatio");this.g=a.getUniformLocation(b,"u_projectionMatrix");this.N=a.getUniformLocation(b,"u_size");this.f=a.getAttribLocation(b,"a_direction");this.l=a.getAttribLocation(b,
"a_lastPos");this.o=a.getAttribLocation(b,"a_nextPos");this.b=a.getAttribLocation(b,"a_position")};function lg(a,b){xf.call(this,a,b);this.I=null;this.v=[];this.l=[];this.c={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,u:!1}}v(lg,xf);
function mg(a,b,c,d){var e,f=a.a.length,g=a.b.length,h="bevel"===a.c.lineJoin?0:"miter"===a.c.lineJoin?1:2,l="butt"===a.c.lineCap?0:"square"===a.c.lineCap?1:2,m=fg(b,c,d),n=g,p=1;for(e=0;e<c;e+=d){var q=f/7;var t=u;var u=w||[b[e],b[e+1]];if(0===e){var w=[b[e+d],b[e+d+1]];if(c-0===2*d&&fd(u,w))break;if(m){t=[b[c-2*d],b[c-2*d+1]];var z=w}else{l&&(f=ng(a,[0,0],u,w,p*og*l,f),f=ng(a,[0,0],u,w,-p*og*l,f),a.b[g++]=q+2,a.b[g++]=q,a.b[g++]=q+1,a.b[g++]=q+1,a.b[g++]=q+3,a.b[g++]=q+2);f=ng(a,[0,0],u,w,p*pg*
(l||1),f);f=ng(a,[0,0],u,w,-p*pg*(l||1),f);n=f/7-1;continue}}else if(e===c-d){m?w=z:(t=t||[0,0],f=ng(a,t,u,[0,0],p*qg*(l||1),f),f=ng(a,t,u,[0,0],-p*qg*(l||1),f),a.b[g++]=q,a.b[g++]=n-1,a.b[g++]=n,a.b[g++]=n,a.b[g++]=q+1,a.b[g++]=q,l&&(f=ng(a,t,u,[0,0],p*rg*l,f),f=ng(a,t,u,[0,0],-p*rg*l,f),a.b[g++]=q+2,a.b[g++]=q,a.b[g++]=q+1,a.b[g++]=q+1,a.b[g++]=q+3,a.b[g++]=q+2));break}else w=[b[e+d],b[e+d+1]];var D=Df(t[0],t[1],u[0],u[1],w[0],w[1])?-1:1;f=ng(a,t,u,w,D*sg*(h||1),f);f=ng(a,t,u,w,D*tg*(h||1),f);f=
ng(a,t,u,w,-D*ug*(h||1),f);0<e&&(a.b[g++]=q,a.b[g++]=n-1,a.b[g++]=n,a.b[g++]=q+2,a.b[g++]=q,a.b[g++]=0<p*D?n:n-1);a.b[g++]=q;a.b[g++]=q+2;a.b[g++]=q+1;n=q+2;p=D;h&&(f=ng(a,t,u,w,D*vg*h,f),a.b[g++]=q+1,a.b[g++]=q+3,a.b[g++]=q)}m&&(q=q||f/7,D=$f([t[0],t[1],u[0],u[1],w[0],w[1]],0,6,2)?1:-1,f=ng(a,t,u,w,D*sg*(h||1),f),ng(a,t,u,w,-D*ug*(h||1),f),a.b[g++]=q,a.b[g++]=n-1,a.b[g++]=n,a.b[g++]=q+1,a.b[g++]=q,a.b[g++]=0<p*D?n:n-1)}
function ng(a,b,c,d,e,f){a.a[f++]=b[0];a.a[f++]=b[1];a.a[f++]=c[0];a.a[f++]=c[1];a.a[f++]=d[0];a.a[f++]=d[1];a.a[f++]=e;return f}function wg(a,b,c){b-=0;return b<2*c?!1:b===2*c?!fd([a[0],a[1]],[a[0+c],a[c+1]]):!0}k=lg.prototype;k.Yb=function(a,b){var c=a.ja();a=a.ya();wg(c,c.length,a)&&(c=Qd(c,c.length,a,-this.origin[0],-this.origin[1]),this.c.u&&(this.l.push(this.b.length),this.c.u=!1),this.g.push(this.b.length),this.f.push(b),mg(this,c,c.length,a))};
k.Bc=function(a,b){var c=this.b.length;a=a.Hc();var d;var e=0;for(d=a.length;e<d;++e){var f=a[e].ja(),g=a[e].ya();wg(f,f.length,g)&&(f=Qd(f,f.length,g,-this.origin[0],-this.origin[1]),mg(this,f,f.length,g))}this.b.length>c&&(this.g.push(c),this.f.push(b),this.c.u&&(this.l.push(c),this.c.u=!1))};
function xg(a,b,c,d){fg(b,b.length,d)||(b.push(b[0]),b.push(b[1]));mg(a,b,b.length,d);if(c.length){var e;b=0;for(e=c.length;b<e;++b)fg(c[b],c[b].length,d)||(c[b].push(c[b][0]),c[b].push(c[b][1])),mg(a,c[b],c[b].length,d)}}function yg(a,b,c){c=void 0===c?a.b.length:c;a.g.push(c);a.f.push(b);a.c.u&&(a.l.push(c),a.c.u=!1)}k.Gb=function(){this.s=new Ff(this.a);this.o=new Ff(this.b);this.g.push(this.b.length);0===this.l.length&&0<this.v.length&&(this.v=[]);this.b=this.a=null};
k.Hb=function(a){var b=this.s,c=this.o;return function(){If(a,b);If(a,c)}};
k.Nf=function(a,b,c,d){var e=Jf(b,hg,jg);if(this.I)var f=this.I;else this.I=f=new kg(a,e);b.ld(e);a.enableVertexAttribArray(f.l);a.vertexAttribPointer(f.l,2,5126,!1,28,0);a.enableVertexAttribArray(f.b);a.vertexAttribPointer(f.b,2,5126,!1,28,8);a.enableVertexAttribArray(f.o);a.vertexAttribPointer(f.o,2,5126,!1,28,16);a.enableVertexAttribArray(f.f);a.vertexAttribPointer(f.f,1,5126,!1,28,24);a.uniform2fv(f.N,c);a.uniform1f(f.G,d);return f};
k.Of=function(a,b){a.disableVertexAttribArray(b.l);a.disableVertexAttribArray(b.b);a.disableVertexAttribArray(b.o);a.disableVertexAttribArray(b.f)};
k.he=function(a,b,c,d){var e=a.getParameter(a.DEPTH_FUNC),f=a.getParameter(a.DEPTH_WRITEMASK);d||(a.enable(a.DEPTH_TEST),a.depthMask(!0),a.depthFunc(a.NOTEQUAL));if(Aa(c)){var g=this.g[this.g.length-1];for(c=this.l.length-1;0<=c;--c){var h=this.l[c];var l=this.v[c];zg(this,a,l[0],l[1],l[2]);zf(a,b,h,g);a.clear(a.DEPTH_BUFFER_BIT);g=h}}else{var m=this.g.length-2;l=g=this.g[m+1];for(h=this.l.length-1;0<=h;--h){var n=this.v[h];zg(this,a,n[0],n[1],n[2]);for(n=this.l[h];0<=m&&this.g[m]>=n;){var p=this.g[m];
var q=this.f[m];q=x(q).toString();c[q]&&(g!==l&&(zf(a,b,g,l),a.clear(a.DEPTH_BUFFER_BIT)),l=p);m--;g=p}g!==l&&(zf(a,b,g,l),a.clear(a.DEPTH_BUFFER_BIT));g=l=n}}d||(a.disable(a.DEPTH_TEST),a.clear(a.DEPTH_BUFFER_BIT),a.depthMask(f),a.depthFunc(e))};
k.Te=function(a,b,c,d,e){var f,g;var h=this.g.length-2;var l=this.g[h+1];for(f=this.l.length-1;0<=f;--f){var m=this.v[f];zg(this,a,m[0],m[1],m[2]);for(g=this.l[f];0<=h&&this.g[h]>=g;){m=this.g[h];var n=this.f[h];var p=x(n).toString();if(void 0===c[p]&&n.V()&&(void 0===e||Jb(e,n.V().D()))&&(a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),zf(a,b,m,l),l=d(n)))return l;h--;l=m}}};function zg(a,b,c,d,e){b.uniform4fv(a.I.ea,c);b.uniform1f(a.I.ta,d);b.uniform1f(a.I.Ba,e)}
k.Ta=function(a,b){a=b.i;this.c.lineCap=void 0!==a?a:"round";a=b.g;this.c.lineDash=a?a:Bf;a=b.f;this.c.lineDashOffset=a?a:0;a=b.j;this.c.lineJoin=void 0!==a?a:"round";a=b.b;a instanceof CanvasGradient||a instanceof CanvasPattern?a=Cf:a=Jd(a).map(function(a,b){return 3!=b?a/255:a})||Cf;var c=b.c;c=void 0!==c?c:1;b=b.l;b=void 0!==b?b:10;this.c.strokeColor&&fd(this.c.strokeColor,a)&&this.c.lineWidth===c&&this.c.miterLimit===b||(this.c.u=!0,this.c.strokeColor=a,this.c.lineWidth=c,this.c.miterLimit=b,
this.v.push([a,c,b]))};var pg=3,qg=5,og=7,rg=11,sg=13,tg=17,ug=19,vg=23;function Ag(a,b,c,d,e){return!xb(e,function(e){return!Bg(a,b,c,d,e[0],e[1])})}function Bg(a,b,c,d,e,f){for(var g=0,h=a[c-d],l=a[c-d+1];b<c;b+=d){var m=a[b],n=a[b+1];l<=f?n>f&&0<(m-h)*(f-l)-(e-h)*(n-l)&&g++:n<=f&&0>(m-h)*(f-l)-(e-h)*(n-l)&&g--;h=m;l=n}return 0!==g}function Dg(a,b,c,d,e,f){if(0===c.length||!Bg(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(Bg(a,c[b-1],c[b],d,e,f))return!1;return!0};function Eg(){this.b="precision mediump float;\n\n\n\nuniform vec4 u_color;\nuniform float u_opacity;\n\nvoid main(void) {\n  gl_FragColor = u_color;\n  float alpha = u_color.a * u_opacity;\n  if (alpha == 0.0) {\n    discard;\n  }\n  gl_FragColor.a = alpha;\n}\n"}v(Eg,of);var Fg=new Eg;
function Gg(){this.b="\n\nattribute vec2 a_position;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\n\nvoid main(void) {\n  gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0);\n}\n\n\n"}v(Gg,pf);var Hg=new Gg;
function Ig(a,b){this.ea=a.getUniformLocation(b,"u_color");this.c=a.getUniformLocation(b,"u_offsetRotateMatrix");this.i=a.getUniformLocation(b,"u_offsetScaleMatrix");this.a=a.getUniformLocation(b,"u_opacity");this.g=a.getUniformLocation(b,"u_projectionMatrix");this.b=a.getAttribLocation(b,"a_position")};function Jg(a){a=a||{};this.b=void 0!==a.color?a.color:null;this.i=a.lineCap;this.g=void 0!==a.lineDash?a.lineDash:null;this.f=a.lineDashOffset;this.j=a.lineJoin;this.l=a.miterLimit;this.c=a.width;this.a=void 0}k=Jg.prototype;k.clone=function(){var a=this.b;return new Jg({color:a&&a.slice?a.slice():a||void 0,lineCap:this.i,lineDash:this.g?this.g.slice():void 0,lineDashOffset:this.f,lineJoin:this.j,miterLimit:this.l,width:this.c})};k.Bp=function(){return this.b};k.Jl=function(){return this.i};
k.Cp=function(){return this.g};k.Kl=function(){return this.f};k.Ll=function(){return this.j};k.Ql=function(){return this.l};k.Dp=function(){return this.c};k.Ep=function(a){this.b=a;this.a=void 0};k.mr=function(a){this.i=a;this.a=void 0};k.setLineDash=function(a){this.g=a;this.a=void 0};k.nr=function(a){this.f=a;this.a=void 0};k.pr=function(a){this.j=a;this.a=void 0};k.sr=function(a){this.l=a;this.a=void 0};k.yr=function(a){this.c=a;this.a=void 0};function Kg(){this.b=this.a=this.g=void 0;this.c=0}function Lg(a){var b=a.b;if(b){var c=b.next,d=b.zb;c&&(c.zb=d);d&&(d.next=c);a.b=c||d;a.g===a.a?(a.b=void 0,a.g=void 0,a.a=void 0):a.g===b?a.g=a.b:a.a===b&&(a.a=d?a.b.zb:a.b);a.c--}}function Mg(a){a.b=a.g;if(a.b)return a.b.data}function Ng(a){if(a.b&&a.b.next)return a.b=a.b.next,a.b.data}function Og(a){if(a.b&&a.b.next)return a.b.next.data}function Pg(a){if(a.b&&a.b.zb)return a.b=a.b.zb,a.b.data}function Qg(a){if(a.b&&a.b.zb)return a.b.zb.data}
function Rg(a){if(a.b)return a.b.data}Kg.prototype.concat=function(a){if(a.b){if(this.b){var b=this.b.next;this.b.next=a.g;a.g.zb=this.b;b.zb=a.a;a.a.next=b;this.c+=a.c}else this.b=a.b,this.g=a.g,this.a=a.a,this.c=a.c;a.b=void 0;a.g=void 0;a.a=void 0;a.c=0}};var Sg,Tg,Ug,Vg;
(function(){var a={},b={oa:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.oa=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.fs=c()}})(function(){return function g(a,b,f){function d(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(e)return e(h,!0);l=Error("Cannot find module '"+h+"'");throw l.code="MODULE_NOT_FOUND",l;}l=b[h]={oa:{}};a[h][0].call(l.oa,function(b){var e=
a[h][1][b];return d(e?e:b)},l,l.oa,g,a,b,f)}return b[h].oa}for(var e="function"==typeof require&&require,m=0;m<f.length;m++)d(f[m]);return d}({1:[function(a,b){function d(a,b,f,g,q){f=f||0;g=g||a.length-1;for(q=q||h;g>f;){if(600<g-f){var l=g-f+1,m=b-f+1,n=Math.log(l),p=.5*Math.exp(2*n/3);n=.5*Math.sqrt(n*p*(l-p)/l)*(0>m-l/2?-1:1);d(a,b,Math.max(f,Math.floor(b-m*p/l+n)),Math.min(g,Math.floor(b+(l-m)*p/l+n)),q)}l=a[b];m=f;p=g;e(a,f,b);for(0<q(a[g],l)&&e(a,f,g);m<p;){e(a,m,p);m++;for(p--;0>q(a[m],l);)m++;
for(;0<q(a[p],l);)p--}0===q(a[f],l)?e(a,f,p):(p++,e(a,p,g));p<=b&&(f=p+1);b<=p&&(g=p-1)}}function e(a,b,d){var e=a[b];a[b]=a[d];a[d]=e}function h(a,b){return a<b?-1:a>b?1:0}b.oa=d},{}],2:[function(a,b){function d(a,b){if(!(this instanceof d))return new d(a,b);this.bg=Math.max(4,a||9);this.Ih=Math.max(2,Math.ceil(.4*this.bg));b&&this.Nk(b);this.clear()}function e(a,b){h(a,0,a.children.length,b,a)}function h(a,b,d,e,f){f||(f=w(null));f.ga=Infinity;f.ha=Infinity;f.da=-Infinity;f.ka=-Infinity;for(var g;b<
d;b++)g=a.children[b],l(f,a.nb?e(g):g);return f}function l(a,b){a.ga=Math.min(a.ga,b.ga);a.ha=Math.min(a.ha,b.ha);a.da=Math.max(a.da,b.da);a.ka=Math.max(a.ka,b.ka);return a}function m(a,b){return a.ga-b.ga}function n(a,b){return a.ha-b.ha}function p(a){return(a.da-a.ga)*(a.ka-a.ha)}function q(a){return a.da-a.ga+(a.ka-a.ha)}function t(a,b){return a.ga<=b.ga&&a.ha<=b.ha&&b.da<=a.da&&b.ka<=a.ka}function u(a,b){return b.ga<=a.da&&b.ha<=a.ka&&b.da>=a.ga&&b.ka>=a.ha}function w(a){return{children:a,height:1,
nb:!0,ga:Infinity,ha:Infinity,da:-Infinity,ka:-Infinity}}function z(a,b,d,e,f){for(var g=[b,d],h;g.length;)d=g.pop(),b=g.pop(),d-b<=e||(h=b+Math.ceil((d-b)/e/2)*e,D(a,h,b,d,f),g.push(b,h,h,d))}b.oa=d;var D=a("quickselect");d.prototype={all:function(){return this.Dh(this.data,[])},search:function(a){var b=this.data,d=[],e=this.Cb;if(!u(a,b))return d;for(var f=[],g,h,l,m;b;){g=0;for(h=b.children.length;g<h;g++)l=b.children[g],m=b.nb?e(l):l,u(a,m)&&(b.nb?d.push(l):t(a,m)?this.Dh(l,d):f.push(l));b=f.pop()}return d},
load:function(a){if(!a||!a.length)return this;if(a.length<this.Ih){for(var b=0,d=a.length;b<d;b++)this.Ha(a[b]);return this}a=this.Fh(a.slice(),0,a.length-1,0);this.data.children.length?this.data.height===a.height?this.Kh(this.data,a):(this.data.height<a.height&&(b=this.data,this.data=a,a=b),this.Hh(a,this.data.height-a.height-1,!0)):this.data=a;return this},Ha:function(a){a&&this.Hh(a,this.data.height-1);return this},clear:function(){this.data=w([]);return this},remove:function(a,b){if(!a)return this;
for(var d=this.data,e=this.Cb(a),f=[],g=[],h,l,m,n;d||f.length;){d||(d=f.pop(),l=f[f.length-1],h=g.pop(),n=!0);if(d.nb){a:{m=a;var p=d.children,q=b;if(q){for(var u=0;u<p.length;u++)if(q(m,p[u])){m=u;break a}m=-1}else m=p.indexOf(m)}if(-1!==m){d.children.splice(m,1);f.push(d);this.Kk(f);break}}n||d.nb||!t(d,e)?l?(h++,d=l.children[h],n=!1):d=null:(f.push(d),g.push(h),h=0,l=d,d=d.children[0])}return this},Cb:function(a){return a},fg:m,gg:n,toJSON:function(){return this.data},Dh:function(a,b){for(var d=
[];a;)a.nb?b.push.apply(b,a.children):d.push.apply(d,a.children),a=d.pop();return b},Fh:function(a,b,d,f){var g=d-b+1,h=this.bg;if(g<=h){var l=w(a.slice(b,d+1));e(l,this.Cb);return l}f||(f=Math.ceil(Math.log(g)/Math.log(h)),h=Math.ceil(g/Math.pow(h,f-1)));l=w([]);l.nb=!1;l.height=f;g=Math.ceil(g/h);h=g*Math.ceil(Math.sqrt(h));var m;for(z(a,b,d,h,this.fg);b<=d;b+=h){var n=Math.min(b+h-1,d);z(a,b,n,g,this.gg);for(m=b;m<=n;m+=g){var p=Math.min(m+g-1,n);l.children.push(this.Fh(a,m,p,f-1))}}e(l,this.Cb);
return l},Jk:function(a,b,d,e){for(var f,g,h,l,m,n,q,t;;){e.push(b);if(b.nb||e.length-1===d)break;q=t=Infinity;f=0;for(g=b.children.length;f<g;f++)h=b.children[f],m=p(h),n=(Math.max(h.da,a.da)-Math.min(h.ga,a.ga))*(Math.max(h.ka,a.ka)-Math.min(h.ha,a.ha))-m,n<t?(t=n,q=m<q?m:q,l=h):n===t&&m<q&&(q=m,l=h);b=l||b.children[0]}return b},Hh:function(a,b,d){var e=this.Cb;d=d?a:e(a);e=[];var f=this.Jk(d,this.data,b,e);f.children.push(a);for(l(f,d);0<=b;)if(e[b].children.length>this.bg)this.Sk(e,b),b--;else break;
this.Gk(d,e,b)},Sk:function(a,b){var d=a[b],f=d.children.length,g=this.Ih;this.Hk(d,g,f);f=this.Ik(d,g,f);f=w(d.children.splice(f,d.children.length-f));f.height=d.height;f.nb=d.nb;e(d,this.Cb);e(f,this.Cb);b?a[b-1].children.push(f):this.Kh(d,f)},Kh:function(a,b){this.data=w([a,b]);this.data.height=a.height+1;this.data.nb=!1;e(this.data,this.Cb)},Ik:function(a,b,d){var e,f;var g=f=Infinity;for(e=b;e<=d-b;e++){var l=h(a,0,e,this.Cb);var m=h(a,e,d,this.Cb);var n=Math.max(0,Math.min(l.da,m.da)-Math.max(l.ga,
m.ga))*Math.max(0,Math.min(l.ka,m.ka)-Math.max(l.ha,m.ha));l=p(l)+p(m);if(n<g){g=n;var q=e;f=l<f?l:f}else n===g&&l<f&&(f=l,q=e)}return q},Hk:function(a,b,d){var e=a.nb?this.fg:m,f=a.nb?this.gg:n,g=this.Eh(a,b,d,e);b=this.Eh(a,b,d,f);g<b&&a.children.sort(e)},Eh:function(a,b,d,e){a.children.sort(e);e=this.Cb;var f=h(a,0,b,e),g=h(a,d-b,d,e),m=q(f)+q(g),n;for(n=b;n<d-b;n++){var p=a.children[n];l(f,a.nb?e(p):p);m+=q(f)}for(n=d-b-1;n>=b;n--)p=a.children[n],l(g,a.nb?e(p):p),m+=q(g);return m},Gk:function(a,
b,d){for(;0<=d;d--)l(b[d],a)},Kk:function(a){for(var b=a.length-1,d;0<=b;b--)0===a[b].children.length?0<b?(d=a[b-1].children,d.splice(d.indexOf(a[b]),1)):this.clear():e(a[b],this.Cb)},Nk:function(a){var b=["return a"," - b",";"];this.fg=new Function("a","b",b.join(a[0]));this.gg=new Function("a","b",b.join(a[1]));this.Cb=new Function("a","return {minX: a"+a[0]+", minY: a"+a[1]+", maxX: a"+a[2]+", maxY: a"+a[3]+"};")}}},{quickselect:1}]},{},[2])(2)});Sg=b.oa})();function Wg(){this.b=Sg(void 0);this.a={}}k=Wg.prototype;k.Ha=function(a,b){a={ga:a[0],ha:a[1],da:a[2],ka:a[3],value:b};this.b.Ha(a);this.a[x(b)]=a};k.load=function(a,b){for(var c=Array(b.length),d=0,e=b.length;d<e;d++){var f=a[d],g=b[d];f={ga:f[0],ha:f[1],da:f[2],ka:f[3],value:g};c[d]=f;this.a[x(g)]=f}this.b.load(c)};k.remove=function(a){a=x(a);var b=this.a[a];delete this.a[a];return null!==this.b.remove(b)};
function Xg(a,b,c){var d=a.a[x(c)];vb([d.ga,d.ha,d.da,d.ka],b)||(a.remove(c),a.Ha(b,c))}function Yg(a){return a.b.all().map(function(a){return a.value})}function Zg(a,b){return a.b.search({ga:b[0],ha:b[1],da:b[2],ka:b[3]}).map(function(a){return a.value})}k.forEach=function(a,b){return $g(Yg(this),a,b)};function ah(a,b,c,d){return $g(Zg(a,b),c,d)}function $g(a,b,c){for(var d,e=0,f=a.length;e<f&&!(d=b.call(c,a[e]));e++);return d}k.clear=function(){this.b.clear();this.a={}};
k.D=function(a){var b=this.b.data;return rb(b.ga,b.ha,b.da,b.ka,a)};function bh(a,b){xf.call(this,a,b);this.j=new lg(a,b);this.I=null;this.v=[];this.c=[];this.l={fillColor:null,u:!1}}v(bh,xf);function ch(a,b,c,d){var e=new Kg,f=new Wg;b=dh(a,b,d,e,f,!0);if(c.length){var g,h=[];var l=0;for(g=c.length;l<g;++l){var m={list:new Kg,da:void 0};h.push(m);m.da=dh(a,c[l],d,m.list,f,!1)}h.sort(function(a,b){return b.da-a.da});for(l=0;l<h.length;++l)eh(h[l].list,h[l].da,e,b,f)}fh(e,f,!1);gh(a,e,f)}
function dh(a,b,c,d,e,f){var g,h=a.a.length/2,l,m=[],n=[];if(f===$f(b,0,b.length,c)){var p=l=hh(a,b[0],b[1],h++);f=b[0];var q=c;for(g=b.length;q<g;q+=c){var t=hh(a,b[q],b[q+1],h++);n.push(ih(p,t,d));m.push([Math.min(p.x,t.x),Math.min(p.y,t.y),Math.max(p.x,t.x),Math.max(p.y,t.y)]);f=b[q]>f?b[q]:f;p=t}}else for(q=b.length-c,p=l=hh(a,b[q],b[q+1],h++),f=b[q],q-=c,g=0;q>=g;q-=c)t=hh(a,b[q],b[q+1],h++),n.push(ih(p,t,d)),m.push([Math.min(p.x,t.x),Math.min(p.y,t.y),Math.max(p.x,t.x),Math.max(p.y,t.y)]),f=
b[q]>f?b[q]:f,p=t;n.push(ih(t,l,d));m.push([Math.min(p.x,t.x),Math.min(p.y,t.y),Math.max(p.x,t.x),Math.max(p.y,t.y)]);e.load(m,n);return f}function fh(a,b,c){var d=Mg(a),e=d,f=Ng(a),g=!1;do{var h=c?Df(f.Y.x,f.Y.y,e.Y.x,e.Y.y,e.ca.x,e.ca.y):Df(e.ca.x,e.ca.y,e.Y.x,e.Y.y,f.Y.x,f.Y.y);void 0===h?(jh(e,f,a,b),g=!0,f===d&&(d=Og(a)),f=e,Pg(a)):e.Y.Ab!==h&&(e.Y.Ab=h,g=!0);e=f;f=Ng(a)}while(e!==d);return g}
function eh(a,b,c,d,e){fh(a,e,!0);for(var f=Mg(a);f.Y.x!==b;)f=Ng(a);b=f.Y;d={x:d,y:b.y,mb:-1};var g=Infinity,h;var l=kh({ca:b,Y:d},e,!0);var m=0;for(h=l.length;m<h;++m){var n=l[m];if(void 0===n.ca.Ab){var p=lh(b,d,n.ca,n.Y,!0),q=Math.abs(b.x-p[0]);if(q<g){g=q;var t={x:p[0],y:p[1],mb:-1};f=n}}}if(Infinity!==g){l=f.Y;if(0<g&&(f=mh(b,t,f.Y,e),f.length))for(t=Infinity,m=0,h=f.length;m<h;++m)if(g=f[m],n=Math.atan2(b.y-g.y,d.x-g.x),n<t||n===t&&g.x<l.x)t=n,l=g;for(f=Mg(c);f.Y!==l;)f=Ng(c);d={x:b.x,y:b.y,
mb:b.mb,Ab:void 0};m={x:f.Y.x,y:f.Y.y,mb:f.Y.mb,Ab:void 0};Og(a).ca=d;ih(b,f.Y,a,e);ih(m,d,a,e);f.Y=m;a.b&&(a.g=a.b,a.a=a.b.zb);c.concat(a)}}
function gh(a,b,c){for(var d=!1,e=nh(b,c);3<b.c;)if(e){if(!oh(a,b,c,e,d)&&!fh(b,c,d)&&!ph(a,b,c,!0))break}else if(!oh(a,b,c,e,d)&&!fh(b,c,d)&&!ph(a,b,c))if(e=nh(b,c)){d=b;var f=2*d.c,g=Array(f),h=Mg(d),l=h,m=0;do g[m++]=l.ca.x,g[m++]=l.ca.y,l=Ng(d);while(l!==h);d=!$f(g,0,f,2);fh(b,c,d)}else{e=a;d=b;f=g=Mg(d);do{h=kh(f,c);if(h.length){g=h[0];h=lh(f.ca,f.Y,g.ca,g.Y);h=hh(e,h[0],h[1],e.a.length/2);l=new Kg;m=new Wg;ih(h,f.Y,l,m);f.Y=h;Xg(c,[Math.min(f.ca.x,h.x),Math.min(f.ca.y,h.y),Math.max(f.ca.x,h.x),
Math.max(f.ca.y,h.y)],f);for(f=Ng(d);f!==g;)ih(f.ca,f.Y,l,m),c.remove(f),Lg(d),f=Rg(d);ih(g.ca,h,l,m);g.ca=h;Xg(c,[Math.min(g.Y.x,h.x),Math.min(g.Y.y,h.y),Math.max(g.Y.x,h.x),Math.max(g.Y.y,h.y)],g);fh(d,c,!1);gh(e,d,c);fh(l,m,!1);gh(e,l,m);break}f=Ng(d)}while(f!==g);break}3===b.c&&(e=a.b.length,a.b[e++]=Qg(b).ca.mb,a.b[e++]=Rg(b).ca.mb,a.b[e++]=Og(b).ca.mb)}
function oh(a,b,c,d,e){var f=a.b.length,g=Mg(b),h=Qg(b),l=g,m=Ng(b),n=Og(b),p=!1;do{var q=l.ca;var t=l.Y;var u=m.Y;if(!1===t.Ab){var w=e?qh(n.Y,u,t,q,h.ca):qh(h.ca,q,t,u,n.Y);!d&&0!==kh({ca:q,Y:u},c).length||!w||0!==mh(q,t,u,c,!0).length||!d&&!1!==q.Ab&&!1!==u.Ab&&$f([h.ca.x,h.ca.y,q.x,q.y,t.x,t.y,u.x,u.y,n.Y.x,n.Y.y],0,10,2)!==!e||(a.b[f++]=q.mb,a.b[f++]=t.mb,a.b[f++]=u.mb,jh(l,m,b,c),m===g&&(g=n),p=!0)}h=Qg(b);l=Rg(b);m=Ng(b);n=Og(b)}while(l!==g&&3<b.c);return p}
function ph(a,b,c,d){var e=Mg(b);Ng(b);var f=e,g=Ng(b),h=!1;do{var l=lh(f.ca,f.Y,g.ca,g.Y,d);if(l){h=a.b.length;var m=a.a.length/2,n=Pg(b);Lg(b);c.remove(n);var p=n===e;d?(l[0]===f.ca.x&&l[1]===f.ca.y?(Pg(b),l=f.ca,g.ca=l,c.remove(f),p=p||f===e):(l=g.Y,f.Y=l,c.remove(g),p=p||g===e),Lg(b)):(l=hh(a,l[0],l[1],m),f.Y=l,g.ca=l,Xg(c,[Math.min(f.ca.x,f.Y.x),Math.min(f.ca.y,f.Y.y),Math.max(f.ca.x,f.Y.x),Math.max(f.ca.y,f.Y.y)],f),Xg(c,[Math.min(g.ca.x,g.Y.x),Math.min(g.ca.y,g.Y.y),Math.max(g.ca.x,g.Y.x),
Math.max(g.ca.y,g.Y.y)],g));a.b[h++]=n.ca.mb;a.b[h++]=n.Y.mb;a.b[h++]=l.mb;h=!0;if(p)break}f=Qg(b);g=Ng(b)}while(f!==e);return h}function nh(a,b){var c=Mg(a),d=c;do{if(kh(d,b).length)return!1;d=Ng(a)}while(d!==c);return!0}function hh(a,b,c,d){var e=a.a.length;a.a[e++]=b;a.a[e++]=c;return{x:b,y:c,mb:d,Ab:void 0}}
function ih(a,b,c,d){var e={ca:a,Y:b},f={zb:void 0,next:void 0,data:e},g=c.b;if(g){var h=g.next;f.zb=g;f.next=h;g.next=f;h&&(h.zb=f);g===c.a&&(c.a=f)}else c.g=f,c.a=f,f.next=f,f.zb=f;c.b=f;c.c++;d&&d.Ha([Math.min(a.x,b.x),Math.min(a.y,b.y),Math.max(a.x,b.x),Math.max(a.y,b.y)],e);return e}function jh(a,b,c,d){Rg(c)===b&&(Lg(c),a.Y=b.Y,d.remove(b),Xg(d,[Math.min(a.ca.x,a.Y.x),Math.min(a.ca.y,a.Y.y),Math.max(a.ca.x,a.Y.x),Math.max(a.ca.y,a.Y.y)],a))}
function mh(a,b,c,d,e){var f,g,h=[],l=Zg(d,[Math.min(a.x,b.x,c.x),Math.min(a.y,b.y,c.y),Math.max(a.x,b.x,c.x),Math.max(a.y,b.y,c.y)]);d=0;for(f=l.length;d<f;++d)for(g in l[d]){var m=l[d][g];"object"!==typeof m||e&&!m.Ab||m.x===a.x&&m.y===a.y||m.x===b.x&&m.y===b.y||m.x===c.x&&m.y===c.y||-1!==h.indexOf(m)||!Bg([a.x,a.y,b.x,b.y,c.x,c.y],0,6,2,m.x,m.y)||h.push(m)}return h}
function kh(a,b,c){var d=a.ca,e=a.Y;b=Zg(b,[Math.min(d.x,e.x),Math.min(d.y,e.y),Math.max(d.x,e.x),Math.max(d.y,e.y)]);var f=[],g;var h=0;for(g=b.length;h<g;++h){var l=b[h];a!==l&&(c||l.ca!==e||l.Y!==d)&&lh(d,e,l.ca,l.Y,c)&&f.push(l)}return f}
function lh(a,b,c,d,e){var f=(d.y-c.y)*(b.x-a.x)-(d.x-c.x)*(b.y-a.y);if(0!==f&&(d=((d.x-c.x)*(a.y-c.y)-(d.y-c.y)*(a.x-c.x))/f,c=((b.x-a.x)*(a.y-c.y)-(b.y-a.y)*(a.x-c.x))/f,!e&&d>Ef&&d<1-Ef&&c>Ef&&c<1-Ef||e&&0<=d&&1>=d&&0<=c&&1>=c))return[a.x+d*(b.x-a.x),a.y+d*(b.y-a.y)]}
function qh(a,b,c,d,e){if(void 0===b.Ab||void 0===d.Ab)return!1;var f=(c.x-d.x)*(b.y-d.y)>(c.y-d.y)*(b.x-d.x);e=(e.x-d.x)*(b.y-d.y)<(e.y-d.y)*(b.x-d.x);a=(a.x-b.x)*(d.y-b.y)>(a.y-b.y)*(d.x-b.x);c=(c.x-b.x)*(d.y-b.y)<(c.y-b.y)*(d.x-b.x);b=b.Ab?c||a:c&&a;return(d.Ab?e||f:e&&f)&&b}k=bh.prototype;
k.Dc=function(a,b){var c=a.bd();a=a.ya();var d=this.b.length,e=this.j.b.length,f,g;var h=0;for(f=c.length;h<f;++h){var l=c[h].Ic();if(0<l.length){var m=l[0].ja();m=Qd(m,m.length,a,-this.origin[0],-this.origin[1]);var n=[];var p=1;for(g=l.length;p<g;++p){var q=l[p].ja();q=Qd(q,q.length,a,-this.origin[0],-this.origin[1]);n.push(q)}xg(this.j,m,n,a);ch(this,m,n,a)}}this.b.length>d&&(this.g.push(d),this.f.push(b),this.l.u&&(this.c.push(d),this.l.u=!1));this.j.b.length>e&&yg(this.j,b,e)};
k.Fc=function(a,b){var c=a.Ic();a=a.ya();if(0<c.length){this.g.push(this.b.length);this.f.push(b);this.l.u&&(this.c.push(this.b.length),this.l.u=!1);yg(this.j,b);b=c[0].ja();b=Qd(b,b.length,a,-this.origin[0],-this.origin[1]);var d=[],e;var f=1;for(e=c.length;f<e;++f){var g=c[f].ja();g=Qd(g,g.length,a,-this.origin[0],-this.origin[1]);d.push(g)}xg(this.j,b,d,a);ch(this,b,d,a)}};
k.Gb=function(a){this.s=new Ff(this.a);this.o=new Ff(this.b);this.g.push(this.b.length);this.j.Gb(a);0===this.c.length&&0<this.v.length&&(this.v=[]);this.b=this.a=null};k.Hb=function(a){var b=this.s,c=this.o,d=this.j.Hb(a);return function(){If(a,b);If(a,c);d()}};k.Nf=function(a,b){var c=Jf(b,Fg,Hg);if(this.I)var d=this.I;else this.I=d=new Ig(a,c);b.ld(c);a.enableVertexAttribArray(d.b);a.vertexAttribPointer(d.b,2,5126,!1,8,0);return d};k.Of=function(a,b){a.disableVertexAttribArray(b.b)};
k.he=function(a,b,c,d){var e=a.getParameter(a.DEPTH_FUNC),f=a.getParameter(a.DEPTH_WRITEMASK);d||(a.enable(a.DEPTH_TEST),a.depthMask(!0),a.depthFunc(a.NOTEQUAL));if(Aa(c)){var g=this.g[this.g.length-1];for(c=this.c.length-1;0<=c;--c){var h=this.c[c];var l=this.v[c];a.uniform4fv(this.I.ea,l);zf(a,b,h,g);g=h}}else{var m=this.g.length-2;l=g=this.g[m+1];for(h=this.c.length-1;0<=h;--h){var n=this.v[h];a.uniform4fv(this.I.ea,n);for(n=this.c[h];0<=m&&this.g[m]>=n;){var p=this.g[m];var q=this.f[m];q=x(q).toString();
c[q]&&(g!==l&&(zf(a,b,g,l),a.clear(a.DEPTH_BUFFER_BIT)),l=p);m--;g=p}g!==l&&(zf(a,b,g,l),a.clear(a.DEPTH_BUFFER_BIT));g=l=n}}d||(a.disable(a.DEPTH_TEST),a.clear(a.DEPTH_BUFFER_BIT),a.depthMask(f),a.depthFunc(e))};
k.Te=function(a,b,c,d,e){var f,g;var h=this.g.length-2;var l=this.g[h+1];for(f=this.c.length-1;0<=f;--f){var m=this.v[f];a.uniform4fv(this.I.ea,m);for(g=this.c[f];0<=h&&this.g[h]>=g;){m=this.g[h];var n=this.f[h];var p=x(n).toString();if(void 0===c[p]&&n.V()&&(void 0===e||Jb(e,n.V().D()))&&(a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),zf(a,b,m,l),l=d(n)))return l;h--;l=m}}};
k.Ta=function(a,b){a=a?a.b:[0,0,0,0];a instanceof CanvasGradient||a instanceof CanvasPattern?a=Af:a=Jd(a).map(function(a,b){return 3!=b?a/255:a})||Af;this.l.fillColor&&fd(a,this.l.fillColor)||(this.l.fillColor=a,this.l.u=!0,this.v.push(a));b?this.j.Ta(null,b):this.j.Ta(null,new Jg({color:[0,0,0,0],lineWidth:0}))};function rh(){}rh.prototype.i=function(){};function sh(a,b,c){this.f=b;this.j=a;this.c=c;this.a={}}v(sh,mf);function th(a,b){var c=[],d;for(d in a.a){var e=a.a[d],f;for(f in e)c.push(e[f].Hb(b))}return function(){for(var a=c.length,b,d=0;d<a;d++)b=c[d].apply(this,arguments);return b}}function uh(a,b){for(var c in a.a){var d=a.a[c],e;for(e in d)d[e].Gb(b)}}sh.prototype.b=function(a,b){var c=void 0!==a?a.toString():"0";a=this.a[c];void 0===a&&(a={},this.a[c]=a);c=a[b];void 0===c&&(c=new wh[b](this.j,this.f),a[b]=c);return c};
sh.prototype.g=function(){return Aa(this.a)};sh.prototype.i=function(a,b,c,d,e,f,g,h){var l=Object.keys(this.a).map(Number);l.sort(ad);var m,n;var p=0;for(m=l.length;p<m;++p){var q=this.a[l[p].toString()];var t=0;for(n=lf.length;t<n;++t){var u=q[lf[t]];void 0!==u&&u.i(a,b,c,d,e,f,g,h,void 0,!1)}}};
function xh(a,b,c,d,e,f,g,h,l,m,n){var p=yh,q=Object.keys(a.a).map(Number);q.sort(function(a,b){return b-a});var t,u;var w=0;for(t=q.length;w<t;++w){var z=a.a[q[w].toString()];for(u=lf.length-1;0<=u;--u){var D=z[lf[u]];if(void 0!==D&&(D=D.i(b,c,d,e,p,f,g,h,l,m,n)))return D}}}
sh.prototype.Ga=function(a,b,c,d,e,f,g,h,l,m){var n=b.b;n.bindFramebuffer(n.FRAMEBUFFER,Sf(b));var p;void 0!==this.c&&(p=kb(sb(a),d*this.c));return xh(this,b,a,d,e,g,h,l,function(a){var b=new Uint8Array(4);n.readPixels(0,0,1,1,n.RGBA,n.UNSIGNED_BYTE,b);if(0<b[3]&&(a=m(a)))return a},!0,p)};
function zh(a,b,c,d,e,f,g,h){var l=c.b;l.bindFramebuffer(l.FRAMEBUFFER,Sf(c));return void 0!==xh(a,c,b,d,e,f,g,h,function(){var a=new Uint8Array(4);l.readPixels(0,0,1,1,l.RGBA,l.UNSIGNED_BYTE,a);return 0<a[3]},!1)}var yh=[1,1],wh={Circle:Hf,Image:Xf,LineString:lg,Polygon:bh,Text:rh};function Ah(a,b,c,d,e,f,g){this.b=a;this.g=b;this.a=f;this.c=g;this.j=e;this.f=d;this.i=c;this.l=this.o=this.s=null}v(Ah,oe);k=Ah.prototype;k.Id=function(a){this.Ta(a.qa(),a.pa());this.ic(a.W())};
k.Ac=function(a){switch(a.T()){case "Point":this.Ec(a,null);break;case "LineString":this.Yb(a,null);break;case "Polygon":this.Fc(a,null);break;case "MultiPoint":this.Cc(a,null);break;case "MultiLineString":this.Bc(a,null);break;case "MultiPolygon":this.Dc(a,null);break;case "GeometryCollection":this.Se(a);break;case "Circle":this.nc(a,null)}};k.Re=function(a,b){(a=(0,b.Va)(a))&&Jb(this.a,a.D())&&(this.Id(b),this.Ac(a))};k.Se=function(a){a=a.a;var b;var c=0;for(b=a.length;c<b;++c)this.Ac(a[c])};
k.Ec=function(a,b){var c=this.b,d=(new sh(1,this.a)).b(0,"Image");d.ic(this.s);d.Ec(a,b);d.Gb(c);d.i(this.b,this.g,this.i,this.f,this.j,this.c,1,{},void 0,!1);d.Hb(c)()};k.Cc=function(a,b){var c=this.b,d=(new sh(1,this.a)).b(0,"Image");d.ic(this.s);d.Cc(a,b);d.Gb(c);d.i(this.b,this.g,this.i,this.f,this.j,this.c,1,{},void 0,!1);d.Hb(c)()};
k.Yb=function(a,b){var c=this.b,d=(new sh(1,this.a)).b(0,"LineString");d.Ta(null,this.l);d.Yb(a,b);d.Gb(c);d.i(this.b,this.g,this.i,this.f,this.j,this.c,1,{},void 0,!1);d.Hb(c)()};k.Bc=function(a,b){var c=this.b,d=(new sh(1,this.a)).b(0,"LineString");d.Ta(null,this.l);d.Bc(a,b);d.Gb(c);d.i(this.b,this.g,this.i,this.f,this.j,this.c,1,{},void 0,!1);d.Hb(c)()};
k.Fc=function(a,b){var c=this.b,d=(new sh(1,this.a)).b(0,"Polygon");d.Ta(this.o,this.l);d.Fc(a,b);d.Gb(c);d.i(this.b,this.g,this.i,this.f,this.j,this.c,1,{},void 0,!1);d.Hb(c)()};k.Dc=function(a,b){var c=this.b,d=(new sh(1,this.a)).b(0,"Polygon");d.Ta(this.o,this.l);d.Dc(a,b);d.Gb(c);d.i(this.b,this.g,this.i,this.f,this.j,this.c,1,{},void 0,!1);d.Hb(c)()};
k.nc=function(a,b){var c=this.b,d=(new sh(1,this.a)).b(0,"Circle");d.Ta(this.o,this.l);d.nc(a,b);d.Gb(c);d.i(this.b,this.g,this.i,this.f,this.j,this.c,1,{},void 0,!1);d.Hb(c)()};k.ic=function(a){this.s=a};k.Ta=function(a,b){this.o=a;this.l=b};function Bh(){this.b="precision mediump float;\nvarying vec2 v_texCoord;\n\n\nuniform float u_opacity;\nuniform sampler2D u_texture;\n\nvoid main(void) {\n  vec4 texColor = texture2D(u_texture, v_texCoord);\n  gl_FragColor.rgb = texColor.rgb;\n  gl_FragColor.a = texColor.a * u_opacity;\n}\n"}v(Bh,of);var Ch=new Bh;
function Dh(){this.b="varying vec2 v_texCoord;\n\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nuniform mat4 u_texCoordMatrix;\nuniform mat4 u_projectionMatrix;\n\nvoid main(void) {\n  gl_Position = u_projectionMatrix * vec4(a_position, 0., 1.);\n  v_texCoord = (u_texCoordMatrix * vec4(a_texCoord, 0., 1.)).st;\n}\n\n\n"}v(Dh,pf);var Eh=new Dh;
function Fh(a,b){this.g=a.getUniformLocation(b,"u_opacity");this.c=a.getUniformLocation(b,"u_projectionMatrix");this.f=a.getUniformLocation(b,"u_texCoordMatrix");this.i=a.getUniformLocation(b,"u_texture");this.b=a.getAttribLocation(b,"a_position");this.a=a.getAttribLocation(b,"a_texCoord")};function Gh(a,b){Ne.call(this,b);this.c=a;this.X=new Ff([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.f=this.texture=null;this.j=void 0;this.s=qe();this.v=qe();this.B=vf();this.I=null}v(Gh,Ne);
function Hh(a,b,c){var d=a.c.g;if(void 0===a.j||a.j!=c){b.postRenderFunctions.push(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))}.bind(null,d,a.f,a.texture));b=Tf(d,c,c);var e=d.createFramebuffer();d.bindFramebuffer(36160,e);d.framebufferTexture2D(36160,36064,3553,b,0);a.texture=b;a.f=e;a.j=c}else d.bindFramebuffer(36160,a.f)}
Gh.prototype.gj=function(a,b,c){Ih(this,"precompose",c,a);yf(c,34962,this.X);var d=c.b,e=Jf(c,Ch,Eh);if(this.I)var f=this.I;else this.I=f=new Fh(d,e);c.ld(e)&&(d.enableVertexAttribArray(f.b),d.vertexAttribPointer(f.b,2,5126,!1,16,0),d.enableVertexAttribArray(f.a),d.vertexAttribPointer(f.a,2,5126,!1,16,8),d.uniform1i(f.i,0));d.uniformMatrix4fv(f.f,!1,wf(this.B,this.s));d.uniformMatrix4fv(f.c,!1,wf(this.B,this.v));d.uniform1f(f.g,b.opacity);d.bindTexture(3553,this.texture);d.drawArrays(5,0,4);Ih(this,
"postcompose",c,a)};function Ih(a,b,c,d){a=a.a;if(Ra(a,b)){var e=d.viewState;a.b(new Cd(b,new Ah(c,e.center,e.resolution,e.rotation,d.size,d.extent,d.pixelRatio),d,null,c))}}Gh.prototype.Ng=function(){this.f=this.texture=null;this.j=void 0};function Jh(){this.b="precision mediump float;\nvarying vec2 v_texCoord;\n\n\nuniform sampler2D u_texture;\n\nvoid main(void) {\n  gl_FragColor = texture2D(u_texture, v_texCoord);\n}\n"}v(Jh,of);var Kh=new Jh;function Lh(){this.b="varying vec2 v_texCoord;\n\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\nuniform vec4 u_tileOffset;\n\nvoid main(void) {\n  gl_Position = vec4(a_position * u_tileOffset.xy + u_tileOffset.zw, 0., 1.);\n  v_texCoord = a_texCoord;\n}\n\n\n"}v(Lh,pf);var Mh=new Lh;
function Nh(a,b){this.g=a.getUniformLocation(b,"u_texture");this.c=a.getUniformLocation(b,"u_tileOffset");this.b=a.getAttribLocation(b,"a_position");this.a=a.getAttribLocation(b,"a_texCoord")};function Oh(a,b,c){void 0===c&&(c=[0,0]);c[0]=a[0]+2*b;c[1]=a[1]+2*b;return c}function Ph(a,b,c){void 0===c&&(c=[0,0]);c[0]=a[0]*b+.5|0;c[1]=a[1]*b+.5|0;return c}function ff(a,b){if(Array.isArray(a))return a;void 0===b?b=[a,a]:b[0]=b[1]=a;return b};function Qh(a,b){Gh.call(this,a,b);this.N=Kh;this.la=Mh;this.i=null;this.G=new Ff([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.C=this.l=null;this.o=-1;this.aa=[0,0]}v(Qh,Gh);k=Qh.prototype;k.xa=function(){If(this.c.i,this.G);Gh.prototype.xa.call(this)};k.hg=function(a,b,c){var d=this.c;return function(e,f){return Oe(a,b,e,f,function(a){var b=d.a.b.hasOwnProperty(a.ob());b&&(c[e]||(c[e]={}),c[e][a.Ka.toString()]=a);return b})}};k.Ng=function(){Gh.prototype.Ng.call(this);this.i=null};
k.Og=function(a,b,c){var d=this.c,e=c.b,f=a.viewState,g=f.projection,h=this.a,l=h.ba(),m=l.Ob(g),n=m.dd(f.resolution),p=m.Ra(n),q=l.ne(n,a.pixelRatio,g),t=q[0]/ff(m.gb(n),this.aa)[0],u=p/t,w=l.vb(t)*l.rg(g),z=f.center,D=a.extent,B=ef(m,D,p);if(this.l&&Zc(this.l,B)&&this.o==l.g)u=this.C;else{var S=[B.da-B.ga+1,B.ka-B.ha+1],Ua=Ob(Math.max(S[0]*q[0],S[1]*q[1]));S=u*Ua;var ya=m.kd(n),Da=ya[0]+B.ga*q[0]*u;u=ya[1]+B.ha*q[1]*u;u=[Da,u,Da+S,u+S];Hh(this,a,Ua);e.viewport(0,0,Ua,Ua);e.clearColor(0,0,0,0);e.clear(16384);
e.disable(3042);Ua=Jf(c,this.N,this.la);c.ld(Ua);this.i||(this.i=new Nh(e,Ua));yf(c,34962,this.G);e.enableVertexAttribArray(this.i.b);e.vertexAttribPointer(this.i.b,2,5126,!1,16,0);e.enableVertexAttribArray(this.i.a);e.vertexAttribPointer(this.i.a,2,5126,!1,16,8);e.uniform1i(this.i.g,0);c={};c[n]={};var C=this.hg(l,g,c),pa=h.oe();Ua=!0;Da=ib();var $a=new Xc(0,0,0,0),ra,dc;for(ra=B.ga;ra<=B.da;++ra)for(dc=B.ha;dc<=B.ka;++dc){ya=l.cd(n,ra,dc,t,g);if(void 0!==b.extent){var Pa=m.Ya(ya.Ka,Da);if(!Jb(Pa,
b.extent))continue}Pa=ya.getState();(Pa=2==Pa||4==Pa||3==Pa&&!pa)||(ya=gf(ya));Pa=ya.getState();if(2==Pa){if(d.a.b.hasOwnProperty(ya.ob())){c[n][ya.Ka.toString()]=ya;continue}}else if(4==Pa||3==Pa&&!pa)continue;Ua=!1;Pa=hf(m,ya.Ka,C,$a,Da);Pa||(ya=jf(m,ya.Ka,$a,Da))&&C(n+1,ya)}b=Object.keys(c).map(Number);b.sort(ad);C=new Float32Array(4);var ic;pa=0;for($a=b.length;pa<$a;++pa)for(ic in ra=c[b[pa]],ra)ya=ra[ic],Pa=m.Ya(ya.Ka,Da),C[0]=2*(Pa[2]-Pa[0])/S,C[1]=2*(Pa[3]-Pa[1])/S,C[2]=2*(Pa[0]-u[0])/S-1,
C[3]=2*(Pa[1]-u[1])/S-1,e.uniform4fv(this.i.c,C),Rh(d,ya,q,w*t),e.drawArrays(5,0,4);Ua?(this.l=B,this.C=u,this.o=l.g):(this.C=this.l=null,this.o=-1,a.animate=!0)}Ue(a.usedTiles,l,n,B);var jd=d.j;Ve(a,l,m,t,g,D,n,h.ke(),function(a){2!=a.getState()||d.a.b.hasOwnProperty(a.ob())||a.ob()in jd.a||jd.i([a,Xe(m,a.Ka),m.Ra(a.Ka[0]),q,w*t])},this);Re(a,l);Te(a,l);e=this.s;re(e);ye(e,(Math.round(z[0]/p)*p-u[0])/(u[2]-u[0]),(Math.round(z[1]/p)*p-u[1])/(u[3]-u[1]));0!==f.rotation&&we(e,f.rotation);xe(e,a.size[0]*
f.resolution/(u[2]-u[0]),a.size[1]*f.resolution/(u[3]-u[1]));ye(e,-.5,-.5);return!0};k.Mg=function(a,b,c,d){if(this.f){a=ve(this.s,[a[0]/b.size[0],(b.size[1]-a[1])/b.size[1]].slice());a=[a[0]*this.j,a[1]*this.j];b=this.c.i.b;b.bindFramebuffer(b.FRAMEBUFFER,this.f);var e=new Uint8Array(4);b.readPixels(a[0],a[1],1,1,b.RGBA,b.UNSIGNED_BYTE,e);if(0<e[3])return c.call(d,this.a,e)}};function Sh(a){a=a?a:{};var b=wa({},a);delete b.preload;delete b.useInterimTilesOnError;Vc.call(this,b);this.$i(void 0!==a.preload?a.preload:0);this.aj(void 0!==a.useInterimTilesOnError?a.useInterimTilesOnError:!0)}v(Sh,Vc);k=Sh.prototype;k.Yd=function(a){var b=null,c=a.T();"canvas"===c?b=new cf(this):"webgl"===c&&(b=new Qh(a,this));return b};k.ke=function(){return this.get("preload")};k.$i=function(a){this.set("preload",a)};k.oe=function(){return this.get("useInterimTilesOnError")};
k.aj=function(a){this.set("useInterimTilesOnError",a)};function Th(a,b){Qa.call(this);this.Ka=a;this.state=b;this.a=null;this.key=""}v(Th,Qa);Th.prototype.u=function(){this.b("change")};Th.prototype.ob=function(){return this.key+"/"+this.Ka};function gf(a){if(!a.a)return a;var b=a.a;do{if(2==b.getState())return b;b=b.a}while(b);return a}Th.prototype.i=function(){return this.Ka};Th.prototype.getState=function(){return this.state};function Uh(a,b,c,d,e){Th.call(this,a,b);this.f=c;this.O=new Image;null!==d&&(this.O.crossOrigin=d);this.c=null;this.l=e}v(Uh,Th);k=Uh.prototype;k.xa=function(){1==this.state&&Vh(this);this.a&&Ma(this.a);this.state=5;this.u();Th.prototype.xa.call(this)};k.W=function(){return this.O};k.ob=function(){return this.f};k.yn=function(){this.state=3;Vh(this);this.u()};k.zn=function(){this.state=this.O.naturalWidth&&this.O.naturalHeight?2:4;Vh(this);this.u()};
k.load=function(){if(0==this.state||3==this.state)this.state=1,this.u(),this.c=[Ia(this.O,"error",this.yn,this),Ia(this.O,"load",this.zn,this)],this.l(this,this.f)};function Vh(a){a.c.forEach(Ca);a.c=null};function Wh(){this.c=0;this.b={};this.g=this.a=null}k=Wh.prototype;k.clear=function(){this.c=0;this.b={};this.g=this.a=null};k.forEach=function(a,b){for(var c=this.a;c;)a.call(b,c.ud,c.Kc,this),c=c.Qb};k.get=function(a){a=this.b[a];gb(void 0!==a,15);if(a===this.g)return a.ud;a===this.a?(this.a=this.a.Qb,this.a.Md=null):(a.Qb.Md=a.Md,a.Md.Qb=a.Qb);a.Qb=null;a.Md=this.g;this.g=this.g.Qb=a;return a.ud};
k.pop=function(){var a=this.a;delete this.b[a.Kc];a.Qb&&(a.Qb.Md=null);this.a=a.Qb;this.a||(this.g=null);--this.c;return a.ud};k.replace=function(a,b){this.get(a);this.b[a].ud=b};k.set=function(a,b){gb(!(a in this.b),16);b={Kc:a,Qb:null,Md:this.g,ud:b};this.g?this.g.Qb=b:this.a=b;this.g=b;this.b[a]=b;++this.c};function Xh(a){Wh.call(this);this.highWaterMark=void 0!==a?a:2048}v(Xh,Wh);function Yh(a){return a.c>a.highWaterMark}Xh.prototype.Bd=function(a){for(var b,c;Yh(this);){b=this.a.ud;c=b.Ka[0].toString();var d;if(d=c in a)b=b.Ka,d=Yc(a[c],b[1],b[2]);if(d)break;else Ma(this.pop())}};function Zh(a,b,c,d){var e=Sc(c,b,a);c=Ec(b,d,c);b=b.dc();void 0!==b&&(c*=b);b=a.dc();void 0!==b&&(c/=b);a=Ec(a,c,e)/c;isFinite(a)&&0<a&&(c/=a);return c}function $h(a,b,c,d){a=c-a;b=d-b;var e=Math.sqrt(a*a+b*b);return[Math.round(c+a/e),Math.round(d+b/e)]}
function ai(a,b,c,d,e,f,g,h,l,m,n){var p=kd(Math.round(c*a),Math.round(c*b));if(0===l.length)return p.canvas;p.scale(c,c);var q=ib();l.forEach(function(a){wb(q,a.extent)});var t=kd(Math.round(c*Eb(q)/d),Math.round(c*Fb(q)/d)),u=c/d;l.forEach(function(a){t.drawImage(a.image,m,m,a.image.width-2*m,a.image.height-2*m,(a.extent[0]-q[0])*u,-(a.extent[3]-q[3])*u,Eb(a.extent)*u,Fb(a.extent)*u)});var w=Bb(g);h.c.forEach(function(a){var b=a.source,e=a.target,g=b[1][0],h=b[1][1],l=b[2][0],m=b[2][1];a=(e[0][0]-
w[0])/f;var n=-(e[0][1]-w[1])/f,u=(e[1][0]-w[0])/f,z=-(e[1][1]-w[1])/f,ra=(e[2][0]-w[0])/f,dc=-(e[2][1]-w[1])/f;e=b[0][0];b=b[0][1];g-=e;h-=b;l-=e;m-=b;a:{g=[[g,h,0,0,u-a],[l,m,0,0,ra-a],[0,0,g,h,z-n],[0,0,l,m,dc-n]];h=g.length;for(l=0;l<h;l++){m=l;for(var Pa=Math.abs(g[l][l]),ic=l+1;ic<h;ic++){var jd=Math.abs(g[ic][l]);jd>Pa&&(Pa=jd,m=ic)}if(0===Pa){g=null;break a}Pa=g[m];g[m]=g[l];g[l]=Pa;for(m=l+1;m<h;m++)for(Pa=-g[m][l]/g[l][l],ic=l;ic<h+1;ic++)g[m][ic]=l==ic?0:g[m][ic]+Pa*g[l][ic]}l=Array(h);
for(m=h-1;0<=m;m--)for(l[m]=g[m][h]/g[m][m],Pa=m-1;0<=Pa;Pa--)g[Pa][h]-=g[Pa][m]*l[m];g=l}g&&(p.save(),p.beginPath(),l=(a+u+ra)/3,m=(n+z+dc)/3,h=$h(l,m,a,n),u=$h(l,m,u,z),ra=$h(l,m,ra,dc),p.moveTo(u[0],u[1]),p.lineTo(h[0],h[1]),p.lineTo(ra[0],ra[1]),p.clip(),p.transform(g[0],g[2],g[1],g[3],a,n),p.translate(q[0]-e,q[3]-b),p.scale(d/c,-d/c),p.drawImage(t.canvas,0,0),p.restore())});n&&(p.save(),p.strokeStyle="black",p.lineWidth=1,h.c.forEach(function(a){var b=a.target;a=(b[0][0]-w[0])/f;var c=-(b[0][1]-
w[1])/f,d=(b[1][0]-w[0])/f,e=-(b[1][1]-w[1])/f,g=(b[2][0]-w[0])/f;b=-(b[2][1]-w[1])/f;p.beginPath();p.moveTo(d,e);p.lineTo(a,c);p.lineTo(g,b);p.closePath();p.stroke()}),p.restore());return p.canvas};function bi(a,b,c,d,e){this.g=a;this.i=b;var f={},g=Qc(this.i,this.g);this.a=function(a){var b=a[0]+"/"+a[1];f[b]||(f[b]=g(a));return f[b]};this.f=d;this.s=e*e;this.c=[];this.l=!1;this.o=this.g.a&&!!d&&!!this.g.D()&&Eb(d)==Eb(this.g.D());this.b=this.g.D()?Eb(this.g.D()):null;this.j=this.i.D()?Eb(this.i.D()):null;a=Bb(c);b=Ab(c);d=zb(c);c=yb(c);e=this.a(a);var h=this.a(b),l=this.a(d),m=this.a(c);ci(this,a,b,d,c,e,h,l,m,10);if(this.l){var n=Infinity;this.c.forEach(function(a){n=Math.min(n,a.source[0][0],
a.source[1][0],a.source[2][0])});this.c.forEach(function(a){if(Math.max(a.source[0][0],a.source[1][0],a.source[2][0])-n>this.b/2){var b=[[a.source[0][0],a.source[0][1]],[a.source[1][0],a.source[1][1]],[a.source[2][0],a.source[2][1]]];b[0][0]-n>this.b/2&&(b[0][0]-=this.b);b[1][0]-n>this.b/2&&(b[1][0]-=this.b);b[2][0]-n>this.b/2&&(b[2][0]-=this.b);Math.max(b[0][0],b[1][0],b[2][0])-Math.min(b[0][0],b[1][0],b[2][0])<this.b/2&&(a.source=b)}},this)}f={}}
function ci(a,b,c,d,e,f,g,h,l,m){var n=hb([f,g,h,l]),p=a.b?Eb(n)/a.b:null,q=a.b,t=a.g.a&&.5<p&&1>p,u=!1;if(0<m){if(a.i.g&&a.j){var w=hb([b,c,d,e]);u|=.25<Eb(w)/a.j}!t&&a.g.g&&p&&(u|=.25<p)}if(u||!a.f||Jb(n,a.f)){if(!(u||isFinite(f[0])&&isFinite(f[1])&&isFinite(g[0])&&isFinite(g[1])&&isFinite(h[0])&&isFinite(h[1])&&isFinite(l[0])&&isFinite(l[1])))if(0<m)u=!0;else return;if(0<m&&(u||(n=a.a([(b[0]+d[0])/2,(b[1]+d[1])/2]),q=t?(Sb(f[0],q)+Sb(h[0],q))/2-Sb(n[0],q):(f[0]+h[0])/2-n[0],n=(f[1]+h[1])/2-n[1],
u=q*q+n*n>a.s),u)){Math.abs(b[0]-d[0])<=Math.abs(b[1]-d[1])?(t=[(c[0]+d[0])/2,(c[1]+d[1])/2],q=a.a(t),n=[(e[0]+b[0])/2,(e[1]+b[1])/2],p=a.a(n),ci(a,b,c,t,n,f,g,q,p,m-1),ci(a,n,t,d,e,p,q,h,l,m-1)):(t=[(b[0]+c[0])/2,(b[1]+c[1])/2],q=a.a(t),n=[(d[0]+e[0])/2,(d[1]+e[1])/2],p=a.a(n),ci(a,b,t,n,e,f,q,p,l,m-1),ci(a,t,c,d,n,q,g,h,p,m-1));return}if(t){if(!a.o)return;a.l=!0}a.c.push({source:[f,h,l],target:[b,d,e]});a.c.push({source:[f,g,h],target:[b,c,d]})}}
function di(a){var b=ib();a.c.forEach(function(a){a=a.source;jb(b,a[0]);jb(b,a[1]);jb(b,a[2])});return b};function ei(a,b,c,d,e,f,g,h,l,m,n){Th.call(this,e,0);this.B=void 0!==n?n:!1;this.C=g;this.v=h;this.I=null;this.c=b;this.l=d;this.o=f?f:e;this.g=[];this.Rd=null;this.f=0;f=d.Ya(this.o);h=this.l.D();e=this.c.D();f=h?Ib(f,h):f;if(0===Cb(f))this.state=4;else if((h=a.D())&&(e?e=Ib(e,h):e=h),d=Zh(a,c,Gb(f),d.Ra(this.o[0])),!isFinite(d)||0>=d)this.state=4;else if(this.s=new bi(a,c,f,e,d*(void 0!==m?m:.5)),0===this.s.c.length)this.state=4;else if(this.f=b.dd(d),c=di(this.s),e&&(a.a?(c[1]=Mb(c[1],e[1],e[3]),
c[3]=Mb(c[3],e[1],e[3])):c=Ib(c,e)),Cb(c)){a=We(b,c,this.f);for(b=a.ga;b<=a.da;b++)for(c=a.ha;c<=a.ka;c++)(m=l(this.f,b,c,g))&&this.g.push(m);0===this.g.length&&(this.state=4)}else this.state=4}v(ei,Th);ei.prototype.xa=function(){1==this.state&&(this.Rd.forEach(Ca),this.Rd=null);Th.prototype.xa.call(this)};ei.prototype.W=function(){return this.I};
ei.prototype.ze=function(){var a=[];this.g.forEach(function(b){b&&2==b.getState()&&a.push({extent:this.c.Ya(b.Ka),image:b.W()})},this);this.g.length=0;if(0===a.length)this.state=3;else{var b=this.o[0],c=this.l.gb(b),d="number"===typeof c?c:c[0];c="number"===typeof c?c:c[1];b=this.l.Ra(b);var e=this.c.Ra(this.f),f=this.l.Ya(this.o);this.I=ai(d,c,this.C,e,this.c.D(),b,f,this.s,a,this.v,this.B);this.state=2}this.u()};
ei.prototype.load=function(){if(0==this.state){this.state=1;this.u();var a=0;this.Rd=[];this.g.forEach(function(b){var c=b.getState();if(0==c||1==c){a++;var d=y(b,"change",function(){var c=b.getState();if(2==c||3==c||4==c)Ca(d),a--,0===a&&(this.Rd.forEach(Ca),this.Rd=null,this.ze())},this);this.Rd.push(d)}},this);this.g.forEach(function(a){0==a.getState()&&a.load()});0===a&&setTimeout(this.ze.bind(this),0)}};function fi(a,b,c,d){return void 0!==d?(d[0]=a,d[1]=b,d[2]=c,d):[a,b,c]}function gi(a){var b=a[0],c=Array(b),d=1<<b-1,e;for(e=0;e<b;++e){var f=48;a[1]&d&&(f+=1);a[2]&d&&(f+=2);c[e]=String.fromCharCode(f);d>>=1}return c.join("")};function hi(a,b){var c=/\{z\}/g,d=/\{x\}/g,e=/\{y\}/g,f=/\{-y\}/g;return function(g){if(g)return a.replace(c,g[0].toString()).replace(d,g[1].toString()).replace(e,function(){return(-g[2]-1).toString()}).replace(f,function(){var a=b.a?b.a[g[0]]:null;gb(a,55);return(a.ka-a.ha+1+g[2]).toString()})}}function ii(a,b){for(var c=a.length,d=Array(c),e=0;e<c;++e)d[e]=hi(a[e],b);return ji(d)}function ji(a){return 1===a.length?a[0]:function(b,c,d){if(b)return a[Sb((b[1]<<b[0])+b[2],a.length)](b,c,d)}}
function ki(){}function li(a){var b=[],c=/\{([a-z])-([a-z])\}/.exec(a);if(c){var d=c[2].charCodeAt(0),e;for(e=c[1].charCodeAt(0);e<=d;++e)b.push(a.replace(c[0],String.fromCharCode(e)));return b}if(c=c=/\{(\d+)-(\d+)\}/.exec(a)){d=parseInt(c[2],10);for(e=parseInt(c[1],10);e<=d;e++)b.push(a.replace(c[0],e.toString()));return b}b.push(a);return b};function mi(a){this.minZoom=void 0!==a.minZoom?a.minZoom:0;this.b=a.resolutions;gb(id(this.b,function(a,b){return b-a}),17);this.maxZoom=this.b.length-1;this.g=void 0!==a.origin?a.origin:null;this.c=null;void 0!==a.origins&&(this.c=a.origins,gb(this.c.length==this.b.length,20));var b=a.extent;void 0===b||this.g||this.c||(this.g=Bb(b));gb(!this.g&&this.c||this.g&&!this.c,18);this.i=null;void 0!==a.tileSizes&&(this.i=a.tileSizes,gb(this.i.length==this.b.length,19));this.f=void 0!==a.tileSize?a.tileSize:
this.i?null:256;gb(!this.f&&this.i||this.f&&!this.i,22);this.s=void 0!==b?b:null;this.a=null;this.j=[0,0];void 0!==a.sizes?this.a=a.sizes.map(function(a){return new Xc(Math.min(0,a[0]),Math.max(a[0]-1,-1),Math.min(0,a[1]),Math.max(a[1]-1,-1))},this):b&&ni(this,b)}var oi=[0,0,0];k=mi.prototype;k.Xh=function(a,b,c){a=We(this,a,b);for(var d=a.ga,e=a.da;d<=e;++d)for(var f=a.ha,g=a.ka;f<=g;++f)c([b,d,f])};
function hf(a,b,c,d,e){e=a.Ya(b,e);for(b=b[0]-1;b>=a.minZoom;){if(c.call(null,b,We(a,e,b,d)))return!0;--b}return!1}k.D=function(){return this.s};k.uj=function(){return this.maxZoom};k.vj=function(){return this.minZoom};k.kd=function(a){return this.g?this.g:this.c[a]};k.Ra=function(a){return this.b[a]};k.wj=function(){return this.b};function jf(a,b,c,d){return b[0]<a.maxZoom?(d=a.Ya(b,d),We(a,d,b[0]+1,c)):null}
function ef(a,b,c,d){pi(a,b[0],b[1],c,!1,oi);var e=oi[1],f=oi[2];pi(a,b[2],b[3],c,!0,oi);a=oi[1];b=oi[2];void 0!==d?(d.ga=e,d.da=a,d.ha=f,d.ka=b):d=new Xc(e,a,f,b);return d}function We(a,b,c,d){return ef(a,b,a.Ra(c),d)}function Xe(a,b){var c=a.kd(b[0]),d=a.Ra(b[0]);a=ff(a.gb(b[0]),a.j);return[c[0]+(b[1]+.5)*a[0]*d,c[1]+(b[2]+.5)*a[1]*d]}k.Ya=function(a,b){var c=this.kd(a[0]),d=this.Ra(a[0]),e=ff(this.gb(a[0]),this.j),f=c[0]+a[1]*e[0]*d;a=c[1]+a[2]*e[1]*d;return rb(f,a,f+e[0]*d,a+e[1]*d,b)};
k.$e=function(a,b,c){return pi(this,a[0],a[1],b,!1,c)};function pi(a,b,c,d,e,f){var g=a.dd(d),h=d/a.Ra(g),l=a.kd(g);a=ff(a.gb(g),a.j);b=h*Math.floor((b-l[0])/d+(e?.5:0))/a[0];c=h*Math.floor((c-l[1])/d+(e?0:.5))/a[1];e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));return fi(g,b,c,f)}k.yg=function(a,b,c){return pi(this,a[0],a[1],this.Ra(b),!1,c)};k.gb=function(a){return this.f?this.f:this.i[a]};k.dd=function(a,b){return Mb(cd(this.b,a,b||0),this.minZoom,this.maxZoom)};
function ni(a,b){for(var c=a.b.length,d=Array(c),e=a.minZoom;e<c;++e)d[e]=We(a,b,e);a.a=d};function qi(a){var b=a.j;if(!b){b=ri(a);var c=si(b,void 0,void 0);var d=Bb(b);b=new mi({extent:b,origin:d,resolutions:c,tileSize:void 0});a.j=b}return b}function ti(a){var b={};wa(b,void 0!==a?a:{});void 0===b.extent&&(b.extent=Gc("EPSG:3857").D());b.resolutions=si(b.extent,b.maxZoom,b.tileSize);delete b.maxZoom;return new mi(b)}function si(a,b,c){b=void 0!==b?b:42;var d=Fb(a);a=Eb(a);c=ff(void 0!==c?c:256);c=Math.max(a/c[0],d/c[1]);b+=1;d=Array(b);for(a=0;a<b;++a)d[a]=c/Math.pow(2,a);return d}
function ri(a){a=Gc(a);var b=a.D();b||(a=180*kc.degrees/a.dc(),b=rb(-a,-a,a,a));return b};function ui(a){this.b=a.html;this.a=a.tileRanges?a.tileRanges:null}ui.prototype.g=function(){return this.b};function vi(a){Wa.call(this);this.c=Gc(a.projection);this.j=wi(a.attributions);this.C=a.logo;this.Xa=void 0!==a.state?a.state:"ready";this.aa=void 0!==a.wrapX?a.wrapX:!1}v(vi,Wa);function wi(a){if("string"===typeof a)return[new ui({html:a})];if(a instanceof ui)return[a];if(Array.isArray(a)){for(var b=a.length,c=Array(b),d=0;d<b;d++){var e=a[d];c[d]="string"===typeof e?new ui({html:e}):e}return c}return null}k=vi.prototype;k.Ga=ua;k.Ea=function(){return this.j};k.Ca=function(){return this.C};
k.Fa=function(){return this.c};k.getState=function(){return this.Xa};k.Aa=function(){this.u()};k.za=function(a){this.j=wi(a);this.u()};function xi(a,b){a.Xa=b;a.u()};function yi(a){vi.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.na=void 0!==a.opaque?a.opaque:!1;this.Ua=void 0!==a.tilePixelRatio?a.tilePixelRatio:1;this.tileGrid=void 0!==a.tileGrid?a.tileGrid:null;this.a=new Xh(a.cacheSize);this.l=[0,0];this.Kc=""}v(yi,vi);k=yi.prototype;k.lj=function(){return Yh(this.a)};k.Bd=function(a,b){(a=this.me(a))&&a.Bd(b)};
function Oe(a,b,c,d,e){b=a.me(b);if(!b)return!1;for(var f=!0,g,h,l=d.ga;l<=d.da;++l)for(var m=d.ha;m<=d.ka;++m)g=a.cc(c,l,m),h=!1,b.b.hasOwnProperty(g)&&(g=b.get(g),(h=2===g.getState())&&(h=!1!==e(g))),h||(f=!1);return f}k.rg=function(){return 0};function zi(a,b){a.Kc!==b&&(a.Kc=b,a.u())}k.cc=function(a,b,c){return a+"/"+b+"/"+c};k.vg=function(){return this.na};k.fb=function(){return this.tileGrid};k.Ob=function(a){return this.tileGrid?this.tileGrid:qi(a)};
k.me=function(a){var b=this.c;return b&&!Pc(b,a)?null:this.a};k.vb=function(){return this.Ua};k.ne=function(a,b,c){c=this.Ob(c);b=this.vb(b);a=ff(c.gb(a),this.l);return 1==b?a:Ph(a,b,this.l)};function Ai(a,b,c){var d=void 0!==c?c:a.c;c=a.Ob(d);if(a.aa&&d.g){var e=b;b=e[0];a=Xe(c,e);d=ri(d);nb(d,a)?b=e:(e=Eb(d),a[0]+=e*Math.ceil((d[0]-a[0])/e),b=c.yg(a,b))}e=b[0];d=b[1];a=b[2];if(c.minZoom>e||e>c.maxZoom)c=!1;else{var f=c.D();c=(c=f?We(c,f,e):c.a?c.a[e]:null)?Yc(c,d,a):!0}return c?b:null}
k.Aa=function(){this.a.clear();this.u()};k.xh=ua;function Bi(a,b){Na.call(this,a);this.tile=b}v(Bi,Na);function Ci(a){yi.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tilePixelRatio:a.tilePixelRatio,wrapX:a.wrapX});this.tileLoadFunction=a.tileLoadFunction;this.tileUrlFunction=this.Yc?this.Yc.bind(this):ki;this.urls=null;a.urls?this.jb(a.urls):a.url&&this.pb(a.url);a.tileUrlFunction&&this.ib(a.tileUrlFunction)}v(Ci,yi);k=Ci.prototype;k.ub=function(){return this.tileLoadFunction};
k.wb=function(){return this.tileUrlFunction};k.xb=function(){return this.urls};k.mj=function(a){a=a.target;switch(a.getState()){case 1:this.b(new Bi("tileloadstart",a));break;case 2:this.b(new Bi("tileloadend",a));break;case 3:this.b(new Bi("tileloaderror",a))}};k.Bb=function(a){this.a.clear();this.tileLoadFunction=a;this.u()};k.ib=function(a,b){this.tileUrlFunction=a;"undefined"!==typeof b?zi(this,b):this.u()};
k.pb=function(a){var b=this.urls=li(a);this.ib(this.Yc?this.Yc.bind(this):ii(b,this.tileGrid),a)};k.jb=function(a){this.urls=a;var b=a.join("\n");this.ib(this.Yc?this.Yc.bind(this):ii(a,this.tileGrid),b)};k.xh=function(a,b,c){a=this.cc(a,b,c);this.a.b.hasOwnProperty(a)&&this.a.get(a)};function A(a){Ci.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction?a.tileLoadFunction:Di,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,wrapX:a.wrapX});this.crossOrigin=void 0!==a.crossOrigin?a.crossOrigin:null;this.tileClass=void 0!==a.tileClass?a.tileClass:Uh;this.f={};this.s={};this.wa=a.reprojectionErrorThreshold;
this.G=!1}v(A,Ci);k=A.prototype;k.lj=function(){if(Yh(this.a))return!0;for(var a in this.f)if(Yh(this.f[a]))return!0;return!1};k.Bd=function(a,b){a=this.me(a);this.a.Bd(this.a==a?b:{});for(var c in this.f){var d=this.f[c];d.Bd(d==a?b:{})}};k.rg=function(a){return this.c&&a&&!Pc(this.c,a)?0:this.sg()};k.sg=function(){return 0};k.vg=function(a){return this.c&&a&&!Pc(this.c,a)?!1:Ci.prototype.vg.call(this,a)};
k.Ob=function(a){var b=this.c;return!this.tileGrid||b&&!Pc(b,a)?(b=x(a).toString(),b in this.s||(this.s[b]=qi(a)),this.s[b]):this.tileGrid};k.me=function(a){var b=this.c;if(!b||Pc(b,a))return this.a;a=x(a).toString();a in this.f||(this.f[a]=new Xh(this.a.highWaterMark));return this.f[a]};function Ei(a,b,c,d,e,f,g){b=[b,c,d];e=(c=Ai(a,b,f))?a.tileUrlFunction(c,e,f):void 0;e=new a.tileClass(b,void 0!==e?0:4,void 0!==e?e:"",a.crossOrigin,a.tileLoadFunction);e.key=g;y(e,"change",a.mj,a);return e}
k.cd=function(a,b,c,d,e){if(this.c&&e&&!Pc(this.c,e)){var f=this.me(e);c=[a,b,c];var g;a=this.cc.apply(this,c);f.b.hasOwnProperty(a)&&(g=f.get(a));b=this.Kc;if(g&&g.key==b)return g;var h=this.c,l=this.Ob(h),m=this.Ob(e),n=Ai(this,c,e);d=new ei(h,l,e,m,c,n,this.vb(d),this.sg(),function(a,b,c,d){return Fi(this,a,b,c,d,h)}.bind(this),this.wa,this.G);d.key=b;g?(d.a=g,f.replace(a,d)):f.set(a,d);return d}return Fi(this,a,b,c,d,e)};
function Fi(a,b,c,d,e,f){var g=a.cc(b,c,d),h=a.Kc;if(a.a.b.hasOwnProperty(g)){var l=a.a.get(g);if(l.key!=h){var m=l;l=Ei(a,b,c,d,e,f,h);0==m.getState()?l.a=m.a:l.a=m;if(l.a){b=l.a;c=l;do{if(2==b.getState()){b.a=null;break}else 1==b.getState()?c=b:0==b.getState()?c.a=b.a:c=b;b=c.a}while(b)}a.a.replace(g,l)}}else l=Ei(a,b,c,d,e,f,h),a.a.set(g,l);return l}k.Ub=function(a){if(this.G!=a){this.G=a;for(var b in this.f)this.f[b].clear();this.u()}};
k.Vb=function(a,b){if(a=Gc(a))a=x(a).toString(),a in this.s||(this.s[a]=b)};function Di(a,b){a.W().src=b};function Gi(a,b){this.b=a;this.a=null;this.o=b||null;this.f=!1;if(a=this.b.get("olcs.proxy"))"function"===typeof a?this.c={getURL:a}:"string"===typeof a&&(this.c=new Cesium.DefaultProxy(a));this.l=new Cesium.Event;this.g=document.createElement("canvas");this.g.width=1;this.g.height=1;this.b.H("change",function(){Hi(this)},this);Hi(this)}
Object.defineProperties(Gi.prototype,{ready:{get:function(){return this.f}},rectangle:{get:function(){return this.s}},tileWidth:{get:function(){var a=this.b.tileGrid;return a?a.gb(0):256}},tileHeight:{get:function(){return this.tileWidth}},maximumLevel:{get:function(){var a=this.b.tileGrid;return a?a.maxZoom:18}},minimumLevel:{get:function(){return 0}},tilingScheme:{get:function(){return this.i}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this.l}},credit:{get:function(){return this.j}},
proxy:{get:function(){return this.c}},hasAlphaChannel:{get:function(){return!0}},pickFeatures:{get:function(){}}});function Hi(a){if(!a.f&&"ready"==a.b.getState()){var b=a.b.c;a.a=b?b:a.o;if(a.a==Gc("EPSG:4326"))a.i=new Cesium.GeographicTilingScheme;else if(a.a==Gc("EPSG:3857"))a.i=new Cesium.WebMercatorTilingScheme;else return;a.s=a.i.rectangle;a.j=Ii(a.b)||void 0;a.f=!0}}
function Ii(a){var b="",c=a.j;c&&c.forEach(function(a){b+=a.b.replace(/<\/?[^>]+(>|$)/g,"")+" "});if(0==b.length&&(a=a.C))if("string"==typeof a)var d=a;else{d=a.src;var e=a.href}return d||0<b.length?new Cesium.Credit(b,d,e):null}Gi.prototype.getTileCredits=function(){};Gi.prototype.getTileCredits=Gi.prototype.getTileCredits;
Gi.prototype.requestImage=function(a,b,c){var d=this.b.tileUrlFunction;return d&&this.a?(a=d.call(this.b,[this.i instanceof Cesium.GeographicTilingScheme?c+1:c,a,-b-1],1,this.a),this.c&&(a=this.c.cs(a)),a?Cesium.ImageryProvider.loadImage(this,a):this.g):this.g};Gi.prototype.requestImage=Gi.prototype.requestImage;function Ji(a,b,c,d,e){function f(){var e=Date.now()-t;e=m(g(e/l,0,1));a.transform.clone(q);var h=(e-p)*b;p=e;a.lookAtTransform(d);a.rotate(c,h);a.lookAtTransform(q);1>e?window.requestAnimationFrame(f):n&&n()}var g=Cesium.Math.clamp,h=Cesium.defaultValue;e=e||{};var l=h(e.duration,500),m=h(e.easing,Ki),n=e.callback,p=0,q=new Cesium.Matrix4,t=Date.now();window.requestAnimationFrame(f)}function Li(a,b){var c=a.camera.getPickRay(b);return a.globe.pick(c,a)||a.camera.pickEllipsoid(b)}
function Mi(a){var b=a.canvas;b=new Cesium.Cartesian2(b.clientWidth/2,b.clientHeight/2);return Li(a,b)}function Ni(a,b,c){var d=new Cesium.Cartesian3,e=new Cesium.Cartesian3,f=new Cesium.Cartesian3;Cesium.Cartesian3.normalize(a,d);Cesium.Cartesian3.normalize(b,e);Cesium.Cartesian3.cross(d,e,f);a=Cesium.Cartesian3.dot(d,e);b=Cesium.Cartesian3.magnitude(f);c=Cesium.Cartesian3.dot(c,f);f=Math.atan2(b,a);return 0<=c?f:-f}
function Oi(a,b){var c=a.camera,d=c.frustum.fovy/2;a=a.camera;var e=a.direction,f=Cesium.Quaternion.fromAxisAngle(a.right,a.frustum.fovy/2);f=Cesium.Matrix3.fromQuaternion(f);var g=new Cesium.Cartesian3;Cesium.Matrix3.multiplyByVector(f,e,g);a=new Cesium.Ray(a.position,g);a=Cesium.Cartesian3.clone(a.direction);Cesium.Cartesian3.negate(a,a);e=new Cesium.Cartesian3;Cesium.Ellipsoid.WGS84.geocentricSurfaceNormal(b,e);b=new Cesium.Cartesian3;Cesium.Cartesian3.negate(c.right,b);return Ni(e,a,b)+d}
function Pi(a,b,c){c&&(c=c.getHeight(b),b.height=c||0);c=Cesium.Ellipsoid.WGS84;b=c.cartographicToCartesian(b);var d=a.position,e=new Cesium.Cartesian3;c.geocentricSurfaceNormal(d,e);a.lookAt(d,b,e)}function Qi(a,b){return a&&b?(a=Tc(a,b,"EPSG:4326"),Cesium.Rectangle.fromDegrees(a[0],a[1],a[2],a[3])):null}
function Ri(a,b){if(!(a instanceof Sh))return null;var c=a.ba();if(c instanceof A){var d=c.c;if(!d)d=b;else if(d!==b)return null;var e=d===Gc("EPSG:3857");d=d===Gc("EPSG:4326");if(e||d)c=new Gi(c,b);else return null}else return null;e={};(a=a.D())&&b&&(e.rectangle=Qi(a,b));return new Cesium.ImageryLayer(c,e)}function Si(a,b){var c=a.La();void 0!==c&&(b.alpha=c);a=a.lb();void 0!==a&&(b.show=a)}
function Ti(a){return 2<a.length?Cesium.Cartesian3.fromDegrees(a[0],a[1],a[2]):Cesium.Cartesian3.fromDegrees(a[0],a[1])}function Ui(a){for(var b=[],c=0;c<a.length;++c)b.push(Ti(a[c]));return b}function Vi(a,b){var c=Gc("EPSG:4326");b=Gc(b);if(b!==c){var d=a.L();a=a.clone();a.transform(b,c);a.J(d)}return a}
function Wi(a){a=a||"black";if(Array.isArray(a))return new Cesium.Color(Cesium.Color.byteToFloat(a[0]),Cesium.Color.byteToFloat(a[1]),Cesium.Color.byteToFloat(a[2]),a[3]);if("string"==typeof a)return Cesium.Color.fromCssColorString(a);qa("impossible")};function Xi(a,b){this.f=a;this.a=a.camera;this.R=b;this.l=this.b=null;this.c=this.g=Yi;this.i=this.j=0;this.s=null;this.o=!1;this.R.H("change:view",function(){Zi(this,this.R.Z())},this);Zi(this,this.R.Z())}function Yi(a,b,c){c=c||a.length;if(b)for(var d=0;d<c;++d)b[d]=a[d];return a}function Zi(a,b){a.b&&(Ta(a.l),a.l=null);if(a.b=b){var c=Qc(b.c,"EPSG:4326"),d=Qc("EPSG:4326",b.c);a.g=c;a.c=d;a.l=y(b,"propertychange",a.Nm,a);a.we()}else a.g=Yi,a.c=Yi}k=Xi.prototype;k.Nm=function(){this.o||this.we()};
k.lr=function(a){this.b&&this.b.gd(a)};k.Mp=function(){if(this.b)return this.b.Qa()||0};k.xr=function(a){this.j=a;$i(this)};k.fm=function(){return this.j};k.Pp=function(a){this.i=a;$i(this);this.td()};k.Lp=function(){return this.i};k.cb=function(a){this.b&&this.b.cb(a)};k.va=function(){if(this.b)return this.b.va()};k.Qp=function(a){this.g&&(a=this.g(a),a=new Cesium.Cartographic(Rb(a[0]),Rb(a[1]),this.yj()),this.a.position=Cesium.Ellipsoid.WGS84.cartographicToCartesian(a),this.td())};
k.Np=function(){if(this.c){var a=Cesium.Ellipsoid.WGS84.cartesianToCartographic(this.a.position);return this.c([180*a.longitude/Math.PI,180*a.latitude/Math.PI])}};k.fr=function(a){var b=Cesium.Ellipsoid.WGS84.cartesianToCartographic(this.a.position);b.height=a;this.a.position=Cesium.Ellipsoid.WGS84.cartographicToCartesian(b);this.td()};k.yj=function(){return Cesium.Ellipsoid.WGS84.cartesianToCartographic(this.a.position).height};
k.Op=function(a){this.g&&(a=this.g(a),a=Cesium.Cartographic.fromDegrees(a[0],a[1]),Pi(this.a,a,this.f.globe),this.td())};function $i(a){if(a.b&&a.g){var b=a.b.va();if(b){b=a.g(b);b=new Cesium.Cartographic(Rb(b[0]),Rb(b[1]));if(a.f.globe){var c=a.f.globe.getHeight(b);b.height=c||0}b=Cesium.Ellipsoid.WGS84.cartographicToCartesian(b);c={pitch:a.j-Cesium.Math.PI_OVER_TWO,heading:-a.b.Qa(),roll:void 0};a.a.setView({destination:b,orientation:c});a.a.moveBackward(a.i);aj(a,!0)}}}
k.we=function(){if(this.b&&this.g){var a=this.b.va();void 0!==a&&null!==a&&(a=this.g(a),this.i=(this.b.Ia()||0)*this.f.canvas.clientHeight*this.b.c.dc()*Math.cos(Math.abs(Rb(a[1])))/2/Math.tan(this.a.frustum.fovy/2),$i(this))}};
k.td=function(){if(this.b&&this.c){this.o=!0;var a=Cesium.Ellipsoid.WGS84,b=this.f,c=Mi(b),d=c;d||(d=b.globe,b=this.a.positionCartographic.clone(),d=d.getHeight(b),b.height=d||0,d=Cesium.Ellipsoid.WGS84.cartographicToCartesian(b));this.i=Cesium.Cartesian3.distance(d,this.a.position);b=a.cartesianToCartographic(d);this.b.cb(this.c([180*b.longitude/Math.PI,180*b.latitude/Math.PI]));this.b.Uc(2*this.i*Math.tan(this.a.frustum.fovy/2)/this.b.c.dc()/Math.cos(Math.abs(b?b.latitude:0))/this.f.canvas.clientHeight);
if(c){d=this.a.position;b=new Cesium.Cartesian3;a.geocentricSurfaceNormal(c,b);a=new Cesium.Cartesian3;Cesium.Cartesian3.subtract(d,c,a);Cesium.Cartesian3.normalize(a,a);d=this.a.up;var e=this.a.right,f=new Cesium.Cartesian3(-c.y,c.x,0);e=Cesium.Cartesian3.angleBetween(e,f);c=Cesium.Cartesian3.cross(c,d,new Cesium.Cartesian3).z;this.b.gd(0>c?e:-e);c=Math.acos(Cesium.Cartesian3.dot(b,a));this.j=isNaN(c)?0:c}else this.b.gd(this.a.heading),this.j=-this.a.pitch+Math.PI/2;this.o=!1}};
function aj(a,b){var c=a.s,d=a.a.viewMatrix;c&&Cesium.Matrix4.equalsEpsilon(c,d,1E-5)||(a.s=d.clone(),!0!==b&&a.td())};function bj(a){this.ta=a.opacity;this.j=a.rotateWithView;this.i=a.rotation;this.G=a.scale;this.l=a.snapToPixel}k=bj.prototype;k.La=function(){return this.ta};k.zf=function(){return this.j};k.Af=function(){return this.i};k.Ma=function(){return this.G};k.Ze=function(){return this.l};k.Kd=function(a){this.ta=a};k.Bf=function(a){this.i=a};k.Ld=function(a){this.G=a};function cj(a){this.I=this.o=this.c=null;this.$a=void 0!==a.fill?a.fill:null;this.B=[0,0];this.b=a.points;this.a=void 0!==a.radius?a.radius:a.radius1;this.g=void 0!==a.radius2?a.radius2:this.a;this.f=void 0!==a.angle?a.angle:0;this.eb=void 0!==a.stroke?a.stroke:null;this.C=this.ea=this.v=null;this.s=a.atlasManager;dj(this,this.s);bj.call(this,{opacity:1,rotateWithView:void 0!==a.rotateWithView?a.rotateWithView:!1,rotation:void 0!==a.rotation?a.rotation:0,scale:1,snapToPixel:void 0!==a.snapToPixel?
a.snapToPixel:!0})}v(cj,bj);k=cj.prototype;k.clone=function(){var a=new cj({fill:this.qa()?this.qa().clone():void 0,points:this.g!==this.a?this.b/2:this.b,radius:this.a,radius2:this.g,angle:this.f,snapToPixel:this.l,stroke:this.pa()?this.pa().clone():void 0,rotation:this.i,rotateWithView:this.j,atlasManager:this.s});a.Kd(this.La());a.Ld(this.Ma());return a};k.Gc=function(){return this.v};k.qj=function(){return this.f};k.qa=function(){return this.$a};k.Qg=function(){return this.I};k.W=function(){return this.o};
k.Ye=function(){return this.C};k.yf=function(){return 2};k.jd=function(){return this.B};k.rj=function(){return this.b};k.sj=function(){return this.a};k.gi=function(){return this.g};k.gc=function(){return this.ea};k.pa=function(){return this.eb};k.oi=function(){};k.load=function(){};k.hk=function(){};
function dj(a,b){var c="",d="",e=0,f=null,g=0;if(a.eb){var h=a.eb.b;null===h&&(h=Fd);h=Nd(h);g=a.eb.c;void 0===g&&(g=1);f=a.eb.g;de||(f=null);d=a.eb.j;void 0===d&&(d="round");c=a.eb.i;void 0===c&&(c="round");e=a.eb.l;void 0===e&&(e=10)}var l=2*(a.a+g)+1;c={strokeStyle:h,strokeWidth:g,size:l,lineCap:c,lineDash:f,lineJoin:d,miterLimit:e};if(void 0===b){var m=kd(l,l);a.o=m.canvas;b=l=a.o.width;a.Uh(c,m,0,0);a.$a?a.I=a.o:(m=kd(c.size,c.size),a.I=m.canvas,a.Th(c,m,0,0))}else l=Math.round(l),(d=!a.$a)&&
(m=a.Th.bind(a,c)),a.eb?(e=a.eb,void 0===e.a&&(e.a="s",e.a=e.b?"string"===typeof e.b?e.a+e.b:e.a+x(e.b).toString():e.a+"-",e.a+=","+(void 0!==e.i?e.i.toString():"-")+","+(e.g?e.g.toString():"-")+","+(void 0!==e.f?e.f:"-")+","+(void 0!==e.j?e.j:"-")+","+(void 0!==e.l?e.l.toString():"-")+","+(void 0!==e.c?e.c.toString():"-")),e=e.a):e="-",a.$a?(f=a.$a,void 0===f.a&&(f.a=f.b instanceof CanvasPattern||f.b instanceof CanvasGradient?x(f.b).toString():"f"+(f.b?Ld(f.b):"-")),f=f.a):f="-",a.c&&e==a.c[1]&&
f==a.c[2]&&a.a==a.c[3]&&a.g==a.c[4]&&a.f==a.c[5]&&a.b==a.c[6]||(a.c=["r"+e+f+(void 0!==a.a?a.a.toString():"-")+(void 0!==a.g?a.g.toString():"-")+(void 0!==a.f?a.f.toString():"-")+(void 0!==a.b?a.b.toString():"-"),e,f,a.a,a.g,a.f,a.b]),m=b.add(a.c[0],l,l,a.Uh.bind(a,c),m),a.o=m.image,a.B=[m.offsetX,m.offsetY],b=m.image.width,a.I=d?m.Pm:a.o;a.v=[l/2,l/2];a.ea=[l,l];a.C=[b,b]}
k.Uh=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();if(Infinity===this.b)b.arc(a.size/2,a.size/2,this.a,0,2*Math.PI,!0);else for(this.g!==this.a&&(this.b*=2),c=0;c<=this.b;c++){d=2*c*Math.PI/this.b-Math.PI/2+this.f;var e=0===c%2?this.a:this.g;b.lineTo(a.size/2+e*Math.cos(d),a.size/2+e*Math.sin(d))}this.$a&&(c=this.$a.b,null===c&&(c=Dd),b.fillStyle=Nd(c),b.fill());this.eb&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.strokeWidth,a.lineDash&&b.setLineDash(a.lineDash),b.lineCap=
a.lineCap,b.lineJoin=a.lineJoin,b.miterLimit=a.miterLimit,b.stroke());b.closePath()};
k.Th=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();if(Infinity===this.b)b.arc(a.size/2,a.size/2,this.a,0,2*Math.PI,!0);else for(this.g!==this.a&&(this.b*=2),c=0;c<=this.b;c++){var e=2*c*Math.PI/this.b-Math.PI/2+this.f;d=0===c%2?this.a:this.g;b.lineTo(a.size/2+d*Math.cos(e),a.size/2+d*Math.sin(e))}b.fillStyle=Dd;b.fill();this.eb&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.strokeWidth,a.lineDash&&b.setLineDash(a.lineDash),b.stroke());b.closePath()};function ej(a){a=a||{};cj.call(this,{points:Infinity,fill:a.fill,radius:a.radius,snapToPixel:a.snapToPixel,stroke:a.stroke,atlasManager:a.atlasManager})}v(ej,cj);ej.prototype.clone=function(){var a=new ej({fill:this.qa()?this.qa().clone():void 0,stroke:this.pa()?this.pa().clone():void 0,radius:this.a,snapToPixel:this.l,atlasManager:this.s});a.Kd(this.La());a.Ld(this.Ma());return a};ej.prototype.qd=function(a){this.a=a;dj(this,this.s)};function fj(a){a=a||{};this.b=void 0!==a.color?a.color:null;this.a=void 0}fj.prototype.clone=function(){var a=this.b;return new fj({color:a&&a.slice?a.slice():a||void 0})};fj.prototype.g=function(){return this.b};fj.prototype.c=function(a){this.b=a;this.a=void 0};function gj(a){a=a||{};this.Zc=null;this.Va=hj;void 0!==a.geometry&&this.Wa(a.geometry);this.$a=void 0!==a.fill?a.fill:null;this.O=void 0!==a.image?a.image:null;this.eb=void 0!==a.stroke?a.stroke:null;this.Ja=void 0!==a.text?a.text:null;this.lk=a.zIndex}k=gj.prototype;
k.clone=function(){var a=this.V();a&&a.clone&&(a=a.clone());return new gj({geometry:a,fill:this.qa()?this.qa().clone():void 0,image:this.W()?this.W().clone():void 0,stroke:this.pa()?this.pa().clone():void 0,text:this.ra()?this.ra().clone():void 0,zIndex:this.Da()})};k.V=function(){return this.Zc};k.El=function(){return this.Va};k.qa=function(){return this.$a};k.Kf=function(a){this.$a=a};k.W=function(){return this.O};k.rh=function(a){this.O=a};k.pa=function(){return this.eb};
k.Lf=function(a){this.eb=a};k.ra=function(){return this.Ja};k.Mf=function(a){this.Ja=a};k.Da=function(){return this.lk};k.Wa=function(a){"function"===typeof a?this.Va=a:"string"===typeof a?this.Va=function(b){return b.get(a)}:a?void 0!==a&&(this.Va=function(){return a}):this.Va=hj;this.Zc=a};k.jc=function(a){this.lk=a};function ij(a){if("function"!==typeof a){if(Array.isArray(a))var b=a;else gb(a instanceof gj,41),b=[a];a=function(){return b}}return a}var jj=null;
function kj(){if(!jj){var a=new fj({color:"rgba(255,255,255,0.4)"}),b=new Jg({color:"#3399CC",width:1.25});jj=[new gj({image:new ej({fill:a,stroke:b,radius:5}),fill:a,stroke:b})]}return jj}
function lj(){var a={},b=[255,255,255,1],c=[0,153,255,1];a.Polygon=[new gj({fill:new fj({color:[255,255,255,.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new gj({stroke:new Jg({color:b,width:5})}),new gj({stroke:new Jg({color:c,width:3})})];a.MultiLineString=a.LineString;a.Circle=a.Polygon.concat(a.LineString);a.Point=[new gj({image:new ej({radius:6,fill:new fj({color:c}),stroke:new Jg({color:b,width:1.5})}),zIndex:Infinity})];a.MultiPoint=a.Point;a.GeometryCollection=a.Polygon.concat(a.LineString,
a.Point);return a}function hj(a){return a.V()};function E(a){Wa.call(this);this.a=void 0;this.c="geometry";this.f=null;this.j=void 0;this.i=null;y(this,Ya(this.c),this.cf,this);void 0!==a&&(a instanceof Od||!a?this.Wa(a):this.J(a))}v(E,Wa);k=E.prototype;k.clone=function(){var a=new E(this.L());a.pd(this.c);var b=this.V();b&&a.Wa(b.clone());(b=this.f)&&a.Hg(b);return a};k.V=function(){return this.get(this.c)};k.pn=function(){return this.a};k.Fl=function(){return this.c};k.qn=function(){return this.f};k.Nc=function(){return this.j};k.pm=function(){this.u()};
k.cf=function(){this.i&&(Ca(this.i),this.i=null);var a=this.V();a&&(this.i=y(a,"change",this.pm,this));this.u()};k.Wa=function(a){this.set(this.c,a)};k.Hg=function(a){this.j=(this.f=a)?mj(a):void 0;this.u()};k.xc=function(a){this.a=a;this.u()};k.pd=function(a){Ja(this,Ya(this.c),this.cf,this);this.c=a;y(this,Ya(this.c),this.cf,this);this.cf()};
function mj(a){var b;if("function"===typeof a)2==a.length?b=function(b){return a(this,b)}:b=a;else{if(Array.isArray(a))var c=a;else gb(a instanceof gj,41),c=[a];b=function(){return c}}return b};var nj=void 0,oj=void 0;function pj(){if(void 0===nj){var a=document.createElement("canvas");a.setAttribute("style","image-rendering: -moz-crisp-edges;image-rendering: pixelated;");a=a.style.imageRendering;(nj=!!a)&&(oj=a)}return nj};var qj=document.implementation.createDocument("","",null);function rj(a,b){return qj.createElementNS(a,b)}function sj(a,b){return tj(a,b,[]).join("")}function tj(a,b,c){if(a.nodeType==Node.CDATA_SECTION_NODE||a.nodeType==Node.TEXT_NODE)b?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;a;a=a.nextSibling)tj(a,b,c);return c}function uj(a){return a instanceof Document}function vj(a){return a instanceof Node}
function wj(a){return(new DOMParser).parseFromString(a,"application/xml")}function xj(a,b){return function(c,d){c=a.call(b,c,d);void 0!==c&&dd(d[d.length-1],c)}}function yj(a,b){return function(c,d){c=a.call(void 0!==b?b:this,c,d);void 0!==c&&d[d.length-1].push(c)}}function zj(a,b){return function(c,d){c=a.call(void 0!==b?b:this,c,d);void 0!==c&&(d[d.length-1]=c)}}
function Aj(a,b){return function(c,d){var e=a.call(this,c,d);if(void 0!==e){d=d[d.length-1];c=void 0!==b?b:c.localName;var f;c in d?f=d[c]:f=d[c]=[];f.push(e)}}}function F(a,b){return function(c,d){var e=a.call(this,c,d);void 0!==e&&(d[d.length-1][void 0!==b?b:c.localName]=e)}}function G(a,b){return function(c,d,e){a.call(void 0!==b?b:this,c,d,e);e[e.length-1].node.appendChild(c)}}
function Bj(a){var b,c;return function(d,e,f){if(void 0===b){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=Cj(d.localName)}Dj(b,c,e,f)}}function Cj(a,b){return function(c,d,e){c=d[d.length-1].node;d=a;void 0===d&&(d=e);e=b;void 0===b&&(e=c.namespaceURI);return rj(e,d)}}var Ej=Cj();function Fj(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}function H(a,b,c){c=void 0!==c?c:{};var d;var e=0;for(d=a.length;e<d;++e)c[a[e]]=b;return c}
function Gj(a,b,c,d){for(b=b.firstElementChild;b;b=b.nextElementSibling){var e=a[b.namespaceURI];void 0!==e&&(e=e[b.localName],void 0!==e&&e.call(d,b,c))}}function I(a,b,c,d,e){d.push(a);Gj(b,c,d,e);return d.pop()}function Dj(a,b,c,d,e,f){for(var g=(void 0!==e?e:c).length,h,l,m=0;m<g;++m)h=c[m],void 0!==h&&(l=b.call(f,h,d,void 0!==e?e[m]:void 0),void 0!==l&&a[l.namespaceURI][l.localName].call(f,l,h,d))}function Hj(a,b,c,d,e,f,g){e.push(a);Dj(b,c,d,e,f,g);e.pop()};function Ij(a,b,c,d){return function(e,f,g){var h=new XMLHttpRequest;h.open("GET","function"===typeof a?a(e,f,g):a,!0);"arraybuffer"==b.T()&&(h.responseType="arraybuffer");h.onload=function(){if(!h.status||200<=h.status&&300>h.status){var a=b.T();if("json"==a||"text"==a)var e=h.responseText;else"xml"==a?(e=h.responseXML)||(e=wj(h.responseText)):"arraybuffer"==a&&(e=h.response);e?c.call(this,b.Oa(e,{featureProjection:g}),b.hb(e)):d.call(this)}else d.call(this)}.bind(this);h.onerror=function(){d.call(this)}.bind(this);
h.send()}}function Jj(a,b){return Ij(a,b,function(a){this.yd(a)},ua)};function Kj(){return[[-Infinity,-Infinity,Infinity,Infinity]]};function J(a){a=a||{};vi.call(this,{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready",wrapX:void 0!==a.wrapX?a.wrapX:!0});this.$=ua;this.X=a.format;this.Ua=void 0==a.overlaps?!0:a.overlaps;this.la=a.url;void 0!==a.loader?this.$=a.loader:void 0!==this.la&&(gb(this.X,7),this.$=Jj(this.la,this.X));this.rb=void 0!==a.strategy?a.strategy:Kj;var b=void 0!==a.useSpatialIndex?a.useSpatialIndex:!0;this.a=b?new Wg:null;this.wa=new Wg;this.f={};this.l={};this.o={};this.s={};this.i=null;
if(a.features instanceof bb){var c=a.features;var d=c.a}else Array.isArray(a.features)&&(d=a.features);b||void 0!==c||(c=new bb(d));void 0!==d&&Lj(this,d);void 0!==c&&Mj(this,c)}v(J,vi);k=J.prototype;k.Eb=function(a,b){var c=x(a).toString();if(Nj(this,c,a)){Oj(this,c,a);var d=a.V();d?(c=d.D(),this.a&&this.a.Ha(c,a)):this.f[c]=a;this.b(new Pj("addfeature",a))}b||this.u()};function Oj(a,b,c){a.s[b]=[y(c,"change",a.pj,a),y(c,"propertychange",a.pj,a)]}
function Nj(a,b,c){var d=!0,e=c.a;void 0!==e?e.toString()in a.l?d=!1:a.l[e.toString()]=c:(gb(!(b in a.o),30),a.o[b]=c);return d}k.yd=function(a){Lj(this,a);this.u()};function Lj(a,b){var c,d=[],e=[],f=[];var g=0;for(c=b.length;g<c;g++){var h=b[g];var l=x(h).toString();Nj(a,l,h)&&e.push(h)}g=0;for(c=e.length;g<c;g++)h=e[g],l=x(h).toString(),Oj(a,l,h),(b=h.V())?(l=b.D(),d.push(l),f.push(h)):a.f[l]=h;a.a&&a.a.load(d,f);g=0;for(c=e.length;g<c;g++)a.b(new Pj("addfeature",e[g]))}
function Mj(a,b){var c=!1;y(a,"addfeature",function(a){c||(c=!0,b.push(a.feature),c=!1)});y(a,"removefeature",function(a){c||(c=!0,b.remove(a.feature),c=!1)});y(b,"add",function(a){c||(c=!0,this.Eb(a.element),c=!1)},a);y(b,"remove",function(a){c||(c=!0,this.Ib(a.element),c=!1)},a);a.i=b}
k.clear=function(a){if(a){for(var b in this.s)this.s[b].forEach(Ca);this.i||(this.s={},this.l={},this.o={})}else if(this.a){this.a.forEach(this.jh,this);for(var c in this.f)this.jh(this.f[c])}this.i&&this.i.clear();this.a&&this.a.clear();this.wa.clear();this.f={};this.b(new Pj("clear"));this.u()};k.Vh=function(a,b){if(this.a)return this.a.forEach(a,b);if(this.i)return this.i.forEach(a,b)};function Qj(a,b,c){a.oc([b[0],b[1],b[0],b[1]],function(a){if(a.V().yb(b))return c.call(void 0,a)})}
k.oc=function(a,b,c){if(this.a)return ah(this.a,a,b,c);if(this.i)return this.i.forEach(b,c)};k.Wh=function(a,b,c){return this.oc(a,function(d){if(d.V().bb(a)&&(d=b.call(c,d)))return d})};k.ci=function(){return this.i};k.Rc=function(){if(this.i)var a=this.i.a;else this.a&&(a=Yg(this.a),Aa(this.f)||dd(a,za(this.f)));return a};k.bi=function(a){var b=[];Qj(this,a,function(a){b.push(a)});return b};k.qg=function(a){return Zg(this.a,a)};
k.Zh=function(a,b){var c=a[0],d=a[1],e=null,f=[NaN,NaN],g=Infinity,h=[-Infinity,-Infinity,Infinity,Infinity],l=b?b:Ad;ah(this.a,h,function(a){if(l(a)){var b=a.V(),m=g;g=b.Lb(c,d,f,g);g<m&&(e=a,a=Math.sqrt(g),h[0]=c-a,h[1]=d-a,h[2]=c+a,h[3]=d+a)}});return e};k.D=function(a){return this.a.D(a)};k.pg=function(a){a=this.l[a.toString()];return void 0!==a?a:null};k.nj=function(){return this.X};k.oj=function(){return this.la};
k.pj=function(a){a=a.target;var b=x(a).toString(),c=a.V();c?(c=c.D(),b in this.f?(delete this.f[b],this.a&&this.a.Ha(c,a)):this.a&&Xg(this.a,c,a)):b in this.f||(this.a&&this.a.remove(a),this.f[b]=a);c=a.a;void 0!==c?(c=c.toString(),b in this.o?(delete this.o[b],this.l[c]=a):this.l[c]!==a&&(Rj(this,a),this.l[c]=a)):b in this.o||(Rj(this,a),this.o[b]=a);this.u();this.b(new Pj("changefeature",a))};
k.qe=function(a,b,c){var d=this.wa;a=this.rb(a,b);var e;var f=0;for(e=a.length;f<e;++f){var g=a[f];ah(d,g,function(a){return pb(a.extent,g)})||(this.$.call(this,g,b,c),d.Ha(g,{extent:g.slice()}))}};k.Ib=function(a,b){var c=x(a).toString();c in this.f?delete this.f[c]:this.a&&this.a.remove(a);this.jh(a);b||this.u()};k.jh=function(a){var b=x(a).toString();this.s[b].forEach(Ca);delete this.s[b];var c=a.a;void 0!==c?delete this.l[c.toString()]:delete this.o[b];this.b(new Pj("removefeature",a))};
function Rj(a,b){for(var c in a.l)if(a.l[c]===b){delete a.l[c];break}}function Pj(a,b){Na.call(this,a);this.feature=b}v(Pj,Na);function Sj(a,b,c,d){this.na=a;this.X=b;this.overlaps=d;this.c=0;this.resolution=c;this.N=this.G=null;this.a=[];this.coordinates=[];this.$=qe();this.b=[];this.ta=null;this.la=qe();this.Za=qe()}v(Sj,oe);
function Tj(a,b,c,d,e,f,g){var h=a.coordinates.length,l=a.ng();g&&(c+=e);g=[b[c],b[c+1]];var m=[NaN,NaN],n=!0,p;for(p=c+e;p<d;p+=e){m[0]=b[p];m[1]=b[p+1];var q=qb(l,m);q!==t?(n&&(a.coordinates[h++]=g[0],a.coordinates[h++]=g[1]),a.coordinates[h++]=m[0],a.coordinates[h++]=m[1],n=!1):1===q?(a.coordinates[h++]=m[0],a.coordinates[h++]=m[1],n=!1):n=!0;g[0]=m[0];g[1]=m[1];var t=q}if(f&&n||p===c+e)a.coordinates[h++]=g[0],a.coordinates[h++]=g[1];return h}
function Uj(a,b){a.G=[0,b,0];a.a.push(a.G);a.N=[0,b,0];a.b.push(a.N)}Sj.prototype.$a=function(a,b){if(this.aa){var c=ve(this.$,this.aa.slice());a.translate(c[0],c[1]);a.rotate(b)}a.fill();this.aa&&a.setTransform.apply(a,this.Za)};
function Vj(a,b,c,d,e,f,g,h,l){if(a.ta&&fd(d,a.$))var m=a.ta;else a.ta||(a.ta=[]),m=Pd(a.coordinates,0,a.coordinates.length,2,d,a.ta),ue(a.$,d);d=!Aa(f);for(var n=0,p=g.length,q=0,t,u=a.la,w=a.Za,z,D,B,S,Ua=0,ya=0,Da=a.a!=g||a.overlaps?0:200;n<p;){var C=g[n];switch(C[0]){case 0:q=C[1];d&&f[x(q).toString()]||!q.V()?n=C[2]:void 0===l||Jb(l,q.V().D())?++n:n=C[2]+1;break;case 1:Ua>Da&&(a.$a(b,e),Ua=0);ya>Da&&(b.stroke(),ya=0);Ua||ya||(b.beginPath(),z=D=NaN);++n;break;case 2:q=C[1];t=m[q];C=m[q+1];B=m[q+
2]-t;q=m[q+3]-C;q=Math.sqrt(B*B+q*q);b.moveTo(t+q,C);b.arc(t,C,q,0,2*Math.PI,!0);++n;break;case 3:b.closePath();++n;break;case 4:q=C[1];t=C[2];var pa=C[3];var $a=C[4]*c;var ra=C[5]*c;var dc=C[6],Pa=C[7],ic=C[8],jd=C[9];var qc=C[10];B=C[11];S=C[12];var Lf=C[13],Cg=C[14];for(qc&&(B+=e);q<t;q+=2){C=m[q]-$a;qc=m[q+1]-ra;Lf&&(C=Math.round(C),qc=Math.round(qc));if(1!=S||0!==B){var kf=C+$a,vh=qc+ra;ze(u,kf,vh,S,S,B,-kf,-vh);b.setTransform.apply(b,u)}kf=b.globalAlpha;1!=Pa&&(b.globalAlpha=kf*Pa);vh=Cg+ic>
pa.width?pa.width-ic:Cg;var zp=dc+jd>pa.height?pa.height-jd:dc;b.drawImage(pa,ic,jd,vh,zp,C,qc,vh*c,zp*c);1!=Pa&&(b.globalAlpha=kf);1==S&&0===B||b.setTransform.apply(b,w)}++n;break;case 5:q=C[1];t=C[2];ra=C[3];dc=C[4]*c;Pa=C[5]*c;B=C[6];S=C[7]*c;pa=C[8];$a=C[9];for((qc=C[10])&&(B+=e);q<t;q+=2){C=m[q]+dc;qc=m[q+1]+Pa;if(1!=S||0!==B)ze(u,C,qc,S,S,B,-C,-qc),b.setTransform.apply(b,u);ic=ra.split("\n");jd=ic.length;1<jd?(Lf=Math.round(1.5*b.measureText("M").width),qc-=(jd-1)/2*Lf):Lf=0;for(Cg=0;Cg<jd;Cg++)kf=
ic[Cg],$a&&b.strokeText(kf,C,qc),pa&&b.fillText(kf,C,qc),qc+=Lf;1==S&&0===B||b.setTransform.apply(b,w)}++n;break;case 6:if(void 0!==h&&(q=C[1],q=h(q)))return q;++n;break;case 7:Da?Ua++:a.$a(b,e);++n;break;case 8:q=C[1];t=C[2];C=m[q];qc=m[q+1];B=C+.5|0;S=qc+.5|0;if(B!==z||S!==D)b.moveTo(C,qc),z=B,D=S;for(q+=2;q<t;q+=2)if(C=m[q],qc=m[q+1],B=C+.5|0,S=qc+.5|0,q==t-2||B!==z||S!==D)b.lineTo(C,qc),z=B,D=S;++n;break;case 9:a.aa=C[2];Ua&&(a.$a(b,e),Ua=0,ya&&(b.stroke(),ya=0));b.fillStyle=C[1];++n;break;case 10:q=
void 0!==C[8]?C[8]:!0;var ok=C[9];t=C[2];ya&&(b.stroke(),ya=0);b.strokeStyle=C[1];b.lineWidth=q?t*c:t;b.lineCap=C[3];b.lineJoin=C[4];b.miterLimit=C[5];de&&(t=C[6],B=C[7],q&&c!==ok&&(t=t.map(function(a){return a*c/ok}),B*=c/ok,C[6]=t,C[7]=B,C[9]=c),b.lineDashOffset=B,b.setLineDash(t));++n;break;case 11:b.font=C[1];b.textAlign=C[2];b.textBaseline=C[3];++n;break;case 12:Da?ya++:b.stroke();++n;break;default:++n}}Ua&&a.$a(b,e);ya&&b.stroke()}
Sj.prototype.i=function(a,b,c,d,e){Vj(this,a,b,c,d,e,this.a,void 0,void 0)};function Wj(a){var b=a.b;b.reverse();var c,d=b.length,e=-1;for(c=0;c<d;++c){var f=b[c];var g=f[0];if(6==g)e=c;else if(0==g){f[2]=c;f=a.b;for(g=c;e<g;){var h=f[e];f[e]=f[g];f[g]=h;++e;--g}e=-1}}}function Xj(a,b){a.G[2]=a.a.length;a.G=null;a.N[2]=a.b.length;a.N=null;b=[6,b];a.a.push(b);a.b.push(b)}Sj.prototype.uf=ua;Sj.prototype.ng=function(){return this.X};function Yj(a,b,c,d){Sj.call(this,a,b,c,d);this.O=this.Ba=null;this.ea=this.B=this.C=this.v=this.I=this.s=this.o=this.l=this.j=this.f=this.g=void 0}v(Yj,Sj);
Yj.prototype.Ec=function(a,b){if(this.O){Uj(this,b);var c=a.ja(),d=this.coordinates.length;a=Tj(this,c,0,c.length,a.ya(),!1,!1);this.a.push([4,d,a,this.O,this.g,this.f,this.j,this.l,this.o,this.s,this.I,this.v,this.C,this.B,this.ea]);this.b.push([4,d,a,this.Ba,this.g,this.f,this.j,this.l,this.o,this.s,this.I,this.v,this.C,this.B,this.ea]);Xj(this,b)}};
Yj.prototype.Cc=function(a,b){if(this.O){Uj(this,b);var c=a.ja(),d=this.coordinates.length;a=Tj(this,c,0,c.length,a.ya(),!1,!1);this.a.push([4,d,a,this.O,this.g,this.f,this.j,this.l,this.o,this.s,this.I,this.v,this.C,this.B,this.ea]);this.b.push([4,d,a,this.Ba,this.g,this.f,this.j,this.l,this.o,this.s,this.I,this.v,this.C,this.B,this.ea]);Xj(this,b)}};Yj.prototype.uf=function(){Wj(this);this.f=this.g=void 0;this.O=this.Ba=null;this.ea=this.B=this.v=this.I=this.s=this.o=this.l=this.C=this.j=void 0};
Yj.prototype.ic=function(a){var b=a.Gc(),c=a.gc(),d=a.Qg(),e=a.W(1),f=a.jd();this.g=b[0];this.f=b[1];this.Ba=d;this.O=e;this.j=c[1];this.l=a.La();this.o=f[0];this.s=f[1];this.I=a.j;this.v=a.i;this.C=a.Ma();this.B=a.l;this.ea=c[0]};function Zj(a,b,c,d){Sj.call(this,a,b,c,d);this.f=null;this.g={fe:void 0,$d:void 0,ae:null,be:void 0,ce:void 0,de:void 0,ee:void 0,Bg:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(Zj,Sj);function ak(a,b,c,d,e){var f=a.coordinates.length;b=Tj(a,b,c,d,e,!1,!1);f=[8,f,b];a.a.push(f);a.b.push(f);return d}k=Zj.prototype;k.ng=function(){this.f||(this.f=lb(this.X),0<this.c&&kb(this.f,this.resolution*(this.c+1)/2,this.f));return this.f};
function bk(a){var b=a.g,c=b.strokeStyle,d=b.lineCap,e=b.lineDash,f=b.lineDashOffset,g=b.lineJoin,h=b.lineWidth,l=b.miterLimit;b.fe==c&&b.$d==d&&fd(b.ae,e)&&b.be==f&&b.ce==g&&b.de==h&&b.ee==l||(b.Bg!=a.coordinates.length&&(a.a.push([12]),b.Bg=a.coordinates.length),a.a.push([10,c,h,d,g,l,e,f,!0,1],[1]),b.fe=c,b.$d=d,b.ae=e,b.be=f,b.ce=g,b.de=h,b.ee=l)}
k.Yb=function(a,b){var c=this.g,d=c.lineWidth;void 0!==c.strokeStyle&&void 0!==d&&(bk(this),Uj(this,b),this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1],[1]),c=a.ja(),ak(this,c,0,c.length,a.ya()),this.b.push([12]),Xj(this,b))};
k.Bc=function(a,b){var c=this.g,d=c.lineWidth;if(void 0!==c.strokeStyle&&void 0!==d){bk(this);Uj(this,b);this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1],[1]);c=a.$b();d=a.ja();a=a.ya();var e=0,f;var g=0;for(f=c.length;g<f;++g)e=ak(this,d,e,c[g],a);this.b.push([12]);Xj(this,b)}};k.uf=function(){this.g.Bg!=this.coordinates.length&&this.a.push([12]);Wj(this);this.g=null};
k.Ta=function(a,b){a=b.b;this.g.strokeStyle=Nd(a?a:Fd);a=b.i;this.g.lineCap=void 0!==a?a:"round";a=b.g;this.g.lineDash=a?a:Ed;a=b.f;this.g.lineDashOffset=a?a:0;a=b.j;this.g.lineJoin=void 0!==a?a:"round";a=b.c;this.g.lineWidth=void 0!==a?a:1;b=b.l;this.g.miterLimit=void 0!==b?b:10;this.g.lineWidth>this.c&&(this.c=this.g.lineWidth,this.f=null)};function ck(a,b,c,d,e,f,g){var h=(c-b)/d;if(3>h){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var l=Array(h);l[0]=1;l[h-1]=1;c=[b,c-d];for(var m=0,n;0<c.length;){var p=c.pop(),q=c.pop(),t=0,u=a[q],w=a[q+1],z=a[p],D=a[p+1];for(n=q+d;n<p;n+=d){var B=Pb(a[n],a[n+1],u,w,z,D);B>t&&(m=n,t=B)}t>e&&(l[(m-b)/d]=1,q+d<m&&c.push(q,m),m+d<p&&c.push(m,p))}for(n=0;n<h;++n)l[n]&&(f[g++]=a[b+n*d],f[g++]=a[b+n*d+1]);return g}
function dk(a,b,c,d,e,f,g,h){var l;var m=0;for(l=c.length;m<l;++m){var n=c[m];a:{var p=a,q=n,t=d,u=e,w=f,z=g;if(b!=q){var D=u*Math.round(p[b]/u),B=u*Math.round(p[b+1]/u);b+=t;w[z++]=D;w[z++]=B;do{var S=u*Math.round(p[b]/u);g=u*Math.round(p[b+1]/u);b+=t;if(b==q){w[z++]=S;w[z++]=g;g=z;break a}}while(S==D&&g==B);for(;b<q;){var Ua=u*Math.round(p[b]/u);var ya=u*Math.round(p[b+1]/u);b+=t;if(Ua!=S||ya!=g){var Da=S-D,C=g-B,pa=Ua-D,$a=ya-B;Da*$a==C*pa&&(0>Da&&pa<Da||Da==pa||0<Da&&pa>Da)&&(0>C&&$a<C||C==$a||
0<C&&$a>C)||(w[z++]=S,w[z++]=g,D=S,B=g);S=Ua;g=ya}}w[z++]=S;w[z++]=g}g=z}h.push(g);b=n}return g};function ek(a,b,c,d){Sj.call(this,a,b,c,d);this.f=null;this.g={Rh:void 0,fe:void 0,$d:void 0,ae:null,be:void 0,ce:void 0,de:void 0,ee:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(ek,Sj);
function fk(a,b,c,d,e){var f=a.g,g=void 0!==f.fillStyle;f=void 0!=f.strokeStyle;var h=d.length,l=[1];a.a.push(l);a.b.push(l);for(l=0;l<h;++l){var m=d[l],n=a.coordinates.length;c=Tj(a,b,c,m,e,!0,!f);c=[8,n,c];a.a.push(c);a.b.push(c);f&&(c=[3],a.a.push(c),a.b.push(c));c=m}b=[7];a.b.push(b);g&&a.a.push(b);f&&(g=[12],a.a.push(g),a.b.push(g));return c}k=ek.prototype;
k.nc=function(a,b){var c=this.g,d=c.strokeStyle;if(void 0!==c.fillStyle||void 0!==d){gk(this,a);Uj(this,b);this.b.push([9,Ld(Dd)]);void 0!==c.strokeStyle&&this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1]);var e=a.ja();d=this.coordinates.length;Tj(this,e,0,e.length,a.ya(),!1,!1);a=[1];d=[2,d];this.a.push(a,d);this.b.push(a,d);a=[7];this.b.push(a);void 0!==c.fillStyle&&this.a.push(a);void 0!==c.strokeStyle&&(c=[12],this.a.push(c),this.b.push(c));
Xj(this,b)}};k.Fc=function(a,b){var c=this.g;gk(this,a);Uj(this,b);this.b.push([9,Ld(Dd)]);void 0!==c.strokeStyle&&this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1]);c=a.$b();var d=a.sc();fk(this,d,0,c,a.ya());Xj(this,b)};
k.Dc=function(a,b){var c=this.g,d=c.strokeStyle;if(void 0!==c.fillStyle||void 0!==d){gk(this,a);Uj(this,b);this.b.push([9,Ld(Dd)]);void 0!==c.strokeStyle&&this.b.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1]);c=a.c;d=Le(a);a=a.ya();var e=0,f;var g=0;for(f=c.length;g<f;++g)e=fk(this,d,e,c[g],a);Xj(this,b)}};
k.uf=function(){Wj(this);this.g=null;var a=this.na;if(0!==a){var b=this.coordinates,c;var d=0;for(c=b.length;d<c;++d)b[d]=a*Math.round(b[d]/a)}};k.ng=function(){this.f||(this.f=lb(this.X),0<this.c&&kb(this.f,this.resolution*(this.c+1)/2,this.f));return this.f};
k.Ta=function(a,b){var c=this.g;a?(a=a.b,c.fillStyle=Nd(a?a:Dd)):c.fillStyle=void 0;b?(a=b.b,c.strokeStyle=Nd(a?a:Fd),a=b.i,c.lineCap=void 0!==a?a:"round",a=b.g,c.lineDash=a?a.slice():Ed,a=b.f,c.lineDashOffset=a?a:0,a=b.j,c.lineJoin=void 0!==a?a:"round",a=b.c,c.lineWidth=void 0!==a?a:1,b=b.l,c.miterLimit=void 0!==b?b:10,c.lineWidth>this.c&&(this.c=c.lineWidth,this.f=null)):(c.strokeStyle=void 0,c.lineCap=void 0,c.lineDash=null,c.lineDashOffset=void 0,c.lineJoin=void 0,c.lineWidth=void 0,c.miterLimit=
void 0)};function gk(a,b){var c=a.g,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineDashOffset,l=c.lineJoin,m=c.lineWidth,n=c.miterLimit;if(void 0!==d&&("string"!==typeof d||c.Rh!=d)){var p=[9,d];"string"!==typeof d&&(b=b.D(),p.push([b[0],b[3]]));a.a.push(p);c.Rh=c.fillStyle}void 0===e||c.fe==e&&c.$d==f&&fd(c.ae,g)&&c.be==h&&c.ce==l&&c.de==m&&c.ee==n||(a.a.push([10,e,m,f,l,n,g,h,!0,1]),c.fe=e,c.$d=f,c.ae=g,c.be=h,c.ce=l,c.de=m,c.ee=n)};function hk(a,b,c,d){Sj.call(this,a,b,c,d);this.ea=this.B=this.C=null;this.Ja="";this.o=this.l=0;this.s=void 0;this.v=this.I=0;this.j=this.f=this.g=null}v(hk,Sj);
hk.prototype.Qc=function(a,b,c,d,e){if(""!==this.Ja&&this.j&&(this.g||this.f)){if(this.g){var f=this.g,g=this.C;if(!g||g.fillStyle!=f.fillStyle){var h=[9,f.fillStyle];this.a.push(h);this.b.push(h);g?g.fillStyle=f.fillStyle:this.C={fillStyle:f.fillStyle}}}this.f&&(f=this.f,g=this.B,g&&g.lineCap==f.lineCap&&g.lineDash==f.lineDash&&g.lineDashOffset==f.lineDashOffset&&g.lineJoin==f.lineJoin&&g.lineWidth==f.lineWidth&&g.miterLimit==f.miterLimit&&g.strokeStyle==f.strokeStyle||(h=[10,f.strokeStyle,f.lineWidth,
f.lineCap,f.lineJoin,f.miterLimit,f.lineDash,f.lineDashOffset,!1,1],this.a.push(h),this.b.push(h),g?(g.lineCap=f.lineCap,g.lineDash=f.lineDash,g.lineDashOffset=f.lineDashOffset,g.lineJoin=f.lineJoin,g.lineWidth=f.lineWidth,g.miterLimit=f.miterLimit,g.strokeStyle=f.strokeStyle):this.B={lineCap:f.lineCap,lineDash:f.lineDash,lineDashOffset:f.lineDashOffset,lineJoin:f.lineJoin,lineWidth:f.lineWidth,miterLimit:f.miterLimit,strokeStyle:f.strokeStyle}));f=this.j;g=this.ea;g&&g.font==f.font&&g.textAlign==
f.textAlign&&g.textBaseline==f.textBaseline||(h=[11,f.font,f.textAlign,f.textBaseline],this.a.push(h),this.b.push(h),g?(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline):this.ea={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});Uj(this,e);f=this.coordinates.length;a=Tj(this,a,b,c,d,!1,!1);a=[5,f,a,this.Ja,this.l,this.o,this.I,this.v,!!this.g,!!this.f,this.s];this.a.push(a);this.b.push(a);Xj(this,e)}};
hk.prototype.fc=function(a){if(a){var b=a.qa();b?(b=b.b,b=Nd(b?b:Dd),this.g?this.g.fillStyle=b:this.g={fillStyle:b}):this.g=null;var c=a.pa();if(c){b=c.b;var d=c.i,e=c.g,f=c.f,g=c.j,h=c.c;c=c.l;d=void 0!==d?d:"round";e=e?e.slice():Ed;f=void 0!==f?f:0;g=void 0!==g?g:"round";h=void 0!==h?h:1;c=void 0!==c?c:10;b=Nd(b?b:Fd);if(this.f){var l=this.f;l.lineCap=d;l.lineDash=e;l.lineDashOffset=f;l.lineJoin=g;l.lineWidth=h;l.miterLimit=c;l.strokeStyle=b}else this.f={lineCap:d,lineDash:e,lineDashOffset:f,lineJoin:g,
lineWidth:h,miterLimit:c,strokeStyle:b}}else this.f=null;var m=a.Zb;b=a.Lc;d=a.Mc;e=a.a;h=a.b;c=a.Ma();f=a.ra();g=a.Vc;l=a.sb;a=void 0!==m?m:"10px sans-serif";g=void 0!==g?g:"center";l=void 0!==l?l:"middle";this.j?(m=this.j,m.font=a,m.textAlign=g,m.textBaseline=l):this.j={font:a,textAlign:g,textBaseline:l};this.Ja=void 0!==f?f:"";this.l=void 0!==b?b:0;this.o=void 0!==d?d:0;this.s=void 0!==e?e:!1;this.I=void 0!==h?h:0;this.v=void 0!==c?c:1}else this.Ja=""};function ik(a,b,c,d,e){this.I=a;this.c=b;this.o=d;this.s=c;this.f=e;this.a={};this.j=kd(1,1);this.l=qe()}v(ik,mf);var jk={0:[[!0]]};function kk(a,b,c){var d,e=Math.floor(a.length/2);if(b>=e)for(d=e;d<b;d++)a[d][c]=!0;else if(b<e)for(d=b+1;d<e;d++)a[d][c]=!0}
function lk(a){if(void 0!==jk[a])return jk[a];for(var b=2*a+1,c=Array(b),d=0;d<b;d++)c[d]=Array(b);b=a;for(var e=d=0;b>=d;)kk(c,a+b,a+d),kk(c,a+d,a+b),kk(c,a-d,a+b),kk(c,a-b,a+d),kk(c,a-b,a-d),kk(c,a-d,a-b),kk(c,a+d,a-b),kk(c,a+b,a-d),d++,e+=1+2*d,0<2*(e-b)+1&&(--b,e+=1-2*b);return jk[a]=c}function mk(a){for(var b in a.a){var c=a.a[b],d;for(d in c)c[d].uf()}}
ik.prototype.Ga=function(a,b,c,d,e,f){d=Math.round(d);var g=2*d+1,h=ze(this.l,d+.5,d+.5,1/b,-1/b,-c,-a[0],-a[1]),l=this.j;l.canvas.width!==g||l.canvas.height!==g?(l.canvas.width=g,l.canvas.height=g):l.clearRect(0,0,g,g);if(void 0!==this.f){var m=ib();jb(m,a);kb(m,b*(this.f+d),m)}var n=lk(d);return nk(this,l,h,c,e,function(a){for(var b=l.getImageData(0,0,g,g).data,c=0;c<g;c++)for(var d=0;d<g;d++)if(n[c][d]&&0<b[4*(d*g+c)+3]){if(a=f(a))return a;l.clearRect(0,0,g,g);return}},m)};
function pk(a,b){var c=a.c;a=c[0];var d=c[1],e=c[2];c=c[3];a=[a,d,a,c,e,c,e,d];Pd(a,0,8,2,b,a);return a}ik.prototype.b=function(a,b){var c=void 0!==a?a.toString():"0";a=this.a[c];void 0===a&&(a={},this.a[c]=a);c=a[b];void 0===c&&(c=new qk[b](this.I,this.c,this.s,this.o),a[b]=c);return c};ik.prototype.g=function(){return Aa(this.a)};
ik.prototype.i=function(a,b,c,d,e,f){var g=Object.keys(this.a).map(Number);g.sort(ad);var h=pk(this,c);a.save();a.beginPath();a.moveTo(h[0],h[1]);a.lineTo(h[2],h[3]);a.lineTo(h[4],h[5]);a.lineTo(h[6],h[7]);a.clip();f=f?f:lf;var l,m;h=0;for(l=g.length;h<l;++h){var n=this.a[g[h].toString()];var p=0;for(m=f.length;p<m;++p){var q=n[f[p]];void 0!==q&&q.i(a,b,c,d,e)}}a.restore()};
function nk(a,b,c,d,e,f,g){var h=Object.keys(a.a).map(Number);h.sort(function(a,b){return b-a});var l,m;var n=0;for(l=h.length;n<l;++n){var p=a.a[h[n].toString()];for(m=lf.length-1;0<=m;--m){var q=p[lf[m]];if(void 0!==q&&(q=Vj(q,b,1,c,d,e,q.b,f,g)))return q}}}var qk={Circle:ek,Image:Yj,LineString:Zj,Polygon:ek,Text:hk};function rk(a,b){return x(a)-x(b)}function sk(a,b){a=.5*a/b;return a*a}function tk(a,b,c,d,e,f){var g=!1,h;if(h=c.W()){var l=h.yf();2==l||3==l?h.hk(e,f):(0==l&&h.load(),h.oi(e,f),g=!0)}if(e=(0,c.Va)(b))d=e.le(d),(0,uk[d.T()])(a,d,c,b);return g}
var uk={Point:function(a,b,c,d){var e=c.W();if(e){if(2!=e.yf())return;var f=a.b(c.Da(),"Image");f.ic(e);f.Ec(b,d)}if(e=c.ra())a=a.b(c.Da(),"Text"),a.fc(e),a.Qc(b.ja(),0,2,2,d)},LineString:function(a,b,c,d){var e=c.pa();if(e){var f=a.b(c.Da(),"LineString");f.Ta(null,e);f.Yb(b,d)}if(e=c.ra())a=a.b(c.Da(),"Text"),a.fc(e),a.Qc(Ie(b),0,2,2,d)},Polygon:function(a,b,c,d){var e=c.qa(),f=c.pa();if(e||f){var g=a.b(c.Da(),"Polygon");g.Ta(e,f);g.Fc(b,d)}if(e=c.ra())a=a.b(c.Da(),"Text"),a.fc(e),a.Qc(Ke(b),0,2,
2,d)},MultiPoint:function(a,b,c,d){var e=c.W();if(e){if(2!=e.yf())return;var f=a.b(c.Da(),"Image");f.ic(e);f.Cc(b,d)}if(e=c.ra())a=a.b(c.Da(),"Text"),a.fc(e),c=b.ja(),a.Qc(c,0,c.length,b.ya(),d)},MultiLineString:function(a,b,c,d){var e=c.pa();if(e){var f=a.b(c.Da(),"LineString");f.Ta(null,e);f.Bc(b,d)}if(e=c.ra())a=a.b(c.Da(),"Text"),a.fc(e),b=Je(b),a.Qc(b,0,b.length,2,d)},MultiPolygon:function(a,b,c,d){var e=c.qa(),f=c.pa();if(f||e){var g=a.b(c.Da(),"Polygon");g.Ta(e,f);g.Dc(b,d)}if(e=c.ra())a=a.b(c.Da(),
"Text"),a.fc(e),b=Me(b),a.Qc(b,0,b.length,2,d)},GeometryCollection:function(a,b,c,d){b=b.a;var e;var f=0;for(e=b.length;f<e;++f)(0,uk[b[f].T()])(a,b[f],c,d)},Circle:function(a,b,c,d){var e=c.qa(),f=c.pa();if(e||f){var g=a.b(c.Da(),"Circle");g.Ta(e,f);g.nc(b,d)}if(e=c.ra())a=a.b(c.Da(),"Text"),a.fc(e),a.Qc(b.va(),0,2,2,d)}};function vk(a,b,c,d,e){Qa.call(this);this.i=e;this.extent=a;this.a=c;this.resolution=b;this.state=d}v(vk,Qa);vk.prototype.u=function(){this.b("change")};vk.prototype.D=function(){return this.extent};vk.prototype.getState=function(){return this.state};function wk(a,b,c,d,e,f){this.c=void 0!==f?f:null;vk.call(this,a,b,c,void 0!==f?0:2,d);this.g=e}v(wk,vk);wk.prototype.f=function(a){this.state=a?3:2;this.u()};wk.prototype.load=function(){0==this.state&&(this.state=1,this.u(),this.c(this.f.bind(this)))};wk.prototype.W=function(){return this.g};function xk(a,b,c,d,e,f){this.s=b;this.o=a.D();var g=b.D(),h=g?Ib(c,g):c;g=Zh(a,b,Gb(h),d);this.j=new bi(a,b,h,this.o,.5*g);this.c=d;this.g=c;a=di(this.j);this.l=(this.Jb=f(a,g,e))?this.Jb.a:1;this.Be=this.f=null;e=2;f=[];this.Jb&&(e=0,f=this.Jb.i);vk.call(this,c,d,this.l,e,f)}v(xk,vk);xk.prototype.xa=function(){1==this.state&&(Ca(this.Be),this.Be=null);vk.prototype.xa.call(this)};xk.prototype.W=function(){return this.f};
xk.prototype.ze=function(){var a=this.Jb.getState();2==a&&(this.f=ai(Eb(this.g)/this.c,Fb(this.g)/this.c,this.l,this.Jb.resolution,0,this.c,this.g,this.j,[{extent:this.Jb.D(),image:this.Jb.W()}],0));this.state=a;this.u()};xk.prototype.load=function(){if(0==this.state){this.state=1;this.u();var a=this.Jb.getState();2==a||3==a?this.ze():(this.Be=y(this.Jb,"change",function(){var a=this.Jb.getState();if(2==a||3==a)Ca(this.Be),this.Be=null,this.ze()},this),this.Jb.load())}};function yk(a){vi.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.v=void 0!==a.resolutions?a.resolutions:null;this.a=null;this.la=0}v(yk,vi);function zk(a,b){a.v&&(b=a.v[cd(a.v,b,0)]);return b}
yk.prototype.W=function(a,b,c,d){var e=this.c;if(e&&d&&!Pc(e,d)){if(this.a){if(this.la==this.g&&Pc(this.a.s,d)&&this.a.resolution==b&&this.a.a==c&&vb(this.a.D(),a))return this.a;Ma(this.a);this.a=null}this.a=new xk(e,d,a,b,c,function(a,b,c){return this.ad(a,b,c,e)}.bind(this));this.la=this.g;return this.a}e&&(d=e);return this.ad(a,b,c,d)};yk.prototype.l=function(a){a=a.target;switch(a.getState()){case 1:this.b(new Ak(Bk,a));break;case 2:this.b(new Ak(Ck,a));break;case 3:this.b(new Ak(Dk,a))}};
function Ek(a,b){a.W().src=b}function Ak(a,b){Na.call(this,a);this.image=b}v(Ak,Na);var Bk="imageloadstart",Ck="imageloadend",Dk="imageloaderror";function Fk(a){yk.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:a.state});this.$=a.canvasFunction;this.N=null;this.X=0;this.na=void 0!==a.ratio?a.ratio:1.5}v(Fk,yk);Fk.prototype.ad=function(a,b,c,d){b=zk(this,b);var e=this.N;if(e&&this.X==this.g&&e.resolution==b&&e.a==c&&pb(e.D(),a))return e;a=a.slice();Kb(a,this.na);(d=this.$(a,b,c,[Eb(a)/b*c,Fb(a)/b*c],d))&&(e=new wk(a,b,c,this.j,d));this.N=e;this.X=this.g;return e};function Gk(a){this.i=a.source;this.Ua=qe();this.f=kd();this.s=[0,0];this.wa=void 0==a.renderBuffer?100:a.renderBuffer;this.B=null;Fk.call(this,{attributions:a.attributions,canvasFunction:this.bl.bind(this),logo:a.logo,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,state:this.i.getState()});this.G=null;this.o=void 0;this.ij(a.style);y(this.i,"change",this.ep,this)}v(Gk,Fk);k=Gk.prototype;
k.bl=function(a,b,c,d,e){var f=new ik(.5*b/c,a,b,this.i.Ua,this.wa);this.i.qe(a,b,e);var g=!1;this.i.oc(a,function(a){var d;if(!(d=g)){var e;(d=a.Nc())?e=d.call(a,b):this.o&&(e=this.o(a,b));if(e){var h,p=!1;Array.isArray(e)||(e=[e]);d=0;for(h=e.length;d<h;++d)p=tk(f,a,e[d],sk(b,c),this.cp,this)||p;d=p}else d=!1}g=d},this);mk(f);if(g)return null;this.s[0]!=d[0]||this.s[1]!=d[1]?(this.f.canvas.width=d[0],this.f.canvas.height=d[1],this.s[0]=d[0],this.s[1]=d[1]):this.f.clearRect(0,0,d[0],d[1]);a=Hk(this,
Gb(a),b,c,d);f.i(this.f,c,a,0,{});this.B=f;return this.f.canvas};k.Ga=function(a,b,c,d,e,f){if(this.B){var g={};return this.B.Ga(a,b,0,d,e,function(a){var b=x(a).toString();if(!(b in g))return g[b]=!0,f(a)})}};k.vc=function(){return this.i};k.ap=function(){return this.G};k.bp=function(){return this.o};function Hk(a,b,c,d,e){c=d/c;return ze(a.Ua,e[0]/2,e[1]/2,c,-c,0,-b[0],-b[1])}k.cp=function(){this.u()};k.ep=function(){xi(this,this.i.getState())};
k.ij=function(a){this.G=void 0!==a?a:kj;this.o=a?ij(this.G):void 0;this.u()};function Ik(a,b,c,d,e,f,g){var h=a[b],l=a[b+1],m=a[c]-h,n=a[c+1]-l;if(0!==m||0!==n)if(f=((e-h)*m+(f-l)*n)/(m*m+n*n),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=Tb(a[b+e],a[c+e],f);g.length=d;return}for(e=0;e<d;++e)g[e]=a[b+e];g.length=d}function Jk(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],l=a[b+1];f=Qb(f,g,h,l);f>e&&(e=f);f=h;g=l}return e}function Kk(a,b,c,d,e){var f;var g=0;for(f=c.length;g<f;++g){var h=c[g];e=Jk(a,b,h,d,e);b=h}return e}
function Lk(a,b,c,d,e,f,g,h,l,m,n){if(b==c)return m;if(0===e){var p=Qb(g,h,a[b],a[b+1]);if(p<m){for(n=0;n<d;++n)l[n]=a[b+n];l.length=d;return p}return m}for(var q=n?n:[NaN,NaN],t=b+d;t<c;)if(Ik(a,t-d,t,d,g,h,q),p=Qb(g,h,q[0],q[1]),p<m){m=p;for(n=0;n<d;++n)l[n]=q[n];l.length=d;t+=d}else t+=d*Math.max((Math.sqrt(p)-Math.sqrt(m))/e|0,1);if(f&&(Ik(a,c-d,b,d,g,h,q),p=Qb(g,h,q[0],q[1]),p<m)){m=p;for(n=0;n<d;++n)l[n]=q[n];l.length=d}return m}
function Mk(a,b,c,d,e,f,g,h,l,m,n){n=n?n:[NaN,NaN];var p;var q=0;for(p=c.length;q<p;++q){var t=c[q];m=Lk(a,b,t,d,e,f,g,h,l,m,n);b=t}return m};function Nk(a,b){var c=0,d;var e=0;for(d=b.length;e<d;++e)a[c++]=b[e];return c}function Ok(a,b,c,d){var e;var f=0;for(e=c.length;f<e;++f){var g=c[f],h;for(h=0;h<d;++h)a[b++]=g[h]}return b}function Pk(a,b,c,d,e){e=e?e:[];var f=0,g;var h=0;for(g=c.length;h<g;++h)b=Ok(a,b,c[h],d),e[f++]=b;e.length=f;return e};function Qk(a,b,c,d,e){e=void 0!==e?e:[];for(var f=0;b<c;b+=d)e[f++]=a.slice(b,b+d);e.length=f;return e}function Rk(a,b,c,d,e){e=void 0!==e?e:[];var f=0,g;var h=0;for(g=c.length;h<g;++h){var l=c[h];e[f++]=Qk(a,b,l,d,e[f]);b=l}e.length=f;return e};function Sk(a,b,c,d,e,f){var g=NaN,h=NaN,l=(c-b)/d;if(1===l)g=a[b],h=a[b+1];else if(2==l)g=(1-e)*a[b]+e*a[b+d],h=(1-e)*a[b+1]+e*a[b+d+1];else if(0!==l){h=a[b];l=a[b+1];var m=0;g=[0];var n;for(n=b+d;n<c;n+=d){var p=a[n],q=a[n+1];m+=Math.sqrt((p-h)*(p-h)+(q-l)*(q-l));g.push(m);h=p;l=q}c=e*m;l=0;m=g.length;for(n=!1;l<m;)e=l+(m-l>>1),h=+ad(g[e],c),0>h?l=e+1:(m=e,n=!h);e=n?l:~l;0>e?(c=(c-g[-e-2])/(g[-e-1]-g[-e-2]),b+=(-e-2)*d,g=Tb(a[b],a[b+d],c),h=Tb(a[b+1],a[b+d+1],c)):(g=a[b+e*d],h=a[b+e*d+1])}return f?
(f[0]=g,f[1]=h,f):[g,h]}function Tk(a,b,c,d,e,f){if(c==b)return null;if(e<a[b+d-1])return f?(c=a.slice(b,b+d),c[d-1]=e,c):null;if(a[c-1]<e)return f?(c=a.slice(c-d,c),c[d-1]=e,c):null;if(e==a[b+d-1])return a.slice(b,b+d);b/=d;for(c/=d;b<c;)f=b+c>>1,e<a[(f+1)*d-1]?c=f:b=f+1;c=a[b*d-1];if(e==c)return a.slice((b-1)*d,(b-1)*d+d);f=(e-c)/(a[(b+1)*d-1]-c);c=[];var g;for(g=0;g<d-1;++g)c.push(Tb(a[(b-1)*d+g],a[b*d+g],f));c.push(e);return c}
function Uk(a,b,c,d,e,f){var g=0;if(f)return Tk(a,g,b[b.length-1],c,d,e);if(d<a[c-1])return e?(a=a.slice(0,c),a[c-1]=d,a):null;if(a[a.length-1]<d)return e?(a=a.slice(a.length-c),a[c-1]=d,a):null;e=0;for(f=b.length;e<f;++e){var h=b[e];if(g!=h){if(d<a[g+c-1])break;else if(d<=a[h-1])return Tk(a,g,h,c,d,!1);g=h}}return null};function Vk(a,b,c,d,e,f){for(var g=[a[b],a[b+1]],h=[],l;b+d<c;b+=d){h[0]=a[b+d];h[1]=a[b+d+1];if(l=e.call(f,g,h))return l;g[0]=h[0];g[1]=h[1]}return!1};function Wk(a,b,c,d,e){var f=ub(ib(),a,b,c,d);return Jb(e,f)?pb(e,f)||f[0]>=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:Vk(a,b,c,d,function(a,b){var c=!1,d=qb(e,a),f=qb(e,b);if(1===d||1===f)c=!0;else{var g=e[0],h=e[1],t=e[2],u=e[3],w=b[0];b=b[1];a=(b-a[1])/(w-a[0]);f&2&&!(d&2)&&(c=w-(b-u)/a,c=c>=g&&c<=t);c||!(f&4)||d&4||(c=b-(w-t)*a,c=c>=h&&c<=u);c||!(f&8)||d&8||(c=w-(b-h)/a,c=c>=g&&c<=t);c||!(f&16)||d&16||(c=b-(w-g)*a,c=c>=h&&c<=u)}return c}):!1}
function Xk(a,b,c,d,e){var f=c[0];if(!(Wk(a,b,f,d,e)||Bg(a,b,f,d,e[0],e[1])||Bg(a,b,f,d,e[0],e[3])||Bg(a,b,f,d,e[2],e[1])||Bg(a,b,f,d,e[2],e[3])))return!1;if(1===c.length)return!0;b=1;for(f=c.length;b<f;++b)if(Ag(a,c[b-1],c[b],d,e))return!1;return!0};function K(a,b){Rd.call(this);this.c=null;this.v=this.C=this.j=-1;this.ua(a,b)}v(K,Rd);k=K.prototype;k.Wk=function(a){this.A?dd(this.A,a):this.A=a.slice();this.u()};k.clone=function(){var a=new K(null);a.fa(this.ma,this.A.slice());return a};k.Lb=function(a,b,c,d){if(d<mb(this.D(),a,b))return d;this.v!=this.g&&(this.C=Math.sqrt(Jk(this.A,0,this.A.length,this.a,0)),this.v=this.g);return Lk(this.A,0,this.A.length,this.a,this.C,!1,a,b,c,d)};
k.ml=function(a,b){return Vk(this.A,0,this.A.length,this.a,a,b)};k.io=function(a,b){return"XYM"!=this.ma&&"XYZM"!=this.ma?null:Tk(this.A,0,this.A.length,this.a,a,void 0!==b?b:!1)};k.U=function(){return Qk(this.A,0,this.A.length,this.a)};k.$h=function(a,b){return Sk(this.A,0,this.A.length,this.a,a,b)};k.jo=function(){var a=this.A,b=this.a,c=a[0],d=a[1],e=0,f;for(f=0+b;f<this.A.length;f+=b){var g=a[f],h=a[f+1];e+=Math.sqrt((g-c)*(g-c)+(h-d)*(h-d));c=g;d=h}return e};
function Ie(a){a.j!=a.g&&(a.c=a.$h(.5,a.c),a.j=a.g);return a.c}k.Dd=function(a){var b=[];b.length=ck(this.A,0,this.A.length,this.a,a,b,0);a=new K(null);a.fa("XY",b);return a};k.T=function(){return"LineString"};k.bb=function(a){return Wk(this.A,0,this.A.length,this.a,a)};k.ua=function(a,b){a?(Ud(this,b,a,1),this.A||(this.A=[]),this.A.length=Ok(this.A,0,a,this.a),this.u()):this.fa("XY",null)};k.fa=function(a,b){Td(this,a,b);this.u()};function Yk(a,b){Rd.call(this);this.c=this.j=-1;this.ua(a,b)}v(Yk,Rd);k=Yk.prototype;k.clone=function(){var a=new Yk(null);Zk(a,this.ma,this.A.slice());return a};k.Lb=function(a,b,c,d){if(d<mb(this.D(),a,b))return d;this.c!=this.g&&(this.j=Math.sqrt(Jk(this.A,0,this.A.length,this.a,0)),this.c=this.g);return Lk(this.A,0,this.A.length,this.a,this.j,!0,a,b,c,d)};k.ko=function(){return dg(this.A,0,this.A.length,this.a)};k.U=function(){return Qk(this.A,0,this.A.length,this.a)};
k.Dd=function(a){var b=[];b.length=ck(this.A,0,this.A.length,this.a,a,b,0);a=new Yk(null);Zk(a,"XY",b);return a};k.T=function(){return"LinearRing"};k.bb=function(){};k.ua=function(a,b){a?(Ud(this,b,a,1),this.A||(this.A=[]),this.A.length=Ok(this.A,0,a,this.a),this.u()):Zk(this,"XY",null)};function Zk(a,b,c){Td(a,b,c);a.u()};function L(a,b){Rd.call(this);this.ua(a,b)}v(L,Rd);k=L.prototype;k.clone=function(){var a=new L(null);a.fa(this.ma,this.A.slice());return a};k.Lb=function(a,b,c,d){var e=this.A;a=Qb(a,b,e[0],e[1]);if(a<d){d=this.a;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};k.U=function(){return this.A?this.A.slice():[]};k.Qe=function(a){return sb(this.A,a)};k.T=function(){return"Point"};k.bb=function(a){return ob(a,this.A[0],this.A[1])};
k.ua=function(a,b){a?(Ud(this,b,a,0),this.A||(this.A=[]),this.A.length=Nk(this.A,a),this.u()):this.fa("XY",null)};k.fa=function(a,b){Td(this,a,b);this.u()};function $k(a,b,c,d,e,f,g){var h,l=e[f+1],m=[],n=c[0];var p=a[n-d];var q=a[n-d+1];for(h=b;h<n;h+=d){var t=a[h];var u=a[h+1];if(l<=q&&u<=l||q<=l&&l<=u)p=(l-q)/(u-q)*(t-p)+p,m.push(p);p=t;q=u}n=NaN;q=-Infinity;m.sort(ad);p=m[0];h=1;for(u=m.length;h<u;++h){t=m[h];var w=Math.abs(t-p);w>q&&(p=(p+t)/2,Dg(a,b,c,d,p,l)&&(n=p,q=w));p=t}isNaN(n)&&(n=e[f]);return g?(g.push(n,l),g):[n,l]};function M(a,b){Rd.call(this);this.c=[];this.v=-1;this.C=null;this.N=this.B=this.G=-1;this.j=null;this.ua(a,b)}v(M,Rd);k=M.prototype;k.Yk=function(a){this.A?dd(this.A,a.ja()):this.A=a.ja().slice();this.c.push(this.A.length);this.u()};k.clone=function(){var a=new M(null);a.fa(this.ma,this.A.slice(),this.c.slice());return a};
k.Lb=function(a,b,c,d){if(d<mb(this.D(),a,b))return d;this.B!=this.g&&(this.G=Math.sqrt(Kk(this.A,0,this.c,this.a,0)),this.B=this.g);return Mk(this.A,0,this.c,this.a,this.G,!0,a,b,c,d)};k.hd=function(a,b){return Dg(this.sc(),0,this.c,this.a,a,b)};k.oo=function(){return eg(this.sc(),0,this.c,this.a)};k.U=function(a){if(void 0!==a){var b=this.sc().slice();bg(b,0,this.c,this.a,a)}else b=this.A;return Rk(b,0,this.c,this.a)};k.$b=function(){return this.c};
function Ke(a){if(a.v!=a.g){var b=Gb(a.D());a.C=$k(a.sc(),0,a.c,a.a,b,0);a.v=a.g}return a.C}k.Hl=function(){return new L(Ke(this))};k.Nl=function(){return this.c.length};k.ug=function(a){if(0>a||this.c.length<=a)return null;var b=new Yk(null);Zk(b,this.ma,this.A.slice(0===a?0:this.c[a-1],this.c[a]));return b};k.Ic=function(){var a=this.ma,b=this.A,c=this.c,d=[],e=0,f;var g=0;for(f=c.length;g<f;++g){var h=c[g],l=new Yk(null);Zk(l,a,b.slice(e,h));d.push(l);e=h}return d};
k.sc=function(){if(this.N!=this.g){var a=this.A;ag(a,this.c,this.a)?this.j=a:(this.j=a.slice(),this.j.length=bg(this.j,0,this.c,this.a));this.N=this.g}return this.j};k.Dd=function(a){var b=[],c=[];b.length=dk(this.A,0,this.c,this.a,Math.sqrt(a),b,0,c);a=new M(null);a.fa("XY",b,c);return a};k.T=function(){return"Polygon"};k.bb=function(a){return Xk(this.sc(),0,this.c,this.a,a)};
k.ua=function(a,b){a?(Ud(this,b,a,2),this.A||(this.A=[]),a=Pk(this.A,0,a,this.a,this.c),this.A.length=0===a.length?0:a[a.length-1],this.u()):this.fa("XY",null,this.c)};k.fa=function(a,b,c){Td(this,a,b);this.c=c;this.u()};function al(a,b,c,d){var e=d?d:32;d=[];var f;for(f=0;f<e;++f)dd(d,a.offset(b,c,2*Math.PI*f/e));d.push(d[0],d[1]);a=new M(null);a.fa("XY",d,[d.length]);return a}function bl(a){var b=a[0],c=a[1],d=a[2];a=a[3];b=[b,c,b,a,d,a,d,c,b,c];c=new M(null);c.fa("XY",b,[b.length]);return c}
function cl(a,b,c){var d=b?b:32;b=a.ya();var e=a.ma,f=a.va(),g=new M(null,e);d=b*(d+1);for(var h=Array(d),l=0;l<d;l+=b){h[l]=0;h[l+1]=0;for(var m=2;m<b;m++)h[l+m]=f[m]}g.fa(e,h,[h.length]);dl(g,f,a.Gd(),c);return g}function dl(a,b,c,d){var e=a.ja(),f=a.ma,g=a.ya(),h=a.$b(),l=e.length/g-1;d=d?d:0;for(var m,n,p=0;p<=l;++p)n=p*g,m=d+2*Sb(p,l)*Math.PI/l,e[n]=b[0]+c*Math.cos(m),e[n+1]=b[1]+c*Math.sin(m);a.fa(f,e,h)};function el(a,b){b=new Cesium.BillboardCollection({scene:b});var c=new Cesium.PrimitiveCollection;this.c=[];this.b=new Cesium.PrimitiveCollection;this.g={projection:a,billboards:b,featureToCesiumMap:{},primitives:c};this.b.add(b);this.b.add(c)}el.prototype.destroy=function(){this.c.forEach(Ta);this.c.length=0};function fl(a){this.scene=a;this.g=this.Vp.bind(this);this.b={both:Cesium.ClassificationType.BOTH,cesium3DTile:Cesium.ClassificationType.CESIUM_3D_TILE,terrain:Cesium.ClassificationType.TERRAIN}}k=fl.prototype;k.Vp=function(a){var b=a.target,c=b.olcs_cancellers;if(c)if(a=a.feature){b=x(a);var d=c[b];d&&(d(),delete c[b])}else{for(d in c)if(c.hasOwnProperty(d))c[d]();b.olcs_cancellers={}}};function gl(a,b,c){c.olLayer=a;c.olFeature=b}
function hl(a,b,c,d,e,f,g,h,l){function m(a,b){var c;b instanceof HTMLCanvasElement?c={geometry:a}:c={geometry:a,attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(b)}};return new Cesium.GeometryInstance(c)}l={flat:!!l,renderState:{depthTest:{enabled:!0}},translucent:1!==f.alpha};void 0!==h&&(l.renderState||(l.renderState={}),l.renderState.lineWidth=1);h=Array.isArray(e)?e.map(function(a){return m(a,f)}):m(e,f);var n=a.bc(b,c,d);e=a.Cd(b,c,d);var p;f instanceof HTMLCanvasElement?(l.material=
Cesium.Material.fromType("Wallpaper",{image:f,anchor:Cesium.SceneTransforms.wgs84ToDrawingBufferCoordinates(a.scene,Cesium.Cartesian3.fromDegreesArray(yb(d.D()))[0])}),l=new Cesium.MaterialAppearance(l)):l=new Cesium.PerInstanceColorAppearance(l);var q=a.Ve(b,c);if(n!=Cesium.HeightReference.CLAMP_TO_GROUND||g)null!=q&&g&&("Polygon"===d.T()||"MultiPolygon"===d.T()||"Circle"===d.T())&&Cesium.GroundPolylinePrimitive.isSupported(a.scene)?p=new Cesium.ClassificationPrimitive({geometryInstances:h,appearance:l,
shadows:Cesium.ShadowMode.ENABLED,allowPicking:e,classificationType:q}):p=new Cesium.Primitive({geometryInstances:h,appearance:l,shadows:Cesium.ShadowMode.ENABLED,allowPicking:e});else{if((d=h.geometry.constructor)&&!d.createShadowVolume)return null;a={geometryInstances:h,classificationType:null!=q?q:a.b.terrain,allowPicking:e};f instanceof HTMLCanvasElement&&(a.appearance=l);p=new Cesium.GroundPrimitive(a)}e&&gl(b,c,p);return p}
function il(a,b){var c=a.qa()?a.qa().b:null;a=a.pa()?a.pa().b:null;var d="black";a&&b?d=a:c&&(d=c);return Wi(d)}function jl(a){a=a.pa()?a.pa().c:void 0;return void 0!==a?a:0}
function kl(a,b,c,d,e,f,g,h){var l=new Cesium.PrimitiveCollection;if(g.qa()){a:{var m=g.qa();var n="black";if(m&&(n=m.b,n instanceof CanvasPattern)){if(Cesium.GroundPrimitive.supportsMaterials(a.scene)){m=document.createElement("canvas");var p=m.getContext("2d");p.fillStyle=n;p.fillRect(0,0,300,300);n=m;break a}n=m.fallBackColor||n}n=Wi(n)}n=hl(a,b,c,d,e,n,h);l.add(n)}g.pa()&&f&&!(n instanceof Cesium.ClassificationPrimitive)&&(e=jl(g))&&(g=il(g,!0),(a=hl(a,b,c,d,f,g,h,e,!0))&&l.add(a));return l}
function ll(a,b,c,d,e,f){if(f instanceof Cesium.PrimitiveCollection)var g=f;else g=new Cesium.PrimitiveCollection,g.add(f);if(!e.ra()||!e.ra().ra())return g;(a=a.Dg(b,c,d,e.ra()))&&g.add(a);return g}k.ig=function(a,b,c,d){a=a.add(b);gl(c,d,a);return a};
k.Cg=function(a,b,c,d,e){c=Vi(c,d);var f=c.va();d=f.slice();d[0]+=c.Gd();var g=Ti(f);d=Ti(d);var h=Cesium.Cartesian3.distance(g,d),l=this.bc(a,b,c);d=ml(a,b);var m=nl([f],b.get("olcs_groundLevel"));d?(m-=d.Ae,f=new Cesium.CircleGeometry({center:g,radius:h,extrudedHeight:m+d.extrudedHeight,height:m,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT})):f=new Cesium.CircleGeometry({center:g,radius:h,height:m,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT});if(!d&&l===Cesium.HeightReference.CLAMP_TO_GROUND&&
Cesium.GroundPolylinePrimitive.isSupported(this.scene)){if(g=jl(e)){var n=al(new hc(6378137),c.va(),h);n=Ui(n.ug(0).U());n=new Cesium.GroundPolylinePrimitive({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.GroundPolylineGeometry({positions:n,width:g})}),appearance:new Cesium.PolylineMaterialAppearance({material:this.te(b,e,!0)}),allowPicking:this.Cd(a,b,c),classificationType:Cesium.ClassificationType.TERRAIN})}}else var p=d?new Cesium.CircleOutlineGeometry({center:g,radius:h,extrudedHeight:m+
d.extrudedHeight,height:m,vertexFormat:Cesium.PerInstanceColorAppearance.FLAT_VERTEX_FORMAT}):new Cesium.CircleOutlineGeometry({center:g,radius:h,height:m,vertexFormat:Cesium.PerInstanceColorAppearance.FLAT_VERTEX_FORMAT});p=kl(this,a,b,c,f,p,e,d);n&&(gl(a,b,n),p.add(n));return ll(this,a,b,c,e,p)};
k.re=function(a,b,c,d,e,f){c=Vi(c,d);var g=this.Cd(a,b,c),h=this.bc(a,b,c);d=ml(a,b);if(!f&&d){f=c.U();g=nl(f,d.pe);h=g+d.extrudedHeight;g-=d.Ae;var l=Ui(f);f=Cesium.WallGeometry.fromConstantHeights({positions:l,maximumHeight:h,minimumHeight:g,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT});g=Cesium.WallOutlineGeometry.fromConstantHeights({positions:l,maximumHeight:h,minimumHeight:g});d=kl(this,a,b,c,f,g,e,d);return ll(this,a,b,c,e,d)}f=Ui(c.U());d=new Cesium.PolylineMaterialAppearance({material:this.te(b,
e,!0)});f={positions:f,width:jl(e),vertexFormat:d.vertexFormat};l=this.Ve(a,b);h==Cesium.HeightReference.CLAMP_TO_GROUND?Cesium.GroundPolylinePrimitive.isSupported(this.scene)?d=new Cesium.GroundPolylinePrimitive({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.GroundPolylineGeometry(f)}),classificationType:null!=l?l:this.b.terrain,appearance:d,allowPicking:g}):(d=il(e,!0),d=new Cesium.GroundPrimitive({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.CorridorGeometry(f),
attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(d)}}),classificationType:null!=l?l:this.b.terrain,allowPicking:g})):d=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.PolylineGeometry(f)}),appearance:d,allowPicking:g});gl(a,b,d);return ll(this,a,b,c,e,d)};
k.jf=function(a,b,c,d,e){c=Vi(c,d);var f=c.Ic();d={};for(var g=ml(a,b),h=Infinity,l=0;l<f.length;++l){var m=f[l].U();g&&(h=nl(m,g.pe,h));var n=m[m.length-1];m[0][0]===n[0]&&m[0][1]===n[1]||m.push(m[0]);m=Ui(m);0==l?d.positions=m:(d.holes||(d.holes=[]),d.holes.push({positions:m}))}l=!0;if(g)if(g.Ae){var p=h-g.Ae;l=!1}else g.pe&&(p=g.pe,l=!1);if(g&&g.fk){p=p||h;f=[];var q=[];l=!1;m=h+g.extrudedHeight;n=h+g.ek;for(var t=0;t<g.fk;t++)f[t]=new Cesium.PolygonGeometry({polygonHierarchy:d,perPositionHeight:l,
height:p,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,extrudedHeight:n}),q[t]=new Cesium.PolygonOutlineGeometry({polygonHierarchy:d,height:p,perPositionHeight:l,extrudedHeight:n,vertexFormat:Cesium.PerInstanceColorAppearance.FLAT_VERTEX_FORMAT}),n+=g.ek,n=n>m?m:n}else f=new Cesium.PolygonGeometry({polygonHierarchy:d,perPositionHeight:l,height:p,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,extrudedHeight:g?h+g.extrudedHeight:void 0});if(!g&&this.bc(a,b,c)===Cesium.HeightReference.CLAMP_TO_GROUND&&
Cesium.GroundPolylinePrimitive.isSupported(this.scene)){if(p=jl(e),0<p){var u=d.holes?d.holes.length:0;h=Array(u+1);h[0]=new Cesium.GeometryInstance({geometry:new Cesium.GroundPolylineGeometry({positions:d.positions,width:p})});for(l=0;l<u;l++)h[l+1]=new Cesium.GeometryInstance({geometry:new Cesium.GroundPolylineGeometry({positions:d.holes[l].positions,width:p})});u=new Cesium.GroundPolylinePrimitive({geometryInstances:h,appearance:new Cesium.PolylineMaterialAppearance({material:this.te(b,e,!0)}),
allowPicking:this.Cd(a,b,c),classificationType:Cesium.ClassificationType.TERRAIN})}}else q||(q=new Cesium.PolygonOutlineGeometry({polygonHierarchy:d,height:p,perPositionHeight:l,extrudedHeight:g?h+g.extrudedHeight:void 0,vertexFormat:Cesium.PerInstanceColorAppearance.FLAT_VERTEX_FORMAT}));q=kl(this,a,b,c,f,q,e,g);u&&(gl(a,b,u),q.add(u));return ll(this,a,b,c,e,q)};
function ml(a,b){var c=b.get("olcs_extrudedHeight"),d=b.get("olcs_storeyNumber");var e=null!=b.get("olcs_storeyHeight")?b.get("olcs_storeyHeight"):a.get("olcs_storeyHeight");0>c?e=d=void 0:c&&e?d=Math.ceil(c/e):c&&d?e=c/d:e&&d&&(c=d*e);200<d&&(d=e=void 0);if(c){var f=Number;a=null!=b.get("olcs_skirt")?b.get("olcs_skirt"):a.get("olcs_skirt");f=f(a);f=Number.isFinite(f)?f:0;return{extrudedHeight:c,fk:d,ek:e,Ae:f,pe:b.get("olcs_groundLevel")}}return null}
function nl(a,b,c){if(null!=b&&Number.isFinite(Number(b)))return b;b=a.length;for(c=null!=c?c:Infinity;b--;)c=a[b][2]&&a[b][2]<c?a[b][2]:c;return Number.isFinite(c)?c:0}k.Cd=function(a,b,c){c=c.get("olcs_allowPicking");void 0===c&&(c=b.get("olcs_allowPicking"));void 0===c&&(c=a.get("olcs_allowPicking"));return null!=c?!!c:!0};
k.bc=function(a,b,c){var d=c.get("olcs_altitudeMode");void 0===d&&(d=b.get("olcs_altitudeMode"));void 0===d&&(d=a.get("olcs_altitudeMode"));a=Cesium.HeightReference.NONE;"clampToGround"===d?a=Cesium.HeightReference.CLAMP_TO_GROUND:"relativeToGround"===d&&(a="Point"===c.T()?Cesium.HeightReference.RELATIVE_TO_GROUND:Cesium.HeightReference.CLAMP_TO_GROUND);return a};k.Ve=function(a,b){(b=b.get("olcs_classificationType"))||(b=a.get("olcs_classificationType"));return"string"===typeof b?this.b[b]:void 0};
function pl(a,b,c,d,e,f){d=d.U();var g=d.slice();g[2]=f;f=new K([d,g]);f.set("olcs_altitudeMode","absolute",!1);return a.re(b,c,f,"EPSG:4326",e,!0)}
k.se=function(a,b,c,d,e,f,g){var h=Vi(c,d),l=ml(a,b);if(l){var m=nl([c.U()],l.pe);d=h.U();d[2]=m+l.extrudedHeight;h.ua(d)}var n=e.W();if(n){n instanceof ql&&n.load();var p=n.W(1),q=function(){if(p&&(p instanceof HTMLCanvasElement||p instanceof Image||p instanceof HTMLImageElement)){var d=h.U(),m,q=n.La();void 0!==q&&(m=new Cesium.Color(1,1,1,q));q=b.get("olcs_zCoordinateEyeOffset");"number"!=typeof q&&(q=0);var t=this.bc(a,b,c),u=t;t!==Cesium.HeightReference.NONE&&l&&(u=Cesium.HeightReference.NONE);
u===Cesium.HeightReference.RELATIVE_TO_GROUND&&(t=b.get("olcs_heightAboveGround"),"number"==typeof t&&(d[2]=t));d=Ti(d);m={image:p,color:m,scale:n.Ma(),heightReference:u,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,position:d,id:b.a,eyeOffset:new Cesium.Cartesian3(0,0,q)};d=n.Gc();q=n.gc();d&&q&&(m.pixelOffset=new Cesium.Cartesian2(q[0]/2-d[0],q[1]/2-d[1]));b.get("olcs_scaleByDistance")&&Array.isArray(b.get("olcs_scaleByDistance")&&4===b.get("olcs_scaleByDistance").length)&&(d=b.get("olcs_scaleByDistance"),
m.scaleByDistance=new Cesium.NearFarScalar(d[0],d[1],d[2],d[3]));m=this.ig(f,m,a,b,h,e);g&&g(m)}}.bind(this);if(p instanceof Image&&(""==p.src||0==p.naturalHeight||0==p.naturalWidth||!p.complete)){var t=!1,u=a.ba();u instanceof Gk&&(u=u.vc());u.H(["removefeature","clear"],this.g);(d=u.olcs_cancellers)||(d=u.olcs_cancellers={});u=x(b);if(d[u])d[u]();d[u]=function(){t=!0};Ia(p,"load",function(){f.isDestroyed()||t||q()})}else q()}return l?(m-=l.Ae,pl(this,a,b,h,e,m)):e.ra()&&e.ra().ra()?ll(this,a,b,
h,e,new Cesium.Primitive):null};
k.Eg=function(a,b,c,d,e,f,g){function h(c,f){var g=new Cesium.PrimitiveCollection;c.forEach(function(c){g.add(f(a,b,c,d,e))});return g}var l=this;switch(c.T()){case "MultiPoint":c=c.Hd();if(e.ra()){var m=new Cesium.PrimitiveCollection;c.forEach(function(c){(c=l.se(a,b,c,d,e,f,g))&&m.add(c)});return m}c.forEach(function(c){l.se(a,b,c,d,e,f,g)});return null;case "MultiLineString":return c=c.Hc(),h(c,this.re.bind(this));case "MultiPolygon":return c=c.bd(),h(c,this.jf.bind(this));default:qa("Unhandled multi geometry type"+
c.T())}};
k.Dg=function(a,b,c,d){var e=d.ra(),f=new Cesium.LabelCollection({scene:this.scene}),g=Gb(c.D());if(c instanceof Rd){var h=c.ac();g[2]=3==h.length?h[2]:0}h={};h.position=Ti(g);h.text=e;h.heightReference=this.bc(a,b,c);h.pixelOffset=new Cesium.Cartesian2(d.Lc||0,d.Mc||0);c=d.Zb;void 0!==c&&(h.font=c);c=void 0;d.qa()&&(h.fillColor=il(d,!1),c=Cesium.LabelStyle.FILL);d.pa()&&(h.outlineWidth=jl(d),h.outlineColor=il(d,!0),c=Cesium.LabelStyle.OUTLINE);d.qa()&&d.pa()&&(c=Cesium.LabelStyle.FILL_AND_OUTLINE);h.style=
c;switch(d.Vc){case "left":c=Cesium.HorizontalOrigin.LEFT;break;case "right":c=Cesium.HorizontalOrigin.RIGHT;break;default:c=Cesium.HorizontalOrigin.CENTER}h.horizontalOrigin=c;if(d.sb){switch(d.sb){case "top":var l=Cesium.VerticalOrigin.TOP;break;case "middle":l=Cesium.VerticalOrigin.CENTER;break;case "bottom":l=Cesium.VerticalOrigin.BOTTOM;break;case "alphabetic":l=Cesium.VerticalOrigin.TOP;break;case "hanging":l=Cesium.VerticalOrigin.BOTTOM;break;default:qa("unhandled baseline "+d.sb)}h.verticalOrigin=
l;d=b.get("olcs_zCoordinateEyeOffset");"number"===typeof d&&(h.eyeOffset=new Cesium.Cartesian3(0,0,d))}d=f.add(h);gl(a,b,d);return f};k.te=function(a,b,c){a=b.qa();b=b.pa();if(c&&!b||!c&&!a)return null;a=c?b.b:a.b;a=Wi(a);return c&&b.g?Cesium.Material.fromType("Stripe",{horizontal:!1,repeat:500,evenColor:a,oddColor:new Cesium.Color(0,0,0,0)}):Cesium.Material.fromType("Color",{color:a})};
k.Xd=function(a,b,c,d){a=b.Nc();var e=null;a&&(e=a.call(b,d));!e&&c&&(e=c(b,d));return e?Array.isArray(e)?e[0]:e:null};
k.fd=function(a,b,c,d,e){function f(a){var c=d.featureToCesiumMap[x(b)];c?c.push(a):d.featureToCesiumMap[x(b)]=[a]}var g=this;e=e||b.V();var h=d.projection;if(!e)return null;switch(e.T()){case "GeometryCollection":var l=new Cesium.PrimitiveCollection;e.Xe().forEach(function(e){e&&(e=g.fd(a,b,c,d,e))&&l.add(e)});return l;case "Point":return(e=this.se(a,b,e,h,c,d.billboards,f))?e:null;case "Circle":return this.Cg(a,b,e,h,c);case "LineString":return 2>e.U().length?null:this.re(a,b,e,h,c);case "Polygon":return e.U().some(function(a){return 2>
a.length})?null:this.jf(a,b,e,h,c);case "MultiPoint":case "MultiLineString":case "MultiPolygon":return(e=this.Eg(a,b,e,h,c,d.billboards,f))?e:null;case "LinearRing":throw Error("LinearRing should only be part of polygon.");default:throw Error("Ol geom type not handled : "+e.T());}};
k.kf=function(a,b,c){var d=b.c;b=b.Ia();if(void 0===b||!d)throw qa("View not ready"),Error("View not ready");var e=a.ba();if(a instanceof rl)if(e instanceof Gk)e=e.vc();else return new el(d,this.scene);e=e.Rc();d=new el(d,this.scene);for(var f=d.g,g=0;g<e.length;++g){var h=e[g];if(h){var l=a instanceof rl?a.ba().o:a.a;if(l=this.Xd(a,h,l,b))if(l=this.fd(a,h,l,f))c[x(h)]=l,d.b.add(l)}}return d};
k.convert=function(a,b,c,d){var e=b.c;b=b.Ia();if(void 0==b||!e)return null;if(a instanceof rl){var f=a.ba();if(f instanceof Gk)f=f.o;else return null}else f=a.a;b=this.Xd(a,c,f,b);if(!b)return null;d.projection=e;return this.fd(a,c,b,d)};function sl(a,b,c){el.call(this,a,b);this.a=new Cesium.CustomDataSource(x({}).xj);this.a.clustering.enabled=!1;this.a.clustering.minimumClusterSize=2;a=c.ba();this.a.clustering.pixelRange=a.B;this.b=this.a.entities;this.g.entities=this.b}la(sl,el);sl.prototype.i=function(){return this.a};sl.prototype.f=function(a){this.a.clustering.enabled=a};function tl(a){fl.call(this,a);this.a={};new Cesium.DataSourceCollection}la(tl,fl);tl.prototype.kf=function(a,b,c){var d=b.c;b=b.Ia();if(void 0===b||!d)throw qa("View not ready"),Error("View not ready");var e=a.ba();e=e.vc();e=e.Rc();d=new sl(d,this.scene,a);var f=d.g;f.il=c;for(var g=0;g<e.length;++g){var h=e[g];if(h){var l=this.Xd(a,h,a.a,b);l&&(l=this.fd(a,h,l,f))&&(c[x(h)]=l,d.b.add(l))}}c=d.a;c.clustering.clusterEvent.addEventListener(this.c.bind(this,a));c.clustering.enabled=!0;return d};
tl.prototype.fd=function(a,b,c,d,e){var f=e||b.V();if(!f||"Point"!=f.T())return null;f=Vi(f,d.projection);var g={};e=f.U();var h=b.get("olcs_heightAboveGround")||a.get("olcs_heightAboveGround");"number"==typeof h&&(e[2]=h);e=Ti(e);g.position=e;g.id=b.a;c.ra()&&(g.label=ul(this,a,b,f,c.ra()));var l=c.W();if(l){l instanceof ql&&l.load();var m=l.W(1),n=function(){if(m&&(m instanceof HTMLCanvasElement||m instanceof Image||m instanceof HTMLImageElement)){var c,d=l.La();void 0!==d&&(c=new Cesium.Color(1,
1,1,d));d=b.get("olcs_zCoordinateEyeOffset");"number"!=typeof d&&(d=0);var e=this.bc(a,b,f);g.billboard={image:m,color:c,scale:l.Ma(),heightReference:e,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,eyeOffset:new Cesium.Cartesian3(0,0,d)};b.get("olcs_scaleByDistance")&&Array.isArray(b.get("olcs_scaleByDistance")&&4===b.get("olcs_scaleByDistance").length)&&(c=b.get("olcs_scaleByDistance"),g.billboard.scaleByDistance=new Cesium.NearFarScalar(c[0],c[1],c[2],c[3]));c=new Cesium.Entity(g);vl(a,b,c);return c}}.bind(this);
if(m instanceof Image&&(""==m.src||0==m.naturalHeight||0==m.naturalWidth||!m.complete)){var p=!1;e=a.ba();e=e.vc();(c=e.olcs_cancellers)||(c=e.olcs_cancellers={});e=x(b);if(c[e])c[e]();c[e]=function(){p=!0};Ia(m,"load",function(){if(!d.entities.isDestroyed()&&!p){var a=n();d.il[x(b)]=a}})}else return n()}c=new Cesium.Entity(g);vl(a,b,c);return c};function vl(a,b,c){c.olLayer=a;c.olFeature=b}
function ul(a,b,c,d,e){var f={};f.text=e.ra();f.heightReference=a.bc(b,c,d);a=e.Lc;b=e.Mc;0!=a&&0!=b&&(a=new Cesium.Cartesian2(a,b),f.pixelOffset=a);a=e.Zb;void 0!==a&&(f.font=a);a=void 0;e.qa()&&(f.fillColor=il(e,!1),a=Cesium.LabelStyle.FILL);e.pa()&&(f.outlineWidth=jl(e),f.outlineColor=il(e,!0),a=Cesium.LabelStyle.OUTLINE);e.qa()&&e.pa()&&(a=Cesium.LabelStyle.FILL_AND_OUTLINE);f.style=a;switch(e.Vc){case "left":a=Cesium.HorizontalOrigin.LEFT;break;case "right":a=Cesium.HorizontalOrigin.RIGHT;break;
default:a=Cesium.HorizontalOrigin.CENTER}f.horizontalOrigin=a;if(e.sb){switch(e.sb){case "top":var g=Cesium.VerticalOrigin.TOP;break;case "middle":g=Cesium.VerticalOrigin.CENTER;break;case "bottom":g=Cesium.VerticalOrigin.BOTTOM;break;case "alphabetic":g=Cesium.VerticalOrigin.TOP;break;case "hanging":g=Cesium.VerticalOrigin.BOTTOM;break;default:qa("unhandled baseline "+e.sb)}f.verticalOrigin=g}return f}tl.prototype.i=function(a,b){a=x(a).toString();this.a[a]=b};
tl.prototype.c=function(a,b,c){c.label.show=!1;c.label.entities=b;c.billboard.id=c.label.id;c.billboard.entities=b;var d=a.get("olcs_zCoordinateEyeOffset");"number"!=typeof d&&(d=0);c.billboard.eyeOffset=new Cesium.Cartesian3(0,0,d);c.label.eyeOffset=new Cesium.Cartesian3(0,0,d);d=a.get("olcs_altitudeMode");var e=Cesium.HeightReference.NONE;"clampToGround"===d?e=Cesium.HeightReference.CLAMP_TO_GROUND:"relativeToGround"===d&&(e=Cesium.HeightReference.RELATIVE_TO_GROUND);c.billboard.heightReference=
e;c.label.heightReference=e;c.billboard.verticalOrigin=Cesium.VerticalOrigin.BOTTOM;d=x(a).toString();(d=this.a[d])&&"function"===typeof d?d(b,c):(d=b,1===b.length&&(d=[a.ba().vc().pg(b[0].id)]),a=(0,a.a)(new E({features:d}),1),a.W()&&wl(this,a.W(),c.billboard),a.ra()&&Object.assign(c.label,xl(a.ra())))};
function wl(a,b,c){b instanceof ql&&b.load();var d=b.W(1),e=function(){if(d&&(d instanceof HTMLCanvasElement||d instanceof Image||d instanceof HTMLImageElement)){var a,e=b.La();void 0!==e&&(a=new Cesium.Color(1,1,1,e));Object.assign(c,{image:d,color:a,scale:b.Ma(),show:!0})}}.bind(a);d instanceof Image&&(""==d.src||0==d.naturalHeight||0==d.naturalWidth||!d.complete)?Ia(d,"load",function(){e()}):e()}
function xl(a){var b={};b.text=a.ra();b.show=!0;var c=a.Lc,d=a.Mc;0!=c&&0!=d&&(c=new Cesium.Cartesian2(c,d),b.pixelOffset=c);c=a.Zb||"10px sans-serif";void 0!==c&&(b.font=c);c=void 0;a.qa()&&(b.fillColor=il(a,!1),c=Cesium.LabelStyle.FILL);a.pa()&&(b.outlineWidth=jl(a),b.outlineColor=il(a,!0),c=Cesium.LabelStyle.OUTLINE);a.qa()&&a.pa()&&(c=Cesium.LabelStyle.FILL_AND_OUTLINE);b.style=c;switch(a.Vc){case "left":c=Cesium.HorizontalOrigin.LEFT;break;case "right":c=Cesium.HorizontalOrigin.RIGHT;break;default:c=
Cesium.HorizontalOrigin.CENTER}b.horizontalOrigin=c;if(a.sb){switch(a.sb){case "top":var e=Cesium.VerticalOrigin.TOP;break;case "middle":e=Cesium.VerticalOrigin.CENTER;break;case "bottom":e=Cesium.VerticalOrigin.BOTTOM;break;case "alphabetic":e=Cesium.VerticalOrigin.TOP;break;case "hanging":e=Cesium.VerticalOrigin.BOTTOM;break;default:qa("unhandled baseline "+a.sb)}b.verticalOrigin=e}return b};function yl(a,b){this.zc=b.imageryLayers;this.Nd=new Cesium.ImageryLayerCollection;Yb.call(this,a,b)}v(yl,Yb);k=yl.prototype;k.Oe=function(a){this.zc.add(a);this.Nd.add(a)};k.jg=function(a){a.destroy()};k.kh=function(a,b){this.zc.remove(a,b);this.Nd.remove(a,!1)};k.Lj=function(a){for(var b=0;b<this.Nd.length;++b)this.zc.remove(this.Nd.get(b),a);this.Nd.removeAll(!1)};function zl(a,b){return(a=Ri(a,b))?[a]:null}
k.Zd=function(a){var b=zl(a,this.view.c);if(b){a.H(["change:opacity","change:visible"],function(){for(var c=0;c<b.length;++c)Si(a,b[c])});for(var c=0;c<b.length;++c)Si(a,b[c]);a.H("change:extent",function(){for(var c=0;c<b.length;++c)this.zc.remove(b[c],!0),this.Nd.remove(b[c],!1);delete this.ed[x(a)];this.vh()},this);a.H("change",function(){for(var a=0;a<b.length;++a){var c=this.zc.indexOf(b[a]);0<=c&&(this.zc.remove(b[a],!1),this.zc.add(b[a],c))}},this)}return Array.isArray(b)?b:null};
k.Rg=function(){for(var a=[],b={},c=[this.c];0<c.length;){var d=c.splice(0,1)[0];a.push(d);b[x(d)]=d.Da();d instanceof Wb&&(d=d.Tb())&&c.unshift.apply(c,[].concat(ia(d.a)))}gd(a,function(a,c){return b[x(a)]-b[x(c)]});a.forEach(function(a){a=x(a).toString();(a=this.ed[a])&&a.forEach(this.Rp,this)},this)};k.Rp=function(a){this.zc.raiseToTop(a)};function Al(a){Ye.call(this,a);this.c=!1;this.s=-1;this.o=NaN;this.j=ib();this.i=this.l=null;this.f=kd()}v(Al,Ye);
Al.prototype.v=function(a,b,c){var d=a.extent,e=a.pixelRatio,f=b.hf?a.skippedFeatureUids:{},g=a.viewState,h=g.projection;g=g.rotation;var l=h.D(),m=this.a.ba(),n=af(this,a,0);$e(this,"precompose",c,a,n);var p=b.extent,q=void 0!==p;q&&Ze(c,a,p);if((p=this.i)&&!p.g()){var t=0,u=0;if(Ra(this.a,"render")){var w=c.canvas.width;var z=c.canvas.height;if(g){var D=Math.round(Math.sqrt(w*w+z*z));t=(D-w)/2;u=(D-z)/2;w=z=D}this.f.canvas.width=w;this.f.canvas.height=z;w=this.f}else w=c;z=w.globalAlpha;w.globalAlpha=
b.opacity;w!=c&&w.translate(t,u);D=a.size[0]*e;var B=a.size[1]*e;Gd(w,-g,D/2,B/2);p.i(w,e,n,g,f);if(m.aa&&h.a&&!pb(l,d)){h=d[0];m=Eb(l);for(var S=0;h<l[0];)--S,n=m*S,n=af(this,a,n),p.i(w,e,n,g,f),h+=m;S=0;for(h=d[2];h>l[2];)++S,n=m*S,n=af(this,a,n),p.i(w,e,n,g,f),h-=m;n=af(this,a,0)}Gd(w,g,D/2,B/2);w!=c&&($e(this,"render",w,a,n),c.drawImage(w.canvas,-t,-u),w.translate(-t,-u));w.globalAlpha=z}q&&c.restore();this.Cf(c,a,b,n)};
Al.prototype.Ga=function(a,b,c,d,e){if(this.i){var f=this.a,g={};return this.i.Ga(a,b.viewState.resolution,b.viewState.rotation,c,{},function(a){var b=x(a).toString();if(!(b in g))return g[b]=!0,d.call(e,a,f)})}};Al.prototype.C=function(){Pe(this)};
Al.prototype.Jd=function(a){function b(a){var b=a.Nc();if(b)var d=b.call(a,m);else(b=c.a)&&(d=b(a,m));if(d){if(d){b=!1;if(Array.isArray(d))for(var e=0,f=d.length;e<f;++e)b=tk(q,a,d[e],sk(m,n),this.C,this)||b;else b=tk(q,a,d,sk(m,n),this.C,this)||b;a=b}else a=!1;this.c=this.c||a}}var c=this.a,d=c.ba();Se(a.attributions,d.j);Te(a,d);var e=a.viewHints[0],f=a.viewHints[1],g=c.$,h=c.la;if(!this.c&&!g&&e||!h&&f)return!0;var l=a.extent;h=a.viewState;e=h.projection;var m=h.resolution,n=a.pixelRatio;f=c.g;
var p=c.i;g=c.get(Bl);void 0===g&&(g=rk);l=kb(l,p*m);p=h.projection.D();d.aa&&h.projection.a&&!pb(p,a.extent)&&(a=Math.max(Eb(l)/2,Eb(p)),l[0]=p[0]-a,l[2]=p[2]+a);if(!this.c&&this.o==m&&this.s==f&&this.l==g&&pb(this.j,l))return!0;this.i=null;this.c=!1;var q=new ik(.5*m/n,l,m,d.Ua,c.i);d.qe(l,m,e);if(g){var t=[];d.oc(l,function(a){t.push(a)},this);t.sort(g);t.forEach(b,this)}else d.oc(l,b,this);mk(q);this.o=m;this.s=f;this.l=g;this.j=l;this.i=q;return!0};function Cl(a,b){Gh.call(this,a,b);this.o=!1;this.aa=-1;this.N=NaN;this.C=ib();this.l=this.i=this.G=null}v(Cl,Gh);k=Cl.prototype;k.gj=function(a,b,c){this.l=b;var d=a.viewState,e=this.i,f=a.size,g=a.pixelRatio,h=this.c.g;e&&!e.g()&&(h.enable(h.SCISSOR_TEST),h.scissor(0,0,f[0]*g,f[1]*g),e.i(c,d.center,d.resolution,d.rotation,f,g,b.opacity,b.hf?a.skippedFeatureUids:{}),h.disable(h.SCISSOR_TEST))};k.xa=function(){var a=this.i;a&&(th(a,this.c.i)(),this.i=null);Gh.prototype.xa.call(this)};
k.Ga=function(a,b,c,d,e){if(this.i&&this.l){c=b.viewState;var f=this.a,g={};return this.i.Ga(a,this.c.i,c.center,c.resolution,c.rotation,b.size,b.pixelRatio,this.l.opacity,{},function(a){var b=x(a).toString();if(!(b in g))return g[b]=!0,d.call(e,a,f)})}};k.vf=function(a,b){if(this.i&&this.l){var c=b.viewState;return zh(this.i,a,this.c.i,c.resolution,c.rotation,b.pixelRatio,this.l.opacity,b.skippedFeatureUids)}return!1};
k.Mg=function(a,b,c,d){a=ve(b.pixelToCoordinateTransform,a.slice());if(this.vf(a,b))return c.call(d,this.a,null)};k.hj=function(){Pe(this)};
k.Og=function(a,b,c){function d(a){var b=a.Nc();if(b)var c=b.call(a,m);else(b=e.a)&&(c=b(a,m));if(c){if(c){b=!1;if(Array.isArray(c))for(var d=c.length-1;0<=d;--d)b=tk(q,a,c[d],sk(m,n),this.hj,this)||b;else b=tk(q,a,c,sk(m,n),this.hj,this)||b;a=b}else a=!1;this.o=this.o||a}}var e=this.a;b=e.ba();Se(a.attributions,b.j);Te(a,b);var f=a.viewHints[0],g=a.viewHints[1],h=e.$,l=e.la;if(!this.o&&!h&&f||!l&&g)return!0;g=a.extent;h=a.viewState;f=h.projection;var m=h.resolution,n=a.pixelRatio;h=e.g;var p=e.i;
l=e.get(Bl);void 0===l&&(l=rk);g=kb(g,p*m);if(!this.o&&this.N==m&&this.aa==h&&this.G==l&&pb(this.C,g))return!0;this.i&&a.postRenderFunctions.push(th(this.i,c));this.o=!1;var q=new sh(.5*m/n,g,e.i);b.qe(g,m,f);if(l){var t=[];b.oc(g,function(a){t.push(a)},this);t.sort(l);t.forEach(d,this)}else b.oc(g,d,this);uh(q,c);this.N=m;this.aa=h;this.G=l;this.C=g;this.i=q;return!0};function N(a){a=a?a:{};var b=wa({},a);delete b.style;delete b.renderBuffer;delete b.updateWhileAnimating;delete b.updateWhileInteracting;Vc.call(this,b);this.i=void 0!==a.renderBuffer?a.renderBuffer:100;this.C=null;this.a=void 0;this.f(a.style);this.$=void 0!==a.updateWhileAnimating?a.updateWhileAnimating:!1;this.la=void 0!==a.updateWhileInteracting?a.updateWhileInteracting:!1}v(N,Vc);N.prototype.Yd=function(a){var b=null,c=a.T();"canvas"===c?b=new Al(this):"webgl"===c&&(b=new Cl(a,this));return b};
N.prototype.B=function(){return this.C};N.prototype.G=function(){return this.a};N.prototype.f=function(a){this.C=void 0!==a?a:kj;this.a=null===a?void 0:ij(this.C);this.u()};var Bl="renderOrder";function Dl(a){bf.call(this,a);this.O=null;this.c=qe()}v(Dl,bf);Dl.prototype.W=function(){return this.O?this.O.W():null};Dl.prototype.C=function(){return this.c};
Dl.prototype.Jd=function(a,b){var c=a.pixelRatio,d=a.size,e=a.viewState,f=e.center,g=e.resolution,h=this.a.ba(),l=a.viewHints,m=a.extent;void 0!==b.extent&&(m=Ib(m,b.extent));l[0]||l[1]||Db(m)||(b=h.W(m,g,c,e.projection))&&Qe(this,b)&&(this.O=b);if(this.O){b=this.O;l=b.D();m=b.resolution;e=b.a;var n=c*m/(g*e);l=ze(this.c,c*d[0]/2,c*d[1]/2,n,n,0,e*(l[0]-f[0])/m,e*(f[1]-l[3])/m);ze(this.s,c*d[0]/2-l[4],c*d[1]/2-l[5],c/g,-c/g,0,-f[0],-f[1]);Se(a.attributions,b.i);Te(a,h);this.f=g*c/e}return!!this.O};function El(a,b){Gh.call(this,a,b);this.l=this.i=this.O=null}v(El,Gh);function Fl(a,b){b=b.W();return Wf(a.c.g,b)}El.prototype.Ga=function(a,b,c,d,e){var f=this.a;return f.ba().Ga(a,b.viewState.resolution,b.viewState.rotation,c,b.skippedFeatureUids,function(a){return d.call(e,a,f)})};
El.prototype.Og=function(a,b){var c=this.c.g,d=a.pixelRatio,e=a.viewState,f=e.center,g=e.resolution,h=e.rotation,l=this.O,m=this.texture,n=this.a.ba(),p=a.viewHints,q=a.extent;void 0!==b.extent&&(q=Ib(q,b.extent));p[0]||p[1]||Db(q)||(b=n.W(q,g,d,e.projection))&&Qe(this,b)&&(l=b,m=Fl(this,b),this.texture&&a.postRenderFunctions.push(function(a,b){a.isContextLost()||a.deleteTexture(b)}.bind(null,c,this.texture)));l&&(c=this.c.i.j,Gl(this,c.width,c.height,d,f,g,h,l.D()),this.l=null,d=this.s,re(d),xe(d,
1,-1),ye(d,0,-1),this.O=l,this.texture=m,Se(a.attributions,l.i),Te(a,n));return!!l};function Gl(a,b,c,d,e,f,g,h){b*=f;c*=f;a=a.v;re(a);xe(a,2*d/b,2*d/c);we(a,-g);ye(a,h[0]-e[0],h[1]-e[1]);xe(a,(h[2]-h[0])/2,(h[3]-h[1])/2);ye(a,1,1)}El.prototype.vf=function(a,b){return void 0!==this.Ga(a,b,0,Ad,this)};
El.prototype.Mg=function(a,b,c,d){if(this.O&&this.O.W())if(this.a.ba()instanceof Gk){var e=ve(b.pixelToCoordinateTransform,a.slice());if(this.Ga(e,b,0,Ad,this))return c.call(d,this.a,null)}else{e=[this.O.W().width,this.O.W().height];if(!this.l){var f=b.size;b=qe();ye(b,-1,-1);xe(b,2/f[0],2/f[1]);ye(b,0,f[1]);xe(b,1,-1);f=Ae(this.v.slice());var g=qe();ye(g,0,e[1]);xe(g,1,-1);xe(g,e[0]/2,e[1]/2);ye(g,1,1);te(g,f);te(g,b);this.l=g}a=ve(this.l,a.slice());if(!(0>a[0]||a[0]>e[0]||0>a[1]||a[1]>e[1])&&(this.i||
(this.i=kd(1,1)),this.i.clearRect(0,0,1,1),this.i.drawImage(this.O.W(),a[0],a[1],1,1,0,0,1,1),e=this.i.getImageData(0,0,1,1).data,0<e[3]))return c.call(d,this.a,e)}};function rl(a){Vc.call(this,a?a:{})}v(rl,Vc);rl.prototype.Yd=function(a){var b=null,c=a.T();"canvas"===c?b=new Dl(this):"webgl"===c&&(b=new El(a,this));return b};function Hl(a,b,c){this.i=c||new fl(b);this.b=new Cesium.PrimitiveCollection;b.primitives.add(this.b);this.b.destroyPrimitives=!1;Yb.call(this,a,b)}v(Hl,Yb);k=Hl.prototype;k.Oe=function(a){a.b.counterpart=a;this.b.add(a.b)};k.jg=function(a){a.b.destroy()};k.kh=function(a,b){a.destroy();this.b.destroyPrimitives=b;this.b.remove(a.b);this.b.destroyPrimitives=!1};
k.Lj=function(a){if(this.b.destroyPrimitives=a)for(a=0;a<this.b.length;++a)this.b.get(a).counterpart.destroy();this.b.removeAll();this.b.destroyPrimitives=!1};
k.Zd=function(a){if(!(a instanceof N||a instanceof rl&&a.ba()instanceof Gk))return null;var b=a.ba();if(b instanceof Gk||b instanceof O)b=b.vc();var c=this.view,d={},e=this.i.kf(a,c,d),f=e.b,g=e.c;f.show=a.lb();g.push(y(a,"change:visible",function(){f.show=a.lb()}));var h=function(b){var g=this.i.convert(a,c,b,e.g);g&&(d[x(b)]=g,f.add(g))}.bind(this),l=function(a){a=x(a);var b=e.g,c=b.featureToCesiumMap[a];delete b.featureToCesiumMap[a];if(Array.isArray(c))for(var g=c.length,h=0;h<g;h++)b.billboards.remove(c[h]);
b=d[a];delete d[a];b&&f.remove(b)}.bind(this);g.push(y(b,"addfeature",function(a){h(a.feature)},this));g.push(y(b,"removefeature",function(a){l(a.feature)},this));g.push(y(b,"changefeature",function(a){a=a.feature;l(a);h(a)},this));g.push(y(a,"propertychange",function(a){a=a.key;if("olcs_altitudeMode"===a||"olcs_allowPicking"===a||"olcs_classificationType"===a)for(var c=b.Rc(),d=c.length,e=0;e<d;e++){var f=c[e];null==f.get(a)&&f.u()}else if("olcs_storeyHeight"===a||"olcs_skirt"===a)for(c=b.Rc(),d=
c.length,e=0;e<d;e++)f=c[e],null==f.get(a)&&(f.get("olcs_extrudedHeight")||f.get("olcs_storeyNumber"))&&f.u()},this));return e?[e]:null};k.el=function(a){this.kh(a,!0)};function Il(a){this.f=null;this.R=a.map;this.wa=a.time||function(){return Cesium.JulianDate.now()};this.Xa=Qc(this.R.Z().c,"EPSG:4326");this.X=1;this.la=this.na=0;this.aa=!0;this.o=document.createElement("DIV");var b=document.createAttribute("style");b.value="position:absolute;top:0;left:0;width:100%;height:100%;visibility:hidden;";this.o.setAttributeNode(b);if(b=a.target||null)"string"===typeof b&&(b=document.getElementById(b)),b.appendChild(this.o);else{var c=this.R.a.querySelector(".ol-overlaycontainer");
c&&c.parentNode&&c.parentNode.insertBefore(this.o,c)}this.N=!b;this.a=document.createElement("CANVAS");b=document.createAttribute("style");b.value="position:absolute;top:0;left:0;width:100%;height:100%;";this.a.setAttributeNode(b);pj()&&(b=this.a.style,pj(),b.imageRendering=oj||"");this.a.oncontextmenu=function(){return!1};this.a.onselectstart=function(){return!1};this.o.appendChild(this.a);this.g=!1;this.Ba=[];this.I=null;b=void 0!==a.sceneOptions?a.sceneOptions:{};b.canvas=this.a;b.scene3DOnly=
!0;this.b=new Cesium.Scene(b);b=this.b.screenSpaceCameraController;b.tiltEventTypes.push({eventType:Cesium.CameraEventType.LEFT_DRAG,modifier:Cesium.KeyboardEventModifier.SHIFT});b.tiltEventTypes.push({eventType:Cesium.CameraEventType.LEFT_DRAG,modifier:Cesium.KeyboardEventModifier.ALT});b.enableLook=!1;this.b.camera.constrainedAxis=Cesium.Cartesian3.UNIT_Z;this.l=new Xi(this.b,this.R);this.G=new Cesium.Globe(Cesium.Ellipsoid.WGS84);this.G.baseColor=Cesium.Color.WHITE;this.b.globe=this.G;this.b.skyAtmosphere=
new Cesium.SkyAtmosphere;this.ta=new Cesium.DataSourceCollection;this.c=new Cesium.DataSourceDisplay({scene:this.b,dataSourceCollection:this.ta});a=a.createSynchronizers?a.createSynchronizers(this.R,this.b,this.ta):[new yl(this.R,this.b),new Hl(this.R,this.b)];Jl(this);for(b=a.length-1;0<=b;--b)a[b].vh();this.N&&(a=this.a.nextElementSibling)&&(a.style.display="none");this.Db=0;this.v=void 0;this.$=Number.POSITIVE_INFINITY;this.Za=this.ea=!1;this.s=this.i=this.B=null;this.C=!1;this.j=new Cesium.BoundingSphere;
(new Cesium.EventHelper).add(this.b.postRender,Il.prototype.Jr,this)}
Object.defineProperties(Il.prototype,{trackedFeature:{get:function(){return this.B},set:function(a){if(this.B!==a){var b=this.b;if(a&&a.V()){this.B=a;this.C=!0;var c=this.Xa;b={position:new Cesium.CallbackProperty(function(){var b=a.V().U();b=c(b,void 0,b.length);return Ti(b)},!1),point:{pixelSize:1,color:Cesium.Color.TRANSPARENT}};this.i=this.c.defaultDataSource.entities.add(b)}else this.C=!1,b.screenSpaceCameraController.enableTilt=!0,this.i&&this.c.defaultDataSource.entities.remove(this.i),this.s=
this.B=this.i=null,b.camera.lookAtTransform(Cesium.Matrix4.IDENTITY)}}}});function Kl(a){void 0!==a.v&&(cancelAnimationFrame(a.v),a.v=void 0);!a.g&&!a.Za||a.ea||(a.v=requestAnimationFrame(a.Sp.bind(a)))}k=Il.prototype;
k.Sp=function(a){this.v=void 0;a-this.Db<1E3/this.$||(this.Db=a,a=this.wa(),this.b.initializeFrame(),Jl(this),this.c.update(a),this.s&&this.c.getBoundingSphere(this.i,!1,this.j)===Cesium.BoundingSphereState.DONE&&(this.j.radius=1,this.s.update(a,this.j)),this.b.render(a),aj(this.l));Kl(this)};
k.Jr=function(){if(this.C){var a=this.i,b=this.b,c=this.c.getBoundingSphere(a,!1,this.j);if(c!==Cesium.BoundingSphereState.PENDING){b.screenSpaceCameraController.enableTilt=!1;if(c=c!==Cesium.BoundingSphereState.FAILED?this.j:void 0)c.radius=1;this.s=new Cesium.EntityView(a,b,b.mapProjection.ellipsoid);this.s.update(this.wa(),c);this.C=!1}}};
function Jl(a){var b=a.a.clientWidth,c=a.a.clientHeight;if(!(0===b|0===c||b===a.na&&c===a.la&&!a.aa)){var d=a.X;pj()||(d*=window.devicePixelRatio||1);a.aa=!1;a.na=b;a.la=c;b*=d;c*=d;a.a.width=b;a.a.height=c;a.b.camera.frustum.aspectRatio=b/c}}k.tl=function(){return this.l};k.Tl=function(){return this.R};k.ul=function(){return this.b};k.zl=function(){return this.ta};k.yl=function(){return this.c};k.Bl=function(){return this.g};
k.ir=function(a){if(this.g!==a)if(this.g=a,this.o.style.visibility=this.g?"visible":"hidden",this.g){Ll(this);if(this.N){var b=this.R.i;b.forEach(function(a){this.Ba.push(a)},this);b.clear();a=this.R.Nb();a.lb()&&(this.I=a,this.I.ec(!1))}this.l.we();Kl(this)}else this.N&&(b=this.R.i,this.Ba.forEach(function(a){b.push(a)}),this.Ba.length=0,this.I&&(this.I.ec(!0),this.I=null)),this.l.td()};
k.Kr=function(a,b){var c=this;if(!this.g){Ll(this);this.l.we();var d=this.G.ellipsoid,e=this.b.camera,f=d.cartesianToCartographic(e.position);f.height<a&&(f.height=a,e.position=d.cartographicToCartesian(f));this.Za=!0;Kl(this);setTimeout(function(){c.Za=!1},b)}};k.ph=function(a){this.ea!==a&&(this.ea=a,Kl(this))};k.fl=function(){this.f||(this.f=new ec(this))};k.rl=function(){return this.f};k.ur=function(a){a=Math.max(0,a);a!==this.X&&(this.X=Math.max(0,a),this.aa=!0,this.f&&this.f.s())};
k.vr=function(a){this.$!==a&&(this.$=a,Kl(this))};function Ll(a){a=a.R.Z();var b=a.va();if(!Ml(a)||isNaN(b[0])||isNaN(b[1]))throw Error("The OpenLayers map is not properly initialized: "+b+" / "+a.Ia());};function Nl(a){return function(b){if(b)return[Mb(b[0],a[0],a[2]),Mb(b[1],a[1],a[3])]}}function Ol(a){return a};function Pl(a,b,c){this.center=a;this.resolution=b;this.rotation=c};function Ql(a){Wa.call(this);this.element=a.element?a.element:null;this.R=this.N=null;this.o=[];this.render=a.render?a.render:ua;a.target&&this.c(a.target)}v(Ql,Wa);Ql.prototype.xa=function(){md(this.element);Wa.prototype.xa.call(this)};Ql.prototype.i=function(){return this.R};
Ql.prototype.setMap=function(a){this.R&&md(this.element);for(var b=0,c=this.o.length;b<c;++b)Ca(this.o[b]);this.o.length=0;if(this.R=a)(this.N?this.N:a.v).appendChild(this.element),this.render!==ua&&this.o.push(y(a,"postrender",this.render,this)),a.render()};Ql.prototype.c=function(a){this.N="string"===typeof a?document.getElementById(a):a};function Rl(a){a=a?a:{};this.G=document.createElement("UL");this.s=document.createElement("LI");this.G.appendChild(this.s);this.s.style.display="none";this.a=void 0!==a.collapsed?a.collapsed:!0;this.j=void 0!==a.collapsible?a.collapsible:!0;this.j||(this.a=!1);var b=void 0!==a.className?a.className:"ol-attribution",c=void 0!==a.tipLabel?a.tipLabel:"Attributions",d=void 0!==a.collapseLabel?a.collapseLabel:"\u00bb";"string"===typeof d?(this.v=document.createElement("span"),this.v.textContent=d):this.v=
d;d=void 0!==a.label?a.label:"i";"string"===typeof d?(this.C=document.createElement("span"),this.C.textContent=d):this.C=d;var e=this.j&&!this.a?this.v:this.C;d=document.createElement("button");d.setAttribute("type","button");d.title=c;d.appendChild(e);y(d,"click",this.Pn,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control"+(this.a&&this.j?" ol-collapsed":"")+(this.j?"":" ol-uncollapsible");c.appendChild(this.G);c.appendChild(d);Ql.call(this,{element:c,render:a.render?
a.render:Sl,target:a.target});this.B=!0;this.l={};this.f={};this.aa={}}v(Rl,Ql);
function Sl(a){if(a=a.frameState){var b,c,d,e,f,g=a.layerStatesArray,h=wa({},a.attributions),l={},m={},n=a.viewState.projection;var p=0;for(b=g.length;p<b;p++)if(e=g[p].layer.ba()){var q=x(e).toString();if(f=e.j){var t=0;for(c=f.length;t<c;t++){var u=f[t];var w=x(u).toString();if(!(w in h)){if(d=a.usedTiles[q]){var z=e.Ob(n);a:{var D=void 0;var B,S=u,Ua=z,ya=n;if(S.a){for(D in d)if(D in S.a){z=d[D];var Da=0;for(B=S.a[D].length;Da<B;++Da){var C=S.a[D][Da];if($c(C,z)){D=!0;break a}var pa=We(Ua,ri(ya),
parseInt(D,10)),$a=pa.da-pa.ga+1;if(z.ga<pa.ga||z.da>pa.da)if($c(C,new Xc(Sb(z.ga,$a),Sb(z.da,$a),z.ha,z.ka))||z.da-z.ga+1>$a&&$c(C,pa)){D=!0;break a}}}D=!1}else D=!0}}else D=!1;D?(w in l&&delete l[w],D=u.b,D in m||(m[D]=!0,h[w]=u)):l[w]=u}}}}b=[h,l];p=b[0];b=b[1];for(var ra in this.l)ra in p?(this.f[ra]||(this.l[ra].style.display="",this.f[ra]=!0),delete p[ra]):ra in b?(this.f[ra]&&(this.l[ra].style.display="none",delete this.f[ra]),delete b[ra]):(md(this.l[ra]),delete this.l[ra],delete this.f[ra]);
for(ra in p)t=document.createElement("LI"),t.innerHTML=p[ra].b,this.G.appendChild(t),this.l[ra]=t,this.f[ra]=!0;for(ra in b)t=document.createElement("LI"),t.innerHTML=b[ra].b,t.style.display="none",this.G.appendChild(t),this.l[ra]=t;ra=!Aa(this.f)||!Aa(a.logos);this.B!=ra&&(this.element.style.display=ra?"":"none",this.B=ra);ra&&Aa(this.f)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only");a=a.logos;ra=this.aa;for(Pa in ra)Pa in a||(md(ra[Pa]),delete ra[Pa]);for(var dc in a)if(b=
a[dc],b instanceof HTMLElement&&(this.s.appendChild(b),ra[dc]=b),!(dc in ra)){var Pa=new Image;Pa.src=dc;""===b?p=Pa:(p=document.createElement("a"),p.href=b,p.appendChild(Pa));this.s.appendChild(p);ra[dc]=p}this.s.style.display=Aa(a)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}k=Rl.prototype;k.Pn=function(a){a.preventDefault();Tl(this)};function Tl(a){a.element.classList.toggle("ol-collapsed");a.a?ld(a.v,a.C):ld(a.C,a.v);a.a=!a.a}k.On=function(){return this.j};
k.Rn=function(a){this.j!==a&&(this.j=a,this.element.classList.toggle("ol-uncollapsible"),!a&&this.a&&Tl(this))};k.Qn=function(a){this.j&&this.a!==a&&Tl(this)};k.Nn=function(){return this.a};function Ul(a){return Math.pow(a,3)}function Vl(a){return 1-Ul(1-a)}function Wl(a){return 3*a*a-2*a*a*a}function Ki(a){return a};function Xl(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-rotate",c=void 0!==a.label?a.label:"\u21e7";this.a=null;"string"===typeof c?(this.a=document.createElement("span"),this.a.className="ol-compass",this.a.textContent=c):(this.a=c,this.a.classList.add("ol-compass"));var d=a.tipLabel?a.tipLabel:"Reset rotation";c=document.createElement("button");c.className=b+"-reset";c.setAttribute("type","button");c.title=d;c.appendChild(this.a);y(c,"click",Xl.prototype.v,this);d=document.createElement("div");
d.className=b+" ol-unselectable ol-control";d.appendChild(c);b=a.render?a.render:Yl;this.j=a.resetNorth?a.resetNorth:void 0;Ql.call(this,{element:d,render:b,target:a.target});this.l=void 0!==a.duration?a.duration:250;this.f=void 0!==a.autoHide?a.autoHide:!0;this.s=void 0;this.f&&this.element.classList.add("ol-hidden")}v(Xl,Ql);Xl.prototype.v=function(a){a.preventDefault();void 0!==this.j?this.j():(a=this.R.Z())&&void 0!==a.Qa()&&(0<this.l?a.animate({rotation:0,duration:this.l,easing:Vl}):a.gd(0))};
function Yl(a){if(a=a.frameState){a=a.viewState.rotation;if(a!=this.s){var b="rotate("+a+"rad)";if(this.f){var c=this.element.classList.contains("ol-hidden");c||0!==a?c&&0!==a&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")}this.a.style.msTransform=b;this.a.style.webkitTransform=b;this.a.style.transform=b}this.s=a}};function Zl(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-zoom",c=void 0!==a.delta?a.delta:1,d=void 0!==a.zoomInLabel?a.zoomInLabel:"+",e=void 0!==a.zoomOutLabel?a.zoomOutLabel:"\u2212",f=void 0!==a.zoomInTipLabel?a.zoomInTipLabel:"Zoom in",g=void 0!==a.zoomOutTipLabel?a.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=b+"-in";h.setAttribute("type","button");h.title=f;h.appendChild("string"===typeof d?document.createTextNode(d):d);y(h,"click",Zl.prototype.f.bind(this,
c));d=document.createElement("button");d.className=b+"-out";d.setAttribute("type","button");d.title=g;d.appendChild("string"===typeof e?document.createTextNode(e):e);y(d,"click",Zl.prototype.f.bind(this,-c));c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(h);c.appendChild(d);Ql.call(this,{element:c,target:a.target});this.a=void 0!==a.duration?a.duration:250}v(Zl,Ql);
Zl.prototype.f=function(a,b){b.preventDefault();if(b=this.R.Z()){var c=b.Ia();c&&(a=b.constrainResolution(c,a),0<this.a?(b.$c()&&b.Ad(),b.animate({resolution:a,duration:this.a,easing:Vl})):b.Uc(a))}};function $l(a){a=a?a:{};var b=new bb;(void 0!==a.zoom?a.zoom:1)&&b.push(new Zl(a.zoomOptions));(void 0!==a.rotate?a.rotate:1)&&b.push(new Xl(a.rotateOptions));(void 0!==a.attribution?a.attribution:1)&&b.push(new Rl(a.attributionOptions));return b};function am(a){a=a?a:{};this.a=void 0!==a.className?a.className:"ol-full-screen";var b=void 0!==a.label?a.label:"\u2922";this.j="string"===typeof b?document.createTextNode(b):b;b=void 0!==a.labelActive?a.labelActive:"\u00d7";this.l="string"===typeof b?document.createTextNode(b):b;var c=a.tipLabel?a.tipLabel:"Toggle full-screen";b=document.createElement("button");b.className=this.a+"-"+bm();b.setAttribute("type","button");b.title=c;b.appendChild(this.j);y(b,"click",this.C,this);c=document.createElement("div");
c.className=this.a+" ol-unselectable ol-control "+(cm()?"":"ol-unsupported");c.appendChild(b);Ql.call(this,{element:c,target:a.target});this.v=void 0!==a.keys?a.keys:!1;this.f=a.source}v(am,Ql);
am.prototype.C=function(a){a.preventDefault();cm()&&(a=this.R)&&(bm()?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():(a=this.f?"string"===typeof this.f?document.getElementById(this.f):this.f:a.Jc(),this.v?a.mozRequestFullScreenWithKeys?a.mozRequestFullScreenWithKeys():a.webkitRequestFullscreen?a.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):
dm(a):dm(a)))};am.prototype.s=function(){var a=this.element.firstElementChild,b=this.R;bm()?(a.className=this.a+"-true",ld(this.l,this.j)):(a.className=this.a+"-false",ld(this.j,this.l));b&&b.Td()};am.prototype.setMap=function(a){Ql.prototype.setMap.call(this,a);a&&this.o.push(y(document,em(),this.s,this))};
function cm(){var a=document.body;return!!(a.webkitRequestFullscreen||a.mozRequestFullScreen&&document.mozFullScreenEnabled||a.msRequestFullscreen&&document.msFullscreenEnabled||a.requestFullscreen&&document.fullscreenEnabled)}function bm(){return!!(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)}
function dm(a){a.requestFullscreen?a.requestFullscreen():a.msRequestFullscreen?a.msRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen()}var em=function(){var a;return function(){if(!a){var b=document.body;b.webkitRequestFullscreen?a="webkitfullscreenchange":b.mozRequestFullScreen?a="mozfullscreenchange":b.msRequestFullscreen?a="MSFullscreenChange":b.requestFullscreen&&(a="fullscreenchange")}return a}}();function fm(a){a=a?a:{};var b=document.createElement("DIV");b.className=void 0!==a.className?a.className:"ol-mouse-position";Ql.call(this,{element:b,render:a.render?a.render:gm,target:a.target});y(this,Ya(hm),this.Sn,this);a.coordinateFormat&&this.Pj(a.coordinateFormat);a.projection&&this.Ci(Gc(a.projection));this.s=void 0!==a.undefinedHTML?a.undefinedHTML:"";this.l=b.innerHTML;this.j=this.f=this.a=null}v(fm,Ql);
function gm(a){a=a.frameState;a?this.a!=a.viewState.projection&&(this.a=a.viewState.projection,this.f=null):this.a=null;im(this,this.j)}k=fm.prototype;k.Sn=function(){this.f=null};k.ai=function(){return this.get(jm)};k.Bi=function(){return this.get(hm)};k.Am=function(a){this.j=this.R.We(a);im(this,this.j)};k.Bm=function(){im(this,null);this.j=null};k.setMap=function(a){Ql.prototype.setMap.call(this,a);a&&(a=a.a,this.o.push(y(a,"mousemove",this.Am,this),y(a,"mouseout",this.Bm,this)))};
k.Pj=function(a){this.set(jm,a)};k.Ci=function(a){this.set(hm,a)};function im(a,b){var c=a.s;if(b&&a.a){if(!a.f){var d=a.Bi();a.f=d?Fc(a.a,d):Rc}if(b=a.R.ab(b))a.f(b,b),c=(c=a.ai())?c(b):b.toString()}a.l&&c==a.l||(a.element.innerHTML=c,a.l=c)}var hm="projection",jm="coordinateFormat";function km(a,b,c){Na.call(this,a);this.map=b;this.frameState=void 0!==c?c:null}v(km,Na);function lm(a,b,c,d,e){km.call(this,a,b,e);this.originalEvent=c;this.pixel=b.We(c);this.coordinate=b.ab(this.pixel);this.dragging=void 0!==d?d:!1}v(lm,km);lm.prototype.preventDefault=function(){km.prototype.preventDefault.call(this);this.originalEvent.preventDefault()};lm.prototype.stopPropagation=function(){km.prototype.stopPropagation.call(this);this.originalEvent.stopPropagation()};var mm={Yr:"singleclick",Mr:"click",Nr:"dblclick",Rr:"pointerdrag",Ur:"pointermove",Qr:"pointerdown",Xr:"pointerup",Wr:"pointerover",Vr:"pointerout",Sr:"pointerenter",Tr:"pointerleave",Pr:"pointercancel"};function nm(a,b,c,d,e){lm.call(this,a,b,c.b,d,e);this.b=c}v(nm,lm);function om(a,b){this.b=a;this.i=b};function pm(a){om.call(this,a,{mousedown:this.Wm,mousemove:this.Xm,mouseup:this.$m,mouseover:this.Zm,mouseout:this.Ym});this.a=a.g;this.g=[]}v(pm,om);function qm(a,b){a=a.g;var c=b.clientX;b=b.clientY;for(var d=0,e=a.length,f;d<e&&(f=a[d]);d++){var g=Math.abs(b-f[1]);if(25>=Math.abs(c-f[0])&&25>=g)return!0}return!1}function rm(a){var b=sm(a,a),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}k=pm.prototype;
k.Wm=function(a){if(!qm(this,a)){(1).toString()in this.a&&this.cancel(a);var b=rm(a);this.a[(1).toString()]=a;tm(this.b,"pointerdown",b,a)}};k.Xm=function(a){if(!qm(this,a)){var b=rm(a);tm(this.b,"pointermove",b,a)}};k.$m=function(a){if(!qm(this,a)){var b=this.a[(1).toString()];b&&b.button===a.button&&(b=rm(a),tm(this.b,"pointerup",b,a),delete this.a[(1).toString()])}};k.Zm=function(a){if(!qm(this,a)){var b=rm(a);um(this.b,b,a)}};k.Ym=function(a){if(!qm(this,a)){var b=rm(a);vm(this.b,b,a)}};
k.cancel=function(a){var b=rm(a);this.b.cancel(b,a);delete this.a[(1).toString()]};function wm(a){om.call(this,a,{MSPointerDown:this.en,MSPointerMove:this.fn,MSPointerUp:this.jn,MSPointerOut:this.gn,MSPointerOver:this.hn,MSPointerCancel:this.dn,MSGotPointerCapture:this.bn,MSLostPointerCapture:this.cn});this.a=a.g;this.g=["","unavailable","touch","pen","mouse"]}v(wm,om);function xm(a,b){var c=b;"number"===typeof b.pointerType&&(c=sm(b,b),c.pointerType=a.g[b.pointerType]);return c}k=wm.prototype;
k.en=function(a){this.a[a.pointerId.toString()]=a;var b=xm(this,a);tm(this.b,"pointerdown",b,a)};k.fn=function(a){var b=xm(this,a);tm(this.b,"pointermove",b,a)};k.jn=function(a){var b=xm(this,a);tm(this.b,"pointerup",b,a);delete this.a[a.pointerId.toString()]};k.gn=function(a){var b=xm(this,a);vm(this.b,b,a)};k.hn=function(a){var b=xm(this,a);um(this.b,b,a)};k.dn=function(a){var b=xm(this,a);this.b.cancel(b,a);delete this.a[a.pointerId.toString()]};
k.cn=function(a){this.b.b(new ym("lostpointercapture",a,a))};k.bn=function(a){this.b.b(new ym("gotpointercapture",a,a))};function zm(a){om.call(this,a,{pointerdown:this.cq,pointermove:this.eq,pointerup:this.hq,pointerout:this.fq,pointerover:this.gq,pointercancel:this.bq,gotpointercapture:this.jm,lostpointercapture:this.Vm})}v(zm,om);k=zm.prototype;k.cq=function(a){Am(this.b,a)};k.eq=function(a){Am(this.b,a)};k.hq=function(a){Am(this.b,a)};k.fq=function(a){Am(this.b,a)};k.gq=function(a){Am(this.b,a)};k.bq=function(a){Am(this.b,a)};k.Vm=function(a){Am(this.b,a)};k.jm=function(a){Am(this.b,a)};function ym(a,b,c){Na.call(this,a);this.b=b;a=c?c:{};this.buttons=Bm(a);this.pressure=Cm(a,this.buttons);this.bubbles="bubbles"in a?a.bubbles:!1;this.cancelable="cancelable"in a?a.cancelable:!1;this.view="view"in a?a.view:null;this.detail="detail"in a?a.detail:null;this.screenX="screenX"in a?a.screenX:0;this.screenY="screenY"in a?a.screenY:0;this.clientX="clientX"in a?a.clientX:0;this.clientY="clientY"in a?a.clientY:0;this.ctrlKey="ctrlKey"in a?a.ctrlKey:!1;this.altKey="altKey"in a?a.altKey:!1;this.shiftKey=
"shiftKey"in a?a.shiftKey:!1;this.metaKey="metaKey"in a?a.metaKey:!1;this.button="button"in a?a.button:0;this.relatedTarget="relatedTarget"in a?a.relatedTarget:null;this.pointerId="pointerId"in a?a.pointerId:0;this.width="width"in a?a.width:0;this.height="height"in a?a.height:0;this.tiltX="tiltX"in a?a.tiltX:0;this.tiltY="tiltY"in a?a.tiltY:0;this.pointerType="pointerType"in a?a.pointerType:"";this.isPrimary="isPrimary"in a?a.isPrimary:!1;b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}
v(ym,Na);function Bm(a){if(a.buttons||Dm)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}function Cm(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}var Dm=!1;try{Dm=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){};function Em(a,b){om.call(this,a,{touchstart:this.Fr,touchmove:this.Er,touchend:this.Dr,touchcancel:this.Cr});this.a=a.g;this.j=b;this.g=void 0;this.f=0;this.c=void 0}v(Em,om);k=Em.prototype;k.Nj=function(){this.f=0;this.c=void 0};
function Fm(a,b,c){b=sm(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.f;b.button=0;b.buttons=1;b.width=c.webkitRadiusX||c.radiusX||0;b.height=c.webkitRadiusY||c.radiusY||0;b.pressure=c.webkitForce||c.force||.5;b.isPrimary=a.g===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}
function Gm(a,b,c){function d(){b.preventDefault()}var e=Array.prototype.slice.call(b.changedTouches),f=e.length,g;for(g=0;g<f;++g){var h=Fm(a,b,e[g]);h.preventDefault=d;c.call(a,b,h)}}
k.Fr=function(a){var b=a.touches,c=Object.keys(this.a),d=c.length;if(d>=b.length){var e=[],f;for(f=0;f<d;++f){var g=c[f];var h=this.a[g];var l;if(!(l=1==g))a:{for(var m=b.length,n=0;n<m;n++)if(l=b[n],l.identifier===g-2){l=!0;break a}l=!1}l||e.push(h.out)}for(f=0;f<e.length;++f)this.eg(a,e[f])}b=a.changedTouches[0];c=Object.keys(this.a).length;if(0===c||1===c&&(1).toString()in this.a)this.g=b.identifier,void 0!==this.c&&clearTimeout(this.c);Hm(this,a);this.f++;Gm(this,a,this.Yp)};
k.Yp=function(a,b){this.a[b.pointerId]={target:b.target,out:b,zj:b.target};var c=this.b;b.bubbles=!0;tm(c,"pointerover",b,a);c=this.b;b.bubbles=!1;tm(c,"pointerenter",b,a);tm(this.b,"pointerdown",b,a)};k.Er=function(a){a.preventDefault();Gm(this,a,this.an)};
k.an=function(a,b){var c=this.a[b.pointerId];if(c){var d=c.out,e=c.zj;tm(this.b,"pointermove",b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(vm(this.b,d,a),um(this.b,b,a)):(b.target=e,b.relatedTarget=null,this.eg(a,b)));c.out=b;c.zj=b.target}};k.Dr=function(a){Hm(this,a);Gm(this,a,this.Gr)};
k.Gr=function(a,b){tm(this.b,"pointerup",b,a);this.b.out(b,a);Im(this.b,b,a);delete this.a[b.pointerId];b.isPrimary&&(this.g=void 0,this.c=setTimeout(this.Nj.bind(this),200))};k.Cr=function(a){Gm(this,a,this.eg)};k.eg=function(a,b){this.b.cancel(b,a);this.b.out(b,a);Im(this.b,b,a);delete this.a[b.pointerId];b.isPrimary&&(this.g=void 0,this.c=setTimeout(this.Nj.bind(this),200))};
function Hm(a,b){var c=a.j.g;b=b.changedTouches[0];if(a.g===b.identifier){var d=[b.clientX,b.clientY];c.push(d);setTimeout(function(){var a=c.indexOf(d);-1<a&&c.splice(a,1)},2500)}};function Jm(a){Qa.call(this);this.f=a;this.g={};this.i={};this.a=[];ie?Km(this,new zm(this)):je?Km(this,new wm(this)):(a=new pm(this),Km(this,a),he&&Km(this,new Em(this,a)));a=this.a.length;for(var b,c=0;c<a;c++)b=this.a[c],Lm(this,Object.keys(b.i))}v(Jm,Qa);function Km(a,b){var c=Object.keys(b.i);c&&(c.forEach(function(a){var c=b.i[a];c&&(this.i[a]=c.bind(b))},a),a.a.push(b))}Jm.prototype.c=function(a){var b=this.i[a.type];b&&b(a)};
function Lm(a,b){b.forEach(function(a){y(this.f,a,this.c,this)},a)}function Mm(a,b){b.forEach(function(a){Ja(this.f,a,this.c,this)},a)}function sm(a,b){for(var c={},d,e=0,f=Nm.length;e<f;e++)d=Nm[e][0],c[d]=a[d]||b[d]||Nm[e][1];return c}function Im(a,b,c){b.bubbles=!1;tm(a,"pointerleave",b,c)}Jm.prototype.out=function(a,b){a.bubbles=!0;tm(this,"pointerout",a,b)};Jm.prototype.cancel=function(a,b){tm(this,"pointercancel",a,b)};
function vm(a,b,c){a.out(b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||Im(a,b,c)}function um(a,b,c){b.bubbles=!0;tm(a,"pointerover",b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||(b.bubbles=!1,tm(a,"pointerenter",b,c))}function tm(a,b,c,d){a.b(new ym(b,d,c))}function Am(a,b){a.b(new ym(b.type,b,b))}Jm.prototype.xa=function(){for(var a=this.a.length,b,c=0;c<a;c++)b=this.a[c],Mm(this,Object.keys(b.i));Qa.prototype.xa.call(this)};
var Nm=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];function Om(a){Qa.call(this);this.R=a;this.f=0;this.j=!1;this.c=[];this.g=null;a=this.R.a;this.I=0;this.s={};this.i=new Jm(a);this.a=null;this.l=y(this.i,"pointerdown",this.Dm,this);this.o=y(this.i,"pointermove",this.Wq,this)}v(Om,Qa);function Pm(a,b){var c=new nm("click",a.R,b);a.b(c);0!==a.f?(clearTimeout(a.f),a.f=0,c=new nm("dblclick",a.R,b),a.b(c)):a.f=setTimeout(function(){this.f=0;var a=new nm("singleclick",this.R,b);this.b(a)}.bind(a),250)}
function Qm(a,b){"pointerup"==b.type||"pointercancel"==b.type?delete a.s[b.pointerId]:"pointerdown"==b.type&&(a.s[b.pointerId]=!0);a.I=Object.keys(a.s).length}k=Om.prototype;k.ki=function(a){Qm(this,a);var b=new nm("pointerup",this.R,a);this.b(b);!this.j&&0===a.button&&Pm(this,this.g);0===this.I&&(this.c.forEach(Ca),this.c.length=0,this.j=!1,this.g=null,Ma(this.a),this.a=null)};
k.Dm=function(a){Qm(this,a);var b=new nm("pointerdown",this.R,a);this.b(b);this.g=a;0===this.c.length&&(this.a=new Jm(document),this.c.push(y(this.a,"pointermove",this.Cn,this),y(this.a,"pointerup",this.ki,this),y(this.i,"pointercancel",this.ki,this)))};k.Cn=function(a){if(a.clientX!=this.g.clientX||a.clientY!=this.g.clientY){this.j=!0;var b=new nm("pointerdrag",this.R,a,this.j);this.b(b)}a.preventDefault()};
k.Wq=function(a){this.b(new nm(a.type,this.R,a,!(!this.g||a.clientX==this.g.clientX&&a.clientY==this.g.clientY)))};k.xa=function(){this.o&&(Ca(this.o),this.o=null);this.l&&(Ca(this.l),this.l=null);this.c.forEach(Ca);this.c.length=0;this.a&&(Ma(this.a),this.a=null);this.i&&(Ma(this.i),this.i=null);Qa.prototype.xa.call(this)};function Rm(a,b){this.o=a;this.c=b;this.b=[];this.g=[];this.a={}}Rm.prototype.clear=function(){this.b.length=0;this.g.length=0;xa(this.a)};function Sm(a){var b=a.b,c=a.g,d=b[0];1==b.length?(b.length=0,c.length=0):(b[0]=b.pop(),c[0]=c.pop(),Tm(a,0));b=a.c(d);delete a.a[b];return d}Rm.prototype.i=function(a){gb(!(this.c(a)in this.a),31);var b=this.o(a);return Infinity!=b?(this.b.push(a),this.g.push(b),this.a[this.c(a)]=!0,Um(this,0,this.b.length-1),!0):!1};
function Tm(a,b){for(var c=a.b,d=a.g,e=c.length,f=c[b],g=d[b],h=b;b<e>>1;){var l=2*b+1,m=2*b+2;l=m<e&&d[m]<d[l]?m:l;c[b]=c[l];d[b]=d[l];b=l}c[b]=f;d[b]=g;Um(a,h,b)}function Um(a,b,c){var d=a.b;a=a.g;for(var e=d[c],f=a[c];c>b;){var g=c-1>>1;if(a[g]>f)d[c]=d[g],a[c]=a[g],c=g;else break}d[c]=e;a[c]=f}
function Vm(a){var b=a.o,c=a.b,d=a.g,e=0,f=c.length,g;for(g=0;g<f;++g){var h=c[g];var l=b(h);Infinity==l?delete a.a[a.c(h)]:(d[e]=l,c[e++]=h)}c.length=e;d.length=e;for(b=(a.b.length>>1)-1;0<=b;b--)Tm(a,b)};function Wm(a,b){Rm.call(this,function(b){return a.apply(null,b)},function(a){return a[0].ob()});this.s=b;this.j=0;this.f={}}v(Wm,Rm);Wm.prototype.i=function(a){var b=Rm.prototype.i.call(this,a);b&&y(a[0],"change",this.l,this);return b};Wm.prototype.l=function(a){a=a.target;var b=a.getState();if(2===b||3===b||4===b||5===b)Ja(a,"change",this.l,this),a=a.ob(),a in this.f&&(delete this.f[a],--this.j),this.s()};
function Xm(a,b,c){for(var d=0,e,f;a.j<b&&d<c&&0<a.b.length;)e=Sm(a)[0],f=e.ob(),0!==e.getState()||f in a.f||(a.f[f]=!0,++a.j,++d,e.load())};function Ym(a){return function(b,c,d){if(void 0!==b)return b=cd(a,b,d),b=Mb(b+c,0,a.length-1),c=Math.floor(b),b!=c&&c<a.length-1?a[c]/Math.pow(a[c]/a[c+1],b-c):a[c]}}function Zm(a,b,c){return function(d,e,f){if(void 0!==d)return d=Math.max(Math.floor(Math.log(b/d)/Math.log(a)+(-f/2+.5))+e,0),void 0!==c&&(d=Math.min(d,c)),b/Math.pow(a,d)}};function $m(a){if(void 0!==a)return 0}function an(a,b){if(void 0!==a)return a+b}function bn(a){var b=2*Math.PI/a;return function(a,d){if(void 0!==a)return a=Math.floor((a+d)/b+.5)*b}}function cn(){var a=Rb(5);return function(b,c){if(void 0!==b)return Math.abs(b+c)<=a?0:b+c}};function P(a){Wa.call(this);a=wa({},a);this.l=[0,0];this.i=[];this.Sf=this.Sf.bind(this);this.c=Mc(a.projection);dn(this,a)}v(P,Wa);
function dn(a,b){var c={};c.center=void 0!==b.center?b.center:null;var d=void 0!==b.minZoom?b.minZoom:0;var e=void 0!==b.maxZoom?b.maxZoom:28;var f=void 0!==b.zoomFactor?b.zoomFactor:2;if(void 0!==b.resolutions){e=b.resolutions;var g=e[0];var h=e[e.length-1];e=Ym(e)}else{g=Mc(b.projection);h=g.D();var l=(h?Math.max(Eb(h),Fb(h)):360*kc.degrees/g.dc())/256/Math.pow(2,0),m=l/Math.pow(2,28);g=b.maxResolution;void 0!==g?d=0:g=l/Math.pow(f,d);h=b.minResolution;void 0===h&&(h=void 0!==b.maxZoom?void 0!==
b.maxResolution?g/Math.pow(f,e):l/Math.pow(f,e):m);e=d+Math.floor(Math.log(g/h)/Math.log(f));h=g/Math.pow(f,e-d);e=Zm(f,g,e-d)}a.a=g;a.f=h;a.B=f;a.j=b.resolutions;a.o=d;(void 0!==b.enableRotation?b.enableRotation:1)?(d=b.constrainRotation,d=void 0===d||!0===d?cn():!1===d?an:"number"===typeof d?bn(d):an):d=$m;a.v=new Pl(void 0!==b.extent?Nl(b.extent):Ol,e,d);void 0!==b.resolution?c.resolution=b.resolution:void 0!==b.zoom&&(c.resolution=a.constrainResolution(a.a,b.zoom-a.o));c.rotation=void 0!==b.rotation?
b.rotation:0;a.J(c);a.C=b}function en(a,b){var c=wa({},a.C);void 0!==c.resolution?c.resolution=a.Ia():c.zoom=a.ii();c.center=a.va();c.rotation=a.Qa();return wa({},c,b)}k=P.prototype;
k.animate=function(a){var b=Date.now(),c=this.va().slice(),d=this.Ia(),e=this.Qa(),f=arguments.length;if(1<f&&"function"===typeof arguments[f-1]){var g=arguments[f-1];--f}for(var h=[],l=0;l<f;++l){var m=arguments[l],n={start:b,complete:!1,anchor:m.anchor,duration:void 0!==m.duration?m.duration:1E3,easing:m.easing||Wl};m.center&&(n.th=c,n.wh=m.center,c=n.wh);void 0!==m.zoom?(n.Pf=d,n.Sd=this.constrainResolution(this.a,m.zoom-this.o,0),d=n.Sd):m.resolution&&(n.Pf=d,n.Sd=m.resolution,d=n.Sd);void 0!==
m.rotation&&(n.uh=e,n.Qf=m.rotation,e=n.Qf);n.callback=g;b+=n.duration;h.push(n)}this.i.push(h);fn(this,0,1);this.Sf()};k.$c=function(){return 0<gn(this)[0]};k.Ad=function(){fn(this,0,-gn(this)[0]);for(var a=0,b=this.i.length;a<b;++a){var c=this.i[a];c[0].callback&&c[0].callback(!1)}this.i.length=0};
k.Sf=function(){void 0!==this.s&&(cancelAnimationFrame(this.s),this.s=void 0);if(this.$c()){for(var a=Date.now(),b=!1,c=this.i.length-1;0<=c;--c){for(var d=this.i[c],e=!0,f=0,g=d.length;f<g;++f){var h=d[f];if(!h.complete){b=a-h.start;b=0<h.duration?b/h.duration:1;1<=b?(h.complete=!0,b=1):e=!1;b=h.easing(b);if(h.th){var l=h.th[0],m=h.th[1];this.set("center",[l+b*(h.wh[0]-l),m+b*(h.wh[1]-m)])}h.Pf&&h.Sd&&(l=1===b?h.Sd:h.Pf+b*(h.Sd-h.Pf),h.anchor&&this.set("center",hn(this,l,h.anchor)),this.set("resolution",
l));void 0!==h.uh&&void 0!==h.Qf&&(b=1===b?h.Qf:h.uh+b*(h.Qf-h.uh),h.anchor&&this.set("center",jn(this,b,h.anchor)),this.set("rotation",b));b=!0;if(!h.complete)break}}e&&(this.i[c]=null,fn(this,0,-1),(d=d[0].callback)&&d(!0))}this.i=this.i.filter(Boolean);b&&void 0===this.s&&(this.s=requestAnimationFrame(this.Sf))}};function jn(a,b,c){var d=a.va();if(void 0!==d){var e=[d[0]-c[0],d[1]-c[1]];ud(e,b-a.Qa());pd(e,c)}return e}
function hn(a,b,c){var d,e=a.va();a=a.Ia();void 0!==e&&void 0!==a&&(d=[c[0]-b*(c[0]-e[0])/a,c[1]-b*(c[1]-e[1])/a]);return d}function kn(a){var b=[100,100];a='.ol-viewport[data-view="'+x(a)+'"]';if(a=document.querySelector(a))a=getComputedStyle(a),b[0]=parseInt(a.width,10),b[1]=parseInt(a.height,10);return b}k.Xc=function(a){return this.v.center(a)};k.constrainResolution=function(a,b,c){return this.v.resolution(a,b||0,c||0)};k.constrainRotation=function(a,b){return this.v.rotation(a,b||0)};k.va=function(){return this.get("center")};
function gn(a,b){return void 0!==b?(b[0]=a.l[0],b[1]=a.l[1],b):a.l.slice()}k.zd=function(a){a=a||kn(this);var b=this.va();gb(b,1);var c=this.Ia();gb(void 0!==c,2);var d=this.Qa();gb(void 0!==d,3);return Hb(b,c,d,a)};k.Hn=function(){return this.a};k.Jn=function(){return this.f};k.In=function(){return this.af(this.f)};k.qr=function(a){dn(this,en(this,{maxZoom:a}))};k.Kn=function(){return this.af(this.a)};k.rr=function(a){dn(this,en(this,{minZoom:a}))};k.Ln=function(){return this.c};k.Ia=function(){return this.get("resolution")};
k.Mn=function(){return this.j};function ln(a,b){return Math.max(Eb(a)/b[0],Fb(a)/b[1])}function mn(a){var b=a.a,c=Math.log(b/a.f)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}k.Qa=function(){return this.get("rotation")};function nn(a){var b=a.a,c=Math.log(b/a.f)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}k.getState=function(){var a=this.va(),b=this.c,c=this.Ia(),d=this.Qa();return{center:a.slice(),projection:void 0!==b?b:null,resolution:c,rotation:d}};
k.ii=function(){var a,b=this.Ia();void 0!==b&&(a=this.af(b));return a};k.af=function(a){if(a>=this.f&&a<=this.a){var b=this.o||0;if(this.j){var c=cd(this.j,a,1);b+=c;if(c==this.j.length-1)return b;var d=this.j[c];c=d/this.j[c+1]}else d=this.a,c=this.B;b+=Math.log(d/a)/Math.log(c)}return b};
k.mg=function(a,b){b=b||{};var c=b.size;c||(c=kn(this));if(a instanceof Rd)if("Circle"===a.T()){a=a.D();var d=bl(a);d.rotate(this.Qa(),Gb(a))}else d=a;else gb(Array.isArray(a),24),gb(!Db(a),25),d=bl(a);var e=void 0!==b.padding?b.padding:[0,0,0,0],f=void 0!==b.constrainResolution?b.constrainResolution:!0,g=void 0!==b.nearest?b.nearest:!1,h;void 0!==b.minResolution?h=b.minResolution:void 0!==b.maxZoom?h=this.constrainResolution(this.a,b.maxZoom-this.o,0):h=0;var l=d.ja(),m=this.Qa();a=Math.cos(-m);
m=Math.sin(-m);var n=Infinity,p=Infinity,q=-Infinity,t=-Infinity;d=d.ya();for(var u=0,w=l.length;u<w;u+=d){var z=l[u]*a-l[u+1]*m,D=l[u]*m+l[u+1]*a;n=Math.min(n,z);p=Math.min(p,D);q=Math.max(q,z);t=Math.max(t,D)}c=ln([n,p,q,t],[c[0]-e[1]-e[3],c[1]-e[0]-e[2]]);c=isNaN(c)?h:Math.max(c,h);f&&(h=this.constrainResolution(c,0,0),!g&&h<c&&(h=this.constrainResolution(h,-1,0)),c=h);m=-m;h=(n+q)/2+(e[1]-e[3])/2*c;e=(p+t)/2+(e[0]-e[2])/2*c;a=[h*a-e*m,e*a+h*m];void 0!==b.duration?this.animate({resolution:c,center:a,
duration:b.duration,easing:b.easing}):(this.Uc(c),this.cb(a))};k.cl=function(a,b,c){var d=this.Qa(),e=Math.cos(-d);d=Math.sin(-d);var f=a[0]*e-a[1]*d;a=a[1]*e+a[0]*d;var g=this.Ia();f+=(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.cb([f*e-a*d,a*e+f*d])};function Ml(a){return!!a.va()&&void 0!==a.Ia()}k.rotate=function(a,b){void 0!==b&&(b=jn(this,a,b),this.cb(b));this.gd(a)};k.cb=function(a){this.set("center",a);this.$c()&&this.Ad()};function fn(a,b,c){a.l[b]+=c;a.u()}
k.Uc=function(a){this.set("resolution",a);this.$c()&&this.Ad()};k.gd=function(a){this.set("rotation",a);this.$c()&&this.Ad()};k.Ar=function(a){a=this.constrainResolution(this.a,a-this.o,0);this.Uc(a)};function on(a,b,c){this.i=a;this.c=b;this.f=c;this.b=[];this.a=this.g=0}function pn(a){a.b.length=0;a.g=0;a.a=0};function qn(a){Wa.call(this);this.R=null;this.Na(!0);this.handleEvent=a.handleEvent}v(qn,Wa);qn.prototype.c=function(){return this.get("active")};qn.prototype.i=function(){return this.R};qn.prototype.Na=function(a){this.set("active",a)};qn.prototype.setMap=function(a){this.R=a};function rn(a,b,c,d){if(void 0!==b){var e=a.Qa(),f=a.va();void 0!==e&&f&&0<d?a.animate({rotation:b,anchor:c,duration:d,easing:Vl}):a.rotate(b,c)}}
function sn(a,b,c,d){var e=a.Ia();b=a.constrainResolution(e,b,0);if(c&&void 0!==b&&b!==e){var f=a.va();c=hn(a,b,c);c=a.Xc(c);c=[(b*f[0]-e*c[0])/(b-e),(b*f[1]-e*c[1])/(b-e)]}tn(a,b,c,d)}function tn(a,b,c,d){if(b){var e=a.Ia(),f=a.va();void 0!==e&&f&&b!==e&&d?a.animate({resolution:b,anchor:c,duration:d,easing:Vl}):(c&&(c=hn(a,b,c),a.cb(c)),a.Uc(b))}};function un(a){a=a?a:{};this.a=a.delta?a.delta:1;qn.call(this,{handleEvent:vn});this.f=void 0!==a.duration?a.duration:250}v(un,qn);function vn(a){var b=!1,c=a.originalEvent;if("dblclick"==a.type){b=a.coordinate;c=c.shiftKey?-this.a:this.a;var d=a.map.Z();sn(d,c,b,this.f);a.preventDefault();b=!0}return!b};function wn(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function xn(a){a=a.originalEvent;return 0==a.button&&!(ae&&be&&a.ctrlKey)}function yn(a){return"pointermove"==a.type}function zn(a){return"singleclick"==a.type}function An(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey}function Bn(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}
function Cn(a){a=a.originalEvent.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function Dn(a){gb(a.b,56);return"mouse"==a.b.pointerType}function En(a){a=a.b;return a.isPrimary&&0===a.button};function Fn(a){a=a?a:{};qn.call(this,{handleEvent:a.handleEvent?a.handleEvent:Gn});this.Yf=a.handleDownEvent?a.handleDownEvent:Bd;this.Tf=a.handleDragEvent?a.handleDragEvent:ua;this.cg=a.handleMoveEvent?a.handleMoveEvent:ua;this.dg=a.handleUpEvent?a.handleUpEvent:Bd;this.v=!1;this.X={};this.l=[]}v(Fn,qn);function Hn(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return[c/b,d/b]}
function Gn(a){if(!(a instanceof nm))return!0;var b=!1,c=a.type;if("pointerdown"===c||"pointerdrag"===c||"pointerup"===c){c=a.b;var d=c.pointerId.toString();"pointerup"==a.type?delete this.X[d]:"pointerdown"==a.type?this.X[d]=c:d in this.X&&(this.X[d]=c);this.l=za(this.X)}this.v?"pointerdrag"==a.type?this.Tf(a):"pointerup"==a.type&&(this.v=this.dg(a)&&0<this.l.length):"pointerdown"==a.type?(this.v=a=this.Yf(a),b=this.sd(a)):"pointermove"==a.type&&this.cg(a);return!b}Fn.prototype.sd=function(a){return a};function In(a){Fn.call(this,{handleDownEvent:Jn,handleDragEvent:Kn,handleUpEvent:Ln});a=a?a:{};this.a=a.kinetic;this.f=null;this.s=a.condition?a.condition:An;this.j=!1}v(In,Fn);function Kn(a){var b=this.l,c=Hn(b);if(b.length==this.o){if(this.a&&this.a.b.push(c[0],c[1],Date.now()),this.f){var d=this.f[0]-c[0],e=c[1]-this.f[1];a=a.map.Z();var f=a.getState();d=[d,e];vd(d,f.resolution);ud(d,f.rotation);pd(d,f.center);d=a.Xc(d);a.cb(d)}}else this.a&&pn(this.a);this.f=c;this.o=b.length}
function Ln(a){var b=a.map;a=b.Z();if(0===this.l.length){var c;if(c=!this.j&&this.a)if(c=this.a,6>c.b.length)c=!1;else{var d=Date.now()-c.f,e=c.b.length-3;if(c.b[e+2]<d)c=!1;else{for(var f=e-3;0<f&&c.b[f+2]>d;)f-=3;d=c.b[e+2]-c.b[f+2];var g=c.b[e]-c.b[f];e=c.b[e+1]-c.b[f+1];c.g=Math.atan2(e,g);c.a=Math.sqrt(g*g+e*e)/d;c=c.a>c.c}}c&&(c=this.a,c=(c.c-c.a)/c.i,e=this.a.g,f=a.va(),f=b.Pa(f),b=b.ab([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),a.animate({center:a.Xc(b),duration:500,easing:Vl}));fn(a,1,-1);
return!1}this.a&&pn(this.a);this.f=null;return!0}function Jn(a){if(0<this.l.length&&this.s(a)){var b=a.map.Z();this.f=null;this.v||fn(b,1,1);gn(b)[0]&&b.cb(a.frameState.viewState.center);this.a&&pn(this.a);this.j=1<this.l.length;return!0}return!1}In.prototype.sd=Bd;function Mn(a){a=a?a:{};Fn.call(this,{handleDownEvent:Nn,handleDragEvent:On,handleUpEvent:Pn});this.f=a.condition?a.condition:wn;this.a=void 0;this.j=void 0!==a.duration?a.duration:250}v(Mn,Fn);function On(a){if(Dn(a)){var b=a.map,c=b.Rb();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(void 0!==this.a){a=c-this.a;b=b.Z();var d=b.Qa();rn(b,d-a)}this.a=c}}function Pn(a){if(!Dn(a))return!0;a=a.map.Z();fn(a,1,-1);var b=a.Qa(),c=this.j;b=a.constrainRotation(b,0);rn(a,b,void 0,c);return!1}
function Nn(a){return Dn(a)&&xn(a)&&this.f(a)?(fn(a.map.Z(),1,1),this.a=void 0,!0):!1}Mn.prototype.sd=Bd;function Qn(a){this.Zc=null;this.b=document.createElement("div");this.b.style.position="absolute";this.b.className="ol-box "+a;this.a=this.g=this.R=null}v(Qn,La);Qn.prototype.xa=function(){this.setMap(null)};function Rn(a){var b=a.g,c=a.a;a=a.b.style;a.left=Math.min(b[0],c[0])+"px";a.top=Math.min(b[1],c[1])+"px";a.width=Math.abs(c[0]-b[0])+"px";a.height=Math.abs(c[1]-b[1])+"px"}
Qn.prototype.setMap=function(a){if(this.R){this.R.C.removeChild(this.b);var b=this.b.style;b.left=b.top=b.width=b.height="inherit"}(this.R=a)&&this.R.C.appendChild(this.b)};function Sn(a){var b=a.g,c=a.a;b=[b,[b[0],c[1]],c,[c[0],b[1]]].map(a.R.ab,a.R);b[4]=b[0].slice();a.Zc?a.Zc.ua([b]):a.Zc=new M([b])}Qn.prototype.V=function(){return this.Zc};function Tn(a){Fn.call(this,{handleDownEvent:Un,handleDragEvent:Vn,handleUpEvent:Wn});a=a?a:{};this.a=new Qn(a.className||"ol-dragbox");this.s=void 0!==a.minArea?a.minArea:64;this.f=null;this.C=a.condition?a.condition:Ad;this.o=a.boxEndCondition?a.boxEndCondition:Xn}v(Tn,Fn);function Xn(a,b,c){a=c[0]-b[0];b=c[1]-b[1];return a*a+b*b>=this.s}function Vn(a){if(Dn(a)){var b=this.a,c=a.pixel;b.g=this.f;b.a=c;Sn(b);Rn(b);this.b(new Yn(Zn,a.coordinate,a))}}Tn.prototype.V=function(){return this.a.V()};
Tn.prototype.j=ua;function Wn(a){if(!Dn(a))return!0;this.a.setMap(null);this.o(a,this.f,a.pixel)&&(this.j(a),this.b(new Yn($n,a.coordinate,a)));return!1}function Un(a){if(Dn(a)&&xn(a)&&this.C(a)){this.f=a.pixel;this.a.setMap(a.map);var b=this.a,c=this.f;b.g=this.f;b.a=c;Sn(b);Rn(b);this.b(new Yn(ao,a.coordinate,a));return!0}return!1}var ao="boxstart",Zn="boxdrag",$n="boxend";function Yn(a,b,c){Na.call(this,a);this.coordinate=b;this.mapBrowserEvent=c}v(Yn,Na);function bo(a){a=a?a:{};var b=a.condition?a.condition:Bn;this.B=void 0!==a.duration?a.duration:200;this.G=void 0!==a.out?a.out:!1;Tn.call(this,{condition:b,className:a.className||"ol-dragzoom"})}v(bo,Tn);
bo.prototype.j=function(){var a=this.R,b=a.Z(),c=a.Rb(),d=this.V().D();if(this.G){var e=b.zd(c);d=[a.Pa(yb(d)),a.Pa(Ab(d))];a=rb(Infinity,Infinity,-Infinity,-Infinity,void 0);var f;var g=0;for(f=d.length;g<f;++g)jb(a,d[g]);Kb(e,1/ln(a,c));d=e}c=b.constrainResolution(ln(d,c));e=Gb(d);e=b.Xc(e);b.animate({resolution:c,center:e,duration:this.B,easing:Vl})};function co(a){qn.call(this,{handleEvent:eo});a=a||{};this.a=function(a){return An(a)&&Cn(a)};this.f=void 0!==a.condition?a.condition:this.a;this.j=void 0!==a.duration?a.duration:100;this.l=void 0!==a.pixelDelta?a.pixelDelta:128}v(co,qn);
function eo(a){var b=!1;if("keydown"==a.type){var c=a.originalEvent.keyCode;if(this.f(a)&&(40==c||37==c||39==c||38==c)){b=a.map.Z();var d=b.Ia()*this.l,e=0,f=0;40==c?f=-d:37==c?e=-d:39==c?e=d:f=d;d=[e,f];ud(d,b.Qa());c=this.j;if(e=b.va())d=b.Xc([e[0]+d[0],e[1]+d[1]]),c?b.animate({duration:c,easing:Ki,center:d}):b.cb(d);a.preventDefault();b=!0}}return!b};function fo(a){qn.call(this,{handleEvent:go});a=a?a:{};this.f=a.condition?a.condition:Cn;this.a=a.delta?a.delta:1;this.j=void 0!==a.duration?a.duration:100}v(fo,qn);function go(a){var b=!1;if("keydown"==a.type||"keypress"==a.type){var c=a.originalEvent.charCode;!this.f(a)||43!=c&&45!=c||(b=43==c?this.a:-this.a,c=a.map.Z(),sn(c,b,void 0,this.j),a.preventDefault(),b=!0)}return!b};function ho(a){qn.call(this,{handleEvent:io});a=a||{};this.j=0;this.v=void 0!==a.duration?a.duration:250;this.X=void 0!==a.timeout?a.timeout:80;this.C=void 0!==a.useAnchor?a.useAnchor:!0;this.N=a.constrainResolution||!1;this.a=null;this.o=this.l=this.s=this.f=void 0}v(ho,qn);
function io(a){var b=a.type;if("wheel"!==b&&"mousewheel"!==b)return!0;a.preventDefault();b=a.map;var c=a.originalEvent;this.C&&(this.a=a.coordinate);if("wheel"==a.type){var d=c.deltaY;Zd&&c.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(d/=ce);c.deltaMode===WheelEvent.DOM_DELTA_LINE&&(d*=40)}else"mousewheel"==a.type&&(d=-c.wheelDeltaY,$d&&(d/=3));if(0===d)return!1;a=Date.now();void 0===this.f&&(this.f=a);if(!this.l||400<a-this.f)this.l=4>Math.abs(d)?jo:ko;if(this.l===jo){b=b.Z();this.o?clearTimeout(this.o):
fn(b,1,1);this.o=setTimeout(this.B.bind(this),400);c=b.Ia()*Math.pow(2,d/300);var e=b.f,f=b.a,g=0;c<e?(c=Math.max(c,e/1.5),g=1):c>f&&(c=Math.min(c,1.5*f),g=-1);if(this.a){var h=hn(b,c,this.a);b.cb(b.Xc(h))}b.Uc(c);0===g&&this.N&&b.animate({resolution:b.constrainResolution(c,0<d?-1:1),easing:Vl,anchor:this.a,duration:this.v});0<g?b.animate({resolution:e,easing:Vl,anchor:this.a,duration:500}):0>g&&b.animate({resolution:f,easing:Vl,anchor:this.a,duration:500});this.f=a;return!1}this.j+=d;d=Math.max(this.X-
(a-this.f),0);clearTimeout(this.s);this.s=setTimeout(this.G.bind(this,b),d);return!1}ho.prototype.B=function(){this.o=void 0;fn(this.R.Z(),1,-1)};ho.prototype.G=function(a){a=a.Z();a.$c()&&a.Ad();sn(a,-Mb(this.j,-1,1),this.a,this.v);this.l=void 0;this.j=0;this.a=null;this.s=this.f=void 0};ho.prototype.aa=function(a){this.C=a;a||(this.a=null)};var jo="trackpad",ko="wheel";function lo(a){Fn.call(this,{handleDownEvent:mo,handleDragEvent:no,handleUpEvent:oo});a=a||{};this.f=null;this.j=void 0;this.a=!1;this.o=0;this.C=void 0!==a.threshold?a.threshold:.3;this.s=void 0!==a.duration?a.duration:250}v(lo,Fn);
function no(a){var b=0,c=this.l[0],d=this.l[1];c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);void 0!==this.j&&(b=c-this.j,this.o+=b,!this.a&&Math.abs(this.o)>this.C&&(this.a=!0));this.j=c;a=a.map;c=a.a.getBoundingClientRect();d=Hn(this.l);d[0]-=c.left;d[1]-=c.top;this.f=a.ab(d);this.a&&(c=a.Z(),d=c.Qa(),a.render(),rn(c,d+b,this.f))}function oo(a){if(2>this.l.length){a=a.map.Z();fn(a,1,-1);if(this.a){var b=a.Qa(),c=this.f,d=this.s;b=a.constrainRotation(b,0);rn(a,b,c,d)}return!1}return!0}
function mo(a){return 2<=this.l.length?(a=a.map,this.f=null,this.j=void 0,this.a=!1,this.o=0,this.v||fn(a.Z(),1,1),!0):!1}lo.prototype.sd=Bd;function po(a){Fn.call(this,{handleDownEvent:qo,handleDragEvent:ro,handleUpEvent:so});a=a?a:{};this.o=a.constrainResolution||!1;this.f=null;this.s=void 0!==a.duration?a.duration:400;this.a=void 0;this.j=1}v(po,Fn);
function ro(a){var b=1,c=this.l[0],d=this.l[1],e=c.clientX-d.clientX;c=c.clientY-d.clientY;e=Math.sqrt(e*e+c*c);void 0!==this.a&&(b=this.a/e);this.a=e;a=a.map;e=a.Z();d=e.Ia();var f=e.a,g=e.f;c=d*b;c>f?(b=f/d,c=f):c<g&&(b=g/d,c=g);1!=b&&(this.j=b);b=a.a.getBoundingClientRect();d=Hn(this.l);d[0]-=b.left;d[1]-=b.top;this.f=a.ab(d);a.render();tn(e,c,this.f)}
function so(a){if(2>this.l.length){a=a.map.Z();fn(a,1,-1);var b=a.Ia();if(this.o||b<a.f||b>a.a){var c=this.f,d=this.s;b=a.constrainResolution(b,0,this.j-1);tn(a,b,c,d)}return!1}return!0}function qo(a){return 2<=this.l.length?(a=a.map,this.f=null,this.a=void 0,this.j=1,this.v||fn(a.Z(),1,1),!0):!1}po.prototype.sd=Bd;function to(a){a=a?a:{};var b=new bb,c=new on(-.005,.05,100);(void 0!==a.altShiftDragRotate?a.altShiftDragRotate:1)&&b.push(new Mn);(void 0!==a.doubleClickZoom?a.doubleClickZoom:1)&&b.push(new un({delta:a.zoomDelta,duration:a.zoomDuration}));(void 0!==a.dragPan?a.dragPan:1)&&b.push(new In({kinetic:c}));(void 0!==a.pinchRotate?a.pinchRotate:1)&&b.push(new lo);(void 0!==a.pinchZoom?a.pinchZoom:1)&&b.push(new po({constrainResolution:a.constrainResolution,duration:a.zoomDuration}));if(void 0!==a.keyboard?
a.keyboard:1)b.push(new co),b.push(new fo({delta:a.zoomDelta,duration:a.zoomDuration}));(void 0!==a.mouseWheelZoom?a.mouseWheelZoom:1)&&b.push(new ho({constrainResolution:a.constrainResolution,duration:a.zoomDuration}));(void 0!==a.shiftDragZoom?a.shiftDragZoom:1)&&b.push(new bo({duration:a.zoomDuration}));return b};function uo(){this.b={};this.a=0}uo.prototype.clear=function(){this.b={};this.a=0};uo.prototype.get=function(a,b,c){a=b+":"+a+":"+(c?Ld(c):"null");return a in this.b?this.b[a]:null};uo.prototype.set=function(a,b,c,d){this.b[b+":"+a+":"+(c?Ld(c):"null")]=d;++this.a};var vo=new uo;function wo(a,b){this.R=b;this.c={};this.o={}}v(wo,La);function xo(a){var b=a.viewState,c=a.coordinateToPixelTransform,d=a.pixelToCoordinateTransform;ze(c,a.size[0]/2,a.size[1]/2,1/b.resolution,-1/b.resolution,-b.rotation,-b.center[0],-b.center[1]);Ae(ue(d,c))}k=wo.prototype;k.xa=function(){for(var a in this.c)Ma(this.c[a])};function yo(){if(32<vo.a){var a=0,b;for(b in vo.b){var c=vo.b[b];0!==(a++&3)||Ra(c)||(delete vo.b[b],--vo.a)}}}
k.Ga=function(a,b,c,d,e,f,g){function h(a,c){var f=x(a).toString(),g=b.layerStates[x(c)].hf;if(!(f in b.skippedFeatureUids)||g)return d.call(e,a,g?c:null)}var l,m=b.viewState,n=m.resolution,p=m.projection;m=a;if(p.a){p=p.D();var q=Eb(p),t=a[0];if(t<p[0]||t>p[2])m=[t+q*Math.ceil((p[0]-t)/q),a[1]]}p=b.layerStatesArray;for(q=p.length-1;0<=q;--q){var u=p[q];t=u.layer;if(Wc(u,n)&&f.call(g,t)&&(u=zo(this,t),t.ba()&&(l=u.Ga(t.ba().aa?m:a,b,c,h,e)),l))return l}};
k.ej=function(a,b,c,d,e){return void 0!==this.Ga(a,b,c,Ad,this,d,e)};function zo(a,b){var c=x(b).toString();if(c in a.c)return a.c[c];b=b.Yd(a);a.c[c]=b;a.o[c]=y(b,"change",a.um,a);return b}k.um=function(){this.R.render()};k.lh=ua;k.br=function(a,b){for(var c in this.c)if(!(b&&c in b.layerStates)){a=c;var d=this.c[a];delete this.c[a];Ca(this.o[a]);delete this.o[a];Ma(d)}};function Ao(a,b){for(var c in a.c)if(!(c in b.layerStates)){b.postRenderFunctions.push(a.br.bind(a));break}}
function Bo(a,b){return a.zIndex-b.zIndex};function Co(a,b){wo.call(this,a,b);this.g=kd();this.b=this.g.canvas;this.b.style.width="100%";this.b.style.height="100%";this.b.style.display="block";this.b.className="ol-unselectable";a.insertBefore(this.b,a.childNodes[0]||null);this.a=!0;this.i=qe()}v(Co,wo);
function Do(a,b,c){var d=a.R,e=a.g;if(Ra(d,b)){var f=c.extent,g=c.pixelRatio,h=c.viewState.rotation,l=c.viewState,m=c.pixelRatio/l.resolution;a=ze(a.i,a.b.width/2,a.b.height/2,m,-m,-l.rotation,-l.center[0],-l.center[1]);d.b(new Cd(b,new Be(e,g,f,a,h),c,e,null))}}Co.prototype.T=function(){return"canvas"};
Co.prototype.lh=function(a){if(a){var b=this.g,c=a.pixelRatio,d=Math.round(a.size[0]*c),e=Math.round(a.size[1]*c);this.b.width!=d||this.b.height!=e?(this.b.width=d,this.b.height=e):b.clearRect(0,0,d,e);c=a.viewState.rotation;xo(a);Do(this,"precompose",a);var f=a.layerStatesArray;gd(f,Bo);c&&(b.save(),Gd(b,c,d/2,e/2));d=a.viewState.resolution;var g;e=0;for(g=f.length;e<g;++e){var h=f[e];var l=h.layer;l=zo(this,l);Wc(h,d)&&"ready"==h.dk&&l.Jd(a,h)&&l.v(a,h,b)}c&&b.restore();Do(this,"postcompose",a);
this.a||(this.b.style.display="",this.a=!0);Ao(this,a);a.postRenderFunctions.push(yo)}else this.a&&(this.b.style.display="none",this.a=!1)};Co.prototype.dj=function(a,b,c,d,e,f){var g=b.viewState.resolution,h=b.layerStatesArray,l=h.length;a=ve(b.pixelToCoordinateTransform,a.slice());for(--l;0<=l;--l){var m=h[l];var n=m.layer;if(Wc(m,g)&&e.call(f,n)&&(m=zo(this,n).I(a,b,c,d)))return m}};function Eo(a,b){wo.call(this,a,b);this.b=document.createElement("CANVAS");this.b.style.width="100%";this.b.style.height="100%";this.b.style.display="block";this.b.className="ol-unselectable";a.insertBefore(this.b,a.childNodes[0]||null);this.I=this.v=0;this.C=kd();this.l=!0;this.g=Wd(this.b,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0});this.i=new Rf(this.b,this.g);y(this.b,"webglcontextlost",this.No,this);y(this.b,"webglcontextrestored",this.Oo,this);
this.a=new Wh;this.s=null;this.j=new Rm(function(a){var b=a[1];a=a[2];var c=b[0]-this.s[0];b=b[1]-this.s[1];return 65536*Math.log(a)+Math.sqrt(c*c+b*b)/a}.bind(this),function(a){return a[0].ob()});this.B=function(){if(0!==this.j.b.length){Vm(this.j);var a=Sm(this.j);Rh(this,a[0],a[3],a[4])}return!1}.bind(this);this.f=0;Fo(this)}v(Eo,wo);
function Rh(a,b,c,d){var e=a.g,f=b.ob();if(a.a.b.hasOwnProperty(f))a=a.a.get(f),e.bindTexture(3553,a.texture),9729!=a.ri&&(e.texParameteri(3553,10240,9729),a.ri=9729),9729!=a.ti&&(e.texParameteri(3553,10241,9729),a.ti=9729);else{var g=e.createTexture();e.bindTexture(3553,g);if(0<d){var h=a.C.canvas,l=a.C;a.v!==c[0]||a.I!==c[1]?(h.width=c[0],h.height=c[1],a.v=c[0],a.I=c[1]):l.clearRect(0,0,c[0],c[1]);l.drawImage(b.W(),d,d,c[0],c[1],0,0,c[0],c[1]);e.texImage2D(3553,0,6408,6408,5121,h)}else e.texImage2D(3553,
0,6408,6408,5121,b.W());e.texParameteri(3553,10240,9729);e.texParameteri(3553,10241,9729);e.texParameteri(3553,10242,33071);e.texParameteri(3553,10243,33071);a.a.set(f,{texture:g,ri:9729,ti:9729})}}function Go(a,b,c){var d=a.R;if(Ra(d,b)){a=a.i;var e=c.viewState;d.b(new Cd(b,new Ah(a,e.center,e.resolution,e.rotation,c.size,c.extent,c.pixelRatio),c,null,a))}}k=Eo.prototype;k.xa=function(){var a=this.g;a.isContextLost()||this.a.forEach(function(b){b&&a.deleteTexture(b.texture)});Ma(this.i);wo.prototype.xa.call(this)};
k.gl=function(a,b){a=this.g;for(var c;1024<this.a.c-this.f;){if(c=this.a.a.ud)a.deleteTexture(c.texture);else if(+this.a.a.Kc==b.index)break;else--this.f;this.a.pop()}};k.T=function(){return"webgl"};k.No=function(a){a.preventDefault();this.a.clear();this.f=0;a=this.c;for(var b in a)a[b].Ng()};k.Oo=function(){Fo(this);this.R.render()};function Fo(a){a=a.g;a.activeTexture(33984);a.blendFuncSeparate(770,771,1,771);a.disable(2884);a.disable(2929);a.disable(3089);a.disable(2960)}
k.lh=function(a){var b=this.i,c=this.g;if(c.isContextLost())return!1;if(!a)return this.l&&(this.b.style.display="none",this.l=!1),!1;this.s=a.focus;this.a.set((-a.index).toString(),null);++this.f;Go(this,"precompose",a);var d=[],e=a.layerStatesArray;gd(e,Bo);var f=a.viewState.resolution,g;var h=0;for(g=e.length;h<g;++h){var l=e[h];if(Wc(l,f)&&"ready"==l.dk){var m=zo(this,l.layer);m.Og(a,l,b)&&d.push(l)}}e=a.size[0]*a.pixelRatio;f=a.size[1]*a.pixelRatio;if(this.b.width!=e||this.b.height!=f)this.b.width=
e,this.b.height=f;c.bindFramebuffer(36160,null);c.clearColor(0,0,0,0);c.clear(16384);c.enable(3042);c.viewport(0,0,this.b.width,this.b.height);h=0;for(g=d.length;h<g;++h)l=d[h],m=zo(this,l.layer),m.gj(a,l,b);this.l||(this.b.style.display="",this.l=!0);xo(a);1024<this.a.c-this.f&&a.postRenderFunctions.push(this.gl.bind(this));0!==this.j.b.length&&(a.postRenderFunctions.push(this.B),a.animate=!0);Go(this,"postcompose",a);Ao(this,a);a.postRenderFunctions.push(yo)};
k.Ga=function(a,b,c,d,e,f,g){if(this.g.isContextLost())return!1;var h=b.viewState,l=b.layerStatesArray,m;for(m=l.length-1;0<=m;--m){var n=l[m];var p=n.layer;if(Wc(n,h.resolution)&&f.call(g,p)&&(n=zo(this,p).Ga(a,b,c,d,e)))return n}};k.ej=function(a,b,c,d,e){c=!1;if(this.g.isContextLost())return!1;var f=b.viewState,g=b.layerStatesArray,h;for(h=g.length-1;0<=h;--h){var l=g[h],m=l.layer;if(Wc(l,f.resolution)&&d.call(e,m)&&(c=zo(this,m).vf(a,b)))return!0}return c};
k.dj=function(a,b,c,d,e){if(this.g.isContextLost())return!1;var f=b.viewState,g=b.layerStatesArray,h;for(h=g.length-1;0<=h;--h){var l=g[h];var m=l.layer;if(Wc(l,f.resolution)&&e.call(d,m)&&(l=zo(this,m).Mg(a,b,c,d)))return l}};var Ho=["canvas","webgl"];
function Q(a){Wa.call(this);var b=Io(a);this.Xf=void 0!==a.loadTilesWhileAnimating?a.loadTilesWhileAnimating:!1;this.Yf=void 0!==a.loadTilesWhileInteracting?a.loadTilesWhileInteracting:!1;this.cg=void 0!==a.pixelRatio?a.pixelRatio:ce;this.Tf=b.logos;this.la=function(){this.j=void 0;this.cr.call(this)}.bind(this);this.lc=qe();this.dg=qe();this.Wf=0;this.c=null;this.rb=ib();this.G=this.N=this.aa=null;this.a=document.createElement("DIV");this.a.className="ol-viewport"+(he?" ol-touch":"");this.a.style.position=
"relative";this.a.style.overflow="hidden";this.a.style.width="100%";this.a.style.height="100%";this.a.style.msTouchAction="none";this.a.style.touchAction="none";this.C=document.createElement("DIV");this.C.className="ol-overlaycontainer";this.a.appendChild(this.C);this.v=document.createElement("DIV");this.v.className="ol-overlaycontainer-stopevent";a="click dblclick mousedown touchstart MSPointerDown pointerdown mousewheel wheel".split(" ");for(var c=0,d=a.length;c<d;++c)y(this.v,a[c],Oa);this.a.appendChild(this.v);
this.wa=new Om(this);for(var e in mm)y(this.wa,mm[e],this.ji,this);this.na=b.keyboardEventTarget;this.s=null;y(this.a,"wheel",this.Ed,this);y(this.a,"mousewheel",this.Ed,this);this.l=b.controls;this.i=b.interactions;this.o=b.overlays;this.Sg={};this.B=new b.er(this.a,this);this.X=null;this.Ua=[];this.Xa=new Wm(this.em.bind(this),this.Lm.bind(this));this.$={};y(this,Ya("layergroup"),this.tm,this);y(this,Ya("view"),this.Mm,this);y(this,Ya("size"),this.Im,this);y(this,Ya("target"),this.Km,this);this.J(b.values);
this.l.forEach(function(a){a.setMap(this)},this);y(this.l,"add",function(a){a.element.setMap(this)},this);y(this.l,"remove",function(a){a.element.setMap(null)},this);this.i.forEach(function(a){a.setMap(this)},this);y(this.i,"add",function(a){a.element.setMap(this)},this);y(this.i,"remove",function(a){a.element.setMap(null)},this);this.o.forEach(this.Nh,this);y(this.o,"add",function(a){this.Nh(a.element)},this);y(this.o,"remove",function(a){var b=a.element.f;void 0!==b&&delete this.Sg[b.toString()];
a.element.setMap(null)},this)}v(Q,Wa);k=Q.prototype;k.Uk=function(a){this.l.push(a)};k.Vk=function(a){this.i.push(a)};k.Lh=function(a){this.Nb().Tb().push(a)};k.Mh=function(a){this.o.push(a)};k.Nh=function(a){var b=a.f;void 0!==b&&(this.Sg[b.toString()]=a);a.setMap(this)};
k.xa=function(){Ma(this.wa);Ma(this.B);Ja(this.a,"wheel",this.Ed,this);Ja(this.a,"mousewheel",this.Ed,this);void 0!==this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0);this.j&&(cancelAnimationFrame(this.j),this.j=void 0);this.mf(null);Wa.prototype.xa.call(this)};k.Ue=function(a,b,c){if(this.c)return a=this.ab(a),c=void 0!==c?c:{},this.B.Ga(a,this.c,void 0!==c.hitTolerance?c.hitTolerance*this.c.pixelRatio:0,b,null,void 0!==c.layerFilter?c.layerFilter:Ad,null)};
k.Dn=function(a,b,c,d,e){if(this.c)return this.B.dj(a,this.c,b,void 0!==c?c:null,void 0!==d?d:Ad,void 0!==e?e:null)};k.Om=function(a,b){if(!this.c)return!1;a=this.ab(a);b=void 0!==b?b:{};return this.B.ej(a,this.c,void 0!==b.hitTolerance?b.hitTolerance*this.c.pixelRatio:0,void 0!==b.layerFilter?b.layerFilter:Ad,null)};k.og=function(a){return this.ab(this.We(a))};k.We=function(a){var b=this.a.getBoundingClientRect();a=a.changedTouches?a.changedTouches[0]:a;return[a.clientX-b.left,a.clientY-b.top]};
k.xg=function(){return this.get("target")};k.Jc=function(){var a=this.xg();return void 0!==a?"string"===typeof a?document.getElementById(a):a:null};k.ab=function(a){var b=this.c;return b?ve(b.pixelToCoordinateTransform,a.slice()):null};k.xl=function(){return this.l};k.Vl=function(){return this.o};k.Ul=function(a){a=this.Sg[a.toString()];return void 0!==a?a:null};k.Gl=function(){return this.i};k.Nb=function(){return this.get("layergroup")};k.zi=function(){return this.Nb().Tb()};
k.Pa=function(a){var b=this.c;return b?ve(b.coordinateToPixelTransform,a.slice(0,2)):null};k.Rb=function(){return this.get("size")};k.Z=function(){return this.get("view")};k.hm=function(){return this.a};k.em=function(a,b,c,d){var e=this.c;if(!(e&&b in e.wantedTiles&&e.wantedTiles[b][a.ob()]))return Infinity;a=c[0]-e.focus[0];c=c[1]-e.focus[1];return 65536*Math.log(d)+Math.sqrt(a*a+c*c)/d};k.Ed=function(a,b){a=new lm(b||a.type,this,a);this.ji(a)};
k.ji=function(a){if(this.c){this.X=a.coordinate;a.frameState=this.c;var b=this.i.a,c;if(!1!==this.b(a))for(c=b.length-1;0<=c;c--){var d=b[c];if(d.c()&&!d.handleEvent(a))break}}};k.Gm=function(){var a=this.c,b=this.Xa;if(0!==b.b.length){var c=16,d=c;if(a){var e=a.viewHints;e[0]&&(c=this.Xf?8:0,d=2);e[1]&&(c=this.Yf?8:0,d=2)}b.j<c&&(Vm(b),Xm(b,c,d))}b=this.Ua;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};k.Im=function(){this.render()};
k.Km=function(){var a;this.xg()&&(a=this.Jc());if(this.s){for(var b=0,c=this.s.length;b<c;++b)Ca(this.s[b]);this.s=null}a?(a.appendChild(this.a),a=this.na?this.na:a,this.s=[y(a,"keydown",this.Ed,this),y(a,"keypress",this.Ed,this)],this.f||(this.f=this.Td.bind(this),window.addEventListener("resize",this.f,!1))):(md(this.a),void 0!==this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0));this.Td()};k.Lm=function(){this.render()};k.mi=function(){this.render()};
k.Mm=function(){this.aa&&(Ca(this.aa),this.aa=null);this.N&&(Ca(this.N),this.N=null);var a=this.Z();a&&(this.a.setAttribute("data-view",x(a)),this.aa=y(a,"propertychange",this.mi,this),this.N=y(a,"change",this.mi,this));this.render()};k.tm=function(){this.G&&(this.G.forEach(Ca),this.G=null);var a=this.Nb();a&&(this.G=[y(a,"propertychange",this.render,this),y(a,"change",this.render,this)]);this.render()};k.dr=function(){this.j&&cancelAnimationFrame(this.j);this.la()};
k.render=function(){void 0===this.j&&(this.j=requestAnimationFrame(this.la))};k.Xq=function(a){return this.l.remove(a)};k.Yq=function(a){return this.i.remove(a)};k.$q=function(a){return this.Nb().Tb().remove(a)};k.ar=function(a){return this.o.remove(a)};
k.cr=function(){var a=Date.now(),b,c=this.Rb(),d=this.Z(),e=ib(),f=null;if(void 0!==c&&0<c[0]&&0<c[1]&&d&&Ml(d)){f=gn(d,this.c?this.c.viewHints:void 0);var g=this.Nb().tg(),h={};var l=0;for(b=g.length;l<b;++l)h[x(g[l].layer)]=g[l];l=d.getState();f={animate:!1,attributions:{},coordinateToPixelTransform:this.lc,extent:e,focus:this.X?this.X:l.center,index:this.Wf++,layerStates:h,layerStatesArray:g,logos:wa({},this.Tf),pixelRatio:this.cg,pixelToCoordinateTransform:this.dg,postRenderFunctions:[],size:c,
skippedFeatureUids:this.$,tileQueue:this.Xa,time:a,usedTiles:{},viewState:l,viewHints:f,wantedTiles:{}}}f&&(f.extent=Hb(l.center,l.resolution,l.rotation,f.size,e));this.c=f;this.B.lh(f);f&&(f.animate&&this.render(),Array.prototype.push.apply(this.Ua,f.postRenderFunctions),f.viewHints[0]||f.viewHints[1]||vb(f.extent,this.rb)||(this.b(new km("moveend",this,f)),lb(f.extent,this.rb)));this.b(new km("postrender",this,f));setTimeout(this.Gm.bind(this),0)};k.Vj=function(a){this.set("layergroup",a)};
k.sh=function(a){this.set("size",a)};k.mf=function(a){this.set("target",a)};k.En=function(a){this.set("view",a)};k.ck=function(a){a=x(a).toString();this.$[a]=!0;this.render()};k.Td=function(){var a=this.Jc();if(a){var b=getComputedStyle(a);this.sh([a.offsetWidth-parseFloat(b.borderLeftWidth)-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight)-parseFloat(b.borderRightWidth),a.offsetHeight-parseFloat(b.borderTopWidth)-parseFloat(b.paddingTop)-parseFloat(b.paddingBottom)-parseFloat(b.borderBottomWidth)])}else this.sh(void 0)};
k.ik=function(a){a=x(a).toString();delete this.$[a];this.render()};
function Io(a){var b=null;void 0!==a.keyboardEventTarget&&(b="string"===typeof a.keyboardEventTarget?document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d={};if(void 0===a.logo||"boolean"===typeof a.logo&&a.logo)d["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]="https://openlayers.org/";
else{var e=a.logo;"string"===typeof e?d[e]="":e instanceof HTMLElement?d[x(e).toString()]=e:e&&(gb("string"==typeof e.href,44),gb("string"==typeof e.src,45),d[e.src]=e.href)}e=a.layers instanceof Wb?a.layers:new Wb({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=void 0!==a.view?a.view:new P;e=wo;var f;void 0!==a.renderer?(Array.isArray(a.renderer)?f=a.renderer:"string"===typeof a.renderer?f=[a.renderer]:gb(!1,46),0<=f.indexOf("dom")&&(f=f.concat(Ho))):f=Ho;var g;var h=0;for(g=f.length;h<
g;++h){var l=f[h];if("canvas"==l){if(ee){e=Co;break}}else if("webgl"==l&&Xd){e=Eo;break}}void 0!==a.controls?Array.isArray(a.controls)?f=new bb(a.controls.slice()):(gb(a.controls instanceof bb,47),f=a.controls):f=$l();void 0!==a.interactions?Array.isArray(a.interactions)?h=new bb(a.interactions.slice()):(gb(a.interactions instanceof bb,48),h=a.interactions):h=to();void 0!==a.overlays?Array.isArray(a.overlays)?a=new bb(a.overlays.slice()):(gb(a.overlays instanceof bb,49),a=a.overlays):a=new bb;return{controls:f,
interactions:h,keyboardEventTarget:b,logos:d,overlays:a,er:e,values:c}};function Jo(a){Wa.call(this);this.f=a.id;this.o=void 0!==a.insertFirst?a.insertFirst:!0;this.s=void 0!==a.stopEvent?a.stopEvent:!0;this.c=document.createElement("DIV");this.c.className="ol-overlay-container ol-selectable";this.c.style.position="absolute";this.autoPan=void 0!==a.autoPan?a.autoPan:!1;this.j=a.autoPanAnimation||{};this.l=void 0!==a.autoPanMargin?a.autoPanMargin:20;this.a={Pe:"",gf:"",Jf:"",Rf:"",visible:!0};this.i=null;y(this,Ya(Ko),this.om,this);y(this,Ya(Lo),this.ym,this);y(this,Ya(Mo),
this.Cm,this);y(this,Ya(No),this.Em,this);y(this,Ya(Oo),this.Fm,this);void 0!==a.element&&this.Qj(a.element);this.Xj(void 0!==a.offset?a.offset:[0,0]);this.$j(void 0!==a.positioning?a.positioning:"top-left");void 0!==a.position&&this.pf(a.position)}v(Jo,Wa);k=Jo.prototype;k.je=function(){return this.get(Ko)};k.Fn=function(){return this.f};k.nf=function(){return this.get(Lo)};k.ei=function(){return this.get(Mo)};k.Ai=function(){return this.get(No)};k.fi=function(){return this.get(Oo)};
k.om=function(){for(var a=this.c;a.lastChild;)a.removeChild(a.lastChild);(a=this.je())&&this.c.appendChild(a)};k.ym=function(){this.i&&(md(this.c),Ca(this.i),this.i=null);var a=this.nf();a&&(this.i=y(a,"postrender",this.render,this),Po(this),a=this.s?a.v:a.C,this.o?a.insertBefore(this.c,a.childNodes[0]||null):a.appendChild(this.c))};k.render=function(){Po(this)};k.Cm=function(){Po(this)};
k.Em=function(){Po(this);if(this.get(No)&&this.autoPan){var a=this.nf();if(a&&a.Jc()){var b=Qo(a.Jc(),a.Rb()),c=this.je(),d=c.offsetWidth,e=getComputedStyle(c);d+=parseInt(e.marginLeft,10)+parseInt(e.marginRight,10);e=c.offsetHeight;var f=getComputedStyle(c);e+=parseInt(f.marginTop,10)+parseInt(f.marginBottom,10);var g=Qo(c,[d,e]);c=this.l;pb(b,g)||(d=g[0]-b[0],e=b[2]-g[2],f=g[1]-b[1],g=b[3]-g[3],b=[0,0],0>d?b[0]=d-c:0>e&&(b[0]=Math.abs(e)+c),0>f?b[1]=f-c:0>g&&(b[1]=Math.abs(g)+c),0===b[0]&&0===b[1])||
(c=a.Z().va(),c=a.Pa(c),b=[c[0]+b[0],c[1]+b[1]],a.Z().animate({center:a.ab(b),duration:this.j.duration,easing:this.j.easing}))}}};k.Fm=function(){Po(this)};k.Qj=function(a){this.set(Ko,a)};k.setMap=function(a){this.set(Lo,a)};k.Xj=function(a){this.set(Mo,a)};k.pf=function(a){this.set(No,a)};function Qo(a,b){var c=a.getBoundingClientRect();a=c.left+window.pageXOffset;c=c.top+window.pageYOffset;return[a,c,a+b[0],c+b[1]]}k.$j=function(a){this.set(Oo,a)};
function Ro(a,b){a.a.visible!==b&&(a.c.style.display=b?"":"none",a.a.visible=b)}
function Po(a){var b=a.nf(),c=a.Ai();if(b&&b.c&&c){c=b.Pa(c);var d=b.Rb();b=a.c.style;var e=a.ei(),f=a.fi();Ro(a,!0);var g=e[0];e=e[1];if("bottom-right"==f||"center-right"==f||"top-right"==f)""!==a.a.gf&&(a.a.gf=b.left=""),g=Math.round(d[0]-c[0]-g)+"px",a.a.Jf!=g&&(a.a.Jf=b.right=g);else{""!==a.a.Jf&&(a.a.Jf=b.right="");if("bottom-center"==f||"center-center"==f||"top-center"==f)g-=a.c.offsetWidth/2;g=Math.round(c[0]+g)+"px";a.a.gf!=g&&(a.a.gf=b.left=g)}if("bottom-left"==f||"bottom-center"==f||"bottom-right"==
f)""!==a.a.Rf&&(a.a.Rf=b.top=""),c=Math.round(d[1]-c[1]-e)+"px",a.a.Pe!=c&&(a.a.Pe=b.bottom=c);else{""!==a.a.Pe&&(a.a.Pe=b.bottom="");if("center-left"==f||"center-center"==f||"center-right"==f)e-=a.c.offsetHeight/2;c=Math.round(c[1]+e)+"px";a.a.Rf!=c&&(a.a.Rf=b.top=c)}}else Ro(a,!1)}var Ko="element",Lo="map",Mo="offset",No="position",Oo="positioning";function So(a){function b(a){a=h.og(a);l.R.Z().cb(a);window.removeEventListener("mousemove",c);window.removeEventListener("mouseup",b)}function c(a){a=h.og({clientX:a.clientX-n.offsetWidth/2,clientY:a.clientY+n.offsetHeight/2});m.pf(a)}a=a?a:{};this.f=void 0!==a.collapsed?a.collapsed:!0;this.j=void 0!==a.collapsible?a.collapsible:!0;this.j||(this.f=!1);var d=void 0!==a.className?a.className:"ol-overviewmap",e=void 0!==a.tipLabel?a.tipLabel:"Overview map",f=void 0!==a.collapseLabel?a.collapseLabel:
"\u00ab";"string"===typeof f?(this.s=document.createElement("span"),this.s.textContent=f):this.s=f;f=void 0!==a.label?a.label:"\u00bb";"string"===typeof f?(this.v=document.createElement("span"),this.v.textContent=f):this.v=f;var g=this.j&&!this.f?this.s:this.v;f=document.createElement("button");f.setAttribute("type","button");f.title=e;f.appendChild(g);y(f,"click",this.Vn,this);this.C=document.createElement("DIV");this.C.className="ol-overviewmap-map";var h=this.a=new Q({controls:new bb,interactions:new bb,
view:a.view});a.layers&&a.layers.forEach(function(a){h.Lh(a)},this);e=document.createElement("DIV");e.className="ol-overviewmap-box";e.style.boxSizing="border-box";this.l=new Jo({position:[0,0],positioning:"bottom-left",element:e});this.a.Mh(this.l);e=document.createElement("div");e.className=d+" ol-unselectable ol-control"+(this.f&&this.j?" ol-collapsed":"")+(this.j?"":" ol-uncollapsible");e.appendChild(this.C);e.appendChild(f);Ql.call(this,{element:e,render:a.render?a.render:To,target:a.target});
var l=this,m=this.l,n=this.l.je();n.addEventListener("mousedown",function(){window.addEventListener("mousemove",c);window.addEventListener("mouseup",b)})}v(So,Ql);k=So.prototype;k.setMap=function(a){var b=this.R;a!==b&&(b&&((b=b.Z())&&Ja(b,Ya("rotation"),this.ef,this),this.a.mf(null)),Ql.prototype.setMap.call(this,a),a&&(this.a.mf(this.C),this.o.push(y(a,"propertychange",this.zm,this)),0===this.a.zi().rc()&&this.a.Vj(a.Nb()),a=a.Z()))&&(y(a,Ya("rotation"),this.ef,this),Ml(a)&&(this.a.Td(),Uo(this)))};
k.zm=function(a){"view"===a.key&&((a=a.oldValue)&&Ja(a,Ya("rotation"),this.ef,this),a=this.R.Z(),y(a,Ya("rotation"),this.ef,this))};k.ef=function(){this.a.Z().gd(this.R.Z().Qa())};function To(){var a=this.R,b=this.a;if(a.c&&b.c){var c=a.Rb();a=a.Z().zd(c);var d=b.Rb();c=b.Z().zd(d);var e=b.Pa(Bb(a)),f=b.Pa(zb(a));b=Math.abs(e[0]-f[0]);e=Math.abs(e[1]-f[1]);f=d[0];d=d[1];b<.1*f||e<.1*d||b>.75*f||e>.75*d?Uo(this):pb(c,a)||(a=this.a,c=this.R.Z(),a.Z().cb(c.va()))}Vo(this)}
function Uo(a){var b=a.R;a=a.a;var c=b.Rb();b=b.Z().zd(c);a=a.Z();Kb(b,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2)));a.mg(b)}function Vo(a){var b=a.R,c=a.a;if(b.c&&c.c){var d=b.Rb(),e=b.Z(),f=c.Z();c=e.Qa();b=a.l;var g=a.l.je(),h=e.zd(d);d=f.Ia();e=yb(h);f=Ab(h);if(a=a.R.Z().va()){var l=[e[0]-a[0],e[1]-a[1]];ud(l,c);pd(l,a)}b.pf(l);g&&(g.style.width=Math.abs((e[0]-f[0])/d)+"px",g.style.height=Math.abs((f[1]-e[1])/d)+"px")}}k.Vn=function(a){a.preventDefault();Wo(this)};
function Wo(a){a.element.classList.toggle("ol-collapsed");a.f?ld(a.s,a.v):ld(a.v,a.s);a.f=!a.f;var b=a.a;a.f||b.c||(b.Td(),Uo(a),Ia(b,"postrender",function(){Vo(this)},a))}k.Un=function(){return this.j};k.Xn=function(a){this.j!==a&&(this.j=a,this.element.classList.toggle("ol-uncollapsible"),!a&&this.f&&Wo(this))};k.Wn=function(a){this.j&&this.f!==a&&Wo(this)};k.Tn=function(){return this.f};k.Wl=function(){return this.a};function Xo(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-scale-line";this.j=document.createElement("DIV");this.j.className=b+"-inner";this.a=document.createElement("DIV");this.a.className=b+" ol-unselectable";this.a.appendChild(this.j);this.s=null;this.l=void 0!==a.minWidth?a.minWidth:64;this.f=!1;this.C=void 0;this.v="";Ql.call(this,{element:this.a,render:a.render?a.render:Yo,target:a.target});y(this,Ya(Zo),this.G,this);this.B(a.units||"metric")}v(Xo,Ql);var $o=[1,2,5];
Xo.prototype.Pb=function(){return this.get(Zo)};function Yo(a){(a=a.frameState)?this.s=a.viewState:this.s=null;ap(this)}Xo.prototype.G=function(){ap(this)};Xo.prototype.B=function(a){this.set(Zo,a)};
function ap(a){var b=a.s;if(b){var c=b.projection,d=c.dc();b=Ec(c,b.resolution,b.center)*d;d=a.l*b;c="";var e=a.Pb();"degrees"==e?(c=kc.degrees,b/=c,d<c/60?(c="\u2033",b*=3600):d<c?(c="\u2032",b*=60):c="\u00b0"):"imperial"==e?.9144>d?(c="in",b/=.0254):1609.344>d?(c="ft",b/=.3048):(c="mi",b/=1609.344):"nautical"==e?(b/=1852,c="nm"):"metric"==e?.001>d?(c="\u03bcm",b*=1E6):1>d?(c="mm",b*=1E3):1E3>d?c="m":(c="km",b/=1E3):"us"==e?.9144>d?(c="in",b*=39.37):1609.344>d?(c="ft",b/=.30480061):(c="mi",b/=1609.3472):
gb(!1,33);e=3*Math.floor(Math.log(a.l*b)/Math.log(10));for(var f;;){f=$o[(e%3+3)%3]*Math.pow(10,Math.floor(e/3));d=Math.round(f/b);if(isNaN(d)){a.a.style.display="none";a.f=!1;return}if(d>=a.l)break;++e}b=f+" "+c;a.v!=b&&(a.j.innerHTML=b,a.v=b);a.C!=d&&(a.j.style.width=d+"px",a.C=d);a.f||(a.a.style.display="",a.f=!0)}else a.f&&(a.a.style.display="none",a.f=!1)}var Zo="units";function bp(a){a=a?a:{};this.a=void 0;this.f=cp;this.v=this.l=0;this.G=null;this.X=!1;this.aa=void 0!==a.duration?a.duration:200;var b=void 0!==a.className?a.className:"ol-zoomslider",c=document.createElement("button");c.setAttribute("type","button");c.className=b+"-thumb ol-unselectable";var d=document.createElement("div");d.className=b+" ol-unselectable ol-control";d.appendChild(c);this.j=new Jm(d);y(this.j,"pointerdown",this.nm,this);y(this.j,"pointermove",this.lm,this);y(this.j,"pointerup",this.mm,
this);y(d,"click",this.km,this);y(c,"click",Oa);Ql.call(this,{element:d,render:a.render?a.render:dp})}v(bp,Ql);bp.prototype.xa=function(){Ma(this.j);Ql.prototype.xa.call(this)};var cp=0;k=bp.prototype;k.setMap=function(a){Ql.prototype.setMap.call(this,a);a&&a.render()};
function dp(a){if(a.frameState){if(!this.X){var b=this.element,c=b.offsetWidth,d=b.offsetHeight,e=b.firstElementChild,f=getComputedStyle(e);b=e.offsetWidth+parseFloat(f.marginRight)+parseFloat(f.marginLeft);e=e.offsetHeight+parseFloat(f.marginTop)+parseFloat(f.marginBottom);this.G=[b,e];c>d?(this.f=1,this.v=c-b):(this.f=cp,this.l=d-e);this.X=!0}a=a.frameState.viewState.resolution;a!==this.a&&(this.a=a,ep(this,a))}}
k.km=function(a){var b=this.R.Z();a=fp(this,Mb(1===this.f?(a.offsetX-this.G[0]/2)/this.v:(a.offsetY-this.G[1]/2)/this.l,0,1));b.animate({resolution:b.constrainResolution(a),duration:this.aa,easing:Vl})};k.nm=function(a){this.s||a.b.target!==this.element.firstElementChild||(fn(this.R.Z(),1,1),this.C=a.clientX,this.B=a.clientY,this.s=!0)};
k.lm=function(a){if(this.s){var b=this.element.firstElementChild;this.a=fp(this,Mb(1===this.f?(a.clientX-this.C+parseInt(b.style.left,10))/this.v:(a.clientY-this.B+parseInt(b.style.top,10))/this.l,0,1));this.R.Z().Uc(this.a);ep(this,this.a);this.C=a.clientX;this.B=a.clientY}};k.mm=function(){if(this.s){var a=this.R.Z();fn(a,1,-1);a.animate({resolution:a.constrainResolution(this.a),duration:this.aa,easing:Vl});this.s=!1;this.B=this.C=void 0}};
function ep(a,b){b=1-nn(a.R.Z())(b);var c=a.element.firstElementChild;1==a.f?c.style.left=a.v*b+"px":c.style.top=a.l*b+"px"}function fp(a,b){return mn(a.R.Z())(1-b)};function gp(a){a=a?a:{};this.a=a.extent?a.extent:null;var b=void 0!==a.className?a.className:"ol-zoom-extent",c=void 0!==a.label?a.label:"E",d=void 0!==a.tipLabel?a.tipLabel:"Fit to extent",e=document.createElement("button");e.setAttribute("type","button");e.title=d;e.appendChild("string"===typeof c?document.createTextNode(c):c);y(e,"click",this.f,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(e);Ql.call(this,{element:c,target:a.target})}v(gp,Ql);
gp.prototype.f=function(a){a.preventDefault();a=this.R.Z();var b=this.a?this.a:a.c.D();a.mg(b)};function hp(a){Wa.call(this);a=a?a:{};this.a=null;y(this,Ya(ip),this.nn,this);this.Gg(void 0!==a.tracking?a.tracking:!1)}v(hp,Wa);k=hp.prototype;k.xa=function(){this.Gg(!1);Wa.prototype.xa.call(this)};
k.Wp=function(a){if(null!==a.alpha){var b=Rb(a.alpha);this.set(jp,b);"boolean"===typeof a.absolute&&a.absolute?this.set(kp,b):"number"===typeof a.webkitCompassHeading&&-1!=a.webkitCompassAccuracy&&this.set(kp,Rb(a.webkitCompassHeading))}null!==a.beta&&this.set(lp,Rb(a.beta));null!==a.gamma&&this.set(mp,Rb(a.gamma));this.u()};k.pl=function(){return this.get(jp)};k.sl=function(){return this.get(lp)};k.Dl=function(){return this.get(mp)};k.mn=function(){return this.get(kp)};k.vi=function(){return this.get(ip)};
k.nn=function(){if(fe){var a=this.vi();a&&!this.a?this.a=y(window,"deviceorientation",this.Wp,this):a||null===this.a||(Ca(this.a),this.a=null)}};k.Gg=function(a){this.set(ip,a)};var jp="alpha",lp="beta",mp="gamma",kp="heading",ip="tracking";function np(){this.i=this.defaultDataProjection=null}function op(a,b,c){var d;c&&(d={dataProjection:c.dataProjection?c.dataProjection:a.hb(b),featureProjection:c.featureProjection});return pp(a,d)}function pp(a,b){return wa({dataProjection:a.defaultDataProjection,featureProjection:a.i},b)}
function qp(a,b,c){var d=c?Gc(c.featureProjection):null,e=c?Gc(c.dataProjection):null,f;d&&e&&!Pc(d,e)?a instanceof Od?f=(b?a.clone():a).transform(b?d:e,b?e:d):f=Tc(b?a.slice():a,b?d:e,b?e:d):f=a;if(b&&c&&c.decimals){var g=Math.pow(10,c.decimals);a=function(a){for(var b=0,c=a.length;b<c;++b)a[b]=Math.round(a[b]*g)/g;return a};Array.isArray(f)?a(f):f.yc(a)}return f};function rp(){this.g=new XMLSerializer;np.call(this)}v(rp,np);k=rp.prototype;k.T=function(){return"xml"};k.hc=function(a,b){return uj(a)?sp(this,a,b):vj(a)?this.Yg(a,b):"string"===typeof a?(a=wj(a),sp(this,a,b)):null};function sp(a,b,c){a=tp(a,b,c);return 0<a.length?a[0]:null}k.Yg=function(){return null};k.Oa=function(a,b){return uj(a)?tp(this,a,b):vj(a)?this.wc(a,b):"string"===typeof a?(a=wj(a),tp(this,a,b)):[]};
function tp(a,b,c){var d=[];for(b=b.firstChild;b;b=b.nextSibling)b.nodeType==Node.ELEMENT_NODE&&dd(d,a.wc(b,c));return d}k.od=function(a,b){if(uj(a))return null;if(vj(a))return this.Ej(a,b);"string"===typeof a&&wj(a);return null};k.Ej=function(){return null};k.hb=function(a){return uj(a)?this.Gf(a):vj(a)?this.Pd(a):"string"===typeof a?(a=wj(a),this.Gf(a)):null};k.Gf=function(){return this.defaultDataProjection};k.Pd=function(){return this.defaultDataProjection};k.Ud=function(){return this.g.serializeToString(this.zh())};
k.zh=function(){return null};k.Xb=function(a,b){a=this.kc(a,b);return this.g.serializeToString(a)};k.kc=function(){return null};k.wd=function(a,b){a=this.Fe(a,b);return this.g.serializeToString(a)};k.Fe=function(){return null};function R(a,b){Rd.call(this);this.c=[];this.j=this.v=-1;this.ua(a,b)}v(R,Rd);k=R.prototype;k.Xk=function(a){this.A?dd(this.A,a.ja().slice()):this.A=a.ja().slice();this.c.push(this.A.length);this.u()};k.clone=function(){var a=new R(null);a.fa(this.ma,this.A.slice(),this.c.slice());return a};k.Lb=function(a,b,c,d){if(d<mb(this.D(),a,b))return d;this.j!=this.g&&(this.v=Math.sqrt(Kk(this.A,0,this.c,this.a,0)),this.j=this.g);return Mk(this.A,0,this.c,this.a,this.v,!1,a,b,c,d)};
k.lo=function(a,b,c){return"XYM"!=this.ma&&"XYZM"!=this.ma||0===this.A.length?null:Uk(this.A,this.c,this.a,a,void 0!==b?b:!1,void 0!==c?c:!1)};k.U=function(){return Rk(this.A,0,this.c,this.a)};k.$b=function(){return this.c};k.Ml=function(a){if(0>a||this.c.length<=a)return null;var b=new K(null);b.fa(this.ma,this.A.slice(0===a?0:this.c[a-1],this.c[a]));return b};
k.Hc=function(){var a=this.A,b=this.c,c=this.ma,d=[],e=0,f;var g=0;for(f=b.length;g<f;++g){var h=b[g],l=new K(null);l.fa(c,a.slice(e,h));d.push(l);e=h}return d};function Je(a){var b=[],c=a.A,d=0,e=a.c;a=a.a;var f;var g=0;for(f=e.length;g<f;++g){var h=e[g];d=Sk(c,d,h,a,.5);dd(b,d);d=h}return b}k.Dd=function(a){var b=[],c=[],d=this.A,e=this.c,f=this.a,g=0,h=0,l;var m=0;for(l=e.length;m<l;++m){var n=e[m];h=ck(d,g,n,f,a,b,h);c.push(h);g=n}b.length=h;a=new R(null);a.fa("XY",b,c);return a};k.T=function(){return"MultiLineString"};
k.bb=function(a){a:{var b=this.A,c=this.c,d=this.a,e=0,f;var g=0;for(f=c.length;g<f;++g){if(Wk(b,e,c[g],d,a)){a=!0;break a}e=c[g]}a=!1}return a};k.ua=function(a,b){a?(Ud(this,b,a,2),this.A||(this.A=[]),a=Pk(this.A,0,a,this.a,this.c),this.A.length=0===a.length?0:a[a.length-1],this.u()):this.fa("XY",null,this.c)};k.fa=function(a,b,c){Td(this,a,b);this.c=c;this.u()};
function up(a,b){var c=a.ma,d=[],e=[],f;var g=0;for(f=b.length;g<f;++g){var h=b[g];0===g&&(c=h.ma);dd(d,h.ja());e.push(d.length)}a.fa(c,d,e)};function T(a,b){Rd.call(this);this.ua(a,b)}v(T,Rd);k=T.prototype;k.Zk=function(a){this.A?dd(this.A,a.ja()):this.A=a.ja().slice();this.u()};k.clone=function(){var a=new T(null);a.fa(this.ma,this.A.slice());return a};k.Lb=function(a,b,c,d){if(d<mb(this.D(),a,b))return d;var e=this.A,f=this.a,g;var h=0;for(g=e.length;h<g;h+=f){var l=Qb(a,b,e[h],e[h+1]);if(l<d){d=l;for(l=0;l<f;++l)c[l]=e[h+l];c.length=f}}return d};k.U=function(){return Qk(this.A,0,this.A.length,this.a)};
k.mo=function(a){var b=this.A?this.A.length/this.a:0;if(0>a||b<=a)return null;b=new L(null);b.fa(this.ma,this.A.slice(a*this.a,(a+1)*this.a));return b};k.Hd=function(){var a=this.A,b=this.ma,c=this.a,d=[],e;var f=0;for(e=a.length;f<e;f+=c){var g=new L(null);g.fa(b,a.slice(f,f+c));d.push(g)}return d};k.T=function(){return"MultiPoint"};k.bb=function(a){var b=this.A,c=this.a,d;var e=0;for(d=b.length;e<d;e+=c){var f=b[e];var g=b[e+1];if(ob(a,f,g))return!0}return!1};
k.ua=function(a,b){a?(Ud(this,b,a,1),this.A||(this.A=[]),this.A.length=Ok(this.A,0,a,this.a),this.u()):this.fa("XY",null)};k.fa=function(a,b){Td(this,a,b);this.u()};function U(a,b){Rd.call(this);this.c=[];this.v=-1;this.C=null;this.N=this.B=this.G=-1;this.j=null;this.ua(a,b)}v(U,Rd);k=U.prototype;k.$k=function(a){if(this.A){var b=this.A.length;dd(this.A,a.ja());a=a.$b().slice();var c;var d=0;for(c=a.length;d<c;++d)a[d]+=b}else this.A=a.ja().slice(),a=a.$b().slice(),this.c.push();this.c.push(a);this.u()};k.clone=function(){for(var a=new U(null),b=this.c.length,c=Array(b),d=0;d<b;++d)c[d]=this.c[d].slice();vp(a,this.ma,this.A.slice(),c);return a};
k.Lb=function(a,b,c,d){if(d<mb(this.D(),a,b))return d;if(this.B!=this.g){var e=this.c,f=0,g=0,h;var l=0;for(h=e.length;l<h;++l){var m=e[l];g=Kk(this.A,f,m,this.a,g);f=m[m.length-1]}this.G=Math.sqrt(g);this.B=this.g}e=Le(this);f=this.c;g=this.a;l=this.G;h=0;m=[NaN,NaN];var n;var p=0;for(n=f.length;p<n;++p){var q=f[p];d=Mk(e,h,q,g,l,!0,a,b,c,d,m);h=q[q.length-1]}return d};
k.hd=function(a,b){a:{var c=Le(this),d=this.c,e=0;if(0!==d.length){var f;var g=0;for(f=d.length;g<f;++g){var h=d[g];if(Dg(c,e,h,this.a,a,b)){a=!0;break a}e=h[h.length-1]}}a=!1}return a};k.no=function(){var a=Le(this),b=this.c,c=0,d=0,e;var f=0;for(e=b.length;f<e;++f){var g=b[f];d+=eg(a,c,g,this.a);c=g[g.length-1]}return d};
k.U=function(a){if(void 0!==a){var b=Le(this).slice();cg(b,this.c,this.a,a)}else b=this.A;a=b;b=this.c;var c=this.a,d=0,e=[],f=0,g;var h=0;for(g=b.length;h<g;++h){var l=b[h];e[f++]=Rk(a,d,l,c,e[f]);d=l[l.length-1]}e.length=f;return e};
function Me(a){if(a.v!=a.g){var b=a.A,c=a.c,d=a.a,e=0,f=[],g;var h=0;for(g=c.length;h<g;++h){var l=c[h];e=tb(b,e,l[0],d);f.push((e[0]+e[2])/2,(e[1]+e[3])/2);e=l[l.length-1]}b=Le(a);c=a.c;d=a.a;h=0;g=[];l=0;for(e=c.length;l<e;++l){var m=c[l];g=$k(b,h,m,d,f,2*l,g);h=m[m.length-1]}a.C=g;a.v=a.g}return a.C}k.Il=function(){var a=new T(null);a.fa("XY",Me(this).slice());return a};
function Le(a){if(a.N!=a.g){var b=a.A;a:{var c=a.c;var d;var e=0;for(d=c.length;e<d;++e)if(!ag(b,c[e],a.a,void 0)){c=!1;break a}c=!0}c?a.j=b:(a.j=b.slice(),a.j.length=cg(a.j,a.c,a.a));a.N=a.g}return a.j}k.Dd=function(a){var b=[],c=[],d=this.A,e=this.c,f=this.a;a=Math.sqrt(a);var g=0,h=0,l;var m=0;for(l=e.length;m<l;++m){var n=e[m],p=[];h=dk(d,g,n,f,a,b,h,p);c.push(p);g=n[n.length-1]}b.length=h;d=new U(null);vp(d,"XY",b,c);return d};
k.Yl=function(a){if(0>a||this.c.length<=a)return null;if(0===a)var b=0;else b=this.c[a-1],b=b[b.length-1];a=this.c[a].slice();var c=a[a.length-1];if(0!==b){var d;var e=0;for(d=a.length;e<d;++e)a[e]-=b}e=new M(null);e.fa(this.ma,this.A.slice(b,c),a);return e};k.bd=function(){var a=this.ma,b=this.A,c=this.c,d=[],e=0,f,g;var h=0;for(f=c.length;h<f;++h){var l=c[h].slice(),m=l[l.length-1];if(0!==e){var n=0;for(g=l.length;n<g;++n)l[n]-=e}n=new M(null);n.fa(a,b.slice(e,m),l);d.push(n);e=m}return d};
k.T=function(){return"MultiPolygon"};k.bb=function(a){a:{var b=Le(this),c=this.c,d=this.a,e=0,f;var g=0;for(f=c.length;g<f;++g){var h=c[g];if(Xk(b,e,h,d,a)){a=!0;break a}e=h[h.length-1]}a=!1}return a};
k.ua=function(a,b){if(a){Ud(this,b,a,3);this.A||(this.A=[]);b=this.A;var c=this.a,d=this.c,e=0;d=d?d:[];var f=0,g;var h=0;for(g=a.length;h<g;++h)e=Pk(b,e,a[h],c,d[f]),d[f++]=e,e=e[e.length-1];d.length=f;0===d.length?this.A.length=0:(a=d[d.length-1],this.A.length=0===a.length?0:a[a.length-1]);this.u()}else vp(this,"XY",null,this.c)};function vp(a,b,c,d){Td(a,b,c);a.c=d;a.u()}
function wp(a,b){var c=a.ma,d=[],e=[],f;var g=0;for(f=b.length;g<f;++g){var h=b[g];0===g&&(c=h.ma);var l=d.length;var m=h.$b();var n;var p=0;for(n=m.length;p<n;++p)m[p]+=l;dd(d,h.ja());e.push(m)}vp(a,c,d,e)};function xp(a){a=a?a:{};this.featureType=a.featureType;this.featureNS=a.featureNS;this.srsName=a.srsName;this.schemaLocation="";this.b={};this.b["http://www.opengis.net/gml"]={featureMember:zj(xp.prototype.ve),featureMembers:zj(xp.prototype.ve)};rp.call(this)}v(xp,rp);var yp=/^[\s\xa0]*$/;k=xp.prototype;
k.ve=function(a,b){var c=a.localName,d=null;if("FeatureCollection"==c)"http://www.opengis.net/wfs"===a.namespaceURI?d=I([],this.b,a,b,this):d=I(null,this.b,a,b,this);else if("featureMembers"==c||"featureMember"==c){var e=b[0],f=e.featureType,g=e.featureNS,h;if(!f&&a.childNodes){f=[];g={};var l=0;for(h=a.childNodes.length;l<h;++l){var m=a.childNodes[l];if(1===m.nodeType){var n=m.nodeName.split(":").pop();if(-1===f.indexOf(n)){var p="",q=0;m=m.namespaceURI;for(var t in g){if(g[t]===m){p=t;break}++q}p||
(p="p"+q,g[p]=m);f.push(p+":"+n)}}}"featureMember"!=c&&(e.featureType=f,e.featureNS=g)}"string"===typeof g&&(l=g,g={},g.p0=l);e={};f=Array.isArray(f)?f:[f];for(var u in g){n={};l=0;for(h=f.length;l<h;++l)(-1===f[l].indexOf(":")?"p0":f[l].split(":")[0])===u&&(n[f[l].split(":").pop()]="featureMembers"==c?yj(this.Xg,this):zj(this.Xg,this));e[g[u]]=n}"featureMember"==c?d=I(void 0,e,a,b):d=I([],e,a,b)}null===d&&(d=[]);return d};
k.xe=function(a,b){var c=b[0];c.srsName=a.firstElementChild.getAttribute("srsName");if(a=I(null,this.Vf,a,b,this))return qp(a,!1,c)};
k.Xg=function(a,b){var c;(c=a.getAttribute("fid"))||(c=a.getAttributeNS("http://www.opengis.net/gml","id")||"");var d={},e;for(a=a.firstElementChild;a;a=a.nextElementSibling){var f=a.localName;if(0===a.childNodes.length||1===a.childNodes.length&&(3===a.firstChild.nodeType||4===a.firstChild.nodeType)){var g=sj(a,!1);yp.test(g)&&(g=void 0);d[f]=g}else"boundedBy"!==f&&(e=f),d[f]=this.xe(a,b)}b=new E(d);e&&b.pd(e);c&&b.xc(c);return b};
k.Jj=function(a,b){if(a=this.Df(a,b))return b=new L(null),b.fa("XYZ",a),b};k.Hj=function(a,b){if(a=I([],this.uk,a,b,this))return new T(a)};k.Gj=function(a,b){if(a=I([],this.tk,a,b,this))return b=new R(null),up(b,a),b};k.Ij=function(a,b){if(a=I([],this.vk,a,b,this))return b=new U(null),wp(b,a),b};k.Aj=function(a,b){Gj(this.yk,a,b,this)};k.ni=function(a,b){Gj(this.rk,a,b,this)};k.Bj=function(a,b){Gj(this.zk,a,b,this)};k.Ef=function(a,b){if(a=this.Df(a,b))return b=new K(null),b.fa("XYZ",a),b};
k.wq=function(a,b){if(a=I(null,this.He,a,b,this))return a};k.Fj=function(a,b){if(a=this.Df(a,b))return b=new Yk(null),Zk(b,"XYZ",a),b};k.Ff=function(a,b){if((a=I([null],this.Uf,a,b,this))&&a[0]){b=new M(null);var c=a[0],d=[c.length],e;var f=1;for(e=a.length;f<e;++f)dd(c,a[f]),d.push(c.length);b.fa("XYZ",c,d);return b}};k.Df=function(a,b){return I(null,this.He,a,b,this)};k.uk={"http://www.opengis.net/gml":{pointMember:yj(xp.prototype.Aj),pointMembers:yj(xp.prototype.Aj)}};
k.tk={"http://www.opengis.net/gml":{lineStringMember:yj(xp.prototype.ni),lineStringMembers:yj(xp.prototype.ni)}};k.vk={"http://www.opengis.net/gml":{polygonMember:yj(xp.prototype.Bj),polygonMembers:yj(xp.prototype.Bj)}};k.yk={"http://www.opengis.net/gml":{Point:yj(xp.prototype.Df)}};k.rk={"http://www.opengis.net/gml":{LineString:yj(xp.prototype.Ef)}};k.zk={"http://www.opengis.net/gml":{Polygon:yj(xp.prototype.Ff)}};k.Ie={"http://www.opengis.net/gml":{LinearRing:zj(xp.prototype.wq)}};
k.Ej=function(a,b){return(a=this.xe(a,[op(this,a,b?b:{})]))?a:null};k.wc=function(a,b){var c={featureType:this.featureType,featureNS:this.featureNS};b&&wa(c,op(this,a,b));return this.ve(a,[c])||[]};k.Pd=function(a){return Gc(this.srsName?this.srsName:a.firstElementChild.getAttribute("srsName"))};function Ap(a){a=sj(a,!1);return Bp(a)}function Bp(a){if(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))return void 0!==a[1]||!1}function Cp(a){a=sj(a,!1);a=Date.parse(a);return isNaN(a)?void 0:a/1E3}function Dp(a){a=sj(a,!1);return Ep(a)}function Ep(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}function Fp(a){a=sj(a,!1);return Gp(a)}function Gp(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function V(a){return sj(a,!1).trim()}
function Hp(a,b){Ip(a,b?"1":"0")}function Jp(a,b){a.appendChild(qj.createTextNode(b.toPrecision()))}function Kp(a,b){a.appendChild(qj.createTextNode(b.toString()))}function Ip(a,b){a.appendChild(qj.createTextNode(b))};function W(a){a=a?a:{};xp.call(this,a);this.o=void 0!==a.surface?a.surface:!1;this.c=void 0!==a.curve?a.curve:!1;this.f=void 0!==a.multiCurve?a.multiCurve:!0;this.j=void 0!==a.multiSurface?a.multiSurface:!0;this.schemaLocation=a.schemaLocation?a.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}v(W,xp);k=W.prototype;k.Cq=function(a,b){if(a=I([],this.sk,a,b,this))return b=new R(null),up(b,a),b};
k.Dq=function(a,b){if(a=I([],this.wk,a,b,this))return b=new U(null),wp(b,a),b};k.Sh=function(a,b){Gj(this.nk,a,b,this)};k.gk=function(a,b){Gj(this.Ck,a,b,this)};k.Gq=function(a,b){return I([null],this.xk,a,b,this)};k.Mq=function(a,b){return I([null],this.Bk,a,b,this)};k.Iq=function(a,b){return I([null],this.Uf,a,b,this)};k.Bq=function(a,b){return I([null],this.He,a,b,this)};k.Tm=function(a,b){(a=I(void 0,this.Ie,a,b,this))&&b[b.length-1].push(a)};
k.hl=function(a,b){(a=I(void 0,this.Ie,a,b,this))&&(b[b.length-1][0]=a)};k.Kj=function(a,b){if((a=I([null],this.Dk,a,b,this))&&a[0]){b=new M(null);var c=a[0],d=[c.length],e;var f=1;for(e=a.length;f<e;++f)dd(c,a[f]),d.push(c.length);b.fa("XYZ",c,d);return b}};k.Cj=function(a,b){if(a=I([null],this.pk,a,b,this))return b=new K(null),b.fa("XYZ",a),b};k.vq=function(a,b){a=I([null],this.qk,a,b,this);return rb(a[1][0],a[1][1],a[2][0],a[2][1])};
k.xq=function(a,b){var c=sj(a,!1),d=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/;a=[];for(var e;e=d.exec(c);)a.push(parseFloat(e[1])),c=c.substr(e[0].length);if(""===c){b=b[0].srsName;c="enu";b&&(c=Gc(b).b);if("neu"===c)for(b=0,c=a.length;b<c;b+=3)d=a[b],a[b]=a[b+1],a[b+1]=d;b=a.length;2==b&&a.push(0);if(0!==b)return a}};
k.bh=function(a,b){var c=sj(a,!1).replace(/^\s*|\s*$/g,""),d=b[0].srsName,e=a.parentNode.getAttribute("srsDimension");b="enu";d&&(b=Gc(d).b);c=c.split(/\s+/);d=2;a.getAttribute("srsDimension")?d=Gp(a.getAttribute("srsDimension")):a.getAttribute("dimension")?d=Gp(a.getAttribute("dimension")):e&&(d=Gp(e));for(var f,g=[],h=0,l=c.length;h<l;h+=d)a=parseFloat(c[h]),e=parseFloat(c[h+1]),f=3===d?parseFloat(c[h+2]):0,"en"===b.substr(0,2)?g.push(a,e,f):g.push(e,a,f);return g};
k.He={"http://www.opengis.net/gml":{pos:zj(W.prototype.xq),posList:zj(W.prototype.bh)}};k.Uf={"http://www.opengis.net/gml":{interior:W.prototype.Tm,exterior:W.prototype.hl}};
k.Vf={"http://www.opengis.net/gml":{Point:zj(xp.prototype.Jj),MultiPoint:zj(xp.prototype.Hj),LineString:zj(xp.prototype.Ef),MultiLineString:zj(xp.prototype.Gj),LinearRing:zj(xp.prototype.Fj),Polygon:zj(xp.prototype.Ff),MultiPolygon:zj(xp.prototype.Ij),Surface:zj(W.prototype.Kj),MultiSurface:zj(W.prototype.Dq),Curve:zj(W.prototype.Cj),MultiCurve:zj(W.prototype.Cq),Envelope:zj(W.prototype.vq)}};k.sk={"http://www.opengis.net/gml":{curveMember:yj(W.prototype.Sh),curveMembers:yj(W.prototype.Sh)}};
k.wk={"http://www.opengis.net/gml":{surfaceMember:yj(W.prototype.gk),surfaceMembers:yj(W.prototype.gk)}};k.nk={"http://www.opengis.net/gml":{LineString:yj(xp.prototype.Ef),Curve:yj(W.prototype.Cj)}};k.Ck={"http://www.opengis.net/gml":{Polygon:yj(xp.prototype.Ff),Surface:yj(W.prototype.Kj)}};k.Dk={"http://www.opengis.net/gml":{patches:zj(W.prototype.Gq)}};k.pk={"http://www.opengis.net/gml":{segments:zj(W.prototype.Mq)}};k.qk={"http://www.opengis.net/gml":{lowerCorner:yj(W.prototype.bh),upperCorner:yj(W.prototype.bh)}};
k.xk={"http://www.opengis.net/gml":{PolygonPatch:zj(W.prototype.Iq)}};k.Bk={"http://www.opengis.net/gml":{LineStringSegment:zj(W.prototype.Bq)}};function Lp(a,b,c){c=c[c.length-1].srsName;b=b.U();for(var d=b.length,e=Array(d),f,g=0;g<d;++g){f=b[g];var h=g,l="enu";c&&(l=Gc(c).b);e[h]="en"===l.substr(0,2)?f[0]+" "+f[1]:f[1]+" "+f[0]}Ip(a,e.join(" "))}
k.Pi=function(a,b,c){var d=c[c.length-1].srsName;d&&a.setAttribute("srsName",d);d=rj(a.namespaceURI,"pos");a.appendChild(d);c=c[c.length-1].srsName;a="enu";c&&(a=Gc(c).b);b=b.U();Ip(d,"en"===a.substr(0,2)?b[0]+" "+b[1]:b[1]+" "+b[0])};var Mp={"http://www.opengis.net/gml":{lowerCorner:G(Ip),upperCorner:G(Ip)}};k=W.prototype;k.co=function(a,b,c){var d=c[c.length-1].srsName;d&&a.setAttribute("srsName",d);Hj({node:a},Mp,Ej,[b[0]+" "+b[1],b[2]+" "+b[3]],c,["lowerCorner","upperCorner"],this)};
k.Mi=function(a,b,c){var d=c[c.length-1].srsName;d&&a.setAttribute("srsName",d);d=rj(a.namespaceURI,"posList");a.appendChild(d);Lp(d,b,c)};k.bo=function(a,b){a=b[b.length-1];b=a.node;var c=a.exteriorWritten;void 0===c&&(a.exteriorWritten=!0);return rj(b.namespaceURI,void 0!==c?"interior":"exterior")};
k.tf=function(a,b,c){var d=c[c.length-1].srsName;"PolygonPatch"!==a.nodeName&&d&&a.setAttribute("srsName",d);"Polygon"===a.nodeName||"PolygonPatch"===a.nodeName?(b=b.Ic(),Hj({node:a,srsName:d},Np,this.bo,b,c,void 0,this)):"Surface"===a.nodeName&&(d=rj(a.namespaceURI,"patches"),a.appendChild(d),a=rj(d.namespaceURI,"PolygonPatch"),d.appendChild(a),this.tf(a,b,c))};
k.sf=function(a,b,c){var d=c[c.length-1].srsName;"LineStringSegment"!==a.nodeName&&d&&a.setAttribute("srsName",d);"LineString"===a.nodeName||"LineStringSegment"===a.nodeName?(d=rj(a.namespaceURI,"posList"),a.appendChild(d),Lp(d,b,c)):"Curve"===a.nodeName&&(d=rj(a.namespaceURI,"segments"),a.appendChild(d),a=rj(d.namespaceURI,"LineStringSegment"),d.appendChild(a),this.sf(a,b,c))};
k.Oi=function(a,b,c){var d=c[c.length-1],e=d.srsName;d=d.surface;e&&a.setAttribute("srsName",e);b=b.bd();Hj({node:a,srsName:e,surface:d},Op,this.l,b,c,void 0,this)};k.eo=function(a,b,c){var d=c[c.length-1].srsName;d&&a.setAttribute("srsName",d);b=b.Hd();Hj({node:a,srsName:d},Pp,Cj("pointMember"),b,c,void 0,this)};k.Ni=function(a,b,c){var d=c[c.length-1],e=d.srsName;d=d.curve;e&&a.setAttribute("srsName",e);b=b.Hc();Hj({node:a,srsName:e,curve:d},Qp,this.l,b,c,void 0,this)};
k.Qi=function(a,b,c){var d=rj(a.namespaceURI,"LinearRing");a.appendChild(d);this.Mi(d,b,c)};k.Ri=function(a,b,c){var d=this.a(b,c);d&&(a.appendChild(d),this.tf(d,b,c))};k.fo=function(a,b,c){var d=rj(a.namespaceURI,"Point");a.appendChild(d);this.Pi(d,b,c)};k.Li=function(a,b,c){var d=this.a(b,c);d&&(a.appendChild(d),this.sf(d,b,c))};
k.Sb=function(a,b,c){var d=c[c.length-1],e=wa({},d);e.node=a;var f;Array.isArray(b)?d.dataProjection?f=Tc(b,d.featureProjection,d.dataProjection):f=b:f=qp(b,!0,d);Hj(e,Rp,this.a,[f],c,void 0,this)};
k.Kg=function(a,b,c){var d=b.a;d&&a.setAttribute("fid",d);d=c[c.length-1];var e=d.featureNS,f=b.c;d.qb||(d.qb={},d.qb[e]={});var g=b.L();b=[];var h=[];for(m in g){var l=g[m];null!==l&&(b.push(m),h.push(l),m==f||l instanceof Od?m in d.qb[e]||(d.qb[e][m]=G(this.Sb,this)):m in d.qb[e]||(d.qb[e][m]=G(Ip)))}var m=wa({},d);m.node=a;Hj(m,d.qb,Cj(void 0,e),h,c,b)};
var Op={"http://www.opengis.net/gml":{surfaceMember:G(W.prototype.Ri),polygonMember:G(W.prototype.Ri)}},Pp={"http://www.opengis.net/gml":{pointMember:G(W.prototype.fo)}},Qp={"http://www.opengis.net/gml":{lineStringMember:G(W.prototype.Li),curveMember:G(W.prototype.Li)}},Np={"http://www.opengis.net/gml":{exterior:G(W.prototype.Qi),interior:G(W.prototype.Qi)}},Rp={"http://www.opengis.net/gml":{Curve:G(W.prototype.sf),MultiCurve:G(W.prototype.Ni),Point:G(W.prototype.Pi),MultiPoint:G(W.prototype.eo),
LineString:G(W.prototype.sf),MultiLineString:G(W.prototype.Ni),LinearRing:G(W.prototype.Mi),Polygon:G(W.prototype.tf),MultiPolygon:G(W.prototype.Oi),Surface:G(W.prototype.tf),MultiSurface:G(W.prototype.Oi),Envelope:G(W.prototype.co)}},Sp={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};W.prototype.l=function(a,b){return rj("http://www.opengis.net/gml",Sp[b[b.length-1].node.nodeName])};
W.prototype.a=function(a,b){var c=b[b.length-1];b=c.multiSurface;var d=c.surface,e=c.curve;c=c.multiCurve;Array.isArray(a)?a="Envelope":(a=a.T(),"MultiPolygon"===a&&!0===b?a="MultiSurface":"Polygon"===a&&!0===d?a="Surface":"LineString"===a&&!0===e?a="Curve":"MultiLineString"===a&&!0===c&&(a="MultiCurve"));return rj("http://www.opengis.net/gml",a)};
W.prototype.Fe=function(a,b){b=pp(this,b);var c=rj("http://www.opengis.net/gml","geom"),d={node:c,srsName:this.srsName,curve:this.c,surface:this.o,multiSurface:this.j,multiCurve:this.f};b&&wa(d,b);this.Sb(c,a,[d]);return c};
W.prototype.kc=function(a,b){b=pp(this,b);var c=rj("http://www.opengis.net/gml","featureMembers");c.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);var d={srsName:this.srsName,curve:this.c,surface:this.o,multiSurface:this.j,multiCurve:this.f,featureNS:this.featureNS,featureType:this.featureType};b&&wa(d,b);b=[d];var e=b[b.length-1];d=e.featureType;var f=e.featureNS,g={};g[f]={};g[f][d]=G(this.Kg,this);e=wa({},e);e.node=c;Hj(e,g,Cj(d,f),a,b);return c};function Tp(a){a=a?a:{};W.call(this,a);this.schemaLocation=a.schemaLocation?a.schemaLocation:Tp.a;this.b["http://www.opengis.net/citygml/building/2.0"]={Building:zj(this.rq)};this.b["http://www.opengis.net/citygml/bridge/2.0"]={Bridge:zj(this.qq)};this.b["http://www.opengis.net/citygml/generics/2.0"]={GenericCityObject:zj(this.zq)};this.b["http://www.opengis.net/citygml/tunnel/2.0"]={Tunnel:zj(this.Tq)};this.b["http://www.opengis.net/citygml/cityfurniture/2.0"]={CityFurniture:zj(this.sq)};this.b["http://www.opengis.net/citygml/cityobjectgroup/2.0"]=
{CityObjectGroup:zj(this.tq)};this.b["http://www.opengis.net/citygml/landuse/2.0"]={LandUse:zj(this.Aq)};this.b["http://www.opengis.net/citygml/transportation/2.0"]={TransportationComplex:zj(this.Sq),Railway:zj(this.Jq),Road:zj(this.Lq),Track:zj(this.Rq),Square:zj(this.Qq)};this.b["http://www.opengis.net/citygml/vegetation/2.0"]={SolitaryVegetationObject:zj(this.Pq),PlantCover:zj(this.Hq)};this.b["http://www.opengis.net/citygml/waterbody/2.0"]={WaterBody:zj(this.Vq)}}v(Tp,W);k=Tp.prototype;
k.zq=function(a,b){var c={id:a.getAttribute("gml:id"),type:5,children:[]};return c=I(c,this.kb,a,b,this)};k.rq=function(a,b){var c={id:a.getAttribute("gml:id"),type:26,children:[]};return c=I(c,this.kb,a,b,this)};k.qq=function(a,b){var c={id:a.getAttribute("gml:id"),type:64,children:[]};return c=I(c,this.kb,a,b,this)};k.Tq=function(a,b){var c={id:a.getAttribute("gml:id"),type:85,children:[]};return c=I(c,this.kb,a,b,this)};
k.sq=function(a,b){var c={id:a.getAttribute("gml:id"),type:21,children:[]};return c=I(c,this.kb,a,b,this)};k.tq=function(a,b){var c={id:a.getAttribute("gml:id"),type:23,children:[]};return c=I(c,this.kb,a,b,this)};k.Aq=function(a,b){var c={id:a.getAttribute("gml:id"),type:4,children:[]};return c=I(c,this.kb,a,b,this)};k.Sq=function(a,b){var c={id:a.getAttribute("gml:id"),type:42,children:[]};return c=I(c,this.kb,a,b,this)};
k.Jq=function(a,b){var c={id:a.getAttribute("gml:id"),type:44,children:[]};return c=I(c,this.kb,a,b,this)};k.Lq=function(a,b){var c={id:a.getAttribute("gml:id"),type:45,children:[]};return c=I(c,this.kb,a,b,this)};k.Rq=function(a,b){var c={id:a.getAttribute("gml:id"),type:43,children:[]};return c=I(c,this.kb,a,b,this)};k.Qq=function(a,b){var c={id:a.getAttribute("gml:id"),type:46,children:[]};return c=I(c,this.kb,a,b,this)};
k.Pq=function(a,b){var c={id:a.getAttribute("gml:id"),type:7,children:[]};return c=I(c,this.kb,a,b,this)};k.Hq=function(a,b){var c={id:a.getAttribute("gml:id"),type:8,children:[]};return c=I(c,this.kb,a,b,this)};k.Vq=function(a,b){var c={id:a.getAttribute("gml:id"),type:9,children:[]};return c=I(c,this.kb,a,b,this)};k.oq=function(a,b){var c={id:null,type:"_3",attributes:{},children:[]};c.attributes.extent=I(c,W.prototype.Vf,a,b,this);return c};
k.kb={"http://www.opengis.net/gml":{boundedBy:Aj(Tp.prototype.oq,"children")}};function Up(){np.call(this)}v(Up,np);function Vp(a){return"string"===typeof a?(a=JSON.parse(a))?a:null:null!==a?a:null}k=Up.prototype;k.T=function(){return"json"};k.hc=function(a,b){return this.md(Vp(a),op(this,a,b))};k.Oa=function(a,b){return this.Zg(Vp(a),op(this,a,b))};k.od=function(a,b){return this.dh(Vp(a),op(this,a,b))};k.hb=function(a){return this.fh(Vp(a))};k.Ud=function(a,b){return JSON.stringify(this.vd(a,b))};k.Xb=function(a,b){return JSON.stringify(this.Ee(a,b))};
k.wd=function(a,b){return JSON.stringify(this.Ge(a,b))};function Wp(a){a=a?a:{};np.call(this);this.b=a.geometryName}v(Wp,Up);
function Xp(a,b){if(!a)return null;if("number"===typeof a.x&&"number"===typeof a.y)var c="Point";else if(a.points)c="MultiPoint";else if(a.paths)c=1===a.paths.length?"LineString":"MultiLineString";else if(a.rings){var d=a.rings,e=Yp(a),f=[],g=[];c=[];var h;var l=0;for(h=d.length;l<h;++l)f.length=0,Ok(f,0,d[l],e.length),$f(f,0,f.length,e.length)?g.push([d[l]]):c.push(d[l]);for(;c.length;){d=c.shift();e=!1;for(l=g.length-1;0<=l;l--)if(pb((new Yk(g[l][0])).D(),(new Yk(d)).D())){g[l].push(d);e=!0;break}e||
g.push([d.reverse()])}a=wa({},a);1===g.length?(c="Polygon",a.rings=g[0]):(c="MultiPolygon",a.rings=g)}return qp((0,Zp[c])(a),!1,b)}function Yp(a){var b="XY";!0===a.hasZ&&!0===a.hasM?b="XYZM":!0===a.hasZ?b="XYZ":!0===a.hasM&&(b="XYM");return b}function $p(a){a=a.ma;return{hasZ:"XYZ"===a||"XYZM"===a,hasM:"XYM"===a||"XYZM"===a}}
var Zp={Point:function(a){return void 0!==a.m&&void 0!==a.z?new L([a.x,a.y,a.z,a.m],"XYZM"):void 0!==a.z?new L([a.x,a.y,a.z],"XYZ"):void 0!==a.m?new L([a.x,a.y,a.m],"XYM"):new L([a.x,a.y])},LineString:function(a){return new K(a.paths[0],Yp(a))},Polygon:function(a){return new M(a.rings,Yp(a))},MultiPoint:function(a){return new T(a.points,Yp(a))},MultiLineString:function(a){return new R(a.paths,Yp(a))},MultiPolygon:function(a){return new U(a.rings,Yp(a))}},aq={Point:function(a){var b=a.U(),c;a=a.ma;
"XYZ"===a?c={x:b[0],y:b[1],z:b[2]}:"XYM"===a?c={x:b[0],y:b[1],m:b[2]}:"XYZM"===a?c={x:b[0],y:b[1],z:b[2],m:b[3]}:"XY"===a?c={x:b[0],y:b[1]}:gb(!1,34);return c},LineString:function(a){var b=$p(a);return{hasZ:b.hasZ,hasM:b.hasM,paths:[a.U()]}},Polygon:function(a){var b=$p(a);return{hasZ:b.hasZ,hasM:b.hasM,rings:a.U(!1)}},MultiPoint:function(a){var b=$p(a);return{hasZ:b.hasZ,hasM:b.hasM,points:a.U()}},MultiLineString:function(a){var b=$p(a);return{hasZ:b.hasZ,hasM:b.hasM,paths:a.U()}},MultiPolygon:function(a){var b=
$p(a);a=a.U(!1);for(var c=[],d=0;d<a.length;d++)for(var e=a[d].length-1;0<=e;e--)c.push(a[d][e]);return{hasZ:b.hasZ,hasM:b.hasM,rings:c}}};k=Wp.prototype;k.md=function(a,b){var c=Xp(a.geometry,b),d=new E;this.b&&d.pd(this.b);d.Wa(c);b&&b.Ag&&a.attributes[b.Ag]&&d.xc(a.attributes[b.Ag]);a.attributes&&d.J(a.attributes);return d};k.Zg=function(a,b){b=b?b:{};if(a.features){var c=[],d=a.features,e;b.Ag=a.objectIdFieldName;a=0;for(e=d.length;a<e;++a)c.push(this.md(d[a],b));return c}return[this.md(a,b)]};
k.dh=function(a,b){return Xp(a,b)};k.fh=function(a){return a.spatialReference&&a.spatialReference.wkid?Gc("EPSG:"+a.spatialReference.wkid):null};function bq(a,b){return(0,aq[a.T()])(qp(a,!0,b),b)}k.Ge=function(a,b){return bq(a,pp(this,b))};k.vd=function(a,b){b=pp(this,b);var c={},d=a.V();d&&(c.geometry=bq(d,b));d=a.L();delete d[a.c];c.attributes=Aa(d)?{}:d;b&&b.featureProjection&&(c.spatialReference={wkid:Gc(b.featureProjection).tb.split(":").pop()});return c};
k.Ee=function(a,b){b=pp(this,b);var c=[],d;var e=0;for(d=a.length;e<d;++e)c.push(this.vd(a[e],b));return{features:c}};function cq(a){this.Kb=a};function dq(a,b){this.Kb=a;this.b=Array.prototype.slice.call(arguments,1);gb(2<=this.b.length,57)}v(dq,cq);function eq(a){var b=["And"].concat(Array.prototype.slice.call(arguments));dq.apply(this,b)}v(eq,dq);function fq(a,b,c){this.Kb="BBOX";this.geometryName=a;this.extent=b;this.srsName=c}v(fq,cq);function gq(a,b){this.Kb=a;this.b=b}v(gq,cq);function hq(a,b,c,d){gq.call(this,a,b);this.g=c;this.a=d}v(hq,gq);function iq(a,b,c){hq.call(this,"PropertyIsEqualTo",a,b,c)}v(iq,hq);function jq(a,b){hq.call(this,"PropertyIsGreaterThan",a,b)}v(jq,hq);function kq(a,b){hq.call(this,"PropertyIsGreaterThanOrEqualTo",a,b)}v(kq,hq);function lq(a,b,c,d){this.Kb=a;this.geometryName=b||"the_geom";this.geometry=c;this.srsName=d}v(lq,cq);function mq(a,b,c){lq.call(this,"Intersects",a,b,c)}v(mq,lq);function nq(a,b,c){gq.call(this,"PropertyIsBetween",a);this.a=b;this.g=c}v(nq,gq);function oq(a,b,c,d,e,f){gq.call(this,"PropertyIsLike",a);this.c=b;this.f=void 0!==c?c:"*";this.i=void 0!==d?d:".";this.g=void 0!==e?e:"!";this.a=f}v(oq,gq);function pq(a){gq.call(this,"PropertyIsNull",a)}v(pq,gq);function qq(a,b){hq.call(this,"PropertyIsLessThan",a,b)}v(qq,hq);function rq(a,b){hq.call(this,"PropertyIsLessThanOrEqualTo",a,b)}v(rq,hq);function sq(a){this.Kb="Not";this.condition=a}v(sq,cq);function tq(a,b,c){hq.call(this,"PropertyIsNotEqualTo",a,b,c)}v(tq,hq);function uq(a){var b=["Or"].concat(Array.prototype.slice.call(arguments));dq.apply(this,b)}v(uq,dq);function vq(a,b,c){lq.call(this,"Within",a,b,c)}v(vq,lq);function wq(a){var b=[null].concat(Array.prototype.slice.call(arguments));return new (Function.prototype.bind.apply(eq,b))}function xq(a,b,c){return new fq(a,b,c)};function yq(a,b,c,d,e){lq.call(this,"DWithin",a,b,e);this.distance=c;this.b=d}v(yq,lq);function zq(a){Od.call(this);this.a=a?a:null;Aq(this)}v(zq,Od);function Bq(a){var b=[],c;var d=0;for(c=a.length;d<c;++d)b.push(a[d].clone());return b}function Cq(a){var b;if(a.a){var c=0;for(b=a.a.length;c<b;++c)Ja(a.a[c],"change",a.u,a)}}function Aq(a){var b;if(a.a){var c=0;for(b=a.a.length;c<b;++c)y(a.a[c],"change",a.u,a)}}k=zq.prototype;k.clone=function(){var a=new zq(null);a.Tj(this.a);return a};
k.Lb=function(a,b,c,d){if(d<mb(this.D(),a,b))return d;var e=this.a,f;var g=0;for(f=e.length;g<f;++g)d=e[g].Lb(a,b,c,d);return d};k.hd=function(a,b){var c=this.a,d;var e=0;for(d=c.length;e<d;++e)if(c[e].hd(a,b))return!0;return!1};k.Qe=function(a){rb(Infinity,Infinity,-Infinity,-Infinity,a);for(var b=this.a,c=0,d=b.length;c<d;++c)wb(a,b[c].D());return a};k.Xe=function(){return Bq(this.a)};
k.le=function(a){this.l!=this.g&&(xa(this.i),this.f=0,this.l=this.g);if(0>a||0!==this.f&&a<this.f)return this;var b=a.toString();if(this.i.hasOwnProperty(b))return this.i[b];var c=[],d=this.a,e=!1,f;var g=0;for(f=d.length;g<f;++g){var h=d[g],l=h.le(a);c.push(l);l!==h&&(e=!0)}if(e)return a=new zq(null),Cq(a),a.a=c,Aq(a),a.u(),this.i[b]=a;this.f=a;return this};k.T=function(){return"GeometryCollection"};k.bb=function(a){var b=this.a,c;var d=0;for(c=b.length;d<c;++d)if(b[d].bb(a))return!0;return!1};
k.rotate=function(a,b){for(var c=this.a,d=0,e=c.length;d<e;++d)c[d].rotate(a,b);this.u()};k.scale=function(a,b,c){c||(c=Gb(this.D()));for(var d=this.a,e=0,f=d.length;e<f;++e)d[e].scale(a,b,c);this.u()};k.Tj=function(a){a=Bq(a);Cq(this);this.a=a;Aq(this);this.u()};k.yc=function(a){var b=this.a,c;var d=0;for(c=b.length;d<c;++d)b[d].yc(a);this.u()};k.translate=function(a,b){var c=this.a,d;var e=0;for(d=c.length;e<d;++e)c[e].translate(a,b);this.u()};k.xa=function(){Cq(this);Od.prototype.xa.call(this)};function Dq(a){a=a?a:{};np.call(this);this.defaultDataProjection=Gc(a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326");a.featureProjection&&(this.i=Gc(a.featureProjection));this.b=a.geometryName}v(Dq,Up);function Eq(a,b){return a?qp((0,Fq[a.type])(a),!1,b):null}function Gq(a,b){return(0,Hq[a.T()])(qp(a,!0,b),b)}
var Fq={Point:function(a){return new L(a.coordinates)},LineString:function(a){return new K(a.coordinates)},Polygon:function(a){return new M(a.coordinates)},MultiPoint:function(a){return new T(a.coordinates)},MultiLineString:function(a){return new R(a.coordinates)},MultiPolygon:function(a){return new U(a.coordinates)},GeometryCollection:function(a,b){a=a.geometries.map(function(a){return Eq(a,b)});return new zq(a)}},Hq={Point:function(a){return{type:"Point",coordinates:a.U()}},LineString:function(a){return{type:"LineString",
coordinates:a.U()}},Polygon:function(a,b){if(b)var c=b.rightHanded;return{type:"Polygon",coordinates:a.U(c)}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.U()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.U()}},MultiPolygon:function(a,b){if(b)var c=b.rightHanded;return{type:"MultiPolygon",coordinates:a.U(c)}},GeometryCollection:function(a,b){return{type:"GeometryCollection",geometries:a.a.map(function(a){var c=wa({},b);delete c.featureProjection;return Gq(a,
c)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};k=Dq.prototype;k.md=function(a,b){a="Feature"===a.type?a:{type:"Feature",geometry:a};b=Eq(a.geometry,b);var c=new E;this.b&&c.pd(this.b);c.Wa(b);void 0!==a.id&&c.xc(a.id);a.properties&&c.J(a.properties);return c};k.Zg=function(a,b){if("FeatureCollection"===a.type){var c=[];a=a.features;var d;var e=0;for(d=a.length;e<d;++e)c.push(this.md(a[e],b))}else c=[this.md(a,b)];return c};k.dh=function(a,b){return Eq(a,b)};
k.fh=function(a){a=a.crs;var b;a?"name"==a.type?b=Gc(a.properties.name):"EPSG"==a.type?b=Gc("EPSG:"+a.properties.code):gb(!1,36):b=this.defaultDataProjection;return b};k.vd=function(a,b){b=pp(this,b);var c={type:"Feature"},d=a.a;void 0!==d&&(c.id=d);(d=a.V())?c.geometry=Gq(d,b):c.geometry=null;b=a.L();delete b[a.c];Aa(b)?c.properties=null:c.properties=b;return c};k.Ee=function(a,b){b=pp(this,b);var c=[],d;var e=0;for(d=a.length;e<d;++e)c.push(this.vd(a[e],b));return{type:"FeatureCollection",features:c}};
k.Ge=function(a,b){return Gq(a,pp(this,b))};function Iq(a){a=a?a:{};xp.call(this,a);this.b["http://www.opengis.net/gml"].featureMember=yj(xp.prototype.ve);this.schemaLocation=a.schemaLocation?a.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}v(Iq,xp);k=Iq.prototype;
k.Dj=function(a,b){a=sj(a,!1).replace(/^\s*|\s*$/g,"");var c=b[0].srsName;b="enu";c&&(c=Gc(c))&&(b=c.b);a=a.trim().split(/\s+/);for(var d,e,f=[],g=0,h=a.length;g<h;g++)e=a[g].split(/,+/),c=parseFloat(e[0]),d=parseFloat(e[1]),e=3===e.length?parseFloat(e[2]):0,"en"===b.substr(0,2)?f.push(c,d,e):f.push(d,c,e);return f};k.pq=function(a,b){a=I([null],this.mk,a,b,this);return rb(a[1][0],a[1][1],a[1][3],a[1][4])};k.Rm=function(a,b){(a=I(void 0,this.Ie,a,b,this))&&b[b.length-1].push(a)};
k.Xp=function(a,b){(a=I(void 0,this.Ie,a,b,this))&&(b[b.length-1][0]=a)};k.He={"http://www.opengis.net/gml":{coordinates:zj(Iq.prototype.Dj)}};k.Uf={"http://www.opengis.net/gml":{innerBoundaryIs:Iq.prototype.Rm,outerBoundaryIs:Iq.prototype.Xp}};k.mk={"http://www.opengis.net/gml":{coordinates:yj(Iq.prototype.Dj)}};
k.Vf={"http://www.opengis.net/gml":{Point:zj(xp.prototype.Jj),MultiPoint:zj(xp.prototype.Hj),LineString:zj(xp.prototype.Ef),MultiLineString:zj(xp.prototype.Gj),LinearRing:zj(xp.prototype.Fj),Polygon:zj(xp.prototype.Ff),MultiPolygon:zj(xp.prototype.Ij),Box:zj(Iq.prototype.pq)}};
k.Jg=function(a,b){var c=b[b.length-1];b=c.multiSurface;var d=c.surface;c=c.multiCurve;Array.isArray(a)?a="Envelope":(a=a.T(),"MultiPolygon"===a&&!0===b?a="MultiSurface":"Polygon"===a&&!0===d?a="Surface":"MultiLineString"===a&&!0===c&&(a="MultiCurve"));return rj("http://www.opengis.net/gml",a)};k.Di=function(a,b,c){var d=c[c.length-1],e=wa({},d);e.node=a;var f;Array.isArray(b)?d.dataProjection?f=Tc(b,d.featureProjection,d.dataProjection):f=b:f=qp(b,!0,d);Hj(e,Jq,this.Jg,[f],c,void 0,this)};
k.qf=function(a,b,c){var d=c[c.length-1].srsName;"LineStringSegment"!==a.nodeName&&d&&a.setAttribute("srsName",d);"LineString"===a.nodeName||"LineStringSegment"===a.nodeName?(d=Kq(a.namespaceURI),a.appendChild(d),Lq(d,b,c)):"Curve"===a.nodeName&&(d=rj(a.namespaceURI,"segments"),a.appendChild(d),a=rj(d.namespaceURI,"LineStringSegment"),d.appendChild(a),this.qf(a,b,c))};function Kq(a){a=rj(a,"coordinates");a.setAttribute("decimal",".");a.setAttribute("cs",",");a.setAttribute("ts"," ");return a}
function Lq(a,b,c){c=c[c.length-1].srsName;b=b.U();for(var d=b.length,e=Array(d),f,g=0;g<d;++g)f=b[g],e[g]=Mq(f,c);Ip(a,e.join(" "))}k.rf=function(a,b,c){var d=c[c.length-1].srsName;"PolygonPatch"!==a.nodeName&&d&&a.setAttribute("srsName",d);"Polygon"===a.nodeName||"PolygonPatch"===a.nodeName?(b=b.Ic(),Hj({node:a,srsName:d},Nq,this.Yn,b,c,void 0,this)):"Surface"===a.nodeName&&(d=rj(a.namespaceURI,"patches"),a.appendChild(d),a=rj(d.namespaceURI,"PolygonPatch"),d.appendChild(a),this.rf(a,b,c))};
k.Yn=function(a,b){a=b[b.length-1];b=a.node;var c=a.exteriorWritten;void 0===c&&(a.exteriorWritten=!0);return rj(b.namespaceURI,void 0!==c?"innerBoundaryIs":"outerBoundaryIs")};k.Ji=function(a,b,c){var d=rj(a.namespaceURI,"LinearRing");a.appendChild(d);this.Fi(d,b,c)};function Mq(a,b){var c="enu";b&&(c=Gc(b).b);return"en"===c.substr(0,2)?a[0]+","+a[1]:a[1]+","+a[0]}
k.Gi=function(a,b,c){var d=c[c.length-1],e=d.srsName;d=d.curve;e&&a.setAttribute("srsName",e);b=b.Hc();Hj({node:a,srsName:e,curve:d},Oq,this.a,b,c,void 0,this)};k.Ii=function(a,b,c){var d=c[c.length-1].srsName;d&&a.setAttribute("srsName",d);c=Kq(a.namespaceURI);a.appendChild(c);a=b.U();a=Mq(a,d);Ip(c,a)};k.$n=function(a,b,c){var d=c[c.length-1].srsName;d&&a.setAttribute("srsName",d);b=b.Hd();Hj({node:a,srsName:d},Pq,Cj("pointMember"),b,c,void 0,this)};
k.ao=function(a,b,c){var d=rj(a.namespaceURI,"Point");a.appendChild(d);this.Ii(d,b,c)};k.Ei=function(a,b,c){var d=this.Jg(b,c);d&&(a.appendChild(d),this.qf(d,b,c))};k.Fi=function(a,b,c){var d=c[c.length-1].srsName;d&&a.setAttribute("srsName",d);d=Kq(a.namespaceURI);a.appendChild(d);Lq(d,b,c)};k.Hi=function(a,b,c){var d=c[c.length-1],e=d.srsName;d=d.surface;e&&a.setAttribute("srsName",e);b=b.bd();Hj({node:a,srsName:e,surface:d},Qq,this.a,b,c,void 0,this)};
k.Ki=function(a,b,c){var d=this.Jg(b,c);d&&(a.appendChild(d),this.rf(d,b,c))};k.Zn=function(a,b,c){var d=c[c.length-1].srsName;d&&a.setAttribute("srsName",d);Hj({node:a},Rq,Ej,[b[0]+" "+b[1],b[2]+" "+b[3]],c,["lowerCorner","upperCorner"],this)};
var Jq={"http://www.opengis.net/gml":{Curve:G(Iq.prototype.qf),MultiCurve:G(Iq.prototype.Gi),Point:G(Iq.prototype.Ii),MultiPoint:G(Iq.prototype.$n),LineString:G(Iq.prototype.qf),MultiLineString:G(Iq.prototype.Gi),LinearRing:G(Iq.prototype.Fi),Polygon:G(Iq.prototype.rf),MultiPolygon:G(Iq.prototype.Hi),Surface:G(Iq.prototype.rf),MultiSurface:G(Iq.prototype.Hi),Envelope:G(Iq.prototype.Zn)}},Nq={"http://www.opengis.net/gml":{outerBoundaryIs:G(Iq.prototype.Ji),innerBoundaryIs:G(Iq.prototype.Ji)}},Pq={"http://www.opengis.net/gml":{pointMember:G(Iq.prototype.ao)}},
Oq={"http://www.opengis.net/gml":{lineStringMember:G(Iq.prototype.Ei),curveMember:G(Iq.prototype.Ei)}};Iq.prototype.a=function(a,b){return rj("http://www.opengis.net/gml",Sq[b[b.length-1].node.nodeName])};var Sq={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Qq={"http://www.opengis.net/gml":{surfaceMember:G(Iq.prototype.Ki),polygonMember:G(Iq.prototype.Ki)}},Rq={"http://www.opengis.net/gml":{lowerCorner:G(Ip),upperCorner:G(Ip)}};function Tq(a){a=a?a:{};rp.call(this);this.defaultDataProjection=Gc("EPSG:4326");this.b=a.readExtensions}v(Tq,rp);var Uq=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function Vq(a,b,c,d){a.push(parseFloat(c.getAttribute("lon")),parseFloat(c.getAttribute("lat")));"ele"in d?(a.push(d.ele),delete d.ele,b.hasZ=!0):a.push(0);"time"in d?(a.push(d.time),delete d.time,b.hasM=!0):a.push(0);return a}
function Wq(a,b,c){var d="XY",e=2;a.hasZ&&a.hasM?(d="XYZM",e=4):a.hasZ?(d="XYZ",e=3):a.hasM&&(d="XYM",e=3);if(4!==e){var f;var g=0;for(f=b.length/4;g<f;g++)b[g*e]=b[4*g],b[g*e+1]=b[4*g+1],a.hasZ&&(b[g*e+2]=b[4*g+2]),a.hasM&&(b[g*e+2]=b[4*g+3]);b.length=b.length/4*e;if(c)for(g=0,f=c.length;g<f;g++)c[g]=c[g]/4*e}return d}function Xq(a,b){var c=b[b.length-1],d=a.getAttribute("href");null!==d&&(c.link=d);Gj(Yq,a,b)}function Zq(a,b){b[b.length-1].extensionsNode_=a}
function $q(a,b){var c=b[0];if(a=I({flatCoordinates:[],layoutOptions:{}},ar,a,b)){b=a.flatCoordinates;delete a.flatCoordinates;var d=a.layoutOptions;delete a.layoutOptions;d=Wq(d,b);var e=new K(null);e.fa(d,b);qp(e,!1,c);c=new E(e);c.J(a);return c}}
function br(a,b){var c=b[0];if(a=I({flatCoordinates:[],ends:[],layoutOptions:{}},cr,a,b)){b=a.flatCoordinates;delete a.flatCoordinates;var d=a.ends;delete a.ends;var e=a.layoutOptions;delete a.layoutOptions;e=Wq(e,b,d);var f=new R(null);f.fa(e,b,d);qp(f,!1,c);c=new E(f);c.J(a);return c}}function dr(a,b){var c=b[0];if(b=I({},er,a,b)){var d={};a=Vq([],d,a,b);d=Wq(d,a);a=new L(a,d);qp(a,!1,c);c=new E(a);c.J(b);return c}}
var fr={rte:$q,trk:br,wpt:dr},gr=H(Uq,{rte:yj($q),trk:yj(br),wpt:yj(dr)}),Yq=H(Uq,{text:F(V,"linkText"),type:F(V,"linkType")}),ar=H(Uq,{name:F(V),cmt:F(V),desc:F(V),src:F(V),link:Xq,number:F(Fp),extensions:Zq,type:F(V),rtept:function(a,b){var c=I({},hr,a,b);c&&(b=b[b.length-1],Vq(b.flatCoordinates,b.layoutOptions,a,c))}}),hr=H(Uq,{ele:F(Dp),time:F(Cp)}),cr=H(Uq,{name:F(V),cmt:F(V),desc:F(V),src:F(V),link:Xq,number:F(Fp),type:F(V),extensions:Zq,trkseg:function(a,b){var c=b[b.length-1];Gj(ir,a,b);c.ends.push(c.flatCoordinates.length)}}),
ir=H(Uq,{trkpt:function(a,b){var c=I({},jr,a,b);c&&(b=b[b.length-1],Vq(b.flatCoordinates,b.layoutOptions,a,c))}}),jr=H(Uq,{ele:F(Dp),time:F(Cp)}),er=H(Uq,{ele:F(Dp),time:F(Cp),magvar:F(Dp),geoidheight:F(Dp),name:F(V),cmt:F(V),desc:F(V),src:F(V),link:Xq,sym:F(V),type:F(V),fix:F(V),sat:F(Fp),hdop:F(Dp),vdop:F(Dp),pdop:F(Dp),ageofdgpsdata:F(Dp),dgpsid:F(Fp),extensions:Zq});
function kr(a,b){b||(b=[]);for(var c=0,d=b.length;c<d;++c){var e=b[c];if(a.b){var f=e.get("extensionsNode_")||null;a.b(e,f)}e.set("extensionsNode_",void 0)}}Tq.prototype.Yg=function(a,b){if(!bd(Uq,a.namespaceURI))return null;var c=fr[a.localName];if(!c)return null;a=c(a,[op(this,a,b)]);if(!a)return null;kr(this,[a]);return a};Tq.prototype.wc=function(a,b){return bd(Uq,a.namespaceURI)?"gpx"==a.localName&&(a=I([],gr,a,[op(this,a,b)]))?(kr(this,a),a):[]:[]};
function lr(a,b,c){a.setAttribute("href",b);b=c[c.length-1].properties;Hj({node:a},mr,Ej,[b.linkText,b.linkType],c,nr)}function or(a,b,c){var d=c[c.length-1],e=d.node.namespaceURI,f=d.properties;a.setAttributeNS(null,"lat",b[1]);a.setAttributeNS(null,"lon",b[0]);switch(d.geometryLayout){case "XYZM":0!==b[3]&&(f.time=b[3]);case "XYZ":0!==b[2]&&(f.ele=b[2]);break;case "XYM":0!==b[2]&&(f.time=b[2])}b="rtept"==a.nodeName?pr[e]:qr[e];d=Fj(f,b);Hj({node:a,properties:f},rr,Ej,d,c,b)}
var nr=["text","type"],mr=H(Uq,{text:G(Ip),type:G(Ip)}),sr=H(Uq,"name cmt desc src link number type rtept".split(" ")),tr=H(Uq,{name:G(Ip),cmt:G(Ip),desc:G(Ip),src:G(Ip),link:G(lr),number:G(Kp),type:G(Ip),rtept:Bj(G(or))}),pr=H(Uq,["ele","time"]),ur=H(Uq,"name cmt desc src link number type trkseg".split(" ")),xr=H(Uq,{name:G(Ip),cmt:G(Ip),desc:G(Ip),src:G(Ip),link:G(lr),number:G(Kp),type:G(Ip),trkseg:Bj(G(function(a,b,c){Hj({node:a,geometryLayout:b.ma,properties:{}},vr,wr,b.U(),c)}))}),wr=Cj("trkpt"),
vr=H(Uq,{trkpt:G(or)}),qr=H(Uq,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),rr=H(Uq,{ele:G(Jp),time:G(function(a,b){b=new Date(1E3*b);b=b.getUTCFullYear()+"-"+nd(b.getUTCMonth()+1)+"-"+nd(b.getUTCDate())+"T"+nd(b.getUTCHours())+":"+nd(b.getUTCMinutes())+":"+nd(b.getUTCSeconds())+"Z";a.appendChild(qj.createTextNode(b))}),magvar:G(Jp),geoidheight:G(Jp),name:G(Ip),cmt:G(Ip),desc:G(Ip),src:G(Ip),link:G(lr),sym:G(Ip),type:G(Ip),fix:G(Ip),
sat:G(Kp),hdop:G(Jp),vdop:G(Jp),pdop:G(Jp),ageofdgpsdata:G(Jp),dgpsid:G(Kp)}),yr={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function zr(a,b){if(a=a.V())if(a=yr[a.T()])return rj(b[b.length-1].node.namespaceURI,a)}
var Ar=H(Uq,{rte:G(function(a,b,c){var d=c[0],e=b.L();a={node:a,properties:e};if(b=b.V())b=qp(b,!0,d),a.geometryLayout=b.ma,e.rtept=b.U();d=sr[c[c.length-1].node.namespaceURI];e=Fj(e,d);Hj(a,tr,Ej,e,c,d)}),trk:G(function(a,b,c){var d=c[0],e=b.L();a={node:a,properties:e};if(b=b.V())b=qp(b,!0,d),e.trkseg=b.Hc();d=ur[c[c.length-1].node.namespaceURI];e=Fj(e,d);Hj(a,xr,Ej,e,c,d)}),wpt:G(function(a,b,c){var d=c[0],e=c[c.length-1];e.properties=b.L();if(b=b.V())b=qp(b,!0,d),e.geometryLayout=b.ma,or(a,b.U(),
c)})});Tq.prototype.kc=function(a,b){b=pp(this,b);var c=rj("http://www.topografix.com/GPX/1/1","gpx");c.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");c.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd");c.setAttribute("version","1.1");c.setAttribute("creator","OpenLayers");Hj({node:c},Ar,zr,a,[b]);return c};function Br(){np.call(this)}v(Br,np);function Cr(a){return"string"===typeof a?a:""}k=Br.prototype;k.T=function(){return"text"};k.hc=function(a,b){return this.ue(Cr(a),pp(this,b))};k.Oa=function(a,b){return this.$g(Cr(a),pp(this,b))};k.od=function(a,b){return this.Od(Cr(a),pp(this,b))};k.hb=function(){return this.defaultDataProjection};k.Ud=function(a,b){return this.De(a,pp(this,b))};k.Xb=function(a,b){return this.Ah(a,pp(this,b))};k.wd=function(a,b){return this.Vd(a,pp(this,b))};function Dr(a){a=a?a:{};np.call(this);this.defaultDataProjection=Gc("EPSG:4326");this.b=a.altitudeMode?a.altitudeMode:"none"}v(Dr,Br);var Er=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,Fr=/^H.([A-Z]{3}).*?:(.*)/,Gr=/^HFDTE(\d{2})(\d{2})(\d{2})/,Hr=/\r\n|\r|\n/;k=Dr.prototype;
k.ue=function(a,b){var c=this.b,d=a.split(Hr);a={};var e=[],f=2E3,g=0,h=1,l=-1,m;var n=0;for(m=d.length;n<m;++n){var p=d[n],q;if("B"==p.charAt(0)){if(q=Er.exec(p)){p=parseInt(q[1],10);var t=parseInt(q[2],10),u=parseInt(q[3],10),w=parseInt(q[4],10)+parseInt(q[5],10)/6E4;"S"==q[6]&&(w=-w);var z=parseInt(q[7],10)+parseInt(q[8],10)/6E4;"W"==q[9]&&(z=-z);e.push(z,w);"none"!=c&&e.push("gps"==c?parseInt(q[11],10):"barometric"==c?parseInt(q[12],10):0);q=Date.UTC(f,g,h,p,t,u);q<l&&(q=Date.UTC(f,g,h+1,p,t,
u));e.push(q/1E3);l=q}}else"H"==p.charAt(0)&&((q=Gr.exec(p))?(h=parseInt(q[1],10),g=parseInt(q[2],10)-1,f=2E3+parseInt(q[3],10)):(q=Fr.exec(p))&&(a[q[1]]=q[2].trim()))}if(0===e.length)return null;d=new K(null);d.fa("none"==c?"XYM":"XYZM",e);b=new E(qp(d,!1,b));b.J(a);return b};k.$g=function(a,b){return(a=this.ue(a,b))?[a]:[]};k.De=function(){};k.Ah=function(){};k.Vd=function(){};k.Od=function(){};function Ir(a,b,c,d,e,f){Qa.call(this);this.j=null;this.O=a?a:new Image;null!==d&&(this.O.crossOrigin=d);this.c=f?document.createElement("CANVAS"):null;this.f=f;this.i=null;this.g=e;this.a=c;this.l=b;this.o=!1;2==this.g&&Jr(this)}v(Ir,Qa);function Jr(a){var b=kd(1,1);try{b.drawImage(a.O,0,0),b.getImageData(0,0,1,1)}catch(c){a.o=!0}}Ir.prototype.s=function(){this.g=3;this.i.forEach(Ca);this.i=null;this.b("change")};
Ir.prototype.I=function(){this.g=2;this.a&&(this.O.width=this.a[0],this.O.height=this.a[1]);this.a=[this.O.width,this.O.height];this.i.forEach(Ca);this.i=null;Jr(this);if(!this.o&&null!==this.f){this.c.width=this.O.width;this.c.height=this.O.height;var a=this.c.getContext("2d");a.drawImage(this.O,0,0);for(var b=a.getImageData(0,0,this.O.width,this.O.height),c=b.data,d=this.f[0]/255,e=this.f[1]/255,f=this.f[2]/255,g=0,h=c.length;g<h;g+=4)c[g]*=d,c[g+1]*=e,c[g+2]*=f;a.putImageData(b,0,0)}this.b("change")};
Ir.prototype.W=function(){return this.c?this.c:this.O};Ir.prototype.load=function(){if(0==this.g){this.g=1;this.i=[Ia(this.O,"error",this.s,this),Ia(this.O,"load",this.I,this)];try{this.O.src=this.l}catch(a){this.s()}}};function ql(a){a=a||{};this.f=void 0!==a.anchor?a.anchor:[.5,.5];this.o=null;this.a=void 0!==a.anchorOrigin?a.anchorOrigin:"top-left";this.v=void 0!==a.anchorXUnits?a.anchorXUnits:"fraction";this.C=void 0!==a.anchorYUnits?a.anchorYUnits:"fraction";this.ea=void 0!==a.crossOrigin?a.crossOrigin:null;var b=void 0!==a.img?a.img:null,c=void 0!==a.imgSize?a.imgSize:null,d=a.src;gb(!(void 0!==d&&b),4);gb(!b||b&&c,5);void 0!==d&&0!==d.length||!b||(d=b.src||x(b).toString());gb(void 0!==d&&0<d.length,6);var e=
void 0!==a.src?0:2;this.c=void 0!==a.color?Jd(a.color):null;var f=this.ea,g=this.c,h=vo.get(d,f,g);h||(h=new Ir(b,d,c,f,e,g),vo.set(d,f,g,h));this.b=h;this.B=void 0!==a.offset?a.offset:[0,0];this.g=void 0!==a.offsetOrigin?a.offsetOrigin:"top-left";this.s=null;this.I=void 0!==a.size?a.size:null;bj.call(this,{opacity:void 0!==a.opacity?a.opacity:1,rotation:void 0!==a.rotation?a.rotation:0,scale:void 0!==a.scale?a.scale:1,snapToPixel:void 0!==a.snapToPixel?a.snapToPixel:!0,rotateWithView:void 0!==a.rotateWithView?
a.rotateWithView:!1})}v(ql,bj);k=ql.prototype;k.clone=function(){return new ql({anchor:this.f.slice(),anchorOrigin:this.a,anchorXUnits:this.v,anchorYUnits:this.C,crossOrigin:this.ea,color:this.c&&this.c.slice?this.c.slice():this.c||void 0,src:this.b.l,offset:this.B.slice(),offsetOrigin:this.g,size:null!==this.I?this.I.slice():void 0,opacity:this.La(),scale:this.Ma(),snapToPixel:this.l,rotation:this.i,rotateWithView:this.j})};
k.Gc=function(){if(this.o)return this.o;var a=this.f,b=this.gc();if("fraction"==this.v||"fraction"==this.C){if(!b)return null;a=this.f.slice();"fraction"==this.v&&(a[0]*=b[0]);"fraction"==this.C&&(a[1]*=b[1])}if("top-left"!=this.a){if(!b)return null;a===this.f&&(a=this.f.slice());if("top-right"==this.a||"bottom-right"==this.a)a[0]=-a[0]+b[0];if("bottom-left"==this.a||"bottom-right"==this.a)a[1]=-a[1]+b[1]}return this.o=a};k.zp=function(){return this.c};k.W=function(a){return this.b.W(a)};k.Ye=function(){return this.b.a};
k.yf=function(){return this.b.g};k.Qg=function(){var a=this.b;if(!a.j)if(a.o){var b=a.a[0],c=a.a[1],d=kd(b,c);d.fillRect(0,0,b,c);a.j=d.canvas}else a.j=a.O;return a.j};k.jd=function(){if(this.s)return this.s;var a=this.B;if("top-left"!=this.g){var b=this.gc(),c=this.b.a;if(!b||!c)return null;a=a.slice();if("top-right"==this.g||"bottom-right"==this.g)a[0]=c[0]-b[0]-a[0];if("bottom-left"==this.g||"bottom-right"==this.g)a[1]=c[1]-b[1]-a[1]}return this.s=a};k.Ap=function(){return this.b.l};
k.gc=function(){return this.I?this.I:this.b.a};k.oi=function(a,b){y(this.b,"change",a,b)};k.load=function(){this.b.load()};k.hk=function(a,b){Ja(this.b,"change",a,b)};function Kr(a){a=a||{};this.Zb=a.font;this.b=a.rotation;this.a=a.rotateWithView;this.g=a.scale;this.Ja=a.text;this.Vc=a.textAlign;this.sb=a.textBaseline;this.$a=void 0!==a.fill?a.fill:new fj({color:"#333"});this.eb=void 0!==a.stroke?a.stroke:null;this.Lc=void 0!==a.offsetX?a.offsetX:0;this.Mc=void 0!==a.offsetY?a.offsetY:0}k=Kr.prototype;
k.clone=function(){return new Kr({font:this.Zb,rotation:this.b,rotateWithView:this.a,scale:this.Ma(),text:this.ra(),textAlign:this.Vc,textBaseline:this.sb,fill:this.qa()?this.qa().clone():void 0,stroke:this.pa()?this.pa().clone():void 0,offsetX:this.Lc,offsetY:this.Mc})};k.Cl=function(){return this.Zb};k.Rl=function(){return this.Lc};k.Sl=function(){return this.Mc};k.qa=function(){return this.$a};k.Fp=function(){return this.a};k.Gp=function(){return this.b};k.Ma=function(){return this.g};k.pa=function(){return this.eb};
k.ra=function(){return this.Ja};k.bm=function(){return this.Vc};k.cm=function(){return this.sb};k.Sj=function(a){this.Zb=a};k.Yj=function(a){this.Lc=a};k.Zj=function(a){this.Mc=a};k.Kf=function(a){this.$a=a};k.Hp=function(a){this.b=a};k.tj=function(a){this.g=a};k.Lf=function(a){this.eb=a};k.Mf=function(a){this.Ja=a};k.ak=function(a){this.Vc=a};k.wr=function(a){this.sb=a};function Lr(a){a=a?a:{};rp.call(this);Mr||(Nr=[255,255,255,1],Or=new fj({color:Nr}),Pr=[20,2],Qr=Rr="pixels",Sr=[64,64],Tr="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",Ur=.5,Vr=new ql({anchor:Pr,anchorOrigin:"bottom-left",anchorXUnits:Rr,anchorYUnits:Qr,crossOrigin:"anonymous",rotation:0,scale:Ur,size:Sr,src:Tr}),Wr="NO_IMAGE",Xr=new Jg({color:Nr,width:1}),Yr=new Jg({color:[51,51,51,1],width:2}),Zr=new Kr({font:"bold 16px Helvetica",fill:Or,stroke:Yr,scale:.8}),$r=new gj({fill:Or,
image:Vr,text:Zr,stroke:Xr,zIndex:0}),Mr=[$r]);this.defaultDataProjection=Gc("EPSG:4326");this.a=a.defaultStyle?a.defaultStyle:Mr;this.c=void 0!==a.extractStyles?a.extractStyles:!0;this.j=void 0!==a.writeStyles?a.writeStyles:!0;this.b={};this.f=void 0!==a.showPointNames?a.showPointNames:!0}var Mr,Nr,Or,Pr,Rr,Qr,Sr,Tr,Ur,Vr,Wr,Xr,Yr,Zr,$r;v(Lr,rp);
var as=["http://www.google.com/kml/ext/2.2"],bs=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],cs={fraction:"fraction",pixels:"pixels"};
function ds(a,b){var c=[0,0],d="start";if(a.W()){var e=a.W().Ye();null===e&&(e=Sr);2==e.length&&(d=a.W().Ma(),c[0]=d*e[0]/2,c[1]=-d*e[1]/2,d="left")}null!==a.ra()?(e=a.ra(),a=e.clone(),a.Sj(e.Zb||Zr.Zb),a.tj(e.Ma()||Zr.Ma()),a.Kf(e.qa()||Zr.qa()),a.Lf(e.pa()||Yr)):a=Zr.clone();a.Mf(b);a.Yj(c[0]);a.Zj(c[1]);a.ak(d);return new gj({text:a})}
function es(a,b,c,d,e){return function(){var f=e,g="";f&&this.V()&&(f="Point"===this.V().T());f&&(g=this.get("name"),f=f&&g);if(a)return f?(f=ds(a[0],g),a.concat(f)):a;if(b){var h=fs(b,c,d);return f?(f=ds(h[0],g),h.concat(f)):h}return f?(f=ds(c[0],g),c.concat(f)):c}}function fs(a,b,c){return Array.isArray(a)?a:"string"===typeof a?(!(a in c)&&"#"+a in c&&(a="#"+a),fs(c[a],b,c)):b}
function gs(a){a=sj(a,!1);if(a=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(a))return a=a[1],[parseInt(a.substr(6,2),16),parseInt(a.substr(4,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(0,2),16)/255]}function hs(a){a=sj(a,!1);for(var b=[],c=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i,d;d=c.exec(a);)b.push(parseFloat(d[1]),parseFloat(d[2]),d[3]?parseFloat(d[3]):0),a=a.substr(d[0].length);if(""===a)return b}
function is(a){var b=sj(a,!1).trim();return a.baseURI?(new URL(b,a.baseURI)).href:b}function js(a){return Dp(a)}function ks(a,b){return I(null,ls,a,b)}function ms(a,b){if(b=I({A:[],kk:[]},ns,a,b)){a=b.A;b=b.kk;var c;var d=0;for(c=Math.min(a.length,b.length);d<c;++d)a[4*d+3]=b[d];b=new K(null);b.fa("XYZM",a);return b}}function os(a,b){var c=I({},ps,a,b);if(a=I(null,qs,a,b))return b=new K(null),b.fa("XYZ",a),b.J(c),b}
function rs(a,b){var c=I({},ps,a,b);if(a=I(null,qs,a,b))return b=new M(null),b.fa("XYZ",a,[a.length]),b.J(c),b}
function ss(a,b){a=I([],ts,a,b);if(!a)return null;if(0===a.length)return new zq(a);var c=!0,d=a[0].T(),e;var f=1;for(e=a.length;f<e;++f)if(b=a[f],b.T()!=d){c=!1;break}if(c)if("Point"==d){var g=a[0];c=g.ma;d=g.ja();f=1;for(e=a.length;f<e;++f)b=a[f],dd(d,b.ja());g=new T(null);g.fa(c,d);us(g,a)}else"LineString"==d?(g=new R(null),up(g,a),us(g,a)):"Polygon"==d?(g=new U(null),wp(g,a),us(g,a)):"GeometryCollection"==d?g=new zq(a):gb(!1,37);else g=new zq(a);return g}
function vs(a,b){var c=I({},ps,a,b);if(a=I(null,qs,a,b))return b=new L(null),b.fa("XYZ",a),b.J(c),b}function ws(a,b){var c=I({},ps,a,b);if((a=I([null],xs,a,b))&&a[0]){b=new M(null);var d=a[0],e=[d.length],f;var g=1;for(f=a.length;g<f;++g)dd(d,a[g]),e.push(d.length);b.fa("XYZ",d,e);b.J(c);return b}}
function ys(a,b){b=I({},zs,a,b);if(!b)return null;a="fillStyle"in b?b.fillStyle:Or;var c=b.fill;void 0===c||c||(a=null);c="imageStyle"in b?b.imageStyle:Vr;c==Wr&&(c=void 0);var d="textStyle"in b?b.textStyle:Zr,e="strokeStyle"in b?b.strokeStyle:Xr;b=b.outline;void 0===b||b||(e=null);return[new gj({fill:a,image:c,stroke:e,text:d,zIndex:void 0})]}
function us(a,b){var c=b.length,d=Array(b.length),e=Array(b.length),f,g;var h=g=!1;for(f=0;f<c;++f){var l=b[f];d[f]=l.get("extrude");e[f]=l.get("altitudeMode");h=h||void 0!==d[f];g=g||e[f]}h&&a.set("extrude",d);g&&a.set("altitudeMode",e)}function As(a,b){Gj(Bs,a,b)}function Cs(a,b){Gj(Ds,a,b)}
var Es=H(bs,{displayName:F(V),value:F(V)}),Bs=H(bs,{Data:function(a,b){var c=a.getAttribute("name");Gj(Es,a,b);a=b[b.length-1];null!==c?a[c]=a.value:null!==a.displayName&&(a[a.displayName]=a.value)},SchemaData:function(a,b){Gj(Fs,a,b)}}),Ds=H(bs,{LatLonAltBox:function(a,b){if(a=I({},Gs,a,b))b=b[b.length-1],b.extent=[parseFloat(a.west),parseFloat(a.south),parseFloat(a.east),parseFloat(a.north)],b.altitudeMode=a.altitudeMode,b.minAltitude=parseFloat(a.minAltitude),b.maxAltitude=parseFloat(a.maxAltitude)},
Lod:function(a,b){if(a=I({},Hs,a,b))b=b[b.length-1],b.minLodPixels=parseFloat(a.minLodPixels),b.maxLodPixels=parseFloat(a.maxLodPixels),b.minFadeExtent=parseFloat(a.minFadeExtent),b.maxFadeExtent=parseFloat(a.maxFadeExtent)}}),Gs=H(bs,{altitudeMode:F(V),minAltitude:F(Dp),maxAltitude:F(Dp),north:F(Dp),south:F(Dp),east:F(Dp),west:F(Dp)}),Hs=H(bs,{minLodPixels:F(Dp),maxLodPixels:F(Dp),minFadeExtent:F(Dp),maxFadeExtent:F(Dp)}),ps=H(bs,{extrude:F(Ap),altitudeMode:F(V)}),ls=H(bs,{coordinates:zj(hs)}),xs=
H(bs,{innerBoundaryIs:function(a,b){(a=I(void 0,Is,a,b))&&b[b.length-1].push(a)},outerBoundaryIs:function(a,b){(a=I(void 0,Js,a,b))&&(b[b.length-1][0]=a)}}),ns=H(bs,{when:function(a,b){b=b[b.length-1].kk;a=sj(a,!1);a=Date.parse(a);b.push(isNaN(a)?0:a)}},H(as,{coord:function(a,b){b=b[b.length-1].A;a=sj(a,!1);(a=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(a))?b.push(parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3]),
0):b.push(0,0,0,0)}})),qs=H(bs,{coordinates:zj(hs)}),Ks=H(bs,{href:F(is)},H(as,{x:F(Dp),y:F(Dp),w:F(Dp),h:F(Dp)})),Ls=H(bs,{Icon:F(function(a,b){return(a=I({},Ks,a,b))?a:null}),heading:F(Dp),hotSpot:F(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),Bh:cs[b],y:parseFloat(a.getAttribute("y")),Ch:cs[c]}}),scale:F(js)}),Is=H(bs,{LinearRing:zj(ks)}),Ms=H(bs,{color:F(gs),scale:F(js)}),Ns=H(bs,{color:F(gs),width:F(Dp)}),ts=H(bs,{LineString:yj(os),
LinearRing:yj(rs),MultiGeometry:yj(ss),Point:yj(vs),Polygon:yj(ws)}),Os=H(as,{Track:yj(ms)}),Qs=H(bs,{ExtendedData:As,Region:Cs,Link:function(a,b){Gj(Ps,a,b)},address:F(V),description:F(V),name:F(V),open:F(Ap),phoneNumber:F(V),visibility:F(Ap)}),Ps=H(bs,{href:F(is)}),Js=H(bs,{LinearRing:zj(ks)}),Rs=H(bs,{Style:F(ys),key:F(V),styleUrl:F(is)}),Ts=H(bs,{ExtendedData:As,Region:Cs,MultiGeometry:F(ss,"geometry"),LineString:F(os,"geometry"),LinearRing:F(rs,"geometry"),Point:F(vs,"geometry"),Polygon:F(ws,
"geometry"),Style:F(ys),StyleMap:function(a,b){if(a=I(void 0,Ss,a,b))b=b[b.length-1],Array.isArray(a)?b.Style=a:"string"===typeof a?b.styleUrl=a:gb(!1,38)},address:F(V),description:F(V),name:F(V),open:F(Ap),phoneNumber:F(V),styleUrl:F(is),visibility:F(Ap)},H(as,{MultiTrack:F(function(a,b){if(a=I([],Os,a,b))return b=new R(null),up(b,a),b},"geometry"),Track:F(ms,"geometry")})),Us=H(bs,{color:F(gs),fill:F(Ap),outline:F(Ap)}),Fs=H(bs,{SimpleData:function(a,b){var c=a.getAttribute("name");null!==c&&(a=
V(a),b[b.length-1][c]=a)}}),zs=H(bs,{IconStyle:function(a,b){if(a=I({},Ls,a,b)){b=b[b.length-1];var c="Icon"in a?a.Icon:{},d=!("Icon"in a)||0<Object.keys(c).length,e,f=c.href;f?e=f:d&&(e=Tr);if(f=a.hotSpot){var g=[f.x,f.y];var h=f.Bh;var l=f.Ch}else e===Tr?(g=Pr,h=Rr,l=Qr):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(e)&&(g=[.5,0],l=h="fraction");var m;f=c.x;var n=c.y;void 0!==f&&void 0!==n&&(m=[f,n]);var p;f=c.w;c=c.h;void 0!==f&&void 0!==c&&(p=[f,c]);var q;c=a.heading;void 0!==c&&(q=Rb(c));
a=a.scale;d?(e==Tr&&(p=Sr,void 0===a&&(a=Ur)),e=new ql({anchor:g,anchorOrigin:"bottom-left",anchorXUnits:h,anchorYUnits:l,crossOrigin:"anonymous",offset:m,offsetOrigin:"bottom-left",rotation:q,scale:a,size:p,src:e}),b.imageStyle=e):b.imageStyle=Wr}},LabelStyle:function(a,b){(a=I({},Ms,a,b))&&(b[b.length-1].textStyle=new Kr({fill:new fj({color:"color"in a?a.color:Nr}),scale:a.scale}))},LineStyle:function(a,b){(a=I({},Ns,a,b))&&(b[b.length-1].strokeStyle=new Jg({color:"color"in a?a.color:Nr,width:"width"in
a?a.width:1}))},PolyStyle:function(a,b){if(a=I({},Us,a,b)){b=b[b.length-1];b.fillStyle=new fj({color:"color"in a?a.color:Nr});var c=a.fill;void 0!==c&&(b.fill=c);a=a.outline;void 0!==a&&(b.outline=a)}}}),Ss=H(bs,{Pair:function(a,b){if(a=I({},Rs,a,b)){var c=a.key;c&&"normal"==c&&((c=a.styleUrl)&&(b[b.length-1]=c),(a=a.Style)&&(b[b.length-1]=a))}}});k=Lr.prototype;
k.Wg=function(a,b){var c=H(bs,{Document:xj(this.Wg,this),Folder:xj(this.Wg,this),Placemark:yj(this.eh,this),Style:this.Oq.bind(this),StyleMap:this.Nq.bind(this)});if(a=I([],c,a,b,this))return a};k.eh=function(a,b){var c=I({geometry:null},Ts,a,b);if(c){var d=new E;a=a.getAttribute("id");null!==a&&d.xc(a);b=b[0];(a=c.geometry)&&qp(a,!1,b);d.Wa(a);delete c.geometry;this.c&&d.Hg(es(c.Style,c.styleUrl,this.a,this.b,this.f));delete c.Style;d.J(c);return d}};
k.Oq=function(a,b){var c=a.getAttribute("id");null!==c&&(b=ys(a,b))&&(a=a.baseURI?(new URL("#"+c,a.baseURI)).href:"#"+c,this.b[a]=b)};k.Nq=function(a,b){var c=a.getAttribute("id");null!==c&&(b=I(void 0,Ss,a,b))&&(a=a.baseURI?(new URL("#"+c,a.baseURI)).href:"#"+c,this.b[a]=b)};k.Yg=function(a,b){return bd(bs,a.namespaceURI)?(a=this.eh(a,[op(this,a,b)]))?a:null:null};
k.wc=function(a,b){if(!bd(bs,a.namespaceURI))return[];var c=a.localName;if("Document"==c||"Folder"==c)return(c=this.Wg(a,[op(this,a,b)]))?c:[];if("Placemark"==c)return(b=this.eh(a,[op(this,a,b)]))?[b]:[];if("kml"==c){c=[];for(a=a.firstElementChild;a;a=a.nextElementSibling){var d=this.wc(a,b);d&&dd(c,d)}return c}return[]};k.Eq=function(a){if(uj(a))return Vs(this,a);if(vj(a))return Ws(this,a);if("string"===typeof a)return a=wj(a),Vs(this,a)};
function Vs(a,b){for(b=b.firstChild;b;b=b.nextSibling)if(b.nodeType==Node.ELEMENT_NODE){var c=Ws(a,b);if(c)return c}}function Ws(a,b){var c;for(c=b.firstElementChild;c;c=c.nextElementSibling)if(bd(bs,c.namespaceURI)&&"name"==c.localName)return V(c);for(c=b.firstElementChild;c;c=c.nextElementSibling)if(b=c.localName,bd(bs,c.namespaceURI)&&("Document"==b||"Folder"==b||"Placemark"==b||"kml"==b)&&(b=Ws(a,c)))return b}
k.Fq=function(a){var b=[];uj(a)?dd(b,Xs(this,a)):vj(a)?dd(b,Ys(this,a)):"string"===typeof a&&(a=wj(a),dd(b,Xs(this,a)));return b};function Xs(a,b){var c=[];for(b=b.firstChild;b;b=b.nextSibling)b.nodeType==Node.ELEMENT_NODE&&dd(c,Ys(a,b));return c}
function Ys(a,b){var c,d=[];for(c=b.firstElementChild;c;c=c.nextElementSibling)if(bd(bs,c.namespaceURI)&&"NetworkLink"==c.localName){var e=I({},Qs,c,[]);d.push(e)}for(c=b.firstElementChild;c;c=c.nextElementSibling)b=c.localName,!bd(bs,c.namespaceURI)||"Document"!=b&&"Folder"!=b&&"kml"!=b||dd(d,Ys(a,c));return d}k.Kq=function(a){var b=[];uj(a)?dd(b,Zs(this,a)):vj(a)?dd(b,this.Hf(a)):"string"===typeof a&&(a=wj(a),dd(b,Zs(this,a)));return b};
function Zs(a,b){var c=[];for(b=b.firstChild;b;b=b.nextSibling)b.nodeType==Node.ELEMENT_NODE&&dd(c,a.Hf(b));return c}k.Hf=function(a){var b,c=[];for(b=a.firstElementChild;b;b=b.nextElementSibling)if(bd(bs,b.namespaceURI)&&"Region"==b.localName){var d=I({},Ds,b,[]);c.push(d)}for(b=a.firstElementChild;b;b=b.nextElementSibling)a=b.localName,!bd(bs,b.namespaceURI)||"Document"!=a&&"Folder"!=a&&"kml"!=a||dd(c,this.Hf(b));return c};
function $s(a,b){b=Jd(b);b=[255*(4==b.length?b[3]:1),b[2],b[1],b[0]];var c;for(c=0;4>c;++c){var d=parseInt(b[c],10).toString(16);b[c]=1==d.length?"0"+d:d}Ip(a,b.join(""))}function at(a,b,c){a={node:a};var d=b.T();if("GeometryCollection"==d){var e=b.Xe();var f=bt}else"MultiPoint"==d?(e=b.Hd(),f=ct):"MultiLineString"==d?(e=b.Hc(),f=dt):"MultiPolygon"==d?(e=b.bd(),f=et):gb(!1,39);Hj(a,ft,f,e,c)}function gt(a,b,c){Hj({node:a},ht,it,[b],c)}
function jt(a,b,c){var d={node:a};b.a&&a.setAttribute("id",b.a);a=b.L();var e={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};e[b.c]=1;var f=Object.keys(a||{}).sort().filter(function(a){return!e[a]});if(0<f.length){var g=Fj(a,f);Hj(d,kt,lt,[{names:f,values:g}],c)}if(f=b.Nc())if(f=f.call(b,0))f=Array.isArray(f)?f[0]:f,this.j&&(a.Style=f),(f=f.ra())&&(a.name=f.ra());f=mt[c[c.length-1].node.namespaceURI];a=Fj(a,f);Hj(d,kt,Ej,a,c,f);a=c[0];(b=b.V())&&(b=qp(b,!0,a));Hj(d,
kt,bt,[b],c)}function nt(a,b,c){var d=b.ja();a={node:a};a.layout=b.ma;a.stride=b.ya();Hj(a,ot,pt,[d],c)}function qt(a,b,c){b=b.Ic();var d=b.shift();a={node:a};Hj(a,rt,st,b,c);Hj(a,rt,tt,[d],c)}function ut(a,b){Jp(a,Math.round(1E6*b)/1E6)}
var vt=H(bs,["Document","Placemark"]),yt=H(bs,{Document:G(function(a,b,c){Hj({node:a},wt,xt,b,c,void 0,this)}),Placemark:G(jt)}),wt=H(bs,{Placemark:G(jt)}),zt=H(bs,{Data:G(function(a,b,c){a.setAttribute("name",b.name);a={node:a};b=b.value;"object"==typeof b?(null!==b&&b.displayName&&Hj(a,zt,Ej,[b.displayName],c,["displayName"]),null!==b&&b.value&&Hj(a,zt,Ej,[b.value],c,["value"])):Hj(a,zt,Ej,[b],c,["value"])}),value:G(function(a,b){Ip(a,b)}),displayName:G(function(a,b){a.appendChild(qj.createCDATASection(b))})}),
At={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},Bt=H(bs,["href"],H(as,["x","y","w","h"])),Ct=H(bs,{href:G(Ip)},H(as,{x:G(Jp),y:G(Jp),w:G(Jp),h:G(Jp)})),Dt=H(bs,["scale","heading","Icon","hotSpot"]),Ft=H(bs,{Icon:G(function(a,b,c){a={node:a};var d=Bt[c[c.length-1].node.namespaceURI],e=Fj(b,d);Hj(a,Ct,Ej,e,c,d);d=Bt[as[0]];e=Fj(b,d);Hj(a,Ct,
Et,e,c,d)}),heading:G(Jp),hotSpot:G(function(a,b){a.setAttribute("x",b.x);a.setAttribute("y",b.y);a.setAttribute("xunits",b.Bh);a.setAttribute("yunits",b.Ch)}),scale:G(ut)}),Gt=H(bs,["color","scale"]),Ht=H(bs,{color:G($s),scale:G(ut)}),It=H(bs,["color","width"]),Jt=H(bs,{color:G($s),width:G(Jp)}),ht=H(bs,{LinearRing:G(nt)}),ft=H(bs,{LineString:G(nt),Point:G(nt),Polygon:G(qt),GeometryCollection:G(at)}),mt=H(bs,"name open visibility address phoneNumber description styleUrl Style".split(" ")),kt=H(bs,
{ExtendedData:G(function(a,b,c){a={node:a};var d=b.names;b=b.values;for(var e=d.length,f=0;f<e;f++)Hj(a,zt,Kt,[{name:d[f],value:b[f]}],c)}),MultiGeometry:G(at),LineString:G(nt),LinearRing:G(nt),Point:G(nt),Polygon:G(qt),Style:G(function(a,b,c){a={node:a};var d={},e=b.qa(),f=b.pa(),g=b.W();b=b.ra();g instanceof ql&&(d.IconStyle=g);b&&(d.LabelStyle=b);f&&(d.LineStyle=f);e&&(d.PolyStyle=e);b=Lt[c[c.length-1].node.namespaceURI];d=Fj(d,b);Hj(a,Mt,Ej,d,c,b)}),address:G(Ip),description:G(Ip),name:G(Ip),
open:G(Hp),phoneNumber:G(Ip),styleUrl:G(Ip),visibility:G(Hp)}),ot=H(bs,{coordinates:G(function(a,b,c){c=c[c.length-1];var d=c.layout;c=c.stride;var e;"XY"==d||"XYM"==d?e=2:"XYZ"==d||"XYZM"==d?e=3:gb(!1,34);var f,g=b.length,h="";if(0<g){h+=b[0];for(d=1;d<e;++d)h+=","+b[d];for(f=c;f<g;f+=c)for(h+=" "+b[f],d=1;d<e;++d)h+=","+b[f+d]}Ip(a,h)})}),rt=H(bs,{outerBoundaryIs:G(gt),innerBoundaryIs:G(gt)}),Nt=H(bs,{color:G($s)}),Lt=H(bs,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Mt=H(bs,{IconStyle:G(function(a,
b,c){a={node:a};var d={},e=b.gc(),f=b.Ye(),g={href:b.b.l};if(e){g.w=e[0];g.h=e[1];var h=b.Gc(),l=b.jd();l&&f&&0!==l[0]&&l[1]!==e[1]&&(g.x=l[0],g.y=f[1]-(l[1]+e[1]));h&&0!==h[0]&&h[1]!==e[1]&&(d.hotSpot={x:h[0],Bh:"pixels",y:e[1]-h[1],Ch:"pixels"})}d.Icon=g;e=b.Ma();1!==e&&(d.scale=e);b=b.i;0!==b&&(d.heading=b);b=Dt[c[c.length-1].node.namespaceURI];d=Fj(d,b);Hj(a,Ft,Ej,d,c,b)}),LabelStyle:G(function(a,b,c){a={node:a};var d={},e=b.qa();e&&(d.color=e.b);(b=b.Ma())&&1!==b&&(d.scale=b);b=Gt[c[c.length-
1].node.namespaceURI];d=Fj(d,b);Hj(a,Ht,Ej,d,c,b)}),LineStyle:G(function(a,b,c){a={node:a};var d=It[c[c.length-1].node.namespaceURI];b=Fj({color:b.b,width:b.c},d);Hj(a,Jt,Ej,b,c,d)}),PolyStyle:G(function(a,b,c){Hj({node:a},Nt,Ot,[b.b],c)})});function Et(a,b,c){return rj(as[0],"gx:"+c)}function xt(a,b){return rj(b[b.length-1].node.namespaceURI,"Placemark")}function bt(a,b){if(a)return rj(b[b.length-1].node.namespaceURI,At[a.T()])}
var Ot=Cj("color"),pt=Cj("coordinates"),Kt=Cj("Data"),lt=Cj("ExtendedData"),st=Cj("innerBoundaryIs"),ct=Cj("Point"),dt=Cj("LineString"),it=Cj("LinearRing"),et=Cj("Polygon"),tt=Cj("outerBoundaryIs");
Lr.prototype.kc=function(a,b){b=pp(this,b);var c=rj(bs[4],"kml");c.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",as[0]);c.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");c.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var d={node:c},e={};1<a.length?e.Document=a:1==a.length&&(e.Placemark=a[0]);a=vt[c.namespaceURI];
e=Fj(e,a);Hj(d,yt,Ej,e,[b],a,this);return c};(function(){var a={},b={oa:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.oa=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.ds=c()}})(function(){return function g(a,b,f){function d(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(e)return e(h,!0);l=Error("Cannot find module '"+h+"'");throw l.code="MODULE_NOT_FOUND",l;}l=b[h]={oa:{}};a[h][0].call(l.oa,function(b){var e=
a[h][1][b];return d(e?e:b)},l,l.oa,g,a,b,f)}return b[h].oa}for(var e="function"==typeof require&&require,m=0;m<f.length;m++)d(f[m]);return d}({1:[function(a,b,f){f.read=function(a,b,d,e,f){var g=8*f-e-1;var h=(1<<g)-1,l=h>>1,m=-7;f=d?f-1:0;var n=d?-1:1,z=a[b+f];f+=n;d=z&(1<<-m)-1;z>>=-m;for(m+=g;0<m;d=256*d+a[b+f],f+=n,m-=8);g=d&(1<<-m)-1;d>>=-m;for(m+=e;0<m;g=256*g+a[b+f],f+=n,m-=8);if(0===d)d=1-l;else{if(d===h)return g?NaN:Infinity*(z?-1:1);g+=Math.pow(2,e);d-=l}return(z?-1:1)*g*Math.pow(2,d-e)};
f.write=function(a,b,d,e,f,p){var g,h=8*p-f-1,l=(1<<h)-1,m=l>>1,n=23===f?Math.pow(2,-24)-Math.pow(2,-77):0;p=e?0:p-1;var D=e?1:-1,B=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,e=l):(e=Math.floor(Math.log(b)/Math.LN2),1>b*(g=Math.pow(2,-e))&&(e--,g*=2),b=1<=e+m?b+n/g:b+n*Math.pow(2,1-m),2<=b*g&&(e++,g/=2),e+m>=l?(b=0,e=l):1<=e+m?(b=(b*g-1)*Math.pow(2,f),e+=m):(b=b*Math.pow(2,m-1)*Math.pow(2,f),e=0));for(;8<=f;a[d+p]=b&255,p+=D,b/=256,f-=8);e=e<<f|b;for(h+=f;0<h;a[d+p]=
e&255,p+=D,e/=256,h-=8);a[d+p-D]|=128*B}},{}],2:[function(a,b){function d(a){this.mc=ArrayBuffer.isView&&ArrayBuffer.isView(a)?a:new Uint8Array(a||0);this.type=this.ia=0;this.length=this.mc.length}function e(a,b,d){var e=d.mc;var f=e[d.ia++];var g=(f&112)>>4;if(128>f)return h(a,g,b);f=e[d.ia++];g|=(f&127)<<3;if(128>f)return h(a,g,b);f=e[d.ia++];g|=(f&127)<<10;if(128>f)return h(a,g,b);f=e[d.ia++];g|=(f&127)<<17;if(128>f)return h(a,g,b);f=e[d.ia++];g|=(f&127)<<24;if(128>f)return h(a,g,b);f=e[d.ia++];
if(128>f)return h(a,g|(f&1)<<31,b);throw Error("Expected varint not more than 10 bytes");}function h(a,b,d){return d?4294967296*b+(a>>>0):4294967296*(b>>>0)+(a>>>0)}b.oa=d;var l=a("ieee754");d.c=0;d.g=1;d.b=2;d.a=5;d.prototype={destroy:function(){this.mc=null},ah:function(a,b,d){for(d=d||this.length;this.ia<d;){var e=this.Sa(),f=e>>3,g=this.ia;this.type=e&7;a(f,b,this);this.ia===g&&this.Br(e)}return b},yq:function(){var a=l.read(this.mc,this.ia,!0,23,4);this.ia+=4;return a},uq:function(){var a=l.read(this.mc,
this.ia,!0,52,8);this.ia+=8;return a},Sa:function(a){var b=this.mc;var d=b[this.ia++];var f=d&127;if(128>d)return f;d=b[this.ia++];f|=(d&127)<<7;if(128>d)return f;d=b[this.ia++];f|=(d&127)<<14;if(128>d)return f;d=b[this.ia++];f|=(d&127)<<21;if(128>d)return f;d=b[this.ia];return e(f|(d&15)<<28,a,this)},Uq:function(){return this.Sa(!0)},ye:function(){var a=this.Sa();return 1===a%2?(a+1)/-2:a/2},nq:function(){return!!this.Sa()},gh:function(){for(var a=this.Sa()+this.ia,b=this.mc,d="",e=this.ia;e<a;){var f=
b[e],g=null,h=239<f?4:223<f?3:191<f?2:1;if(e+h>a)break;if(1===h)128>f&&(g=f);else if(2===h){var l=b[e+1];128===(l&192)&&(g=(f&31)<<6|l&63,127>=g&&(g=null))}else if(3===h){l=b[e+1];var D=b[e+2];128===(l&192)&&128===(D&192)&&(g=(f&15)<<12|(l&63)<<6|D&63,2047>=g||55296<=g&&57343>=g)&&(g=null)}else if(4===h){l=b[e+1];D=b[e+2];var B=b[e+3];128===(l&192)&&128===(D&192)&&128===(B&192)&&(g=(f&15)<<18|(l&63)<<12|(D&63)<<6|B&63,65535>=g||1114112<=g)&&(g=null)}null===g?(g=65533,h=1):65535<g&&(g-=65536,d+=String.fromCharCode(g>>>
10&1023|55296),g=56320|g&1023);d+=String.fromCharCode(g);e+=h}this.ia=a;return d},Br:function(a){a&=7;if(a===d.c)for(;127<this.mc[this.ia++];);else if(a===d.b)this.ia=this.Sa()+this.ia;else if(a===d.a)this.ia+=4;else if(a===d.g)this.ia+=8;else throw Error("Unimplemented type: "+a);}}},{ieee754:1}]},{},[2])(2)});Tg=b.oa})();(function(){var a={},b={oa:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.oa=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.hs=c()}})(function(){return function g(a,b,f){function d(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(e)return e(h,!0);l=Error("Cannot find module '"+h+"'");throw l.code="MODULE_NOT_FOUND",l;}l=b[h]={oa:{}};a[h][0].call(l.oa,function(b){var e=
a[h][1][b];return d(e?e:b)},l,l.oa,g,a,b,f)}return b[h].oa}for(var e="function"==typeof require&&require,m=0;m<f.length;m++)d(f[m]);return d}({1:[function(a,b){function d(a,b){this.x=a;this.y=b}b.oa=d;d.prototype={clone:function(){return new d(this.x,this.y)},add:function(a){return this.clone().Fk(a)},sub:function(a){return this.clone().Tk(a)},rotate:function(a){return this.clone().Qk(a)},round:function(){return this.clone().Rk()},angle:function(){return Math.atan2(this.y,this.x)},Fk:function(a){this.x+=
a.x;this.y+=a.y;return this},Tk:function(a){this.x-=a.x;this.y-=a.y;return this},Qk:function(a){var b=Math.cos(a);a=Math.sin(a);var d=a*this.x+b*this.y;this.x=b*this.x-a*this.y;this.y=d;return this},Rk:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}};d.convert=function(a){return a instanceof d?a:Array.isArray(a)?new d(a[0],a[1]):a}},{}],2:[function(a,b){b.oa.Ek=a("./lib/vectortile.js");b.oa.Zr=a("./lib/vectortilefeature.js");b.oa.$r=a("./lib/vectortilelayer.js")},{"./lib/vectortile.js":3,
"./lib/vectortilefeature.js":4,"./lib/vectortilelayer.js":5}],3:[function(a,b){function d(a,b,d){3===a&&(a=new e(d,d.Sa()+d.ia),a.length&&(b[a.name]=a))}var e=a("./vectortilelayer");b.oa=function(a,b){this.layers=a.ah(d,{},b)}},{"./vectortilelayer":5}],4:[function(a,b){function d(a,b,d,f,g){this.properties={};this.extent=d;this.type=0;this.Wc=a;this.Zf=-1;this.Ke=f;this.Me=g;a.ah(e,this,b)}function e(a,b,d){if(1==a)b.id=d.Sa();else if(2==a)for(a=d.Sa()+d.ia;d.ia<a;){var e=b.Ke[d.Sa()],f=b.Me[d.Sa()];
b.properties[e]=f}else 3==a?b.type=d.Sa():4==a&&(b.Zf=d.ia)}var h=a("point-geometry");b.oa=d;d.b=["Unknown","Point","LineString","Polygon"];d.prototype.pi=function(){var a=this.Wc;a.ia=this.Zf;for(var b=a.Sa()+a.ia,d=1,e=0,f=0,g=0,u=[],w;a.ia<b;)if(e||(e=a.Sa(),d=e&7,e>>=3),e--,1===d||2===d)f+=a.ye(),g+=a.ye(),1===d&&(w&&u.push(w),w=[]),w.push(new h(f,g));else if(7===d)w&&w.push(w[0].clone());else throw Error("unknown command "+d);w&&u.push(w);return u};d.prototype.bbox=function(){var a=this.Wc;a.ia=
this.Zf;for(var b=a.Sa()+a.ia,d=1,e=0,f=0,g=0,h=Infinity,w=-Infinity,z=Infinity,D=-Infinity;a.ia<b;)if(e||(e=a.Sa(),d=e&7,e>>=3),e--,1===d||2===d)f+=a.ye(),g+=a.ye(),f<h&&(h=f),f>w&&(w=f),g<z&&(z=g),g>D&&(D=g);else if(7!==d)throw Error("unknown command "+d);return[h,z,w,D]}},{"point-geometry":1}],5:[function(a,b){function d(a,b){this.version=1;this.name=null;this.extent=4096;this.length=0;this.Wc=a;this.Ke=[];this.Me=[];this.Je=[];a.ah(e,this,b);this.length=this.Je.length}function e(a,b,d){15===a?
b.version=d.Sa():1===a?b.name=d.gh():5===a?b.extent=d.Sa():2===a?b.Je.push(d.ia):3===a?b.Ke.push(d.gh()):4===a&&b.Me.push(h(d))}function h(a){for(var b=null,d=a.Sa()+a.ia;a.ia<d;)b=a.Sa()>>3,b=1===b?a.gh():2===b?a.yq():3===b?a.uq():4===b?a.Uq():5===b?a.Sa():6===b?a.ye():7===b?a.nq():null;return b}var l=a("./vectortilefeature.js");b.oa=d;d.prototype.feature=function(a){if(0>a||a>=this.Je.length)throw Error("feature index out of bounds");this.Wc.ia=this.Je[a];a=this.Wc.Sa()+this.Wc.ia;return new l(this.Wc,
a,this.extent,this.Ke,this.Me)}},{"./vectortilefeature.js":4}]},{},[2])(2)});Ug=b.oa})();function Pt(a,b,c,d){this.g=a;this.b=b;this.i=c;this.c=d}k=Pt.prototype;k.get=function(a){return this.c[a]};k.$b=function(){return this.i};k.D=function(){this.a||(this.a="Point"===this.g?sb(this.b):tb(this.b,0,this.b.length,2));return this.a};k.sc=function(){return this.b};k.ja=Pt.prototype.sc;k.V=function(){return this};k.L=function(){return this.c};k.le=Pt.prototype.V;k.ya=function(){return 2};k.Nc=ua;k.T=function(){return this.g};function Qt(a){np.call(this);a=a?a:{};this.defaultDataProjection=new mc({code:"",units:"tile-pixels"});this.b=a.featureClass?a.featureClass:Pt;this.g=a.geometryName;this.a=a.layerName?a.layerName:"layer";this.c=a.layers?a.layers:null}v(Qt,np);k=Qt.prototype;k.T=function(){return"arraybuffer"};
k.Oa=function(a,b){var c=this.c;a=new Tg(a);a=new Ug.Ek(a);var d=[],e=this.b,f;for(f in a.layers)if(!c||-1!=c.indexOf(f)){var g=a.layers[f];for(var h=0,l=g.length;h<l;++h){if(e===Pt){var m=void 0;var n=g.feature(h),p=f,q=n.pi(),t=[],u=[];Rt(q,u,t);var w=n.type;1===w?m=1===q.length?"Point":"MultiPoint":2===w?m=1===q.length?"LineString":"MultiLineString":3===w&&(m="Polygon");n=n.properties;n[this.a]=p;m=new this.b(m,u,t,n)}else{w=g.feature(h);n=f;u=b;m=new this.b;p=w.id;t=w.properties;t[this.a]=n;this.g&&
m.pd(this.g);n=void 0;q=w.type;if(0===q)n=null;else{w=w.pi();var z=[],D=[];Rt(w,D,z);1===q?n=1===w.length?new L(null):new T(null):2===q?1===w.length?n=new K(null):n=new R(null):3===q&&(n=new M(null));n.fa("XY",D,z)}u=qp(n,!1,pp(this,u));m.Wa(u);m.xc(p);m.J(t)}d.push(m)}}return d};k.hb=function(){return this.defaultDataProjection};k.ho=function(a){this.c=a};
function Rt(a,b,c){for(var d=0,e=0,f=a.length;e<f;++e){var g=a[e],h;var l=0;for(h=g.length;l<h;++l){var m=g[l];b.push(m.x,m.y)}d+=2*l;c.push(d)}}k.hc=function(){};k.od=function(){};k.Ud=function(){};k.wd=function(){};k.Xb=function(){};function St(){rp.call(this);this.defaultDataProjection=Gc("EPSG:4326")}v(St,rp);function Tt(a,b){b[b.length-1].Ce[a.getAttribute("k")]=a.getAttribute("v")}
var Ut=[null],Vt=H(Ut,{nd:function(a,b){b[b.length-1].Fd.push(a.getAttribute("ref"))},tag:Tt}),Xt=H(Ut,{node:function(a,b){var c=b[0],d=b[b.length-1],e=a.getAttribute("id"),f=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];d.ui[e]=f;a=I({Ce:{}},Wt,a,b);Aa(a.Ce)||(f=new L(f),qp(f,!1,c),c=new E(f),c.xc(e),c.J(a.Ce),d.features.push(c))},way:function(a,b){var c=b[0],d=a.getAttribute("id");a=I({Fd:[],Ce:{}},Vt,a,b);b=b[b.length-1];for(var e=[],f=0,g=a.Fd.length;f<g;f++)dd(e,b.ui[a.Fd[f]]);
a.Fd[0]==a.Fd[a.Fd.length-1]?(f=new M(null),f.fa("XY",e,[e.length])):(f=new K(null),f.fa("XY",e));qp(f,!1,c);c=new E(f);c.xc(d);c.J(a.Ce);b.features.push(c)}}),Wt=H(Ut,{tag:Tt});St.prototype.wc=function(a,b){b=op(this,a,b);return"osm"==a.localName&&(a=I({ui:{},features:[]},Xt,a,[b]),a.features)?a.features:[]};St.prototype.zh=function(){};St.prototype.kc=function(){};St.prototype.Fe=function(){};function Yt(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")};function Zt(){}Zt.prototype.read=function(a){return uj(a)?this.a(a):vj(a)?this.b(a):"string"===typeof a?(a=wj(a),this.a(a)):null};function $t(){}v($t,Zt);$t.prototype.a=function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE)return this.b(a);return null};$t.prototype.b=function(a){return(a=I({},au,a,[]))?a:null};
var bu=[null,"http://www.opengis.net/ows/1.1"],au=H(bu,{ServiceIdentification:F(function(a,b){return I({},cu,a,b)}),ServiceProvider:F(function(a,b){return I({},du,a,b)}),OperationsMetadata:F(function(a,b){return I({},eu,a,b)})}),fu=H(bu,{DeliveryPoint:F(V),City:F(V),AdministrativeArea:F(V),PostalCode:F(V),Country:F(V),ElectronicMailAddress:F(V)}),gu=H(bu,{Value:Aj(function(a){return V(a)})}),hu=H(bu,{AllowedValues:F(function(a,b){return I({},gu,a,b)})}),ju=H(bu,{Phone:F(function(a,b){return I({},
iu,a,b)}),Address:F(function(a,b){return I({},fu,a,b)})}),lu=H(bu,{HTTP:F(function(a,b){return I({},ku,a,b)})}),ku=H(bu,{Get:Aj(function(a,b){var c=Yt(a);if(c)return I({href:c},mu,a,b)}),Post:void 0}),nu=H(bu,{DCP:F(function(a,b){return I({},lu,a,b)})}),eu=H(bu,{Operation:function(a,b){var c=a.getAttribute("name");(a=I({},nu,a,b))&&(b[b.length-1][c]=a)}}),iu=H(bu,{Voice:F(V),Facsimile:F(V)}),mu=H(bu,{Constraint:Aj(function(a,b){var c=a.getAttribute("name");if(c)return I({name:c},hu,a,b)})}),ou=H(bu,
{IndividualName:F(V),PositionName:F(V),ContactInfo:F(function(a,b){return I({},ju,a,b)})}),cu=H(bu,{Title:F(V),ServiceTypeVersion:F(V),ServiceType:F(V)}),du=H(bu,{ProviderName:F(V),ProviderSite:F(Yt),ServiceContact:F(function(a,b){return I({},ou,a,b)})});function pu(a,b,c,d){var e;void 0!==d?e=d:e=[];for(var f=d=0;f<b;){var g=a[f++];e[d++]=a[f++];e[d++]=g;for(g=2;g<c;++g)e[d++]=a[f++]}e.length=d};function qu(a){a=a?a:{};np.call(this);this.defaultDataProjection=Gc("EPSG:4326");this.b=a.factor?a.factor:1E5;this.a=a.geometryLayout?a.geometryLayout:"XY"}v(qu,Br);function ru(a,b,c){var d,e=Array(b);for(d=0;d<b;++d)e[d]=0;var f;var g=0;for(f=a.length;g<f;)for(d=0;d<b;++d,++g){var h=a[g],l=h-e[d];e[d]=h;a[g]=l}return su(a,c?c:1E5)}function tu(a,b,c){var d,e=Array(b);for(d=0;d<b;++d)e[d]=0;a=uu(a,c?c:1E5);var f;c=0;for(f=a.length;c<f;)for(d=0;d<b;++d,++c)e[d]+=a[c],a[c]=e[d];return a}
function su(a,b){b=b?b:1E5;var c;var d=0;for(c=a.length;d<c;++d)a[d]=Math.round(a[d]*b);b=0;for(d=a.length;b<d;++b)c=a[b],a[b]=0>c?~(c<<1):c<<1;b="";d=0;for(c=a.length;d<c;++d){for(var e,f=a[d],g="";32<=f;)e=(32|f&31)+63,g+=String.fromCharCode(e),f>>=5;g+=String.fromCharCode(f+63);b+=g}return b}
function uu(a,b){b=b?b:1E5;var c=[],d=0,e=0,f;var g=0;for(f=a.length;g<f;++g){var h=a.charCodeAt(g)-63;d|=(h&31)<<e;32>h?(c.push(d),e=d=0):e+=5}a=0;for(d=c.length;a<d;++a)e=c[a],c[a]=e&1?~(e>>1):e>>1;a=0;for(d=c.length;a<d;++a)c[a]/=b;return c}k=qu.prototype;k.ue=function(a,b){a=this.Od(a,b);return new E(a)};k.$g=function(a,b){return[this.ue(a,b)]};k.Od=function(a,b){var c=Sd(this.a);a=tu(a,c,this.b);pu(a,a.length,c,a);c=Qk(a,0,a.length,c);return qp(new K(c,this.a),!1,pp(this,b))};
k.De=function(a,b){if(a=a.V())return this.Vd(a,b);gb(!1,40);return""};k.Ah=function(a,b){return this.De(a[0],b)};k.Vd=function(a,b){a=qp(a,!0,pp(this,b));b=a.ja();a=a.ya();pu(b,b.length,a,b);return ru(b,a,this.b)};function vu(a){a=a?a:{};np.call(this);this.defaultDataProjection=Gc(a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326")}v(vu,Up);function wu(a,b){var c=[],d,e;var f=0;for(e=a.length;f<e;++f){var g=a[f];0<f&&c.pop();0<=g?d=b[g]:d=b[~g].slice().reverse();c.push.apply(c,d)}a=0;for(b=c.length;a<b;++a)c[a]=c[a].slice();return c}function xu(a,b,c,d,e){a=a.geometries;var f=[],g;var h=0;for(g=a.length;h<g;++h)f[h]=yu(a[h],b,c,d,e);return f}
function yu(a,b,c,d,e){var f=a.type,g=zu[f];b="Point"===f||"MultiPoint"===f?g(a,c,d):g(a,b);c=new E;c.Wa(qp(b,!1,e));void 0!==a.id&&c.xc(a.id);a.properties&&c.J(a.properties);return c}
vu.prototype.Zg=function(a,b){if("Topology"==a.type){var c=null,d=null;if(a.transform){var e=a.transform;c=e.scale;d=e.translate}var f=a.arcs;if(e){e=c;var g=d,h;var l=0;for(h=f.length;l<h;++l){var m,n=f[l],p=e,q=g,t=0,u=0;var w=0;for(m=n.length;w<m;++w){var z=n[w];t+=z[0];u+=z[1];z[0]=t;z[1]=u;Au(z,p,q)}}}e=[];a=za(a.objects);g=0;for(l=a.length;g<l;++g)"GeometryCollection"===a[g].type?(h=a[g],e.push.apply(e,xu(h,f,c,d,b))):(h=a[g],e.push(yu(h,f,c,d,b)));return e}return[]};
function Au(a,b,c){a[0]=a[0]*b[0]+c[0];a[1]=a[1]*b[1]+c[1]}vu.prototype.fh=function(){return this.defaultDataProjection};
var zu={Point:function(a,b,c){a=a.coordinates;b&&c&&Au(a,b,c);return new L(a)},LineString:function(a,b){a=wu(a.arcs,b);return new K(a)},Polygon:function(a,b){var c=[],d;var e=0;for(d=a.arcs.length;e<d;++e)c[e]=wu(a.arcs[e],b);return new M(c)},MultiPoint:function(a,b,c){a=a.coordinates;var d;if(b&&c){var e=0;for(d=a.length;e<d;++e)Au(a[e],b,c)}return new T(a)},MultiLineString:function(a,b){var c=[],d;var e=0;for(d=a.arcs.length;e<d;++e)c[e]=wu(a.arcs[e],b);return new R(c)},MultiPolygon:function(a,
b){var c=[],d,e;var f=0;for(e=a.arcs.length;f<e;++f){var g=a.arcs[f];var h=[];var l=0;for(d=g.length;l<d;++l)h[l]=wu(g[l],b);c[f]=h}return new U(c)}};k=vu.prototype;k.vd=function(){};k.Ee=function(){};k.Ge=function(){};k.dh=function(){};k.md=function(){};function Bu(a){a=a?a:{};this.f=a.featureType;this.c=a.featureNS;this.b=a.gmlFormat?a.gmlFormat:new W;this.a=a.schemaLocation?a.schemaLocation:Cu["1.1.0"];rp.call(this)}v(Bu,rp);var Cu={"1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"};
Bu.prototype.wc=function(a,b){var c={featureType:this.f,featureNS:this.c};wa(c,op(this,a,b?b:{}));b=[c];this.b.b["http://www.opengis.net/gml"].featureMember=yj(xp.prototype.ve);(a=I([],this.b.b,a,b,this.b))||(a=[]);return a};Bu.prototype.l=function(a){if(uj(a))return Du(a);if(vj(a))return I({},Eu,a,[]);if("string"===typeof a)return a=wj(a),Du(a)};Bu.prototype.j=function(a){if(uj(a))return Fu(this,a);if(vj(a))return Gu(this,a);if("string"===typeof a)return a=wj(a),Fu(this,a)};
function Fu(a,b){for(b=b.firstChild;b;b=b.nextSibling)if(b.nodeType==Node.ELEMENT_NODE)return Gu(a,b)}var Hu={"http://www.opengis.net/gml":{boundedBy:F(xp.prototype.xe,"bounds")}};function Gu(a,b){var c={},d=Gp(b.getAttribute("numberOfFeatures"));c.numberOfFeatures=d;return I(c,Hu,b,[],a.b)}
var Iu={"http://www.opengis.net/wfs":{totalInserted:F(Fp),totalUpdated:F(Fp),totalDeleted:F(Fp)}},Ju={"http://www.opengis.net/ogc":{FeatureId:yj(function(a){return a.getAttribute("fid")})}},Ku={"http://www.opengis.net/wfs":{Feature:function(a,b){Gj(Ju,a,b)}}},Eu={"http://www.opengis.net/wfs":{TransactionSummary:F(function(a,b){return I({},Iu,a,b)},"transactionSummary"),InsertResults:F(function(a,b){return I([],Ku,a,b)},"insertIds")}};
function Du(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE)return I({},Eu,a,[])}var Lu={"http://www.opengis.net/wfs":{PropertyName:G(Ip)}};function Mu(a,b){var c=rj("http://www.opengis.net/ogc","Filter"),d=rj("http://www.opengis.net/ogc","FeatureId");c.appendChild(d);d.setAttribute("fid",b);a.appendChild(c)}
var Nu={"http://www.opengis.net/wfs":{Insert:G(function(a,b,c){var d=c[c.length-1],e=d.gmlVersion;d=rj(d.featureNS,d.featureType);a.appendChild(d);if(2===e){a=Iq.prototype;(e=b.a)&&d.setAttribute("fid",e);e=c[c.length-1];var f=e.featureNS,g=b.c;e.qb||(e.qb={},e.qb[f]={});var h=b.L();b=[];var l=[];for(n in h){var m=h[n];null!==m&&(b.push(n),l.push(m),n==g||m instanceof Od?n in e.qb[f]||(e.qb[f][n]=G(a.Di,a)):n in e.qb[f]||(e.qb[f][n]=G(Ip)))}var n=wa({},e);n.node=d;Hj(n,e.qb,Cj(void 0,f),l,c,b)}else W.prototype.Kg(d,
b,c)}),Update:G(function(a,b,c){var d=c[c.length-1];gb(void 0!==b.a,27);var e=d.featureType,f=d.featurePrefix;f=f?f:"feature";var g=d.featureNS;a.setAttribute("typeName",f+":"+e);a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+f,g);e=b.a;if(void 0!==e){f=b.P();g=[];for(var h=0,l=f.length;h<l;h++){var m=b.get(f[h]);void 0!==m&&g.push({name:f[h],value:m})}Hj({gmlVersion:d.gmlVersion,node:a,srsName:d.srsName},Nu,Cj("Property"),g,c);Mu(a,e)}}),Delete:G(function(a,b,c){var d=c[c.length-1];gb(void 0!==
b.a,26);c=d.featureType;var e=d.featurePrefix;e=e?e:"feature";d=d.featureNS;a.setAttribute("typeName",e+":"+c);a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+e,d);b=b.a;void 0!==b&&Mu(a,b)}),Property:G(function(a,b,c){var d=rj("http://www.opengis.net/wfs","Name"),e=c[c.length-1].gmlVersion;a.appendChild(d);Ip(d,b.name);void 0!==b.value&&null!==b.value&&(d=rj("http://www.opengis.net/wfs","Value"),a.appendChild(d),b.value instanceof Od?2===e?Iq.prototype.Di(d,b.value,c):W.prototype.Sb(d,
b.value,c):Ip(d,b.value))}),Native:G(function(a,b){b.yh&&a.setAttribute("vendorId",b.yh);void 0!==b.oh&&a.setAttribute("safeToIgnore",b.oh);void 0!==b.value&&Ip(a,b.value)})}};function Ou(a,b,c){var d={node:a};b.b.forEach(function(a){Hj(d,Pu,Cj(a.Kb),[a],c)})}function Qu(a,b){void 0!==b.a&&a.setAttribute("matchCase",b.a.toString());Ru(a,b.b);Su(a,""+b.g)}function Tu(a,b,c){a=rj("http://www.opengis.net/ogc",a);Ip(a,c);b.appendChild(a)}function Ru(a,b){Tu("PropertyName",a,b)}
function Su(a,b){Tu("Literal",a,b)}
var Pu={"http://www.opengis.net/wfs":{Query:G(function(a,b,c){var d=c[c.length-1],e=d.featurePrefix,f=d.featureNS,g=d.propertyNames,h=d.srsName;a.setAttribute("typeName",(e?e+":":"")+b);h&&a.setAttribute("srsName",h);f&&a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+e,f);b=wa({},d);b.node=a;Hj(b,Lu,Cj("PropertyName"),g,c);if(d=d.filter)g=rj("http://www.opengis.net/ogc","Filter"),a.appendChild(g),Hj({node:g},Pu,Cj(d.Kb),[d],c)})},"http://www.opengis.net/ogc":{And:G(Ou),Or:G(Ou),Not:G(function(a,
b,c){b=b.condition;Hj({node:a},Pu,Cj(b.Kb),[b],c)}),BBOX:G(function(a,b,c){c[c.length-1].srsName=b.srsName;Ru(a,b.geometryName);W.prototype.Sb(a,b.extent,c)}),Intersects:G(function(a,b,c){c[c.length-1].srsName=b.srsName;Ru(a,b.geometryName);W.prototype.Sb(a,b.geometry,c)}),Within:G(function(a,b,c){c[c.length-1].srsName=b.srsName;Ru(a,b.geometryName);W.prototype.Sb(a,b.geometry,c)}),PropertyIsEqualTo:G(Qu),PropertyIsNotEqualTo:G(Qu),PropertyIsLessThan:G(Qu),PropertyIsLessThanOrEqualTo:G(Qu),PropertyIsGreaterThan:G(Qu),
PropertyIsGreaterThanOrEqualTo:G(Qu),PropertyIsNull:G(function(a,b){Ru(a,b.b)}),PropertyIsBetween:G(function(a,b){Ru(a,b.b);var c=rj("http://www.opengis.net/ogc","LowerBoundary");a.appendChild(c);Su(c,""+b.a);c=rj("http://www.opengis.net/ogc","UpperBoundary");a.appendChild(c);Su(c,""+b.g)}),PropertyIsLike:G(function(a,b){a.setAttribute("wildCard",b.f);a.setAttribute("singleChar",b.i);a.setAttribute("escapeChar",b.g);void 0!==b.a&&a.setAttribute("matchCase",b.a.toString());Ru(a,b.b);Su(a,""+b.c)})}};
Bu.prototype.o=function(a){var b=rj("http://www.opengis.net/wfs","GetFeature");b.setAttribute("service","WFS");b.setAttribute("version","1.1.0");if(a){a.handle&&b.setAttribute("handle",a.handle);a.outputFormat&&b.setAttribute("outputFormat",a.outputFormat);void 0!==a.maxFeatures&&b.setAttribute("maxFeatures",a.maxFeatures);a.resultType&&b.setAttribute("resultType",a.resultType);void 0!==a.startIndex&&b.setAttribute("startIndex",a.startIndex);void 0!==a.count&&b.setAttribute("count",a.count);var c=
a.filter;if(a.bbox){gb(a.geometryName,12);var d=xq(a.geometryName,a.bbox,a.srsName);c?c=wq(c,d):c=d}}b.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.a);c={node:b,srsName:a.srsName,featureNS:a.featureNS?a.featureNS:this.c,featurePrefix:a.featurePrefix,geometryName:a.geometryName,filter:c,propertyNames:a.propertyNames?a.propertyNames:[]};gb(Array.isArray(a.featureTypes),11);a=a.featureTypes;c=[c];d=wa({},c[c.length-1]);d.node=b;Hj(d,Pu,Cj("Query"),a,c);return b};
Bu.prototype.s=function(a,b,c,d){var e=[],f=rj("http://www.opengis.net/wfs","Transaction"),g=d.version?d.version:"1.1.0",h="1.0.0"===g?2:3;f.setAttribute("service","WFS");f.setAttribute("version",g);if(d){var l=d.gmlOptions?d.gmlOptions:{};d.handle&&f.setAttribute("handle",d.handle)}f.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",Cu[g]);a&&(g={node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix,gmlVersion:h,srsName:d.srsName},wa(g,
l),Hj(g,Nu,Cj("Insert"),a,e));b&&(g={node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix,gmlVersion:h,srsName:d.srsName},wa(g,l),Hj(g,Nu,Cj("Update"),b,e));c&&Hj({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix,gmlVersion:h,srsName:d.srsName},Nu,Cj("Delete"),c,e);d.nativeElements&&Hj({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix,gmlVersion:h,srsName:d.srsName},Nu,Cj("Native"),d.nativeElements,
e);return f};Bu.prototype.Gf=function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE)return this.Pd(a);return null};Bu.prototype.Pd=function(a){if(a.firstElementChild&&a.firstElementChild.firstElementChild)for(a=a.firstElementChild.firstElementChild,a=a.firstElementChild;a;a=a.nextElementSibling)if(0!==a.childNodes.length&&(1!==a.childNodes.length||3!==a.firstChild.nodeType)){var b=[{}];this.b.xe(a,b);return Gc(b.pop().srsName)}return null};function Uu(a){a=a?a:{};this.j=a.featureType;this.f=a.featureNS;this.b=a.gmlFormat?a.gmlFormat:new Tp;this.a=a.schemaLocation?a.schemaLocation:"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd";rp.call(this)}v(Uu,rp);
Uu.prototype.wc=function(a,b){var c={featureType:this.j,featureNS:this.f};wa(c,op(this,a,b?b:{}));b=[c];this.b.b["http://www.opengis.net/wfs/2.0"]={};this.b.b["http://www.opengis.net/wfs/2.0"].member=yj(Uu.prototype.c,this);(a=I([],this.b.b,a,b,this.b))||(a=[]);return a};Uu.prototype.o=function(a){if(uj(a))return Vu(a);if(vj(a))return I({},Wu,a,[]);if("string"===typeof a)return a=wj(a),Vu(a)};
Uu.prototype.l=function(a){if(uj(a))return Xu(this,a);if(vj(a))return Yu(this,a);if("string"===typeof a)return a=wj(a),Xu(this,a)};function Xu(a,b){for(b=b.firstChild;b;b=b.nextSibling)if(b.nodeType==Node.ELEMENT_NODE)return Yu(a,b)}Uu.prototype.c=function(a,b){return I([],this.b.b,a,b,this.b)};var Zu={"http://www.opengis.net/wfs/2.0":{member:yj(Uu.prototype.c)}};function Yu(a,b){var c={},d=Gp(b.getAttribute("numberOfFeatures"));c.numberOfFeatures=d;return I(c,Zu,b,[],a.b)}
var $u={"http://www.opengis.net/wfs":{totalInserted:F(Fp),totalUpdated:F(Fp),totalDeleted:F(Fp)}},av={"http://www.opengis.net/ogc":{FeatureId:yj(function(a){return a.getAttribute("fid")})}},bv={"http://www.opengis.net/wfs":{Feature:function(a,b){Gj(av,a,b)}}},Wu={"http://www.opengis.net/wfs":{TransactionSummary:F(function(a,b){return I({},$u,a,b)},"transactionSummary"),InsertResults:F(function(a,b){return I([],bv,a,b)},"insertIds")}};
function Vu(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE)return I({},Wu,a,[])}var cv={"http://www.opengis.net/wfs/2.0":{PropertyName:G(Ip)}};function dv(a,b){var c=rj("http://www.opengis.net/fes/2.0","Filter"),d=rj("http://www.opengis.net/fes/2.0","FeatureId");c.appendChild(d);d.setAttribute("fid",b);a.appendChild(c)}
var ev={"http://www.opengis.net/wfs/2.0":{Insert:G(function(a,b,c){var d=c[c.length-1];d=rj(d.featureNS,d.featureType);a.appendChild(d);W.prototype.Kg(d,b,c)}),Update:G(function(a,b,c){var d=c[c.length-1];gb(void 0!==b.a,27);var e=d.featureType,f=d.featurePrefix;f=f?f:"feature";var g=d.featureNS;a.setAttribute("typeName",f+":"+e);a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+f,g);e=b.a;if(void 0!==e){f=b.P();g=[];for(var h=0,l=f.length;h<l;h++){var m=b.get(f[h]);void 0!==m&&g.push({name:f[h],
value:m})}Hj({node:a,srsName:d.srsName},ev,Cj("Property"),g,c);dv(a,e)}}),Delete:G(function(a,b,c){var d=c[c.length-1];gb(void 0!==b.a,26);c=d.featureType;var e=d.featurePrefix;e=e?e:"feature";d=d.featureNS;a.setAttribute("typeName",e+":"+c);a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+e,d);b=b.a;void 0!==b&&dv(a,b)}),Property:G(function(a,b,c){var d=rj("http://www.opengis.net/wfs/2.0","Name");a.appendChild(d);Ip(d,b.name);void 0!==b.value&&null!==b.value&&(d=rj("http://www.opengis.net/wfs/2.0",
"Value"),a.appendChild(d),b.value instanceof Od?W.prototype.Sb(d,b.value,c):Ip(d,b.value))}),Native:G(function(a,b){b.yh&&a.setAttribute("vendorId",b.yh);void 0!==b.oh&&a.setAttribute("safeToIgnore",b.oh);void 0!==b.value&&Ip(a,b.value)})}};function fv(a,b,c){var d={node:a};b.b.forEach(function(a){Hj(d,gv,Cj(a.Kb),[a],c)})}function hv(a,b){void 0!==b.a&&a.setAttribute("matchCase",b.a.toString());iv(a,b.b);jv(a,""+b.g)}
function kv(a,b,c){a=rj("http://www.opengis.net/fes/2.0",a);Ip(a,c);b.appendChild(a)}function iv(a,b){kv("ValueReference",a,b)}function jv(a,b){kv("Literal",a,b)}
var gv={"http://www.opengis.net/wfs/2.0":{Query:G(function(a,b,c){var d=c[c.length-1],e=d.featurePrefix,f=d.featureNS,g=d.propertyNames,h=d.srsName;a.setAttribute("typeNames","schema-element("+(e?e+":":"")+b+")");h&&a.setAttribute("srsName",h);f&&a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+e,f);b=wa({},d);b.node=a;Hj(b,cv,Cj("PropertyName"),g,c);if(d=d.filter)g=rj("http://www.opengis.net/fes/2.0","Filter"),a.appendChild(g),Hj({node:g},gv,Cj(d.Kb),[d],c)})},"http://www.opengis.net/fes/2.0":{And:G(fv),
Or:G(fv),Not:G(function(a,b,c){b=b.condition;Hj({node:a},gv,Cj(b.Kb),[b],c)}),BBOX:G(function(a,b,c){c[c.length-1].srsName=b.srsName;iv(a,b.geometryName);W.prototype.Sb(a,b.extent,c)}),Intersects:G(function(a,b,c){c[c.length-1].srsName=b.srsName;iv(a,b.geometryName);W.prototype.Sb(a,b.geometry,c)}),Within:G(function(a,b,c){c[c.length-1].srsName=b.srsName;iv(a,b.geometryName);W.prototype.Sb(a,b.geometry,c)}),DWithin:G(function(a,b,c){c[c.length-1].srsName=b.srsName;iv(a,b.geometryName);W.prototype.Sb(a,
b.geometry,c);c=rj("http://www.opengis.net/fes/2.0","Distance");Ip(c,String(b.distance));c.setAttribute("uom",b.b);a.appendChild(c)}),PropertyIsEqualTo:G(hv),PropertyIsNotEqualTo:G(hv),PropertyIsLessThan:G(hv),PropertyIsLessThanOrEqualTo:G(hv),PropertyIsGreaterThan:G(hv),PropertyIsGreaterThanOrEqualTo:G(hv),PropertyIsNull:G(function(a,b){iv(a,b.b)}),PropertyIsBetween:G(function(a,b){iv(a,b.b);var c=rj("http://www.opengis.net/fes/2.0","LowerBoundary");a.appendChild(c);jv(c,""+b.a);c=rj("http://www.opengis.net/fes/2.0",
"UpperBoundary");a.appendChild(c);jv(c,""+b.g)}),PropertyIsLike:G(function(a,b){a.setAttribute("wildCard",b.f);a.setAttribute("singleChar",b.i);a.setAttribute("escapeChar",b.g);void 0!==b.a&&a.setAttribute("matchCase",b.a.toString());iv(a,b.b);jv(a,""+b.c)})}};
Uu.prototype.s=function(a){var b=rj("http://www.opengis.net/wfs/2.0","GetFeature");b.setAttribute("service","WFS");b.setAttribute("version","2.0.0");if(a){a.handle&&b.setAttribute("handle",a.handle);a.outputFormat&&b.setAttribute("outputFormat",a.outputFormat);void 0!==a.maxFeatures&&b.setAttribute("maxFeatures",a.maxFeatures);a.resultType&&b.setAttribute("resultType",a.resultType);void 0!==a.startIndex&&b.setAttribute("startIndex",a.startIndex);void 0!==a.count&&b.setAttribute("count",a.count);var c=
a.filter;if(a.bbox){gb(a.geometryName,12);var d=xq(a.geometryName,a.bbox,a.srsName);c?c=wq(c,d):c=d}}b.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.a);if(a.allNs)for(var e in a.allNs)a.allNs.hasOwnProperty(e)&&b.setAttribute("xmlns__--__"+e,a.allNs[e]);c={node:b,srsName:a.srsName,featureNS:a.featureNS?a.featureNS:this.f,featurePrefix:a.featurePrefix,geometryName:a.geometryName,filter:c,propertyNames:a.propertyNames?a.propertyNames:[]};gb(Array.isArray(a.featureTypes),
11);a=a.featureTypes;c=[c];d=wa({},c[c.length-1]);d.node=b;Hj(d,gv,Cj("Query"),a,c);return b};
Uu.prototype.I=function(a,b,c,d){var e=[],f=rj("http://www.opengis.net/wfs/2.0","Transaction");f.setAttribute("service","WFS");f.setAttribute("version","2.0.0");if(d){var g=d.gmlOptions?d.gmlOptions:{};d.handle&&f.setAttribute("handle",d.handle)}f.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.a);if(a){var h={node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix,srsName:d.srsName};wa(h,g);Hj(h,ev,Cj("Insert"),a,e)}b&&(h={node:f,
featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix,srsName:d.srsName},wa(h,g),Hj(h,ev,Cj("Update"),b,e));c&&Hj({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix,srsName:d.srsName},ev,Cj("Delete"),c,e);d.nativeElements&&Hj({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix,srsName:d.srsName},ev,Cj("Native"),d.nativeElements,e);return f};
Uu.prototype.Gf=function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE)return this.Pd(a);return null};Uu.prototype.Pd=function(a){if(a.firstElementChild&&a.firstElementChild.firstElementChild)for(a=a.firstElementChild.firstElementChild,a=a.firstElementChild;a;a=a.nextElementSibling)if(0!==a.childNodes.length&&(1!==a.childNodes.length||3!==a.firstChild.nodeType)){var b=[{}];this.b.xe(a,b);return Gc(b.pop().srsName)}return null};function lv(a){a=a?a:{};np.call(this);this.b=void 0!==a.splitCollection?a.splitCollection:!1}v(lv,Br);function mv(a){a=a.U();return 0===a.length?"":a.join(" ")}function nv(a){a=a.U();for(var b=[],c=0,d=a.length;c<d;++c)b.push(a[c].join(" "));return b.join(",")}function ov(a){var b=[];a=a.Ic();for(var c=0,d=a.length;c<d;++c)b.push("("+nv(a[c])+")");return b.join(",")}
function pv(a){var b=a.T(),c=(0,qv[b])(a);b=b.toUpperCase();if(a instanceof Rd){a=a.ma;var d="";if("XYZ"===a||"XYZM"===a)d+="Z";if("XYM"===a||"XYZM"===a)d+="M";a=d;0<a.length&&(b+=" "+a)}return 0===c.length?b+" EMPTY":b+"("+c+")"}
var qv={Point:mv,LineString:nv,Polygon:ov,MultiPoint:function(a){var b=[];a=a.Hd();for(var c=0,d=a.length;c<d;++c)b.push("("+mv(a[c])+")");return b.join(",")},MultiLineString:function(a){var b=[];a=a.Hc();for(var c=0,d=a.length;c<d;++c)b.push("("+nv(a[c])+")");return b.join(",")},MultiPolygon:function(a){var b=[];a=a.bd();for(var c=0,d=a.length;c<d;++c)b.push("("+ov(a[c])+")");return b.join(",")},GeometryCollection:function(a){var b=[];a=a.Xe();for(var c=0,d=a.length;c<d;++c)b.push(pv(a[c]));return b.join(",")}};
k=lv.prototype;k.ue=function(a,b){return(a=this.Od(a,b))?(b=new E,b.Wa(a),b):null};k.$g=function(a,b){var c=[];a=this.Od(a,b);this.b&&"GeometryCollection"==a.T()?c=a.a:c=[a];b=[];for(var d=0,e=c.length;d<e;++d)a=new E,a.Wa(c[d]),b.push(a);return b};k.Od=function(a,b){a=new rv(new sv(a));tv(a);return(a=uv(a))?qp(a,!1,b):null};k.De=function(a,b){return(a=a.V())?this.Vd(a,b):""};
k.Ah=function(a,b){if(1==a.length)return this.De(a[0],b);for(var c=[],d=0,e=a.length;d<e;++d)c.push(a[d].V());a=new zq(c);return this.Vd(a,b)};k.Vd=function(a,b){return pv(qp(a,!0,b))};function sv(a){this.a=a;this.b=-1}
function vv(a){var b=a.a.charAt(++a.b),c={position:a.b,value:b};if("("==b)c.type=2;else if(","==b)c.type=5;else if(")"==b)c.type=3;else if("0"<=b&&"9">=b||"."==b||"-"==b){c.type=4;b=a.b;var d=!1,e=!1;do{if("."==f)d=!0;else if("e"==f||"E"==f)e=!0;var f=a.a.charAt(++a.b)}while("0"<=f&&"9">=f||"."==f&&(void 0===d||!d)||!e&&("e"==f||"E"==f)||e&&("-"==f||"+"==f));a=parseFloat(a.a.substring(b,a.b--));c.value=a}else if("a"<=b&&"z">=b||"A"<=b&&"Z">=b){c.type=1;b=a.b;do f=a.a.charAt(++a.b);while("a"<=f&&"z">=
f||"A"<=f&&"Z">=f);a=a.a.substring(b,a.b--).toUpperCase();c.value=a}else{if(" "==b||"\t"==b||"\r"==b||"\n"==b)return vv(a);if(""===b)c.type=6;else throw Error("Unexpected character: "+b);}return c}function rv(a){this.g=a;this.a="XY"}function tv(a){a.b=vv(a.g)}function wv(a,b){(b=a.b.type==b)&&tv(a);return b}
function uv(a){var b=a.b;if(wv(a,1)){b=b.value;var c="XY",d=a.b;1==a.b.type&&(d=d.value,"Z"===d?c="XYZ":"M"===d?c="XYM":"ZM"===d&&(c="XYZM"),"XY"!==c&&tv(a));a.a=c;if("GEOMETRYCOLLECTION"==b){a:{if(wv(a,2)){b=[];do b.push(uv(a));while(wv(a,5));if(wv(a,3)){a=b;break a}}else if(xv(a)){a=[];break a}throw Error(yv(a));}return new zq(a)}d=zv[b];c=Av[b];if(!d||!c)throw Error("Invalid geometry type: "+b);b=d.call(a);return new c(b,a.a)}throw Error(yv(a));}k=rv.prototype;
k.Ug=function(){if(wv(this,2)){var a=Bv(this);if(wv(this,3))return a}else if(xv(this))return null;throw Error(yv(this));};k.Tg=function(){if(wv(this,2)){var a=Cv(this);if(wv(this,3))return a}else if(xv(this))return[];throw Error(yv(this));};k.Vg=function(){if(wv(this,2)){var a=Dv(this);if(wv(this,3))return a}else if(xv(this))return[];throw Error(yv(this));};
k.$p=function(){if(wv(this,2)){var a;if(2==this.b.type)for(a=[this.Ug()];wv(this,5);)a.push(this.Ug());else a=Cv(this);if(wv(this,3))return a}else if(xv(this))return[];throw Error(yv(this));};k.Zp=function(){if(wv(this,2)){var a=Dv(this);if(wv(this,3))return a}else if(xv(this))return[];throw Error(yv(this));};k.aq=function(){if(wv(this,2)){for(var a=[this.Vg()];wv(this,5);)a.push(this.Vg());if(wv(this,3))return a}else if(xv(this))return[];throw Error(yv(this));};
function Bv(a){for(var b=[],c=a.a.length,d=0;d<c;++d){var e=a.b;if(wv(a,4))b.push(e.value);else break}if(b.length==c)return b;throw Error(yv(a));}function Cv(a){for(var b=[Bv(a)];wv(a,5);)b.push(Bv(a));return b}function Dv(a){for(var b=[a.Tg()];wv(a,5);)b.push(a.Tg());return b}function xv(a){var b=1==a.b.type&&"EMPTY"==a.b.value;b&&tv(a);return b}function yv(a){return"Unexpected `"+a.b.value+"` at position "+a.b.position+" in `"+a.g.a+"`"}
var Av={POINT:L,LINESTRING:K,POLYGON:M,MULTIPOINT:T,MULTILINESTRING:R,MULTIPOLYGON:U},zv={POINT:rv.prototype.Ug,LINESTRING:rv.prototype.Tg,POLYGON:rv.prototype.Vg,MULTIPOINT:rv.prototype.$p,MULTILINESTRING:rv.prototype.Zp,MULTIPOLYGON:rv.prototype.aq};function Ev(){this.version=void 0}v(Ev,Zt);Ev.prototype.a=function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE)return this.b(a);return null};Ev.prototype.b=function(a){this.version=a.getAttribute("version").trim();return(a=I({version:this.version},Fv,a,[]))?a:null};function Gv(a,b){return I({},Hv,a,b)}function Iv(a,b){return I({},Jv,a,b)}function Kv(a,b){if(b=Gv(a,b))return a=[Gp(a.getAttribute("width")),Gp(a.getAttribute("height"))],b.size=a,b}
function Lv(a,b){return I([],Mv,a,b)}
var Nv=[null,"http://www.opengis.net/wms"],Fv=H(Nv,{Service:F(function(a,b){return I({},Ov,a,b)}),Capability:F(function(a,b){return I({},Pv,a,b)})}),Pv=H(Nv,{Request:F(function(a,b){return I({},Qv,a,b)}),Exception:F(function(a,b){return I([],Rv,a,b)}),Layer:F(function(a,b){return I({},Sv,a,b)})}),Ov=H(Nv,{Name:F(V),Title:F(V),Abstract:F(V),KeywordList:F(Lv),OnlineResource:F(Yt),ContactInformation:F(function(a,b){return I({},Tv,a,b)}),Fees:F(V),AccessConstraints:F(V),LayerLimit:F(Fp),MaxWidth:F(Fp),
MaxHeight:F(Fp)}),Tv=H(Nv,{ContactPersonPrimary:F(function(a,b){return I({},Uv,a,b)}),ContactPosition:F(V),ContactAddress:F(function(a,b){return I({},Vv,a,b)}),ContactVoiceTelephone:F(V),ContactFacsimileTelephone:F(V),ContactElectronicMailAddress:F(V)}),Uv=H(Nv,{ContactPerson:F(V),ContactOrganization:F(V)}),Vv=H(Nv,{AddressType:F(V),Address:F(V),City:F(V),StateOrProvince:F(V),PostCode:F(V),Country:F(V)}),Rv=H(Nv,{Format:yj(V)}),Sv=H(Nv,{Name:F(V),Title:F(V),Abstract:F(V),KeywordList:F(Lv),CRS:Aj(V),
EX_GeographicBoundingBox:F(function(a,b){var c=I({},Wv,a,b);if(c){a=c.westBoundLongitude;b=c.southBoundLatitude;var d=c.eastBoundLongitude;c=c.northBoundLatitude;if(void 0!==a&&void 0!==b&&void 0!==d&&void 0!==c)return[a,b,d,c]}}),BoundingBox:Aj(function(a){var b=[Ep(a.getAttribute("minx")),Ep(a.getAttribute("miny")),Ep(a.getAttribute("maxx")),Ep(a.getAttribute("maxy"))],c=[Ep(a.getAttribute("resx")),Ep(a.getAttribute("resy"))];return{crs:a.getAttribute("CRS"),extent:b,res:c}}),Dimension:Aj(function(a){return{name:a.getAttribute("name"),
units:a.getAttribute("units"),unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:Bp(a.getAttribute("multipleValues")),nearestValue:Bp(a.getAttribute("nearestValue")),current:Bp(a.getAttribute("current")),values:V(a)}}),Attribution:F(function(a,b){return I({},Xv,a,b)}),AuthorityURL:Aj(function(a,b){if(b=Gv(a,b))return b.name=a.getAttribute("name"),b}),Identifier:Aj(V),MetadataURL:Aj(function(a,b){if(b=Gv(a,b))return b.type=a.getAttribute("type"),b}),DataURL:Aj(Gv),
FeatureListURL:Aj(Gv),Style:Aj(function(a,b){return I({},Yv,a,b)}),MinScaleDenominator:F(Dp),MaxScaleDenominator:F(Dp),Layer:Aj(function(a,b){var c=b[b.length-1],d=I({},Sv,a,b);if(d)return b=Bp(a.getAttribute("queryable")),void 0===b&&(b=c.queryable),d.queryable=void 0!==b?b:!1,b=Gp(a.getAttribute("cascaded")),void 0===b&&(b=c.cascaded),d.cascaded=b,b=Bp(a.getAttribute("opaque")),void 0===b&&(b=c.opaque),d.opaque=void 0!==b?b:!1,b=Bp(a.getAttribute("noSubsets")),void 0===b&&(b=c.noSubsets),d.noSubsets=
void 0!==b?b:!1,(b=Ep(a.getAttribute("fixedWidth")))||(b=c.fixedWidth),d.fixedWidth=b,(a=Ep(a.getAttribute("fixedHeight")))||(a=c.fixedHeight),d.fixedHeight=a,["Style","CRS","AuthorityURL"].forEach(function(a){a in c&&(d[a]=(d[a]||[]).concat(c[a]))}),"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(a){a in d||(d[a]=c[a])}),d})}),Xv=H(Nv,{Title:F(V),OnlineResource:F(Yt),LogoURL:F(Kv)}),Wv=H(Nv,{westBoundLongitude:F(Dp),
eastBoundLongitude:F(Dp),southBoundLatitude:F(Dp),northBoundLatitude:F(Dp)}),Qv=H(Nv,{GetCapabilities:F(Iv),GetMap:F(Iv),GetFeatureInfo:F(Iv)}),Jv=H(Nv,{Format:Aj(V),DCPType:Aj(function(a,b){return I({},Zv,a,b)})}),Zv=H(Nv,{HTTP:F(function(a,b){return I({},$v,a,b)})}),$v=H(Nv,{Get:F(Gv),Post:F(Gv)}),Yv=H(Nv,{Name:F(V),Title:F(V),Abstract:F(V),LegendURL:Aj(Kv),StyleSheetURL:F(Gv),StyleURL:F(Gv)}),Hv=H(Nv,{Format:F(V),OnlineResource:F(Yt)}),Mv=H(Nv,{Keyword:yj(V)});function aw(a){a=a?a:{};this.a="http://mapserver.gis.umn.edu/mapserver";this.b=new Iq;this.c=a.layers?a.layers:null;rp.call(this)}v(aw,rp);
aw.prototype.wc=function(a,b){var c={};b&&wa(c,op(this,a,b));c=[c];a.setAttribute("namespaceURI",this.a);var d=a.localName;b=[];if(0!==a.childNodes.length){if("msGMLOutput"==d)for(var e=0,f=a.childNodes.length;e<f;e++){var g=a.childNodes[e];if(g.nodeType===Node.ELEMENT_NODE){var h=c[0],l=g.localName.replace("_layer","");if(!this.c||bd(this.c,l)){l+="_feature";h.featureType=l;h.featureNS=this.a;var m={};m[l]=yj(this.b.Xg,this.b);h=H([h.featureNS,null],m);g.setAttribute("namespaceURI",this.a);(g=I([],
h,g,c,this.b))&&dd(b,g)}}}"FeatureCollection"==d&&(a=I([],this.b.b,a,[{}],this.b))&&(b=a)}return b};aw.prototype.zh=function(){};aw.prototype.kc=function(){};aw.prototype.Fe=function(){};function bw(){this.g=new $t}v(bw,Zt);bw.prototype.a=function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE)return this.b(a);return null};bw.prototype.b=function(a){var b=a.getAttribute("version").trim(),c=this.g.b(a);if(!c)return null;c.version=b;return(c=I(c,cw,a,[]))?c:null};function dw(a){var b=V(a).split(" ");if(b&&2==b.length&&(a=+b[0],b=+b[1],!isNaN(a)&&!isNaN(b)))return[a,b]}
var ew=[null,"http://www.opengis.net/wmts/1.0"],fw=[null,"http://www.opengis.net/ows/1.1"],cw=H(ew,{Contents:F(function(a,b){return I({},gw,a,b)})}),gw=H(ew,{Layer:Aj(function(a,b){return I({},hw,a,b)}),TileMatrixSet:Aj(function(a,b){return I({},iw,a,b)})}),hw=H(ew,{Style:Aj(function(a,b){if(b=I({},jw,a,b))return a="true"===a.getAttribute("isDefault"),b.isDefault=a,b}),Format:Aj(V),TileMatrixSetLink:Aj(function(a,b){return I({},kw,a,b)}),Dimension:Aj(function(a,b){return I({},lw,a,b)}),ResourceURL:Aj(function(a){var b=
a.getAttribute("format"),c=a.getAttribute("template");a=a.getAttribute("resourceType");var d={};b&&(d.format=b);c&&(d.template=c);a&&(d.resourceType=a);return d})},H(fw,{Title:F(V),Abstract:F(V),WGS84BoundingBox:F(function(a,b){a=I([],mw,a,b);if(2==a.length)return hb(a)}),Identifier:F(V)})),jw=H(ew,{LegendURL:Aj(function(a){var b={};b.format=a.getAttribute("format");b.href=Yt(a);return b})},H(fw,{Title:F(V),Identifier:F(V)})),kw=H(ew,{TileMatrixSet:F(V),TileMatrixSetLimits:F(function(a,b){return I([],
nw,a,b)})}),nw=H(ew,{TileMatrixLimits:yj(function(a,b){return I({},ow,a,b)})}),ow=H(ew,{TileMatrix:F(V),MinTileRow:F(Fp),MaxTileRow:F(Fp),MinTileCol:F(Fp),MaxTileCol:F(Fp)}),lw=H(ew,{Default:F(V),Value:Aj(V)},H(fw,{Identifier:F(V)})),mw=H(fw,{LowerCorner:yj(dw),UpperCorner:yj(dw)}),iw=H(ew,{WellKnownScaleSet:F(V),TileMatrix:Aj(function(a,b){return I({},pw,a,b)})},H(fw,{SupportedCRS:F(V),Identifier:F(V)})),pw=H(ew,{TopLeftCorner:F(dw),ScaleDenominator:F(Dp),TileWidth:F(Fp),TileHeight:F(Fp),MatrixWidth:F(Fp),
MatrixHeight:F(Fp)},H(fw,{Identifier:F(V)}));function qw(a){Wa.call(this);a=a||{};this.a=null;this.i=Rc;this.c=void 0;y(this,Ya("projection"),this.vn,this);y(this,Ya("tracking"),this.wn,this);void 0!==a.projection&&this.yi(Gc(a.projection));void 0!==a.trackingOptions&&this.bk(a.trackingOptions);this.lf(void 0!==a.tracking?a.tracking:!1)}v(qw,Wa);k=qw.prototype;k.xa=function(){this.lf(!1);Wa.prototype.xa.call(this)};k.vn=function(){var a=this.wi();a&&(this.i=Fc(Gc("EPSG:4326"),a),this.a&&this.set("position",this.i(this.a)))};
k.wn=function(){if(ge){var a=this.xi();a&&void 0===this.c?this.c=navigator.geolocation.watchPosition(this.iq.bind(this),this.jq.bind(this),this.hi()):a||void 0===this.c||(navigator.geolocation.clearWatch(this.c),this.c=void 0)}};
k.iq=function(a){a=a.coords;this.set("accuracy",a.accuracy);this.set("altitude",null===a.altitude?void 0:a.altitude);this.set("altitudeAccuracy",null===a.altitudeAccuracy?void 0:a.altitudeAccuracy);this.set("heading",null===a.heading?void 0:Rb(a.heading));this.a?(this.a[0]=a.longitude,this.a[1]=a.latitude):this.a=[a.longitude,a.latitude];var b=this.i(this.a);this.set("position",b);this.set("speed",null===a.speed?void 0:a.speed);a=al(vc,this.a,a.accuracy);a.yc(this.i);this.set("accuracyGeometry",a);
this.u()};k.jq=function(a){a.type="error";this.lf(!1);this.b(a)};k.nl=function(){return this.get("accuracy")};k.ol=function(){return this.get("accuracyGeometry")||null};k.rn=function(){return this.get("altitude")};k.ql=function(){return this.get("altitudeAccuracy")};k.sn=function(){return this.get("heading")};k.tn=function(){return this.get("position")};k.wi=function(){return this.get("projection")};k.$l=function(){return this.get("speed")};k.xi=function(){return this.get("tracking")};k.hi=function(){return this.get("trackingOptions")};
k.yi=function(a){this.set("projection",a)};k.lf=function(a){this.set("tracking",a)};k.bk=function(a){this.set("trackingOptions",a)};function rw(a,b,c){Rd.call(this);this.qh(a,b?b:0,c)}v(rw,Rd);k=rw.prototype;k.clone=function(){var a=new rw(null);Td(a,this.ma,this.A.slice());a.u();return a};k.Lb=function(a,b,c,d){var e=this.A;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){if(0===b)for(d=0;d<this.a;++d)c[d]=e[d];else for(d=this.Gd()/Math.sqrt(b),c[0]=e[0]+d*a,c[1]=e[1]+d*f,d=2;d<this.a;++d)c[d]=e[d];c.length=this.a;return b}return d};k.hd=function(a,b){var c=this.A;a-=c[0];b-=c[1];return a*a+b*b<=sw(this)};
k.va=function(){return this.A.slice(0,this.a)};k.Qe=function(a){var b=this.A,c=b[this.a]-b[0];return rb(b[0]-c,b[1]-c,b[0]+c,b[1]+c,a)};k.Gd=function(){return Math.sqrt(sw(this))};function sw(a){var b=a.A[a.a]-a.A[0];a=a.A[a.a+1]-a.A[1];return b*b+a*a}k.T=function(){return"Circle"};k.bb=function(a){var b=this.D();return Jb(a,b)?(b=this.va(),a[0]<=b[0]&&a[2]>=b[0]||a[1]<=b[1]&&a[3]>=b[1]?!0:xb(a,this.yb,this)):!1};
k.cb=function(a){var b=this.a,c=a.slice();c[b]=c[0]+(this.A[b]-this.A[0]);var d;for(d=1;d<b;++d)c[b+d]=a[d];Td(this,this.ma,c);this.u()};k.qh=function(a,b,c){if(a){Ud(this,c,a,0);this.A||(this.A=[]);c=this.A;a=Nk(c,a);c[a++]=c[0]+b;var d;b=1;for(d=this.a;b<d;++b)c[a++]=c[b];c.length=a}else Td(this,"XY",null);this.u()};k.U=function(){};k.ua=function(){};k.qd=function(a){this.A[this.a]=this.A[0]+a;this.u()};function tw(a,b,c){for(var d=[],e=a(0),f=a(1),g=b(e),h=b(f),l=[f,e],m=[h,g],n=[1,0],p={},q=1E5,t,u,w,z,D;0<--q&&0<n.length;)w=n.pop(),e=l.pop(),g=m.pop(),f=w.toString(),f in p||(d.push(g[0],g[1]),p[f]=!0),z=n.pop(),f=l.pop(),h=m.pop(),D=(w+z)/2,t=a(D),u=b(t),Pb(u[0],u[1],g[0],g[1],h[0],h[1])<c?(d.push(h[0],h[1]),f=z.toString(),p[f]=!0):(n.push(z,D,D,w),m.push(h,u,u,g),l.push(f,t,t,e));return d}function uw(a,b,c,d,e){var f=Gc("EPSG:4326");return tw(function(d){return[a,b+(c-b)*d]},Qc(f,d),e)}
function vw(a,b,c,d,e){var f=Gc("EPSG:4326");return tw(function(d){return[b+(c-b)*d,a]},Qc(f,d),e)};function ww(a){a=a||{};this.i=this.R=null;this.g=this.f=Infinity;this.c=this.j=-Infinity;this.v=this.I=Infinity;this.B=this.C=-Infinity;this.G=void 0!==a.targetSize?a.targetSize:100;this.ea=void 0!==a.maxLines?a.maxLines:100;this.b=[];this.a=[];this.ta=void 0!==a.strokeStyle?a.strokeStyle:xw;this.s=this.l=void 0;this.o=null;this.setMap(void 0!==a.map?a.map:null)}var xw=new Jg({color:"rgba(0,0,0,0.2)"}),yw=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];
function zw(a,b,c,d,e,f,g){var h=g;b=uw(b,c,d,a.i,e);h=void 0!==a.b[h]?a.b[h]:new K(null);h.fa("XY",b);Jb(h.D(),f)&&(a.b[g++]=h);return g}function Aw(a,b,c,d,e){var f=e;b=vw(b,a.c,a.g,a.i,c);f=void 0!==a.a[f]?a.a[f]:new K(null);f.fa("XY",b);Jb(f.D(),d)&&(a.a[e++]=f);return e}k=ww.prototype;k.xn=function(){return this.R};k.Pl=function(){return this.b};k.Xl=function(){return this.a};
k.li=function(a){var b=a.vectorContext,c=a.frameState,d=c.extent;a=c.viewState;var e=a.center,f=a.projection,g=a.resolution;a=c.pixelRatio;a=g*g/(4*a*a);if(!this.i||!Pc(this.i,f)){var h=Gc("EPSG:4326"),l=f.D(),m=f.f,n=Tc(m,h,f),p=m[2],q=m[1],t=m[0],u=n[3],w=n[2],z=n[1];n=n[0];this.f=m[3];this.g=p;this.j=q;this.c=t;this.I=u;this.v=w;this.C=z;this.B=n;this.l=Qc(h,f);this.s=Qc(f,h);this.o=this.s(Gb(l));this.i=f}f.a&&(f=f.D(),h=Eb(f),c=c.focus[0],c<f[0]||c>f[2])&&(c=h*Math.ceil((f[0]-c)/h),d=[d[0]+c,
d[1],d[2]+c,d[3]]);c=this.o[0];f=this.o[1];h=-1;m=Math.pow(this.G*g,2);p=[];q=[];g=0;for(l=yw.length;g<l;++g){t=yw[g]/2;p[0]=c-t;p[1]=f-t;q[0]=c+t;q[1]=f+t;this.l(p,p);this.l(q,q);t=Math.pow(q[0]-p[0],2)+Math.pow(q[1]-p[1],2);if(t<=m)break;h=yw[g]}g=h;if(-1==g)this.b.length=this.a.length=0;else{c=this.s(e);e=c[0];c=c[1];f=this.ea;h=[Math.max(d[0],this.B),Math.max(d[1],this.C),Math.min(d[2],this.v),Math.min(d[3],this.I)];h=Tc(h,this.i,"EPSG:4326");m=h[3];q=h[1];e=Math.floor(e/g)*g;p=Mb(e,this.c,this.g);
l=zw(this,p,q,m,a,d,0);for(h=0;p!=this.c&&h++<f;)p=Math.max(p-g,this.c),l=zw(this,p,q,m,a,d,l);p=Mb(e,this.c,this.g);for(h=0;p!=this.g&&h++<f;)p=Math.min(p+g,this.g),l=zw(this,p,q,m,a,d,l);this.b.length=l;c=Math.floor(c/g)*g;e=Mb(c,this.j,this.f);l=Aw(this,e,a,d,0);for(h=0;e!=this.j&&h++<f;)e=Math.max(e-g,this.j),l=Aw(this,e,a,d,l);e=Mb(c,this.j,this.f);for(h=0;e!=this.f&&h++<f;)e=Math.min(e+g,this.f),l=Aw(this,e,a,d,l);this.a.length=l}b.Ta(null,this.ta);a=0;for(e=this.b.length;a<e;++a)g=this.b[a],
b.Yb(g,null);a=0;for(e=this.a.length;a<e;++a)g=this.a[a],b.Yb(g,null)};k.setMap=function(a){this.R&&(this.R.K("postcompose",this.li,this),this.R.render());a&&(a.H("postcompose",this.li,this),a.render());this.R=a};function Bw(a,b,c,d,e,f,g){vk.call(this,a,b,c,0,d);this.j=e;this.O=new Image;null!==f&&(this.O.crossOrigin=f);this.c={};this.g=null;this.state=0;this.f=g}v(Bw,vk);k=Bw.prototype;k.W=function(a){if(void 0!==a){var b;a=x(a);if(a in this.c)return this.c[a];Aa(this.c)?b=this.O:b=this.O.cloneNode(!1);return this.c[a]=b}return this.O};k.An=function(){this.state=3;this.g.forEach(Ca);this.g=null;this.u()};
k.Bn=function(){void 0===this.resolution&&(this.resolution=Fb(this.extent)/this.O.height);this.state=2;this.g.forEach(Ca);this.g=null;this.u()};k.load=function(){if(0==this.state||3==this.state)this.state=1,this.u(),this.g=[Ia(this.O,"error",this.An,this),Ia(this.O,"load",this.Bn,this)],this.f(this,this.j)};k.rh=function(a){this.O=a};function Cw(a){a=a?a:{};qn.call(this,{handleEvent:Ad});this.f=a.formatConstructors?a.formatConstructors:[];this.l=a.projection?Gc(a.projection):null;this.a=null;this.target=a.target?a.target:null}v(Cw,qn);function Dw(a){a=a.dataTransfer.files;var b;var c=0;for(b=a.length;c<b;++c){var d=a.item(c);var e=new FileReader;e.addEventListener("load",this.j.bind(this,d));e.readAsText(d)}}function Ew(a){a.stopPropagation();a.preventDefault();a.dataTransfer.dropEffect="copy"}
Cw.prototype.j=function(a,b){b=b.target.result;var c=this.R,d=this.l;d||(d=c.Z().c);c=this.f;var e=[],f;var g=0;for(f=c.length;g<f;++g){var h=new c[g];var l={featureProjection:d};try{e=h.Oa(b,l)}catch(m){e=null}if(e&&0<e.length)break}this.b(new Fw(Gw,a,e,d))};Cw.prototype.setMap=function(a){this.a&&(this.a.forEach(Ca),this.a=null);qn.prototype.setMap.call(this,a);a&&(a=this.target?this.target:a.a,this.a=[y(a,"drop",Dw,this),y(a,"dragenter",Ew,this),y(a,"dragover",Ew,this),y(a,"drop",Ew,this)])};
var Gw="addfeatures";function Fw(a,b,c,d){Na.call(this,a);this.features=c;this.file=b;this.projection=d}v(Fw,Na);function Hw(a){a=a?a:{};Fn.call(this,{handleDownEvent:Iw,handleDragEvent:Jw,handleUpEvent:Kw});this.o=a.condition?a.condition:Bn;this.a=this.f=void 0;this.j=0;this.s=void 0!==a.duration?a.duration:400}v(Hw,Fn);function Jw(a){if(Dn(a)){var b=a.map,c=b.Rb(),d=a.pixel;a=d[0]-c[0]/2;d=c[1]/2-d[1];c=Math.atan2(d,a);a=Math.sqrt(a*a+d*d);b=b.Z();void 0!==this.f&&(d=c-this.f,rn(b,b.Qa()-d));this.f=c;void 0!==this.a&&(c=this.a*(b.Ia()/a),tn(b,c));void 0!==this.a&&(this.j=this.a/a);this.a=a}}
function Kw(a){if(!Dn(a))return!0;a=a.map.Z();fn(a,1,-1);var b=this.j-1,c=a.Qa();c=a.constrainRotation(c,0);rn(a,c,void 0,void 0);c=a.Ia();var d=this.s;c=a.constrainResolution(c,0,b);tn(a,c,void 0,d);this.j=0;return!1}function Iw(a){return Dn(a)&&this.o(a)?(fn(a.map.Z(),1,1),this.a=this.f=void 0,!0):!1};function Lw(a){Fn.call(this,{handleDownEvent:Mw,handleEvent:Nw,handleUpEvent:Ow});this.aa=!1;this.$=null;this.s=!1;this.rb=a.source?a.source:null;this.Xa=a.features?a.features:null;this.dl=a.snapTolerance?a.snapTolerance:12;this.N=a.type;this.f=Pw(this.N);this.wa=a.minPoints?a.minPoints:this.f===Qw?3:2;this.na=a.maxPoints?a.maxPoints:Infinity;this.Wf=a.finishCondition?a.finishCondition:Ad;var b=a.geometryFunction;if(!b)if("Circle"===this.N)b=function(a,b){b=b?b:new rw([NaN,NaN]);b.qh(a[0],Math.sqrt(wd(a[0],
a[1])));return b};else{var c,d=this.f;d===Rw?c=L:d===Sw?c=K:d===Qw&&(c=M);b=function(a,b){b?d===Qw?b.ua([a[0].concat([a[0][0]])]):b.ua(a):b=new c(a);return b}}this.Va=b;this.G=this.C=this.a=this.B=this.j=this.o=null;this.lc=a.clickTolerance?a.clickTolerance*a.clickTolerance:36;this.la=new N({source:new J({useSpatialIndex:!1,wrapX:a.wrapX?a.wrapX:!1}),style:a.style?a.style:Tw()});this.Ua=a.geometryName;this.al=a.condition?a.condition:An;this.Xf=a.freehand?Ad:a.freehandCondition?a.freehandCondition:
Bn;y(this,Ya("active"),this.Si,this)}v(Lw,Fn);function Tw(){var a=lj();return function(b){return a[b.V().T()]}}k=Lw.prototype;k.setMap=function(a){Fn.prototype.setMap.call(this,a);this.Si()};function Nw(a){this.s=this.f!==Rw&&this.Xf(a);var b=!this.s;this.s&&"pointerdrag"===a.type&&null!==this.j?(Uw(this,a),b=!1):"pointermove"===a.type?b=Vw(this,a):"dblclick"===a.type&&(b=!1);return Gn.call(this,a)&&b}
function Mw(a){this.aa=!this.s;return this.s?(this.$=a.pixel,this.o||Ww(this,a),!0):this.al(a)?(this.$=a.pixel,!0):!1}function Ow(a){var b=!0;Vw(this,a);var c=this.f===Xw;this.aa?(this.o?this.s||c?this.ie():Yw(this,a)?this.Wf(a)&&this.ie():Uw(this,a):(Ww(this,a),this.f===Rw&&this.ie()),b=!1):this.s&&(this.o=null,Zw(this));return b}
function Vw(a,b){if(a.$&&(!a.s&&a.aa||a.s&&!a.aa)){var c=a.$,d=b.pixel,e=c[0]-d[0];c=c[1]-d[1];e=e*e+c*c;a.aa=a.s?e>a.lc:e<=a.lc}a.o?(e=b.coordinate,c=a.j.V(),a.f===Rw?d=a.a:a.f===Qw?(d=a.a[0],d=d[d.length-1],Yw(a,b)&&(e=a.o.slice())):(d=a.a,d=d[d.length-1]),d[0]=e[0],d[1]=e[1],a.Va(a.a,c),a.B&&a.B.V().ua(e),c instanceof M&&a.f!==Qw?(a.C||(a.C=new E(new K(null))),e=c.ug(0),b=a.C.V(),b.fa(e.ma,e.ja())):a.G&&(b=a.C.V(),b.ua(a.G)),$w(a)):(b=b.coordinate.slice(),a.B?a.B.V().ua(b):(a.B=new E(new L(b)),
$w(a)));return!0}function Yw(a,b){var c=!1;if(a.j){var d=!1,e=[a.o];a.f===Sw?d=a.a.length>a.wa:a.f===Qw&&(d=a.a[0].length>a.wa,e=[a.a[0][0],a.a[0][a.a[0].length-2]]);if(d){d=b.map;for(var f=0,g=e.length;f<g;f++){var h=e[f],l=d.Pa(h),m=b.pixel;c=m[0]-l[0];l=m[1]-l[1];if(c=Math.sqrt(c*c+l*l)<=(a.s?1:a.dl)){a.o=h;break}}}}return c}
function Ww(a,b){b=b.coordinate;a.o=b;a.f===Rw?a.a=b.slice():a.f===Qw?(a.a=[[b.slice(),b.slice()]],a.G=a.a[0]):(a.a=[b.slice(),b.slice()],a.f===Xw&&(a.G=a.a));a.G&&(a.C=new E(new K(a.G)));b=a.Va(a.a);a.j=new E;a.Ua&&a.j.pd(a.Ua);a.j.Wa(b);$w(a);a.b(new ax("drawstart",a.j))}
function Uw(a,b){b=b.coordinate;var c=a.j.V(),d;if(a.f===Sw){a.o=b.slice();var e=a.a;e.length>=a.na&&(a.s?e.pop():d=!0);e.push(b.slice());a.Va(e,c)}else a.f===Qw&&(e=a.a[0],e.length>=a.na&&(a.s?e.pop():d=!0),e.push(b.slice()),d&&(a.o=e[0]),a.Va(a.a,c));$w(a);d&&a.ie()}
k.Zq=function(){if(this.j){var a=this.j.V();if(this.f===Sw){var b=this.a;b.splice(-2,1);this.Va(b,a);2<=b.length&&(this.o=b[b.length-2].slice())}else if(this.f===Qw){b=this.a[0];b.splice(-2,1);var c=this.C.V();c.ua(b);this.Va(this.a,a)}0===b.length&&(this.o=null);$w(this)}};
k.ie=function(){var a=Zw(this),b=this.a,c=a.V();this.f===Sw?(b.pop(),this.Va(b,c)):this.f===Qw&&(b[0].pop(),this.Va(b,c),b=c.U());"MultiPoint"===this.N?a.Wa(new T([b])):"MultiLineString"===this.N?a.Wa(new R([b])):"MultiPolygon"===this.N&&a.Wa(new U([b]));this.b(new ax("drawend",a));this.Xa&&this.Xa.push(a);this.rb&&this.rb.Eb(a)};function Zw(a){a.o=null;var b=a.j;b&&(a.j=null,a.B=null,a.C=null,a.la.ba().clear(!0));return b}
k.po=function(a){var b=a.V();this.j=a;this.a=b.U();a=this.a[this.a.length-1];this.o=a.slice();this.a.push(a.slice());$w(this);this.b(new ax("drawstart",this.j))};k.sd=Bd;function $w(a){var b=[];a.j&&b.push(a.j);a.C&&b.push(a.C);a.B&&b.push(a.B);a=a.la.ba();a.clear(!0);a.yd(b)}k.Si=function(){var a=this.R,b=this.c();a&&b||Zw(this);this.la.setMap(b?a:null)};
function Pw(a){var b;"Point"===a||"MultiPoint"===a?b=Rw:"LineString"===a||"MultiLineString"===a?b=Sw:"Polygon"===a||"MultiPolygon"===a?b=Qw:"Circle"===a&&(b=Xw);return b}var Rw="Point",Sw="LineString",Qw="Polygon",Xw="Circle";function ax(a,b){Na.call(this,a);this.feature=b}v(ax,Na);function bx(a){this.a=this.j=null;this.C=!1;this.B=this.o=null;a||(a={});a.extent&&this.f(a.extent);Fn.call(this,{handleDownEvent:cx,handleDragEvent:dx,handleEvent:ex,handleUpEvent:fx});this.s=new N({source:new J({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.boxStyle?a.boxStyle:gx(),updateWhileAnimating:!0,updateWhileInteracting:!0});this.G=new N({source:new J({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.pointerStyle?a.pointerStyle:hx(),updateWhileAnimating:!0,updateWhileInteracting:!0})}v(bx,Fn);
function ex(a){if(!(a instanceof nm))return!0;if("pointermove"==a.type&&!this.v){var b=a.pixel,c=a.map,d=ix(this,b,c);d||(d=c.ab(b));jx(this,d)}Gn.call(this,a);return!1}
function cx(a){function b(a){var b=null,c=null;a[0]==e[0]?b=e[2]:a[0]==e[2]&&(b=e[0]);a[1]==e[1]?c=e[3]:a[1]==e[3]&&(c=e[1]);return null!==b&&null!==c?[b,c]:null}var c=a.pixel,d=a.map,e=this.D();(a=ix(this,c,d))&&e?(c=a[0]==e[0]||a[0]==e[2]?a[0]:null,d=a[1]==e[1]||a[1]==e[3]?a[1]:null,null!==c&&null!==d?this.a=kx(b(a)):null!==c?this.a=lx(b([c,e[1]]),b([c,e[3]])):null!==d&&(this.a=lx(b([e[0],d]),b([e[2],d])))):(a=d.ab(c),this.f([a[0],a[1],a[0],a[1]]),this.a=kx(a));return!0}
function dx(a){this.a&&(a=a.coordinate,this.f(this.a(a)),jx(this,a));return!0}function fx(){this.a=null;var a=this.D();a&&0!==Cb(a)||this.f(null);return!1}function gx(){var a=lj();return function(){return a.Polygon}}function hx(){var a=lj();return function(){return a.Point}}function kx(a){return function(b){return hb([a,b])}}function lx(a,b){return a[0]==b[0]?function(c){return hb([a,[c[0],b[1]]])}:a[1]==b[1]?function(c){return hb([a,[b[0],c[1]]])}:null}
function ix(a,b,c){function d(a,b){return yd(e,a)-yd(e,b)}var e=c.ab(b),f=a.D();if(f){f=[[[f[0],f[1]],[f[0],f[3]]],[[f[0],f[3]],[f[2],f[3]]],[[f[2],f[3]],[f[2],f[1]]],[[f[2],f[1]],[f[0],f[1]]]];f.sort(d);f=f[0];var g=qd(e,f),h=c.Pa(g);if(10>=xd(b,h))return b=c.Pa(f[0]),c=c.Pa(f[1]),b=wd(h,b),c=wd(h,c),a.C=10>=Math.sqrt(Math.min(b,c)),a.C&&(g=b>c?f[1]:f[0]),g}return null}function jx(a,b){var c=a.B;c?c.V().ua(b):(c=new E(new L(b)),a.B=c,a.G.ba().Eb(c))}
bx.prototype.setMap=function(a){this.s.setMap(a);this.G.setMap(a);Fn.prototype.setMap.call(this,a)};bx.prototype.D=function(){return this.j};bx.prototype.f=function(a){this.j=a?a:null;var b=this.o;b?a?b.Wa(bl(a)):b.Wa(void 0):(this.o=b=a?new E(bl(a)):new E({}),this.s.ba().Eb(b));this.b(new mx(this.j))};function mx(a){Na.call(this,nx);this.b=a}v(mx,Na);var nx="extentchanged";function ox(a){Fn.call(this,{handleDownEvent:px,handleDragEvent:qx,handleEvent:rx,handleUpEvent:sx});this.rb=a.condition?a.condition:En;this.Xa=function(a){return An(a)&&zn(a)};this.Ua=a.deleteCondition?a.deleteCondition:this.Xa;this.wa=this.f=null;this.na=[0,0];this.C=this.G=!1;this.a=new Wg;this.$=void 0!==a.pixelTolerance?a.pixelTolerance:10;this.o=this.la=!1;this.j=[];this.B=new N({source:new J({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.style?a.style:tx(),updateWhileAnimating:!0,updateWhileInteracting:!0});
this.aa={Point:this.wo,LineString:this.Ui,LinearRing:this.Ui,Polygon:this.xo,MultiPoint:this.uo,MultiLineString:this.to,MultiPolygon:this.vo,Circle:this.Lr,GeometryCollection:this.so};this.s=a.features;this.s.forEach(this.Lg,this);y(this.s,"add",this.qo,this);y(this.s,"remove",this.ro,this);this.N=null}v(ox,Fn);k=ox.prototype;k.Lg=function(a){var b=a.V();b&&b.T()in this.aa&&this.aa[b.T()].call(this,a,b);(b=this.R)&&b.c&&this.c()&&ux(this,this.na,b);y(a,"change",this.Ti,this)};
function vx(a,b){a.C||(a.C=!0,a.b(new wx("modifystart",a.s,b)))}function xx(a,b){yx(a,b);a.f&&0===a.s.rc()&&(a.B.ba().Ib(a.f),a.f=null);Ja(b,"change",a.Ti,a)}function yx(a,b){a=a.a;var c=[];a.forEach(function(a){b===a.feature&&c.push(a)});for(var d=c.length-1;0<=d;--d)a.remove(c[d])}k.Na=function(a){this.f&&!a&&(this.B.ba().Ib(this.f),this.f=null);Fn.prototype.Na.call(this,a)};k.setMap=function(a){this.B.setMap(a);Fn.prototype.setMap.call(this,a)};k.qo=function(a){this.Lg(a.element)};
k.Ti=function(a){this.o||(a=a.target,xx(this,a),this.Lg(a))};k.ro=function(a){xx(this,a.element)};k.wo=function(a,b){var c=b.U();a={feature:a,geometry:b,sa:[c,c]};this.a.Ha(b.D(),a)};k.uo=function(a,b){var c=b.U(),d;var e=0;for(d=c.length;e<d;++e){var f=c[e];f={feature:a,geometry:b,depth:[e],index:e,sa:[f,f]};this.a.Ha(b.D(),f)}};k.Ui=function(a,b){var c=b.U(),d;var e=0;for(d=c.length-1;e<d;++e){var f=c.slice(e,e+2);var g={feature:a,geometry:b,index:e,sa:f};this.a.Ha(hb(f),g)}};
k.to=function(a,b){var c=b.U(),d,e;var f=0;for(e=c.length;f<e;++f){var g=c[f];var h=0;for(d=g.length-1;h<d;++h){var l=g.slice(h,h+2);var m={feature:a,geometry:b,depth:[f],index:h,sa:l};this.a.Ha(hb(l),m)}}};k.xo=function(a,b){var c=b.U(),d,e;var f=0;for(e=c.length;f<e;++f){var g=c[f];var h=0;for(d=g.length-1;h<d;++h){var l=g.slice(h,h+2);var m={feature:a,geometry:b,depth:[f],index:h,sa:l};this.a.Ha(hb(l),m)}}};
k.vo=function(a,b){var c=b.U(),d,e,f;var g=0;for(f=c.length;g<f;++g){var h=c[g];var l=0;for(e=h.length;l<e;++l){var m=h[l];var n=0;for(d=m.length-1;n<d;++n){var p=m.slice(n,n+2);var q={feature:a,geometry:b,depth:[l,g],index:n,sa:p};this.a.Ha(hb(p),q)}}}};k.Lr=function(a,b){var c=b.va(),d={feature:a,geometry:b,index:0,sa:[c,c]};a={feature:a,geometry:b,index:1,sa:[c,c]};d.lg=a.lg=[d,a];this.a.Ha(sb(c),d);this.a.Ha(b.D(),a)};
k.so=function(a,b){var c=b.a;for(b=0;b<c.length;++b)this.aa[c[b].T()].call(this,a,c[b])};function zx(a,b){var c=a.f;c?c.V().ua(b):(c=new E(new L(b)),a.f=c,a.B.ba().Eb(c))}function Ax(a,b){return a.index-b.index}
function px(a){if(!this.rb(a))return!1;ux(this,a.pixel,a.map);var b=a.map.ab(a.pixel);this.j.length=0;this.C=!1;var c=this.f;if(c){var d=[];c=c.V().U();var e=hb([c]);e=Zg(this.a,e);var f={};e.sort(Ax);for(var g=0,h=e.length;g<h;++g){var l=e[g],m=l.sa,n=x(l.feature),p=l.depth;p&&(n+="-"+p.join("-"));f[n]||(f[n]=Array(2));if("Circle"===l.geometry.T()&&1===l.index)m=Bx(b,l),td(m,c)&&!f[n][0]&&(this.j.push([l,0]),f[n][0]=l);else if(td(m[0],c)&&!f[n][0])this.j.push([l,0]),f[n][0]=l;else if(td(m[1],c)&&
!f[n][1]){if("LineString"!==l.geometry.T()&&"MultiLineString"!==l.geometry.T()||!f[n][0]||0!==f[n][0].index)this.j.push([l,1]),f[n][1]=l}else x(m)in this.wa&&!f[n][0]&&!f[n][1]&&d.push([l,c])}d.length&&vx(this,a);for(a=d.length-1;0<=a;--a)this.Sm.apply(this,d[a])}return!!this.f}
function qx(a){this.G=!1;vx(this,a);a=a.coordinate;for(var b=0,c=this.j.length;b<c;++b){var d=this.j[b],e=d[0],f=e.depth,g=e.geometry,h=e.sa;for(d=d[1];a.length<g.ya();)a.push(h[d][a.length]);switch(g.T()){case "Point":var l=a;h[0]=h[1]=a;break;case "MultiPoint":l=g.U();l[e.index]=a;h[0]=h[1]=a;break;case "LineString":l=g.U();l[e.index+d]=a;h[d]=a;break;case "MultiLineString":l=g.U();l[f[0]][e.index+d]=a;h[d]=a;break;case "Polygon":l=g.U();l[f[0]][e.index+d]=a;h[d]=a;break;case "MultiPolygon":l=g.U();
l[f[1]][f[0]][e.index+d]=a;h[d]=a;break;case "Circle":h[0]=h[1]=a,0===e.index?(this.o=!0,g.cb(a)):(this.o=!0,g.qd(xd(g.va(),a))),this.o=!1}l&&(e=g,f=l,this.o=!0,e.ua(f),this.o=!1)}zx(this,a)}function sx(a){for(var b,c,d=this.j.length-1;0<=d;--d)if(b=this.j[d][0],c=b.geometry,"Circle"===c.T()){var e=c.va(),f=b.lg[0];b=b.lg[1];f.sa[0]=f.sa[1]=e;b.sa[0]=b.sa[1]=e;Xg(this.a,sb(e),f);Xg(this.a,c.D(),b)}else Xg(this.a,hb(b.sa),b);this.C&&(this.b(new wx("modifyend",this.s,a)),this.C=!1);return!1}
function rx(a){if(!(a instanceof nm))return!0;this.N=a;var b;gn(a.map.Z())[1]||"pointermove"!=a.type||this.v||(this.na=a.pixel,ux(this,a.pixel,a.map));this.f&&this.Ua(a)&&(b="singleclick"==a.type&&this.G?!0:this.Mj());"singleclick"==a.type&&(this.G=!1);return Gn.call(this,a)&&!b}
function ux(a,b,c){function d(a,b){return Cx(e,a)-Cx(e,b)}var e=c.ab(b),f=kb(sb(e),c.Z().Ia()*a.$);f=Zg(a.a,f);if(0<f.length){f.sort(d);var g=f[0],h=g.sa,l=Bx(e,g),m=c.Pa(l),n=xd(b,m);if(n<=a.$){b={};if("Circle"===g.geometry.T()&&1===g.index)a.la=!0,zx(a,l);else for(n=c.Pa(h[0]),g=c.Pa(h[1]),c=wd(m,n),m=wd(m,g),n=Math.sqrt(Math.min(c,m)),a.la=n<=a.$,a.la&&(l=c>m?h[1]:h[0]),zx(a,l),m=1,c=f.length;m<c;++m)if(l=f[m].sa,td(h[0],l[0])&&td(h[1],l[1])||td(h[0],l[1])&&td(h[1],l[0]))b[x(l)]=!0;else break;
b[x(h)]=!0;a.wa=b;return}}a.f&&(a.B.ba().Ib(a.f),a.f=null)}function Cx(a,b){var c=b.geometry;return"Circle"===c.T()&&1===b.index?(a=wd(c.va(),a),c=Math.sqrt(a)-c.Gd(),c*c):yd(a,b.sa)}function Bx(a,b){var c=b.geometry;return"Circle"===c.T()&&1===b.index?c.Fb(a):qd(a,b.sa)}
k.Sm=function(a,b){for(var c=a.sa,d=a.feature,e=a.geometry,f=a.depth,g=a.index,h;b.length<e.ya();)b.push(0);switch(e.T()){case "MultiLineString":h=e.U();h[f[0]].splice(g+1,0,b);break;case "Polygon":h=e.U();h[f[0]].splice(g+1,0,b);break;case "MultiPolygon":h=e.U();h[f[1]][f[0]].splice(g+1,0,b);break;case "LineString":h=e.U();h.splice(g+1,0,b);break;default:return}this.o=!0;e.ua(h);this.o=!1;h=this.a;h.remove(a);Dx(this,e,g,f,1);a={sa:[c[0],b],feature:d,geometry:e,depth:f,index:g};h.Ha(hb(a.sa),a);
this.j.push([a,1]);b={sa:[b,c[1]],feature:d,geometry:e,depth:f,index:g+1};h.Ha(hb(b.sa),b);this.j.push([b,0]);this.G=!0};
k.Mj=function(){if(this.N&&"pointerdrag"!=this.N.type){var a=this.N;vx(this,a);var b=this.j,c={},d,e;for(e=b.length-1;0<=e;--e){var f=b[e];var g=f[0];var h=x(g.feature);g.depth&&(h+="-"+g.depth.join("-"));h in c||(c[h]={});0===f[1]?(c[h].right=g,c[h].index=g.index):1==f[1]&&(c[h].left=g,c[h].index=g.index+1)}for(h in c){var l=c[h].right;var m=c[h].left;e=c[h].index;var n=e-1;g=void 0!==m?m:l;0>n&&(n=0);f=g.geometry;var p=d=f.U();var q=!1;switch(f.T()){case "MultiLineString":2<d[g.depth[0]].length&&
(d[g.depth[0]].splice(e,1),q=!0);break;case "LineString":2<d.length&&(d.splice(e,1),q=!0);break;case "MultiPolygon":p=p[g.depth[1]];case "Polygon":p=p[g.depth[0]],4<p.length&&(e==p.length-1&&(e=0),p.splice(e,1),q=!0,0===e&&(p.pop(),p.push(p[0]),n=p.length-1))}q&&(q=f,this.o=!0,q.ua(d),this.o=!1,d=[],void 0!==m&&(this.a.remove(m),d.push(m.sa[0])),void 0!==l&&(this.a.remove(l),d.push(l.sa[1])),void 0!==m&&void 0!==l&&(m={depth:g.depth,feature:g.feature,geometry:g.geometry,index:n,sa:d},this.a.Ha(hb(m.sa),
m)),Dx(this,f,e,g.depth,-1),this.f&&(this.B.ba().Ib(this.f),this.f=null),b.length=0)}this.b(new wx("modifyend",this.s,a));this.C=!1;return!0}return!1};function Dx(a,b,c,d,e){ah(a.a,b.D(),function(a){a.geometry===b&&(void 0===d||void 0===a.depth||fd(a.depth,d))&&a.index>c&&(a.index+=e)})}function tx(){var a=lj();return function(){return a.Point}}function wx(a,b,c){Na.call(this,a);this.features=b;this.mapBrowserEvent=c}v(wx,Na);function Ex(a){qn.call(this,{handleEvent:Fx});a=a?a:{};this.C=a.condition?a.condition:zn;this.v=a.addCondition?a.addCondition:Bd;this.B=a.removeCondition?a.removeCondition:Bd;this.G=a.toggleCondition?a.toggleCondition:Bn;this.o=a.multi?a.multi:!1;this.l=a.filter?a.filter:Ad;this.j=a.hitTolerance?a.hitTolerance:0;this.f=new N({source:new J({useSpatialIndex:!1,features:a.features,wrapX:a.wrapX}),style:a.style?a.style:Gx(),updateWhileAnimating:!0,updateWhileInteracting:!0});if(a.layers)if("function"===
typeof a.layers)a=a.layers;else{var b=a.layers;a=function(a){return bd(b,a)}}else a=Ad;this.s=a;this.a={};a=this.f.ba().i;y(a,"add",this.yo,this);y(a,"remove",this.Co,this)}v(Ex,qn);k=Ex.prototype;k.zo=function(){return this.f.ba().i};k.Ao=function(){return this.j};k.Bo=function(a){a=x(a);return this.a[a]};
function Fx(a){if(!this.C(a))return!0;var b=this.v(a),c=this.B(a),d=this.G(a),e=!b&&!c&&!d,f=a.map,g=this.f.ba().i,h=[],l=[];if(e){xa(this.a);f.Ue(a.pixel,function(a,b){if(this.l(a,b))return l.push(a),a=x(a),this.a[a]=b,!this.o}.bind(this),{layerFilter:this.s,hitTolerance:this.j});for(e=g.rc()-1;0<=e;--e){f=g.item(e);var m=l.indexOf(f);-1<m?l.splice(m,1):(g.remove(f),h.push(f))}0!==l.length&&g.Fg(l)}else{f.Ue(a.pixel,function(a,e){if(this.l(a,e))return!b&&!d||bd(g.a,a)?(c||d)&&bd(g.a,a)&&(h.push(a),
e=x(a),delete this.a[e]):(l.push(a),a=x(a),this.a[a]=e),!this.o}.bind(this),{layerFilter:this.s,hitTolerance:this.j});for(e=h.length-1;0<=e;--e)g.remove(h[e]);g.Fg(l)}(0<l.length||0<h.length)&&this.b(new Hx(Ix,l,h,a));return yn(a)}k.Do=function(a){this.j=a};k.setMap=function(a){var b=this.R,c=this.f.ba().i;b&&c.forEach(b.ik,b);qn.prototype.setMap.call(this,a);this.f.setMap(a);a&&c.forEach(a.ck,a)};
function Gx(){var a=lj();dd(a.Polygon,a.LineString);dd(a.GeometryCollection,a.LineString);return function(b){return b.V()?a[b.V().T()]:null}}k.yo=function(a){var b=this.R;b&&b.ck(a.element)};k.Co=function(a){var b=this.R;b&&b.ik(a.element)};function Hx(a,b,c,d){Na.call(this,a);this.selected=b;this.deselected=c;this.mapBrowserEvent=d}v(Hx,Na);var Ix="select";function Jx(a){Fn.call(this,{handleEvent:Kx,handleDownEvent:Ad,handleUpEvent:Lx});a=a?a:{};this.o=a.source?a.source:null;this.$=void 0!==a.vertex?a.vertex:!0;this.G=void 0!==a.edge?a.edge:!0;this.j=a.features?a.features:null;this.la=[];this.C={};this.N={};this.s={};this.B=null;this.f=void 0!==a.pixelTolerance?a.pixelTolerance:10;this.na=Mx.bind(this);this.a=new Wg;this.aa={Point:this.Jo,LineString:this.Xi,LinearRing:this.Xi,Polygon:this.Ko,MultiPoint:this.Ho,MultiLineString:this.Go,MultiPolygon:this.Io,
GeometryCollection:this.Fo}}v(Jx,Fn);k=Jx.prototype;k.Eb=function(a,b){b=void 0!==b?b:!0;var c=x(a),d=a.V();if(d){var e=this.aa[d.T()];e&&(this.N[c]=d.D(ib()),e.call(this,a,d))}b&&(this.C[c]=y(a,"change",this.Eo,this))};k.kl=function(a){this.Eb(a)};k.ll=function(a){this.Ib(a)};k.Vi=function(a){if(a instanceof Pj)var b=a.feature;else a instanceof fb&&(b=a.element);this.Eb(b)};k.Wi=function(a){if(a instanceof Pj)var b=a.feature;else a instanceof fb&&(b=a.element);this.Ib(b)};
k.Eo=function(a){a=a.target;if(this.v){var b=x(a);b in this.s||(this.s[b]=a)}else this.jk(a)};k.Ib=function(a,b){b=void 0!==b?b:!0;var c=x(a),d=this.N[c];if(d){var e=this.a,f=[];ah(e,d,function(b){a===b.feature&&f.push(b)});for(d=f.length-1;0<=d;--d)e.remove(f[d])}b&&(Ca(this.C[c]),delete this.C[c])};
k.setMap=function(a){var b=this.R,c=this.la,d;this.j?d=this.j:this.o&&(d=this.o.Rc());b&&(c.forEach(Ca),c.length=0,d.forEach(this.ll,this));Fn.prototype.setMap.call(this,a);a&&(this.j?c.push(y(this.j,"add",this.Vi,this),y(this.j,"remove",this.Wi,this)):this.o&&c.push(y(this.o,"addfeature",this.Vi,this),y(this.o,"removefeature",this.Wi,this)),d.forEach(this.kl,this))};k.sd=Bd;k.jk=function(a){this.Ib(a,!1);this.Eb(a,!1)};
k.Fo=function(a,b){var c=b.a;for(b=0;b<c.length;++b)this.aa[c[b].T()].call(this,a,c[b])};k.Xi=function(a,b){b=b.U();var c;var d=0;for(c=b.length-1;d<c;++d){var e=b.slice(d,d+2);var f={feature:a,sa:e};this.a.Ha(hb(e),f)}};k.Go=function(a,b){b=b.U();var c,d;var e=0;for(d=b.length;e<d;++e){var f=b[e];var g=0;for(c=f.length-1;g<c;++g){var h=f.slice(g,g+2);var l={feature:a,sa:h};this.a.Ha(hb(h),l)}}};
k.Ho=function(a,b){var c=b.U(),d;var e=0;for(d=c.length;e<d;++e){var f=c[e];f={feature:a,sa:[f,f]};this.a.Ha(b.D(),f)}};k.Io=function(a,b){b=b.U();var c,d,e;var f=0;for(e=b.length;f<e;++f){var g=b[f];var h=0;for(d=g.length;h<d;++h){var l=g[h];var m=0;for(c=l.length-1;m<c;++m){var n=l.slice(m,m+2);var p={feature:a,sa:n};this.a.Ha(hb(n),p)}}}};k.Jo=function(a,b){var c=b.U();a={feature:a,sa:[c,c]};this.a.Ha(b.D(),a)};
k.Ko=function(a,b){b=b.U();var c,d;var e=0;for(d=b.length;e<d;++e){var f=b[e];var g=0;for(c=f.length-1;g<c;++g){var h=f.slice(g,g+2);var l={feature:a,sa:h};this.a.Ha(hb(h),l)}}};
function Kx(a){var b=a.pixel,c=a.coordinate;var d=a.map;var e=d.ab([b[0]-this.f,b[1]+this.f]);var f=d.ab([b[0]+this.f,b[1]-this.f]);e=hb([e,f]);var g=Zg(this.a,e);e=!1;var h=null;f=null;if(0<g.length){this.B=c;g.sort(this.na);g=g[0].sa;if(this.$&&!this.G){c=d.Pa(g[0]);var l=d.Pa(g[1]);c=wd(b,c);b=wd(b,l);l=Math.sqrt(Math.min(c,b));if(l=l<=this.f)e=!0,h=c>b?g[1]:g[0],f=d.Pa(h)}else this.G&&(h=qd(c,g),f=d.Pa(h),xd(b,f)<=this.f&&(e=!0,this.$&&(c=d.Pa(g[0]),l=d.Pa(g[1]),c=wd(f,c),b=wd(f,l),l=Math.sqrt(Math.min(c,
b)),l=l<=this.f)))&&(h=c>b?g[1]:g[0],f=d.Pa(h));e&&(f=[Math.round(f[0]),Math.round(f[1])])}d=h;e&&(a.coordinate=d.slice(0,2),a.pixel=f);return Gn.call(this,a)}function Lx(){var a=za(this.s);a.length&&(a.forEach(this.jk,this),this.s={});return!1}function Mx(a,b){return yd(this.B,a.sa)-yd(this.B,b.sa)};function Nx(a){Fn.call(this,{handleDownEvent:Ox,handleDragEvent:Px,handleMoveEvent:Qx,handleUpEvent:Rx});a=a?a:{};this.f=void 0;this.a=null;this.o=void 0!==a.features?a.features:null;if(a.layers)if("function"===typeof a.layers)var b=a.layers;else{var c=a.layers;b=function(a){return bd(c,a)}}else b=Ad;this.B=b;this.s=a.hitTolerance?a.hitTolerance:0;this.j=null;y(this,Ya("active"),this.C,this)}v(Nx,Fn);
function Ox(a){this.j=Sx(this,a.pixel,a.map);if(!this.a&&this.j){this.a=a.coordinate;Qx.call(this,a);var b=this.o||new bb([this.j]);this.b(new Tx("translatestart",b,a.coordinate));return!0}return!1}function Rx(a){if(this.a){this.a=null;Qx.call(this,a);var b=this.o||new bb([this.j]);this.b(new Tx("translateend",b,a.coordinate));return!0}return!1}
function Px(a){if(this.a){a=a.coordinate;var b=a[0]-this.a[0],c=a[1]-this.a[1],d=this.o||new bb([this.j]);d.forEach(function(a){var d=a.V();d.translate(b,c);a.Wa(d)});this.a=a;this.b(new Tx("translating",d,a))}}function Qx(a){var b=a.map.Jc();Sx(this,a.pixel,a.map)?(this.f=void 0!==this.f?this.f:b.style.cursor,b.style.cursor=this.a?"-webkit-grabbing":"-webkit-grab",b.style.cursor=this.a?"grabbing":"grab"):void 0!==this.f&&(b.style.cursor=this.f,this.f=void 0)}
function Sx(a,b,c){return c.Ue(b,function(a){if(!this.o||bd(this.o.a,a))return a}.bind(a),{layerFilter:a.B,hitTolerance:a.s})}Nx.prototype.G=function(){return this.s};Nx.prototype.N=function(a){this.s=a};Nx.prototype.setMap=function(a){var b=this.R;Fn.prototype.setMap.call(this,a);Ux(this,b)};Nx.prototype.C=function(){Ux(this,null)};function Ux(a,b){var c=a.R,d=a.c();c&&d||void 0===a.f||(c||(c=b),c.Jc().style.cursor=a.f,a.f=void 0)}
function Tx(a,b,c){Na.call(this,a);this.features=b;this.coordinate=c}v(Tx,Na);function X(a){a=a?a:{};var b=wa({},a);delete b.gradient;delete b.radius;delete b.blur;delete b.shadow;delete b.weight;N.call(this,b);this.j=null;this.X=void 0!==a.shadow?a.shadow:250;this.aa=void 0;this.N=null;y(this,Ya(Vx),this.qm,this);this.Uj(a.gradient?a.gradient:Wx);this.Oj(void 0!==a.blur?a.blur:15);this.qd(void 0!==a.radius?a.radius:8);y(this,Ya(Xx),this.zg,this);y(this,Ya(Yx),this.zg,this);this.zg();var c=a.weight?a.weight:"weight",d;"string"===typeof c?d=function(a){return a.get(c)}:d=c;
this.f(function(a){a=d(a);a=void 0!==a?Mb(a,0,1):1;var b=255*a|0,c=this.N[b];c||(c=[new gj({image:new ql({opacity:a,src:this.aa})})],this.N[b]=c);return c}.bind(this));this.set(Bl,null);y(this,"render",this.Hm,this)}v(X,N);var Wx=["#00f","#0ff","#0f0","#ff0","#f00"];k=X.prototype;k.Yh=function(){return this.get(Xx)};k.di=function(){return this.get(Vx)};k.Zi=function(){return this.get(Yx)};
k.qm=function(){for(var a=this.di(),b=kd(1,256),c=b.createLinearGradient(0,0,1,256),d=1/(a.length-1),e=0,f=a.length;e<f;++e)c.addColorStop(e*d,a[e]);b.fillStyle=c;b.fillRect(0,0,1,256);this.j=b.getImageData(0,0,1,256).data};k.zg=function(){var a=this.Zi(),b=this.Yh(),c=a+b+1,d=2*c;d=kd(d,d);d.shadowOffsetX=d.shadowOffsetY=this.X;d.shadowBlur=b;d.shadowColor="#000";d.beginPath();b=c-this.X;d.arc(b,b,a,0,2*Math.PI,!0);d.fill();this.aa=d.canvas.toDataURL();this.N=Array(256);this.u()};
k.Hm=function(a){a=a.context;var b=a.canvas;b=a.getImageData(0,0,b.width,b.height);var c=b.data,d,e;var f=0;for(d=c.length;f<d;f+=4)if(e=4*c[f+3])c[f]=this.j[e],c[f+1]=this.j[e+1],c[f+2]=this.j[e+2];a.putImageData(b,0,0)};k.Oj=function(a){this.set(Xx,a)};k.Uj=function(a){this.set(Vx,a)};k.qd=function(a){this.set(Yx,a)};var Xx="blur",Vx="gradient",Yx="radius";function Zx(a){this.c=null;cf.call(this,a);this.G=!1;this.aa=qe();this.X="vector"==a.s?1:0}v(Zx,cf);var $x={image:lf,hybrid:["Polygon","LineString"]},ay={hybrid:["Image","Text"],vector:lf};k=Zx.prototype;k.Jd=function(a,b){var c=this.a,d=c.g;this.na!=d&&(this.i.length=0,c=c.s,this.c||"vector"==c||(this.c=kd()),this.c&&"vector"==c&&(this.c=null));this.na=d;return cf.prototype.Jd.apply(this,arguments)};
k.kg=function(a,b,c,d,e,f,g,h){var l=a,m=this.a,n=b.pixelRatio,p=b.viewState.projection,q=m.g,t=m.get(Bl)||null,u=l.g;if(u.ge||u.If!=q||u.mh!=t){u.Qd=null;u.ge=!1;var w=m.ba(),z=w.tileGrid,D=l.Ka,B=l.j,S=z.Ra(D[0]),Ua;if("tile-pixels"==B.Pb()){var ya=Ua=w.vb();z=ff(z.gb(D[0]));ya=[0,0,z[0]*ya,z[1]*ya]}else if(Ua=S,ya=z.Ya(D),!Pc(p,B)){var Da=!0;l.Ig(p)}u.ge=!1;w=new ik(0,ya,Ua,w.f,m.i);n=sk(Ua,n);Ua=l.f;t&&t!==u.mh&&Ua.sort(t);ya=0;for(z=Ua.length;ya<z;++ya){D=Ua[ya];Da&&D.V().transform(B,p);var C=
void 0,pa=D.Nc();pa?C=pa.call(D,S):(pa=m.a)&&(C=pa(D,S));if(C){Array.isArray(C)||(C=[C]);pa=n;var $a=w;if(C){var ra=!1;if(Array.isArray(C))for(var dc=0,Pa=C.length;dc<Pa;++dc)ra=tk($a,D,C[dc],pa,this.fj,this)||ra;else ra=tk($a,D,C,pa,this.fj,this)||ra;D=ra}else D=!1;this.G=this.G||D;u.ge=u.ge||D}}mk(w);u.If=q;u.mh=t;u.Qd=w;u.resolution=NaN}this.c&&(q=b,B=this.a,m=l.g,t=B.g,(p=$x[B.s])&&m.nh!==t&&(m.nh=t,Da=l.Ka,u=l.Ka[0],t=q.pixelRatio,S=B.ba(),w=S.tileGrid,n=S.vb(),B=re(this.aa),"tile-pixels"==l.j.Pb()?
(Da=t/n,xe(B,Da,Da)):(n=t/w.Ra(u),Da=w.Ya(Da,this.o),xe(B,n,-n),ye(B,-Da[0],-Da[3])),l.c||(l.c=kd()),l=l.c,q=S.ne(u,t,q.viewState.projection),l.canvas.width=q[0],l.canvas.height=q[1],m.Qd.i(l,t,B,0,{},p)),cf.prototype.kg.apply(this,arguments))};
k.Ga=function(a,b,c,d,e){var f=b.viewState.resolution;b=b.viewState.rotation;c=void 0==c?0:c;var g=this.a,h={},l=this.i,m=g.ba(),n=m.tileGrid,p;var q=0;for(p=l.length;q<p;++q){var t=l[q];var u=t.Ka;var w=m.tileGrid.Ya(u,this.o);if(nb(kb(w,c*f),a)){"tile-pixels"===t.j.Pb()?(w=Bb(w),f=m.vb(),u=n.Ra(u[0])/f,u=[(a[0]-w[0])/u,(w[1]-a[1])/u]):u=a;t=t.g.Qd;var z=z||t.Ga(u,f,b,c,{},function(a){var b=x(a).toString();if(!(b in h))return h[b]=!0,d.call(e,a,g)})}}return z};k.fj=function(){Pe(this)};
k.Cf=function(a,b,c){var d=ay[this.a.s];if(d){var e=b.pixelRatio,f=b.viewState.rotation,g=b.size,h=Math.round(e*g[0]/2);g=Math.round(e*g[1]/2);for(var l=this.i,m=[],n=[],p=l.length-1;0<=p;--p){var q=l[p];var t=q;var u=b;if("tile-pixels"==t.j.Pb()){var w=this.a.ba(),z=w.tileGrid,D=t.Ka;w=z.Ra(D[0])/w.vb();t=u.viewState;var B=u.pixelRatio,S=t.resolution/B;D=z.Ya(D,this.o);z=t.center;D=Bb(D);u=u.size;u=ze(this.aa,Math.round(B*u[0]/2),Math.round(B*u[1]/2),w/S,w/S,t.rotation,(D[0]-z[0])/w,(z[1]-D[1])/
w)}else u=af(this,u,0);w=pk(q.g.Qd,u);t=q.Ka[0];a.save();a.globalAlpha=c.opacity;Gd(a,-f,h,g);B=0;for(S=m.length;B<S;++B)z=m[B],t<n[B]&&(a.beginPath(),a.moveTo(w[0],w[1]),a.lineTo(w[2],w[3]),a.lineTo(w[4],w[5]),a.lineTo(w[6],w[7]),a.moveTo(z[6],z[7]),a.lineTo(z[4],z[5]),a.lineTo(z[2],z[3]),a.lineTo(z[0],z[1]),a.clip());q.g.Qd.i(a,e,u,f,{},d);a.restore();m.push(w);n.push(t)}}cf.prototype.Cf.apply(this,arguments)};function Y(a){a=a?a:{};var b=wa({},a);delete b.preload;delete b.useInterimTilesOnError;N.call(this,b);this.bj(a.preload?a.preload:0);this.cj(a.useInterimTilesOnError?a.useInterimTilesOnError:!0);gb(void 0==a.renderMode||"image"==a.renderMode||"hybrid"==a.renderMode||"vector"==a.renderMode,28);this.s=a.renderMode||"hybrid"}v(Y,N);k=Y.prototype;k.Yd=function(a){var b=null;"canvas"===a.T()&&(b=new Zx(this));return b};k.ke=function(){return this.get("preload")};k.oe=function(){return this.get("useInterimTilesOnError")};
k.bj=function(a){this.set("preload",a)};k.cj=function(a){this.set("useInterimTilesOnError",a)};function by(a,b,c,d){function e(){delete window[g];f.parentNode.removeChild(f)}var f=document.createElement("script"),g="olc_"+x(b);f.async=!0;f.src=a+(-1==a.indexOf("?")?"?":"&")+(d||"callback")+"="+g;var h=setTimeout(function(){e();c&&c()},1E4);window[g]=function(a){clearTimeout(h);e();b(a)};document.getElementsByTagName("head")[0].appendChild(f)};function cy(a){this.B=void 0!==a.hidpi?a.hidpi:!1;A.call(this,{cacheSize:a.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:Gc("EPSG:3857"),reprojectionErrorThreshold:a.reprojectionErrorThreshold,state:"loading",tileLoadFunction:a.tileLoadFunction,tilePixelRatio:this.B?2:1,wrapX:void 0!==a.wrapX?a.wrapX:!0});this.N=void 0!==a.culture?a.culture:"en-us";this.v=void 0!==a.maxZoom?a.maxZoom:-1;this.i=a.key;this.o=a.imagerySet;by("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.o+"?uriScheme=https&include=ImageryProviders&key="+
this.i,this.la.bind(this),void 0,"jsonp")}v(cy,A);var dy=new ui({html:'<a class="ol-attribution-bing-tos" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'});cy.prototype.X=function(){return this.i};cy.prototype.$=function(){return this.o};
cy.prototype.la=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)xi(this,"error");else{var b=a.brandLogoUri;-1==b.indexOf("https")&&(b=b.replace("http","https"));var c=a.resourceSets[0].resources[0],d=-1==this.v?c.zoomMax:this.v;a=ri(this.c);var e=ti({extent:a,minZoom:c.zoomMin,maxZoom:d,tileSize:(c.imageWidth==c.imageHeight?c.imageWidth:[c.imageWidth,c.imageHeight])/this.vb()});
this.tileGrid=e;var f=this.N,g=this.B;this.tileUrlFunction=ji(c.imageUrlSubdomains.map(function(a){var b=[0,0,0],d=c.imageUrl.replace("{subdomain}",a).replace("{culture}",f);return function(a){if(a)return fi(a[0],a[1],-a[2]-1,b),a=d,g&&(a+="&dpi=d1&device=mobile"),a.replace("{quadkey}",gi(b))}}));if(c.imageryProviders){var h=Fc(Gc("EPSG:4326"),this.c);a=c.imageryProviders.map(function(a){var b=a.attribution,c={};a.coverageAreas.forEach(function(a){var b=a.zoomMin,f=Math.min(a.zoomMax,d);a=a.bbox;
a=Lb([a[1],a[0],a[3],a[2]],h);var g;for(g=b;g<=f;++g){var l=g.toString();b=We(e,a,g);l in c?c[l].push(b):c[l]=[b]}});return new ui({html:b,tileRanges:c})});a.push(dy);this.za(a)}this.C=b;xi(this,"ready")}};function ey(a){a=a||{};var b=void 0!==a.projection?a.projection:"EPSG:3857",c=void 0!==a.tileGrid?a.tileGrid:ti({extent:ri(b),maxZoom:a.maxZoom,minZoom:a.minZoom,tileSize:a.tileSize});A.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:a.opaque,projection:b,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,
wrapX:void 0!==a.wrapX?a.wrapX:!0})}v(ey,A);function fy(a){this.v=a.account;this.B=a.map||"";this.i=a.config||{};this.o={};ey.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,maxZoom:void 0!==a.maxZoom?a.maxZoom:18,minZoom:a.minZoom,projection:a.projection,state:"loading",wrapX:a.wrapX});gy(this)}v(fy,ey);k=fy.prototype;k.wl=function(){return this.i};k.Hr=function(a){wa(this.i,a);gy(this)};k.hr=function(a){this.i=a||{};gy(this)};
function gy(a){var b=JSON.stringify(a.i);if(a.o[b])hy(a,a.o[b]);else{var c="https://"+a.v+".cartodb.com/api/v1/map";a.B&&(c+="/named/"+a.B);var d=new XMLHttpRequest;d.addEventListener("load",a.sm.bind(a,b));d.addEventListener("error",a.rm.bind(a));d.open("POST",c);d.setRequestHeader("Content-type","application/json");d.send(JSON.stringify(a.i))}}
k.sm=function(a,b){b=b.target;if(!b.status||200<=b.status&&300>b.status){try{var c=JSON.parse(b.responseText)}catch(d){xi(this,"error");return}hy(this,c);this.o[a]=c;xi(this,"ready")}else xi(this,"error")};k.rm=function(){xi(this,"error")};function hy(a,b){a.pb("https://"+b.cdn_url.https+"/"+a.v+"/api/v1/map/"+b.layergroupid+"/{z}/{x}/{y}.png")};function O(a){J.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,wrapX:a.wrapX});this.N=void 0;this.B=void 0!==a.distance?a.distance:20;this.na=!1;this.G=[];this.Va=a.geometryFunction||function(a){a=a.V();gb(a instanceof L,10);return a};this.v=a.source;this.v.H("change",O.prototype.hh,this)}v(O,J);k=O.prototype;k.Po=function(){return this.B};k.vc=function(){return this.v};k.qe=function(a,b,c){this.v.qe(a,b,c);b!==this.N&&(this.clear(),this.N=b,iy(this),this.yd(this.G))};
k.Qo=function(a){this.B=a;this.hh()};k.tr=function(a){(this.na=a)||this.hh()};k.hh=function(){this.na||(this.clear(),iy(this),this.yd(this.G),this.u())};function iy(a){if(void 0!==a.N){a.G.length=0;for(var b=ib(),c=a.B*a.N,d=a.v.Rc(),e={},f=0,g=d.length;f<g;f++){var h=d[f];x(h).toString()in e||!(h=a.Va(h))||(h=h.U(),sb(h,b),kb(b,c,b),h=a.v.qg(b),h=h.filter(function(a){a=x(a).toString();return a in e?!1:e[a]=!0}),a.G.push(jy(a,h)))}}}
function jy(a,b){for(var c=[0,0],d=b.length-1;0<=d;--d){var e=a.Va(b[d]);e?pd(c,e.U()):b.splice(d,1)}vd(c,1/b.length);a=new E(new L(c));a.set("features",b);return a};function ky(a,b){var c=[];Object.keys(b).forEach(function(a){null!==b[a]&&void 0!==b[a]&&c.push(a+"="+encodeURIComponent(b[a]))});var d=c.join("&");a=a.replace(/[?&]$/,"");a=-1===a.indexOf("?")?a+"?":a+"&";return a+d};function ly(a){a=a||{};yk.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.X=void 0!==a.crossOrigin?a.crossOrigin:null;this.$=void 0!==a.hidpi?a.hidpi:!0;this.i=a.url;this.f=void 0!==a.imageLoadFunction?a.imageLoadFunction:Ek;this.B=a.params||{};this.O=null;this.s=[0,0];this.N=0;this.G=void 0!==a.ratio?a.ratio:1.5}v(ly,yk);k=ly.prototype;k.So=function(){return this.B};
k.ad=function(a,b,c,d){if(void 0===this.i)return null;b=zk(this,b);c=this.$?c:1;var e=this.O;if(e&&this.N==this.g&&e.resolution==b&&e.a==c&&pb(e.D(),a))return e;e={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};wa(e,this.B);a=a.slice();var f=(a[0]+a[2])/2,g=(a[1]+a[3])/2;if(1!=this.G){var h=this.G*Eb(a)/2,l=this.G*Fb(a)/2;a[0]=f-h;a[1]=g-l;a[2]=f+h;a[3]=g+l}h=b/c;l=Math.ceil(Eb(a)/h);var m=Math.ceil(Fb(a)/h);a[0]=f-h*l/2;a[2]=f+h*l/2;a[1]=g-h*m/2;a[3]=g+h*m/2;this.s[0]=l;this.s[1]=m;f=a;g=this.s;h=c;d=
d.tb.split(":").pop();e.SIZE=g[0]+","+g[1];e.BBOX=f.join(",");e.BBOXSR=d;e.IMAGESR=d;e.DPI=Math.round(90*h);d=this.i;f=d.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");f==d&&gb(!1,50);e=ky(f,e);this.O=new Bw(a,b,c,this.j,e,this.X,this.f);this.N=this.g;y(this.O,"change",this.l,this);return this.O};k.Ro=function(){return this.f};k.To=function(){return this.i};k.Uo=function(a){this.O=null;this.f=a;this.u()};
k.Vo=function(a){a!=this.i&&(this.i=a,this.O=null,this.u())};k.Wo=function(a){wa(this.B,a);this.O=null;this.u()};function my(a){yk.call(this,{projection:a.projection,resolutions:a.resolutions});this.X=void 0!==a.crossOrigin?a.crossOrigin:null;this.s=void 0!==a.displayDpi?a.displayDpi:96;this.f=a.params||{};this.N=a.url;this.i=void 0!==a.imageLoadFunction?a.imageLoadFunction:Ek;this.$=void 0!==a.hidpi?a.hidpi:!0;this.na=void 0!==a.metersPerUnit?a.metersPerUnit:1;this.B=void 0!==a.ratio?a.ratio:1;this.wa=void 0!==a.useOverlay?a.useOverlay:!1;this.O=null;this.G=0}v(my,yk);k=my.prototype;k.Yo=function(){return this.f};
k.ad=function(a,b,c){b=zk(this,b);c=this.$?c:1;var d=this.O;if(d&&this.G==this.g&&d.resolution==b&&d.a==c&&pb(d.D(),a))return d;1!=this.B&&(a=a.slice(),Kb(a,this.B));var e=[Eb(a)/b*c,Fb(a)/b*c];if(void 0!==this.N){d=this.N;var f=Gb(a),g=this.na,h=Eb(a),l=Fb(a),m=e[0],n=e[1],p=.0254/this.s;e={OPERATION:this.wa?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.s,SETDISPLAYWIDTH:Math.round(e[0]),SETDISPLAYHEIGHT:Math.round(e[1]),
SETVIEWSCALE:n*h>m*l?h*g/(m*p):l*g/(n*p),SETVIEWCENTERX:f[0],SETVIEWCENTERY:f[1]};wa(e,this.f);d=ky(d,e);d=new Bw(a,b,c,this.j,d,this.X,this.i);y(d,"change",this.l,this)}else d=null;this.O=d;this.G=this.g;return d};k.Xo=function(){return this.i};k.$o=function(a){wa(this.f,a);this.u()};k.Zo=function(a){this.O=null;this.i=a;this.u()};function ny(a){var b=a.imageExtent,c=void 0!==a.crossOrigin?a.crossOrigin:null,d=void 0!==a.imageLoadFunction?a.imageLoadFunction:Ek;yk.call(this,{attributions:a.attributions,logo:a.logo,projection:Gc(a.projection)});this.O=new Bw(b,void 0,1,this.j,a.url,c,d);this.i=a.imageSize?a.imageSize:null;y(this.O,"change",this.l,this)}v(ny,yk);ny.prototype.ad=function(a){return Jb(a,this.O.D())?this.O:null};
ny.prototype.l=function(a){if(2==this.O.getState()){var b=this.O.D(),c=this.O.W();if(this.i){var d=this.i[0];var e=this.i[1]}else d=c.width,e=c.height;b=Math.ceil(Eb(b)/(Fb(b)/e));if(b!=d){b=kd(b,e);var f=b.canvas;b.drawImage(c,0,0,d,e,0,0,f.width,f.height);this.O.rh(f)}}yk.prototype.l.call(this,a)};function oy(a){a=a||{};yk.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.na=void 0!==a.crossOrigin?a.crossOrigin:null;this.f=a.url;this.B=void 0!==a.imageLoadFunction?a.imageLoadFunction:Ek;this.i=a.params||{};this.s=!0;py(this);this.$=a.serverType;this.wa=void 0!==a.hidpi?a.hidpi:!0;this.O=null;this.G=[0,0];this.X=0;this.N=void 0!==a.ratio?a.ratio:1.5}v(oy,yk);var qy=[101,101];k=oy.prototype;
k.fp=function(a,b,c,d){if(void 0!==this.f){var e=Hb(a,b,0,qy),f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.i.LAYERS};wa(f,this.i,d);d=Math.floor((e[3]-a[1])/b);f[this.s?"I":"X"]=Math.floor((a[0]-e[0])/b);f[this.s?"J":"Y"]=d;return ry(this,e,qy,1,Gc(c),f)}};k.hp=function(){return this.i};
k.ad=function(a,b,c,d){if(void 0===this.f)return null;b=zk(this,b);1==c||this.wa&&void 0!==this.$||(c=1);var e=b/c,f=Gb(a),g=Hb(f,e,0,[Math.ceil(Eb(a)/e),Math.ceil(Fb(a)/e)]);a=Hb(f,e,0,[Math.ceil(this.N*Eb(a)/e),Math.ceil(this.N*Fb(a)/e)]);if((f=this.O)&&this.X==this.g&&f.resolution==b&&f.a==c&&pb(f.D(),g))return f;g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};wa(g,this.i);this.G[0]=Math.round(Eb(a)/e);this.G[1]=Math.round(Fb(a)/e);d=ry(this,a,this.G,c,d,g);
this.O=new Bw(a,b,c,this.j,d,this.na,this.B);this.X=this.g;y(this.O,"change",this.l,this);return this.O};k.gp=function(){return this.B};
function ry(a,b,c,d,e,f){gb(void 0!==a.f,9);f[a.s?"CRS":"SRS"]=e.tb;"STYLES"in a.i||(f.STYLES="");if(1!=d)switch(a.$){case "geoserver":d=90*d+.5|0;f.FORMAT_OPTIONS="FORMAT_OPTIONS"in f?f.FORMAT_OPTIONS+(";dpi:"+d):"dpi:"+d;break;case "mapserver":f.MAP_RESOLUTION=90*d;break;case "carmentaserver":case "qgis":f.DPI=90*d;break;default:gb(!1,8)}f.WIDTH=c[0];f.HEIGHT=c[1];c=e.b;var g;a.s&&"ne"==c.substr(0,2)?g=[b[1],b[0],b[3],b[2]]:g=b;f.BBOX=g.join(",");return ky(a.f,f)}k.ip=function(){return this.f};
k.jp=function(a){this.O=null;this.B=a;this.u()};k.kp=function(a){a!=this.f&&(this.f=a,this.O=null,this.u())};k.lp=function(a){wa(this.i,a);py(this);this.O=null;this.u()};function py(a){a.s=0<=od(a.i.VERSION||"1.3.0")};function sy(a){a=a||{};var b;void 0!==a.attributions?b=a.attributions:b=[ty];ey.call(this,{attributions:b,cacheSize:a.cacheSize,crossOrigin:void 0!==a.crossOrigin?a.crossOrigin:"anonymous",opaque:void 0!==a.opaque?a.opaque:!0,maxZoom:void 0!==a.maxZoom?a.maxZoom:19,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileLoadFunction:a.tileLoadFunction,url:void 0!==a.url?a.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:a.wrapX})}v(sy,ey);var ty=new ui({html:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.'});(function(){var a={},b={oa:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.oa=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.es=c()}})(function(){return function g(a,b,f){function d(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(e)return e(h,!0);l=Error("Cannot find module '"+h+"'");throw l.code="MODULE_NOT_FOUND",l;}l=b[h]={oa:{}};a[h][0].call(l.oa,function(b){var e=
a[h][1][b];return d(e?e:b)},l,l.oa,g,a,b,f)}return b[h].oa}for(var e="function"==typeof require&&require,m=0;m<f.length;m++)d(f[m]);return d}({1:[function(a,b,f){a=a("./processor");f.Ak=a},{"./processor":2}],2:[function(a,b){function d(a){var b=!0;try{new ImageData(10,10)}catch(q){b=!1}return function(d){var e=d.buffers,f=d.meta,g=d.width,h=d.height,l=e.length,m=e[0].byteLength;if(d.imageOps){m=Array(l);for(d=0;d<l;++d){var n=d;var p=new Uint8ClampedArray(e[d]);var q=g,Da=h;p=b?new ImageData(p,q,
Da):{data:p,width:q,height:Da};m[n]=p}g=a(m,f).data}else{g=new Uint8ClampedArray(m);h=Array(l);n=Array(l);for(d=0;d<l;++d)h[d]=new Uint8ClampedArray(e[d]),n[d]=[0,0,0,0];for(e=0;e<m;e+=4){for(d=0;d<l;++d)p=h[d],n[d][0]=p[e],n[d][1]=p[e+1],n[d][2]=p[e+2],n[d][3]=p[e+3];d=a(n,f);g[e]=d[0];g[e+1]=d[1];g[e+2]=d[2];g[e+3]=d[3]}}return g.buffer}}function e(a,b){var e=Object.keys(a.lib||{}).map(function(b){return"var "+b+" = "+a.lib[b].toString()+";"}).concat(["var __minion__ = ("+d.toString()+")(",a.operation.toString(),
");",'self.addEventListener("message", function(event) {',"  var buffer = __minion__(event.data);","  self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]);e=URL.createObjectURL(new Blob(e,{type:"text/javascript"}));e=new Worker(e);e.addEventListener("message",b);return e}function h(a,b){var e=d(a.operation);return{postMessage:function(a){setTimeout(function(){b({data:{buffer:e(a),meta:a.meta}})},0)}}}function l(a){this.$f=!!a.Qm;var b;0===a.threads?b=0:this.$f?b=1:b=a.threads||
1;var d=[];if(b)for(var f=0;f<b;++f)d[f]=e(a,this.Jh.bind(this,f));else d[0]=h(a,this.Jh.bind(this,0));this.Ne=d;this.Wd=[];this.Ok=a.mq||Infinity;this.Le=0;this.xd={};this.ag=null}var m=a("./util").kn;l.prototype.kq=function(a,b,d){this.Mk({inputs:a,si:b,callback:d});this.Gh()};l.prototype.destroy=function(){for(var a in this)this[a]=null;this.Lk=!0};l.prototype.Mk=function(a){for(this.Wd.push(a);this.Wd.length>this.Ok;)this.Wd.shift().callback(null,null)};l.prototype.Gh=function(){if(0===this.Le&&
0<this.Wd.length){var a=this.ag=this.Wd.shift(),b=a.inputs[0].width,d=a.inputs[0].height,e=a.inputs.map(function(a){return a.data.buffer}),f=this.Ne.length;this.Le=f;if(1===f)this.Ne[0].postMessage({buffers:e,meta:a.si,imageOps:this.$f,width:b,height:d},e);else for(var g=4*Math.ceil(a.inputs[0].data.length/4/f),h=0;h<f;++h){for(var l=h*g,m=[],S=0,Ua=e.length;S<Ua;++S)m.push(e[h].slice(l,l+g));this.Ne[h].postMessage({buffers:m,meta:a.si,imageOps:this.$f,width:b,height:d},m)}}};l.prototype.Jh=function(a,
b){this.Lk||(this.xd[a]=b.data,--this.Le,0===this.Le&&this.Pk())};l.prototype.Pk=function(){var a=this.ag,b=this.Ne.length;if(1===b){var d=new Uint8ClampedArray(this.xd[0].buffer);var e=this.xd[0].meta}else{var f=a.inputs[0].data.length;d=new Uint8ClampedArray(f);e=Array(f);f=4*Math.ceil(f/4/b);for(var g=0;g<b;++g){var h=g*f;d.set(new Uint8ClampedArray(this.xd[g].buffer),h);e[g]=this.xd[g].meta}}this.ag=null;this.xd={};a.callback(null,m(d,a.inputs[0].width,a.inputs[0].height),e);this.Gh()};b.oa=l},
{"./util":3}],3:[function(a,b,f){var d=!0;try{new ImageData(10,10)}catch(l){d=!1}var e=document.createElement("canvas").getContext("2d");f.kn=function(a,b,f){if(d)return new ImageData(a,b,f);b=e.createImageData(b,f);b.data.set(a);return b}},{}]},{},[1])(1)});Vg=b.oa})();function uy(a){this.G=null;this.wa=void 0!==a.operationType?a.operationType:"pixel";this.Ua=void 0!==a.threads?a.threads:1;this.f=vy(a.sources);for(var b=0,c=this.f.length;b<c;++b)y(this.f[b],"change",this.u,this);this.$=new Wm(function(){return 1},this.u.bind(this));b=wy(this.f);c={};for(var d=0,e=b.length;d<e;++d)c[x(b[d].layer)]=b[d];this.i=null;this.N={animate:!1,attributions:{},coordinateToPixelTransform:qe(),extent:null,focus:null,index:0,layerStates:c,layerStatesArray:b,logos:{},pixelRatio:1,
pixelToCoordinateTransform:qe(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.$,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}};yk.call(this,{});void 0!==a.operation&&this.B(a.operation,a.lib)}v(uy,yk);uy.prototype.B=function(a,b){this.G=new Vg.Ak({operation:a,Qm:"image"===this.wa,mq:1,lib:b,threads:this.Ua});this.u()};
uy.prototype.W=function(a,b,c,d){c=!0;for(var e,f=0,g=this.f.length;f<g;++f)if(e=this.f[f].a.ba(),"ready"!==e.getState()){c=!1;break}if(!c)return null;c=wa({},this.N);c.viewState=wa({},c.viewState);e=Gb(a);c.extent=a.slice();c.focus=e;c.size[0]=Math.round(Eb(a)/b);c.size[1]=Math.round(Fb(a)/b);f=c.viewState;f.center=e;f.projection=d;f.resolution=b;this.s=c;Xm(c.tileQueue,16,16);this.i&&(d=this.i.resolution,c=this.i.D(),b===d&&vb(a,c)||(this.i=null));if(!this.i||this.g!==this.X)a:{a=this.s;d=this.f.length;
b=Array(d);for(c=0;c<d;++c){e=this.f[c];f=a;g=a.layerStatesArray[c];if(e.Jd(f,g)){var h=f.size[0],l=f.size[1];if(xy){var m=xy.canvas;m.width!==h||m.height!==l?xy=kd(h,l):xy.clearRect(0,0,h,l)}else xy=kd(h,l);e.v(f,g,xy);e=xy.getImageData(0,0,h,l)}else e=null;if(e)b[c]=e;else break a}d={};this.b(new yy(zy,a,d));this.G.kq(b,d,this.na.bind(this,a))}return this.i};
uy.prototype.na=function(a,b,c,d){if(!b&&c){b=a.extent;var e=a.viewState.resolution;if(e===this.s.viewState.resolution&&vb(b,this.s.extent)){if(this.i)var f=this.i.W().getContext("2d");else f=kd(Math.round(Eb(b)/e),Math.round(Fb(b)/e)),this.i=new wk(b,e,1,this.j,f.canvas);f.putImageData(c,0,0);this.u();this.X=this.g;this.b(new yy(Ay,a,d))}}};var xy=null;function wy(a){return a.map(function(a){return Vb(a.a)})}
function vy(a){for(var b=a.length,c=Array(b),d=0;d<b;++d){var e=d,f=a[d],g=null;f instanceof yi?(f=new Sh({source:f}),g=new cf(f)):f instanceof yk&&(f=new rl({source:f}),g=new Dl(f));c[e]=g}return c}function yy(a,b,c){Na.call(this,a);this.extent=b.extent;this.resolution=b.viewState.resolution/b.pixelRatio;this.data=c}v(yy,Na);uy.prototype.ad=function(){return null};var zy="beforeoperations",Ay="afteroperations";function By(a){var b=a.layer.indexOf("-");b=Cy[-1==b?a.layer:a.layer.slice(0,b)];var c=Dy[a.layer];ey.call(this,{attributions:Ey,cacheSize:a.cacheSize,crossOrigin:"anonymous",maxZoom:void 0!=a.maxZoom?a.maxZoom:b.maxZoom,minZoom:void 0!=a.minZoom?a.minZoom:b.minZoom,opaque:c.opaque,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileLoadFunction:a.tileLoadFunction,url:void 0!==a.url?a.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+a.layer+"/{z}/{x}/{y}."+c.Mb})}v(By,ey);
var Ey=[new ui({html:'Map tiles by <a href="http://stamen.com/">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.'}),ty],Dy={terrain:{Mb:"jpg",opaque:!0},"terrain-background":{Mb:"jpg",opaque:!0},"terrain-labels":{Mb:"png",opaque:!1},"terrain-lines":{Mb:"png",opaque:!1},"toner-background":{Mb:"png",opaque:!0},toner:{Mb:"png",opaque:!0},"toner-hybrid":{Mb:"png",opaque:!1},"toner-labels":{Mb:"png",opaque:!1},"toner-lines":{Mb:"png",opaque:!1},"toner-lite":{Mb:"png",
opaque:!0},watercolor:{Mb:"jpg",opaque:!0}},Cy={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function Fy(a){a=a||{};A.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,projection:a.projection,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,url:a.url,urls:a.urls,wrapX:void 0!==a.wrapX?a.wrapX:!0});this.i=a.params||{};this.o=ib();zi(this,Gy(this))}v(Fy,A);function Gy(a){var b=0,c=[],d;for(d in a.i)c[b++]=d+"-"+a.i[d];return c.join("/")}Fy.prototype.v=function(){return this.i};
Fy.prototype.vb=function(a){return a};
Fy.prototype.Yc=function(a,b,c){var d=this.tileGrid;d||(d=this.Ob(c));if(!(d.b.length<=a[0])){var e=d.Ya(a,this.o),f=ff(d.gb(a[0]),this.l);1!=b&&(f=Ph(f,b,this.l));d={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};wa(d,this.i);var g=this.urls;g?(c=c.tb.split(":").pop(),d.SIZE=f[0]+","+f[1],d.BBOX=e.join(","),d.BBOXSR=c,d.IMAGESR=c,d.DPI=Math.round(d.DPI?d.DPI*b:90*b),a=(1==g.length?g[0]:g[Sb((a[1]<<a[0])+a[2],g.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),
a=ky(a,d)):a=void 0;return a}};Fy.prototype.B=function(a){wa(this.i,a);zi(this,Gy(this))};function Hy(a){yi.call(this,{opaque:!1,projection:a.projection,tileGrid:a.tileGrid,wrapX:void 0!==a.wrapX?a.wrapX:!0})}v(Hy,yi);Hy.prototype.cd=function(a,b,c){var d=this.cc(a,b,c);if(this.a.b.hasOwnProperty(d))return this.a.get(d);var e=ff(this.tileGrid.gb(a));a=[a,b,c];b=(b=Ai(this,a))?Ai(this,b).toString():"";e=new Iy(a,e,b);this.a.set(d,e);return e};function Iy(a,b,c){Th.call(this,a,2);this.c=b;this.Ja=c;this.g=null}v(Iy,Th);
Iy.prototype.W=function(){if(this.g)return this.g;var a=this.c,b=kd(a[0],a[1]);b.strokeStyle="black";b.strokeRect(.5,.5,a[0]+.5,a[1]+.5);b.fillStyle="black";b.textAlign="center";b.textBaseline="middle";b.font="24px sans-serif";b.fillText(this.Ja,a[0]/2,a[1]/2);return this.g=b.canvas};Iy.prototype.load=function(){};function Jy(a){this.i=null;A.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,projection:Gc("EPSG:3857"),reprojectionErrorThreshold:a.reprojectionErrorThreshold,state:"loading",tileLoadFunction:a.tileLoadFunction,wrapX:void 0!==a.wrapX?a.wrapX:!0});if(a.jsonp)by(a.url,this.jj.bind(this),this.wf.bind(this));else{var b=new XMLHttpRequest;b.addEventListener("load",this.np.bind(this));b.addEventListener("error",this.mp.bind(this));b.open("GET",a.url);b.send()}}
v(Jy,A);k=Jy.prototype;k.np=function(a){a=a.target;if(!a.status||200<=a.status&&300>a.status){try{var b=JSON.parse(a.responseText)}catch(c){this.wf();return}this.jj(b)}else this.wf()};k.mp=function(){this.wf()};k.dm=function(){return this.i};
k.jj=function(a){var b=Gc("EPSG:4326"),c=this.c;if(void 0!==a.bounds){var d=Fc(b,c);var e=Lb(a.bounds,d)}var f=a.minzoom||0;d=a.maxzoom||22;this.tileGrid=c=ti({extent:ri(c),maxZoom:d,minZoom:f});this.tileUrlFunction=ii(a.tiles,c);if(void 0!==a.attribution&&!this.j){b=void 0!==e?e:b.D();e={};for(var g;f<=d;++f)g=f.toString(),e[g]=[We(c,b,f)];this.za([new ui({html:a.attribution,tileRanges:e})])}this.i=a;xi(this,"ready")};k.wf=function(){xi(this,"error")};function Ky(a){yi.call(this,{projection:Gc("EPSG:3857"),state:"loading"});this.s=void 0!==a.preemptive?a.preemptive:!0;this.o=ki;this.f=void 0;this.i=a.jsonp||!1;if(a.url)if(this.i)by(a.url,this.Pg.bind(this),this.xf.bind(this));else{var b=new XMLHttpRequest;b.addEventListener("load",this.rp.bind(this));b.addEventListener("error",this.qp.bind(this));b.open("GET",a.url);b.send()}else a.tileJSON?this.Pg(a.tileJSON):gb(!1,51)}v(Ky,yi);k=Ky.prototype;
k.rp=function(a){a=a.target;if(!a.status||200<=a.status&&300>a.status){try{var b=JSON.parse(a.responseText)}catch(c){this.xf();return}this.Pg(b)}else this.xf()};k.qp=function(){this.xf()};k.am=function(){return this.f};k.jl=function(a,b,c,d,e){this.tileGrid?(b=this.tileGrid.$e(a,b),Ly(this.cd(b[0],b[1],b[2],1,this.c),a,c,d,e)):!0===e?setTimeout(function(){c.call(d,null)},0):c.call(d,null)};k.xf=function(){xi(this,"error")};
k.Pg=function(a){var b=Gc("EPSG:4326"),c=this.c;if(void 0!==a.bounds){var d=Fc(b,c);var e=Lb(a.bounds,d)}var f=a.minzoom||0;d=a.maxzoom||22;this.tileGrid=c=ti({extent:ri(c),maxZoom:d,minZoom:f});this.f=a.template;var g=a.grids;if(g){this.o=ii(g,c);if(void 0!==a.attribution){b=void 0!==e?e:b.D();for(e={};f<=d;++f)g=f.toString(),e[g]=[We(c,b,f)];this.za([new ui({html:a.attribution,tileRanges:e})])}xi(this,"ready")}else xi(this,"error")};
k.cd=function(a,b,c,d,e){var f=this.cc(a,b,c);if(this.a.b.hasOwnProperty(f))return this.a.get(f);a=[a,b,c];b=Ai(this,a,e);d=this.o(b,d,e);d=new My(a,void 0!==d?0:4,void 0!==d?d:"",this.tileGrid.Ya(a),this.s,this.i);this.a.set(f,d);return d};k.xh=function(a,b,c){a=this.cc(a,b,c);this.a.b.hasOwnProperty(a)&&this.a.get(a)};function My(a,b,c,d,e,f){Th.call(this,a,b);this.o=c;this.g=d;this.I=e;this.c=this.l=this.f=null;this.s=f}v(My,Th);k=My.prototype;k.W=function(){return null};
k.getData=function(a){if(!this.f||!this.l)return null;var b=this.f[Math.floor((1-(a[1]-this.g[1])/(this.g[3]-this.g[1]))*this.f.length)];if("string"!==typeof b)return null;b=b.charCodeAt(Math.floor((a[0]-this.g[0])/(this.g[2]-this.g[0])*b.length));93<=b&&b--;35<=b&&b--;b-=32;a=null;b in this.l&&(b=this.l[b],this.c&&b in this.c?a=this.c[b]:a=b);return a};
function Ly(a,b,c,d,e){0==a.state&&!0===e?(Ia(a,"change",function(){c.call(d,this.getData(b))},a),Ny(a)):!0===e?setTimeout(function(){c.call(d,this.getData(b))}.bind(a),0):c.call(d,a.getData(b))}k.ob=function(){return this.o};k.bf=function(){this.state=3;this.u()};k.kj=function(a){this.f=a.grid;this.l=a.keys;this.c=a.data;this.state=4;this.u()};
function Ny(a){if(0==a.state)if(a.state=1,a.s)by(a.o,a.kj.bind(a),a.bf.bind(a));else{var b=new XMLHttpRequest;b.addEventListener("load",a.pp.bind(a));b.addEventListener("error",a.op.bind(a));b.open("GET",a.o);b.send()}}k.pp=function(a){a=a.target;if(!a.status||200<=a.status&&300>a.status){try{var b=JSON.parse(a.responseText)}catch(c){this.bf();return}this.kj(b)}else this.bf()};k.op=function(){this.bf()};k.load=function(){this.I&&Ny(this)};function Oy(a){a=a||{};var b=a.params||{};A.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:!("TRANSPARENT"in b?b.TRANSPARENT:1),projection:a.projection,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,url:a.url,urls:a.urls,wrapX:void 0!==a.wrapX?a.wrapX:!0});this.v=void 0!==a.gutter?a.gutter:0;this.i=b;this.o=!0;this.B=a.serverType;this.X=void 0!==a.hidpi?a.hidpi:!0;this.N="";
Py(this);this.$=ib();Qy(this);zi(this,Ry(this))}v(Oy,A);k=Oy.prototype;
k.sp=function(a,b,c,d){c=Gc(c);var e=this.tileGrid;e||(e=this.Ob(c));b=e.$e(a,b);if(!(e.b.length<=b[0])){var f=e.Ra(b[0]),g=e.Ya(b,this.$);e=ff(e.gb(b[0]),this.l);var h=this.v;0!==h&&(e=Oh(e,h,this.l),g=kb(g,f*h,g));h={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.i.LAYERS};wa(h,this.i,d);d=Math.floor((g[3]-a[1])/f);h[this.o?"I":"X"]=Math.floor((a[0]-g[0])/f);h[this.o?"J":"Y"]=d;return Sy(this,b,e,g,1,c,h)}};k.sg=function(){return this.v};
k.cc=function(a,b,c){return this.N+A.prototype.cc.call(this,a,b,c)};k.tp=function(){return this.i};
function Sy(a,b,c,d,e,f,g){var h=a.urls;if(h){g.WIDTH=c[0];g.HEIGHT=c[1];g[a.o?"CRS":"SRS"]=f.tb;"STYLES"in a.i||(g.STYLES="");if(1!=e)switch(a.B){case "geoserver":c=90*e+.5|0;g.FORMAT_OPTIONS="FORMAT_OPTIONS"in g?g.FORMAT_OPTIONS+(";dpi:"+c):"dpi:"+c;break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e;break;default:gb(!1,52)}f=f.b;a.o&&"ne"==f.substr(0,2)&&(a=d[0],d[0]=d[1],d[1]=a,a=d[2],d[2]=d[3],d[3]=a);g.BBOX=d.join(",");return ky(1==h.length?h[0]:h[Sb((b[1]<<
b[0])+b[2],h.length)],g)}}k.vb=function(a){return this.X&&void 0!==this.B?a:1};function Py(a){var b=0,c=[];if(a.urls){var d;var e=0;for(d=a.urls.length;e<d;++e)c[b++]=a.urls[e]}a.N=c.join("#")}function Ry(a){var b=0,c=[],d;for(d in a.i)c[b++]=d+"-"+a.i[d];return c.join("/")}
k.Yc=function(a,b,c){var d=this.tileGrid;d||(d=this.Ob(c));if(!(d.b.length<=a[0])){1==b||this.X&&void 0!==this.B||(b=1);var e=d.Ra(a[0]),f=d.Ya(a,this.$);d=ff(d.gb(a[0]),this.l);var g=this.v;0!==g&&(d=Oh(d,g,this.l),f=kb(f,e*g,f));1!=b&&(d=Ph(d,b,this.l));e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};wa(e,this.i);return Sy(this,a,d,f,b,c,e)}};k.jb=function(a){A.prototype.jb.call(this,a);Py(this)};k.vp=function(a){wa(this.i,a);Py(this);Qy(this);zi(this,Ry(this))};
function Qy(a){a.o=0<=od(a.i.VERSION||"1.3.0")};function Ty(a,b,c,d,e){Th.call(this,a,b);this.c=null;this.l=d;this.f=null;this.g={ge:!1,mh:null,If:-1,nh:-1,Qd:null};this.I=e;this.o=c}v(Ty,Th);k=Ty.prototype;k.W=function(){return-1==this.g.nh?null:this.c.canvas};k.Gn=function(){return this.l};k.ob=function(){return this.o};k.load=function(){0==this.state&&(this.state=1,this.u(),this.I(this,this.o),this.s(null,NaN,null))};k.Up=function(a,b){this.Ig(b);this.Rj(a)};k.Tp=function(){this.state=3;this.u()};k.Rj=function(a){this.f=a;this.state=2;this.u()};
k.Ig=function(a){this.j=a};k.Wj=function(a){this.s=a};function Uy(a,b){a.Wj(Ij(b,a.l,a.Up.bind(a),a.Tp.bind(a)))};function Vy(a){Ci.call(this,{attributions:a.attributions,cacheSize:void 0!==a.cacheSize?a.cacheSize:128,extent:a.extent,logo:a.logo,opaque:!1,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction?a.tileLoadFunction:Uy,tileUrlFunction:a.tileUrlFunction,tilePixelRatio:a.tilePixelRatio,url:a.url,urls:a.urls,wrapX:void 0===a.wrapX?!0:a.wrapX});this.i=a.format?a.format:null;this.f=void 0==a.overlaps?!0:a.overlaps;this.tileClass=a.tileClass?a.tileClass:Ty}v(Vy,Ci);
Vy.prototype.cd=function(a,b,c,d,e){var f=this.cc(a,b,c);if(this.a.b.hasOwnProperty(f))return this.a.get(f);a=[a,b,c];d=(b=Ai(this,a,e))?this.tileUrlFunction(b,d,e):void 0;d=new this.tileClass(a,void 0!==d?0:4,void 0!==d?d:"",this.i,this.tileLoadFunction);y(d,"change",this.mj,this);this.a.set(f,d);return d};Vy.prototype.vb=function(a){return void 0==a?Ci.prototype.vb.call(this,a):a};Vy.prototype.ne=function(a,b){a=ff(this.tileGrid.gb(a));return[Math.round(a[0]*b),Math.round(a[1]*b)]};function Wy(a){this.l=a.matrixIds;mi.call(this,{extent:a.extent,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes,sizes:a.sizes,minZoom:a.minZoom})}v(Wy,mi);Wy.prototype.o=function(){return this.l};
function Xy(a,b,c){var d=[],e=[],f=[],g=[],h=[],l=void 0!==c?c:[];c=Gc(a.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var m=c.dc(),n="ne"==c.b.substr(0,2);a.TileMatrix.sort(function(a,b){return b.ScaleDenominator-a.ScaleDenominator});a.TileMatrix.forEach(function(a){var b;0<l.length?b=ed(l,function(b){return a.Identifier==b.TileMatrix}):b=!0;if(b){e.push(a.Identifier);b=2.8E-4*a.ScaleDenominator/m;var c=a.TileWidth,p=a.TileHeight;n?f.push([a.TopLeftCorner[1],a.TopLeftCorner[0]]):
f.push(a.TopLeftCorner);d.push(b);g.push(c==p?c:[c,p]);h.push([a.MatrixWidth,-a.MatrixHeight])}});return new Wy({extent:b,origins:f,resolutions:d,matrixIds:e,tileSizes:g,sizes:h})};function Z(a){function b(a){a="KVP"==d?ky(a,f):a.replace(/\{(\w+?)\}/g,function(a,b){return b.toLowerCase()in f?f[b.toLowerCase()]:a});return function(b){if(b){var c={TileMatrix:e.l[b[0]],TileCol:b[1],TileRow:-b[2]-1};wa(c,g);b=a;return b="KVP"==d?ky(b,c):b.replace(/\{(\w+?)\}/g,function(a,b){return c[b]})}}}this.$=void 0!==a.version?a.version:"1.0.0";this.v=void 0!==a.format?a.format:"image/jpeg";this.i=void 0!==a.dimensions?a.dimensions:{};this.B=a.layer;this.o=a.matrixSet;this.N=a.style;var c=
a.urls;void 0===c&&void 0!==a.url&&(c=li(a.url));var d=this.X=void 0!==a.requestEncoding?a.requestEncoding:"KVP",e=a.tileGrid,f={layer:this.B,style:this.N,tilematrixset:this.o};"KVP"==d&&wa(f,{Service:"WMTS",Request:"GetTile",Version:this.$,Format:this.v});var g=this.i,h=c&&0<c.length?ji(c.map(b)):ki;A.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,projection:a.projection,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileClass:a.tileClass,
tileGrid:e,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:h,urls:c,wrapX:void 0!==a.wrapX?a.wrapX:!1});zi(this,Yy(this))}v(Z,A);k=Z.prototype;k.Al=function(){return this.i};k.wp=function(){return this.v};k.xp=function(){return this.B};k.Ol=function(){return this.o};k.Zl=function(){return this.X};k.yp=function(){return this.N};k.gm=function(){return this.$};function Yy(a){var b=0,c=[],d;for(d in a.i)c[b++]=d+"-"+a.i[d];return c.join("/")}
k.Ir=function(a){wa(this.i,a);zi(this,Yy(this))};function Zy(a){a=a||{};var b=a.size,c=b[0],d=b[1],e=[],f=256;switch(void 0!==a.tierSizeCalculation?a.tierSizeCalculation:$y){case $y:for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),f+=f;break;case az:for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),c>>=1,d>>=1;break;default:gb(!1,53)}e.push([1,1]);e.reverse();f=[1];var g=[0];d=1;for(c=e.length;d<c;d++)f.push(1<<d),g.push(e[d-1][0]*e[d-1][1]+g[d-1]);f.reverse();b=[0,-b[1],b[0],0];b=new mi({extent:b,origin:Bb(b),resolutions:f});(f=a.url)&&
-1==f.indexOf("{TileGroup}")&&(f+="{TileGroup}/{z}-{x}-{y}.jpg");f=li(f);f=ji(f.map(function(a){return function(b){if(b){var c=b[0],d=b[1];b=-b[2]-1;var f={z:c,x:d,y:b,TileGroup:"TileGroup"+((d+b*e[c][0]+g[c])/256|0)};return a.replace(/\{(\w+?)\}/g,function(a,b){return f[b]})}}}));A.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,projection:a.projection,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileClass:bz,tileGrid:b,tileUrlFunction:f})}
v(Zy,A);function bz(a,b,c,d,e){Uh.call(this,a,b,c,d,e);this.g=null}v(bz,Uh);bz.prototype.W=function(){if(this.g)return this.g;var a=Uh.prototype.W.call(this);if(2==this.state){if(256==a.width&&256==a.height)return this.g=a;var b=kd(256,256);b.drawImage(a,0,0);return this.g=b.canvas}return a};var $y="default",az="truncated";function cz(a,b){this.b=b;this.a=[{x:0,y:0,width:a,height:a}];this.c={};this.g=kd(a,a);this.i=this.g.canvas}cz.prototype.get=function(a){return this.c[a]||null};
cz.prototype.add=function(a,b,c,d,e){var f;var g=0;for(f=this.a.length;g<f;++g){var h=this.a[g];if(h.width>=b+this.b&&h.height>=c+this.b)return f={offsetX:h.x+this.b,offsetY:h.y+this.b,image:this.i},this.c[a]=f,d.call(e,this.g,h.x+this.b,h.y+this.b),a=g,b+=this.b,d=c+this.b,h.width-b>h.height-d?(c={x:h.x+b,y:h.y,width:h.width-b,height:h.height},b={x:h.x,y:h.y+d,width:b,height:h.height-d},dz(this,a,c,b)):(c={x:h.x+b,y:h.y,width:h.width-b,height:d},b={x:h.x,y:h.y+d,width:h.width,height:h.height-d},
dz(this,a,c,b)),f}return null};function dz(a,b,c,d){b=[b,1];0<c.width&&0<c.height&&b.push(c);0<d.width&&0<d.height&&b.push(d);a.a.splice.apply(a.a,b)};function ez(a){a=a||{};this.a=void 0!==a.initialSize?a.initialSize:256;this.g=void 0!==a.maxSize?a.maxSize:void 0!==sa?sa:2048;this.b=void 0!==a.space?a.space:1;this.i=[new cz(this.a,this.b)];this.c=this.a;this.f=[new cz(this.c,this.b)]}ez.prototype.add=function(a,b,c,d,e,f){if(b+this.b>this.g||c+this.b>this.g)return null;d=fz(this,!1,a,b,c,d,f);if(!d)return null;a=fz(this,!0,a,b,c,void 0!==e?e:ua,f);return{offsetX:d.offsetX,offsetY:d.offsetY,image:d.image,Pm:a.image}};
function fz(a,b,c,d,e,f,g){var h=b?a.f:a.i,l;var m=0;for(l=h.length;m<l;++m){var n=h[m];if(n=n.add(c,d,e,f,g))return n;n||m!==l-1||(b?(n=Math.min(2*a.c,a.g),a.c=n):(n=Math.min(2*a.a,a.g),a.a=n),n=new cz(n,a.b),h.push(n),++l)}return null};Va.prototype.code=Va.prototype.code;r("ol.Attribution",ui);ui.prototype.getHTML=ui.prototype.g;r("ol.Collection",bb);bb.prototype.clear=bb.prototype.clear;bb.prototype.extend=bb.prototype.Fg;bb.prototype.forEach=bb.prototype.forEach;bb.prototype.getArray=bb.prototype.ln;bb.prototype.item=bb.prototype.item;bb.prototype.getLength=bb.prototype.rc;bb.prototype.insertAt=bb.prototype.ff;bb.prototype.pop=bb.prototype.pop;bb.prototype.push=bb.prototype.push;bb.prototype.remove=bb.prototype.remove;
bb.prototype.removeAt=bb.prototype.ih;bb.prototype.setAt=bb.prototype.gr;fb.prototype.element=fb.prototype.element;r("ol.color.asArray",Jd);r("ol.color.asString",Ld);r("ol.colorlike.asColorLike",Nd);r("ol.control.defaults",$l);r("ol.coordinate.add",pd);r("ol.coordinate.createStringXY",function(a){return function(b){return zd(b,a)}});r("ol.coordinate.format",sd);r("ol.coordinate.rotate",ud);r("ol.coordinate.toStringHDMS",function(a,b){return a?rd(a[1],"NS",b)+" "+rd(a[0],"EW",b):""});
r("ol.coordinate.toStringXY",zd);r("ol.DeviceOrientation",hp);hp.prototype.getAlpha=hp.prototype.pl;hp.prototype.getBeta=hp.prototype.sl;hp.prototype.getGamma=hp.prototype.Dl;hp.prototype.getHeading=hp.prototype.mn;hp.prototype.getTracking=hp.prototype.vi;hp.prototype.setTracking=hp.prototype.Gg;r("ol.easing.easeIn",Ul);r("ol.easing.easeOut",Vl);r("ol.easing.inAndOut",Wl);r("ol.easing.linear",Ki);r("ol.easing.upAndDown",function(a){return.5>a?Wl(2*a):1-Wl(2*(a-.5))});
r("ol.extent.boundingExtent",hb);r("ol.extent.buffer",kb);r("ol.extent.containsCoordinate",nb);r("ol.extent.containsExtent",pb);r("ol.extent.containsXY",ob);r("ol.extent.createEmpty",ib);r("ol.extent.equals",vb);r("ol.extent.extend",wb);r("ol.extent.getBottomLeft",yb);r("ol.extent.getBottomRight",zb);r("ol.extent.getCenter",Gb);r("ol.extent.getHeight",Fb);r("ol.extent.getIntersection",Ib);r("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});r("ol.extent.getTopLeft",Bb);
r("ol.extent.getTopRight",Ab);r("ol.extent.getWidth",Eb);r("ol.extent.intersects",Jb);r("ol.extent.isEmpty",Db);r("ol.extent.applyTransform",Lb);r("ol.Feature",E);E.prototype.clone=E.prototype.clone;E.prototype.getGeometry=E.prototype.V;E.prototype.getId=E.prototype.pn;E.prototype.getGeometryName=E.prototype.Fl;E.prototype.getStyle=E.prototype.qn;E.prototype.getStyleFunction=E.prototype.Nc;E.prototype.setGeometry=E.prototype.Wa;E.prototype.setStyle=E.prototype.Hg;E.prototype.setId=E.prototype.xc;
E.prototype.setGeometryName=E.prototype.pd;r("ol.featureloader.xhr",Jj);r("ol.Geolocation",qw);qw.prototype.getAccuracy=qw.prototype.nl;qw.prototype.getAccuracyGeometry=qw.prototype.ol;qw.prototype.getAltitude=qw.prototype.rn;qw.prototype.getAltitudeAccuracy=qw.prototype.ql;qw.prototype.getHeading=qw.prototype.sn;qw.prototype.getPosition=qw.prototype.tn;qw.prototype.getProjection=qw.prototype.wi;qw.prototype.getSpeed=qw.prototype.$l;qw.prototype.getTracking=qw.prototype.xi;
qw.prototype.getTrackingOptions=qw.prototype.hi;qw.prototype.setProjection=qw.prototype.yi;qw.prototype.setTracking=qw.prototype.lf;qw.prototype.setTrackingOptions=qw.prototype.bk;r("ol.Graticule",ww);ww.prototype.getMap=ww.prototype.xn;ww.prototype.getMeridians=ww.prototype.Pl;ww.prototype.getParallels=ww.prototype.Xl;ww.prototype.setMap=ww.prototype.setMap;r("ol.has.DEVICE_PIXEL_RATIO",ce);r("ol.has.CANVAS",ee);r("ol.has.DEVICE_ORIENTATION",fe);r("ol.has.GEOLOCATION",ge);r("ol.has.TOUCH",he);
r("ol.has.WEBGL",Xd);Bw.prototype.getImage=Bw.prototype.W;Bw.prototype.load=Bw.prototype.load;Uh.prototype.getImage=Uh.prototype.W;r("ol.inherits",v);r("ol.interaction.defaults",to);r("ol.Kinetic",on);r("ol.loadingstrategy.all",Kj);r("ol.loadingstrategy.bbox",function(a){return[a]});r("ol.loadingstrategy.tile",function(a){return function(b,c){c=a.dd(c);b=We(a,b,c);var d=[];c=[c,0,0];for(c[1]=b.ga;c[1]<=b.da;++c[1])for(c[2]=b.ha;c[2]<=b.ka;++c[2])d.push(a.Ya(c));return d}});r("ol.Map",Q);
Q.prototype.addControl=Q.prototype.Uk;Q.prototype.addInteraction=Q.prototype.Vk;Q.prototype.addLayer=Q.prototype.Lh;Q.prototype.addOverlay=Q.prototype.Mh;Q.prototype.forEachFeatureAtPixel=Q.prototype.Ue;Q.prototype.forEachLayerAtPixel=Q.prototype.Dn;Q.prototype.hasFeatureAtPixel=Q.prototype.Om;Q.prototype.getEventCoordinate=Q.prototype.og;Q.prototype.getEventPixel=Q.prototype.We;Q.prototype.getTarget=Q.prototype.xg;Q.prototype.getTargetElement=Q.prototype.Jc;Q.prototype.getCoordinateFromPixel=Q.prototype.ab;
Q.prototype.getControls=Q.prototype.xl;Q.prototype.getOverlays=Q.prototype.Vl;Q.prototype.getOverlayById=Q.prototype.Ul;Q.prototype.getInteractions=Q.prototype.Gl;Q.prototype.getLayerGroup=Q.prototype.Nb;Q.prototype.getLayers=Q.prototype.zi;Q.prototype.getPixelFromCoordinate=Q.prototype.Pa;Q.prototype.getSize=Q.prototype.Rb;Q.prototype.getView=Q.prototype.Z;Q.prototype.getViewport=Q.prototype.hm;Q.prototype.renderSync=Q.prototype.dr;Q.prototype.render=Q.prototype.render;
Q.prototype.removeControl=Q.prototype.Xq;Q.prototype.removeInteraction=Q.prototype.Yq;Q.prototype.removeLayer=Q.prototype.$q;Q.prototype.removeOverlay=Q.prototype.ar;Q.prototype.setLayerGroup=Q.prototype.Vj;Q.prototype.setSize=Q.prototype.sh;Q.prototype.setTarget=Q.prototype.mf;Q.prototype.setView=Q.prototype.En;Q.prototype.updateSize=Q.prototype.Td;lm.prototype.originalEvent=lm.prototype.originalEvent;lm.prototype.pixel=lm.prototype.pixel;lm.prototype.coordinate=lm.prototype.coordinate;
lm.prototype.dragging=lm.prototype.dragging;km.prototype.map=km.prototype.map;km.prototype.frameState=km.prototype.frameState;r("ol.Object",Wa);Wa.prototype.get=Wa.prototype.get;Wa.prototype.getKeys=Wa.prototype.P;Wa.prototype.getProperties=Wa.prototype.L;Wa.prototype.set=Wa.prototype.set;Wa.prototype.setProperties=Wa.prototype.J;Wa.prototype.unset=Wa.prototype.S;ab.prototype.key=ab.prototype.key;ab.prototype.oldValue=ab.prototype.oldValue;r("ol.Observable",Sa);r("ol.Observable.unByKey",Ta);
Sa.prototype.changed=Sa.prototype.u;Sa.prototype.dispatchEvent=Sa.prototype.b;Sa.prototype.getRevision=Sa.prototype.M;Sa.prototype.on=Sa.prototype.H;Sa.prototype.once=Sa.prototype.once;Sa.prototype.un=Sa.prototype.K;r("ol.Overlay",Jo);Jo.prototype.getElement=Jo.prototype.je;Jo.prototype.getId=Jo.prototype.Fn;Jo.prototype.getMap=Jo.prototype.nf;Jo.prototype.getOffset=Jo.prototype.ei;Jo.prototype.getPosition=Jo.prototype.Ai;Jo.prototype.getPositioning=Jo.prototype.fi;Jo.prototype.setElement=Jo.prototype.Qj;
Jo.prototype.setMap=Jo.prototype.setMap;Jo.prototype.setOffset=Jo.prototype.Xj;Jo.prototype.setPosition=Jo.prototype.pf;Jo.prototype.setPositioning=Jo.prototype.$j;r("ol.proj.METERS_PER_UNIT",kc);r("ol.proj.setProj4",function(a){lc=a});r("ol.proj.getPointResolution",Ec);r("ol.proj.addEquivalentProjections",Hc);r("ol.proj.addProjection",Lc);r("ol.proj.addCoordinateTransforms",Nc);r("ol.proj.fromLonLat",function(a,b){return Sc(a,"EPSG:4326",void 0!==b?b:"EPSG:3857")});
r("ol.proj.toLonLat",function(a,b){return Sc(a,void 0!==b?b:"EPSG:3857","EPSG:4326")});r("ol.proj.get",Gc);r("ol.proj.equivalent",Pc);r("ol.proj.getTransform",Qc);r("ol.proj.transform",Sc);r("ol.proj.transformExtent",Tc);r("ol.render.toContext",function(a,b){var c=a.canvas,d=b?b:{};b=d.pixelRatio||ce;if(d=d.size)c.width=d[0]*b,c.height=d[1]*b,c.style.width=d[0]+"px",c.style.height=d[1]+"px";c=[0,0,c.width,c.height];d=xe(qe(),b,b);return new Be(a,b,c,d,0)});r("ol.size.toSize",ff);r("ol.Sphere",hc);
hc.prototype.geodesicArea=hc.prototype.a;hc.prototype.haversineDistance=hc.prototype.b;hc.prototype.offset=hc.prototype.offset;Th.prototype.getTileCoord=Th.prototype.i;Th.prototype.load=Th.prototype.load;r("ol.tilegrid.createXYZ",ti);Ty.prototype.getFormat=Ty.prototype.Gn;Ty.prototype.setFeatures=Ty.prototype.Rj;Ty.prototype.setProjection=Ty.prototype.Ig;Ty.prototype.setLoader=Ty.prototype.Wj;r("ol.View",P);P.prototype.animate=P.prototype.animate;P.prototype.getAnimating=P.prototype.$c;
P.prototype.cancelAnimations=P.prototype.Ad;P.prototype.constrainCenter=P.prototype.Xc;P.prototype.constrainResolution=P.prototype.constrainResolution;P.prototype.constrainRotation=P.prototype.constrainRotation;P.prototype.getCenter=P.prototype.va;P.prototype.calculateExtent=P.prototype.zd;P.prototype.getMaxResolution=P.prototype.Hn;P.prototype.getMinResolution=P.prototype.Jn;P.prototype.getMaxZoom=P.prototype.In;P.prototype.setMaxZoom=P.prototype.qr;P.prototype.getMinZoom=P.prototype.Kn;
P.prototype.setMinZoom=P.prototype.rr;P.prototype.getProjection=P.prototype.Ln;P.prototype.getResolution=P.prototype.Ia;P.prototype.getResolutions=P.prototype.Mn;P.prototype.getRotation=P.prototype.Qa;P.prototype.getZoom=P.prototype.ii;P.prototype.getZoomForResolution=P.prototype.af;P.prototype.fit=P.prototype.mg;P.prototype.centerOn=P.prototype.cl;P.prototype.rotate=P.prototype.rotate;P.prototype.setCenter=P.prototype.cb;P.prototype.setResolution=P.prototype.Uc;P.prototype.setRotation=P.prototype.gd;
P.prototype.setZoom=P.prototype.Ar;r("ol.xml.getAllTextContent",sj);r("ol.xml.parse",wj);Rf.prototype.getGL=Rf.prototype.Ip;Rf.prototype.useProgram=Rf.prototype.ld;r("ol.tilegrid.TileGrid",mi);mi.prototype.forEachTileCoord=mi.prototype.Xh;mi.prototype.getMaxZoom=mi.prototype.uj;mi.prototype.getMinZoom=mi.prototype.vj;mi.prototype.getOrigin=mi.prototype.kd;mi.prototype.getResolution=mi.prototype.Ra;mi.prototype.getResolutions=mi.prototype.wj;mi.prototype.getTileCoordExtent=mi.prototype.Ya;
mi.prototype.getTileCoordForCoordAndResolution=mi.prototype.$e;mi.prototype.getTileCoordForCoordAndZ=mi.prototype.yg;mi.prototype.getTileSize=mi.prototype.gb;mi.prototype.getZForResolution=mi.prototype.dd;r("ol.tilegrid.WMTS",Wy);Wy.prototype.getMatrixIds=Wy.prototype.o;r("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",Xy);r("ol.style.AtlasManager",ez);r("ol.style.Circle",ej);ej.prototype.setRadius=ej.prototype.qd;r("ol.style.Fill",fj);fj.prototype.clone=fj.prototype.clone;
fj.prototype.getColor=fj.prototype.g;fj.prototype.setColor=fj.prototype.c;r("ol.style.Icon",ql);ql.prototype.clone=ql.prototype.clone;ql.prototype.getAnchor=ql.prototype.Gc;ql.prototype.getColor=ql.prototype.zp;ql.prototype.getImage=ql.prototype.W;ql.prototype.getOrigin=ql.prototype.jd;ql.prototype.getSrc=ql.prototype.Ap;ql.prototype.getSize=ql.prototype.gc;ql.prototype.load=ql.prototype.load;r("ol.style.Image",bj);bj.prototype.getOpacity=bj.prototype.La;bj.prototype.getRotateWithView=bj.prototype.zf;
bj.prototype.getRotation=bj.prototype.Af;bj.prototype.getScale=bj.prototype.Ma;bj.prototype.getSnapToPixel=bj.prototype.Ze;bj.prototype.setOpacity=bj.prototype.Kd;bj.prototype.setRotation=bj.prototype.Bf;bj.prototype.setScale=bj.prototype.Ld;r("ol.style.RegularShape",cj);cj.prototype.clone=cj.prototype.clone;cj.prototype.getAnchor=cj.prototype.Gc;cj.prototype.getAngle=cj.prototype.qj;cj.prototype.getFill=cj.prototype.qa;cj.prototype.getImage=cj.prototype.W;cj.prototype.getOrigin=cj.prototype.jd;
cj.prototype.getPoints=cj.prototype.rj;cj.prototype.getRadius=cj.prototype.sj;cj.prototype.getRadius2=cj.prototype.gi;cj.prototype.getSize=cj.prototype.gc;cj.prototype.getStroke=cj.prototype.pa;r("ol.style.Stroke",Jg);Jg.prototype.clone=Jg.prototype.clone;Jg.prototype.getColor=Jg.prototype.Bp;Jg.prototype.getLineCap=Jg.prototype.Jl;Jg.prototype.getLineDash=Jg.prototype.Cp;Jg.prototype.getLineDashOffset=Jg.prototype.Kl;Jg.prototype.getLineJoin=Jg.prototype.Ll;Jg.prototype.getMiterLimit=Jg.prototype.Ql;
Jg.prototype.getWidth=Jg.prototype.Dp;Jg.prototype.setColor=Jg.prototype.Ep;Jg.prototype.setLineCap=Jg.prototype.mr;Jg.prototype.setLineDash=Jg.prototype.setLineDash;Jg.prototype.setLineDashOffset=Jg.prototype.nr;Jg.prototype.setLineJoin=Jg.prototype.pr;Jg.prototype.setMiterLimit=Jg.prototype.sr;Jg.prototype.setWidth=Jg.prototype.yr;r("ol.style.Style",gj);gj.prototype.clone=gj.prototype.clone;gj.prototype.getGeometry=gj.prototype.V;gj.prototype.getGeometryFunction=gj.prototype.El;
gj.prototype.getFill=gj.prototype.qa;gj.prototype.setFill=gj.prototype.Kf;gj.prototype.getImage=gj.prototype.W;gj.prototype.setImage=gj.prototype.rh;gj.prototype.getStroke=gj.prototype.pa;gj.prototype.setStroke=gj.prototype.Lf;gj.prototype.getText=gj.prototype.ra;gj.prototype.setText=gj.prototype.Mf;gj.prototype.getZIndex=gj.prototype.Da;gj.prototype.setGeometry=gj.prototype.Wa;gj.prototype.setZIndex=gj.prototype.jc;r("ol.style.Text",Kr);Kr.prototype.clone=Kr.prototype.clone;
Kr.prototype.getFont=Kr.prototype.Cl;Kr.prototype.getOffsetX=Kr.prototype.Rl;Kr.prototype.getOffsetY=Kr.prototype.Sl;Kr.prototype.getFill=Kr.prototype.qa;Kr.prototype.getRotateWithView=Kr.prototype.Fp;Kr.prototype.getRotation=Kr.prototype.Gp;Kr.prototype.getScale=Kr.prototype.Ma;Kr.prototype.getStroke=Kr.prototype.pa;Kr.prototype.getText=Kr.prototype.ra;Kr.prototype.getTextAlign=Kr.prototype.bm;Kr.prototype.getTextBaseline=Kr.prototype.cm;Kr.prototype.setFont=Kr.prototype.Sj;
Kr.prototype.setOffsetX=Kr.prototype.Yj;Kr.prototype.setOffsetY=Kr.prototype.Zj;Kr.prototype.setFill=Kr.prototype.Kf;Kr.prototype.setRotation=Kr.prototype.Hp;Kr.prototype.setScale=Kr.prototype.tj;Kr.prototype.setStroke=Kr.prototype.Lf;Kr.prototype.setText=Kr.prototype.Mf;Kr.prototype.setTextAlign=Kr.prototype.ak;Kr.prototype.setTextBaseline=Kr.prototype.wr;r("ol.source.BingMaps",cy);r("ol.source.BingMaps.TOS_ATTRIBUTION",dy);cy.prototype.getApiKey=cy.prototype.X;cy.prototype.getImagerySet=cy.prototype.$;
r("ol.source.CartoDB",fy);fy.prototype.getConfig=fy.prototype.wl;fy.prototype.updateConfig=fy.prototype.Hr;fy.prototype.setConfig=fy.prototype.hr;r("ol.source.Cluster",O);O.prototype.getDistance=O.prototype.Po;O.prototype.getSource=O.prototype.vc;O.prototype.setDistance=O.prototype.Qo;O.prototype.setPause=O.prototype.tr;r("ol.source.Image",yk);Ak.prototype.image=Ak.prototype.image;r("ol.source.ImageArcGISRest",ly);ly.prototype.getParams=ly.prototype.So;ly.prototype.getImageLoadFunction=ly.prototype.Ro;
ly.prototype.getUrl=ly.prototype.To;ly.prototype.setImageLoadFunction=ly.prototype.Uo;ly.prototype.setUrl=ly.prototype.Vo;ly.prototype.updateParams=ly.prototype.Wo;r("ol.source.ImageCanvas",Fk);r("ol.source.ImageMapGuide",my);my.prototype.getParams=my.prototype.Yo;my.prototype.getImageLoadFunction=my.prototype.Xo;my.prototype.updateParams=my.prototype.$o;my.prototype.setImageLoadFunction=my.prototype.Zo;r("ol.source.ImageStatic",ny);r("ol.source.ImageVector",Gk);Gk.prototype.getSource=Gk.prototype.vc;
Gk.prototype.getStyle=Gk.prototype.ap;Gk.prototype.getStyleFunction=Gk.prototype.bp;Gk.prototype.setStyle=Gk.prototype.ij;r("ol.source.ImageWMS",oy);oy.prototype.getGetFeatureInfoUrl=oy.prototype.fp;oy.prototype.getParams=oy.prototype.hp;oy.prototype.getImageLoadFunction=oy.prototype.gp;oy.prototype.getUrl=oy.prototype.ip;oy.prototype.setImageLoadFunction=oy.prototype.jp;oy.prototype.setUrl=oy.prototype.kp;oy.prototype.updateParams=oy.prototype.lp;r("ol.source.OSM",sy);
r("ol.source.OSM.ATTRIBUTION",ty);r("ol.source.Raster",uy);uy.prototype.setOperation=uy.prototype.B;yy.prototype.extent=yy.prototype.extent;yy.prototype.resolution=yy.prototype.resolution;yy.prototype.data=yy.prototype.data;r("ol.source.Source",vi);vi.prototype.getAttributions=vi.prototype.Ea;vi.prototype.getLogo=vi.prototype.Ca;vi.prototype.getProjection=vi.prototype.Fa;vi.prototype.getState=vi.prototype.getState;vi.prototype.refresh=vi.prototype.Aa;vi.prototype.setAttributions=vi.prototype.za;
r("ol.source.Stamen",By);r("ol.source.Tile",yi);yi.prototype.getTileGrid=yi.prototype.fb;Bi.prototype.tile=Bi.prototype.tile;r("ol.source.TileArcGISRest",Fy);Fy.prototype.getParams=Fy.prototype.v;Fy.prototype.updateParams=Fy.prototype.B;r("ol.source.TileDebug",Hy);r("ol.source.TileImage",A);A.prototype.setRenderReprojectionEdges=A.prototype.Ub;A.prototype.setTileGridForProjection=A.prototype.Vb;r("ol.source.TileJSON",Jy);Jy.prototype.getTileJSON=Jy.prototype.dm;r("ol.source.TileUTFGrid",Ky);
Ky.prototype.getTemplate=Ky.prototype.am;Ky.prototype.forDataAtCoordinateAndResolution=Ky.prototype.jl;r("ol.source.TileWMS",Oy);Oy.prototype.getGetFeatureInfoUrl=Oy.prototype.sp;Oy.prototype.getParams=Oy.prototype.tp;Oy.prototype.updateParams=Oy.prototype.vp;Ci.prototype.getTileLoadFunction=Ci.prototype.ub;Ci.prototype.getTileUrlFunction=Ci.prototype.wb;Ci.prototype.getUrls=Ci.prototype.xb;Ci.prototype.setTileLoadFunction=Ci.prototype.Bb;Ci.prototype.setTileUrlFunction=Ci.prototype.ib;
Ci.prototype.setUrl=Ci.prototype.pb;Ci.prototype.setUrls=Ci.prototype.jb;r("ol.source.Vector",J);J.prototype.addFeature=J.prototype.Eb;J.prototype.addFeatures=J.prototype.yd;J.prototype.clear=J.prototype.clear;J.prototype.forEachFeature=J.prototype.Vh;J.prototype.forEachFeatureInExtent=J.prototype.oc;J.prototype.forEachFeatureIntersectingExtent=J.prototype.Wh;J.prototype.getFeaturesCollection=J.prototype.ci;J.prototype.getFeatures=J.prototype.Rc;J.prototype.getFeaturesAtCoordinate=J.prototype.bi;
J.prototype.getFeaturesInExtent=J.prototype.qg;J.prototype.getClosestFeatureToCoordinate=J.prototype.Zh;J.prototype.getExtent=J.prototype.D;J.prototype.getFeatureById=J.prototype.pg;J.prototype.getFormat=J.prototype.nj;J.prototype.getUrl=J.prototype.oj;J.prototype.removeFeature=J.prototype.Ib;Pj.prototype.feature=Pj.prototype.feature;r("ol.source.VectorTile",Vy);r("ol.source.WMTS",Z);Z.prototype.getDimensions=Z.prototype.Al;Z.prototype.getFormat=Z.prototype.wp;Z.prototype.getLayer=Z.prototype.xp;
Z.prototype.getMatrixSet=Z.prototype.Ol;Z.prototype.getRequestEncoding=Z.prototype.Zl;Z.prototype.getStyle=Z.prototype.yp;Z.prototype.getVersion=Z.prototype.gm;Z.prototype.updateDimensions=Z.prototype.Ir;
r("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c=ed(a.Contents.Layer,function(a){return a.Identifier==b.layer});if(null===c)return null;var d=a.Contents.TileMatrixSet;var e=1<c.TileMatrixSetLink.length?"projection"in b?hd(c.TileMatrixSetLink,function(a){var c=ed(d,function(b){return b.Identifier==a.TileMatrixSet}).SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"),e=Gc(c),f=Gc(b.projection);return e&&f?Pc(e,f):c==b.projection}):hd(c.TileMatrixSetLink,function(a){return a.TileMatrixSet==
b.matrixSet}):0;0>e&&(e=0);var f=c.TileMatrixSetLink[e].TileMatrixSet;var g=c.TileMatrixSetLink[e].TileMatrixSetLimits;var h=c.Format[0];"format"in b&&(h=b.format);e=hd(c.Style,function(a){return"style"in b?a.Title==b.style:a.isDefault});0>e&&(e=0);e=c.Style[e].Identifier;var l={};"Dimension"in c&&c.Dimension.forEach(function(a){var b=a.Identifier,c=a.Default;void 0===c&&(c=a.Value[0]);l[b]=c});var m=ed(a.Contents.TileMatrixSet,function(a){return a.Identifier==f});var n="projection"in b?Gc(b.projection):
Gc(m.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var p=c.WGS84BoundingBox;if(void 0!==p){var q=Gc("EPSG:4326").D();q=p[0]==q[0]&&p[2]==q[2];var t=Tc(p,"EPSG:4326",n);(p=n.D())&&(pb(p,t)||(t=void 0))}g=Xy(m,t,g);var u=[];m=b.requestEncoding;m=void 0!==m?m:"";if("OperationsMetadata"in a&&"GetTile"in a.OperationsMetadata)for(a=a.OperationsMetadata.GetTile.DCP.HTTP.Get,t=0,p=a.length;t<p;++t){var w=ed(a[t].Constraint,function(a){return"GetEncoding"==a.name}).AllowedValues.Value;
""===m&&(m=w[0]);if("KVP"===m)bd(w,"KVP")&&u.push(a[t].href);else break}0===u.length&&(m="REST",c.ResourceURL.forEach(function(a){"tile"===a.resourceType&&(h=a.format,u.push(a.template))}));return{urls:u,layer:b.layer,matrixSet:f,format:h,projection:n,requestEncoding:m,tileGrid:g,style:e,dimensions:l,wrapX:q,crossOrigin:b.crossOrigin}});r("ol.source.XYZ",ey);r("ol.source.Zoomify",Zy);Cd.prototype.vectorContext=Cd.prototype.vectorContext;Cd.prototype.frameState=Cd.prototype.frameState;
Cd.prototype.context=Cd.prototype.context;Cd.prototype.glContext=Cd.prototype.glContext;Pt.prototype.get=Pt.prototype.get;Pt.prototype.getExtent=Pt.prototype.D;Pt.prototype.getGeometry=Pt.prototype.V;Pt.prototype.getProperties=Pt.prototype.L;Pt.prototype.getType=Pt.prototype.T;r("ol.render.VectorContext",oe);Ah.prototype.setStyle=Ah.prototype.Id;Ah.prototype.drawGeometry=Ah.prototype.Ac;Ah.prototype.drawFeature=Ah.prototype.Re;Be.prototype.drawCircle=Be.prototype.nc;Be.prototype.setStyle=Be.prototype.Id;
Be.prototype.drawGeometry=Be.prototype.Ac;Be.prototype.drawFeature=Be.prototype.Re;r("ol.proj.common.add",Uc);r("ol.proj.Projection",mc);mc.prototype.getCode=mc.prototype.vl;mc.prototype.getExtent=mc.prototype.D;mc.prototype.getUnits=mc.prototype.Pb;mc.prototype.getMetersPerUnit=mc.prototype.dc;mc.prototype.getWorldExtent=mc.prototype.im;mc.prototype.isGlobal=mc.prototype.Um;mc.prototype.setGlobal=mc.prototype.kr;mc.prototype.setExtent=mc.prototype.Mo;mc.prototype.setWorldExtent=mc.prototype.zr;
mc.prototype.setGetPointResolution=mc.prototype.jr;r("ol.proj.Units.METERS_PER_UNIT",kc);r("ol.layer.Base",Ub);Ub.prototype.getExtent=Ub.prototype.D;Ub.prototype.getMaxResolution=Ub.prototype.tc;Ub.prototype.getMinResolution=Ub.prototype.uc;Ub.prototype.getOpacity=Ub.prototype.La;Ub.prototype.getVisible=Ub.prototype.lb;Ub.prototype.getZIndex=Ub.prototype.Da;Ub.prototype.setExtent=Ub.prototype.Oc;Ub.prototype.setMaxResolution=Ub.prototype.Sc;Ub.prototype.setMinResolution=Ub.prototype.Tc;
Ub.prototype.setOpacity=Ub.prototype.Pc;Ub.prototype.setVisible=Ub.prototype.ec;Ub.prototype.setZIndex=Ub.prototype.jc;r("ol.layer.Group",Wb);Wb.prototype.getLayers=Wb.prototype.Tb;Wb.prototype.setLayers=Wb.prototype.Yi;r("ol.layer.Heatmap",X);X.prototype.getBlur=X.prototype.Yh;X.prototype.getGradient=X.prototype.di;X.prototype.getRadius=X.prototype.Zi;X.prototype.setBlur=X.prototype.Oj;X.prototype.setGradient=X.prototype.Uj;X.prototype.setRadius=X.prototype.qd;r("ol.layer.Image",rl);
rl.prototype.getSource=rl.prototype.ba;r("ol.layer.Layer",Vc);Vc.prototype.getSource=Vc.prototype.ba;Vc.prototype.setMap=Vc.prototype.setMap;Vc.prototype.setSource=Vc.prototype.rd;r("ol.layer.Tile",Sh);Sh.prototype.getPreload=Sh.prototype.ke;Sh.prototype.getSource=Sh.prototype.ba;Sh.prototype.setPreload=Sh.prototype.$i;Sh.prototype.getUseInterimTilesOnError=Sh.prototype.oe;Sh.prototype.setUseInterimTilesOnError=Sh.prototype.aj;r("ol.layer.Vector",N);N.prototype.getSource=N.prototype.ba;
N.prototype.getStyle=N.prototype.B;N.prototype.getStyleFunction=N.prototype.G;N.prototype.setStyle=N.prototype.f;r("ol.layer.VectorTile",Y);Y.prototype.getPreload=Y.prototype.ke;Y.prototype.getUseInterimTilesOnError=Y.prototype.oe;Y.prototype.setPreload=Y.prototype.bj;Y.prototype.setUseInterimTilesOnError=Y.prototype.cj;r("ol.interaction.DoubleClickZoom",un);r("ol.interaction.DoubleClickZoom.handleEvent",vn);r("ol.interaction.DragAndDrop",Cw);r("ol.interaction.DragAndDrop.handleEvent",Ad);
Fw.prototype.features=Fw.prototype.features;Fw.prototype.file=Fw.prototype.file;Fw.prototype.projection=Fw.prototype.projection;r("ol.interaction.DragBox",Tn);Tn.prototype.getGeometry=Tn.prototype.V;Yn.prototype.coordinate=Yn.prototype.coordinate;Yn.prototype.mapBrowserEvent=Yn.prototype.mapBrowserEvent;r("ol.interaction.DragPan",In);r("ol.interaction.DragRotate",Mn);r("ol.interaction.DragRotateAndZoom",Hw);r("ol.interaction.DragZoom",bo);r("ol.interaction.Draw",Lw);
r("ol.interaction.Draw.handleEvent",Nw);Lw.prototype.removeLastPoint=Lw.prototype.Zq;Lw.prototype.finishDrawing=Lw.prototype.ie;Lw.prototype.extend=Lw.prototype.po;r("ol.interaction.Draw.createRegularPolygon",function(a,b){return function(c,d){var e=c[0];c=c[1];var f=Math.sqrt(wd(e,c));d=d?d:cl(new rw(e),a);dl(d,e,f,b?b:Math.atan((c[1]-e[1])/(c[0]-e[0])));return d}});
r("ol.interaction.Draw.createBox",function(){return function(a,b){a=hb(a);b=b||new M(null);b.ua([[yb(a),zb(a),Ab(a),Bb(a),yb(a)]]);return b}});ax.prototype.feature=ax.prototype.feature;r("ol.interaction.Extent",bx);bx.prototype.getExtent=bx.prototype.D;bx.prototype.setExtent=bx.prototype.f;mx.prototype.extent_=mx.prototype.b;r("ol.interaction.Interaction",qn);qn.prototype.getActive=qn.prototype.c;qn.prototype.getMap=qn.prototype.i;qn.prototype.setActive=qn.prototype.Na;
r("ol.interaction.KeyboardPan",co);r("ol.interaction.KeyboardPan.handleEvent",eo);r("ol.interaction.KeyboardZoom",fo);r("ol.interaction.KeyboardZoom.handleEvent",go);r("ol.interaction.Modify",ox);r("ol.interaction.Modify.handleEvent",rx);ox.prototype.removePoint=ox.prototype.Mj;wx.prototype.features=wx.prototype.features;wx.prototype.mapBrowserEvent=wx.prototype.mapBrowserEvent;r("ol.interaction.MouseWheelZoom",ho);r("ol.interaction.MouseWheelZoom.handleEvent",io);ho.prototype.setMouseAnchor=ho.prototype.aa;
r("ol.interaction.PinchRotate",lo);r("ol.interaction.PinchZoom",po);r("ol.interaction.Pointer",Fn);r("ol.interaction.Pointer.handleEvent",Gn);r("ol.interaction.Select",Ex);Ex.prototype.getFeatures=Ex.prototype.zo;Ex.prototype.getHitTolerance=Ex.prototype.Ao;Ex.prototype.getLayer=Ex.prototype.Bo;r("ol.interaction.Select.handleEvent",Fx);Ex.prototype.setHitTolerance=Ex.prototype.Do;Ex.prototype.setMap=Ex.prototype.setMap;Hx.prototype.selected=Hx.prototype.selected;Hx.prototype.deselected=Hx.prototype.deselected;
Hx.prototype.mapBrowserEvent=Hx.prototype.mapBrowserEvent;r("ol.interaction.Snap",Jx);Jx.prototype.addFeature=Jx.prototype.Eb;Jx.prototype.removeFeature=Jx.prototype.Ib;r("ol.interaction.Translate",Nx);Nx.prototype.getHitTolerance=Nx.prototype.G;Nx.prototype.setHitTolerance=Nx.prototype.N;Tx.prototype.features=Tx.prototype.features;Tx.prototype.coordinate=Tx.prototype.coordinate;r("ol.geom.Circle",rw);rw.prototype.clone=rw.prototype.clone;rw.prototype.getCenter=rw.prototype.va;
rw.prototype.getRadius=rw.prototype.Gd;rw.prototype.getType=rw.prototype.T;rw.prototype.intersectsExtent=rw.prototype.bb;rw.prototype.setCenter=rw.prototype.cb;rw.prototype.setCenterAndRadius=rw.prototype.qh;rw.prototype.setRadius=rw.prototype.qd;rw.prototype.transform=rw.prototype.transform;r("ol.geom.Geometry",Od);Od.prototype.getClosestPoint=Od.prototype.Fb;Od.prototype.intersectsCoordinate=Od.prototype.yb;Od.prototype.getExtent=Od.prototype.D;Od.prototype.rotate=Od.prototype.rotate;
Od.prototype.scale=Od.prototype.scale;Od.prototype.simplify=Od.prototype.Wb;Od.prototype.transform=Od.prototype.transform;r("ol.geom.GeometryCollection",zq);zq.prototype.clone=zq.prototype.clone;zq.prototype.getGeometries=zq.prototype.Xe;zq.prototype.getType=zq.prototype.T;zq.prototype.intersectsExtent=zq.prototype.bb;zq.prototype.setGeometries=zq.prototype.Tj;zq.prototype.applyTransform=zq.prototype.yc;zq.prototype.translate=zq.prototype.translate;r("ol.geom.LinearRing",Yk);Yk.prototype.clone=Yk.prototype.clone;
Yk.prototype.getArea=Yk.prototype.ko;Yk.prototype.getCoordinates=Yk.prototype.U;Yk.prototype.getType=Yk.prototype.T;Yk.prototype.setCoordinates=Yk.prototype.ua;r("ol.geom.LineString",K);K.prototype.appendCoordinate=K.prototype.Wk;K.prototype.clone=K.prototype.clone;K.prototype.forEachSegment=K.prototype.ml;K.prototype.getCoordinateAtM=K.prototype.io;K.prototype.getCoordinates=K.prototype.U;K.prototype.getCoordinateAt=K.prototype.$h;K.prototype.getLength=K.prototype.jo;K.prototype.getType=K.prototype.T;
K.prototype.intersectsExtent=K.prototype.bb;K.prototype.setCoordinates=K.prototype.ua;r("ol.geom.MultiLineString",R);R.prototype.appendLineString=R.prototype.Xk;R.prototype.clone=R.prototype.clone;R.prototype.getCoordinateAtM=R.prototype.lo;R.prototype.getCoordinates=R.prototype.U;R.prototype.getLineString=R.prototype.Ml;R.prototype.getLineStrings=R.prototype.Hc;R.prototype.getType=R.prototype.T;R.prototype.intersectsExtent=R.prototype.bb;R.prototype.setCoordinates=R.prototype.ua;
r("ol.geom.MultiPoint",T);T.prototype.appendPoint=T.prototype.Zk;T.prototype.clone=T.prototype.clone;T.prototype.getCoordinates=T.prototype.U;T.prototype.getPoint=T.prototype.mo;T.prototype.getPoints=T.prototype.Hd;T.prototype.getType=T.prototype.T;T.prototype.intersectsExtent=T.prototype.bb;T.prototype.setCoordinates=T.prototype.ua;r("ol.geom.MultiPolygon",U);U.prototype.appendPolygon=U.prototype.$k;U.prototype.clone=U.prototype.clone;U.prototype.getArea=U.prototype.no;
U.prototype.getCoordinates=U.prototype.U;U.prototype.getInteriorPoints=U.prototype.Il;U.prototype.getPolygon=U.prototype.Yl;U.prototype.getPolygons=U.prototype.bd;U.prototype.getType=U.prototype.T;U.prototype.intersectsExtent=U.prototype.bb;U.prototype.setCoordinates=U.prototype.ua;r("ol.geom.Point",L);L.prototype.clone=L.prototype.clone;L.prototype.getCoordinates=L.prototype.U;L.prototype.getType=L.prototype.T;L.prototype.intersectsExtent=L.prototype.bb;L.prototype.setCoordinates=L.prototype.ua;
r("ol.geom.Polygon",M);M.prototype.appendLinearRing=M.prototype.Yk;M.prototype.clone=M.prototype.clone;M.prototype.getArea=M.prototype.oo;M.prototype.getCoordinates=M.prototype.U;M.prototype.getInteriorPoint=M.prototype.Hl;M.prototype.getLinearRingCount=M.prototype.Nl;M.prototype.getLinearRing=M.prototype.ug;M.prototype.getLinearRings=M.prototype.Ic;M.prototype.getType=M.prototype.T;M.prototype.intersectsExtent=M.prototype.bb;M.prototype.setCoordinates=M.prototype.ua;
r("ol.geom.Polygon.circular",al);r("ol.geom.Polygon.fromExtent",bl);r("ol.geom.Polygon.fromCircle",cl);r("ol.geom.SimpleGeometry",Rd);Rd.prototype.getFirstCoordinate=Rd.prototype.ac;Rd.prototype.getLastCoordinate=Rd.prototype.pc;Rd.prototype.getLayout=Rd.prototype.qc;Rd.prototype.applyTransform=Rd.prototype.yc;Rd.prototype.translate=Rd.prototype.translate;r("ol.format.CityGML",Tp);r("ol.format.EsriJSON",Wp);Wp.prototype.readFeature=Wp.prototype.hc;Wp.prototype.readFeatures=Wp.prototype.Oa;
Wp.prototype.readGeometry=Wp.prototype.od;Wp.prototype.readProjection=Wp.prototype.hb;Wp.prototype.writeGeometry=Wp.prototype.wd;Wp.prototype.writeGeometryObject=Wp.prototype.Ge;Wp.prototype.writeFeature=Wp.prototype.Ud;Wp.prototype.writeFeatureObject=Wp.prototype.vd;Wp.prototype.writeFeatures=Wp.prototype.Xb;Wp.prototype.writeFeaturesObject=Wp.prototype.Ee;r("ol.format.Feature",np);r("ol.format.filter.and",wq);
r("ol.format.filter.or",function(a){var b=[null].concat(Array.prototype.slice.call(arguments));return new (Function.prototype.bind.apply(uq,b))});r("ol.format.filter.not",function(a){return new sq(a)});r("ol.format.filter.bbox",xq);r("ol.format.filter.intersects",function(a,b,c){return new mq(a,b,c)});r("ol.format.filter.within",function(a,b,c){return new vq(a,b,c)});r("ol.format.filter.equalTo",function(a,b,c){return new iq(a,b,c)});
r("ol.format.filter.notEqualTo",function(a,b,c){return new tq(a,b,c)});r("ol.format.filter.lessThan",function(a,b){return new qq(a,b)});r("ol.format.filter.lessThanOrEqualTo",function(a,b){return new rq(a,b)});r("ol.format.filter.greaterThan",function(a,b){return new jq(a,b)});r("ol.format.filter.greaterThanOrEqualTo",function(a,b){return new kq(a,b)});r("ol.format.filter.isNull",function(a){return new pq(a)});r("ol.format.filter.between",function(a,b,c){return new nq(a,b,c)});
r("ol.format.filter.like",function(a,b,c,d,e,f){return new oq(a,b,c,d,e,f)});r("ol.format.GeoJSON",Dq);Dq.prototype.readFeature=Dq.prototype.hc;Dq.prototype.readFeatures=Dq.prototype.Oa;Dq.prototype.readGeometry=Dq.prototype.od;Dq.prototype.readProjection=Dq.prototype.hb;Dq.prototype.writeFeature=Dq.prototype.Ud;Dq.prototype.writeFeatureObject=Dq.prototype.vd;Dq.prototype.writeFeatures=Dq.prototype.Xb;Dq.prototype.writeFeaturesObject=Dq.prototype.Ee;Dq.prototype.writeGeometry=Dq.prototype.wd;
Dq.prototype.writeGeometryObject=Dq.prototype.Ge;r("ol.format.GML",W);W.prototype.writeFeatures=W.prototype.Xb;W.prototype.writeFeaturesNode=W.prototype.kc;r("ol.format.GML2",Iq);r("ol.format.GML3",W);W.prototype.writeGeometryNode=W.prototype.Fe;W.prototype.writeFeatures=W.prototype.Xb;W.prototype.writeFeaturesNode=W.prototype.kc;xp.prototype.readFeatures=xp.prototype.Oa;r("ol.format.GPX",Tq);Tq.prototype.readFeature=Tq.prototype.hc;Tq.prototype.readFeatures=Tq.prototype.Oa;
Tq.prototype.readProjection=Tq.prototype.hb;Tq.prototype.writeFeatures=Tq.prototype.Xb;Tq.prototype.writeFeaturesNode=Tq.prototype.kc;r("ol.format.IGC",Dr);Dr.prototype.readFeature=Dr.prototype.hc;Dr.prototype.readFeatures=Dr.prototype.Oa;Dr.prototype.readProjection=Dr.prototype.hb;r("ol.format.KML",Lr);Lr.prototype.readFeature=Lr.prototype.hc;Lr.prototype.readFeatures=Lr.prototype.Oa;Lr.prototype.readName=Lr.prototype.Eq;Lr.prototype.readNetworkLinks=Lr.prototype.Fq;Lr.prototype.readRegion=Lr.prototype.Kq;
Lr.prototype.readRegionFromNode=Lr.prototype.Hf;Lr.prototype.readProjection=Lr.prototype.hb;Lr.prototype.writeFeatures=Lr.prototype.Xb;Lr.prototype.writeFeaturesNode=Lr.prototype.kc;r("ol.format.MVT",Qt);Qt.prototype.readFeatures=Qt.prototype.Oa;Qt.prototype.readProjection=Qt.prototype.hb;Qt.prototype.setLayers=Qt.prototype.ho;r("ol.format.OSMXML",St);St.prototype.readFeatures=St.prototype.Oa;St.prototype.readProjection=St.prototype.hb;r("ol.format.Polyline",qu);
r("ol.format.Polyline.encodeDeltas",ru);r("ol.format.Polyline.decodeDeltas",tu);r("ol.format.Polyline.encodeFloats",su);r("ol.format.Polyline.decodeFloats",uu);qu.prototype.readFeature=qu.prototype.hc;qu.prototype.readFeatures=qu.prototype.Oa;qu.prototype.readGeometry=qu.prototype.od;qu.prototype.readProjection=qu.prototype.hb;qu.prototype.writeGeometry=qu.prototype.wd;r("ol.format.TopoJSON",vu);vu.prototype.readFeatures=vu.prototype.Oa;vu.prototype.readProjection=vu.prototype.hb;
r("ol.format.WFS",Bu);Bu.prototype.readFeatures=Bu.prototype.Oa;Bu.prototype.readTransactionResponse=Bu.prototype.l;Bu.prototype.readFeatureCollectionMetadata=Bu.prototype.j;r("ol.format.WFS.writeFilter",function(a){var b=rj("http://www.opengis.net/ogc","Filter");Hj({node:b},Pu,Cj(a.Kb),[a],[]);return b});Bu.prototype.writeGetFeature=Bu.prototype.o;Bu.prototype.writeTransaction=Bu.prototype.s;Bu.prototype.readProjection=Bu.prototype.hb;r("ol.format.WFS2",Uu);Uu.prototype.readFeatures=Uu.prototype.Oa;
Uu.prototype.readTransactionResponse=Uu.prototype.o;Uu.prototype.readFeatureCollectionMetadata=Uu.prototype.l;Uu.prototype.writeGetFeature=Uu.prototype.s;Uu.prototype.writeTransaction=Uu.prototype.I;Uu.prototype.readProjection=Uu.prototype.hb;r("ol.format.WKT",lv);lv.prototype.readFeature=lv.prototype.hc;lv.prototype.readFeatures=lv.prototype.Oa;lv.prototype.readGeometry=lv.prototype.od;lv.prototype.writeFeature=lv.prototype.Ud;lv.prototype.writeFeatures=lv.prototype.Xb;
lv.prototype.writeGeometry=lv.prototype.wd;r("ol.format.WMSCapabilities",Ev);Ev.prototype.read=Ev.prototype.read;r("ol.format.WMSGetFeatureInfo",aw);aw.prototype.readFeatures=aw.prototype.Oa;r("ol.format.WMTSCapabilities",bw);bw.prototype.read=bw.prototype.read;r("ol.format.filter.And",eq);r("ol.format.filter.Bbox",fq);r("ol.format.filter.Comparison",gq);r("ol.format.filter.ComparisonBinary",hq);r("ol.format.filter.DWithin",yq);r("ol.format.filter.EqualTo",iq);r("ol.format.filter.Filter",cq);
r("ol.format.filter.GreaterThan",jq);r("ol.format.filter.GreaterThanOrEqualTo",kq);r("ol.format.filter.Intersects",mq);r("ol.format.filter.IsBetween",nq);r("ol.format.filter.IsLike",oq);r("ol.format.filter.IsNull",pq);r("ol.format.filter.LessThan",qq);r("ol.format.filter.LessThanOrEqualTo",rq);r("ol.format.filter.Not",sq);r("ol.format.filter.NotEqualTo",tq);r("ol.format.filter.Or",uq);r("ol.format.filter.Spatial",lq);r("ol.format.filter.Within",vq);
r("ol.events.condition.altKeyOnly",function(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey});r("ol.events.condition.altShiftKeysOnly",wn);r("ol.events.condition.always",Ad);r("ol.events.condition.click",function(a){return"click"==a.type});r("ol.events.condition.never",Bd);r("ol.events.condition.pointerMove",yn);r("ol.events.condition.singleClick",zn);r("ol.events.condition.doubleClick",function(a){return"dblclick"==a.type});r("ol.events.condition.noModifierKeys",An);
r("ol.events.condition.platformModifierKeyOnly",function(a){a=a.originalEvent;return!a.altKey&&(be?a.metaKey:a.ctrlKey)&&!a.shiftKey});r("ol.events.condition.shiftKeyOnly",Bn);r("ol.events.condition.targetNotEditable",Cn);r("ol.events.condition.mouseOnly",Dn);r("ol.events.condition.primaryAction",En);Na.prototype.type=Na.prototype.type;Na.prototype.target=Na.prototype.target;Na.prototype.preventDefault=Na.prototype.preventDefault;Na.prototype.stopPropagation=Na.prototype.stopPropagation;
r("ol.control.Attribution",Rl);r("ol.control.Attribution.render",Sl);Rl.prototype.getCollapsible=Rl.prototype.On;Rl.prototype.setCollapsible=Rl.prototype.Rn;Rl.prototype.setCollapsed=Rl.prototype.Qn;Rl.prototype.getCollapsed=Rl.prototype.Nn;r("ol.control.Control",Ql);Ql.prototype.getMap=Ql.prototype.i;Ql.prototype.setMap=Ql.prototype.setMap;Ql.prototype.setTarget=Ql.prototype.c;r("ol.control.FullScreen",am);r("ol.control.MousePosition",fm);r("ol.control.MousePosition.render",gm);
fm.prototype.getCoordinateFormat=fm.prototype.ai;fm.prototype.getProjection=fm.prototype.Bi;fm.prototype.setCoordinateFormat=fm.prototype.Pj;fm.prototype.setProjection=fm.prototype.Ci;r("ol.control.OverviewMap",So);r("ol.control.OverviewMap.render",To);So.prototype.getCollapsible=So.prototype.Un;So.prototype.setCollapsible=So.prototype.Xn;So.prototype.setCollapsed=So.prototype.Wn;So.prototype.getCollapsed=So.prototype.Tn;So.prototype.getOverviewMap=So.prototype.Wl;r("ol.control.Rotate",Xl);
r("ol.control.Rotate.render",Yl);r("ol.control.ScaleLine",Xo);Xo.prototype.getUnits=Xo.prototype.Pb;r("ol.control.ScaleLine.render",Yo);Xo.prototype.setUnits=Xo.prototype.B;r("ol.control.Zoom",Zl);r("ol.control.ZoomSlider",bp);r("ol.control.ZoomSlider.render",dp);r("ol.control.ZoomToExtent",gp);r("olcs.AbstractSynchronizer",Yb);Yb.prototype.synchronize=Yb.prototype.vh;Yb.prototype.addCesiumObject=Yb.prototype.Oe;Yb.prototype.destroyCesiumObject=Yb.prototype.jg;
Yb.prototype.createSingleLayerCounterparts=Yb.prototype.Zd;ec.prototype.restartRenderLoop=ec.prototype.s;ec.prototype.setDebug=ec.prototype.Ba;r("olcs.Camera",Xi);Xi.prototype.setHeading=Xi.prototype.lr;Xi.prototype.getHeading=Xi.prototype.Mp;Xi.prototype.setTilt=Xi.prototype.xr;Xi.prototype.getTilt=Xi.prototype.fm;Xi.prototype.setDistance=Xi.prototype.Pp;Xi.prototype.getDistance=Xi.prototype.Lp;Xi.prototype.setCenter=Xi.prototype.cb;Xi.prototype.getCenter=Xi.prototype.va;
Xi.prototype.setPosition=Xi.prototype.Qp;Xi.prototype.getPosition=Xi.prototype.Np;Xi.prototype.setAltitude=Xi.prototype.fr;Xi.prototype.getAltitude=Xi.prototype.yj;Xi.prototype.lookAt=Xi.prototype.Op;Xi.prototype.readFromView=Xi.prototype.we;Xi.prototype.updateView=Xi.prototype.td;r("olcs.ClusterConverter",tl);tl.prototype.setLayerStyle=tl.prototype.i;
r("olcs.core.computePixelSizeAtCoordinate",function(a,b){var c=a.camera;a=a.canvas;var d=c.frustum;b=Cesium.Cartesian3.magnitude(Cesium.Cartesian3.subtract(c.position,b,new Cesium.Cartesian3));c=new Cesium.Cartesian2;return d.getPixelDimensions(a.clientWidth,a.clientHeight,b,c)});r("olcs.core.applyHeightOffsetToGeometry",function(a,b){a.yc(function(a,d,e){if(void 0!==e&&3<=e)for(a=0;a<d.length;a+=e)d[a+2]+=b;return d})});r("olcs.core.rotateAroundAxis",Ji);
r("olcs.core.setHeadingUsingBottomCenter",function(a,b,c,d){var e=a.camera;a=Oi(a,c);a=Cesium.Quaternion.fromAxisAngle(e.right,a);var f=Cesium.Matrix3.fromQuaternion(a),g=new Cesium.Cartesian3;Cesium.Cartesian3.subtract(e.position,c,g);a=new Cesium.Cartesian3;Cesium.Matrix3.multiplyByVector(f,g,a);Cesium.Cartesian3.add(a,c,a);c=Cesium.Matrix4.fromTranslation(a);Ji(e,b,a,c,d)});r("olcs.core.pickOnTerrainOrEllipsoid",Li);
r("olcs.core.pickBottomPoint",function(a){var b=a.canvas;b=new Cesium.Cartesian2(b.clientWidth/2,b.clientHeight);return Li(a,b)});r("olcs.core.pickCenterPoint",Mi);
r("olcs.core.computeSignedTiltAngleOnGlobe",function(a){var b=a.camera,c=new Cesium.Ray(b.position,b.direction);a=a.globe.pick(c,a);if(!a){var d=Cesium.IntersectionTests.rayEllipsoid(c,Cesium.Ellipsoid.WGS84);d&&(a=Cesium.Ray.getPoint(c,d.start))}if(a)return c=new Cesium.Cartesian3,Cesium.Ellipsoid.WGS84.geocentricSurfaceNormal(a,c),b=Ni(b.direction,c,b.right)-Math.PI,Cesium.Math.convertLongitudeRange(b)});r("olcs.core.computeAngleToZenith",Oi);r("olcs.core.lookAt",Pi);
r("olcs.core.extentToRectangle",Qi);r("olcs.core.tileLayerToImageryLayer",Ri);r("olcs.core.updateCesiumLayerProperties",Si);r("olcs.core.ol4326CoordinateToCesiumCartesian",Ti);r("olcs.core.ol4326CoordinateArrayToCsCartesians",Ui);r("olcs.core.olGeometryCloneTo4326",Vi);r("olcs.core.convertColorToCesium",Wi);
r("olcs.core.convertUrlToCesium",function(a){var b="",c=/\{(\d|[a-z])-(\d|[a-z])\}/,d=c.exec(a);if(d)for(a=a.replace(c,"{s}"),c=d[2].charCodeAt(0),d=d[1].charCodeAt(0);d<=c;++d)b+=String.fromCharCode(d);return{url:a,subdomains:b}});r("olcs.FeatureConverter",fl);fl.prototype.csAddBillboard=fl.prototype.ig;fl.prototype.olCircleGeometryToCesium=fl.prototype.Cg;fl.prototype.olLineStringGeometryToCesium=fl.prototype.re;fl.prototype.olPolygonGeometryToCesium=fl.prototype.jf;
fl.prototype.getAllowPicking=fl.prototype.Cd;fl.prototype.getHeightReference=fl.prototype.bc;fl.prototype.getClassificationType=fl.prototype.Ve;fl.prototype.olPointGeometryToCesium=fl.prototype.se;fl.prototype.olMultiGeometryToCesium=fl.prototype.Eg;fl.prototype.olGeometry4326TextPartToCesium=fl.prototype.Dg;fl.prototype.olStyleToCesium=fl.prototype.te;fl.prototype.computePlainStyle=fl.prototype.Xd;fl.prototype.olFeatureToCesium=fl.prototype.fd;fl.prototype.olVectorLayerToCesium=fl.prototype.kf;
fl.prototype.convert=fl.prototype.convert;r("olcs.OLCesium",Il);Il.prototype.getCamera=Il.prototype.tl;Il.prototype.getOlMap=Il.prototype.Tl;Il.prototype.getCesiumScene=Il.prototype.ul;Il.prototype.getDataSources=Il.prototype.zl;Il.prototype.getDataSourceDisplay=Il.prototype.yl;Il.prototype.getEnabled=Il.prototype.Bl;Il.prototype.setEnabled=Il.prototype.ir;Il.prototype.warmUp=Il.prototype.Kr;Il.prototype.setBlockCesiumRendering=Il.prototype.ph;Il.prototype.enableAutoRenderLoop=Il.prototype.fl;
Il.prototype.getAutoRenderLoop=Il.prototype.rl;Il.prototype.setResolutionScale=Il.prototype.ur;Il.prototype.setTargetFrameRate=Il.prototype.vr;r("olcs.RasterSynchronizer",yl);r("olcs.VectorSynchronizer",Hl);Hl.prototype.addCesiumObject=Hl.prototype.Oe;Hl.prototype.createSingleLayerCounterparts=Hl.prototype.Zd;Hl.prototype.destroySingleLayerCounterparts=Hl.prototype.el;r("olcs.core.ClusterLayerCounterpart",sl);sl.prototype.getDataSource=sl.prototype.i;sl.prototype.setClustering=sl.prototype.f;
r("olcs.core.VectorLayerCounterpart",el);Wa.prototype.changed=Wa.prototype.u;Wa.prototype.dispatchEvent=Wa.prototype.b;Wa.prototype.getRevision=Wa.prototype.M;Wa.prototype.on=Wa.prototype.H;Wa.prototype.once=Wa.prototype.once;Wa.prototype.un=Wa.prototype.K;bb.prototype.get=bb.prototype.get;bb.prototype.getKeys=bb.prototype.P;bb.prototype.getProperties=bb.prototype.L;bb.prototype.set=bb.prototype.set;bb.prototype.setProperties=bb.prototype.J;bb.prototype.unset=bb.prototype.S;bb.prototype.changed=bb.prototype.u;
bb.prototype.dispatchEvent=bb.prototype.b;bb.prototype.getRevision=bb.prototype.M;bb.prototype.on=bb.prototype.H;bb.prototype.once=bb.prototype.once;bb.prototype.un=bb.prototype.K;fb.prototype.type=fb.prototype.type;fb.prototype.target=fb.prototype.target;fb.prototype.preventDefault=fb.prototype.preventDefault;fb.prototype.stopPropagation=fb.prototype.stopPropagation;hp.prototype.get=hp.prototype.get;hp.prototype.getKeys=hp.prototype.P;hp.prototype.getProperties=hp.prototype.L;hp.prototype.set=hp.prototype.set;
hp.prototype.setProperties=hp.prototype.J;hp.prototype.unset=hp.prototype.S;hp.prototype.changed=hp.prototype.u;hp.prototype.dispatchEvent=hp.prototype.b;hp.prototype.getRevision=hp.prototype.M;hp.prototype.on=hp.prototype.H;hp.prototype.once=hp.prototype.once;hp.prototype.un=hp.prototype.K;E.prototype.get=E.prototype.get;E.prototype.getKeys=E.prototype.P;E.prototype.getProperties=E.prototype.L;E.prototype.set=E.prototype.set;E.prototype.setProperties=E.prototype.J;E.prototype.unset=E.prototype.S;
E.prototype.changed=E.prototype.u;E.prototype.dispatchEvent=E.prototype.b;E.prototype.getRevision=E.prototype.M;E.prototype.on=E.prototype.H;E.prototype.once=E.prototype.once;E.prototype.un=E.prototype.K;qw.prototype.get=qw.prototype.get;qw.prototype.getKeys=qw.prototype.P;qw.prototype.getProperties=qw.prototype.L;qw.prototype.set=qw.prototype.set;qw.prototype.setProperties=qw.prototype.J;qw.prototype.unset=qw.prototype.S;qw.prototype.changed=qw.prototype.u;qw.prototype.dispatchEvent=qw.prototype.b;
qw.prototype.getRevision=qw.prototype.M;qw.prototype.on=qw.prototype.H;qw.prototype.once=qw.prototype.once;qw.prototype.un=qw.prototype.K;Uh.prototype.getTileCoord=Uh.prototype.i;Uh.prototype.load=Uh.prototype.load;Q.prototype.get=Q.prototype.get;Q.prototype.getKeys=Q.prototype.P;Q.prototype.getProperties=Q.prototype.L;Q.prototype.set=Q.prototype.set;Q.prototype.setProperties=Q.prototype.J;Q.prototype.unset=Q.prototype.S;Q.prototype.changed=Q.prototype.u;Q.prototype.dispatchEvent=Q.prototype.b;
Q.prototype.getRevision=Q.prototype.M;Q.prototype.on=Q.prototype.H;Q.prototype.once=Q.prototype.once;Q.prototype.un=Q.prototype.K;km.prototype.type=km.prototype.type;km.prototype.target=km.prototype.target;km.prototype.preventDefault=km.prototype.preventDefault;km.prototype.stopPropagation=km.prototype.stopPropagation;lm.prototype.map=lm.prototype.map;lm.prototype.frameState=lm.prototype.frameState;lm.prototype.type=lm.prototype.type;lm.prototype.target=lm.prototype.target;
lm.prototype.preventDefault=lm.prototype.preventDefault;lm.prototype.stopPropagation=lm.prototype.stopPropagation;nm.prototype.originalEvent=nm.prototype.originalEvent;nm.prototype.pixel=nm.prototype.pixel;nm.prototype.coordinate=nm.prototype.coordinate;nm.prototype.dragging=nm.prototype.dragging;nm.prototype.preventDefault=nm.prototype.preventDefault;nm.prototype.stopPropagation=nm.prototype.stopPropagation;nm.prototype.map=nm.prototype.map;nm.prototype.frameState=nm.prototype.frameState;
nm.prototype.type=nm.prototype.type;nm.prototype.target=nm.prototype.target;ab.prototype.type=ab.prototype.type;ab.prototype.target=ab.prototype.target;ab.prototype.preventDefault=ab.prototype.preventDefault;ab.prototype.stopPropagation=ab.prototype.stopPropagation;Jo.prototype.get=Jo.prototype.get;Jo.prototype.getKeys=Jo.prototype.P;Jo.prototype.getProperties=Jo.prototype.L;Jo.prototype.set=Jo.prototype.set;Jo.prototype.setProperties=Jo.prototype.J;Jo.prototype.unset=Jo.prototype.S;
Jo.prototype.changed=Jo.prototype.u;Jo.prototype.dispatchEvent=Jo.prototype.b;Jo.prototype.getRevision=Jo.prototype.M;Jo.prototype.on=Jo.prototype.H;Jo.prototype.once=Jo.prototype.once;Jo.prototype.un=Jo.prototype.K;Ty.prototype.getTileCoord=Ty.prototype.i;Ty.prototype.load=Ty.prototype.load;P.prototype.get=P.prototype.get;P.prototype.getKeys=P.prototype.P;P.prototype.getProperties=P.prototype.L;P.prototype.set=P.prototype.set;P.prototype.setProperties=P.prototype.J;P.prototype.unset=P.prototype.S;
P.prototype.changed=P.prototype.u;P.prototype.dispatchEvent=P.prototype.b;P.prototype.getRevision=P.prototype.M;P.prototype.on=P.prototype.H;P.prototype.once=P.prototype.once;P.prototype.un=P.prototype.K;Wy.prototype.forEachTileCoord=Wy.prototype.Xh;Wy.prototype.getMaxZoom=Wy.prototype.uj;Wy.prototype.getMinZoom=Wy.prototype.vj;Wy.prototype.getOrigin=Wy.prototype.kd;Wy.prototype.getResolution=Wy.prototype.Ra;Wy.prototype.getResolutions=Wy.prototype.wj;Wy.prototype.getTileCoordExtent=Wy.prototype.Ya;
Wy.prototype.getTileCoordForCoordAndResolution=Wy.prototype.$e;Wy.prototype.getTileCoordForCoordAndZ=Wy.prototype.yg;Wy.prototype.getTileSize=Wy.prototype.gb;Wy.prototype.getZForResolution=Wy.prototype.dd;cj.prototype.getOpacity=cj.prototype.La;cj.prototype.getRotateWithView=cj.prototype.zf;cj.prototype.getRotation=cj.prototype.Af;cj.prototype.getScale=cj.prototype.Ma;cj.prototype.getSnapToPixel=cj.prototype.Ze;cj.prototype.setOpacity=cj.prototype.Kd;cj.prototype.setRotation=cj.prototype.Bf;
cj.prototype.setScale=cj.prototype.Ld;ej.prototype.clone=ej.prototype.clone;ej.prototype.getAngle=ej.prototype.qj;ej.prototype.getFill=ej.prototype.qa;ej.prototype.getPoints=ej.prototype.rj;ej.prototype.getRadius=ej.prototype.sj;ej.prototype.getRadius2=ej.prototype.gi;ej.prototype.getStroke=ej.prototype.pa;ej.prototype.getOpacity=ej.prototype.La;ej.prototype.getRotateWithView=ej.prototype.zf;ej.prototype.getRotation=ej.prototype.Af;ej.prototype.getScale=ej.prototype.Ma;
ej.prototype.getSnapToPixel=ej.prototype.Ze;ej.prototype.setOpacity=ej.prototype.Kd;ej.prototype.setRotation=ej.prototype.Bf;ej.prototype.setScale=ej.prototype.Ld;ql.prototype.getOpacity=ql.prototype.La;ql.prototype.getRotateWithView=ql.prototype.zf;ql.prototype.getRotation=ql.prototype.Af;ql.prototype.getScale=ql.prototype.Ma;ql.prototype.getSnapToPixel=ql.prototype.Ze;ql.prototype.setOpacity=ql.prototype.Kd;ql.prototype.setRotation=ql.prototype.Bf;ql.prototype.setScale=ql.prototype.Ld;
vi.prototype.get=vi.prototype.get;vi.prototype.getKeys=vi.prototype.P;vi.prototype.getProperties=vi.prototype.L;vi.prototype.set=vi.prototype.set;vi.prototype.setProperties=vi.prototype.J;vi.prototype.unset=vi.prototype.S;vi.prototype.changed=vi.prototype.u;vi.prototype.dispatchEvent=vi.prototype.b;vi.prototype.getRevision=vi.prototype.M;vi.prototype.on=vi.prototype.H;vi.prototype.once=vi.prototype.once;vi.prototype.un=vi.prototype.K;yi.prototype.getAttributions=yi.prototype.Ea;
yi.prototype.getLogo=yi.prototype.Ca;yi.prototype.getProjection=yi.prototype.Fa;yi.prototype.getState=yi.prototype.getState;yi.prototype.refresh=yi.prototype.Aa;yi.prototype.setAttributions=yi.prototype.za;yi.prototype.get=yi.prototype.get;yi.prototype.getKeys=yi.prototype.P;yi.prototype.getProperties=yi.prototype.L;yi.prototype.set=yi.prototype.set;yi.prototype.setProperties=yi.prototype.J;yi.prototype.unset=yi.prototype.S;yi.prototype.changed=yi.prototype.u;yi.prototype.dispatchEvent=yi.prototype.b;
yi.prototype.getRevision=yi.prototype.M;yi.prototype.on=yi.prototype.H;yi.prototype.once=yi.prototype.once;yi.prototype.un=yi.prototype.K;Ci.prototype.getTileGrid=Ci.prototype.fb;Ci.prototype.refresh=Ci.prototype.Aa;Ci.prototype.getAttributions=Ci.prototype.Ea;Ci.prototype.getLogo=Ci.prototype.Ca;Ci.prototype.getProjection=Ci.prototype.Fa;Ci.prototype.getState=Ci.prototype.getState;Ci.prototype.setAttributions=Ci.prototype.za;Ci.prototype.get=Ci.prototype.get;Ci.prototype.getKeys=Ci.prototype.P;
Ci.prototype.getProperties=Ci.prototype.L;Ci.prototype.set=Ci.prototype.set;Ci.prototype.setProperties=Ci.prototype.J;Ci.prototype.unset=Ci.prototype.S;Ci.prototype.changed=Ci.prototype.u;Ci.prototype.dispatchEvent=Ci.prototype.b;Ci.prototype.getRevision=Ci.prototype.M;Ci.prototype.on=Ci.prototype.H;Ci.prototype.once=Ci.prototype.once;Ci.prototype.un=Ci.prototype.K;A.prototype.getTileLoadFunction=A.prototype.ub;A.prototype.getTileUrlFunction=A.prototype.wb;A.prototype.getUrls=A.prototype.xb;
A.prototype.setTileLoadFunction=A.prototype.Bb;A.prototype.setTileUrlFunction=A.prototype.ib;A.prototype.setUrl=A.prototype.pb;A.prototype.setUrls=A.prototype.jb;A.prototype.getTileGrid=A.prototype.fb;A.prototype.refresh=A.prototype.Aa;A.prototype.getAttributions=A.prototype.Ea;A.prototype.getLogo=A.prototype.Ca;A.prototype.getProjection=A.prototype.Fa;A.prototype.getState=A.prototype.getState;A.prototype.setAttributions=A.prototype.za;A.prototype.get=A.prototype.get;A.prototype.getKeys=A.prototype.P;
A.prototype.getProperties=A.prototype.L;A.prototype.set=A.prototype.set;A.prototype.setProperties=A.prototype.J;A.prototype.unset=A.prototype.S;A.prototype.changed=A.prototype.u;A.prototype.dispatchEvent=A.prototype.b;A.prototype.getRevision=A.prototype.M;A.prototype.on=A.prototype.H;A.prototype.once=A.prototype.once;A.prototype.un=A.prototype.K;cy.prototype.setRenderReprojectionEdges=cy.prototype.Ub;cy.prototype.setTileGridForProjection=cy.prototype.Vb;cy.prototype.getTileLoadFunction=cy.prototype.ub;
cy.prototype.getTileUrlFunction=cy.prototype.wb;cy.prototype.getUrls=cy.prototype.xb;cy.prototype.setTileLoadFunction=cy.prototype.Bb;cy.prototype.setTileUrlFunction=cy.prototype.ib;cy.prototype.setUrl=cy.prototype.pb;cy.prototype.setUrls=cy.prototype.jb;cy.prototype.getTileGrid=cy.prototype.fb;cy.prototype.refresh=cy.prototype.Aa;cy.prototype.getAttributions=cy.prototype.Ea;cy.prototype.getLogo=cy.prototype.Ca;cy.prototype.getProjection=cy.prototype.Fa;cy.prototype.getState=cy.prototype.getState;
cy.prototype.setAttributions=cy.prototype.za;cy.prototype.get=cy.prototype.get;cy.prototype.getKeys=cy.prototype.P;cy.prototype.getProperties=cy.prototype.L;cy.prototype.set=cy.prototype.set;cy.prototype.setProperties=cy.prototype.J;cy.prototype.unset=cy.prototype.S;cy.prototype.changed=cy.prototype.u;cy.prototype.dispatchEvent=cy.prototype.b;cy.prototype.getRevision=cy.prototype.M;cy.prototype.on=cy.prototype.H;cy.prototype.once=cy.prototype.once;cy.prototype.un=cy.prototype.K;
ey.prototype.setRenderReprojectionEdges=ey.prototype.Ub;ey.prototype.setTileGridForProjection=ey.prototype.Vb;ey.prototype.getTileLoadFunction=ey.prototype.ub;ey.prototype.getTileUrlFunction=ey.prototype.wb;ey.prototype.getUrls=ey.prototype.xb;ey.prototype.setTileLoadFunction=ey.prototype.Bb;ey.prototype.setTileUrlFunction=ey.prototype.ib;ey.prototype.setUrl=ey.prototype.pb;ey.prototype.setUrls=ey.prototype.jb;ey.prototype.getTileGrid=ey.prototype.fb;ey.prototype.refresh=ey.prototype.Aa;
ey.prototype.getAttributions=ey.prototype.Ea;ey.prototype.getLogo=ey.prototype.Ca;ey.prototype.getProjection=ey.prototype.Fa;ey.prototype.getState=ey.prototype.getState;ey.prototype.setAttributions=ey.prototype.za;ey.prototype.get=ey.prototype.get;ey.prototype.getKeys=ey.prototype.P;ey.prototype.getProperties=ey.prototype.L;ey.prototype.set=ey.prototype.set;ey.prototype.setProperties=ey.prototype.J;ey.prototype.unset=ey.prototype.S;ey.prototype.changed=ey.prototype.u;ey.prototype.dispatchEvent=ey.prototype.b;
ey.prototype.getRevision=ey.prototype.M;ey.prototype.on=ey.prototype.H;ey.prototype.once=ey.prototype.once;ey.prototype.un=ey.prototype.K;fy.prototype.setRenderReprojectionEdges=fy.prototype.Ub;fy.prototype.setTileGridForProjection=fy.prototype.Vb;fy.prototype.getTileLoadFunction=fy.prototype.ub;fy.prototype.getTileUrlFunction=fy.prototype.wb;fy.prototype.getUrls=fy.prototype.xb;fy.prototype.setTileLoadFunction=fy.prototype.Bb;fy.prototype.setTileUrlFunction=fy.prototype.ib;fy.prototype.setUrl=fy.prototype.pb;
fy.prototype.setUrls=fy.prototype.jb;fy.prototype.getTileGrid=fy.prototype.fb;fy.prototype.refresh=fy.prototype.Aa;fy.prototype.getAttributions=fy.prototype.Ea;fy.prototype.getLogo=fy.prototype.Ca;fy.prototype.getProjection=fy.prototype.Fa;fy.prototype.getState=fy.prototype.getState;fy.prototype.setAttributions=fy.prototype.za;fy.prototype.get=fy.prototype.get;fy.prototype.getKeys=fy.prototype.P;fy.prototype.getProperties=fy.prototype.L;fy.prototype.set=fy.prototype.set;
fy.prototype.setProperties=fy.prototype.J;fy.prototype.unset=fy.prototype.S;fy.prototype.changed=fy.prototype.u;fy.prototype.dispatchEvent=fy.prototype.b;fy.prototype.getRevision=fy.prototype.M;fy.prototype.on=fy.prototype.H;fy.prototype.once=fy.prototype.once;fy.prototype.un=fy.prototype.K;J.prototype.getAttributions=J.prototype.Ea;J.prototype.getLogo=J.prototype.Ca;J.prototype.getProjection=J.prototype.Fa;J.prototype.getState=J.prototype.getState;J.prototype.refresh=J.prototype.Aa;
J.prototype.setAttributions=J.prototype.za;J.prototype.get=J.prototype.get;J.prototype.getKeys=J.prototype.P;J.prototype.getProperties=J.prototype.L;J.prototype.set=J.prototype.set;J.prototype.setProperties=J.prototype.J;J.prototype.unset=J.prototype.S;J.prototype.changed=J.prototype.u;J.prototype.dispatchEvent=J.prototype.b;J.prototype.getRevision=J.prototype.M;J.prototype.on=J.prototype.H;J.prototype.once=J.prototype.once;J.prototype.un=J.prototype.K;O.prototype.addFeature=O.prototype.Eb;
O.prototype.addFeatures=O.prototype.yd;O.prototype.clear=O.prototype.clear;O.prototype.forEachFeature=O.prototype.Vh;O.prototype.forEachFeatureInExtent=O.prototype.oc;O.prototype.forEachFeatureIntersectingExtent=O.prototype.Wh;O.prototype.getFeaturesCollection=O.prototype.ci;O.prototype.getFeatures=O.prototype.Rc;O.prototype.getFeaturesAtCoordinate=O.prototype.bi;O.prototype.getFeaturesInExtent=O.prototype.qg;O.prototype.getClosestFeatureToCoordinate=O.prototype.Zh;O.prototype.getExtent=O.prototype.D;
O.prototype.getFeatureById=O.prototype.pg;O.prototype.getFormat=O.prototype.nj;O.prototype.getUrl=O.prototype.oj;O.prototype.removeFeature=O.prototype.Ib;O.prototype.getAttributions=O.prototype.Ea;O.prototype.getLogo=O.prototype.Ca;O.prototype.getProjection=O.prototype.Fa;O.prototype.getState=O.prototype.getState;O.prototype.refresh=O.prototype.Aa;O.prototype.setAttributions=O.prototype.za;O.prototype.get=O.prototype.get;O.prototype.getKeys=O.prototype.P;O.prototype.getProperties=O.prototype.L;
O.prototype.set=O.prototype.set;O.prototype.setProperties=O.prototype.J;O.prototype.unset=O.prototype.S;O.prototype.changed=O.prototype.u;O.prototype.dispatchEvent=O.prototype.b;O.prototype.getRevision=O.prototype.M;O.prototype.on=O.prototype.H;O.prototype.once=O.prototype.once;O.prototype.un=O.prototype.K;yk.prototype.getAttributions=yk.prototype.Ea;yk.prototype.getLogo=yk.prototype.Ca;yk.prototype.getProjection=yk.prototype.Fa;yk.prototype.getState=yk.prototype.getState;yk.prototype.refresh=yk.prototype.Aa;
yk.prototype.setAttributions=yk.prototype.za;yk.prototype.get=yk.prototype.get;yk.prototype.getKeys=yk.prototype.P;yk.prototype.getProperties=yk.prototype.L;yk.prototype.set=yk.prototype.set;yk.prototype.setProperties=yk.prototype.J;yk.prototype.unset=yk.prototype.S;yk.prototype.changed=yk.prototype.u;yk.prototype.dispatchEvent=yk.prototype.b;yk.prototype.getRevision=yk.prototype.M;yk.prototype.on=yk.prototype.H;yk.prototype.once=yk.prototype.once;yk.prototype.un=yk.prototype.K;
Ak.prototype.type=Ak.prototype.type;Ak.prototype.target=Ak.prototype.target;Ak.prototype.preventDefault=Ak.prototype.preventDefault;Ak.prototype.stopPropagation=Ak.prototype.stopPropagation;ly.prototype.getAttributions=ly.prototype.Ea;ly.prototype.getLogo=ly.prototype.Ca;ly.prototype.getProjection=ly.prototype.Fa;ly.prototype.getState=ly.prototype.getState;ly.prototype.refresh=ly.prototype.Aa;ly.prototype.setAttributions=ly.prototype.za;ly.prototype.get=ly.prototype.get;ly.prototype.getKeys=ly.prototype.P;
ly.prototype.getProperties=ly.prototype.L;ly.prototype.set=ly.prototype.set;ly.prototype.setProperties=ly.prototype.J;ly.prototype.unset=ly.prototype.S;ly.prototype.changed=ly.prototype.u;ly.prototype.dispatchEvent=ly.prototype.b;ly.prototype.getRevision=ly.prototype.M;ly.prototype.on=ly.prototype.H;ly.prototype.once=ly.prototype.once;ly.prototype.un=ly.prototype.K;Fk.prototype.getAttributions=Fk.prototype.Ea;Fk.prototype.getLogo=Fk.prototype.Ca;Fk.prototype.getProjection=Fk.prototype.Fa;
Fk.prototype.getState=Fk.prototype.getState;Fk.prototype.refresh=Fk.prototype.Aa;Fk.prototype.setAttributions=Fk.prototype.za;Fk.prototype.get=Fk.prototype.get;Fk.prototype.getKeys=Fk.prototype.P;Fk.prototype.getProperties=Fk.prototype.L;Fk.prototype.set=Fk.prototype.set;Fk.prototype.setProperties=Fk.prototype.J;Fk.prototype.unset=Fk.prototype.S;Fk.prototype.changed=Fk.prototype.u;Fk.prototype.dispatchEvent=Fk.prototype.b;Fk.prototype.getRevision=Fk.prototype.M;Fk.prototype.on=Fk.prototype.H;
Fk.prototype.once=Fk.prototype.once;Fk.prototype.un=Fk.prototype.K;my.prototype.getAttributions=my.prototype.Ea;my.prototype.getLogo=my.prototype.Ca;my.prototype.getProjection=my.prototype.Fa;my.prototype.getState=my.prototype.getState;my.prototype.refresh=my.prototype.Aa;my.prototype.setAttributions=my.prototype.za;my.prototype.get=my.prototype.get;my.prototype.getKeys=my.prototype.P;my.prototype.getProperties=my.prototype.L;my.prototype.set=my.prototype.set;my.prototype.setProperties=my.prototype.J;
my.prototype.unset=my.prototype.S;my.prototype.changed=my.prototype.u;my.prototype.dispatchEvent=my.prototype.b;my.prototype.getRevision=my.prototype.M;my.prototype.on=my.prototype.H;my.prototype.once=my.prototype.once;my.prototype.un=my.prototype.K;ny.prototype.getAttributions=ny.prototype.Ea;ny.prototype.getLogo=ny.prototype.Ca;ny.prototype.getProjection=ny.prototype.Fa;ny.prototype.getState=ny.prototype.getState;ny.prototype.refresh=ny.prototype.Aa;ny.prototype.setAttributions=ny.prototype.za;
ny.prototype.get=ny.prototype.get;ny.prototype.getKeys=ny.prototype.P;ny.prototype.getProperties=ny.prototype.L;ny.prototype.set=ny.prototype.set;ny.prototype.setProperties=ny.prototype.J;ny.prototype.unset=ny.prototype.S;ny.prototype.changed=ny.prototype.u;ny.prototype.dispatchEvent=ny.prototype.b;ny.prototype.getRevision=ny.prototype.M;ny.prototype.on=ny.prototype.H;ny.prototype.once=ny.prototype.once;ny.prototype.un=ny.prototype.K;Gk.prototype.getAttributions=Gk.prototype.Ea;
Gk.prototype.getLogo=Gk.prototype.Ca;Gk.prototype.getProjection=Gk.prototype.Fa;Gk.prototype.getState=Gk.prototype.getState;Gk.prototype.refresh=Gk.prototype.Aa;Gk.prototype.setAttributions=Gk.prototype.za;Gk.prototype.get=Gk.prototype.get;Gk.prototype.getKeys=Gk.prototype.P;Gk.prototype.getProperties=Gk.prototype.L;Gk.prototype.set=Gk.prototype.set;Gk.prototype.setProperties=Gk.prototype.J;Gk.prototype.unset=Gk.prototype.S;Gk.prototype.changed=Gk.prototype.u;Gk.prototype.dispatchEvent=Gk.prototype.b;
Gk.prototype.getRevision=Gk.prototype.M;Gk.prototype.on=Gk.prototype.H;Gk.prototype.once=Gk.prototype.once;Gk.prototype.un=Gk.prototype.K;oy.prototype.getAttributions=oy.prototype.Ea;oy.prototype.getLogo=oy.prototype.Ca;oy.prototype.getProjection=oy.prototype.Fa;oy.prototype.getState=oy.prototype.getState;oy.prototype.refresh=oy.prototype.Aa;oy.prototype.setAttributions=oy.prototype.za;oy.prototype.get=oy.prototype.get;oy.prototype.getKeys=oy.prototype.P;oy.prototype.getProperties=oy.prototype.L;
oy.prototype.set=oy.prototype.set;oy.prototype.setProperties=oy.prototype.J;oy.prototype.unset=oy.prototype.S;oy.prototype.changed=oy.prototype.u;oy.prototype.dispatchEvent=oy.prototype.b;oy.prototype.getRevision=oy.prototype.M;oy.prototype.on=oy.prototype.H;oy.prototype.once=oy.prototype.once;oy.prototype.un=oy.prototype.K;sy.prototype.setRenderReprojectionEdges=sy.prototype.Ub;sy.prototype.setTileGridForProjection=sy.prototype.Vb;sy.prototype.getTileLoadFunction=sy.prototype.ub;
sy.prototype.getTileUrlFunction=sy.prototype.wb;sy.prototype.getUrls=sy.prototype.xb;sy.prototype.setTileLoadFunction=sy.prototype.Bb;sy.prototype.setTileUrlFunction=sy.prototype.ib;sy.prototype.setUrl=sy.prototype.pb;sy.prototype.setUrls=sy.prototype.jb;sy.prototype.getTileGrid=sy.prototype.fb;sy.prototype.refresh=sy.prototype.Aa;sy.prototype.getAttributions=sy.prototype.Ea;sy.prototype.getLogo=sy.prototype.Ca;sy.prototype.getProjection=sy.prototype.Fa;sy.prototype.getState=sy.prototype.getState;
sy.prototype.setAttributions=sy.prototype.za;sy.prototype.get=sy.prototype.get;sy.prototype.getKeys=sy.prototype.P;sy.prototype.getProperties=sy.prototype.L;sy.prototype.set=sy.prototype.set;sy.prototype.setProperties=sy.prototype.J;sy.prototype.unset=sy.prototype.S;sy.prototype.changed=sy.prototype.u;sy.prototype.dispatchEvent=sy.prototype.b;sy.prototype.getRevision=sy.prototype.M;sy.prototype.on=sy.prototype.H;sy.prototype.once=sy.prototype.once;sy.prototype.un=sy.prototype.K;
uy.prototype.getAttributions=uy.prototype.Ea;uy.prototype.getLogo=uy.prototype.Ca;uy.prototype.getProjection=uy.prototype.Fa;uy.prototype.getState=uy.prototype.getState;uy.prototype.refresh=uy.prototype.Aa;uy.prototype.setAttributions=uy.prototype.za;uy.prototype.get=uy.prototype.get;uy.prototype.getKeys=uy.prototype.P;uy.prototype.getProperties=uy.prototype.L;uy.prototype.set=uy.prototype.set;uy.prototype.setProperties=uy.prototype.J;uy.prototype.unset=uy.prototype.S;uy.prototype.changed=uy.prototype.u;
uy.prototype.dispatchEvent=uy.prototype.b;uy.prototype.getRevision=uy.prototype.M;uy.prototype.on=uy.prototype.H;uy.prototype.once=uy.prototype.once;uy.prototype.un=uy.prototype.K;yy.prototype.type=yy.prototype.type;yy.prototype.target=yy.prototype.target;yy.prototype.preventDefault=yy.prototype.preventDefault;yy.prototype.stopPropagation=yy.prototype.stopPropagation;By.prototype.setRenderReprojectionEdges=By.prototype.Ub;By.prototype.setTileGridForProjection=By.prototype.Vb;
By.prototype.getTileLoadFunction=By.prototype.ub;By.prototype.getTileUrlFunction=By.prototype.wb;By.prototype.getUrls=By.prototype.xb;By.prototype.setTileLoadFunction=By.prototype.Bb;By.prototype.setTileUrlFunction=By.prototype.ib;By.prototype.setUrl=By.prototype.pb;By.prototype.setUrls=By.prototype.jb;By.prototype.getTileGrid=By.prototype.fb;By.prototype.refresh=By.prototype.Aa;By.prototype.getAttributions=By.prototype.Ea;By.prototype.getLogo=By.prototype.Ca;By.prototype.getProjection=By.prototype.Fa;
By.prototype.getState=By.prototype.getState;By.prototype.setAttributions=By.prototype.za;By.prototype.get=By.prototype.get;By.prototype.getKeys=By.prototype.P;By.prototype.getProperties=By.prototype.L;By.prototype.set=By.prototype.set;By.prototype.setProperties=By.prototype.J;By.prototype.unset=By.prototype.S;By.prototype.changed=By.prototype.u;By.prototype.dispatchEvent=By.prototype.b;By.prototype.getRevision=By.prototype.M;By.prototype.on=By.prototype.H;By.prototype.once=By.prototype.once;
By.prototype.un=By.prototype.K;Bi.prototype.type=Bi.prototype.type;Bi.prototype.target=Bi.prototype.target;Bi.prototype.preventDefault=Bi.prototype.preventDefault;Bi.prototype.stopPropagation=Bi.prototype.stopPropagation;Fy.prototype.setRenderReprojectionEdges=Fy.prototype.Ub;Fy.prototype.setTileGridForProjection=Fy.prototype.Vb;Fy.prototype.getTileLoadFunction=Fy.prototype.ub;Fy.prototype.getTileUrlFunction=Fy.prototype.wb;Fy.prototype.getUrls=Fy.prototype.xb;Fy.prototype.setTileLoadFunction=Fy.prototype.Bb;
Fy.prototype.setTileUrlFunction=Fy.prototype.ib;Fy.prototype.setUrl=Fy.prototype.pb;Fy.prototype.setUrls=Fy.prototype.jb;Fy.prototype.getTileGrid=Fy.prototype.fb;Fy.prototype.refresh=Fy.prototype.Aa;Fy.prototype.getAttributions=Fy.prototype.Ea;Fy.prototype.getLogo=Fy.prototype.Ca;Fy.prototype.getProjection=Fy.prototype.Fa;Fy.prototype.getState=Fy.prototype.getState;Fy.prototype.setAttributions=Fy.prototype.za;Fy.prototype.get=Fy.prototype.get;Fy.prototype.getKeys=Fy.prototype.P;
Fy.prototype.getProperties=Fy.prototype.L;Fy.prototype.set=Fy.prototype.set;Fy.prototype.setProperties=Fy.prototype.J;Fy.prototype.unset=Fy.prototype.S;Fy.prototype.changed=Fy.prototype.u;Fy.prototype.dispatchEvent=Fy.prototype.b;Fy.prototype.getRevision=Fy.prototype.M;Fy.prototype.on=Fy.prototype.H;Fy.prototype.once=Fy.prototype.once;Fy.prototype.un=Fy.prototype.K;Hy.prototype.getTileGrid=Hy.prototype.fb;Hy.prototype.refresh=Hy.prototype.Aa;Hy.prototype.getAttributions=Hy.prototype.Ea;
Hy.prototype.getLogo=Hy.prototype.Ca;Hy.prototype.getProjection=Hy.prototype.Fa;Hy.prototype.getState=Hy.prototype.getState;Hy.prototype.setAttributions=Hy.prototype.za;Hy.prototype.get=Hy.prototype.get;Hy.prototype.getKeys=Hy.prototype.P;Hy.prototype.getProperties=Hy.prototype.L;Hy.prototype.set=Hy.prototype.set;Hy.prototype.setProperties=Hy.prototype.J;Hy.prototype.unset=Hy.prototype.S;Hy.prototype.changed=Hy.prototype.u;Hy.prototype.dispatchEvent=Hy.prototype.b;Hy.prototype.getRevision=Hy.prototype.M;
Hy.prototype.on=Hy.prototype.H;Hy.prototype.once=Hy.prototype.once;Hy.prototype.un=Hy.prototype.K;Jy.prototype.setRenderReprojectionEdges=Jy.prototype.Ub;Jy.prototype.setTileGridForProjection=Jy.prototype.Vb;Jy.prototype.getTileLoadFunction=Jy.prototype.ub;Jy.prototype.getTileUrlFunction=Jy.prototype.wb;Jy.prototype.getUrls=Jy.prototype.xb;Jy.prototype.setTileLoadFunction=Jy.prototype.Bb;Jy.prototype.setTileUrlFunction=Jy.prototype.ib;Jy.prototype.setUrl=Jy.prototype.pb;Jy.prototype.setUrls=Jy.prototype.jb;
Jy.prototype.getTileGrid=Jy.prototype.fb;Jy.prototype.refresh=Jy.prototype.Aa;Jy.prototype.getAttributions=Jy.prototype.Ea;Jy.prototype.getLogo=Jy.prototype.Ca;Jy.prototype.getProjection=Jy.prototype.Fa;Jy.prototype.getState=Jy.prototype.getState;Jy.prototype.setAttributions=Jy.prototype.za;Jy.prototype.get=Jy.prototype.get;Jy.prototype.getKeys=Jy.prototype.P;Jy.prototype.getProperties=Jy.prototype.L;Jy.prototype.set=Jy.prototype.set;Jy.prototype.setProperties=Jy.prototype.J;Jy.prototype.unset=Jy.prototype.S;
Jy.prototype.changed=Jy.prototype.u;Jy.prototype.dispatchEvent=Jy.prototype.b;Jy.prototype.getRevision=Jy.prototype.M;Jy.prototype.on=Jy.prototype.H;Jy.prototype.once=Jy.prototype.once;Jy.prototype.un=Jy.prototype.K;Ky.prototype.getTileGrid=Ky.prototype.fb;Ky.prototype.refresh=Ky.prototype.Aa;Ky.prototype.getAttributions=Ky.prototype.Ea;Ky.prototype.getLogo=Ky.prototype.Ca;Ky.prototype.getProjection=Ky.prototype.Fa;Ky.prototype.getState=Ky.prototype.getState;Ky.prototype.setAttributions=Ky.prototype.za;
Ky.prototype.get=Ky.prototype.get;Ky.prototype.getKeys=Ky.prototype.P;Ky.prototype.getProperties=Ky.prototype.L;Ky.prototype.set=Ky.prototype.set;Ky.prototype.setProperties=Ky.prototype.J;Ky.prototype.unset=Ky.prototype.S;Ky.prototype.changed=Ky.prototype.u;Ky.prototype.dispatchEvent=Ky.prototype.b;Ky.prototype.getRevision=Ky.prototype.M;Ky.prototype.on=Ky.prototype.H;Ky.prototype.once=Ky.prototype.once;Ky.prototype.un=Ky.prototype.K;Oy.prototype.setRenderReprojectionEdges=Oy.prototype.Ub;
Oy.prototype.setTileGridForProjection=Oy.prototype.Vb;Oy.prototype.getTileLoadFunction=Oy.prototype.ub;Oy.prototype.getTileUrlFunction=Oy.prototype.wb;Oy.prototype.getUrls=Oy.prototype.xb;Oy.prototype.setTileLoadFunction=Oy.prototype.Bb;Oy.prototype.setTileUrlFunction=Oy.prototype.ib;Oy.prototype.setUrl=Oy.prototype.pb;Oy.prototype.setUrls=Oy.prototype.jb;Oy.prototype.getTileGrid=Oy.prototype.fb;Oy.prototype.refresh=Oy.prototype.Aa;Oy.prototype.getAttributions=Oy.prototype.Ea;
Oy.prototype.getLogo=Oy.prototype.Ca;Oy.prototype.getProjection=Oy.prototype.Fa;Oy.prototype.getState=Oy.prototype.getState;Oy.prototype.setAttributions=Oy.prototype.za;Oy.prototype.get=Oy.prototype.get;Oy.prototype.getKeys=Oy.prototype.P;Oy.prototype.getProperties=Oy.prototype.L;Oy.prototype.set=Oy.prototype.set;Oy.prototype.setProperties=Oy.prototype.J;Oy.prototype.unset=Oy.prototype.S;Oy.prototype.changed=Oy.prototype.u;Oy.prototype.dispatchEvent=Oy.prototype.b;Oy.prototype.getRevision=Oy.prototype.M;
Oy.prototype.on=Oy.prototype.H;Oy.prototype.once=Oy.prototype.once;Oy.prototype.un=Oy.prototype.K;Pj.prototype.type=Pj.prototype.type;Pj.prototype.target=Pj.prototype.target;Pj.prototype.preventDefault=Pj.prototype.preventDefault;Pj.prototype.stopPropagation=Pj.prototype.stopPropagation;Vy.prototype.getTileLoadFunction=Vy.prototype.ub;Vy.prototype.getTileUrlFunction=Vy.prototype.wb;Vy.prototype.getUrls=Vy.prototype.xb;Vy.prototype.setTileLoadFunction=Vy.prototype.Bb;
Vy.prototype.setTileUrlFunction=Vy.prototype.ib;Vy.prototype.setUrl=Vy.prototype.pb;Vy.prototype.setUrls=Vy.prototype.jb;Vy.prototype.getTileGrid=Vy.prototype.fb;Vy.prototype.refresh=Vy.prototype.Aa;Vy.prototype.getAttributions=Vy.prototype.Ea;Vy.prototype.getLogo=Vy.prototype.Ca;Vy.prototype.getProjection=Vy.prototype.Fa;Vy.prototype.getState=Vy.prototype.getState;Vy.prototype.setAttributions=Vy.prototype.za;Vy.prototype.get=Vy.prototype.get;Vy.prototype.getKeys=Vy.prototype.P;
Vy.prototype.getProperties=Vy.prototype.L;Vy.prototype.set=Vy.prototype.set;Vy.prototype.setProperties=Vy.prototype.J;Vy.prototype.unset=Vy.prototype.S;Vy.prototype.changed=Vy.prototype.u;Vy.prototype.dispatchEvent=Vy.prototype.b;Vy.prototype.getRevision=Vy.prototype.M;Vy.prototype.on=Vy.prototype.H;Vy.prototype.once=Vy.prototype.once;Vy.prototype.un=Vy.prototype.K;Z.prototype.setRenderReprojectionEdges=Z.prototype.Ub;Z.prototype.setTileGridForProjection=Z.prototype.Vb;
Z.prototype.getTileLoadFunction=Z.prototype.ub;Z.prototype.getTileUrlFunction=Z.prototype.wb;Z.prototype.getUrls=Z.prototype.xb;Z.prototype.setTileLoadFunction=Z.prototype.Bb;Z.prototype.setTileUrlFunction=Z.prototype.ib;Z.prototype.setUrl=Z.prototype.pb;Z.prototype.setUrls=Z.prototype.jb;Z.prototype.getTileGrid=Z.prototype.fb;Z.prototype.refresh=Z.prototype.Aa;Z.prototype.getAttributions=Z.prototype.Ea;Z.prototype.getLogo=Z.prototype.Ca;Z.prototype.getProjection=Z.prototype.Fa;
Z.prototype.getState=Z.prototype.getState;Z.prototype.setAttributions=Z.prototype.za;Z.prototype.get=Z.prototype.get;Z.prototype.getKeys=Z.prototype.P;Z.prototype.getProperties=Z.prototype.L;Z.prototype.set=Z.prototype.set;Z.prototype.setProperties=Z.prototype.J;Z.prototype.unset=Z.prototype.S;Z.prototype.changed=Z.prototype.u;Z.prototype.dispatchEvent=Z.prototype.b;Z.prototype.getRevision=Z.prototype.M;Z.prototype.on=Z.prototype.H;Z.prototype.once=Z.prototype.once;Z.prototype.un=Z.prototype.K;
Zy.prototype.setRenderReprojectionEdges=Zy.prototype.Ub;Zy.prototype.setTileGridForProjection=Zy.prototype.Vb;Zy.prototype.getTileLoadFunction=Zy.prototype.ub;Zy.prototype.getTileUrlFunction=Zy.prototype.wb;Zy.prototype.getUrls=Zy.prototype.xb;Zy.prototype.setTileLoadFunction=Zy.prototype.Bb;Zy.prototype.setTileUrlFunction=Zy.prototype.ib;Zy.prototype.setUrl=Zy.prototype.pb;Zy.prototype.setUrls=Zy.prototype.jb;Zy.prototype.getTileGrid=Zy.prototype.fb;Zy.prototype.refresh=Zy.prototype.Aa;
Zy.prototype.getAttributions=Zy.prototype.Ea;Zy.prototype.getLogo=Zy.prototype.Ca;Zy.prototype.getProjection=Zy.prototype.Fa;Zy.prototype.getState=Zy.prototype.getState;Zy.prototype.setAttributions=Zy.prototype.za;Zy.prototype.get=Zy.prototype.get;Zy.prototype.getKeys=Zy.prototype.P;Zy.prototype.getProperties=Zy.prototype.L;Zy.prototype.set=Zy.prototype.set;Zy.prototype.setProperties=Zy.prototype.J;Zy.prototype.unset=Zy.prototype.S;Zy.prototype.changed=Zy.prototype.u;Zy.prototype.dispatchEvent=Zy.prototype.b;
Zy.prototype.getRevision=Zy.prototype.M;Zy.prototype.on=Zy.prototype.H;Zy.prototype.once=Zy.prototype.once;Zy.prototype.un=Zy.prototype.K;ei.prototype.getTileCoord=ei.prototype.i;ei.prototype.load=ei.prototype.load;Ne.prototype.changed=Ne.prototype.u;Ne.prototype.dispatchEvent=Ne.prototype.b;Ne.prototype.getRevision=Ne.prototype.M;Ne.prototype.on=Ne.prototype.H;Ne.prototype.once=Ne.prototype.once;Ne.prototype.un=Ne.prototype.K;Gh.prototype.changed=Gh.prototype.u;Gh.prototype.dispatchEvent=Gh.prototype.b;
Gh.prototype.getRevision=Gh.prototype.M;Gh.prototype.on=Gh.prototype.H;Gh.prototype.once=Gh.prototype.once;Gh.prototype.un=Gh.prototype.K;El.prototype.changed=El.prototype.u;El.prototype.dispatchEvent=El.prototype.b;El.prototype.getRevision=El.prototype.M;El.prototype.on=El.prototype.H;El.prototype.once=El.prototype.once;El.prototype.un=El.prototype.K;Qh.prototype.changed=Qh.prototype.u;Qh.prototype.dispatchEvent=Qh.prototype.b;Qh.prototype.getRevision=Qh.prototype.M;Qh.prototype.on=Qh.prototype.H;
Qh.prototype.once=Qh.prototype.once;Qh.prototype.un=Qh.prototype.K;Cl.prototype.changed=Cl.prototype.u;Cl.prototype.dispatchEvent=Cl.prototype.b;Cl.prototype.getRevision=Cl.prototype.M;Cl.prototype.on=Cl.prototype.H;Cl.prototype.once=Cl.prototype.once;Cl.prototype.un=Cl.prototype.K;Ye.prototype.changed=Ye.prototype.u;Ye.prototype.dispatchEvent=Ye.prototype.b;Ye.prototype.getRevision=Ye.prototype.M;Ye.prototype.on=Ye.prototype.H;Ye.prototype.once=Ye.prototype.once;Ye.prototype.un=Ye.prototype.K;
bf.prototype.changed=bf.prototype.u;bf.prototype.dispatchEvent=bf.prototype.b;bf.prototype.getRevision=bf.prototype.M;bf.prototype.on=bf.prototype.H;bf.prototype.once=bf.prototype.once;bf.prototype.un=bf.prototype.K;Dl.prototype.changed=Dl.prototype.u;Dl.prototype.dispatchEvent=Dl.prototype.b;Dl.prototype.getRevision=Dl.prototype.M;Dl.prototype.on=Dl.prototype.H;Dl.prototype.once=Dl.prototype.once;Dl.prototype.un=Dl.prototype.K;cf.prototype.changed=cf.prototype.u;cf.prototype.dispatchEvent=cf.prototype.b;
cf.prototype.getRevision=cf.prototype.M;cf.prototype.on=cf.prototype.H;cf.prototype.once=cf.prototype.once;cf.prototype.un=cf.prototype.K;Al.prototype.changed=Al.prototype.u;Al.prototype.dispatchEvent=Al.prototype.b;Al.prototype.getRevision=Al.prototype.M;Al.prototype.on=Al.prototype.H;Al.prototype.once=Al.prototype.once;Al.prototype.un=Al.prototype.K;Zx.prototype.changed=Zx.prototype.u;Zx.prototype.dispatchEvent=Zx.prototype.b;Zx.prototype.getRevision=Zx.prototype.M;Zx.prototype.on=Zx.prototype.H;
Zx.prototype.once=Zx.prototype.once;Zx.prototype.un=Zx.prototype.K;Cd.prototype.type=Cd.prototype.type;Cd.prototype.target=Cd.prototype.target;Cd.prototype.preventDefault=Cd.prototype.preventDefault;Cd.prototype.stopPropagation=Cd.prototype.stopPropagation;ym.prototype.type=ym.prototype.type;ym.prototype.target=ym.prototype.target;ym.prototype.preventDefault=ym.prototype.preventDefault;ym.prototype.stopPropagation=ym.prototype.stopPropagation;Ub.prototype.get=Ub.prototype.get;
Ub.prototype.getKeys=Ub.prototype.P;Ub.prototype.getProperties=Ub.prototype.L;Ub.prototype.set=Ub.prototype.set;Ub.prototype.setProperties=Ub.prototype.J;Ub.prototype.unset=Ub.prototype.S;Ub.prototype.changed=Ub.prototype.u;Ub.prototype.dispatchEvent=Ub.prototype.b;Ub.prototype.getRevision=Ub.prototype.M;Ub.prototype.on=Ub.prototype.H;Ub.prototype.once=Ub.prototype.once;Ub.prototype.un=Ub.prototype.K;Wb.prototype.getExtent=Wb.prototype.D;Wb.prototype.getMaxResolution=Wb.prototype.tc;
Wb.prototype.getMinResolution=Wb.prototype.uc;Wb.prototype.getOpacity=Wb.prototype.La;Wb.prototype.getVisible=Wb.prototype.lb;Wb.prototype.getZIndex=Wb.prototype.Da;Wb.prototype.setExtent=Wb.prototype.Oc;Wb.prototype.setMaxResolution=Wb.prototype.Sc;Wb.prototype.setMinResolution=Wb.prototype.Tc;Wb.prototype.setOpacity=Wb.prototype.Pc;Wb.prototype.setVisible=Wb.prototype.ec;Wb.prototype.setZIndex=Wb.prototype.jc;Wb.prototype.get=Wb.prototype.get;Wb.prototype.getKeys=Wb.prototype.P;
Wb.prototype.getProperties=Wb.prototype.L;Wb.prototype.set=Wb.prototype.set;Wb.prototype.setProperties=Wb.prototype.J;Wb.prototype.unset=Wb.prototype.S;Wb.prototype.changed=Wb.prototype.u;Wb.prototype.dispatchEvent=Wb.prototype.b;Wb.prototype.getRevision=Wb.prototype.M;Wb.prototype.on=Wb.prototype.H;Wb.prototype.once=Wb.prototype.once;Wb.prototype.un=Wb.prototype.K;Vc.prototype.getExtent=Vc.prototype.D;Vc.prototype.getMaxResolution=Vc.prototype.tc;Vc.prototype.getMinResolution=Vc.prototype.uc;
Vc.prototype.getOpacity=Vc.prototype.La;Vc.prototype.getVisible=Vc.prototype.lb;Vc.prototype.getZIndex=Vc.prototype.Da;Vc.prototype.setExtent=Vc.prototype.Oc;Vc.prototype.setMaxResolution=Vc.prototype.Sc;Vc.prototype.setMinResolution=Vc.prototype.Tc;Vc.prototype.setOpacity=Vc.prototype.Pc;Vc.prototype.setVisible=Vc.prototype.ec;Vc.prototype.setZIndex=Vc.prototype.jc;Vc.prototype.get=Vc.prototype.get;Vc.prototype.getKeys=Vc.prototype.P;Vc.prototype.getProperties=Vc.prototype.L;Vc.prototype.set=Vc.prototype.set;
Vc.prototype.setProperties=Vc.prototype.J;Vc.prototype.unset=Vc.prototype.S;Vc.prototype.changed=Vc.prototype.u;Vc.prototype.dispatchEvent=Vc.prototype.b;Vc.prototype.getRevision=Vc.prototype.M;Vc.prototype.on=Vc.prototype.H;Vc.prototype.once=Vc.prototype.once;Vc.prototype.un=Vc.prototype.K;N.prototype.setMap=N.prototype.setMap;N.prototype.setSource=N.prototype.rd;N.prototype.getExtent=N.prototype.D;N.prototype.getMaxResolution=N.prototype.tc;N.prototype.getMinResolution=N.prototype.uc;
N.prototype.getOpacity=N.prototype.La;N.prototype.getVisible=N.prototype.lb;N.prototype.getZIndex=N.prototype.Da;N.prototype.setExtent=N.prototype.Oc;N.prototype.setMaxResolution=N.prototype.Sc;N.prototype.setMinResolution=N.prototype.Tc;N.prototype.setOpacity=N.prototype.Pc;N.prototype.setVisible=N.prototype.ec;N.prototype.setZIndex=N.prototype.jc;N.prototype.get=N.prototype.get;N.prototype.getKeys=N.prototype.P;N.prototype.getProperties=N.prototype.L;N.prototype.set=N.prototype.set;
N.prototype.setProperties=N.prototype.J;N.prototype.unset=N.prototype.S;N.prototype.changed=N.prototype.u;N.prototype.dispatchEvent=N.prototype.b;N.prototype.getRevision=N.prototype.M;N.prototype.on=N.prototype.H;N.prototype.once=N.prototype.once;N.prototype.un=N.prototype.K;X.prototype.getSource=X.prototype.ba;X.prototype.getStyle=X.prototype.B;X.prototype.getStyleFunction=X.prototype.G;X.prototype.setStyle=X.prototype.f;X.prototype.setMap=X.prototype.setMap;X.prototype.setSource=X.prototype.rd;
X.prototype.getExtent=X.prototype.D;X.prototype.getMaxResolution=X.prototype.tc;X.prototype.getMinResolution=X.prototype.uc;X.prototype.getOpacity=X.prototype.La;X.prototype.getVisible=X.prototype.lb;X.prototype.getZIndex=X.prototype.Da;X.prototype.setExtent=X.prototype.Oc;X.prototype.setMaxResolution=X.prototype.Sc;X.prototype.setMinResolution=X.prototype.Tc;X.prototype.setOpacity=X.prototype.Pc;X.prototype.setVisible=X.prototype.ec;X.prototype.setZIndex=X.prototype.jc;X.prototype.get=X.prototype.get;
X.prototype.getKeys=X.prototype.P;X.prototype.getProperties=X.prototype.L;X.prototype.set=X.prototype.set;X.prototype.setProperties=X.prototype.J;X.prototype.unset=X.prototype.S;X.prototype.changed=X.prototype.u;X.prototype.dispatchEvent=X.prototype.b;X.prototype.getRevision=X.prototype.M;X.prototype.on=X.prototype.H;X.prototype.once=X.prototype.once;X.prototype.un=X.prototype.K;rl.prototype.setMap=rl.prototype.setMap;rl.prototype.setSource=rl.prototype.rd;rl.prototype.getExtent=rl.prototype.D;
rl.prototype.getMaxResolution=rl.prototype.tc;rl.prototype.getMinResolution=rl.prototype.uc;rl.prototype.getOpacity=rl.prototype.La;rl.prototype.getVisible=rl.prototype.lb;rl.prototype.getZIndex=rl.prototype.Da;rl.prototype.setExtent=rl.prototype.Oc;rl.prototype.setMaxResolution=rl.prototype.Sc;rl.prototype.setMinResolution=rl.prototype.Tc;rl.prototype.setOpacity=rl.prototype.Pc;rl.prototype.setVisible=rl.prototype.ec;rl.prototype.setZIndex=rl.prototype.jc;rl.prototype.get=rl.prototype.get;
rl.prototype.getKeys=rl.prototype.P;rl.prototype.getProperties=rl.prototype.L;rl.prototype.set=rl.prototype.set;rl.prototype.setProperties=rl.prototype.J;rl.prototype.unset=rl.prototype.S;rl.prototype.changed=rl.prototype.u;rl.prototype.dispatchEvent=rl.prototype.b;rl.prototype.getRevision=rl.prototype.M;rl.prototype.on=rl.prototype.H;rl.prototype.once=rl.prototype.once;rl.prototype.un=rl.prototype.K;Sh.prototype.setMap=Sh.prototype.setMap;Sh.prototype.setSource=Sh.prototype.rd;
Sh.prototype.getExtent=Sh.prototype.D;Sh.prototype.getMaxResolution=Sh.prototype.tc;Sh.prototype.getMinResolution=Sh.prototype.uc;Sh.prototype.getOpacity=Sh.prototype.La;Sh.prototype.getVisible=Sh.prototype.lb;Sh.prototype.getZIndex=Sh.prototype.Da;Sh.prototype.setExtent=Sh.prototype.Oc;Sh.prototype.setMaxResolution=Sh.prototype.Sc;Sh.prototype.setMinResolution=Sh.prototype.Tc;Sh.prototype.setOpacity=Sh.prototype.Pc;Sh.prototype.setVisible=Sh.prototype.ec;Sh.prototype.setZIndex=Sh.prototype.jc;
Sh.prototype.get=Sh.prototype.get;Sh.prototype.getKeys=Sh.prototype.P;Sh.prototype.getProperties=Sh.prototype.L;Sh.prototype.set=Sh.prototype.set;Sh.prototype.setProperties=Sh.prototype.J;Sh.prototype.unset=Sh.prototype.S;Sh.prototype.changed=Sh.prototype.u;Sh.prototype.dispatchEvent=Sh.prototype.b;Sh.prototype.getRevision=Sh.prototype.M;Sh.prototype.on=Sh.prototype.H;Sh.prototype.once=Sh.prototype.once;Sh.prototype.un=Sh.prototype.K;Y.prototype.getSource=Y.prototype.ba;Y.prototype.getStyle=Y.prototype.B;
Y.prototype.getStyleFunction=Y.prototype.G;Y.prototype.setStyle=Y.prototype.f;Y.prototype.setMap=Y.prototype.setMap;Y.prototype.setSource=Y.prototype.rd;Y.prototype.getExtent=Y.prototype.D;Y.prototype.getMaxResolution=Y.prototype.tc;Y.prototype.getMinResolution=Y.prototype.uc;Y.prototype.getOpacity=Y.prototype.La;Y.prototype.getVisible=Y.prototype.lb;Y.prototype.getZIndex=Y.prototype.Da;Y.prototype.setExtent=Y.prototype.Oc;Y.prototype.setMaxResolution=Y.prototype.Sc;Y.prototype.setMinResolution=Y.prototype.Tc;
Y.prototype.setOpacity=Y.prototype.Pc;Y.prototype.setVisible=Y.prototype.ec;Y.prototype.setZIndex=Y.prototype.jc;Y.prototype.get=Y.prototype.get;Y.prototype.getKeys=Y.prototype.P;Y.prototype.getProperties=Y.prototype.L;Y.prototype.set=Y.prototype.set;Y.prototype.setProperties=Y.prototype.J;Y.prototype.unset=Y.prototype.S;Y.prototype.changed=Y.prototype.u;Y.prototype.dispatchEvent=Y.prototype.b;Y.prototype.getRevision=Y.prototype.M;Y.prototype.on=Y.prototype.H;Y.prototype.once=Y.prototype.once;
Y.prototype.un=Y.prototype.K;qn.prototype.get=qn.prototype.get;qn.prototype.getKeys=qn.prototype.P;qn.prototype.getProperties=qn.prototype.L;qn.prototype.set=qn.prototype.set;qn.prototype.setProperties=qn.prototype.J;qn.prototype.unset=qn.prototype.S;qn.prototype.changed=qn.prototype.u;qn.prototype.dispatchEvent=qn.prototype.b;qn.prototype.getRevision=qn.prototype.M;qn.prototype.on=qn.prototype.H;qn.prototype.once=qn.prototype.once;qn.prototype.un=qn.prototype.K;un.prototype.getActive=un.prototype.c;
un.prototype.getMap=un.prototype.i;un.prototype.setActive=un.prototype.Na;un.prototype.get=un.prototype.get;un.prototype.getKeys=un.prototype.P;un.prototype.getProperties=un.prototype.L;un.prototype.set=un.prototype.set;un.prototype.setProperties=un.prototype.J;un.prototype.unset=un.prototype.S;un.prototype.changed=un.prototype.u;un.prototype.dispatchEvent=un.prototype.b;un.prototype.getRevision=un.prototype.M;un.prototype.on=un.prototype.H;un.prototype.once=un.prototype.once;un.prototype.un=un.prototype.K;
Cw.prototype.getActive=Cw.prototype.c;Cw.prototype.getMap=Cw.prototype.i;Cw.prototype.setActive=Cw.prototype.Na;Cw.prototype.get=Cw.prototype.get;Cw.prototype.getKeys=Cw.prototype.P;Cw.prototype.getProperties=Cw.prototype.L;Cw.prototype.set=Cw.prototype.set;Cw.prototype.setProperties=Cw.prototype.J;Cw.prototype.unset=Cw.prototype.S;Cw.prototype.changed=Cw.prototype.u;Cw.prototype.dispatchEvent=Cw.prototype.b;Cw.prototype.getRevision=Cw.prototype.M;Cw.prototype.on=Cw.prototype.H;
Cw.prototype.once=Cw.prototype.once;Cw.prototype.un=Cw.prototype.K;Fw.prototype.type=Fw.prototype.type;Fw.prototype.target=Fw.prototype.target;Fw.prototype.preventDefault=Fw.prototype.preventDefault;Fw.prototype.stopPropagation=Fw.prototype.stopPropagation;Fn.prototype.getActive=Fn.prototype.c;Fn.prototype.getMap=Fn.prototype.i;Fn.prototype.setActive=Fn.prototype.Na;Fn.prototype.get=Fn.prototype.get;Fn.prototype.getKeys=Fn.prototype.P;Fn.prototype.getProperties=Fn.prototype.L;Fn.prototype.set=Fn.prototype.set;
Fn.prototype.setProperties=Fn.prototype.J;Fn.prototype.unset=Fn.prototype.S;Fn.prototype.changed=Fn.prototype.u;Fn.prototype.dispatchEvent=Fn.prototype.b;Fn.prototype.getRevision=Fn.prototype.M;Fn.prototype.on=Fn.prototype.H;Fn.prototype.once=Fn.prototype.once;Fn.prototype.un=Fn.prototype.K;Tn.prototype.getActive=Tn.prototype.c;Tn.prototype.getMap=Tn.prototype.i;Tn.prototype.setActive=Tn.prototype.Na;Tn.prototype.get=Tn.prototype.get;Tn.prototype.getKeys=Tn.prototype.P;
Tn.prototype.getProperties=Tn.prototype.L;Tn.prototype.set=Tn.prototype.set;Tn.prototype.setProperties=Tn.prototype.J;Tn.prototype.unset=Tn.prototype.S;Tn.prototype.changed=Tn.prototype.u;Tn.prototype.dispatchEvent=Tn.prototype.b;Tn.prototype.getRevision=Tn.prototype.M;Tn.prototype.on=Tn.prototype.H;Tn.prototype.once=Tn.prototype.once;Tn.prototype.un=Tn.prototype.K;Yn.prototype.type=Yn.prototype.type;Yn.prototype.target=Yn.prototype.target;Yn.prototype.preventDefault=Yn.prototype.preventDefault;
Yn.prototype.stopPropagation=Yn.prototype.stopPropagation;In.prototype.getActive=In.prototype.c;In.prototype.getMap=In.prototype.i;In.prototype.setActive=In.prototype.Na;In.prototype.get=In.prototype.get;In.prototype.getKeys=In.prototype.P;In.prototype.getProperties=In.prototype.L;In.prototype.set=In.prototype.set;In.prototype.setProperties=In.prototype.J;In.prototype.unset=In.prototype.S;In.prototype.changed=In.prototype.u;In.prototype.dispatchEvent=In.prototype.b;In.prototype.getRevision=In.prototype.M;
In.prototype.on=In.prototype.H;In.prototype.once=In.prototype.once;In.prototype.un=In.prototype.K;Mn.prototype.getActive=Mn.prototype.c;Mn.prototype.getMap=Mn.prototype.i;Mn.prototype.setActive=Mn.prototype.Na;Mn.prototype.get=Mn.prototype.get;Mn.prototype.getKeys=Mn.prototype.P;Mn.prototype.getProperties=Mn.prototype.L;Mn.prototype.set=Mn.prototype.set;Mn.prototype.setProperties=Mn.prototype.J;Mn.prototype.unset=Mn.prototype.S;Mn.prototype.changed=Mn.prototype.u;Mn.prototype.dispatchEvent=Mn.prototype.b;
Mn.prototype.getRevision=Mn.prototype.M;Mn.prototype.on=Mn.prototype.H;Mn.prototype.once=Mn.prototype.once;Mn.prototype.un=Mn.prototype.K;Hw.prototype.getActive=Hw.prototype.c;Hw.prototype.getMap=Hw.prototype.i;Hw.prototype.setActive=Hw.prototype.Na;Hw.prototype.get=Hw.prototype.get;Hw.prototype.getKeys=Hw.prototype.P;Hw.prototype.getProperties=Hw.prototype.L;Hw.prototype.set=Hw.prototype.set;Hw.prototype.setProperties=Hw.prototype.J;Hw.prototype.unset=Hw.prototype.S;Hw.prototype.changed=Hw.prototype.u;
Hw.prototype.dispatchEvent=Hw.prototype.b;Hw.prototype.getRevision=Hw.prototype.M;Hw.prototype.on=Hw.prototype.H;Hw.prototype.once=Hw.prototype.once;Hw.prototype.un=Hw.prototype.K;bo.prototype.getGeometry=bo.prototype.V;bo.prototype.getActive=bo.prototype.c;bo.prototype.getMap=bo.prototype.i;bo.prototype.setActive=bo.prototype.Na;bo.prototype.get=bo.prototype.get;bo.prototype.getKeys=bo.prototype.P;bo.prototype.getProperties=bo.prototype.L;bo.prototype.set=bo.prototype.set;
bo.prototype.setProperties=bo.prototype.J;bo.prototype.unset=bo.prototype.S;bo.prototype.changed=bo.prototype.u;bo.prototype.dispatchEvent=bo.prototype.b;bo.prototype.getRevision=bo.prototype.M;bo.prototype.on=bo.prototype.H;bo.prototype.once=bo.prototype.once;bo.prototype.un=bo.prototype.K;Lw.prototype.getActive=Lw.prototype.c;Lw.prototype.getMap=Lw.prototype.i;Lw.prototype.setActive=Lw.prototype.Na;Lw.prototype.get=Lw.prototype.get;Lw.prototype.getKeys=Lw.prototype.P;
Lw.prototype.getProperties=Lw.prototype.L;Lw.prototype.set=Lw.prototype.set;Lw.prototype.setProperties=Lw.prototype.J;Lw.prototype.unset=Lw.prototype.S;Lw.prototype.changed=Lw.prototype.u;Lw.prototype.dispatchEvent=Lw.prototype.b;Lw.prototype.getRevision=Lw.prototype.M;Lw.prototype.on=Lw.prototype.H;Lw.prototype.once=Lw.prototype.once;Lw.prototype.un=Lw.prototype.K;ax.prototype.type=ax.prototype.type;ax.prototype.target=ax.prototype.target;ax.prototype.preventDefault=ax.prototype.preventDefault;
ax.prototype.stopPropagation=ax.prototype.stopPropagation;bx.prototype.getActive=bx.prototype.c;bx.prototype.getMap=bx.prototype.i;bx.prototype.setActive=bx.prototype.Na;bx.prototype.get=bx.prototype.get;bx.prototype.getKeys=bx.prototype.P;bx.prototype.getProperties=bx.prototype.L;bx.prototype.set=bx.prototype.set;bx.prototype.setProperties=bx.prototype.J;bx.prototype.unset=bx.prototype.S;bx.prototype.changed=bx.prototype.u;bx.prototype.dispatchEvent=bx.prototype.b;bx.prototype.getRevision=bx.prototype.M;
bx.prototype.on=bx.prototype.H;bx.prototype.once=bx.prototype.once;bx.prototype.un=bx.prototype.K;mx.prototype.type=mx.prototype.type;mx.prototype.target=mx.prototype.target;mx.prototype.preventDefault=mx.prototype.preventDefault;mx.prototype.stopPropagation=mx.prototype.stopPropagation;co.prototype.getActive=co.prototype.c;co.prototype.getMap=co.prototype.i;co.prototype.setActive=co.prototype.Na;co.prototype.get=co.prototype.get;co.prototype.getKeys=co.prototype.P;co.prototype.getProperties=co.prototype.L;
co.prototype.set=co.prototype.set;co.prototype.setProperties=co.prototype.J;co.prototype.unset=co.prototype.S;co.prototype.changed=co.prototype.u;co.prototype.dispatchEvent=co.prototype.b;co.prototype.getRevision=co.prototype.M;co.prototype.on=co.prototype.H;co.prototype.once=co.prototype.once;co.prototype.un=co.prototype.K;fo.prototype.getActive=fo.prototype.c;fo.prototype.getMap=fo.prototype.i;fo.prototype.setActive=fo.prototype.Na;fo.prototype.get=fo.prototype.get;fo.prototype.getKeys=fo.prototype.P;
fo.prototype.getProperties=fo.prototype.L;fo.prototype.set=fo.prototype.set;fo.prototype.setProperties=fo.prototype.J;fo.prototype.unset=fo.prototype.S;fo.prototype.changed=fo.prototype.u;fo.prototype.dispatchEvent=fo.prototype.b;fo.prototype.getRevision=fo.prototype.M;fo.prototype.on=fo.prototype.H;fo.prototype.once=fo.prototype.once;fo.prototype.un=fo.prototype.K;ox.prototype.getActive=ox.prototype.c;ox.prototype.getMap=ox.prototype.i;ox.prototype.setActive=ox.prototype.Na;ox.prototype.get=ox.prototype.get;
ox.prototype.getKeys=ox.prototype.P;ox.prototype.getProperties=ox.prototype.L;ox.prototype.set=ox.prototype.set;ox.prototype.setProperties=ox.prototype.J;ox.prototype.unset=ox.prototype.S;ox.prototype.changed=ox.prototype.u;ox.prototype.dispatchEvent=ox.prototype.b;ox.prototype.getRevision=ox.prototype.M;ox.prototype.on=ox.prototype.H;ox.prototype.once=ox.prototype.once;ox.prototype.un=ox.prototype.K;wx.prototype.type=wx.prototype.type;wx.prototype.target=wx.prototype.target;
wx.prototype.preventDefault=wx.prototype.preventDefault;wx.prototype.stopPropagation=wx.prototype.stopPropagation;ho.prototype.getActive=ho.prototype.c;ho.prototype.getMap=ho.prototype.i;ho.prototype.setActive=ho.prototype.Na;ho.prototype.get=ho.prototype.get;ho.prototype.getKeys=ho.prototype.P;ho.prototype.getProperties=ho.prototype.L;ho.prototype.set=ho.prototype.set;ho.prototype.setProperties=ho.prototype.J;ho.prototype.unset=ho.prototype.S;ho.prototype.changed=ho.prototype.u;
ho.prototype.dispatchEvent=ho.prototype.b;ho.prototype.getRevision=ho.prototype.M;ho.prototype.on=ho.prototype.H;ho.prototype.once=ho.prototype.once;ho.prototype.un=ho.prototype.K;lo.prototype.getActive=lo.prototype.c;lo.prototype.getMap=lo.prototype.i;lo.prototype.setActive=lo.prototype.Na;lo.prototype.get=lo.prototype.get;lo.prototype.getKeys=lo.prototype.P;lo.prototype.getProperties=lo.prototype.L;lo.prototype.set=lo.prototype.set;lo.prototype.setProperties=lo.prototype.J;lo.prototype.unset=lo.prototype.S;
lo.prototype.changed=lo.prototype.u;lo.prototype.dispatchEvent=lo.prototype.b;lo.prototype.getRevision=lo.prototype.M;lo.prototype.on=lo.prototype.H;lo.prototype.once=lo.prototype.once;lo.prototype.un=lo.prototype.K;po.prototype.getActive=po.prototype.c;po.prototype.getMap=po.prototype.i;po.prototype.setActive=po.prototype.Na;po.prototype.get=po.prototype.get;po.prototype.getKeys=po.prototype.P;po.prototype.getProperties=po.prototype.L;po.prototype.set=po.prototype.set;
po.prototype.setProperties=po.prototype.J;po.prototype.unset=po.prototype.S;po.prototype.changed=po.prototype.u;po.prototype.dispatchEvent=po.prototype.b;po.prototype.getRevision=po.prototype.M;po.prototype.on=po.prototype.H;po.prototype.once=po.prototype.once;po.prototype.un=po.prototype.K;Ex.prototype.getActive=Ex.prototype.c;Ex.prototype.getMap=Ex.prototype.i;Ex.prototype.setActive=Ex.prototype.Na;Ex.prototype.get=Ex.prototype.get;Ex.prototype.getKeys=Ex.prototype.P;
Ex.prototype.getProperties=Ex.prototype.L;Ex.prototype.set=Ex.prototype.set;Ex.prototype.setProperties=Ex.prototype.J;Ex.prototype.unset=Ex.prototype.S;Ex.prototype.changed=Ex.prototype.u;Ex.prototype.dispatchEvent=Ex.prototype.b;Ex.prototype.getRevision=Ex.prototype.M;Ex.prototype.on=Ex.prototype.H;Ex.prototype.once=Ex.prototype.once;Ex.prototype.un=Ex.prototype.K;Hx.prototype.type=Hx.prototype.type;Hx.prototype.target=Hx.prototype.target;Hx.prototype.preventDefault=Hx.prototype.preventDefault;
Hx.prototype.stopPropagation=Hx.prototype.stopPropagation;Jx.prototype.getActive=Jx.prototype.c;Jx.prototype.getMap=Jx.prototype.i;Jx.prototype.setActive=Jx.prototype.Na;Jx.prototype.get=Jx.prototype.get;Jx.prototype.getKeys=Jx.prototype.P;Jx.prototype.getProperties=Jx.prototype.L;Jx.prototype.set=Jx.prototype.set;Jx.prototype.setProperties=Jx.prototype.J;Jx.prototype.unset=Jx.prototype.S;Jx.prototype.changed=Jx.prototype.u;Jx.prototype.dispatchEvent=Jx.prototype.b;Jx.prototype.getRevision=Jx.prototype.M;
Jx.prototype.on=Jx.prototype.H;Jx.prototype.once=Jx.prototype.once;Jx.prototype.un=Jx.prototype.K;Nx.prototype.getActive=Nx.prototype.c;Nx.prototype.getMap=Nx.prototype.i;Nx.prototype.setActive=Nx.prototype.Na;Nx.prototype.get=Nx.prototype.get;Nx.prototype.getKeys=Nx.prototype.P;Nx.prototype.getProperties=Nx.prototype.L;Nx.prototype.set=Nx.prototype.set;Nx.prototype.setProperties=Nx.prototype.J;Nx.prototype.unset=Nx.prototype.S;Nx.prototype.changed=Nx.prototype.u;Nx.prototype.dispatchEvent=Nx.prototype.b;
Nx.prototype.getRevision=Nx.prototype.M;Nx.prototype.on=Nx.prototype.H;Nx.prototype.once=Nx.prototype.once;Nx.prototype.un=Nx.prototype.K;Tx.prototype.type=Tx.prototype.type;Tx.prototype.target=Tx.prototype.target;Tx.prototype.preventDefault=Tx.prototype.preventDefault;Tx.prototype.stopPropagation=Tx.prototype.stopPropagation;Od.prototype.get=Od.prototype.get;Od.prototype.getKeys=Od.prototype.P;Od.prototype.getProperties=Od.prototype.L;Od.prototype.set=Od.prototype.set;
Od.prototype.setProperties=Od.prototype.J;Od.prototype.unset=Od.prototype.S;Od.prototype.changed=Od.prototype.u;Od.prototype.dispatchEvent=Od.prototype.b;Od.prototype.getRevision=Od.prototype.M;Od.prototype.on=Od.prototype.H;Od.prototype.once=Od.prototype.once;Od.prototype.un=Od.prototype.K;Rd.prototype.getClosestPoint=Rd.prototype.Fb;Rd.prototype.intersectsCoordinate=Rd.prototype.yb;Rd.prototype.getExtent=Rd.prototype.D;Rd.prototype.rotate=Rd.prototype.rotate;Rd.prototype.scale=Rd.prototype.scale;
Rd.prototype.simplify=Rd.prototype.Wb;Rd.prototype.transform=Rd.prototype.transform;Rd.prototype.get=Rd.prototype.get;Rd.prototype.getKeys=Rd.prototype.P;Rd.prototype.getProperties=Rd.prototype.L;Rd.prototype.set=Rd.prototype.set;Rd.prototype.setProperties=Rd.prototype.J;Rd.prototype.unset=Rd.prototype.S;Rd.prototype.changed=Rd.prototype.u;Rd.prototype.dispatchEvent=Rd.prototype.b;Rd.prototype.getRevision=Rd.prototype.M;Rd.prototype.on=Rd.prototype.H;Rd.prototype.once=Rd.prototype.once;
Rd.prototype.un=Rd.prototype.K;rw.prototype.getFirstCoordinate=rw.prototype.ac;rw.prototype.getLastCoordinate=rw.prototype.pc;rw.prototype.getLayout=rw.prototype.qc;rw.prototype.rotate=rw.prototype.rotate;rw.prototype.scale=rw.prototype.scale;rw.prototype.getClosestPoint=rw.prototype.Fb;rw.prototype.intersectsCoordinate=rw.prototype.yb;rw.prototype.getExtent=rw.prototype.D;rw.prototype.simplify=rw.prototype.Wb;rw.prototype.get=rw.prototype.get;rw.prototype.getKeys=rw.prototype.P;
rw.prototype.getProperties=rw.prototype.L;rw.prototype.set=rw.prototype.set;rw.prototype.setProperties=rw.prototype.J;rw.prototype.unset=rw.prototype.S;rw.prototype.changed=rw.prototype.u;rw.prototype.dispatchEvent=rw.prototype.b;rw.prototype.getRevision=rw.prototype.M;rw.prototype.on=rw.prototype.H;rw.prototype.once=rw.prototype.once;rw.prototype.un=rw.prototype.K;zq.prototype.getClosestPoint=zq.prototype.Fb;zq.prototype.intersectsCoordinate=zq.prototype.yb;zq.prototype.getExtent=zq.prototype.D;
zq.prototype.rotate=zq.prototype.rotate;zq.prototype.scale=zq.prototype.scale;zq.prototype.simplify=zq.prototype.Wb;zq.prototype.transform=zq.prototype.transform;zq.prototype.get=zq.prototype.get;zq.prototype.getKeys=zq.prototype.P;zq.prototype.getProperties=zq.prototype.L;zq.prototype.set=zq.prototype.set;zq.prototype.setProperties=zq.prototype.J;zq.prototype.unset=zq.prototype.S;zq.prototype.changed=zq.prototype.u;zq.prototype.dispatchEvent=zq.prototype.b;zq.prototype.getRevision=zq.prototype.M;
zq.prototype.on=zq.prototype.H;zq.prototype.once=zq.prototype.once;zq.prototype.un=zq.prototype.K;Yk.prototype.getFirstCoordinate=Yk.prototype.ac;Yk.prototype.getLastCoordinate=Yk.prototype.pc;Yk.prototype.getLayout=Yk.prototype.qc;Yk.prototype.rotate=Yk.prototype.rotate;Yk.prototype.scale=Yk.prototype.scale;Yk.prototype.getClosestPoint=Yk.prototype.Fb;Yk.prototype.intersectsCoordinate=Yk.prototype.yb;Yk.prototype.getExtent=Yk.prototype.D;Yk.prototype.simplify=Yk.prototype.Wb;
Yk.prototype.transform=Yk.prototype.transform;Yk.prototype.get=Yk.prototype.get;Yk.prototype.getKeys=Yk.prototype.P;Yk.prototype.getProperties=Yk.prototype.L;Yk.prototype.set=Yk.prototype.set;Yk.prototype.setProperties=Yk.prototype.J;Yk.prototype.unset=Yk.prototype.S;Yk.prototype.changed=Yk.prototype.u;Yk.prototype.dispatchEvent=Yk.prototype.b;Yk.prototype.getRevision=Yk.prototype.M;Yk.prototype.on=Yk.prototype.H;Yk.prototype.once=Yk.prototype.once;Yk.prototype.un=Yk.prototype.K;
K.prototype.getFirstCoordinate=K.prototype.ac;K.prototype.getLastCoordinate=K.prototype.pc;K.prototype.getLayout=K.prototype.qc;K.prototype.rotate=K.prototype.rotate;K.prototype.scale=K.prototype.scale;K.prototype.getClosestPoint=K.prototype.Fb;K.prototype.intersectsCoordinate=K.prototype.yb;K.prototype.getExtent=K.prototype.D;K.prototype.simplify=K.prototype.Wb;K.prototype.transform=K.prototype.transform;K.prototype.get=K.prototype.get;K.prototype.getKeys=K.prototype.P;
K.prototype.getProperties=K.prototype.L;K.prototype.set=K.prototype.set;K.prototype.setProperties=K.prototype.J;K.prototype.unset=K.prototype.S;K.prototype.changed=K.prototype.u;K.prototype.dispatchEvent=K.prototype.b;K.prototype.getRevision=K.prototype.M;K.prototype.on=K.prototype.H;K.prototype.once=K.prototype.once;K.prototype.un=K.prototype.K;R.prototype.getFirstCoordinate=R.prototype.ac;R.prototype.getLastCoordinate=R.prototype.pc;R.prototype.getLayout=R.prototype.qc;R.prototype.rotate=R.prototype.rotate;
R.prototype.scale=R.prototype.scale;R.prototype.getClosestPoint=R.prototype.Fb;R.prototype.intersectsCoordinate=R.prototype.yb;R.prototype.getExtent=R.prototype.D;R.prototype.simplify=R.prototype.Wb;R.prototype.transform=R.prototype.transform;R.prototype.get=R.prototype.get;R.prototype.getKeys=R.prototype.P;R.prototype.getProperties=R.prototype.L;R.prototype.set=R.prototype.set;R.prototype.setProperties=R.prototype.J;R.prototype.unset=R.prototype.S;R.prototype.changed=R.prototype.u;
R.prototype.dispatchEvent=R.prototype.b;R.prototype.getRevision=R.prototype.M;R.prototype.on=R.prototype.H;R.prototype.once=R.prototype.once;R.prototype.un=R.prototype.K;T.prototype.getFirstCoordinate=T.prototype.ac;T.prototype.getLastCoordinate=T.prototype.pc;T.prototype.getLayout=T.prototype.qc;T.prototype.rotate=T.prototype.rotate;T.prototype.scale=T.prototype.scale;T.prototype.getClosestPoint=T.prototype.Fb;T.prototype.intersectsCoordinate=T.prototype.yb;T.prototype.getExtent=T.prototype.D;
T.prototype.simplify=T.prototype.Wb;T.prototype.transform=T.prototype.transform;T.prototype.get=T.prototype.get;T.prototype.getKeys=T.prototype.P;T.prototype.getProperties=T.prototype.L;T.prototype.set=T.prototype.set;T.prototype.setProperties=T.prototype.J;T.prototype.unset=T.prototype.S;T.prototype.changed=T.prototype.u;T.prototype.dispatchEvent=T.prototype.b;T.prototype.getRevision=T.prototype.M;T.prototype.on=T.prototype.H;T.prototype.once=T.prototype.once;T.prototype.un=T.prototype.K;
U.prototype.getFirstCoordinate=U.prototype.ac;U.prototype.getLastCoordinate=U.prototype.pc;U.prototype.getLayout=U.prototype.qc;U.prototype.rotate=U.prototype.rotate;U.prototype.scale=U.prototype.scale;U.prototype.getClosestPoint=U.prototype.Fb;U.prototype.intersectsCoordinate=U.prototype.yb;U.prototype.getExtent=U.prototype.D;U.prototype.simplify=U.prototype.Wb;U.prototype.transform=U.prototype.transform;U.prototype.get=U.prototype.get;U.prototype.getKeys=U.prototype.P;
U.prototype.getProperties=U.prototype.L;U.prototype.set=U.prototype.set;U.prototype.setProperties=U.prototype.J;U.prototype.unset=U.prototype.S;U.prototype.changed=U.prototype.u;U.prototype.dispatchEvent=U.prototype.b;U.prototype.getRevision=U.prototype.M;U.prototype.on=U.prototype.H;U.prototype.once=U.prototype.once;U.prototype.un=U.prototype.K;L.prototype.getFirstCoordinate=L.prototype.ac;L.prototype.getLastCoordinate=L.prototype.pc;L.prototype.getLayout=L.prototype.qc;L.prototype.rotate=L.prototype.rotate;
L.prototype.scale=L.prototype.scale;L.prototype.getClosestPoint=L.prototype.Fb;L.prototype.intersectsCoordinate=L.prototype.yb;L.prototype.getExtent=L.prototype.D;L.prototype.simplify=L.prototype.Wb;L.prototype.transform=L.prototype.transform;L.prototype.get=L.prototype.get;L.prototype.getKeys=L.prototype.P;L.prototype.getProperties=L.prototype.L;L.prototype.set=L.prototype.set;L.prototype.setProperties=L.prototype.J;L.prototype.unset=L.prototype.S;L.prototype.changed=L.prototype.u;
L.prototype.dispatchEvent=L.prototype.b;L.prototype.getRevision=L.prototype.M;L.prototype.on=L.prototype.H;L.prototype.once=L.prototype.once;L.prototype.un=L.prototype.K;M.prototype.getFirstCoordinate=M.prototype.ac;M.prototype.getLastCoordinate=M.prototype.pc;M.prototype.getLayout=M.prototype.qc;M.prototype.rotate=M.prototype.rotate;M.prototype.scale=M.prototype.scale;M.prototype.getClosestPoint=M.prototype.Fb;M.prototype.intersectsCoordinate=M.prototype.yb;M.prototype.getExtent=M.prototype.D;
M.prototype.simplify=M.prototype.Wb;M.prototype.transform=M.prototype.transform;M.prototype.get=M.prototype.get;M.prototype.getKeys=M.prototype.P;M.prototype.getProperties=M.prototype.L;M.prototype.set=M.prototype.set;M.prototype.setProperties=M.prototype.J;M.prototype.unset=M.prototype.S;M.prototype.changed=M.prototype.u;M.prototype.dispatchEvent=M.prototype.b;M.prototype.getRevision=M.prototype.M;M.prototype.on=M.prototype.H;M.prototype.once=M.prototype.once;M.prototype.un=M.prototype.K;
W.prototype.readFeatures=W.prototype.Oa;Tp.prototype.writeFeatures=Tp.prototype.Xb;Tp.prototype.readFeatures=Tp.prototype.Oa;W.prototype.readFeatures=W.prototype.Oa;Iq.prototype.readFeatures=Iq.prototype.Oa;Ql.prototype.get=Ql.prototype.get;Ql.prototype.getKeys=Ql.prototype.P;Ql.prototype.getProperties=Ql.prototype.L;Ql.prototype.set=Ql.prototype.set;Ql.prototype.setProperties=Ql.prototype.J;Ql.prototype.unset=Ql.prototype.S;Ql.prototype.changed=Ql.prototype.u;Ql.prototype.dispatchEvent=Ql.prototype.b;
Ql.prototype.getRevision=Ql.prototype.M;Ql.prototype.on=Ql.prototype.H;Ql.prototype.once=Ql.prototype.once;Ql.prototype.un=Ql.prototype.K;Rl.prototype.getMap=Rl.prototype.i;Rl.prototype.setMap=Rl.prototype.setMap;Rl.prototype.setTarget=Rl.prototype.c;Rl.prototype.get=Rl.prototype.get;Rl.prototype.getKeys=Rl.prototype.P;Rl.prototype.getProperties=Rl.prototype.L;Rl.prototype.set=Rl.prototype.set;Rl.prototype.setProperties=Rl.prototype.J;Rl.prototype.unset=Rl.prototype.S;Rl.prototype.changed=Rl.prototype.u;
Rl.prototype.dispatchEvent=Rl.prototype.b;Rl.prototype.getRevision=Rl.prototype.M;Rl.prototype.on=Rl.prototype.H;Rl.prototype.once=Rl.prototype.once;Rl.prototype.un=Rl.prototype.K;am.prototype.getMap=am.prototype.i;am.prototype.setMap=am.prototype.setMap;am.prototype.setTarget=am.prototype.c;am.prototype.get=am.prototype.get;am.prototype.getKeys=am.prototype.P;am.prototype.getProperties=am.prototype.L;am.prototype.set=am.prototype.set;am.prototype.setProperties=am.prototype.J;am.prototype.unset=am.prototype.S;
am.prototype.changed=am.prototype.u;am.prototype.dispatchEvent=am.prototype.b;am.prototype.getRevision=am.prototype.M;am.prototype.on=am.prototype.H;am.prototype.once=am.prototype.once;am.prototype.un=am.prototype.K;fm.prototype.getMap=fm.prototype.i;fm.prototype.setMap=fm.prototype.setMap;fm.prototype.setTarget=fm.prototype.c;fm.prototype.get=fm.prototype.get;fm.prototype.getKeys=fm.prototype.P;fm.prototype.getProperties=fm.prototype.L;fm.prototype.set=fm.prototype.set;
fm.prototype.setProperties=fm.prototype.J;fm.prototype.unset=fm.prototype.S;fm.prototype.changed=fm.prototype.u;fm.prototype.dispatchEvent=fm.prototype.b;fm.prototype.getRevision=fm.prototype.M;fm.prototype.on=fm.prototype.H;fm.prototype.once=fm.prototype.once;fm.prototype.un=fm.prototype.K;So.prototype.getMap=So.prototype.i;So.prototype.setMap=So.prototype.setMap;So.prototype.setTarget=So.prototype.c;So.prototype.get=So.prototype.get;So.prototype.getKeys=So.prototype.P;
So.prototype.getProperties=So.prototype.L;So.prototype.set=So.prototype.set;So.prototype.setProperties=So.prototype.J;So.prototype.unset=So.prototype.S;So.prototype.changed=So.prototype.u;So.prototype.dispatchEvent=So.prototype.b;So.prototype.getRevision=So.prototype.M;So.prototype.on=So.prototype.H;So.prototype.once=So.prototype.once;So.prototype.un=So.prototype.K;Xl.prototype.getMap=Xl.prototype.i;Xl.prototype.setMap=Xl.prototype.setMap;Xl.prototype.setTarget=Xl.prototype.c;Xl.prototype.get=Xl.prototype.get;
Xl.prototype.getKeys=Xl.prototype.P;Xl.prototype.getProperties=Xl.prototype.L;Xl.prototype.set=Xl.prototype.set;Xl.prototype.setProperties=Xl.prototype.J;Xl.prototype.unset=Xl.prototype.S;Xl.prototype.changed=Xl.prototype.u;Xl.prototype.dispatchEvent=Xl.prototype.b;Xl.prototype.getRevision=Xl.prototype.M;Xl.prototype.on=Xl.prototype.H;Xl.prototype.once=Xl.prototype.once;Xl.prototype.un=Xl.prototype.K;Xo.prototype.getMap=Xo.prototype.i;Xo.prototype.setMap=Xo.prototype.setMap;
Xo.prototype.setTarget=Xo.prototype.c;Xo.prototype.get=Xo.prototype.get;Xo.prototype.getKeys=Xo.prototype.P;Xo.prototype.getProperties=Xo.prototype.L;Xo.prototype.set=Xo.prototype.set;Xo.prototype.setProperties=Xo.prototype.J;Xo.prototype.unset=Xo.prototype.S;Xo.prototype.changed=Xo.prototype.u;Xo.prototype.dispatchEvent=Xo.prototype.b;Xo.prototype.getRevision=Xo.prototype.M;Xo.prototype.on=Xo.prototype.H;Xo.prototype.once=Xo.prototype.once;Xo.prototype.un=Xo.prototype.K;Zl.prototype.getMap=Zl.prototype.i;
Zl.prototype.setMap=Zl.prototype.setMap;Zl.prototype.setTarget=Zl.prototype.c;Zl.prototype.get=Zl.prototype.get;Zl.prototype.getKeys=Zl.prototype.P;Zl.prototype.getProperties=Zl.prototype.L;Zl.prototype.set=Zl.prototype.set;Zl.prototype.setProperties=Zl.prototype.J;Zl.prototype.unset=Zl.prototype.S;Zl.prototype.changed=Zl.prototype.u;Zl.prototype.dispatchEvent=Zl.prototype.b;Zl.prototype.getRevision=Zl.prototype.M;Zl.prototype.on=Zl.prototype.H;Zl.prototype.once=Zl.prototype.once;
Zl.prototype.un=Zl.prototype.K;bp.prototype.getMap=bp.prototype.i;bp.prototype.setMap=bp.prototype.setMap;bp.prototype.setTarget=bp.prototype.c;bp.prototype.get=bp.prototype.get;bp.prototype.getKeys=bp.prototype.P;bp.prototype.getProperties=bp.prototype.L;bp.prototype.set=bp.prototype.set;bp.prototype.setProperties=bp.prototype.J;bp.prototype.unset=bp.prototype.S;bp.prototype.changed=bp.prototype.u;bp.prototype.dispatchEvent=bp.prototype.b;bp.prototype.getRevision=bp.prototype.M;bp.prototype.on=bp.prototype.H;
bp.prototype.once=bp.prototype.once;bp.prototype.un=bp.prototype.K;gp.prototype.getMap=gp.prototype.i;gp.prototype.setMap=gp.prototype.setMap;gp.prototype.setTarget=gp.prototype.c;gp.prototype.get=gp.prototype.get;gp.prototype.getKeys=gp.prototype.P;gp.prototype.getProperties=gp.prototype.L;gp.prototype.set=gp.prototype.set;gp.prototype.setProperties=gp.prototype.J;gp.prototype.unset=gp.prototype.S;gp.prototype.changed=gp.prototype.u;gp.prototype.dispatchEvent=gp.prototype.b;
gp.prototype.getRevision=gp.prototype.M;gp.prototype.on=gp.prototype.H;gp.prototype.once=gp.prototype.once;gp.prototype.un=gp.prototype.K;tl.prototype.csAddBillboard=tl.prototype.ig;tl.prototype.olCircleGeometryToCesium=tl.prototype.Cg;tl.prototype.olLineStringGeometryToCesium=tl.prototype.re;tl.prototype.olPolygonGeometryToCesium=tl.prototype.jf;tl.prototype.getAllowPicking=tl.prototype.Cd;tl.prototype.getHeightReference=tl.prototype.bc;tl.prototype.getClassificationType=tl.prototype.Ve;
tl.prototype.olPointGeometryToCesium=tl.prototype.se;tl.prototype.olMultiGeometryToCesium=tl.prototype.Eg;tl.prototype.olGeometry4326TextPartToCesium=tl.prototype.Dg;tl.prototype.olStyleToCesium=tl.prototype.te;tl.prototype.computePlainStyle=tl.prototype.Xd;tl.prototype.olFeatureToCesium=tl.prototype.fd;tl.prototype.olVectorLayerToCesium=tl.prototype.kf;tl.prototype.convert=tl.prototype.convert;}).call(this);