All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ebSite.0.0.15.source-code.5c75cbea13372719d7f3.worker.js Maven / Gradle / Ivy

!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=0)}([function(e,t,r){"use strict";function n(){var e,t,r=(e=["native method print ( any value ) { JavaScript: console.log(value.toString()); }"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return n=function(){return r},r}r.r(t);var o=self;o.Honey={requirePath:[".."]},o.importScripts("/js/lib/require.js","/js/lib/prompto.core.bundle.js");var i=o.prompto;function a(e,t){return new(0,i.parser[t+"CleverParser"])(e).parse()}var s={translate:function(e){var t=e.data,r=o.librariesContext.clone(),n=a(t.content,t.from);n.register(r);var s=i.parser.Dialect[t.to],u=new i.utils.CodeWriter(s,r);return n.toDialect(u),{translated:u.toString()}},execute:function(e){console.log=function(t){postMessage({inResponseTo:e.id,keepHandlerAlive:!0,data:{toStdOut:t}})},console.error=function(t){postMessage({inResponseTo:e.id,keepHandlerAlive:!0,data:{toStdErr:t}})};var t=e.data,r=o.librariesContext.clone();console.log("Running sample...\n");var n=a(t.content,t.dialect);n.register(r);var s=null;return n.forEach(function(e){e instanceof i.declaration.TestMethodDeclaration&&(s=e.name)}),i.store.DataStore.instance=new i.memstore.MemStore,s?i.runtime.Interpreter.interpretTest(r,s):i.runtime.Interpreter.interpret(r,"main",""),{toStdOut:"Success!\n"}}};onmessage=function(e){var t=e.data,r=(0,s[t.verb])(t),n={inResponseTo:t.id,data:r};postMessage(n)},o.librariesContext=i.runtime.Context.newGlobalContext(),function(e,t){var r=new XMLHttpRequest;r.onerror=function(e){return console.log("Error "+e.target.status+" occurred while receiving the document."),null},r.onload=function(e){t(r.responseText)},r.open("GET",e),"/"!==e[0]&&"."!==e[0]&&r.setRequestHeader("Access-Control-Allow-Origin","*"),r.send(null)}("/prompto/prompto.pec",function(e){var t=a(e,"E");t.register(o.librariesContext);o.librariesContext.unregisterMethodDeclaration({name:"print"},"any"),(t=a(e=String.raw(n()),"O")).register(o.librariesContext)})}]);
//# sourceMappingURL=5c75cbea13372719d7f3.worker.js.map




© 2015 - 2025 Weber Informatics LLC | Privacy Policy