forked from ValdoTR/wa-internal-map
-
Notifications
You must be signed in to change notification settings - Fork 3
/
script.js
3 lines (3 loc) · 19.6 KB
/
script.js
1
2
3
/*! For license information please see script.js.LICENSE.txt */
(()=>{"use strict";var e={733:(e,t,o)=>{o.r(t),o.d(t,{Properties:()=>n,VariableDescriptor:()=>r,bootstrapExtra:()=>J,findLayerBoundaries:()=>p,findLayersBoundaries:()=>u,getAllVariables:()=>s,getLayersMap:()=>l,initDoors:()=>$,initPropertiesTemplates:()=>V,initVariableActionLayer:()=>F});class n{constructor(e){this.properties=null!=e?e:[]}get(e){const t=this.properties.filter((t=>t.name===e)).map((e=>e.value));if(t.length>1)throw new Error('Expected only one property to be named "'+e+'"');if(0!==t.length)return t[0]}getString(e){return this.getByType(e,"string")}getNumber(e){return this.getByType(e,"number")}getBoolean(e){return this.getByType(e,"boolean")}getByType(e,t){const o=this.get(e);if(void 0!==o){if(typeof o!==t)throw new Error('Expected property "'+e+'" to have type "'+t+'"');return o}}mustGetString(e){return this.mustGetByType(e,"string")}mustGetNumber(e){return this.mustGetByType(e,"number")}mustGetBoolean(e){return this.mustGetByType(e,"boolean")}mustGetByType(e,t){const o=this.get(e);if(void 0===o)throw new Error('Property "'+e+'" is missing');if(typeof o!==t)throw new Error('Expected property "'+e+'" to have type "'+t+'"');return o}getType(e){const t=this.properties.filter((t=>t.name===e)).map((e=>e.type));if(t.length>1)throw new Error('Expected only one property to be named "'+e+'"');if(0!==t.length)return t[0]}}class r{constructor(e){this.name=e.name,this.x=e.x,this.y=e.y,this.properties=new n(e.properties)}get isReadable(){const e=this.properties.getString("readableBy");return!e||WA.player.tags.includes(e)}get isWritable(){const e=this.properties.getString("writableBy");return!e||WA.player.tags.includes(e)}}async function s(){const e=await WA.room.getTiledMap(),t=new Map;return a(e.layers,t),t}function a(e,t){for(const o of e)if("objectgroup"===o.type)for(const e of o.objects)"variable"===e.type&&t.set(e.name,new r(e));else"group"===o.type&&a(o.layers,t)}let i;async function l(){return void 0===i&&(i=async function(){return function(e){const t=new Map;return c(e.layers,"",t),t}(await WA.room.getTiledMap())}()),i}function c(e,t,o){for(const n of e)"group"===n.type?c(n.layers,t+n.name+"/",o):(n.name=t+n.name,o.set(n.name,n))}function p(e){let t=1/0,o=1/0,n=0,r=0;const s=e.data;if("string"==typeof s)throw new Error("Unsupported tile layer data stored as string instead of CSV");for(let a=0;a<e.height;a++)for(let i=0;i<e.width;i++)0!==s[i+a*e.width]&&(t=Math.min(t,i),r=Math.max(r,i),o=Math.min(o,a),n=Math.max(n,a));return{top:o,left:t,right:r+1,bottom:n+1}}function u(e){let t=1/0,o=1/0,n=0,r=0;for(const s of e){const e=p(s);e.left<t&&(t=e.left),e.top<o&&(o=e.top),e.right>r&&(r=e.right),e.bottom>n&&(n=e.bottom)}return{top:o,left:t,right:r,bottom:n}}var h=Object.prototype.toString,g=Array.isArray||function(e){return"[object Array]"===h.call(e)};function f(e){return"function"==typeof e}function m(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function d(e,t){return null!=e&&"object"==typeof e&&t in e}var y=RegExp.prototype.test,v=/\S/;var b={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},w=/\s*/,A=/\s+/,W=/\s*=/,S=/\s*\}/,E=/#|\^|\/|>|\{|&|=|!/;function x(e){this.string=e,this.tail=e,this.pos=0}function C(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function k(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}x.prototype.eos=function(){return""===this.tail},x.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var o=t[0];return this.tail=this.tail.substring(o.length),this.pos+=o.length,o},x.prototype.scanUntil=function(e){var t,o=this.tail.search(e);switch(o){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,o),this.tail=this.tail.substring(o)}return this.pos+=t.length,t},C.prototype.push=function(e){return new C(e,this)},C.prototype.lookup=function(e){var t,o,n,r=this.cache;if(r.hasOwnProperty(e))t=r[e];else{for(var s,a,i,l=this,c=!1;l;){if(e.indexOf(".")>0)for(s=l.view,a=e.split("."),i=0;null!=s&&i<a.length;)i===a.length-1&&(c=d(s,a[i])||(o=s,n=a[i],null!=o&&"object"!=typeof o&&o.hasOwnProperty&&o.hasOwnProperty(n))),s=s[a[i++]];else s=l.view[e],c=d(l.view,e);if(c){t=s;break}l=l.parent}r[e]=t}return f(t)&&(t=t.call(this.view)),t},k.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},k.prototype.parse=function(e,t){var o=this.templateCache,n=e+":"+(t||T.tags).join(":"),r=void 0!==o,s=r?o.get(n):void 0;return null==s&&(s=function(e,t){if(!e)return[];var o,n,r,s,a=!1,i=[],l=[],c=[],p=!1,u=!1,h="",f=0;function d(){if(p&&!u)for(;c.length;)delete l[c.pop()];else c=[];p=!1,u=!1}function b(e){if("string"==typeof e&&(e=e.split(A,2)),!g(e)||2!==e.length)throw new Error("Invalid tags: "+e);o=new RegExp(m(e[0])+"\\s*"),n=new RegExp("\\s*"+m(e[1])),r=new RegExp("\\s*"+m("}"+e[1]))}b(t||T.tags);for(var C,k,M,P,L,V,G=new x(e);!G.eos();){if(C=G.pos,M=G.scanUntil(o))for(var j=0,Z=M.length;j<Z;++j)s=P=M.charAt(j),function(e,t){return y.call(e,t)}(v,s)?(u=!0,a=!0,h+=" "):(c.push(l.length),h+=P),l.push(["text",P,C,C+1]),C+=1,"\n"===P&&(d(),h="",f=0,a=!1);if(!G.scan(o))break;if(p=!0,k=G.scan(E)||"name",G.scan(w),"="===k?(M=G.scanUntil(W),G.scan(W),G.scanUntil(n)):"{"===k?(M=G.scanUntil(r),G.scan(S),G.scanUntil(n),k="&"):M=G.scanUntil(n),!G.scan(n))throw new Error("Unclosed tag at "+G.pos);if(L=">"==k?[k,M,C,G.pos,h,f,a]:[k,M,C,G.pos],f++,l.push(L),"#"===k||"^"===k)i.push(L);else if("/"===k){if(!(V=i.pop()))throw new Error('Unopened section "'+M+'" at '+C);if(V[1]!==M)throw new Error('Unclosed section "'+V[1]+'" at '+C)}else"name"===k||"{"===k||"&"===k?u=!0:"="===k&&b(M)}if(d(),V=i.pop())throw new Error('Unclosed section "'+V[1]+'" at '+G.pos);return function(e){for(var t,o=[],n=o,r=[],s=0,a=e.length;s<a;++s)switch((t=e[s])[0]){case"#":case"^":n.push(t),r.push(t),n=t[4]=[];break;case"/":r.pop()[5]=t[2],n=r.length>0?r[r.length-1][4]:o;break;default:n.push(t)}return o}(function(e){for(var t,o,n=[],r=0,s=e.length;r<s;++r)(t=e[r])&&("text"===t[0]&&o&&"text"===o[0]?(o[1]+=t[1],o[3]=t[3]):(n.push(t),o=t));return n}(l))}(e,t),r&&o.set(n,s)),s},k.prototype.render=function(e,t,o,n){var r=this.getConfigTags(n),s=this.parse(e,r),a=t instanceof C?t:new C(t,void 0);return this.renderTokens(s,a,o,e,n)},k.prototype.renderTokens=function(e,t,o,n,r){for(var s,a,i,l="",c=0,p=e.length;c<p;++c)i=void 0,"#"===(a=(s=e[c])[0])?i=this.renderSection(s,t,o,n,r):"^"===a?i=this.renderInverted(s,t,o,n,r):">"===a?i=this.renderPartial(s,t,o,r):"&"===a?i=this.unescapedValue(s,t):"name"===a?i=this.escapedValue(s,t,r):"text"===a&&(i=this.rawValue(s)),void 0!==i&&(l+=i);return l},k.prototype.renderSection=function(e,t,o,n,r){var s=this,a="",i=t.lookup(e[1]);if(i){if(g(i))for(var l=0,c=i.length;l<c;++l)a+=this.renderTokens(e[4],t.push(i[l]),o,n,r);else if("object"==typeof i||"string"==typeof i||"number"==typeof i)a+=this.renderTokens(e[4],t.push(i),o,n,r);else if(f(i)){if("string"!=typeof n)throw new Error("Cannot use higher-order sections without the original template");null!=(i=i.call(t.view,n.slice(e[3],e[5]),(function(e){return s.render(e,t,o,r)})))&&(a+=i)}else a+=this.renderTokens(e[4],t,o,n,r);return a}},k.prototype.renderInverted=function(e,t,o,n,r){var s=t.lookup(e[1]);if(!s||g(s)&&0===s.length)return this.renderTokens(e[4],t,o,n,r)},k.prototype.indentPartial=function(e,t,o){for(var n=t.replace(/[^ \t]/g,""),r=e.split("\n"),s=0;s<r.length;s++)r[s].length&&(s>0||!o)&&(r[s]=n+r[s]);return r.join("\n")},k.prototype.renderPartial=function(e,t,o,n){if(o){var r=this.getConfigTags(n),s=f(o)?o(e[1]):o[e[1]];if(null!=s){var a=e[6],i=e[5],l=e[4],c=s;0==i&&l&&(c=this.indentPartial(s,l,a));var p=this.parse(c,r);return this.renderTokens(p,t,o,c,n)}}},k.prototype.unescapedValue=function(e,t){var o=t.lookup(e[1]);if(null!=o)return o},k.prototype.escapedValue=function(e,t,o){var n=this.getConfigEscape(o)||T.escape,r=t.lookup(e[1]);if(null!=r)return"number"==typeof r&&n===T.escape?String(r):n(r)},k.prototype.rawValue=function(e){return e[1]},k.prototype.getConfigTags=function(e){return g(e)?e:e&&"object"==typeof e?e.tags:void 0},k.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!g(e)?e.escape:void 0};var T={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){M.templateCache=e},get templateCache(){return M.templateCache}},M=new k;T.clearCache=function(){return M.clearCache()},T.parse=function(e,t){return M.parse(e,t)},T.render=function(e,t,o,n){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+(g(r=e)?"array":typeof r)+'" was given as the first argument for mustache#render(template, view, partials)');var r;return M.render(e,t,o,n)},T.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return b[e]}))},T.Scanner=x,T.Context=C,T.Writer=k;const P=T;class L{constructor(e,t){this.template=e,this.state=t,this.ast=P.parse(e)}getValue(){return void 0===this.value&&(this.value=P.render(this.template,this.state)),this.value}onChange(e){const t=[];for(const o of this.getUsedVariables().values())t.push(this.state.onVariableChange(o).subscribe((()=>{const t=P.render(this.template,this.state);t!==this.value&&(this.value=t,e(this.value))})));return{unsubscribe:()=>{for(const e of t)e.unsubscribe()}}}isPureString(){return 0===this.ast.length||1===this.ast.length&&"text"===this.ast[0][0]}getUsedVariables(){const e=new Set;return this.recursiveGetUsedVariables(this.ast,e),e}recursiveGetUsedVariables(e,t){for(const o of e){const e=o[0],n=o[1],r=o[4];["name","&","#","^"].includes(e)&&t.add(n),void 0!==r&&"string"!=typeof r&&this.recursiveGetUsedVariables(r,t)}}}async function V(){var e;const t=await l();for(const[o,n]of t.entries()){const t=null!==(e=n.properties)&&void 0!==e?e:[];for(const e of t){if("int"===e.type||"bool"===e.type||"object"===e.type||"string"!=typeof e.value)continue;const t=new L(e.value,WA.state);if(t.isPureString())continue;const n=t.getValue();G(o,e.name,n),t.onChange((t=>{G(o,e.name,t)}))}}}function G(e,t,o){WA.room.setProperty(e,t,o),"visible"===t&&(o?WA.room.showLayer(e):WA.room.hideLayer(e))}const j="https://unpkg.com/@workadventure/[email protected]/dist";let Z,B,U=0,z=0;function N(e){if(WA.state[e.name]){let t=e.properties.mustGetString("openLayer");for(const e of t.split("\n"))WA.room.showLayer(e);t=e.properties.mustGetString("closeLayer");for(const e of t.split("\n"))WA.room.hideLayer(e)}else{let t=e.properties.mustGetString("openLayer");for(const e of t.split("\n"))WA.room.hideLayer(e);t=e.properties.mustGetString("closeLayer");for(const e of t.split("\n"))WA.room.showLayer(e)}}function O(e){return e.map((e=>Z.get(e))).filter((e=>"tilelayer"===(null==e?void 0:e.type)))}function D(e){const t=u(O(e)),o=32*((t.right-t.left)/2+t.left),n=32*((t.bottom-t.top)/2+t.top);return Math.sqrt(Math.pow(U-o,2)+Math.pow(z-n,2))}function R(e){WA.state.onVariableChange(e.name).subscribe((()=>{WA.state[e.name]?function(e){const t=e.properties.getString("openSound"),o=e.properties.getNumber("soundRadius");let n=1;if(o){const t=D(e.properties.mustGetString("openLayer").split("\n"));if(t>o)return;n=1-t/o}t&&WA.sound.loadSound(t).play({volume:n})}(e):function(e){const t=e.properties.getString("closeSound"),o=e.properties.getNumber("soundRadius");let n=1;if(o){const t=D(e.properties.mustGetString("closeLayer").split("\n"));if(t>o)return;n=1-t/o}t&&WA.sound.loadSound(t).play({volume:n})}(e),N(e)})),N(e)}function _(e,t,o,n){const r=e.name;let s,a,i=!1;const l=o.getString("zone");if(!l)throw new Error('Missing "zone" property on doorstep layer "'+r+'"');const c=o.getString("tag");let p=!0;c&&!WA.player.tags.includes(c)&&(p=!1);const h=!!c;function g(){var e;s&&s.remove(),s=WA.ui.displayActionMessage({message:null!==(e=o.getString("closeTriggerMessage"))&&void 0!==e?e:"Press SPACE to close the door",callback:()=>{WA.state[t.name]=!1,f()}})}function f(){var e;s&&s.remove(),s=WA.ui.displayActionMessage({message:null!==(e=o.getString("openTriggerMessage"))&&void 0!==e?e:"Press SPACE to open the door",callback:()=>{WA.state[t.name]=!0,g()}})}function m(){a&&(WA.room.website.delete(a.name),a=void 0)}WA.room.onEnterZone(l,(()=>{i=!0,o.getBoolean("autoOpen")&&p?WA.state[t.name]=!0:WA.state[t.name]||(!h||p)&&h||!o.getString("code")&&!o.getString("codeVariable")?p&&(WA.state[t.name]?g():f()):function(e){const o=u(O(t.properties.mustGetString("closeLayer").split("\n")));a=WA.room.website.create({name:"doorKeypad"+e,url:n+"/keypad.html#"+encodeURIComponent(e),position:{x:32*o.right,y:32*o.top,width:96,height:128},allowApi:!0})}(r)})),WA.room.onLeaveZone(l,(()=>{i=!1,o.getBoolean("autoClose")&&(WA.state[t.name]=!1),s&&s.remove(),m()})),WA.state.onVariableChange(t.name).subscribe((()=>{i&&(o.getBoolean("autoClose")||!0!==WA.state[t.name]||g(),a&&!0===WA.state[t.name]&&m(),o.getBoolean("autoOpen")||!1!==WA.state[t.name]||f())}))}function I(e){void 0===WA.state[e.name]&&(WA.state[e.name]=0),WA.state.onVariableChange(e.name).subscribe((()=>{WA.state[e.name]&&function(e){const t=e.properties.mustGetString("bellSound"),o=e.properties.getNumber("soundRadius");let n=1;if(o){const t=Math.sqrt(Math.pow(e.x-U,2)+Math.pow(e.y-z,2));if(t>o)return;n=1-t/o}WA.sound.loadSound(t).play({volume:n})}(e)}))}function q(e,t){let o;const n=t.mustGetString("zone"),r=t.getString("bellPopup");WA.room.onEnterZone(n,(()=>{var n;r?o=WA.ui.openPopup(r,"",[{label:null!==(n=t.getString("bellButtonText"))&&void 0!==n?n:"Ring",callback:()=>{WA.state[e]=WA.state[e]+1}}]):WA.state[e]=WA.state[e]+1})),WA.room.onLeaveZone(n,(()=>{o&&(o.close(),o=void 0)}))}async function $(e){e=null!=e?e:j;const t=await s();Z=await l();for(const e of t.values())e.properties.get("door")&&R(e),e.properties.get("bell")&&I(e);for(const o of Z.values()){const r=new n(o.properties),s=r.getString("doorVariable");if(s&&"tilelayer"===o.type){const n=t.get(s);if(void 0===n)throw new Error('Cannot find variable "'+s+'" referred in the "doorVariable" property of layer "'+o.name+'"');_(o,n,r,e)}const a=r.getString("bellVariable");a&&q(a,r)}WA.player.onPlayerMove((e=>{U=e.x,z=e.y}))}function F(e){const t=e.getString("bindVariable");if(t){const o=e.getString("zone");if(!o)throw new Error('A layer with a "bindVariable" property must ALSO have a "zone" property.');!function(e,t,o,n,r,s){s&&!WA.player.tags.includes(s)||(void 0!==o&&WA.room.onEnterZone(t,(()=>{r||(WA.state[e]=o)})),void 0!==n&&WA.room.onLeaveZone(t,(()=>{WA.state[e]=n})))}(t,o,e.get("enterValue"),e.get("leaveValue"),e.getString("triggerMessage"),e.getString("tag"))}}function K(e,t){let o;const n=t.getString("zone");if(!n)throw new Error('Missing "zone" property');const r=t.getString("openConfigAdminTag");let s=!0;function a(){WA.nav.closeCoWebSite()}r&&!WA.player.tags.includes(r)&&(s=!1),WA.room.onEnterZone(n,(()=>{const n=t.getString("openConfigTrigger");var r;s&&(n&&"onaction"===n?(o&&o.remove(),o=WA.ui.displayActionMessage({message:null!==(r=t.getString("openConfigTriggerMessage"))&&void 0!==r?r:"Press SPACE or touch here to configure",callback:()=>H(e)})):H(e))})),WA.room.onLeaveZone(n,(()=>{o?(o.remove(),a()):a()}))}function H(e){const t=e?"#"+e:"";WA.nav.openCoWebSite(j+"/configuration.html"+t,!0)}function J(){return WA.onInit().then((()=>{$().catch((e=>console.error(e))),async function(){const e=await l();for(const t of e.values())F(new n(t.properties))}().catch((e=>console.error(e))),async function(e){const t=await WA.room.getTiledMap();e=null!=e?e:j,B=await l();const o=t.layers.find((e=>"configuration"===e.name));if(o){const t=new n(o.properties).getString("tag");t&&!WA.player.tags.includes(t)||WA.ui.registerMenuCommand("Configure the room",(()=>{WA.nav.openCoWebSite(e+"/configuration.html",!0)}));for(const e of B.values()){const t=new n(e.properties),o=t.getString("openConfig");o&&"tilelayer"===e.type&&K(o,t)}}}().catch((e=>console.error(e))),V().catch((e=>console.error(e)))}))}},607:function(e,t,o){var n=this&&this.__awaiter||function(e,t,o,n){return new(o||(o=Promise))((function(r,s){function a(e){try{l(n.next(e))}catch(e){s(e)}}function i(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,i)}l((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const r=o(733);let s,a;console.log("Script started successfully"),function(){n(this,void 0,void 0,(function*(){try{yield(0,r.bootstrapExtra)(),console.log("Scripting API Extra loaded successfully");const e=yield WA.room.website.get("cinemaScreen");e.x=1670,e.y=802,e.width=320,e.height=240;const t=yield WA.room.website.get("githubRepository");t.x=3272,t.y=1088,t.width=400,t.height=300}catch(e){console.error("Scripting API Extra ERROR",e)}}))}();const i=[{zone:"start",message:"Welcome aboard our GDG & WTM Algiers World",cta:[{label:"Next",className:"primary",callback:()=>WA.state.saveVariable("dontShowStartPopup",!0).then((()=>{console.log(a),c(),l("start2")}))}]},{zone:"start2",message:"Enjoy exploring the space and don't forget to be present at 20:00 GMT+1 on the conference room :)",cta:[{label:"Thank you ",className:"primary",callback:()=>c()}]},{zone:"local",message:"Explore our headquarter or as we call it `Local`",cta:[{label:"Dismiss",className:"normal",callback:()=>c()}]},{zone:"meetup",message:"The meetup space will be used to stream our welcome day live at 20:00 GMT+1",cta:[{label:"Dismiss",className:"normal",callback:()=>c()}]},{zone:"eventsprojects",message:"At GDG & WTM Algiers we provide high quality events and projects, explore them inside this room",cta:[{label:"Dismiss",className:"normal",callback:()=>c()}]},{zone:"departments",message:"Do you want to know what are the secret of our success ? check out presentations of our departments in this room",cta:[{label:"Dismiss",className:"normal",callback:()=>c()}]},{zone:"discordspace",message:"GDG Algiers has a discord community space with +2k member, we do awesome things there check them out here",cta:[{label:"Dismiss",className:"normal",callback:()=>c()}]},{zone:"chill",message:"Tired of exploring the space ? you can sit in this room to have a rest and chill",cta:[{label:"Dismiss",className:"normal",callback:()=>c()}]},{zone:"games",message:"Wanna play some games with friends this is the perfect room for that, uno,skribble and gartic games are presents",cta:[{label:"Dismiss",className:"normal",callback:()=>c()}]}];function l(e){s=e;const t=e+"Popup",o=i.find((t=>t.zone==e));void 0!==o&&(a=WA.ui.openPopup(t,o.message,o.cta))}function c(){void 0!==a&&(a.close(),a=void 0)}WA.room.onEnterZone("local",(()=>l("local"))),WA.room.onLeaveZone("local",c),WA.room.onEnterZone("meetup",(()=>l("meetup"))),WA.room.onLeaveZone("meetup",c),WA.room.onEnterZone("eventsprojects",(()=>l("eventsprojects"))),WA.room.onLeaveZone("eventsprojects",c),WA.room.onEnterZone("departments",(()=>l("departments"))),WA.room.onLeaveZone("departments",c),WA.room.onEnterZone("discordspace",(()=>l("discordspace"))),WA.room.onLeaveZone("discordspace",c),WA.room.onEnterZone("chill",(()=>l("chill"))),WA.room.onLeaveZone("chill",c),WA.room.onEnterZone("games",(()=>l("games"))),WA.room.onLeaveZone("games",c),WA.room.onEnterZone("start",(()=>{WA.state.loadVariable("dontShowStartPopup")||l("start")})),WA.room.onLeaveZone("start",c)}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,o),s.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(607)})();
//# sourceMappingURL=script.js.map