New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

radar-sdk-js

Package Overview
Dependencies
Maintainers
5
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radar-sdk-js - npm Package Compare versions

Comparing version 3.0.0-beta.1 to 3.0.0-beta.2

2

dist/radar.min.js

@@ -1,1 +0,1 @@

var Radar=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},f=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},u=!l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i={f:o&&!r.call({1:2},1)?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},c=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},a={}.toString,p=function(t){return a.call(t).slice(8,-1)},s="".split,m=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==p(t)?s.call(t,""):Object(t)}:Object,d=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},h=function(t){return m(d(t))},v=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!v(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!v(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,R=function(t,e){return y.call(t,e)},E=f.document,S=v(E)&&v(E.createElement),x=function(t){return S?E.createElement(t):{}},O=!u&&!l(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),w=Object.getOwnPropertyDescriptor,b={f:u?w:function(t,e){if(t=h(t),e=g(e,!0),O)try{return w(t,e)}catch(t){}if(R(t,e))return c(!i.f.call(t,e),t[e])}},C=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},_=Object.defineProperty,I={f:u?_:function(t,e,n){if(C(t),e=g(e,!0),C(n),O)try{return _(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},T=u?function(t,e,n){return I.f(t,e,c(1,n))}:function(t,e,n){return t[e]=n,t},k=function(e,n){try{T(f,e,n)}catch(t){f[e]=n}return n},L="__core-js_shared__",A=f[L]||k(L,{}),P=Function.toString;"function"!=typeof A.inspectSource&&(A.inspectSource=function(t){return P.call(t)});var j,N,M,D=A.inspectSource,U=f.WeakMap,G="function"==typeof U&&/native code/.test(D(U)),B=e(function(t){(t.exports=function(t,e){return A[t]||(A[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),K=0,F=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++K+F).toString(36)},q=B("keys"),V=function(t){return q[t]||(q[t]=H(t))},Y={},$=f.WeakMap;if(G){var W=new $,z=W.get,Q=W.has,X=W.set;j=function(t,e){return X.call(W,t,e),e},N=function(t){return z.call(W,t)||{}},M=function(t){return Q.call(W,t)}}else{var J=V("state");Y[J]=!0,j=function(t,e){return T(t,J,e),e},N=function(t){return R(t,J)?t[J]:{}},M=function(t){return R(t,J)}}var Z,tt={set:j,get:N,has:M,enforce:function(t){return M(t)?N(t):j(t,{})},getterFor:function(n){return function(t){var e;if(!v(t)||(e=N(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return e}}},et=e(function(t){var e=tt.get,c=tt.enforce,a=String(String).split("String");(t.exports=function(t,e,n,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof e||R(n,"name")||T(n,"name",e),c(n).source=a.join("string"==typeof e?e:"")),t!==f?(o?!u&&t[e]&&(i=!0):delete t[e],i?t[e]=n:T(t,e,n)):i?t[e]=n:k(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||D(this)})}),nt=f,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?rt(nt[t])||rt(f[t]):nt[t]&&nt[t][e]||f[t]&&f[t][e]},it=Math.ceil,ut=Math.floor,ct=function(t){return isNaN(t=+t)?0:(0<t?ut:it)(t)},at=Math.min,st=function(t){return 0<t?at(ct(t),9007199254740991):0},ft=Math.max,lt=Math.min,ht=function(s){return function(t,e,n){var r,o,i,u=h(t),c=st(u.length),a=(r=c,(o=ct(n))<0?ft(o+r,0):lt(o,r));if(s&&e!=e){for(;a<c;)if((i=u[a++])!=i)return!0}else for(;a<c;a++)if((s||a in u)&&u[a]===e)return s||a||0;return!s&&-1}},pt={includes:ht(!0),indexOf:ht(!1)},dt=pt.indexOf,vt=function(t,e){var n,r=h(t),o=0,i=[];for(n in r)!R(Y,n)&&R(r,n)&&i.push(n);for(;e.length>o;)R(r,n=e[o++])&&(~dt(i,n)||i.push(n));return i},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yt=gt.concat("length","prototype"),Rt={f:Object.getOwnPropertyNames||function(t){return vt(t,yt)}},Et={f:Object.getOwnPropertySymbols},mt=ot("Reflect","ownKeys")||function(t){var e=Rt.f(C(t)),n=Et.f;return n?e.concat(n(t)):e},St=function(t,e){for(var n=mt(e),r=I.f,o=b.f,i=0;i<n.length;i++){var u=n[i];R(t,u)||r(t,u,o(e,u))}},xt=/#|\.prototype\./,Ot=function(t,e){var n=bt[wt(t)];return n==Ct||n!=_t&&("function"==typeof e?l(e):!!e)},wt=Ot.normalize=function(t){return String(t).replace(xt,".").toLowerCase()},bt=Ot.data={},_t=Ot.NATIVE="N",Ct=Ot.POLYFILL="P",It=Ot,Tt=b.f,kt=function(t,e){var n,r,o,i,u,c=t.target,a=t.global,s=t.stat;if(n=a?f:s?f[c]||k(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=Tt(n,r))&&u.value:n[r],!It(a?r:c+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;St(i,o)}(t.sham||o&&o.sham)&&T(i,"sham",!0),et(n,r,i,t)}},Lt="\t\n\v\f\r                 \u2028\u2029\ufeff",At="["+Lt+"]",Pt=RegExp("^"+At+At+"*"),jt=RegExp(At+At+"*$"),Nt=function(n){return function(t){var e=String(d(t));return 1&n&&(e=e.replace(Pt,"")),2&n&&(e=e.replace(jt,"")),e}},Mt={start:Nt(1),end:Nt(2),trim:Nt(3)},Dt=Mt.trim;function Ut(t){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gt(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function Bt(c){return function(){var t=this,u=arguments;return new Promise(function(e,n){var r=c.apply(t,u);function o(t){Gt(r,e,n,o,i,"next",t)}function i(t){Gt(r,e,n,o,i,"throw",t)}o(void 0)})}}function Kt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ht(t,e,n){return e&&Ft(t.prototype,e),n&&Ft(t,n),t}kt({target:"String",proto:!0,forced:(Z="trim",l(function(){return!!Lt[Z]()||"​…᠎"!="​…᠎"[Z]()||Lt[Z].name!==Z}))},{trim:function(){return Dt(this)}});var qt,Vt,Yt=Array.isArray||function(t){return"Array"==p(t)},$t=function(t){return Object(d(t))},Wt=function(t,e,n){var r=g(e);r in t?I.f(t,r,c(0,n)):t[r]=n},zt=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())}),Qt=zt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xt=B("wks"),Jt=f.Symbol,Zt=Qt?Jt:Jt&&Jt.withoutSetter||H,te=function(t){return R(Xt,t)||(zt&&R(Jt,t)?Xt[t]=Jt[t]:Xt[t]=Zt("Symbol."+t)),Xt[t]},ee=te("species"),ne=function(t,e){var n;return Yt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Yt(n.prototype)?v(n)&&null===(n=n[ee])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},re=ot("navigator","userAgent")||"",oe=f.process,ie=oe&&oe.versions,ue=ie&&ie.v8;ue?Vt=(qt=ue.split("."))[0]+qt[1]:re&&(!(qt=re.match(/Edge\/(\d+)/))||74<=qt[1])&&(qt=re.match(/Chrome\/(\d+)/))&&(Vt=qt[1]);var ce=Vt&&+Vt,ae=te("species"),se=function(e){return 51<=ce||!l(function(){var t=[];return(t.constructor={})[ae]=function(){return{foo:1}},1!==t[e](Boolean).foo})},fe=te("isConcatSpreadable"),le=9007199254740991,he="Maximum allowed index exceeded",pe=51<=ce||!l(function(){var t=[];return t[fe]=!1,t.concat()[0]!==t}),de=se("concat"),ve=function(t){if(!v(t))return!1;var e=t[fe];return void 0!==e?!!e:Yt(t)};kt({target:"Array",proto:!0,forced:!pe||!de},{concat:function(t){var e,n,r,o,i,u=$t(this),c=ne(u,0),a=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?u:arguments[e],ve(i)){if(o=st(i.length),le<a+o)throw TypeError(he);for(n=0;n<o;n++,a++)n in i&&Wt(c,a,i[n])}else{if(le<=a)throw TypeError(he);Wt(c,a++,i)}return c.length=a,c}});var ge,ye=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Re=function(r,o,t){if(ye(r),void 0===o)return r;switch(t){case 0:return function(){return r.call(o)};case 1:return function(t){return r.call(o,t)};case 2:return function(t,e){return r.call(o,t,e)};case 3:return function(t,e,n){return r.call(o,t,e,n)}}return function(){return r.apply(o,arguments)}},Ee=[].push,me=function(p){var d=1==p,v=2==p,g=3==p,y=4==p,R=6==p,E=5==p||R;return function(t,e,n,r){for(var o,i,u=$t(t),c=m(u),a=Re(e,n,3),s=st(c.length),f=0,l=r||ne,h=d?l(t,s):v?l(t,0):void 0;f<s;f++)if((E||f in c)&&(i=a(o=c[f],f,u),p))if(d)h[f]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return f;case 2:Ee.call(h,o)}else if(y)return!1;return R?-1:g||y?y:h}},Se={forEach:me(0),map:me(1),filter:me(2),some:me(3),every:me(4),find:me(5),findIndex:me(6)},xe=Object.keys||function(t){return vt(t,gt)},Oe=u?Object.defineProperties:function(t,e){C(t);for(var n,r=xe(e),o=r.length,i=0;i<o;)I.f(t,n=r[i++],e[n]);return t},we=ot("document","documentElement"),be="prototype",_e="script",Ce=V("IE_PROTO"),Ie=function(){},Te=function(t){return"<script>"+t+"</"+_e+">"},ke=function(){try{ge=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ke=ge?function(t){t.write(Te("")),t.close();var e=t.parentWindow.Object;return t=null,e}(ge):((e=x("iframe")).style.display="none",we.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Te("document.F=Object")),t.close(),t.F);for(var n=gt.length;n--;)delete ke[be][gt[n]];return ke()};Y[Ce]=!0;var Le=Object.create||function(t,e){var n;return null!==t?(Ie[be]=C(t),n=new Ie,Ie[be]=null,n[Ce]=t):n=ke(),void 0===e?n:Oe(n,e)},Ae=te("unscopables"),Pe=Array.prototype;null==Pe[Ae]&&I.f(Pe,Ae,{configurable:!0,value:Le(null)});var je,Ne=Object.defineProperty,Me={},De=function(t){throw t},Ue=function(t,e){if(R(Me,t))return Me[t];e||(e={});var n=[][t],r=!!R(e,"ACCESSORS")&&e.ACCESSORS,o=R(e,0)?e[0]:De,i=R(e,1)?e[1]:void 0;return Me[t]=!!n&&!l(function(){if(r&&!u)return!0;var t={length:-1};r?Ne(t,1,{enumerable:!0,get:De}):t[1]=1,n.call(t,o,i)})},Ge=Se.find,Be="find",Ke=!0,Fe=Ue(Be);Be in[]&&Array(1)[Be](function(){Ke=!1}),kt({target:"Array",proto:!0,forced:Ke||!Fe},{find:function(t){return Ge(this,t,1<arguments.length?arguments[1]:void 0)}}),je=Be,Pe[Ae][je]=!0;var He=function(t,e){var n=[][t];return!!n&&l(function(){n.call(null,e||function(){throw 1},1)})},qe=pt.indexOf,Ve=[].indexOf,Ye=!!Ve&&1/[1].indexOf(1,-0)<0,$e=He("indexOf"),We=Ue("indexOf",{ACCESSORS:!0,1:0});kt({target:"Array",proto:!0,forced:Ye||!$e||!We},{indexOf:function(t){return Ye?Ve.apply(this,arguments)||0:qe(this,t,1<arguments.length?arguments[1]:void 0)}});var ze=function(){var t=C(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Qe(t,e){return RegExp(t,e)}var Xe,Je,Ze={UNSUPPORTED_Y:l(function(){var t=Qe("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),BROKEN_CARET:l(function(){var t=Qe("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},tn=RegExp.prototype.exec,en=String.prototype.replace,nn=tn,rn=(Xe=/a/,Je=/b*/g,tn.call(Xe,"a"),tn.call(Je,"a"),0!==Xe.lastIndex||0!==Je.lastIndex),on=Ze.UNSUPPORTED_Y||Ze.BROKEN_CARET,un=void 0!==/()??/.exec("")[1];(rn||un||on)&&(nn=function(t){var e,n,r,o,i=this,u=on&&i.sticky,c=ze.call(i),a=i.source,s=0,f=t;return u&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),f=String(t).slice(i.lastIndex),0<i.lastIndex&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(a="(?: "+a+")",f=" "+f,s++),n=new RegExp("^(?:"+a+")",c)),un&&(n=new RegExp("^"+a+"$(?!\\s)",c)),rn&&(e=i.lastIndex),r=tn.call(u?n:i,f),u?r?(r.input=r.input.slice(s),r[0]=r[0].slice(s),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:rn&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),un&&r&&1<r.length&&en.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r});var cn=nn;kt({target:"RegExp",proto:!0,forced:/./.exec!==cn},{exec:cn});var an=te("species"),sn=!l(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),fn="$0"==="a".replace(/./,"$0"),ln=te("replace"),hn=!!/./[ln]&&""===/./[ln]("a","$0"),pn=!l(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),dn=function(n,t,e,r){var o=te(n),i=!l(function(){var t={};return t[o]=function(){return 7},7!=""[n](t)}),u=i&&!l(function(){var t=!1,e=/a/;return"split"===n&&((e={constructor:{}}).constructor[an]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return t=!0,null},e[o](""),!t});if(!i||!u||"replace"===n&&(!sn||!fn||hn)||"split"===n&&!pn){var c=/./[o],a=e(o,""[n],function(t,e,n,r,o){return e.exec===cn?i&&!o?{done:!0,value:c.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:fn,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:hn}),s=a[0],f=a[1];et(String.prototype,n,s),et(RegExp.prototype,o,2==t?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}r&&T(RegExp.prototype[o],"sham",!0)},vn=te("match"),gn=te("species"),yn=function(t,e){var n,r=C(t).constructor;return void 0===r||null==(n=C(r)[gn])?e:ye(n)},Rn=function(c){return function(t,e){var n,r,o=String(d(t)),i=ct(e),u=o.length;return i<0||u<=i?c?"":void 0:(n=o.charCodeAt(i))<55296||56319<n||i+1===u||(r=o.charCodeAt(i+1))<56320||57343<r?c?o.charAt(i):n:c?o.slice(i,i+2):r-56320+(n-55296<<10)+65536}},En={codeAt:Rn(!1),charAt:Rn(!0)}.charAt,mn=function(t,e,n){return e+(n?En(t,e).length:1)},Sn=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==p(t))throw TypeError("RegExp#exec called on incompatible receiver");return cn.call(t,e)},xn=[].push,On=Math.min,wn=4294967295,bn=!l(function(){return!RegExp(wn,"y")});dn("split",2,function(o,g,y){var R;return R="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var n,r,o=String(d(this)),i=void 0===e?wn:e>>>0;if(0===i)return[];if(void 0===t)return[o];if(!v(n=t)||(void 0!==(r=n[vn])?!r:"RegExp"!=p(n)))return g.call(o,t,i);for(var u,c,a,s=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,h=new RegExp(t.source,f+"g");(u=cn.call(h,o))&&!(l<(c=h.lastIndex)&&(s.push(o.slice(l,u.index)),1<u.length&&u.index<o.length&&xn.apply(s,u.slice(1)),a=u[0].length,l=c,s.length>=i));)h.lastIndex===u.index&&h.lastIndex++;return l===o.length?!a&&h.test("")||s.push(""):s.push(o.slice(l)),s.length>i?s.slice(0,i):s}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:g.call(this,t,e)}:g,[function(t,e){var n=d(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n,e):R.call(String(n),t,e)},function(t,e){var n=y(R,t,this,e,R!==g);if(n.done)return n.value;var r=C(t),o=String(this),i=yn(r,RegExp),u=r.unicode,c=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(bn?"y":"g"),a=new i(bn?r:"^(?:"+r.source+")",c),s=void 0===e?wn:e>>>0;if(0===s)return[];if(0===o.length)return null===Sn(a,o)?[o]:[];for(var f=0,l=0,h=[];l<o.length;){a.lastIndex=bn?l:0;var p,d=Sn(a,bn?o:o.slice(l));if(null===d||(p=On(st(a.lastIndex+(bn?0:l)),o.length))===f)l=mn(o,l,u);else{if(h.push(o.slice(f,l)),h.length===s)return h;for(var v=1;v<=d.length-1;v++)if(h.push(d[v]),h.length===s)return h;l=f=p}}return h.push(o.slice(f)),h}]},!bn);var _n=function(){function t(){Kt(this,t)}return Ht(t,null,[{key:"getCookie",value:function(t){if(!document||void 0===document.cookie)return null;var e="".concat(t,"="),n=document.cookie.split(";").find(function(t){return-1!=t.indexOf(e)});return n?n.trim().substring(e.length):null}},{key:"setCookie",value:function(t,e){if(document&&void 0!==!document.cookie&&"string"==typeof e){var n=new Date;n.setFullYear(n.getFullYear()+10);var r="expires=".concat(n.toGMTString());document.cookie="".concat(t,"=").concat(e,";path=/;").concat(r)}}},{key:"deleteCookie",value:function(t){document&&document.cookie&&(document.cookie="".concat(t,"=;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/"))}},{key:"DESCRIPTION",get:function(){return"radar-description"}},{key:"DEVICE_ID",get:function(){return"radar-deviceId"}},{key:"HOST",get:function(){return"radar-host"}},{key:"PUBLISHABLE_KEY",get:function(){return"radar-publishableKey"}},{key:"USER_ID",get:function(){return"radar-userId"}}]),t}(),Cn={};Cn[te("toStringTag")]="z";var In="[object z]"===String(Cn),Tn=te("toStringTag"),kn="Arguments"==p(function(){return arguments}()),Ln=In?p:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Tn))?n:kn?p(e):"Object"==(r=p(e))&&"function"==typeof e.callee?"Arguments":r},An=In?{}.toString:function(){return"[object "+Ln(this)+"]"};In||et(Object.prototype,"toString",An,{unsafe:!0});var Pn=f.Promise,jn=I.f,Nn=te("toStringTag"),Mn=te("species"),Dn={},Un=te("iterator"),Gn=Array.prototype,Bn=te("iterator"),Kn=function(e,t,n,r){try{return r?t(C(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&C(o.call(e)),t}},Fn=e(function(t){var d=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,r,o){var i,u,c,a,s,f,l,h,p=Re(e,n,r?2:1);if(o)i=t;else{if("function"!=typeof(u=function(t){if(null!=t)return t[Bn]||t["@@iterator"]||Dn[Ln(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(h=u)&&(Dn.Array===h||Gn[Un]===h)){for(c=0,a=st(t.length);c<a;c++)if((s=r?p(C(l=t[c])[0],l[1]):p(t[c]))&&s instanceof d)return s;return new d(!1)}i=u.call(t)}for(f=i.next;!(l=f.call(i)).done;)if("object"==typeof(s=Kn(i,p,l.value,r))&&s&&s instanceof d)return s;return new d(!1)}).stop=function(t){return new d(!0,t)}}),Hn=te("iterator"),qn=!1;try{var Vn=0,Yn={next:function(){return{done:!!Vn++}},return:function(){qn=!0}};Yn[Hn]=function(){return this},Array.from(Yn,function(){throw 2})}catch(t){}var $n,Wn,zn,Qn=/(iphone|ipod|ipad).*applewebkit/i.test(re),Xn=f.location,Jn=f.setImmediate,Zn=f.clearImmediate,tr=f.process,er=f.MessageChannel,nr=f.Dispatch,rr=0,or={},ir="onreadystatechange",ur=function(t){if(or.hasOwnProperty(t)){var e=or[t];delete or[t],e()}},cr=function(t){return function(){ur(t)}},ar=function(t){ur(t.data)},sr=function(t){f.postMessage(t+"",Xn.protocol+"//"+Xn.host)};Jn&&Zn||(Jn=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return or[++rr]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},$n(rr),rr},Zn=function(t){delete or[t]},"process"==p(tr)?$n=function(t){tr.nextTick(cr(t))}:nr&&nr.now?$n=function(t){nr.now(cr(t))}:er&&!Qn?(zn=(Wn=new er).port2,Wn.port1.onmessage=ar,$n=Re(zn.postMessage,zn,1)):!f.addEventListener||"function"!=typeof postMessage||f.importScripts||l(sr)?$n=ir in x("script")?function(t){we.appendChild(x("script"))[ir]=function(){we.removeChild(this),ur(t)}}:function(t){setTimeout(cr(t),0)}:($n=sr,f.addEventListener("message",ar,!1)));var fr,lr,hr,pr,dr,vr,gr,yr,Rr={set:Jn,clear:Zn},Er=b.f,mr=Rr.set,Sr=f.MutationObserver||f.WebKitMutationObserver,xr=f.process,Or=f.Promise,wr="process"==p(xr),br=Er(f,"queueMicrotask"),_r=br&&br.value;_r||(fr=function(){var t,e;for(wr&&(t=xr.domain)&&t.exit();lr;){e=lr.fn,lr=lr.next;try{e()}catch(t){throw lr?pr():hr=void 0,t}}hr=void 0,t&&t.enter()},pr=wr?function(){xr.nextTick(fr)}:Sr&&!Qn?(dr=!0,vr=document.createTextNode(""),new Sr(fr).observe(vr,{characterData:!0}),function(){vr.data=dr=!dr}):Or&&Or.resolve?(gr=Or.resolve(void 0),yr=gr.then,function(){yr.call(gr,fr)}):function(){mr.call(f,fr)});var Cr,Ir,Tr,kr,Lr,Ar,Pr,jr,Nr,Mr=_r||function(t){var e={fn:t,next:void 0};hr&&(hr.next=e),lr||(lr=e,pr()),hr=e},Dr=function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=ye(n),this.reject=ye(r)},Ur={f:function(t){return new Dr(t)}},Gr=function(t,e){if(C(t),v(e)&&e.constructor===t)return e;var n=Ur.f(t);return(0,n.resolve)(e),n.promise},Br=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Kr=Rr.set,Fr=te("species"),Hr="Promise",qr=tt.get,Vr=tt.set,Yr=tt.getterFor(Hr),$r=Pn,Wr=f.TypeError,zr=f.document,Qr=f.process,Xr=ot("fetch"),Jr=Ur.f,Zr=Jr,to="process"==p(Qr),eo=!!(zr&&zr.createEvent&&f.dispatchEvent),no="unhandledrejection",ro=It(Hr,function(){if(!(D($r)!==String($r))){if(66===ce)return!0;if(!to&&"function"!=typeof PromiseRejectionEvent)return!0}if(51<=ce&&/native code/.test($r))return!1;var t=$r.resolve(1),e=function(t){t(function(){},function(){})};return(t.constructor={})[Fr]=e,!(t.then(function(){})instanceof e)}),oo=ro||!function(t,e){if(!e&&!qn)return!1;var n=!1;try{var r={};r[Hn]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}(function(t){$r.all(t).catch(function(){})}),io=function(t){var e;return!(!v(t)||"function"!=typeof(e=t.then))&&e},uo=function(l,h,p){if(!h.notified){h.notified=!0;var d=h.reactions;Mr(function(){for(var t=h.value,e=1==h.state,n=0;d.length>n;){var r,o,i,u=d[n++],c=e?u.ok:u.fail,a=u.resolve,s=u.reject,f=u.domain;try{c?(e||(2===h.rejection&&fo(l,h),h.rejection=1),!0===c?r=t:(f&&f.enter(),r=c(t),f&&(f.exit(),i=!0)),r===u.promise?s(Wr("Promise-chain cycle")):(o=io(r))?o.call(r,a,s):a(r)):s(t)}catch(t){f&&!i&&f.exit(),s(t)}}h.reactions=[],h.notified=!1,p&&!h.rejection&&ao(l,h)})}},co=function(t,e,n){var r,o;eo?((r=zr.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),f.dispatchEvent(r)):r={promise:e,reason:n},(o=f["on"+t])?o(r):t===no&&function(t,e){var n=f.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},ao=function(n,r){Kr.call(f,function(){var t,e=r.value;if(so(r)&&(t=Br(function(){to?Qr.emit("unhandledRejection",e,n):co(no,n,e)}),r.rejection=to||so(r)?2:1,t.error))throw t.value})},so=function(t){return 1!==t.rejection&&!t.parent},fo=function(t,e){Kr.call(f,function(){to?Qr.emit("rejectionHandled",t):co("rejectionhandled",t,e.value)})},lo=function(e,n,r,o){return function(t){e(n,r,t,o)}},ho=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,uo(t,e,!0))},po=function(n,r,t,e){if(!r.done){r.done=!0,e&&(r=e);try{if(n===t)throw Wr("Promise can't be resolved itself");var o=io(t);o?Mr(function(){var e={done:!1};try{o.call(t,lo(po,n,e,r),lo(ho,n,e,r))}catch(t){ho(n,e,t,r)}}):(r.value=t,r.state=1,uo(n,r,!1))}catch(t){ho(n,{done:!1},t,r)}}};ro&&($r=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,$r,Hr),ye(t),Cr.call(this);var e=qr(this);try{t(lo(po,this,e),lo(ho,this,e))}catch(t){ho(this,e,t)}},(Cr=function(t){Vr(this,{type:Hr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)et(t,r,e[r],n);return t}($r.prototype,{then:function(t,e){var n=Yr(this),r=Jr(yn(this,$r));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=to?Qr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&uo(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),Ir=function(){var t=new Cr,e=qr(t);this.promise=t,this.resolve=lo(po,t,e),this.reject=lo(ho,t,e)},Ur.f=Jr=function(t){return t===$r||t===Tr?new Ir(t):Zr(t)},"function"==typeof Pn&&(kr=Pn.prototype.then,et(Pn.prototype,"then",function(t,e){var n=this;return new $r(function(t,e){kr.call(n,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof Xr&&kt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Gr($r,Xr.apply(f,arguments))}}))),kt({global:!0,wrap:!0,forced:ro},{Promise:$r}),Pr=!(Ar=Hr),(Lr=$r)&&!R(Lr=Pr?Lr:Lr.prototype,Nn)&&jn(Lr,Nn,{configurable:!0,value:Ar}),jr=ot(Hr),Nr=I.f,u&&jr&&!jr[Mn]&&Nr(jr,Mn,{configurable:!0,get:function(){return this}}),Tr=ot(Hr),kt({target:Hr,stat:!0,forced:ro},{reject:function(t){var e=Jr(this);return e.reject.call(void 0,t),e.promise}}),kt({target:Hr,stat:!0,forced:ro},{resolve:function(t){return Gr(this,t)}}),kt({target:Hr,stat:!0,forced:oo},{all:function(t){var c=this,e=Jr(c),a=e.resolve,s=e.reject,n=Br(function(){var r=ye(c.resolve),o=[],i=0,u=1;Fn(t,function(t){var e=i++,n=!1;o.push(void 0),u++,r.call(c,t).then(function(t){n||(n=!0,o[e]=t,--u||a(o))},s)}),--u||a(o)});return n.error&&s(n.value),e.promise},race:function(t){var n=this,r=Jr(n),o=r.reject,e=Br(function(){var e=ye(n.resolve);Fn(t,function(t){e.call(n,t).then(r.resolve,o)})});return e.error&&o(e.value),r.promise}});var vo={SUCCESS:"SUCCESS",ERROR_PARAMETERS:"ERROR_PARAMETERS",ERROR_MISSING_CALLBACK:"ERROR_MISSING_CALLBACK",ERROR_PUBLISHABLE_KEY:"ERROR_PUBLISHABLE_KEY",ERROR_PERMISSIONS:"ERROR_PERMISSIONS",ERROR_LOCATION:"ERROR_LOCATION",ERROR_NETWORK:"ERROR_NETWORK",ERROR_BAD_REQUEST:"ERROR_BAD_REQUEST",ERROR_UNAUTHORIZED:"ERROR_UNAUTHORIZED",ERROR_PAYMENT_REQUIRED:"ERROR_PAYMENT_REQUIRED",ERROR_FORBIDDEN:"ERROR_FORBIDDEN",ERROR_NOT_FOUND:"ERROR_NOT_FOUND",ERROR_RATE_LIMIT:"ERROR_RATE_LIMIT",ERROR_SERVER:"ERROR_SERVER",ERROR_UNKNOWN:"ERROR_UNKNOWN"},go=function(){function t(){Kt(this,t)}return Ht(t,null,[{key:"getCurrentPosition",value:function(){return new Promise(function(i,u){if(!navigator||!navigator.geolocation)return u(vo.ERROR_LOCATION);navigator.geolocation.getCurrentPosition(function(t){if(!t||!t.coords)return u(vo.ERROR_LOCATION);var e=t.coords,n=e.latitude,r=e.longitude,o=e.accuracy;return i({latitude:n,longitude:r,accuracy:o})},function(t){return t&&t.code&&1===t.code?u(vo.ERROR_PERMISSIONS):u(vo.ERROR_LOCATION)})})}}]),t}(),yo=(e(function(t){var e=function(u){var a,t=Object.prototype,f=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",r=e.toStringTag||"@@toStringTag";function c(t,e,n,r){var i,u,c,a,o=e&&e.prototype instanceof y?e:y,s=Object.create(o.prototype),f=new C(r||[]);return s._invoke=(i=t,u=n,c=f,a=h,function(t,e){if(a===d)throw new Error("Generator is already running");if(a===v){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=w(n,c);if(r){if(r===g)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(a===h)throw a=v,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);a=d;var o=l(i,u,c);if("normal"===o.type){if(a=c.done?v:p,o.arg===g)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(a=v,c.method="throw",c.arg=o.arg)}}),s}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}u.wrap=c;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",g={};function y(){}function i(){}function s(){}var R={};R[o]=function(){return this};var E=Object.getPrototypeOf,m=E&&E(E(I([])));m&&m!==t&&f.call(m,o)&&(R=m);var S=s.prototype=y.prototype=Object.create(R);function x(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function O(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,o){var i=l(a[t],a,n);if("throw"!==i.type){var u=i.arg,c=u.value;return c&&"object"==typeof c&&f.call(c,"__await")?s.resolve(c.__await).then(function(t){e("next",t,r,o)},function(t){e("throw",t,r,o)}):s.resolve(c).then(function(t){u.value=t,r(u)},function(t){return e("throw",t,r,o)})}o(i.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function w(t,e){var n=t.iterator[e.method];if(n===a){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=a,w(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,g;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=a),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(f.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=a,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:a,done:!0}}return i.prototype=S.constructor=s,s.constructor=i,s[r]=i.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,r in t||(t[r]="GeneratorFunction")),t.prototype=Object.create(S),t},u.awrap=function(t){return{__await:t}},x(O.prototype),O.prototype[n]=function(){return this},u.AsyncIterator=O,u.async=function(t,e,n,r,o){void 0===o&&(o=Promise);var i=new O(c(t,e,n,r),o);return u.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},x(S),S[r]="Generator",S[o]=function(){return this},S.toString=function(){return"[object Generator]"},u.keys=function(n){var r=[];for(var t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},u.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&f.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=a)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return i.type="throw",i.arg=n,r.next=t,e&&(r.method="next",r.arg=a),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var u=f.call(o,"catchLoc"),c=f.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&f.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=a),g}},u}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}),Se.forEach),Ro=He("forEach"),Eo=Ue("forEach"),mo=Ro&&Eo?[].forEach:function(t){return yo(this,t,1<arguments.length?arguments[1]:void 0)};kt({target:"Array",proto:!0,forced:[].forEach!=mo},{forEach:mo});var So=[].join,xo=m!=Object,Oo=He("join",",");kt({target:"Array",proto:!0,forced:xo||!Oo},{join:function(t){return So.call(h(this),void 0===t?",":t)}});var wo=Se.map,bo=se("map"),_o=Ue("map");kt({target:"Array",proto:!0,forced:!bo||!_o},{map:function(t){return wo(this,t,1<arguments.length?arguments[1]:void 0)}}),kt({target:"Object",stat:!0,forced:l(function(){xe(1)})},{keys:function(t){return xe($t(t))}});for(var Co in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Io=f[Co],To=Io&&Io.prototype;if(To&&To.forEach!==mo)try{T(To,"forEach",mo)}catch(t){To.forEach=mo}}var ko=function(){function t(){Kt(this,t)}return Ht(t,null,[{key:"getHost",value:function(){return _n.getCookie(_n.HOST)||"https://api.radar.io"}}]),t}(),Lo="3.0.0-beta.1",Ao=function(){function t(){Kt(this,t)}return Ht(t,null,[{key:"request",value:function(a,s,f){return new Promise(function(t,e){var n=new XMLHttpRequest,r="".concat(ko.getHost(),"/").concat(s),o={};if(Object.keys(f).forEach(function(t){var e=f[t];void 0!==e&&(o[t]=e)}),"GET"===a){var i=Object.keys(o).map(function(t){return"".concat(t,"=").concat(encodeURIComponent(o[t]))});if(0<i.length){var u=i.join("&");r="".concat(r,"?").concat(u)}o=void 0}n.open(a,r,!0);var c=_n.getCookie(_n.PUBLISHABLE_KEY);c?(n.setRequestHeader("Authorization",c),n.setRequestHeader("Content-Type","application/json"),n.setRequestHeader("X-Radar-Device-Type","Web"),n.setRequestHeader("X-Radar-SDK-Version",Lo),n.onload=function(){if(200==n.status)try{t(JSON.parse(n.response))}catch(t){e(vo.ERROR_SERVER)}else 400===n.status?e(vo.ERROR_BAD_REQUEST):401===n.status?e(vo.ERROR_UNAUTHORIZED):402===n.status?e(vo.ERROR_PAYMENT_REQUIRED):403===n.status?e(vo.ERROR_FORBIDDEN):404===n.status?e(vo.ERROR_NOT_FOUND):429===n.status?e(vo.ERROR_RATE_LIMIT):500<=n.status&&n.status<600?e(vo.ERROR_SERVER):e(vo.ERROR_UNKNOWN)},n.onerror=function(){e(vo.ERROR_SERVER)},n.timeout=function(){e(vo.ERROR_NETWORK)},n.send(JSON.stringify(o))):e(vo.ERROR_PUBLISHABLE_KEY)})}}]),t}(),Po=function(){function t(){Kt(this,t)}var e;return Ht(t,null,[{key:"getContext",value:(e=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<u.length&&void 0!==u[0]?u[0]:{}).latitude&&e.longitude){t.next=5;break}return t.next=4,go.getCurrentPosition();case 4:e=t.sent;case 5:return r=(n=e).latitude,o=n.longitude,i={coordinates:"".concat(r,",").concat(o)},t.abrupt("return",Ao.request("GET","v1/context",i));case 8:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),jo=function(){function t(){Kt(this,t)}var e,n,r;return Ht(t,null,[{key:"geocode",value:(r=Bt(regeneratorRuntime.mark(function t(){var e,n,r=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<r.length&&void 0!==r[0]?r[0]:{},n=e.query,t.abrupt("return",Ao.request("GET","v1/geocode/forward",{query:n}));case 3:case"end":return t.stop()}},t)})),function(){return r.apply(this,arguments)})},{key:"reverseGeocode",value:(n=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u,c,a=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<a.length&&void 0!==a[0]?a[0]:{}).latitude&&e.longitude){t.next=9;break}return t.next=4,go.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.latitude=r,e.longitude=o;case 9:return i=e.latitude,u=e.longitude,c={coordinates:"".concat(i,",").concat(u)},t.abrupt("return",Ao.request("GET","v1/geocode/reverse",c));case 12:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"ipGeocode",value:(e=Bt(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Ao.request("GET","v1/geocode/ip",{}));case 1:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),No=function(){function t(){Kt(this,t)}var e;return Ht(t,null,[{key:"getDistanceToDestination",value:(e=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u,c,a,s,f=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<f.length&&void 0!==f[0]?f[0]:{}).origin){t.next=8;break}return t.next=4,go.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.origin={latitude:r,longitude:o};case 8:return i=e.origin,u=e.destination,c=e.modes,a=e.units,i="".concat(i.latitude,",").concat(i.longitude),u&&(u="".concat(u.latitude,",").concat(u.longitude)),c&&(c=c.join(",")),s={origin:i,destination:u,modes:c,units:a},t.abrupt("return",Ao.request("GET","v1/route/distance",s));case 14:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Mo=function(){function t(){Kt(this,t)}var e,n,r;return Ht(t,null,[{key:"searchPlaces",value:(r=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u,c,a,s,f,l,h=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<h.length&&void 0!==h[0]?h[0]:{}).near){t.next=8;break}return t.next=4,go.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.near={latitude:r,longitude:o};case 8:return i=e.near,u=e.radius,c=e.chains,a=e.categories,s=e.groups,f=e.limit,i="".concat(i.latitude,",").concat(i.longitude),c&&(c=c.join(",")),a&&(a=a.join(",")),s&&(s=s.join(",")),l={near:i,radius:u,chains:c,categories:a,groups:s,limit:f},t.abrupt("return",Ao.request("GET","v1/search/places",l));case 15:case"end":return t.stop()}},t)})),function(){return r.apply(this,arguments)})},{key:"searchGeofences",value:(n=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u,c,a,s,f=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<f.length&&void 0!==f[0]?f[0]:{}).near){t.next=8;break}return t.next=4,go.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.near={latitude:r,longitude:o};case 8:return i=e.near,u=e.radius,c=e.tags,a=e.limit,i="".concat(i.latitude,",").concat(i.longitude),c&&(c=c.join(",")),s={near:i,radius:u,tags:c,limit:a},t.abrupt("return",Ao.request("GET","v1/search/geofences",s));case 13:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"autocomplete",value:(e=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u,c,a,s=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<s.length&&void 0!==s[0]?s[0]:{}).near){t.next=8;break}return t.next=4,go.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.near={latitude:r,longitude:o};case 8:return i=e.query,u=e.near,c=e.limit,u="".concat(u.latitude,",").concat(u.longitude),a={query:i,near:u,limit:c},t.abrupt("return",Ao.request("GET","v1/search/autocomplete",a));case 12:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Do="toString",Uo=RegExp.prototype,Go=Uo[Do],Bo=l(function(){return"/a/b"!=Go.call({source:"a",flags:"b"})}),Ko=Go.name!=Do;(Bo||Ko)&&et(RegExp.prototype,Do,function(){var t=C(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in Uo)?ze.call(t):n)},{unsafe:!0});var Fo=Math.max,Ho=Math.min,qo=Math.floor,Vo=/\$([$&'`]|\d\d?|<[^>]*>)/g,Yo=/\$([$&'`]|\d\d?)/g;dn("replace",2,function(o,S,x,t){var O=t.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,w=t.REPLACE_KEEPS_$0,b=O?"$":"$0";return[function(t,e){var n=d(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n,e):S.call(String(n),t,e)},function(t,e){if(!O&&w||"string"==typeof e&&-1===e.indexOf(b)){var n=x(S,t,this,e);if(n.done)return n.value}var r=C(t),o=String(this),i="function"==typeof e;i||(e=String(e));var u=r.global;if(u){var c=r.unicode;r.lastIndex=0}for(var a=[];;){var s=Sn(r,o);if(null===s)break;if(a.push(s),!u)break;""===String(s[0])&&(r.lastIndex=mn(o,st(r.lastIndex),c))}for(var f,l="",h=0,p=0;p<a.length;p++){s=a[p];for(var d=String(s[0]),v=Fo(Ho(ct(s.index),o.length),0),g=[],y=1;y<s.length;y++)g.push(void 0===(f=s[y])?f:String(f));var R=s.groups;if(i){var E=[d].concat(g,v,o);void 0!==R&&E.push(R);var m=String(e.apply(void 0,E))}else m=_(d,o,v,g,R,e);h<=v&&(l+=o.slice(h,v)+m,h=v+d.length)}return l+o.slice(h)}];function _(i,u,c,a,s,t){var f=c+i.length,l=a.length,e=Yo;return void 0!==s&&(s=$t(s),e=Vo),S.call(t,e,function(t,e){var n;switch(e.charAt(0)){case"$":return"$";case"&":return i;case"`":return u.slice(0,c);case"'":return u.slice(f);case"<":n=s[e.slice(1,-1)];break;default:var r=+e;if(0===r)return t;if(l<r){var o=qo(r/10);return 0===o?t:o<=l?void 0===a[o-1]?e.charAt(1):a[o-1]+e.charAt(1):t}n=a[r-1]}return void 0===n?"":n})}});var $o=function(){function t(){Kt(this,t)}return Ht(t,null,[{key:"getId",value:function(){var t=_n.getCookie(_n.DEVICE_ID);if(t)return t;var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)});return _n.setCookie(_n.DEVICE_ID,e),e}}]),t}(),Wo=function(){function t(){Kt(this,t)}var e;return Ht(t,null,[{key:"trackOnce",value:(e=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u,c,a,s,f,l,h=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<h.length&&void 0!==h[0]?h[0]:{}).latitude&&e.longitude){t.next=5;break}return t.next=4,go.getCurrentPosition();case 4:e=t.sent;case 5:return r=(n=e).latitude,o=n.longitude,i=n.accuracy,u=$o.getId(),c=_n.getCookie(_n.USER_ID),a=_n.getCookie(_n.DESCRIPTION),s=c||u,f={accuracy:i,description:a,deviceId:u,deviceType:"Web",foreground:!0,latitude:r,longitude:o,sdkVersion:Lo,stopped:!0,userId:c},t.next=13,Ao.request("PUT","v1/users/".concat(s),f);case 13:return(l=t.sent).location=e,t.abrupt("return",l);case 16:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}();return function(){function t(){Kt(this,t)}return Ht(t,null,[{key:"initialize",value:function(t){t||console.error('Radar "initialize" was called without a publishable key'),_n.setCookie(_n.PUBLISHABLE_KEY,t)}},{key:"setHost",value:function(t){_n.setCookie(_n.HOST,t,!0)}},{key:"setUserId",value:function(t){t?0===(t=String(t).trim()).length||256<t.length?_n.deleteCookie(_n.USER_ID):_n.setCookie(_n.USER_ID,t):_n.deleteCookie(_n.USER_ID)}},{key:"setDescription",value:function(t){t?0===(t=String(t).trim()).length||256<t.length?_n.deleteCookie(_n.DESCRIPTION):_n.setCookie(_n.DESCRIPTION,t):_n.deleteCookie(_n.DESCRIPTION)}},{key:"getLocation",value:function(e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);go.getCurrentPosition().then(function(t){e(null,{location:t,status:vo.SUCCESS})}).catch(e)}},{key:"trackOnce",value:function(t,e){var n,r;if("function"==typeof t)n=t;else if("object"===Ut(t))r=t,n=e;else if(t)throw new Error(vo.ERROR_PARAMETERS);Wo.trackOnce(r).then(function(t){n&&n(null,{location:t.location,user:t.user,events:t.events,status:vo.SUCCESS},t)}).catch(n)}},{key:"getContext",value:function(t,e){if(!t)throw new Error(vo.ERROR_MISSING_CALLBACK);var n,r;if("function"==typeof t)n=t;else{if("object"!==Ut(t))throw new Error(vo.ERROR_PARAMETERS);if(r=t,"function"!=typeof e)throw new Error(vo.ERROR_MISSING_CALLBACK);n=e}Po.getContext(r).then(function(t){n(null,{context:t.context,status:vo.SUCCESS},t)}).catch(n)}},{key:"searchPlaces",value:function(t,e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);Mo.searchPlaces(t).then(function(t){e(null,{places:t.places,status:vo.SUCCESS},t)}).catch(e)}},{key:"searchGeofences",value:function(t,e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);Mo.searchGeofences(t).then(function(t){e(null,{geofences:t.geofences,status:vo.SUCCESS},t)}).catch(e)}},{key:"autocomplete",value:function(t,e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);Mo.autocomplete(t).then(function(t){e(null,{addresses:t.addresses,status:vo.SUCCESS},t)}).catch(e)}},{key:"geocode",value:function(t,e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);jo.geocode(t).then(function(t){e(null,{addresses:t.addresses,staus:vo.SUCCESS},t)}).catch(e)}},{key:"reverseGeocode",value:function(t,e){if(!t)throw new Error(vo.ERROR_PARAMETERS);var n,r;if("function"==typeof t)n=t;else{if("object"!==Ut(t))throw new Error(vo.ERROR_PARAMETERS);if(r=t,"function"!=typeof e)throw new Error(vo.ERROR_MISSING_CALLBACK);n=e}jo.reverseGeocode(r).then(function(t){n(null,{addresses:t.addresses,status:vo.SUCCESS},t)}).catch(n)}},{key:"ipGeocode",value:function(e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);jo.ipGeocode().then(function(t){e(null,{address:t.address,status:vo.SUCCESS},t)}).catch(e)}},{key:"getDistance",value:function(t,e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);No.getDistanceToDestination(t).then(function(t){e(null,{routes:t.routes,status:vo.SUCCESS},t)}).catch(e)}},{key:"VERSION",get:function(){return Lo}},{key:"STATUS",get:function(){return vo}}]),t}()}();
var Radar=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},f=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},u=!l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i={f:o&&!r.call({1:2},1)?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},c=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},a={}.toString,h=function(t){return a.call(t).slice(8,-1)},s="".split,m=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==h(t)?s.call(t,""):Object(t)}:Object,d=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},p=function(t){return m(d(t))},v=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!v(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!v(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,R=function(t,e){return y.call(t,e)},E=f.document,S=v(E)&&v(E.createElement),x=function(t){return S?E.createElement(t):{}},O=!u&&!l(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),w=Object.getOwnPropertyDescriptor,b={f:u?w:function(t,e){if(t=p(t),e=g(e,!0),O)try{return w(t,e)}catch(t){}if(R(t,e))return c(!i.f.call(t,e),t[e])}},C=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},_=Object.defineProperty,I={f:u?_:function(t,e,n){if(C(t),e=g(e,!0),C(n),O)try{return _(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},T=u?function(t,e,n){return I.f(t,e,c(1,n))}:function(t,e,n){return t[e]=n,t},k=function(e,n){try{T(f,e,n)}catch(t){f[e]=n}return n},L="__core-js_shared__",A=f[L]||k(L,{}),P=Function.toString;"function"!=typeof A.inspectSource&&(A.inspectSource=function(t){return P.call(t)});var j,N,M,U=A.inspectSource,D=f.WeakMap,G="function"==typeof D&&/native code/.test(U(D)),B=e(function(t){(t.exports=function(t,e){return A[t]||(A[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),K=0,F=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++K+F).toString(36)},q=B("keys"),V=function(t){return q[t]||(q[t]=H(t))},Y={},$=f.WeakMap;if(G){var W=new $,z=W.get,Q=W.has,X=W.set;j=function(t,e){return X.call(W,t,e),e},N=function(t){return z.call(W,t)||{}},M=function(t){return Q.call(W,t)}}else{var J=V("state");Y[J]=!0,j=function(t,e){return T(t,J,e),e},N=function(t){return R(t,J)?t[J]:{}},M=function(t){return R(t,J)}}var Z,tt={set:j,get:N,has:M,enforce:function(t){return M(t)?N(t):j(t,{})},getterFor:function(n){return function(t){var e;if(!v(t)||(e=N(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return e}}},et=e(function(t){var e=tt.get,c=tt.enforce,a=String(String).split("String");(t.exports=function(t,e,n,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof e||R(n,"name")||T(n,"name",e),c(n).source=a.join("string"==typeof e?e:"")),t!==f?(o?!u&&t[e]&&(i=!0):delete t[e],i?t[e]=n:T(t,e,n)):i?t[e]=n:k(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||U(this)})}),nt=f,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?rt(nt[t])||rt(f[t]):nt[t]&&nt[t][e]||f[t]&&f[t][e]},it=Math.ceil,ut=Math.floor,ct=function(t){return isNaN(t=+t)?0:(0<t?ut:it)(t)},at=Math.min,st=function(t){return 0<t?at(ct(t),9007199254740991):0},ft=Math.max,lt=Math.min,pt=function(s){return function(t,e,n){var r,o,i,u=p(t),c=st(u.length),a=(r=c,(o=ct(n))<0?ft(o+r,0):lt(o,r));if(s&&e!=e){for(;a<c;)if((i=u[a++])!=i)return!0}else for(;a<c;a++)if((s||a in u)&&u[a]===e)return s||a||0;return!s&&-1}},ht={includes:pt(!0),indexOf:pt(!1)},dt=ht.indexOf,vt=function(t,e){var n,r=p(t),o=0,i=[];for(n in r)!R(Y,n)&&R(r,n)&&i.push(n);for(;e.length>o;)R(r,n=e[o++])&&(~dt(i,n)||i.push(n));return i},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yt=gt.concat("length","prototype"),Rt={f:Object.getOwnPropertyNames||function(t){return vt(t,yt)}},Et={f:Object.getOwnPropertySymbols},mt=ot("Reflect","ownKeys")||function(t){var e=Rt.f(C(t)),n=Et.f;return n?e.concat(n(t)):e},St=function(t,e){for(var n=mt(e),r=I.f,o=b.f,i=0;i<n.length;i++){var u=n[i];R(t,u)||r(t,u,o(e,u))}},xt=/#|\.prototype\./,Ot=function(t,e){var n=bt[wt(t)];return n==Ct||n!=_t&&("function"==typeof e?l(e):!!e)},wt=Ot.normalize=function(t){return String(t).replace(xt,".").toLowerCase()},bt=Ot.data={},_t=Ot.NATIVE="N",Ct=Ot.POLYFILL="P",It=Ot,Tt=b.f,kt=function(t,e){var n,r,o,i,u,c=t.target,a=t.global,s=t.stat;if(n=a?f:s?f[c]||k(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=Tt(n,r))&&u.value:n[r],!It(a?r:c+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;St(i,o)}(t.sham||o&&o.sham)&&T(i,"sham",!0),et(n,r,i,t)}},Lt="\t\n\v\f\r                 \u2028\u2029\ufeff",At="["+Lt+"]",Pt=RegExp("^"+At+At+"*"),jt=RegExp(At+At+"*$"),Nt=function(n){return function(t){var e=String(d(t));return 1&n&&(e=e.replace(Pt,"")),2&n&&(e=e.replace(jt,"")),e}},Mt={start:Nt(1),end:Nt(2),trim:Nt(3)},Ut=Mt.trim;function Dt(t){return(Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gt(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function Bt(c){return function(){var t=this,u=arguments;return new Promise(function(e,n){var r=c.apply(t,u);function o(t){Gt(r,e,n,o,i,"next",t)}function i(t){Gt(r,e,n,o,i,"throw",t)}o(void 0)})}}function Kt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ht(t,e,n){return e&&Ft(t.prototype,e),n&&Ft(t,n),t}kt({target:"String",proto:!0,forced:(Z="trim",l(function(){return!!Lt[Z]()||"​…᠎"!="​…᠎"[Z]()||Lt[Z].name!==Z}))},{trim:function(){return Ut(this)}});var qt,Vt,Yt=Array.isArray||function(t){return"Array"==h(t)},$t=function(t){return Object(d(t))},Wt=function(t,e,n){var r=g(e);r in t?I.f(t,r,c(0,n)):t[r]=n},zt=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())}),Qt=zt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xt=B("wks"),Jt=f.Symbol,Zt=Qt?Jt:Jt&&Jt.withoutSetter||H,te=function(t){return R(Xt,t)||(zt&&R(Jt,t)?Xt[t]=Jt[t]:Xt[t]=Zt("Symbol."+t)),Xt[t]},ee=te("species"),ne=function(t,e){var n;return Yt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Yt(n.prototype)?v(n)&&null===(n=n[ee])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},re=ot("navigator","userAgent")||"",oe=f.process,ie=oe&&oe.versions,ue=ie&&ie.v8;ue?Vt=(qt=ue.split("."))[0]+qt[1]:re&&(!(qt=re.match(/Edge\/(\d+)/))||74<=qt[1])&&(qt=re.match(/Chrome\/(\d+)/))&&(Vt=qt[1]);var ce=Vt&&+Vt,ae=te("species"),se=function(e){return 51<=ce||!l(function(){var t=[];return(t.constructor={})[ae]=function(){return{foo:1}},1!==t[e](Boolean).foo})},fe=te("isConcatSpreadable"),le=9007199254740991,pe="Maximum allowed index exceeded",he=51<=ce||!l(function(){var t=[];return t[fe]=!1,t.concat()[0]!==t}),de=se("concat"),ve=function(t){if(!v(t))return!1;var e=t[fe];return void 0!==e?!!e:Yt(t)};kt({target:"Array",proto:!0,forced:!he||!de},{concat:function(t){var e,n,r,o,i,u=$t(this),c=ne(u,0),a=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?u:arguments[e],ve(i)){if(o=st(i.length),le<a+o)throw TypeError(pe);for(n=0;n<o;n++,a++)n in i&&Wt(c,a,i[n])}else{if(le<=a)throw TypeError(pe);Wt(c,a++,i)}return c.length=a,c}});var ge,ye=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Re=function(r,o,t){if(ye(r),void 0===o)return r;switch(t){case 0:return function(){return r.call(o)};case 1:return function(t){return r.call(o,t)};case 2:return function(t,e){return r.call(o,t,e)};case 3:return function(t,e,n){return r.call(o,t,e,n)}}return function(){return r.apply(o,arguments)}},Ee=[].push,me=function(h){var d=1==h,v=2==h,g=3==h,y=4==h,R=6==h,E=5==h||R;return function(t,e,n,r){for(var o,i,u=$t(t),c=m(u),a=Re(e,n,3),s=st(c.length),f=0,l=r||ne,p=d?l(t,s):v?l(t,0):void 0;f<s;f++)if((E||f in c)&&(i=a(o=c[f],f,u),h))if(d)p[f]=i;else if(i)switch(h){case 3:return!0;case 5:return o;case 6:return f;case 2:Ee.call(p,o)}else if(y)return!1;return R?-1:g||y?y:p}},Se={forEach:me(0),map:me(1),filter:me(2),some:me(3),every:me(4),find:me(5),findIndex:me(6)},xe=Object.keys||function(t){return vt(t,gt)},Oe=u?Object.defineProperties:function(t,e){C(t);for(var n,r=xe(e),o=r.length,i=0;i<o;)I.f(t,n=r[i++],e[n]);return t},we=ot("document","documentElement"),be="prototype",_e="script",Ce=V("IE_PROTO"),Ie=function(){},Te=function(t){return"<script>"+t+"</"+_e+">"},ke=function(){try{ge=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ke=ge?function(t){t.write(Te("")),t.close();var e=t.parentWindow.Object;return t=null,e}(ge):((e=x("iframe")).style.display="none",we.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Te("document.F=Object")),t.close(),t.F);for(var n=gt.length;n--;)delete ke[be][gt[n]];return ke()};Y[Ce]=!0;var Le=Object.create||function(t,e){var n;return null!==t?(Ie[be]=C(t),n=new Ie,Ie[be]=null,n[Ce]=t):n=ke(),void 0===e?n:Oe(n,e)},Ae=te("unscopables"),Pe=Array.prototype;null==Pe[Ae]&&I.f(Pe,Ae,{configurable:!0,value:Le(null)});var je,Ne=Object.defineProperty,Me={},Ue=function(t){throw t},De=function(t,e){if(R(Me,t))return Me[t];e||(e={});var n=[][t],r=!!R(e,"ACCESSORS")&&e.ACCESSORS,o=R(e,0)?e[0]:Ue,i=R(e,1)?e[1]:void 0;return Me[t]=!!n&&!l(function(){if(r&&!u)return!0;var t={length:-1};r?Ne(t,1,{enumerable:!0,get:Ue}):t[1]=1,n.call(t,o,i)})},Ge=Se.find,Be="find",Ke=!0,Fe=De(Be);Be in[]&&Array(1)[Be](function(){Ke=!1}),kt({target:"Array",proto:!0,forced:Ke||!Fe},{find:function(t){return Ge(this,t,1<arguments.length?arguments[1]:void 0)}}),je=Be,Pe[Ae][je]=!0;var He=function(t,e){var n=[][t];return!!n&&l(function(){n.call(null,e||function(){throw 1},1)})},qe=ht.indexOf,Ve=[].indexOf,Ye=!!Ve&&1/[1].indexOf(1,-0)<0,$e=He("indexOf"),We=De("indexOf",{ACCESSORS:!0,1:0});kt({target:"Array",proto:!0,forced:Ye||!$e||!We},{indexOf:function(t){return Ye?Ve.apply(this,arguments)||0:qe(this,t,1<arguments.length?arguments[1]:void 0)}});var ze=function(){var t=C(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Qe(t,e){return RegExp(t,e)}var Xe,Je,Ze={UNSUPPORTED_Y:l(function(){var t=Qe("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),BROKEN_CARET:l(function(){var t=Qe("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},tn=RegExp.prototype.exec,en=String.prototype.replace,nn=tn,rn=(Xe=/a/,Je=/b*/g,tn.call(Xe,"a"),tn.call(Je,"a"),0!==Xe.lastIndex||0!==Je.lastIndex),on=Ze.UNSUPPORTED_Y||Ze.BROKEN_CARET,un=void 0!==/()??/.exec("")[1];(rn||un||on)&&(nn=function(t){var e,n,r,o,i=this,u=on&&i.sticky,c=ze.call(i),a=i.source,s=0,f=t;return u&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),f=String(t).slice(i.lastIndex),0<i.lastIndex&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(a="(?: "+a+")",f=" "+f,s++),n=new RegExp("^(?:"+a+")",c)),un&&(n=new RegExp("^"+a+"$(?!\\s)",c)),rn&&(e=i.lastIndex),r=tn.call(u?n:i,f),u?r?(r.input=r.input.slice(s),r[0]=r[0].slice(s),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:rn&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),un&&r&&1<r.length&&en.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r});var cn=nn;kt({target:"RegExp",proto:!0,forced:/./.exec!==cn},{exec:cn});var an=te("species"),sn=!l(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),fn="$0"==="a".replace(/./,"$0"),ln=te("replace"),pn=!!/./[ln]&&""===/./[ln]("a","$0"),hn=!l(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),dn=function(n,t,e,r){var o=te(n),i=!l(function(){var t={};return t[o]=function(){return 7},7!=""[n](t)}),u=i&&!l(function(){var t=!1,e=/a/;return"split"===n&&((e={constructor:{}}).constructor[an]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return t=!0,null},e[o](""),!t});if(!i||!u||"replace"===n&&(!sn||!fn||pn)||"split"===n&&!hn){var c=/./[o],a=e(o,""[n],function(t,e,n,r,o){return e.exec===cn?i&&!o?{done:!0,value:c.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:fn,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:pn}),s=a[0],f=a[1];et(String.prototype,n,s),et(RegExp.prototype,o,2==t?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}r&&T(RegExp.prototype[o],"sham",!0)},vn=te("match"),gn=te("species"),yn=function(t,e){var n,r=C(t).constructor;return void 0===r||null==(n=C(r)[gn])?e:ye(n)},Rn=function(c){return function(t,e){var n,r,o=String(d(t)),i=ct(e),u=o.length;return i<0||u<=i?c?"":void 0:(n=o.charCodeAt(i))<55296||56319<n||i+1===u||(r=o.charCodeAt(i+1))<56320||57343<r?c?o.charAt(i):n:c?o.slice(i,i+2):r-56320+(n-55296<<10)+65536}},En={codeAt:Rn(!1),charAt:Rn(!0)}.charAt,mn=function(t,e,n){return e+(n?En(t,e).length:1)},Sn=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==h(t))throw TypeError("RegExp#exec called on incompatible receiver");return cn.call(t,e)},xn=[].push,On=Math.min,wn=4294967295,bn=!l(function(){return!RegExp(wn,"y")});dn("split",2,function(o,g,y){var R;return R="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var n,r,o=String(d(this)),i=void 0===e?wn:e>>>0;if(0===i)return[];if(void 0===t)return[o];if(!v(n=t)||(void 0!==(r=n[vn])?!r:"RegExp"!=h(n)))return g.call(o,t,i);for(var u,c,a,s=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,p=new RegExp(t.source,f+"g");(u=cn.call(p,o))&&!(l<(c=p.lastIndex)&&(s.push(o.slice(l,u.index)),1<u.length&&u.index<o.length&&xn.apply(s,u.slice(1)),a=u[0].length,l=c,s.length>=i));)p.lastIndex===u.index&&p.lastIndex++;return l===o.length?!a&&p.test("")||s.push(""):s.push(o.slice(l)),s.length>i?s.slice(0,i):s}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:g.call(this,t,e)}:g,[function(t,e){var n=d(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n,e):R.call(String(n),t,e)},function(t,e){var n=y(R,t,this,e,R!==g);if(n.done)return n.value;var r=C(t),o=String(this),i=yn(r,RegExp),u=r.unicode,c=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(bn?"y":"g"),a=new i(bn?r:"^(?:"+r.source+")",c),s=void 0===e?wn:e>>>0;if(0===s)return[];if(0===o.length)return null===Sn(a,o)?[o]:[];for(var f=0,l=0,p=[];l<o.length;){a.lastIndex=bn?l:0;var h,d=Sn(a,bn?o:o.slice(l));if(null===d||(h=On(st(a.lastIndex+(bn?0:l)),o.length))===f)l=mn(o,l,u);else{if(p.push(o.slice(f,l)),p.length===s)return p;for(var v=1;v<=d.length-1;v++)if(p.push(d[v]),p.length===s)return p;l=f=h}}return p.push(o.slice(f)),p}]},!bn);var _n=function(){function t(){Kt(this,t)}return Ht(t,null,[{key:"getCookie",value:function(t){if(!document||void 0===document.cookie)return null;var e="".concat(t,"="),n=document.cookie.split(";").find(function(t){return-1!=t.indexOf(e)});return n?n.trim().substring(e.length):null}},{key:"setCookie",value:function(t,e){if(document&&void 0!==!document.cookie&&"string"==typeof e){var n=new Date;n.setFullYear(n.getFullYear()+10);var r="expires=".concat(n.toGMTString());document.cookie="".concat(t,"=").concat(e,";path=/;").concat(r)}}},{key:"deleteCookie",value:function(t){document&&document.cookie&&(document.cookie="".concat(t,"=;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/"))}},{key:"DESCRIPTION",get:function(){return"radar-description"}},{key:"DEVICE_ID",get:function(){return"radar-deviceId"}},{key:"HOST",get:function(){return"radar-host"}},{key:"PUBLISHABLE_KEY",get:function(){return"radar-publishableKey"}},{key:"USER_ID",get:function(){return"radar-userId"}}]),t}(),Cn={};Cn[te("toStringTag")]="z";var In="[object z]"===String(Cn),Tn=te("toStringTag"),kn="Arguments"==h(function(){return arguments}()),Ln=In?h:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Tn))?n:kn?h(e):"Object"==(r=h(e))&&"function"==typeof e.callee?"Arguments":r},An=In?{}.toString:function(){return"[object "+Ln(this)+"]"};In||et(Object.prototype,"toString",An,{unsafe:!0});var Pn=f.Promise,jn=I.f,Nn=te("toStringTag"),Mn=te("species"),Un={},Dn=te("iterator"),Gn=Array.prototype,Bn=te("iterator"),Kn=function(e,t,n,r){try{return r?t(C(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&C(o.call(e)),t}},Fn=e(function(t){var d=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,r,o){var i,u,c,a,s,f,l,p,h=Re(e,n,r?2:1);if(o)i=t;else{if("function"!=typeof(u=function(t){if(null!=t)return t[Bn]||t["@@iterator"]||Un[Ln(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(p=u)&&(Un.Array===p||Gn[Dn]===p)){for(c=0,a=st(t.length);c<a;c++)if((s=r?h(C(l=t[c])[0],l[1]):h(t[c]))&&s instanceof d)return s;return new d(!1)}i=u.call(t)}for(f=i.next;!(l=f.call(i)).done;)if("object"==typeof(s=Kn(i,h,l.value,r))&&s&&s instanceof d)return s;return new d(!1)}).stop=function(t){return new d(!0,t)}}),Hn=te("iterator"),qn=!1;try{var Vn=0,Yn={next:function(){return{done:!!Vn++}},return:function(){qn=!0}};Yn[Hn]=function(){return this},Array.from(Yn,function(){throw 2})}catch(t){}var $n,Wn,zn,Qn=/(iphone|ipod|ipad).*applewebkit/i.test(re),Xn=f.location,Jn=f.setImmediate,Zn=f.clearImmediate,tr=f.process,er=f.MessageChannel,nr=f.Dispatch,rr=0,or={},ir="onreadystatechange",ur=function(t){if(or.hasOwnProperty(t)){var e=or[t];delete or[t],e()}},cr=function(t){return function(){ur(t)}},ar=function(t){ur(t.data)},sr=function(t){f.postMessage(t+"",Xn.protocol+"//"+Xn.host)};Jn&&Zn||(Jn=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return or[++rr]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},$n(rr),rr},Zn=function(t){delete or[t]},"process"==h(tr)?$n=function(t){tr.nextTick(cr(t))}:nr&&nr.now?$n=function(t){nr.now(cr(t))}:er&&!Qn?(zn=(Wn=new er).port2,Wn.port1.onmessage=ar,$n=Re(zn.postMessage,zn,1)):!f.addEventListener||"function"!=typeof postMessage||f.importScripts||l(sr)?$n=ir in x("script")?function(t){we.appendChild(x("script"))[ir]=function(){we.removeChild(this),ur(t)}}:function(t){setTimeout(cr(t),0)}:($n=sr,f.addEventListener("message",ar,!1)));var fr,lr,pr,hr,dr,vr,gr,yr,Rr={set:Jn,clear:Zn},Er=b.f,mr=Rr.set,Sr=f.MutationObserver||f.WebKitMutationObserver,xr=f.process,Or=f.Promise,wr="process"==h(xr),br=Er(f,"queueMicrotask"),_r=br&&br.value;_r||(fr=function(){var t,e;for(wr&&(t=xr.domain)&&t.exit();lr;){e=lr.fn,lr=lr.next;try{e()}catch(t){throw lr?hr():pr=void 0,t}}pr=void 0,t&&t.enter()},hr=wr?function(){xr.nextTick(fr)}:Sr&&!Qn?(dr=!0,vr=document.createTextNode(""),new Sr(fr).observe(vr,{characterData:!0}),function(){vr.data=dr=!dr}):Or&&Or.resolve?(gr=Or.resolve(void 0),yr=gr.then,function(){yr.call(gr,fr)}):function(){mr.call(f,fr)});var Cr,Ir,Tr,kr,Lr,Ar,Pr,jr,Nr,Mr=_r||function(t){var e={fn:t,next:void 0};pr&&(pr.next=e),lr||(lr=e,hr()),pr=e},Ur=function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=ye(n),this.reject=ye(r)},Dr={f:function(t){return new Ur(t)}},Gr=function(t,e){if(C(t),v(e)&&e.constructor===t)return e;var n=Dr.f(t);return(0,n.resolve)(e),n.promise},Br=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Kr=Rr.set,Fr=te("species"),Hr="Promise",qr=tt.get,Vr=tt.set,Yr=tt.getterFor(Hr),$r=Pn,Wr=f.TypeError,zr=f.document,Qr=f.process,Xr=ot("fetch"),Jr=Dr.f,Zr=Jr,to="process"==h(Qr),eo=!!(zr&&zr.createEvent&&f.dispatchEvent),no="unhandledrejection",ro=It(Hr,function(){if(!(U($r)!==String($r))){if(66===ce)return!0;if(!to&&"function"!=typeof PromiseRejectionEvent)return!0}if(51<=ce&&/native code/.test($r))return!1;var t=$r.resolve(1),e=function(t){t(function(){},function(){})};return(t.constructor={})[Fr]=e,!(t.then(function(){})instanceof e)}),oo=ro||!function(t,e){if(!e&&!qn)return!1;var n=!1;try{var r={};r[Hn]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}(function(t){$r.all(t).catch(function(){})}),io=function(t){var e;return!(!v(t)||"function"!=typeof(e=t.then))&&e},uo=function(l,p,h){if(!p.notified){p.notified=!0;var d=p.reactions;Mr(function(){for(var t=p.value,e=1==p.state,n=0;d.length>n;){var r,o,i,u=d[n++],c=e?u.ok:u.fail,a=u.resolve,s=u.reject,f=u.domain;try{c?(e||(2===p.rejection&&fo(l,p),p.rejection=1),!0===c?r=t:(f&&f.enter(),r=c(t),f&&(f.exit(),i=!0)),r===u.promise?s(Wr("Promise-chain cycle")):(o=io(r))?o.call(r,a,s):a(r)):s(t)}catch(t){f&&!i&&f.exit(),s(t)}}p.reactions=[],p.notified=!1,h&&!p.rejection&&ao(l,p)})}},co=function(t,e,n){var r,o;eo?((r=zr.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),f.dispatchEvent(r)):r={promise:e,reason:n},(o=f["on"+t])?o(r):t===no&&function(t,e){var n=f.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},ao=function(n,r){Kr.call(f,function(){var t,e=r.value;if(so(r)&&(t=Br(function(){to?Qr.emit("unhandledRejection",e,n):co(no,n,e)}),r.rejection=to||so(r)?2:1,t.error))throw t.value})},so=function(t){return 1!==t.rejection&&!t.parent},fo=function(t,e){Kr.call(f,function(){to?Qr.emit("rejectionHandled",t):co("rejectionhandled",t,e.value)})},lo=function(e,n,r,o){return function(t){e(n,r,t,o)}},po=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,uo(t,e,!0))},ho=function(n,r,t,e){if(!r.done){r.done=!0,e&&(r=e);try{if(n===t)throw Wr("Promise can't be resolved itself");var o=io(t);o?Mr(function(){var e={done:!1};try{o.call(t,lo(ho,n,e,r),lo(po,n,e,r))}catch(t){po(n,e,t,r)}}):(r.value=t,r.state=1,uo(n,r,!1))}catch(t){po(n,{done:!1},t,r)}}};ro&&($r=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,$r,Hr),ye(t),Cr.call(this);var e=qr(this);try{t(lo(ho,this,e),lo(po,this,e))}catch(t){po(this,e,t)}},(Cr=function(t){Vr(this,{type:Hr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)et(t,r,e[r],n);return t}($r.prototype,{then:function(t,e){var n=Yr(this),r=Jr(yn(this,$r));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=to?Qr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&uo(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),Ir=function(){var t=new Cr,e=qr(t);this.promise=t,this.resolve=lo(ho,t,e),this.reject=lo(po,t,e)},Dr.f=Jr=function(t){return t===$r||t===Tr?new Ir(t):Zr(t)},"function"==typeof Pn&&(kr=Pn.prototype.then,et(Pn.prototype,"then",function(t,e){var n=this;return new $r(function(t,e){kr.call(n,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof Xr&&kt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Gr($r,Xr.apply(f,arguments))}}))),kt({global:!0,wrap:!0,forced:ro},{Promise:$r}),Pr=!(Ar=Hr),(Lr=$r)&&!R(Lr=Pr?Lr:Lr.prototype,Nn)&&jn(Lr,Nn,{configurable:!0,value:Ar}),jr=ot(Hr),Nr=I.f,u&&jr&&!jr[Mn]&&Nr(jr,Mn,{configurable:!0,get:function(){return this}}),Tr=ot(Hr),kt({target:Hr,stat:!0,forced:ro},{reject:function(t){var e=Jr(this);return e.reject.call(void 0,t),e.promise}}),kt({target:Hr,stat:!0,forced:ro},{resolve:function(t){return Gr(this,t)}}),kt({target:Hr,stat:!0,forced:oo},{all:function(t){var c=this,e=Jr(c),a=e.resolve,s=e.reject,n=Br(function(){var r=ye(c.resolve),o=[],i=0,u=1;Fn(t,function(t){var e=i++,n=!1;o.push(void 0),u++,r.call(c,t).then(function(t){n||(n=!0,o[e]=t,--u||a(o))},s)}),--u||a(o)});return n.error&&s(n.value),e.promise},race:function(t){var n=this,r=Jr(n),o=r.reject,e=Br(function(){var e=ye(n.resolve);Fn(t,function(t){e.call(n,t).then(r.resolve,o)})});return e.error&&o(e.value),r.promise}});var vo={SUCCESS:"SUCCESS",ERROR_PARAMETERS:"ERROR_PARAMETERS",ERROR_MISSING_CALLBACK:"ERROR_MISSING_CALLBACK",ERROR_PUBLISHABLE_KEY:"ERROR_PUBLISHABLE_KEY",ERROR_PERMISSIONS:"ERROR_PERMISSIONS",ERROR_LOCATION:"ERROR_LOCATION",ERROR_NETWORK:"ERROR_NETWORK",ERROR_BAD_REQUEST:"ERROR_BAD_REQUEST",ERROR_UNAUTHORIZED:"ERROR_UNAUTHORIZED",ERROR_PAYMENT_REQUIRED:"ERROR_PAYMENT_REQUIRED",ERROR_FORBIDDEN:"ERROR_FORBIDDEN",ERROR_NOT_FOUND:"ERROR_NOT_FOUND",ERROR_RATE_LIMIT:"ERROR_RATE_LIMIT",ERROR_SERVER:"ERROR_SERVER",ERROR_UNKNOWN:"ERROR_UNKNOWN"},go=function(){function t(){Kt(this,t)}return Ht(t,null,[{key:"getCurrentPosition",value:function(){return new Promise(function(i,u){if(!navigator||!navigator.geolocation)return u(vo.ERROR_LOCATION);navigator.geolocation.getCurrentPosition(function(t){if(!t||!t.coords)return u(vo.ERROR_LOCATION);var e=t.coords,n=e.latitude,r=e.longitude,o=e.accuracy;return i({latitude:n,longitude:r,accuracy:o})},function(t){return t&&t.code&&1===t.code?u(vo.ERROR_PERMISSIONS):u(vo.ERROR_LOCATION)})})}}]),t}(),yo=(e(function(t){var e=function(u){var a,t=Object.prototype,f=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",r=e.toStringTag||"@@toStringTag";function c(t,e,n,r){var i,u,c,a,o=e&&e.prototype instanceof y?e:y,s=Object.create(o.prototype),f=new C(r||[]);return s._invoke=(i=t,u=n,c=f,a=p,function(t,e){if(a===d)throw new Error("Generator is already running");if(a===v){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=w(n,c);if(r){if(r===g)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(a===p)throw a=v,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);a=d;var o=l(i,u,c);if("normal"===o.type){if(a=c.done?v:h,o.arg===g)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(a=v,c.method="throw",c.arg=o.arg)}}),s}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}u.wrap=c;var p="suspendedStart",h="suspendedYield",d="executing",v="completed",g={};function y(){}function i(){}function s(){}var R={};R[o]=function(){return this};var E=Object.getPrototypeOf,m=E&&E(E(I([])));m&&m!==t&&f.call(m,o)&&(R=m);var S=s.prototype=y.prototype=Object.create(R);function x(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function O(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,o){var i=l(a[t],a,n);if("throw"!==i.type){var u=i.arg,c=u.value;return c&&"object"==typeof c&&f.call(c,"__await")?s.resolve(c.__await).then(function(t){e("next",t,r,o)},function(t){e("throw",t,r,o)}):s.resolve(c).then(function(t){u.value=t,r(u)},function(t){return e("throw",t,r,o)})}o(i.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function w(t,e){var n=t.iterator[e.method];if(n===a){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=a,w(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,g;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=a),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(f.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=a,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:a,done:!0}}return i.prototype=S.constructor=s,s.constructor=i,s[r]=i.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,r in t||(t[r]="GeneratorFunction")),t.prototype=Object.create(S),t},u.awrap=function(t){return{__await:t}},x(O.prototype),O.prototype[n]=function(){return this},u.AsyncIterator=O,u.async=function(t,e,n,r,o){void 0===o&&(o=Promise);var i=new O(c(t,e,n,r),o);return u.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},x(S),S[r]="Generator",S[o]=function(){return this},S.toString=function(){return"[object Generator]"},u.keys=function(n){var r=[];for(var t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},u.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&f.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=a)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return i.type="throw",i.arg=n,r.next=t,e&&(r.method="next",r.arg=a),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var u=f.call(o,"catchLoc"),c=f.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&f.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=a),g}},u}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}),Se.forEach),Ro=He("forEach"),Eo=De("forEach"),mo=Ro&&Eo?[].forEach:function(t){return yo(this,t,1<arguments.length?arguments[1]:void 0)};kt({target:"Array",proto:!0,forced:[].forEach!=mo},{forEach:mo});var So=[].join,xo=m!=Object,Oo=He("join",",");kt({target:"Array",proto:!0,forced:xo||!Oo},{join:function(t){return So.call(p(this),void 0===t?",":t)}});var wo=Se.map,bo=se("map"),_o=De("map");kt({target:"Array",proto:!0,forced:!bo||!_o},{map:function(t){return wo(this,t,1<arguments.length?arguments[1]:void 0)}}),kt({target:"Object",stat:!0,forced:l(function(){xe(1)})},{keys:function(t){return xe($t(t))}});for(var Co in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Io=f[Co],To=Io&&Io.prototype;if(To&&To.forEach!==mo)try{T(To,"forEach",mo)}catch(t){To.forEach=mo}}var ko=function(){function t(){Kt(this,t)}return Ht(t,null,[{key:"getHost",value:function(){return _n.getCookie(_n.HOST)||"https://api.radar.io"}}]),t}(),Lo="3.0.0-beta.2",Ao=function(){function t(){Kt(this,t)}return Ht(t,null,[{key:"request",value:function(a,s,f){return new Promise(function(e,n){var r=new XMLHttpRequest,t="".concat(ko.getHost(),"/").concat(s),o={};if(Object.keys(f).forEach(function(t){var e=f[t];void 0!==e&&(o[t]=e)}),"GET"===a){var i=Object.keys(o).map(function(t){return"".concat(t,"=").concat(encodeURIComponent(o[t]))});if(0<i.length){var u=i.join("&");t="".concat(t,"?").concat(u)}o=void 0}r.open(a,t,!0);var c=_n.getCookie(_n.PUBLISHABLE_KEY);c?(r.setRequestHeader("Authorization",c),r.setRequestHeader("Content-Type","application/json"),r.setRequestHeader("X-Radar-Device-Type","Web"),r.setRequestHeader("X-Radar-SDK-Version",Lo),r.onload=function(){var t;try{t=JSON.parse(r.response)}catch(t){n(vo.ERROR_SERVER)}200==r.status?e(t):400===r.status?n({httpError:vo.ERROR_BAD_REQUEST,response:t}):401===r.status?n({httpError:vo.ERROR_UNAUTHORIZED,response:t}):402===r.status?n({httpError:vo.ERROR_PAYMENT_REQUIRED,response:t}):403===r.status?n({httpError:vo.ERROR_FORBIDDEN,response:t}):404===r.status?n({httpError:vo.ERROR_NOT_FOUND,response:t}):429===r.status?n({httpError:vo.ERROR_RATE_LIMIT,response:t}):500<=r.status&&r.status<600?n({httpError:vo.ERROR_SERVER,response:t}):n({httpError:vo.ERROR_UNKNOWN,response:t})},r.onerror=function(){n(vo.ERROR_SERVER)},r.timeout=function(){n(vo.ERROR_NETWORK)},r.send(JSON.stringify(o))):n(vo.ERROR_PUBLISHABLE_KEY)})}}]),t}(),Po=function(){function t(){Kt(this,t)}var e;return Ht(t,null,[{key:"getContext",value:(e=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<u.length&&void 0!==u[0]?u[0]:{}).latitude&&e.longitude){t.next=5;break}return t.next=4,go.getCurrentPosition();case 4:e=t.sent;case 5:return r=(n=e).latitude,o=n.longitude,i={coordinates:"".concat(r,",").concat(o)},t.abrupt("return",Ao.request("GET","v1/context",i));case 8:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),jo=function(){function t(){Kt(this,t)}var e,n,r;return Ht(t,null,[{key:"geocode",value:(r=Bt(regeneratorRuntime.mark(function t(){var e,n,r=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<r.length&&void 0!==r[0]?r[0]:{},n=e.query,t.abrupt("return",Ao.request("GET","v1/geocode/forward",{query:n}));case 3:case"end":return t.stop()}},t)})),function(){return r.apply(this,arguments)})},{key:"reverseGeocode",value:(n=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u,c,a=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<a.length&&void 0!==a[0]?a[0]:{}).latitude&&e.longitude){t.next=9;break}return t.next=4,go.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.latitude=r,e.longitude=o;case 9:return i=e.latitude,u=e.longitude,c={coordinates:"".concat(i,",").concat(u)},t.abrupt("return",Ao.request("GET","v1/geocode/reverse",c));case 12:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"ipGeocode",value:(e=Bt(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Ao.request("GET","v1/geocode/ip",{}));case 1:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),No=function(){function t(){Kt(this,t)}var e;return Ht(t,null,[{key:"getDistanceToDestination",value:(e=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u,c,a,s,f=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<f.length&&void 0!==f[0]?f[0]:{}).origin){t.next=8;break}return t.next=4,go.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.origin={latitude:r,longitude:o};case 8:return i=e.origin,u=e.destination,c=e.modes,a=e.units,i="".concat(i.latitude,",").concat(i.longitude),u&&(u="".concat(u.latitude,",").concat(u.longitude)),c&&(c=c.join(",")),s={origin:i,destination:u,modes:c,units:a},t.abrupt("return",Ao.request("GET","v1/route/distance",s));case 14:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Mo=function(){function t(){Kt(this,t)}var e,n,r;return Ht(t,null,[{key:"searchPlaces",value:(r=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u,c,a,s,f,l,p=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<p.length&&void 0!==p[0]?p[0]:{}).near){t.next=8;break}return t.next=4,go.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.near={latitude:r,longitude:o};case 8:return i=e.near,u=e.radius,c=e.chains,a=e.categories,s=e.groups,f=e.limit,i="".concat(i.latitude,",").concat(i.longitude),c&&(c=c.join(",")),a&&(a=a.join(",")),s&&(s=s.join(",")),l={near:i,radius:u,chains:c,categories:a,groups:s,limit:f},t.abrupt("return",Ao.request("GET","v1/search/places",l));case 15:case"end":return t.stop()}},t)})),function(){return r.apply(this,arguments)})},{key:"searchGeofences",value:(n=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u,c,a,s,f=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<f.length&&void 0!==f[0]?f[0]:{}).near){t.next=8;break}return t.next=4,go.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.near={latitude:r,longitude:o};case 8:return i=e.near,u=e.radius,c=e.tags,a=e.limit,i="".concat(i.latitude,",").concat(i.longitude),c&&(c=c.join(",")),s={near:i,radius:u,tags:c,limit:a},t.abrupt("return",Ao.request("GET","v1/search/geofences",s));case 13:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"autocomplete",value:(e=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u,c,a,s=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<s.length&&void 0!==s[0]?s[0]:{}).near){t.next=8;break}return t.next=4,go.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.near={latitude:r,longitude:o};case 8:return i=e.query,u=e.near,c=e.limit,u="".concat(u.latitude,",").concat(u.longitude),a={query:i,near:u,limit:c},t.abrupt("return",Ao.request("GET","v1/search/autocomplete",a));case 12:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Uo="toString",Do=RegExp.prototype,Go=Do[Uo],Bo=l(function(){return"/a/b"!=Go.call({source:"a",flags:"b"})}),Ko=Go.name!=Uo;(Bo||Ko)&&et(RegExp.prototype,Uo,function(){var t=C(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in Do)?ze.call(t):n)},{unsafe:!0});var Fo=Math.max,Ho=Math.min,qo=Math.floor,Vo=/\$([$&'`]|\d\d?|<[^>]*>)/g,Yo=/\$([$&'`]|\d\d?)/g;dn("replace",2,function(o,S,x,t){var O=t.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,w=t.REPLACE_KEEPS_$0,b=O?"$":"$0";return[function(t,e){var n=d(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n,e):S.call(String(n),t,e)},function(t,e){if(!O&&w||"string"==typeof e&&-1===e.indexOf(b)){var n=x(S,t,this,e);if(n.done)return n.value}var r=C(t),o=String(this),i="function"==typeof e;i||(e=String(e));var u=r.global;if(u){var c=r.unicode;r.lastIndex=0}for(var a=[];;){var s=Sn(r,o);if(null===s)break;if(a.push(s),!u)break;""===String(s[0])&&(r.lastIndex=mn(o,st(r.lastIndex),c))}for(var f,l="",p=0,h=0;h<a.length;h++){s=a[h];for(var d=String(s[0]),v=Fo(Ho(ct(s.index),o.length),0),g=[],y=1;y<s.length;y++)g.push(void 0===(f=s[y])?f:String(f));var R=s.groups;if(i){var E=[d].concat(g,v,o);void 0!==R&&E.push(R);var m=String(e.apply(void 0,E))}else m=_(d,o,v,g,R,e);p<=v&&(l+=o.slice(p,v)+m,p=v+d.length)}return l+o.slice(p)}];function _(i,u,c,a,s,t){var f=c+i.length,l=a.length,e=Yo;return void 0!==s&&(s=$t(s),e=Vo),S.call(t,e,function(t,e){var n;switch(e.charAt(0)){case"$":return"$";case"&":return i;case"`":return u.slice(0,c);case"'":return u.slice(f);case"<":n=s[e.slice(1,-1)];break;default:var r=+e;if(0===r)return t;if(l<r){var o=qo(r/10);return 0===o?t:o<=l?void 0===a[o-1]?e.charAt(1):a[o-1]+e.charAt(1):t}n=a[r-1]}return void 0===n?"":n})}});var $o=function(){function t(){Kt(this,t)}return Ht(t,null,[{key:"getId",value:function(){var t=_n.getCookie(_n.DEVICE_ID);if(t)return t;var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)});return _n.setCookie(_n.DEVICE_ID,e),e}}]),t}(),Wo=function(){function t(){Kt(this,t)}var e;return Ht(t,null,[{key:"trackOnce",value:(e=Bt(regeneratorRuntime.mark(function t(){var e,n,r,o,i,u,c,a,s,f,l,p=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<p.length&&void 0!==p[0]?p[0]:{}).latitude&&e.longitude){t.next=5;break}return t.next=4,go.getCurrentPosition();case 4:e=t.sent;case 5:return r=(n=e).latitude,o=n.longitude,i=n.accuracy,u=$o.getId(),c=_n.getCookie(_n.USER_ID),a=_n.getCookie(_n.DESCRIPTION),s=c||u,f={accuracy:i,description:a,deviceId:u,deviceType:"Web",foreground:!0,latitude:r,longitude:o,sdkVersion:Lo,stopped:!0,userId:c},t.next=13,Ao.request("PUT","v1/users/".concat(s),f);case 13:return(l=t.sent).location=e,t.abrupt("return",l);case 16:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),zo=function(e){return function(t){"string"!=typeof t?"object"===Dt(t)&&t.httpError?e(t.httpError,{},t.response):e(vo.ERROR_UNKNOWN,{}):e(t,{})}};return function(){function t(){Kt(this,t)}return Ht(t,null,[{key:"initialize",value:function(t){t||console.error('Radar "initialize" was called without a publishable key'),_n.setCookie(_n.PUBLISHABLE_KEY,t)}},{key:"setHost",value:function(t){_n.setCookie(_n.HOST,t,!0)}},{key:"setUserId",value:function(t){t?0===(t=String(t).trim()).length||256<t.length?_n.deleteCookie(_n.USER_ID):_n.setCookie(_n.USER_ID,t):_n.deleteCookie(_n.USER_ID)}},{key:"setDescription",value:function(t){t?0===(t=String(t).trim()).length||256<t.length?_n.deleteCookie(_n.DESCRIPTION):_n.setCookie(_n.DESCRIPTION,t):_n.deleteCookie(_n.DESCRIPTION)}},{key:"getLocation",value:function(e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);go.getCurrentPosition().then(function(t){e(null,{location:t,status:vo.SUCCESS})}).catch(zo(e))}},{key:"trackOnce",value:function(t,e){var n,r;if("function"==typeof t)n=t;else if("object"===Dt(t))r=t,n=e;else if(t)throw new Error(vo.ERROR_PARAMETERS);Wo.trackOnce(r).then(function(t){n&&n(null,{location:t.location,user:t.user,events:t.events,status:vo.SUCCESS},t)}).catch(zo(n))}},{key:"getContext",value:function(t,e){if(!t)throw new Error(vo.ERROR_MISSING_CALLBACK);var n,r;if("function"==typeof t)n=t;else{if("object"!==Dt(t))throw new Error(vo.ERROR_PARAMETERS);if(r=t,"function"!=typeof e)throw new Error(vo.ERROR_MISSING_CALLBACK);n=e}Po.getContext(r).then(function(t){n(null,{context:t.context,status:vo.SUCCESS},t)}).catch(zo(n))}},{key:"searchPlaces",value:function(t,e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);Mo.searchPlaces(t).then(function(t){e(null,{places:t.places,status:vo.SUCCESS},t)}).catch(zo(e))}},{key:"searchGeofences",value:function(t,e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);Mo.searchGeofences(t).then(function(t){e(null,{geofences:t.geofences,status:vo.SUCCESS},t)}).catch(zo(e))}},{key:"autocomplete",value:function(t,e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);Mo.autocomplete(t).then(function(t){e(null,{addresses:t.addresses,status:vo.SUCCESS},t)}).catch(zo(e))}},{key:"geocode",value:function(t,e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);jo.geocode(t).then(function(t){e(null,{addresses:t.addresses,staus:vo.SUCCESS},t)}).catch(zo(e))}},{key:"reverseGeocode",value:function(t,e){if(!t)throw new Error(vo.ERROR_PARAMETERS);var n,r;if("function"==typeof t)n=t;else{if("object"!==Dt(t))throw new Error(vo.ERROR_PARAMETERS);if(r=t,"function"!=typeof e)throw new Error(vo.ERROR_MISSING_CALLBACK);n=e}jo.reverseGeocode(r).then(function(t){n(null,{addresses:t.addresses,status:vo.SUCCESS},t)}).catch(zo(n))}},{key:"ipGeocode",value:function(e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);jo.ipGeocode().then(function(t){e(null,{address:t.address,status:vo.SUCCESS},t)}).catch(zo(e))}},{key:"getDistance",value:function(t,e){if(!e)throw new Error(vo.ERROR_MISSING_CALLBACK);No.getDistanceToDestination(t).then(function(t){e(null,{routes:t.routes,status:vo.SUCCESS},t)}).catch(zo(e))}},{key:"VERSION",get:function(){return Lo}},{key:"STATUS",get:function(){return vo}}]),t}()}();

@@ -6,3 +6,3 @@ {

"license": "Apache-2.0",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"main": "dist/index.js",

@@ -9,0 +9,0 @@ "module": "src/index.js",

@@ -76,3 +76,3 @@ ![Radar](https://raw.githubusercontent.com/radarlabs/react-native-radar/master/logo.png)

```javascript
Radar.trackOnce(function(err, { location, user, events }) {
Radar.trackOnce(function(err, { status, location, user, events }) {
if (!err) {

@@ -79,0 +79,0 @@ // do something with location, user, events

@@ -53,24 +53,35 @@ import Cookie from './cookie';

xhr.onload = () => {
let response;
try {
response = JSON.parse(xhr.response);
} catch (e) {
reject(STATUS.ERROR_SERVER);
}
if (xhr.status == 200) {
try {
resolve(JSON.parse(xhr.response));
} catch (e) {
reject(STATUS.ERROR_SERVER);
}
resolve(response);
} else if (xhr.status === 400) {
reject(STATUS.ERROR_BAD_REQUEST);
reject({ httpError: STATUS.ERROR_BAD_REQUEST, response });
} else if (xhr.status === 401) {
reject(STATUS.ERROR_UNAUTHORIZED);
reject({ httpError: STATUS.ERROR_UNAUTHORIZED, response });
} else if (xhr.status === 402) {
reject(STATUS.ERROR_PAYMENT_REQUIRED);
reject({ httpError: STATUS.ERROR_PAYMENT_REQUIRED, response });
} else if (xhr.status === 403) {
reject(STATUS.ERROR_FORBIDDEN);
reject({ httpError: STATUS.ERROR_FORBIDDEN, response });
} else if (xhr.status === 404) {
reject(STATUS.ERROR_NOT_FOUND);
reject({ httpError: STATUS.ERROR_NOT_FOUND, response });
} else if (xhr.status === 429) {
reject(STATUS.ERROR_RATE_LIMIT);
reject({ httpError: STATUS.ERROR_RATE_LIMIT, response });
} else if (500 <= xhr.status && xhr.status < 600) {
reject(STATUS.ERROR_SERVER);
reject({ httpError: STATUS.ERROR_SERVER, response });
} else {
reject(STATUS.ERROR_UNKNOWN);
reject({ httpError: STATUS.ERROR_UNKNOWN, response });
}

@@ -77,0 +88,0 @@ }

@@ -14,2 +14,22 @@ import Cookie from './cookie';

const handleError = (callback) => {
return (err) => {
// Radar Error
if (typeof err === 'string') {
callback(err, {});
return;
}
// Http Error
if (typeof err === 'object' && err.httpError) {
callback(err.httpError, {}, err.response);
return;
}
// Unknown
callback(STATUS.ERROR_UNKNOWN, {});
};
};
class Radar {

@@ -72,3 +92,3 @@ static get VERSION() {

})
.catch(callback);
.catch(handleError(callback));
}

@@ -103,3 +123,3 @@

})
.catch(callback);
.catch(handleError(callback));
}

@@ -134,3 +154,3 @@

})
.catch(callback);
.catch(handleError(callback));
}

@@ -147,3 +167,3 @@

})
.catch(callback);
.catch(handleError(callback));
}

@@ -160,3 +180,3 @@

})
.catch(callback);
.catch(handleError(callback));
}

@@ -173,3 +193,3 @@

})
.catch(callback);
.catch(handleError(callback));
}

@@ -186,3 +206,3 @@

})
.catch(callback);
.catch(handleError(callback));
}

@@ -217,3 +237,3 @@

})
.catch(callback);
.catch(handleError(callback));
}

@@ -230,3 +250,3 @@

})
.catch(callback);
.catch(handleError(callback));
}

@@ -243,3 +263,3 @@

})
.catch(callback);
.catch(handleError(callback));
}

@@ -246,0 +266,0 @@ }

@@ -1,1 +0,1 @@

export default '3.0.0-beta.1';
export default '3.0.0-beta.2';

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc