var __awaiter=this&&this.__awaiter||function(n,t,e,r){function i(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,o){function u(n){try{f(r.next(n))}catch(n){o(n)}}function c(n){try{f(r["throw"](n))}catch(n){o(n)}}function f(n){n.done?e(n.value):i(n.value).then(u,c)}f((r=r.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(n){return function(t){return f([n,t])}}function f(c){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,c[0]&&(e=0)),e)try{if(r=1,i&&(o=c[0]&2?i["return"]:c[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;if(i=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:e.label++;return{value:c[1],done:false};case 5:e.label++;i=c[1];c=[0];continue;case 7:c=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){e.label=c[1];break}if(c[0]===6&&e.label<o[1]){e.label=o[1];o=c;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(c);break}if(o[2])e.ops.pop();e.trys.pop();continue}c=t.call(n,e)}catch(n){c=[6,n];i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};
/*!
 * Copyright (c) what3words http://what3words.com
 */System.register(["./p-qJ-XDqHB.system.js"],(function(n,t){"use strict";var e,r,i,o,u;return{setters:[function(n){e=n.g;r=n.a;i=n.u;o=n.S;u=n.c}],execute:function(){function c(){return __awaiter(this,void 0,void 0,(function(){var n,c,f,a,s,h,l,v,d,y,w,p;return __generator(this,(function(_){switch(_.label){case 0:c=window;f=c.w3w,a=f===void 0?{}:f;s=a.callback,h=a.key,l=a.host,v=a.version,d=a.headers;y=e();w=h!==null&&h!==void 0?h:y[o.KEY];if(w){r.api.setApiKey(w);i.setApiKey(w)}if(l||y[o.BASEURL]){r.api.setConfig({host:l!==null&&l!==void 0?l:y[o.BASEURL]})}if(v||y[o.VERSION]){r.api.setConfig({apiVersion:v!==null&&v!==void 0?v:y[o.VERSION]})}if(d){r.api.setConfig({headers:d})}c.what3words=r;if(!!c.sessionStorage.getItem(u))return[3,2];return[4,t.import("./p-DJYseI7c.system.js")];case 1:p=_.sent().v4;c.sessionStorage.setItem(u,p({rng:function(){var n=[];for(var t=0;t<16;t++){n.push(Math.round(Math.random()*255))}return n}}));_.label=2;case 2:c.what3words_session_id=c.sessionStorage.getItem(u);if(s&&typeof c[s]==="function"){c[s](r)}if(y[o.CALLBACK]&&typeof c[y[o.CALLBACK]]==="function"){(n=c[y[o.CALLBACK]])===null||n===void 0?void 0:n.call(c)}return[2]}}))}))}var f=n("g",c)}}}));