diff --git a/www/1239.1448a1b7d4c92c6b.js b/www/1239.1448a1b7d4c92c6b.js new file mode 100644 index 0000000..47947dd --- /dev/null +++ b/www/1239.1448a1b7d4c92c6b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1239],{1239:(O,L,r)=>{r.r(L),r.d(L,{LatencyTestPageModule:()=>E});var v=r(177),f=r(4341),c=r(7863),T=r(305),y=r(467),e=r(4438),R=r(9640),F=r(5092),h=r(4262),P=r(1626);let M=(()=>{var o;class u{constructor(t,n){this.firestore=t,this.http=n,this.ipApiURL="https://cors-ea3m.onrender.com/http://ip-api.com/json/"}getLocation(t){var n=this;return(0,y.A)(function*(){console.log(t);const s=yield n.http.get(n.ipApiURL+t[0].dst_addr).toPromise();for(let i=0;in.http.get(n.ipApiURL+i.from).toPromise());return(yield Promise.all(p)).forEach((i,d)=>{t[d].fromLatitude=i.lat,t[d].fromLongitude=i.lon,t[d].cityFrom=i.city,t[d].countryFrom=i.country}),console.log(t),t})()}saveLocationResults(t,n,g,s){var p=this;return(0,y.A)(function*(){try{console.log(s,"ripeData");const m=(0,h.rJ)(p.firestore,"teams",t,"products",n,"ripe"),i=(0,h.H9)(m,g),d=s.map(a=>({from:a.from,dst_addr:a.dst_addr,latency:a.latency,cityFrom:a.cityFrom,countryFrom:a.countryFrom,cityTo:a.cityTo,countryTo:a.countryTo,fromLatitude:a.fromLatitude,fromLongitude:a.fromLongitude,toLatitude:a.toLatitude,toLongitude:a.toLongitude}));return yield(0,h.BN)(i,{data:d}),console.log("Data saved",{data:d}),!0}catch(m){return console.log(m),!1}})()}}return(o=u).\u0275fac=function(t){return new(t||o)(e.KVO(h._7),e.KVO(P.Qq))},o.\u0275prov=e.jDH({token:o,factory:o.\u0275fac,providedIn:"root"}),u})();var C=r(385),j=r(8453);function S(o,u){if(1&o&&(e.j41(0,"ion-item")(1,"ion-label"),e.EFF(2),e.k0s(),e.j41(3,"ion-label"),e.EFF(4),e.k0s(),e.j41(5,"ion-label"),e.EFF(6),e.k0s()()),2&o){const l=u.$implicit;e.R7$(2),e.Lme("FROM ",l.cityFrom,",",l.countryFrom,""),e.R7$(2),e.SpI("",l.latency," ms"),e.R7$(2),e.Lme(" TO ",l.cityTo,",",l.countryTo,"")}}const I=[{path:"",component:(()=>{var o;class u{constructor(t,n,g,s){this.ripeService=t,this.teamsService=n,this.loadingCtrl=g,this.locationService=s,this.host="portfoliojuanfranciscocisneros.web.app",this.description="NEW IONIC",this.type="ping",this.ripeResults=[]}ngOnInit(){}sendRequest(){var t=this;return(0,y.A)(function*(){yield t.showLoading(),console.log(t.host,t.description,t.type),yield t.ripeService.sendMeasurementRequest(t.host,t.description,t.type),yield t.hideLoading()})()}getResults(){var t=this;return(0,y.A)(function*(){yield t.showLoading(),t.ripeResults=[];const n=localStorage.getItem("user");if(!n)return;const s=JSON.parse(n).orgName;(yield t.ripeService.getMeasurementResults()).subscribe(function(){var p=(0,y.A)(function*(m){for(let i=0;i{t.ripeResults=i,t.locationService.saveLocationResults(s,"Web",t.description,i).then(function(){var d=(0,y.A)(function*(a){a&&(console.log("Data saved"),console.log(t.ripeResults),yield t.hideLoading())});return function(a){return d.apply(this,arguments)}}())})}))});return function(m){return p.apply(this,arguments)}}())})()}handleChange(t){this.type=t.detail.value}showLoading(){var t=this;return(0,y.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,y.A)(function*(){yield t.loadingCtrl.dismiss()})()}}return(o=u).\u0275fac=function(t){return new(t||o)(e.rXU(R.Q),e.rXU(F.O),e.rXU(c.Xi),e.rXU(M))},o.\u0275cmp=e.VBU({type:o,selectors:[["app-latency-test"]],inputs:{host:"host",description:"description"},decls:27,vars:6,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["label","Host Name","placeholder","Enter a host name","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","12","size-md","4","size-lg","4"],["label","Description","placeholder","Enter a description","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],[3,"ionChange"],["value","ping"],["value","traceroute"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-end"],["color","primary",1,"",3,"click"],["size","12","size-md","12","size-lg","12"],[4,"ngFor","ngForOf"]],template:function(t,n){1&t&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"ion-grid"),e.nrm(3,"app-title",0),e.j41(4,"ion-row",2)(5,"ion-col",3)(6,"ion-input",4),e.mxI("ngModelChange",function(s){return e.DH7(n.host,s)||(n.host=s),s}),e.k0s()(),e.j41(7,"ion-col",5)(8,"ion-input",6),e.mxI("ngModelChange",function(s){return e.DH7(n.description,s)||(n.description=s),s}),e.k0s()(),e.j41(9,"ion-col",5)(10,"ion-list")(11,"ion-item")(12,"ion-select",7),e.bIt("ionChange",function(s){return n.handleChange(s)}),e.j41(13,"ion-select-option",8),e.EFF(14,"Ping"),e.k0s(),e.j41(15,"ion-select-option",9),e.EFF(16,"Traceroute"),e.k0s()()()()()(),e.j41(17,"ion-row",2)(18,"ion-col",10)(19,"ion-button",11),e.bIt("click",function(){return n.sendRequest()}),e.EFF(20,"Add Test"),e.k0s(),e.j41(21,"ion-button",11),e.bIt("click",function(){return n.getResults()}),e.EFF(22,"Get Results"),e.k0s()()(),e.j41(23,"ion-row",2)(24,"ion-col",12)(25,"ion-list"),e.DNE(26,S,7,5,"ion-item",13),e.k0s()()()()()),2&t&&(e.Y8G("title","Latency Test"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Latency Test"),e.R7$(3),e.R50("ngModel",n.host),e.R7$(2),e.R50("ngModel",n.description),e.R7$(18),e.Y8G("ngForOf",n.ripeResults))},dependencies:[v.Sq,f.BC,f.vS,c.Jm,c.hU,c.W9,c.lO,c.$w,c.uz,c.he,c.nf,c.ln,c.Nm,c.Ip,c.Je,c.Gw,C.l,j.W]}),u})()}];let z=(()=>{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[T.iI.forChild(I),T.iI]}),u})();var A=r(5553);let E=(()=>{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[v.MD,f.YN,c.bv,z,A.h]}),u})()}}]); \ No newline at end of file diff --git a/www/246.c0a1e057f22d2582.js b/www/246.c0a1e057f22d2582.js new file mode 100644 index 0000000..a62a99c --- /dev/null +++ b/www/246.c0a1e057f22d2582.js @@ -0,0 +1 @@ +(self.webpackChunkapp=self.webpackChunkapp||[]).push([[246],{246:($e,fe,C)=>{"use strict";C.r(fe),C.d(fe,{ShowMapPageModule:()=>E});var Ut=C(177),l=C(4341),v=C(7863),r=C(305),h=C(467),a=C(8244),f=C(5841),c=C(4438),d=C(9640),_=C(385);function P(A,U){if(1&A&&(c.j41(0,"p"),c.EFF(1),c.k0s()),2&A){const q=U.$implicit;c.R7$(),c.Lme("",q.countryFrom," : ",q.latency,"")}}const g=[{path:"",component:(()=>{var A;class U{constructor(N){this.ripeService=N,this.ripeData=[]}ngOnInit(){}ionViewDidEnter(){var N=this;return(0,h.A)(function*(){N.ripeData=yield N.ripeService.getAllResults("DevProbe","Web","NEW IONIC"),yield N.leafletMap()})()}leafletMap(){var N=this;return(0,h.A)(function*(){N.map=a.map("mapId").setView([0,0],2.5),a.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"edupala.com \xa9 Angular LeafLet"}).addTo(N.map),setTimeout(()=>{N.map.invalidateSize(),N.addPaths()},1e3)})()}ngOnDestroy(){this.map.remove()}addPaths(){this.ripeData=this.ripeData.data,this.ripeData.sort((N,Q)=>N.latencyLatency: ${N.latency} ms`,iconSize:[120,20]});a.marker([(N.fromLatitude+N.toLatitude)/2,(N.fromLongitude+N.toLongitude)/2],{icon:Q}).addTo(this.map)}}}return(A=U).\u0275fac=function(N){return new(N||A)(c.rXU(d.Q))},A.\u0275cmp=c.VBU({type:A,selectors:[["app-show-map"]],decls:10,vars:1,consts:[[3,"title"],[1,"relative"],[1,"fixed-card","hidden","lg:block"],["id","mapId",2,"width","100%","height","100%"]],template:function(N,Q){1&N&&(c.nrm(0,"app-header",0),c.j41(1,"ion-content",1)(2,"ion-card",2)(3,"ion-card-header")(4,"ion-card-title"),c.EFF(5,"Latency Higher to Lower"),c.k0s()(),c.j41(6,"ion-card-content"),c.Z7z(7,P,2,2,"p",null,c.fX1),c.k0s()(),c.nrm(9,"div",3),c.k0s()),2&N&&(c.Y8G("title","Show Map"),c.R7$(7),c.Dyx(Q.ripeData))},dependencies:[v.b_,v.I9,v.ME,v.tN,v.W9,_.l],styles:[".fixed-card[_ngcontent-%COMP%]{position:absolute;top:10px;left:50px;z-index:1000;background-color:#fff;border-radius:10px;box-shadow:0 2px 10px #0003}"]}),U})()}];let T=(()=>{var A;class U{}return(A=U).\u0275fac=function(N){return new(N||A)},A.\u0275mod=c.$C({type:A}),A.\u0275inj=c.G2t({imports:[r.iI.forChild(g),r.iI]}),U})();var S=C(5553);let E=(()=>{var A;class U{}return(A=U).\u0275fac=function(N){return new(N||A)},A.\u0275mod=c.$C({type:A}),A.\u0275inj=c.G2t({imports:[Ut.MD,l.YN,v.bv,T,S.h]}),U})()},5841:($e,fe,C)=>{var Ut;window,$e.exports=(Ut=C(8244),function(l){var v={};function r(h){if(v[h])return v[h].exports;var a=v[h]={i:h,l:!1,exports:{}};return l[h].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=l,r.c=v,r.d=function(h,a,f){r.o(h,a)||Object.defineProperty(h,a,{enumerable:!0,get:f})},r.r=function(h){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},r.t=function(h,a){if(1&a&&(h=r(h)),8&a||4&a&&"object"==typeof h&&h&&h.__esModule)return h;var f=Object.create(null);if(r.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:h}),2&a&&"string"!=typeof h)for(var c in h)r.d(f,c,function(d){return h[d]}.bind(null,c));return f},r.n=function(h){var a=h&&h.__esModule?function(){return h.default}:function(){return h};return r.d(a,"a",a),a},r.o=function(h,a){return Object.prototype.hasOwnProperty.call(h,a)},r.p="",r(r.s=59)}([function(l,v){l.exports="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")()},function(l,v){l.exports=Ut},function(l,v,r){var h=r(4);l.exports=function(a){if(!h(a))throw TypeError(String(a)+" is not an object");return a}},function(l,v,r){var h=r(0),a=r(11).f,f=r(16),c=r(33),d=r(30),_=r(52),P=r(69);l.exports=function(y,g){var T,S,E,A,U,q=y.target,N=y.global,Q=y.stat;if(T=N?h:Q?h[q]||d(q,{}):(h[q]||{}).prototype)for(S in g){if(A=g[S],E=y.noTargetGet?(U=a(T,S))&&U.value:T[S],!P(N?S:q+(Q?".":"#")+S,y.forced)&&void 0!==E){if(typeof A==typeof E)continue;_(A,E)}(y.sham||E&&E.sham)&&f(A,"sham",!0),c(T,S,A,y)}}},function(l,v){l.exports=function(r){return"object"==typeof r?null!==r:"function"==typeof r}},function(l,v){l.exports=function(r){try{return!!r()}catch{return!0}}},function(l,v,r){var h=r(20),a=r(7),f=r(55),c=r(8).f;l.exports=function(d){var _=h.Symbol||(h.Symbol={});a(_,d)||c(_,d,{value:f.f(d)})}},function(l,v){var r={}.hasOwnProperty;l.exports=function(h,a){return r.call(h,a)}},function(l,v,r){var h=r(9),a=r(46),f=r(2),c=r(13),d=Object.defineProperty;v.f=h?d:function(_,P,y){if(f(_),P=c(P,!0),f(y),a)try{return d(_,P,y)}catch{}if("get"in y||"set"in y)throw TypeError("Accessors not supported");return"value"in y&&(_[P]=y.value),_}},function(l,v,r){l.exports=!r(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(l,v,r){var h=r(15)("wks"),a=r(31),f=r(0).Symbol,c=r(49);l.exports=function(d){return h[d]||(h[d]=c&&f[d]||(c?f:a)("Symbol."+d))}},function(l,v,r){var h=r(9),a=r(32),f=r(14),c=r(17),d=r(13),_=r(7),P=r(46),y=Object.getOwnPropertyDescriptor;v.f=h?y:function(g,T){if(g=c(g),T=d(T,!0),P)try{return y(g,T)}catch{}if(_(g,T))return f(!a.f.call(g,T),g[T])}},function(l,v,r){l.exports=r(21)},function(l,v,r){var h=r(4);l.exports=function(a,f){if(!h(a))return a;var c,d;if(f&&"function"==typeof(c=a.toString)&&!h(d=c.call(a))||"function"==typeof(c=a.valueOf)&&!h(d=c.call(a))||!f&&"function"==typeof(c=a.toString)&&!h(d=c.call(a)))return d;throw TypeError("Can't convert object to primitive value")}},function(l,v){l.exports=function(r,h){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:h}}},function(l,v,r){var h=r(0),a=r(30),f=h["__core-js_shared__"]||a("__core-js_shared__",{});(l.exports=function(c,d){return f[c]||(f[c]=void 0!==d?d:{})})("versions",[]).push({version:"3.0.1",mode:r(48)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(l,v,r){var h=r(8),a=r(14);l.exports=r(9)?function(f,c,d){return h.f(f,c,a(1,d))}:function(f,c,d){return f[c]=d,f}},function(l,v,r){var h=r(65),a=r(43);l.exports=function(f){return h(a(f))}},function(l,v,r){var h=r(15)("keys"),a=r(31);l.exports=function(f){return h[f]||(h[f]=a(f))}},function(l,v){l.exports={}},function(l,v,r){l.exports=r(0)},function(l,v,r){var h=function(){return this||"object"==typeof self&&self}()||Function("return this")(),a=h.regeneratorRuntime&&Object.getOwnPropertyNames(h).indexOf("regeneratorRuntime")>=0,f=a&&h.regeneratorRuntime;if(h.regeneratorRuntime=void 0,l.exports=r(22),a)h.regeneratorRuntime=f;else try{delete h.regeneratorRuntime}catch{h.regeneratorRuntime=void 0}},function(l,v){!function(r){"use strict";var h,a=Object.prototype,f=a.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},d=c.iterator||"@@iterator",_=c.asyncIterator||"@@asyncIterator",P=c.toStringTag||"@@toStringTag",y="object"==typeof l,g=r.regeneratorRuntime;if(g)y&&(l.exports=g);else{(g=r.regeneratorRuntime=y?l.exports:{}).wrap=pt;var T="suspendedStart",S="suspendedYield",E="executing",A="completed",U={},q={};q[d]=function(){return this};var N=Object.getPrototypeOf,Q=N&&N(N(I([])));Q&&Q!==a&&f.call(Q,d)&&(q=Q);var ct=B.prototype=Z.prototype=Object.create(q);z.prototype=ct.constructor=B,B.constructor=z,B[P]=z.displayName="GeneratorFunction",g.isGeneratorFunction=function(b){var w="function"==typeof b&&b.constructor;return!!w&&(w===z||"GeneratorFunction"===(w.displayName||w.name))},g.mark=function(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,B):(b.__proto__=B,P in b||(b[P]="GeneratorFunction")),b.prototype=Object.create(ct),b},g.awrap=function(b){return{__await:b}},W(G.prototype),G.prototype[_]=function(){return this},g.AsyncIterator=G,g.async=function(b,w,R,F){var M=new G(pt(b,w,R,F));return g.isGeneratorFunction(w)?M:M.next().then(function(at){return at.done?at.value:M.next()})},W(ct),ct[P]="Generator",ct[d]=function(){return this},ct.toString=function(){return"[object Generator]"},g.keys=function(b){var w=[];for(var R in b)w.push(R);return w.reverse(),function F(){for(;w.length;){var M=w.pop();if(M in b)return F.value=M,F.done=!1,F}return F.done=!0,F}},g.values=I,$.prototype={constructor:$,reset:function(b){if(this.prev=0,this.next=0,this.sent=this._sent=h,this.done=!1,this.delegate=null,this.method="next",this.arg=h,this.tryEntries.forEach(x),!b)for(var w in this)"t"===w.charAt(0)&&f.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=h)},stop:function(){this.done=!0;var b=this.tryEntries[0].completion;if("throw"===b.type)throw b.arg;return this.rval},dispatchException:function(b){if(this.done)throw b;var w=this;function R(Et,nt){return at.type="throw",at.arg=b,w.next=Et,nt&&(w.method="next",w.arg=h),!!nt}for(var F=this.tryEntries.length-1;F>=0;--F){var M=this.tryEntries[F],at=M.completion;if("root"===M.tryLoc)return R("end");if(M.tryLoc<=this.prev){var vt=f.call(M,"catchLoc"),St=f.call(M,"finallyLoc");if(vt&&St){if(this.prev=0;--R){var F=this.tryEntries[R];if(F.tryLoc<=this.prev&&f.call(F,"finallyLoc")&&this.prev=0;--w){var R=this.tryEntries[w];if(R.finallyLoc===b)return this.complete(R.completion,R.afterLoc),x(R),U}},catch:function(b){for(var w=this.tryEntries.length-1;w>=0;--w){var R=this.tryEntries[w];if(R.tryLoc===b){var F=R.completion;if("throw"===F.type){var M=F.arg;x(R)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(b,w,R){return this.delegate={iterator:I(b),resultName:w,nextLoc:R},"next"===this.method&&(this.arg=h),U}}}function pt(b,w,R,F){var at=Object.create((w&&w.prototype instanceof Z?w:Z).prototype),vt=new $(F||[]);return at._invoke=function(St,Et,nt){var ht=T;return function(xt,Zt){if(ht===E)throw new Error("Generator is already running");if(ht===A){if("throw"===xt)throw Zt;return Y()}for(nt.method=xt,nt.arg=Zt;;){var _t=nt.delegate;if(_t){var bt=J(_t,nt);if(bt){if(bt===U)continue;return bt}}if("next"===nt.method)nt.sent=nt._sent=nt.arg;else if("throw"===nt.method){if(ht===T)throw ht=A,nt.arg;nt.dispatchException(nt.arg)}else"return"===nt.method&&nt.abrupt("return",nt.arg);ht=E;var ut=j(St,Et,nt);if("normal"===ut.type){if(ht=nt.done?A:S,ut.arg===U)continue;return{value:ut.arg,done:nt.done}}"throw"===ut.type&&(ht=A,nt.method="throw",nt.arg=ut.arg)}}}(b,R,vt),at}function j(b,w,R){try{return{type:"normal",arg:b.call(w,R)}}catch(F){return{type:"throw",arg:F}}}function Z(){}function z(){}function B(){}function W(b){["next","throw","return"].forEach(function(w){b[w]=function(R){return this._invoke(w,R)}})}function G(b){var w;this._invoke=function(R,F){function M(){return new Promise(function(at,vt){!function St(Et,nt,ht,xt){var Zt=j(b[Et],b,nt);if("throw"!==Zt.type){var _t=Zt.arg,bt=_t.value;return bt&&"object"==typeof bt&&f.call(bt,"__await")?Promise.resolve(bt.__await).then(function(ut){St("next",ut,ht,xt)},function(ut){St("throw",ut,ht,xt)}):Promise.resolve(bt).then(function(ut){_t.value=ut,ht(_t)},function(ut){return St("throw",ut,ht,xt)})}xt(Zt.arg)}(R,F,at,vt)})}return w=w?w.then(M,M):M()}}function J(b,w){var R=b.iterator[w.method];if(R===h){if(w.delegate=null,"throw"===w.method){if(b.iterator.return&&(w.method="return",w.arg=h,J(b,w),"throw"===w.method))return U;w.method="throw",w.arg=new TypeError("The iterator does not provide a 'throw' method")}return U}var F=j(R,b.iterator,w.arg);if("throw"===F.type)return w.method="throw",w.arg=F.arg,w.delegate=null,U;var M=F.arg;return M?M.done?(w[b.resultName]=M.value,w.next=b.nextLoc,"return"!==w.method&&(w.method="next",w.arg=h),w.delegate=null,U):M:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,U)}function k(b){var w={tryLoc:b[0]};1 in b&&(w.catchLoc=b[1]),2 in b&&(w.finallyLoc=b[2],w.afterLoc=b[3]),this.tryEntries.push(w)}function x(b){var w=b.completion||{};w.type="normal",delete w.arg,b.completion=w}function $(b){this.tryEntries=[{tryLoc:"root"}],b.forEach(k,this),this.reset(!0)}function I(b){if(b){var w=b[d];if(w)return w.call(b);if("function"==typeof b.next)return b;if(!isNaN(b.length)){var R=-1,F=function M(){for(;++R=0&&y.splice(Z,1)}function U(j){var Z=document.createElement("style");if(void 0===j.attrs.type&&(j.attrs.type="text/css"),void 0===j.attrs.nonce){var z=r.nc;z&&(j.attrs.nonce=z)}return q(Z,j.attrs),E(j,Z),Z}function q(j,Z){Object.keys(Z).forEach(function(z){j.setAttribute(z,Z[z])})}function N(j,Z){var z,B,W,G,k,x;if(Z.transform&&j.css){if(!(G="function"==typeof Z.transform?Z.transform(j.css):Z.transform.default(j.css)))return function(){};j.css=G}if(Z.singleton){var J=P++;z=_||(_=U(Z)),B=pt.bind(null,z,J,!1),W=pt.bind(null,z,J,!0)}else j.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(k=Z,x=document.createElement("link"),void 0===k.attrs.type&&(k.attrs.type="text/css"),k.attrs.rel="stylesheet",q(x,k.attrs),E(k,x),B=function(k,x,$){var I=$.css,Y=$.sourceMap;(x.convertToAbsoluteUrls||void 0===x.convertToAbsoluteUrls&&Y)&&(I=g(I)),Y&&(I+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(Y))))+" */");var w=new Blob([I],{type:"text/css"}),R=k.href;k.href=URL.createObjectURL(w),R&&URL.revokeObjectURL(R)}.bind(null,z=x,Z),W=function(){A(z),z.href&&URL.revokeObjectURL(z.href)}):(z=U(Z),B=function(k,x){var $=x.css,I=x.media;if(I&&k.setAttribute("media",I),k.styleSheet)k.styleSheet.cssText=$;else{for(;k.firstChild;)k.removeChild(k.firstChild);k.appendChild(document.createTextNode($))}}.bind(null,z),W=function(){A(z)});return B(j),function(k){if(k){if(k.css===j.css&&k.media===j.media&&k.sourceMap===j.sourceMap)return;B(j=k)}else W()}}l.exports=function(j,Z){if(typeof DEBUG<"u"&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(Z=Z||{}).attrs="object"==typeof Z.attrs?Z.attrs:{},Z.singleton||"boolean"==typeof Z.singleton||(Z.singleton=c()),Z.insertInto||(Z.insertInto="head"),Z.insertAt||(Z.insertAt="bottom");var z=S(j,Z);return T(z,Z),function(B){for(var W=[],G=0;G1&&void 0!==arguments[1]?arguments[1]:{};return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,B),this,x=!(I=y(B).call(this))||"object"!==c(I)&&"function"!=typeof I?T(this):I,S(T(T(x)),A,null),S(T(T(x)),U,null),S(T(T(x)),"_map",null),S(T(T(x)),"_path",null),S(T(T(x)),"_animatedPathId",null),S(T(T(x)),"_animatedPathClass","leaflet-ant-path"),S(T(T(x)),"_reversePathClass","".concat(x._animatedPathClass,"__reverse")),S(T(T(x)),"_hardwareAccClass","hardware-acceleration"),S(T(T(x)),"_defaultOptions",{use:h.polyline,paused:!1,reverse:!1,hardwareAcceleration:!1,renderer:Object(h.svg)({pane:"overlayPane"}),delay:400,dashArray:[10,20],weight:5,opacity:.5,color:"#0000FF",pulseColor:"#FFFFFF"}),h.Util.setOptions(T(T(x)),_({},x._defaultOptions,Y)),x._path=k,x._animatedPathId="ant-path-".concat((new Date).getTime()),x._mount(),x}var W,G,J;return function(k,x){if("function"!=typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(x&&x.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),x&&g(k,x)}(B,h.FeatureGroup),W=B,J=[{key:q,get:function(){return this}}],(G=[{key:"map",value:function(k){return new this.constructor[Symbol.species](this._path.map(k),_({},this.options))}},{key:Q,value:f.a.mark(function k(){return f.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.delegateYield(this._path,"t0",1);case 1:case"end":return x.stop()}},k,this)})},{key:"_processOptions",value:function(){var k=this.options,x=this._animatedPathClass,$=this._reversePathClass,I=this._hardwareAccClass,Y=this._animatedPathId,b=k.reverse,w=k.hardwareAcceleration,R=_({},k),F=_({},k);return F.color=F.pulseColor||k.pulseColor,F.className=[x,Y,b?$:"",w?"".concat(x,"__").concat(I):""].join(" "),delete R.dashArray,Array.isArray(F.dashArray)&&(F.dashArray=String(F.dashArray)),{pathOpts:R,pulseOpts:F}}},{key:"_mount",value:function(){var k=this._processOptions(),$=k.pulseOpts,I=this.options.use;this.addLayer(this[E.main]=I(this._path,k.pathOpts)),this.addLayer(this[E.pulse]=I(this._path,$))}},{key:"_calculateAnimationSpeed",value:function(){var k=this.options,x=this._map,$=this._animatedPathId;if(!k.paused&&x){var I=x.getZoom(),Y=document.getElementsByClassName($),b=1+k.delay/3/I+"s",w=["-webkit-","-moz-","-ms-","-o-",""].map(function(R){return"".concat(R,"animation-duration: ").concat(b)}).join(";");Array.from(Y,function(R){R.style.cssText=w,R.setAttribute("data-animated","true")})}}},{key:"_pureReverse",value:function(){var k=this[E.pulse].getElement();k&&(this.options.reverse?k.classList.remove(this._reversePathClass):k.classList.add(this._reversePathClass))}},{key:"onAdd",value:function(k){return this._map=k,this._map.on("zoomend",this._calculateAnimationSpeed,this),this._mount(),this._calculateAnimationSpeed(),this}},{key:"onRemove",value:function(k){return this._map&&(this._map.off("zoomend",this._calculateAnimationSpeed,this),this._map=null),k&&k.removeLayer(this[E.main]).removeLayer(this[E.pulse]),this}},{key:"pause",value:function(){if(!this.options.paused){var k=this[E.pulse].getElement();return this.options.paused=!0,k&&(k.removeAttribute("style"),k.setAttribute("data-animated","true")),!0}return!1}},{key:"resume",value:function(){var k=this.options;return!!k.paused&&(k.paused=!1,this._calculateAnimationSpeed(),!0)}},{key:"bringToFront",value:function(){return this[E.main].bringToFront(),this[E.pulse].bringToFront(),this}},{key:"bringToBack",value:function(){return this[E.pulse].bringToBack(),this[E.main].bringToBack(),this}},{key:"removeFrom",value:function(k){return k&&k.hasLayer(this)&&k.removeLayer(this),this}},{key:"setStyle",value:function(k){var x=_({},this.options,k),I=x.delay,Y=x.reverse;x.paused?this.pause():this.resume(),I!==this.options.delay&&(this.options.delay=I||this._defaultOptions.delay,this._calculateAnimationSpeed()),void 0!==Y&&Y!==this.options.reverse&&this._pureReverse(),this.options=_({},this.options,k);var b=this._processOptions(),R=b.pulseOpts;return this[E.main].setStyle(b.pathOpts),this[E.pulse].setStyle(R),this}},{key:"reverse",value:function(){return this._pureReverse(),this.options.reverse=!this.options.reverse,this}},{key:"redraw",value:function(){return this[E.main].redraw(),this[E.pulse].redraw(),this}},{key:"addLatLng",value:function(){for(var k,x,$=arguments.length,I=new Array($),Y=0;Y<$;Y++)I[Y]=arguments[Y];return this._path=[].concat(function d(z){return function(B){if(Array.isArray(B)){for(var W=0,G=new Array(B.length);W0?a(h(f),9007199254740991):0}},function(l,v){var r=Math.ceil,h=Math.floor;l.exports=function(a){return isNaN(a=+a)?0:(a>0?h:r)(a)}},function(l,v,r){l.exports=!r(9)&&!r(5)(function(){return 7!=Object.defineProperty(r(47)("div"),"a",{get:function(){return 7}}).a})},function(l,v,r){var h=r(4),a=r(0).document,f=h(a)&&h(a.createElement);l.exports=function(c){return f?a.createElement(c):{}}},function(l,v){l.exports=!1},function(l,v,r){l.exports=!r(5)(function(){return!String(Symbol())})},function(l,v,r){l.exports=r(15)("native-function-to-string",Function.toString)},function(l,v,r){var h,a,f,c=r(66),d=r(4),_=r(16),P=r(7),y=r(18),g=r(19),T=r(0).WeakMap;if(c){var S=new T,E=S.get,A=S.has,U=S.set;h=function(N,Q){return U.call(S,N,Q),Q},a=function(N){return E.call(S,N)||{}},f=function(N){return A.call(S,N)}}else{var q=y("state");g[q]=!0,h=function(N,Q){return _(N,q,Q),Q},a=function(N){return P(N,q)?N[q]:{}},f=function(N){return P(N,q)}}l.exports={set:h,get:a,has:f,enforce:function(N){return f(N)?a(N):h(N,{})},getterFor:function(N){return function(Q){var ct;if(!d(Q)||(ct=a(Q)).type!==N)throw TypeError("Incompatible receiver, "+N+" required");return ct}}}},function(l,v,r){var h=r(7),a=r(53),f=r(11),c=r(8);l.exports=function(d,_){for(var P=a(_),y=c.f,g=f.f,T=0;Tg;)h(y,P=_[g++])&&(~f(T,P)||T.push(P));return T}},function(l,v,r){v.f=r(10)},function(l,v,r){var h=r(2),a=r(75),f=r(35),c=r(76),d=r(47),_=r(18)("IE_PROTO"),P=function(){},y=function(){var g,T=d("iframe"),S=f.length;for(T.style.display="none",c.appendChild(T),T.src="javascript:",(g=T.contentWindow.document).open(),g.write("