@basthon/browser-bundle 0.73.8 → 0.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{0.73.8 → 0.74.0}/python3/basthon.tar +0 -0
- package/lib/{0.73.8 → 0.74.0}/python3/modules/graphviz-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.73.8 → 0.74.0}/python3/modules/ipython-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.73.8 → 0.74.0}/python3/modules/p5-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.73.8 → 0.74.0}/python3/modules/proj4py-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.73.8 → 0.74.0}/python3/modules/rcviz-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.73.8 → 0.74.0}/python3/modules/requests-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.73.8 → 0.74.0}/python3/modules/turtle-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.73.8 → 0.74.0}/python3/modules/tutor-0.0.1-py3-none-any.whl +0 -0
- package/lib/0.74.0/python3/pyodide-lock.json +1 -0
- package/lib/kernel-base_lib_commons_js-kernel-base_lib_version_js-kernel-echo_lib_index_js.js +1 -1
- package/lib/kernel-base_lib_commons_js-kernel-base_lib_version_js-kernel-echo_lib_index_js.js.map +1 -1
- package/lib/kernel-base_lib_worker_index_js-_3c190.js +1 -1
- package/lib/kernel-base_lib_worker_index_js-_3c190.js.map +1 -1
- package/lib/kernel-base_lib_worker_kernel-worker_js.js +1 -1
- package/lib/kernel-base_lib_worker_kernel-worker_js.js.map +1 -1
- package/lib/kernel-javascript_lib_worker_js.js +1 -1
- package/lib/kernel-javascript_lib_worker_js.js.map +1 -1
- package/lib/kernel-python3_lib_comlink-worker_js-_e7af0.js +1 -1
- package/lib/kernel-python3_lib_comlink-worker_js-_e7af0.js.map +1 -1
- package/lib/kernel-python3_lib_comlink-worker_js-_e7af1.js +1 -1
- package/lib/kernel-python3_lib_comlink-worker_js-_e7af1.js.map +1 -1
- package/lib/kernel-python3_lib_index_js.js +1 -1
- package/lib/kernel-python3_lib_index_js.js.map +1 -1
- package/package.json +13 -13
- package/lib/0.73.8/python3/repodata.json +0 -1
- /package/lib/{0.73.8 → 0.74.0}/python3/modules/extern/tutor/053e308b29fa94c9768c.png +0 -0
- /package/lib/{0.73.8 → 0.74.0}/python3/modules/extern/tutor/43557192d14bec1ce5a1.png +0 -0
- /package/lib/{0.73.8 → 0.74.0}/python3/modules/extern/tutor/62dc93aaa1f4a5ab9654.png +0 -0
- /package/lib/{0.73.8 → 0.74.0}/python3/modules/extern/tutor/a3c784d737c50501dfcd.png +0 -0
- /package/lib/{0.73.8 → 0.74.0}/python3/modules/extern/tutor/a3fa2b0f6d2467fdac56.png +0 -0
- /package/lib/{0.73.8 → 0.74.0}/python3/modules/extern/tutor/bundle.js +0 -0
- /package/lib/{0.73.8 → 0.74.0}/python3/modules/extern/tutor/bundle.js.LICENSE.txt +0 -0
- /package/lib/{0.73.8 → 0.74.0}/python3/modules/extern/tutor/bundle.js.map +0 -0
- /package/lib/{0.73.8 → 0.74.0}/python3/modules/extern/tutor/f997956ae061f27f24f5.png +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunk_basthon_browser_bundle=self.webpackChunk_basthon_browser_bundle||[]).push([["kernel-javascript_lib_worker_js"],{6973:()=>{},8660:(t,e,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,u=n&&o&&"function"==typeof o.get?o.get:null,c=n&&Map.prototype.forEach,i="function"==typeof Set&&Set.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=i&&a&&"function"==typeof a.get?a.get:null,f=i&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,y="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,s="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,b=Object.prototype.toString,h=Function.prototype.toString,v=String.prototype.match,S=String.prototype.slice,d=String.prototype.replace,m=String.prototype.toUpperCase,j=String.prototype.toLowerCase,w=RegExp.prototype.test,k=Array.prototype.concat,O=Array.prototype.join,x=Array.prototype.slice,A=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,W=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,$=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function R(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||w.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-A(-t):A(t);if(n!==t){var o=String(n),u=S.call(e,o.length+1);return d.call(o,r,"$&_")+"."+d.call(d.call(u,/([0-9]{3})/g,"$&_"),/_$/,"")}}return d.call(e,r,"$&_")}var q=r(6973),I=q.custom,N=F(I)?I:null;function P(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function B(t){return d.call(String(t),/"/g,""")}function C(t){return!("[object Array]"!==U(t)||T&&"object"==typeof t&&T in t)}function D(t){return!("[object RegExp]"!==U(t)||T&&"object"==typeof t&&T in t)}function F(t){if(M)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!E)return!1;try{return E.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,o,i){var a=n||{};if(H(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var b=!H(a,"customInspect")||a.customInspect;if("boolean"!=typeof b&&"symbol"!==b)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=a.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return G(e,a);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var w=String(e);return m?R(e,w):w}if("bigint"==typeof e){var A=String(e)+"n";return m?R(e,A):A}var W=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=W&&W>0&&"object"==typeof e)return C(e)?"[Array]":"[Object]";var I=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=O.call(Array(t.indent+1)," ")}return{base:r,prev:O.call(Array(e+1),r)}}(a,o);if(void 0===i)i=[];else if(J(i,e)>=0)return"[Circular]";function z(e,r,n){if(r&&(i=x.call(i)).push(r),n){var u={depth:a.depth};return H(a,"quoteStyle")&&(u.quoteStyle=a.quoteStyle),t(e,u,o+1,i)}return t(e,a,o+1,i)}if("function"==typeof e&&!D(e)){var K=function(t){if(t.name)return t.name;var e=v.call(h.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),tt=Z(e,z);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(tt.length>0?" { "+O.call(tt,", ")+" }":"")}if(F(e)){var et=M?d.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(e);return"object"!=typeof e||M?et:Q(et)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var rt="<"+j.call(String(e.nodeName)),nt=e.attributes||[],ot=0;ot<nt.length;ot++)rt+=" "+nt[ot].name+"="+P(B(nt[ot].value),"double",a);return rt+=">",e.childNodes&&e.childNodes.length&&(rt+="..."),rt+="</"+j.call(String(e.nodeName))+">"}if(C(e)){if(0===e.length)return"[]";var ut=Z(e,z);return I&&!function(t){for(var e=0;e<t.length;e++)if(J(t[e],"\n")>=0)return!1;return!0}(ut)?"["+Y(ut,I)+"]":"[ "+O.call(ut,", ")+" ]"}if(function(t){return!("[object Error]"!==U(t)||T&&"object"==typeof t&&T in t)}(e)){var ct=Z(e,z);return"cause"in Error.prototype||!("cause"in e)||L.call(e,"cause")?0===ct.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(ct,", ")+" }":"{ ["+String(e)+"] "+O.call(k.call("[cause]: "+z(e.cause),ct),", ")+" }"}if("object"==typeof e&&b){if(N&&"function"==typeof e[N]&&q)return q(e,{depth:W-o});if("symbol"!==b&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var it=[];return c&&c.call(e,function(t,r){it.push(z(r,e,!0)+" => "+z(t,e))}),X("Map",u.call(e),it,I)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{u.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var at=[];return f&&f.call(e,function(t){at.push(z(t,e))}),X("Set",l.call(e),at,I)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{y.call(t,y)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return V("WeakMap");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{y.call(t,y);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return V("WeakSet");if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{return s.call(t),!0}catch(t){}return!1}(e))return V("WeakRef");if(function(t){return!("[object Number]"!==U(t)||T&&"object"==typeof t&&T in t)}(e))return Q(z(Number(e)));if(function(t){if(!t||"object"!=typeof t||!_)return!1;try{return _.call(t),!0}catch(t){}return!1}(e))return Q(z(_.call(e)));if(function(t){return!("[object Boolean]"!==U(t)||T&&"object"==typeof t&&T in t)}(e))return Q(g.call(e));if(function(t){return!("[object String]"!==U(t)||T&&"object"==typeof t&&T in t)}(e))return Q(z(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===r.g)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==U(t)||T&&"object"==typeof t&&T in t)}(e)&&!D(e)){var lt=Z(e,z),ft=$?$(e)===Object.prototype:e instanceof Object||e.constructor===Object,pt=e instanceof Object?"":"null prototype",yt=!ft&&T&&Object(e)===e&&T in e?S.call(U(e),8,-1):pt?"Object":"",st=(ft||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(yt||pt?"["+O.call(k.call([],yt||[],pt||[]),": ")+"] ":"");return 0===lt.length?st+"{}":I?st+"{"+Y(lt,I)+"}":st+"{ "+O.call(lt,", ")+" }"}return String(e)};var z=Object.prototype.hasOwnProperty||function(t){return t in this};function H(t,e){return z.call(t,e)}function U(t){return b.call(t)}function J(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function G(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(S.call(t,0,e.maxStringLength),e)+n}return P(d.call(d.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",e)}function K(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+m.call(e.toString(16))}function Q(t){return"Object("+t+")"}function V(t){return t+" { ? }"}function X(t,e,r,n){return t+" ("+e+") {"+(n?Y(r,n):O.call(r,", "))+"}"}function Y(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+O.call(t,","+r)+"\n"+e.prev}function Z(t,e){var r=C(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=H(t,o)?e(t[o],t):""}var u,c="function"==typeof W?W(t):[];if(M){u={};for(var i=0;i<c.length;i++)u["$"+c[i]]=c[i]}for(var a in t)H(t,a)&&(r&&String(Number(a))===a&&a<t.length||M&&u["$"+a]instanceof Symbol||(w.call(/[^\w$]/,a)?n.push(e(a,t)+": "+e(t[a],t)):n.push(a+": "+e(t[a],t))));if("function"==typeof W)for(var l=0;l<c.length;l++)L.call(t,c[l])&&n.push("["+e(c[l])+"]: "+e(t[c[l]],t));return n}},8796:(t,e,r)=>{"use strict";r.d(e,{F:()=>g});var n=r(6330),o=r(5152),u=r(414),c=r(5309),i=r(2715),a=r(9296),l=r(5799),f=r.n(l),p=r(8660),y=r.n(p);function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}var g=function(t){function e(t){return(0,o.A)(this,e),r=this,n=e,u=[t],n=(0,i.A)(n),(0,c.A)(r,s()?Reflect.construct(n,u||[],(0,i.A)(r).constructor):n.apply(r,u));var r,n,u}return(0,a.A)(e,t),(0,u.A)(e,[{key:"language",value:function(){return"javascript"}},{key:"_init",value:(v=(0,n.A)(f().mark(function t(){return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.isLegacy()||(console.info=function(){var t;return(t=console).log.apply(t,arguments)},console.warn=function(){var t;return(t=console).error.apply(t,arguments)},globalThis.addEventListener("error",function(t){return console.error(t.toString())}));case 1:case"end":return t.stop()}},t,this)})),function(){return v.apply(this,arguments)})},{key:"_eval",value:(h=(0,n.A)(f().mark(function t(e,r){var n,o=this;return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];o.sendStdoutStream(e,r.join(" ")+"\n")},console.error=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];o.sendStderrStream(e,r.join(" ")+"\n")},t.next=1,globalThis.eval(r);case 1:return n=t.sent,t.abrupt("return",void 0===n?void 0:{"text/plain":y()(n)});case 2:case"end":return t.stop()}},t)})),function(t,e){return h.apply(this,arguments)})},{key:"legacyStart",value:(b=(0,n.A)(f().mark(function t(){return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)})),function(){return b.apply(this,arguments)})},{key:"legacyStop",value:(g=(0,n.A)(f().mark(function t(){return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)})),function(){return g.apply(this,arguments)})},{key:"putFile",value:function(t,e){console.error("File ".concat(t," not added since putFile has no mean in the JS context."))}},{key:"putModule",value:(p=(0,n.A)(f().mark(function t(e,r){var n,o,u,c;return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=new Uint8Array(r),n=e.split(".").pop(),c=n,t.next="js"===c?1:3;break;case 1:return o=new TextDecoder("utf-8"),u=o.decode(r),t.next=2,globalThis.eval(u);case 2:return t.abrupt("continue",4);case 3:throw{message:"Only '.js' files supported."};case 4:case"end":return t.stop()}},t)})),function(t,e){return p.apply(this,arguments)})},{key:"complete",value:(l=(0,n.A)(f().mark(function t(e){var r,n,o,u,c,i;return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=Object.getOwnPropertyNames(self),u=null!==(r=e.match(/(\w+)$/))&&void 0!==r?r:[],c=null!==(n=u[0])&&void 0!==n?n:"",i=o.filter(function(t){return t.startsWith(c)}),t.abrupt("return",[i,e.length-c.length]);case 1:case"end":return t.stop()}},t)})),function(t){return l.apply(this,arguments)})},{key:"more",value:(r=(0,n.A)(f().mark(function t(e){return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",!1);case 1:case"end":return t.stop()}},t)})),function(t){return r.apply(this,arguments)})}]);var r,l,p,g,b,h,v}(r(2069).fI)}}]);
|
|
1
|
+
(self.webpackChunk_basthon_browser_bundle=self.webpackChunk_basthon_browser_bundle||[]).push([["kernel-javascript_lib_worker_js"],{6973:()=>{},8660:(t,e,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,u=n&&o&&"function"==typeof o.get?o.get:null,c=n&&Map.prototype.forEach,i="function"==typeof Set&&Set.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=i&&a&&"function"==typeof a.get?a.get:null,f=i&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,y="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,s="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,b=Object.prototype.toString,h=Function.prototype.toString,v=String.prototype.match,S=String.prototype.slice,d=String.prototype.replace,m=String.prototype.toUpperCase,j=String.prototype.toLowerCase,w=RegExp.prototype.test,k=Array.prototype.concat,O=Array.prototype.join,x=Array.prototype.slice,A=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,W=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,$=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function R(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||w.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-A(-t):A(t);if(n!==t){var o=String(n),u=S.call(e,o.length+1);return d.call(o,r,"$&_")+"."+d.call(d.call(u,/([0-9]{3})/g,"$&_"),/_$/,"")}}return d.call(e,r,"$&_")}var q=r(6973),I=q.custom,N=F(I)?I:null;function P(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function B(t){return d.call(String(t),/"/g,""")}function C(t){return!("[object Array]"!==U(t)||T&&"object"==typeof t&&T in t)}function D(t){return!("[object RegExp]"!==U(t)||T&&"object"==typeof t&&T in t)}function F(t){if(M)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!E)return!1;try{return E.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,o,i){var a=n||{};if(H(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var b=!H(a,"customInspect")||a.customInspect;if("boolean"!=typeof b&&"symbol"!==b)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=a.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return G(e,a);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var w=String(e);return m?R(e,w):w}if("bigint"==typeof e){var A=String(e)+"n";return m?R(e,A):A}var W=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=W&&W>0&&"object"==typeof e)return C(e)?"[Array]":"[Object]";var I=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=O.call(Array(t.indent+1)," ")}return{base:r,prev:O.call(Array(e+1),r)}}(a,o);if(void 0===i)i=[];else if(J(i,e)>=0)return"[Circular]";function z(e,r,n){if(r&&(i=x.call(i)).push(r),n){var u={depth:a.depth};return H(a,"quoteStyle")&&(u.quoteStyle=a.quoteStyle),t(e,u,o+1,i)}return t(e,a,o+1,i)}if("function"==typeof e&&!D(e)){var K=function(t){if(t.name)return t.name;var e=v.call(h.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),tt=Z(e,z);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(tt.length>0?" { "+O.call(tt,", ")+" }":"")}if(F(e)){var et=M?d.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(e);return"object"!=typeof e||M?et:Q(et)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var rt="<"+j.call(String(e.nodeName)),nt=e.attributes||[],ot=0;ot<nt.length;ot++)rt+=" "+nt[ot].name+"="+P(B(nt[ot].value),"double",a);return rt+=">",e.childNodes&&e.childNodes.length&&(rt+="..."),rt+="</"+j.call(String(e.nodeName))+">"}if(C(e)){if(0===e.length)return"[]";var ut=Z(e,z);return I&&!function(t){for(var e=0;e<t.length;e++)if(J(t[e],"\n")>=0)return!1;return!0}(ut)?"["+Y(ut,I)+"]":"[ "+O.call(ut,", ")+" ]"}if(function(t){return!("[object Error]"!==U(t)||T&&"object"==typeof t&&T in t)}(e)){var ct=Z(e,z);return"cause"in Error.prototype||!("cause"in e)||L.call(e,"cause")?0===ct.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(ct,", ")+" }":"{ ["+String(e)+"] "+O.call(k.call("[cause]: "+z(e.cause),ct),", ")+" }"}if("object"==typeof e&&b){if(N&&"function"==typeof e[N]&&q)return q(e,{depth:W-o});if("symbol"!==b&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var it=[];return c&&c.call(e,function(t,r){it.push(z(r,e,!0)+" => "+z(t,e))}),X("Map",u.call(e),it,I)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{u.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var at=[];return f&&f.call(e,function(t){at.push(z(t,e))}),X("Set",l.call(e),at,I)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{y.call(t,y)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return V("WeakMap");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{y.call(t,y);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return V("WeakSet");if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{return s.call(t),!0}catch(t){}return!1}(e))return V("WeakRef");if(function(t){return!("[object Number]"!==U(t)||T&&"object"==typeof t&&T in t)}(e))return Q(z(Number(e)));if(function(t){if(!t||"object"!=typeof t||!_)return!1;try{return _.call(t),!0}catch(t){}return!1}(e))return Q(z(_.call(e)));if(function(t){return!("[object Boolean]"!==U(t)||T&&"object"==typeof t&&T in t)}(e))return Q(g.call(e));if(function(t){return!("[object String]"!==U(t)||T&&"object"==typeof t&&T in t)}(e))return Q(z(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===r.g)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==U(t)||T&&"object"==typeof t&&T in t)}(e)&&!D(e)){var lt=Z(e,z),ft=$?$(e)===Object.prototype:e instanceof Object||e.constructor===Object,pt=e instanceof Object?"":"null prototype",yt=!ft&&T&&Object(e)===e&&T in e?S.call(U(e),8,-1):pt?"Object":"",st=(ft||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(yt||pt?"["+O.call(k.call([],yt||[],pt||[]),": ")+"] ":"");return 0===lt.length?st+"{}":I?st+"{"+Y(lt,I)+"}":st+"{ "+O.call(lt,", ")+" }"}return String(e)};var z=Object.prototype.hasOwnProperty||function(t){return t in this};function H(t,e){return z.call(t,e)}function U(t){return b.call(t)}function J(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function G(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(S.call(t,0,e.maxStringLength),e)+n}return P(d.call(d.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",e)}function K(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+m.call(e.toString(16))}function Q(t){return"Object("+t+")"}function V(t){return t+" { ? }"}function X(t,e,r,n){return t+" ("+e+") {"+(n?Y(r,n):O.call(r,", "))+"}"}function Y(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+O.call(t,","+r)+"\n"+e.prev}function Z(t,e){var r=C(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=H(t,o)?e(t[o],t):""}var u,c="function"==typeof W?W(t):[];if(M){u={};for(var i=0;i<c.length;i++)u["$"+c[i]]=c[i]}for(var a in t)H(t,a)&&(r&&String(Number(a))===a&&a<t.length||M&&u["$"+a]instanceof Symbol||(w.call(/[^\w$]/,a)?n.push(e(a,t)+": "+e(t[a],t)):n.push(a+": "+e(t[a],t))));if("function"==typeof W)for(var l=0;l<c.length;l++)L.call(t,c[l])&&n.push("["+e(c[l])+"]: "+e(t[c[l]],t));return n}},8796:(t,e,r)=>{"use strict";r.d(e,{F:()=>g});var n=r(6330),o=r(5152),u=r(414),c=r(5309),i=r(2715),a=r(9296),l=r(5799),f=r.n(l),p=r(8660),y=r.n(p);function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}var g=function(t){function e(t){return(0,o.A)(this,e),r=this,n=e,u=[t],n=(0,i.A)(n),(0,c.A)(r,s()?Reflect.construct(n,u||[],(0,i.A)(r).constructor):n.apply(r,u));var r,n,u}return(0,a.A)(e,t),(0,u.A)(e,[{key:"language",value:function(){return"javascript"}},{key:"_init",value:(v=(0,n.A)(f().mark(function t(){return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.isLegacy()||(console.info=function(){var t;return(t=console).log.apply(t,arguments)},console.warn=function(){var t;return(t=console).error.apply(t,arguments)},globalThis.addEventListener("error",function(t){return console.error(t.toString())}));case 1:case"end":return t.stop()}},t,this)})),function(){return v.apply(this,arguments)})},{key:"_eval",value:(h=(0,n.A)(f().mark(function t(e,r){var n,o=this;return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];o.sendStdoutStream(e,r.join(" ")+"\n")},console.error=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];o.sendStderrStream(e,r.join(" ")+"\n")},t.next=1,globalThis.eval(r);case 1:return n=t.sent,t.abrupt("return",void 0===n?void 0:{"text/plain":y()(n)});case 2:case"end":return t.stop()}},t)})),function(t,e){return h.apply(this,arguments)})},{key:"legacyStart",value:(b=(0,n.A)(f().mark(function t(){return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)})),function(){return b.apply(this,arguments)})},{key:"legacyStop",value:(g=(0,n.A)(f().mark(function t(){return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)})),function(){return g.apply(this,arguments)})},{key:"putFile",value:function(t,e){console.error("File ".concat(t," not added since putFile has no mean in the JS context."))}},{key:"putModule",value:(p=(0,n.A)(f().mark(function t(e,r){var n,o,u,c;return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=e.split(".").pop(),c=n,t.next="js"===c?1:3;break;case 1:return o=new TextDecoder("utf-8"),u=o.decode(new Uint8Array(r)),t.next=2,globalThis.eval(u);case 2:return t.abrupt("continue",4);case 3:throw{message:"Only '.js' files supported."};case 4:case"end":return t.stop()}},t)})),function(t,e){return p.apply(this,arguments)})},{key:"complete",value:(l=(0,n.A)(f().mark(function t(e){var r,n,o,u,c,i;return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=Object.getOwnPropertyNames(self),u=null!==(r=e.match(/(\w+)$/))&&void 0!==r?r:[],c=null!==(n=u[0])&&void 0!==n?n:"",i=o.filter(function(t){return t.startsWith(c)}),t.abrupt("return",[i,e.length-c.length]);case 1:case"end":return t.stop()}},t)})),function(t){return l.apply(this,arguments)})},{key:"more",value:(r=(0,n.A)(f().mark(function t(e){return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",!1);case 1:case"end":return t.stop()}},t)})),function(t){return r.apply(this,arguments)})}]);var r,l,p,g,b,h,v}(r(2069).fI)}}]);
|
|
2
2
|
//# sourceMappingURL=kernel-javascript_lib_worker_js.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kernel-javascript_lib_worker_js.js","mappings":"8JAAA,IAAIA,EAAwB,mBAARC,KAAsBA,IAAIC,UAC1CC,EAAoBC,OAAOC,0BAA4BL,EAASI,OAAOC,yBAAyBJ,IAAIC,UAAW,QAAU,KACzHI,EAAUN,GAAUG,GAAsD,mBAA1BA,EAAkBI,IAAqBJ,EAAkBI,IAAM,KAC/GC,EAAaR,GAAUC,IAAIC,UAAUO,QACrCC,EAAwB,m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AC,OAAKA,EAAEC,WAAWP,EAAK,GAACE,EAAApC,OAAA,SAC/C,CAACmC,EAAShD,EAAK1I,OAASyL,EAAKzL,SAAO,wBAAA2L,EAAArD,OAAA,EAAA8C,EAAA,IAC9C,SAPaa,GAAA,OAAAd,EAAApD,MAAC,KAADC,UAAA,KAAA1D,IAAA,OAAA/B,OAAA2J,GAAA7E,EAAAA,EAAAA,GAAAC,IAAAA,KAQd,SAAA6E,EAAWzD,GAAI,OAAApB,IAAAA,KAAA,SAAA8E,GAAA,cAAAA,EAAAjK,KAAAiK,EAAA3E,MAAA,cAAA2E,EAAA7C,OAAA,UACJ,GAAK,wBAAA6C,EAAA9D,OAAA,EAAA6D,EAAA,IACf,SAFSE,GAAA,OAAAH,EAAAnE,MAAC,KAADC,UAAA,MARI,IAAAkE,EAbCf,EADdf,EANDL,EAJAH,EAnBWrB,EAHXnB,CAsDU,CA9DqB,C,QAASkF,G","sources":["webpack://@basthon/browser-bundle/../../node_modules/object-inspect/index.js","webpack://@basthon/browser-bundle/../kernel-javascript/lib/worker.js"],"sourcesContent":["var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n ? Symbol.toStringTag\n : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nfunction addNumericSeparator(num, str) {\n if (\n num === Infinity\n || num === -Infinity\n || num !== num\n || (num && num > -1000 && num < 1000)\n || $test.call(/e/, str)\n ) {\n return str;\n }\n var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n if (typeof num === 'number') {\n var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n if (int !== num) {\n var intStr = String(int);\n var dec = $slice.call(str, intStr.length + 1);\n return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n }\n }\n return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = require('./util.inspect');\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n }\n var numericSeparator = opts.numericSeparator;\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n var str = String(obj);\n return numericSeparator ? addNumericSeparator(obj, str) : str;\n }\n if (typeof obj === 'bigint') {\n var bigIntStr = String(obj) + 'n';\n return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = $arrSlice.call(seen);\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + $toLowerCase.call(String(obj.nodeName));\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + $join.call(xs, ', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n }\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n return utilInspect(obj, { depth: maxDepth - depth });\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n if (mapForEach) {\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n }\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n if (setForEach) {\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n }\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other\n /* eslint-env browser */\n if (typeof window !== 'undefined' && obj === window) {\n return '{ [object Window] }';\n }\n if (obj === global) {\n return '{ [object globalThis] }';\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + $join.call(ys, ', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return $replace.call(String(s), /\"/g, '"');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n }\n // eslint-disable-next-line no-control-regex\n var s = $replace.call($replace.call(str, /(['\\\\])/g, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = $join.call(Array(opts.indent + 1), ' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: $join.call(Array(depth + 1), baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ($test.call(/[^\\w$]/, key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n","import objectInspect from \"object-inspect\";\nimport { KernelWorkerBase } from \"@basthon/kernel-base/worker\";\nexport class JavaScriptKernelWorker extends KernelWorkerBase {\n constructor(options) {\n // do not forget to call the parent constructor\n super(options);\n }\n language() {\n return \"javascript\";\n }\n /*\n * Initialize the kernel.\n */\n async _init() {\n if (!this.isLegacy()) {\n console.info = (...args) => console.log(...args);\n console.warn = (...args) => console.error(...args);\n globalThis.addEventListener(\"error\", (e) => console.error(e.toString()));\n }\n }\n async _eval(data, code) {\n console.log = (...args) => {\n this.sendStdoutStream(data, args.join(\" \") + \"\\n\");\n };\n console.error = (...args) => {\n this.sendStderrStream(data, args.join(\" \") + \"\\n\");\n };\n const result = await globalThis.eval(code); // if a promise is returned, wait for it\n return typeof result === \"undefined\"\n ? undefined\n : { \"text/plain\": objectInspect(result) };\n }\n /**\n * Special case of starting a legacy kernel.\n */\n async legacyStart() { }\n /**\n * Special case of stoping a legacy kernel.\n */\n async legacyStop() { }\n putFile(filename, content) {\n console.error(`File ${filename} not added since putFile has no mean in the JS context.`);\n }\n async putModule(filename, content) {\n content = new Uint8Array(content);\n const ext = filename.split(\".\").pop();\n switch (ext) {\n case \"js\":\n const decoder = new TextDecoder(\"utf-8\");\n const _content = decoder.decode(content);\n await globalThis.eval(_content);\n break;\n default:\n throw { message: \"Only '.js' files supported.\" };\n }\n }\n async complete(code) {\n // basic completion based on global object\n const vars = Object.getOwnPropertyNames(self);\n const words = code.match(/(\\w+)$/) ?? [];\n const word = words[0] ?? \"\";\n const matches = vars.filter((v) => v.startsWith(word));\n return [matches, code.length - word.length];\n }\n async more(code) {\n return false;\n }\n}\n"],"names":["hasMap","Map","prototype","mapSizeDescriptor","Object","getOwnPropertyDescriptor","mapSize","get","mapForEach","forEach","hasSet","Set","setSizeDescriptor","setSize","setForEach","weakMapHas","WeakMap","has","weakSetHas","WeakSet","weakRefDeref","WeakRef","deref","booleanValueOf","Boolean","valueOf","objectToString","toString","functionToString","Function","$match","String","match","$slice","slice","$replace","replace","$toUpperCase","toUpperCase","$toLowerCase","toLowerCase","$test","RegExp","test","$concat","Array","concat","$join","join","$arrSlice","$floor","Math","floor","bigIntValueOf","BigInt","gOPS","getOwnPropertySymbols","symToString","Symbol","iterator","hasShammedSymbols","toStringTag","isEnumerable","propertyIsEnumerable","gPO","Reflect","getPrototypeOf","__proto__","O","addNumericSeparator","num","str","Infinity","call","sepRegex","int","intStr","dec","length","utilInspect","inspectCustom","custom","inspectSymbol","isSymbol","wrapQuotes","s","defaultStyle","opts","quoteChar","quoteStyle","quote","isArray","obj","toStr","isRegExp","e","module","exports","inspect_","options","depth","seen","TypeError","maxStringLength","customInspect","indent","parseInt","numericSeparator","inspectString","bigIntStr","maxDepth","baseIndent","base","prev","getIndent","indexOf","inspect","value","from","noIndent","push","newOpts","name","f","m","nameOf","keys","arrObjKeys","symString","markBoxed","x","HTMLElement","nodeName","getAttribute","isElement","attrs","attributes","i","childNodes","xs","singleLineValues","indentedJoin","isError","parts","Error","cause","isMap","mapParts","key","collectionOf","isSet","setParts","isWeakMap","weakCollectionOf","isWeakSet","isWeakRef","isNumber","Number","isBigInt","isBoolean","isString","window","g","isDate","ys","isPlainObject","constructor","protoTag","stringTag","tag","hasOwn","hasOwnProperty","this","l","remaining","trailer","lowbyte","c","n","charCodeAt","type","size","entries","lineJoiner","isArr","symMap","syms","k","j","JavaScriptKernelWorker","_KernelWorkerBase","_classCallCheck","_inherits","_createClass","_init2","_asyncToGenerator","_regeneratorRuntime","_callee","_context","next","isLegacy","console","info","_console","log","apply","arguments","warn","_console2","error","globalThis","addEventListener","stop","_eval2","_callee2","data","code","result","_this","_context2","_len","args","_key","sendStdoutStream","_len2","_key2","sendStderrStream","eval","sent","abrupt","undefined","objectInspect","_x","_x2","_legacyStart","_callee3","_context3","_legacyStop","_callee4","_context4","filename","content","_putModule","_callee5","ext","decoder","_content","_t","_context5","Uint8Array","split","pop","TextDecoder","decode","message","_x3","_x4","_complete","_callee6","_code$match","_words$","vars","words","word","matches","_context6","getOwnPropertyNames","self","filter","v","startsWith","_x5","_more","_callee7","_context7","_x6","KernelWorkerBase"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"kernel-javascript_lib_worker_js.js","mappings":"8JAAA,IAAIA,EAAwB,mBAARC,KAAsBA,IAAI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,oBAAoBC,MAClCL,EAA4B,QAAvBH,EAAG3C,EAAKxL,MAAM,iBAAS,IAAAmO,EAAAA,EAAI,GAChCI,EAAe,QAAXH,EAAGE,EAAM,UAAE,IAAAF,EAAAA,EAAI,GACnBI,EAAUH,EAAKO,OAAO,SAACC,GAAC,OAAKA,EAAEC,WAAWP,EAAK,GAACE,EAAApC,OAAA,SAC/C,CAACmC,EAAShD,EAAK1I,OAASyL,EAAKzL,SAAO,wBAAA2L,EAAArD,OAAA,EAAA8C,EAAA,IAC9C,SAPaa,GAAA,OAAAd,EAAApD,MAAC,KAADC,UAAA,KAAA1D,IAAA,OAAA/B,OAAA2J,GAAA7E,EAAAA,EAAAA,GAAAC,IAAAA,KAQd,SAAA6E,EAAWzD,GAAI,OAAApB,IAAAA,KAAA,SAAA8E,GAAA,cAAAA,EAAAjK,KAAAiK,EAAA3E,MAAA,cAAA2E,EAAA7C,OAAA,UACJ,GAAK,wBAAA6C,EAAA9D,OAAA,EAAA6D,EAAA,IACf,SAFSE,GAAA,OAAAH,EAAAnE,MAAC,KAADC,UAAA,MARI,IAAAkE,EAZCf,EADdf,EANDL,EAJAH,EAnBWrB,EAHXnB,CAqDU,CA7DqB,C,QAASkF,G","sources":["webpack://@basthon/browser-bundle/../../node_modules/object-inspect/index.js","webpack://@basthon/browser-bundle/../kernel-javascript/lib/worker.js"],"sourcesContent":["var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n ? Symbol.toStringTag\n : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nfunction addNumericSeparator(num, str) {\n if (\n num === Infinity\n || num === -Infinity\n || num !== num\n || (num && num > -1000 && num < 1000)\n || $test.call(/e/, str)\n ) {\n return str;\n }\n var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n if (typeof num === 'number') {\n var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n if (int !== num) {\n var intStr = String(int);\n var dec = $slice.call(str, intStr.length + 1);\n return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n }\n }\n return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = require('./util.inspect');\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n }\n var numericSeparator = opts.numericSeparator;\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n var str = String(obj);\n return numericSeparator ? addNumericSeparator(obj, str) : str;\n }\n if (typeof obj === 'bigint') {\n var bigIntStr = String(obj) + 'n';\n return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = $arrSlice.call(seen);\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + $toLowerCase.call(String(obj.nodeName));\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + $join.call(xs, ', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n }\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n return utilInspect(obj, { depth: maxDepth - depth });\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n if (mapForEach) {\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n }\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n if (setForEach) {\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n }\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other\n /* eslint-env browser */\n if (typeof window !== 'undefined' && obj === window) {\n return '{ [object Window] }';\n }\n if (obj === global) {\n return '{ [object globalThis] }';\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + $join.call(ys, ', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return $replace.call(String(s), /\"/g, '"');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n }\n // eslint-disable-next-line no-control-regex\n var s = $replace.call($replace.call(str, /(['\\\\])/g, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = $join.call(Array(opts.indent + 1), ' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: $join.call(Array(depth + 1), baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ($test.call(/[^\\w$]/, key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n","import objectInspect from \"object-inspect\";\nimport { KernelWorkerBase } from \"@basthon/kernel-base/worker\";\nexport class JavaScriptKernelWorker extends KernelWorkerBase {\n constructor(options) {\n // do not forget to call the parent constructor\n super(options);\n }\n language() {\n return \"javascript\";\n }\n /*\n * Initialize the kernel.\n */\n async _init() {\n if (!this.isLegacy()) {\n console.info = (...args) => console.log(...args);\n console.warn = (...args) => console.error(...args);\n globalThis.addEventListener(\"error\", (e) => console.error(e.toString()));\n }\n }\n async _eval(data, code) {\n console.log = (...args) => {\n this.sendStdoutStream(data, args.join(\" \") + \"\\n\");\n };\n console.error = (...args) => {\n this.sendStderrStream(data, args.join(\" \") + \"\\n\");\n };\n const result = await globalThis.eval(code); // if a promise is returned, wait for it\n return typeof result === \"undefined\"\n ? undefined\n : { \"text/plain\": objectInspect(result) };\n }\n /**\n * Special case of starting a legacy kernel.\n */\n async legacyStart() { }\n /**\n * Special case of stoping a legacy kernel.\n */\n async legacyStop() { }\n putFile(filename, content) {\n console.error(`File ${filename} not added since putFile has no mean in the JS context.`);\n }\n async putModule(filename, content) {\n const ext = filename.split(\".\").pop();\n switch (ext) {\n case \"js\":\n const decoder = new TextDecoder(\"utf-8\");\n const _content = decoder.decode(new Uint8Array(content));\n await globalThis.eval(_content);\n break;\n default:\n throw { message: \"Only '.js' files supported.\" };\n }\n }\n async complete(code) {\n // basic completion based on global object\n const vars = Object.getOwnPropertyNames(self);\n const words = code.match(/(\\w+)$/) ?? [];\n const word = words[0] ?? \"\";\n const matches = vars.filter((v) => v.startsWith(word));\n return [matches, code.length - word.length];\n }\n async more(code) {\n return false;\n }\n}\n"],"names":["hasMap","Map","prototype","mapSizeDescriptor","Object","getOwnPropertyDescriptor","mapSize","get","mapForEach","forEach","hasSet","Set","setSizeDescriptor","setSize","setForEach","weakMapHas","WeakMap","has","weakSetHas","WeakSet","weakRefDeref","WeakRef","deref","booleanValueOf","Boolean","valueOf","objectToString","toString","functionToString","Function","$match","String","match","$slice","slice","$replace","replace","$toUpperCase","toUpperCase","$toLowerCase","toLowerCase","$test","RegExp","test","$concat","Array","concat","$join","join","$arrSlice","$floor","Math","floor","bigIntValueOf","BigInt","gOPS","getOwnPropertySymbols","symToString","Symbol","iterator","hasShammedSymbols","toStringTag","isEnumerable","propertyIsEnumerable","gPO","Reflect","getPrototypeOf","__proto__","O","addNumericSeparator","num","str","Infinity","call","sepRegex","int","intStr","dec","length","utilInspect","inspectCustom","custom","inspectSymbol","isSymbol","wrapQuotes","s","defaultStyle","opts","quoteChar","quoteStyle","quote","isArray","obj","toStr","isRegExp","e","module","exports","inspect_","options","depth","seen","TypeError","maxStringLength","customInspect","indent","parseInt","numericSeparator","inspectString","bigIntStr","maxDepth","baseIndent","base","prev","getIndent","indexOf","inspect","value","from","noIndent","push","newOpts","name","f","m","nameOf","keys","arrObjKeys","symString","markBoxed","x","HTMLElement","nodeName","getAttribute","isElement","attrs","attributes","i","childNodes","xs","singleLineValues","indentedJoin","isError","parts","Error","cause","isMap","mapParts","key","collectionOf","isSet","setParts","isWeakMap","weakCollectionOf","isWeakSet","isWeakRef","isNumber","Number","isBigInt","isBoolean","isString","window","g","isDate","ys","isPlainObject","constructor","protoTag","stringTag","tag","hasOwn","hasOwnProperty","this","l","remaining","trailer","lowbyte","c","n","charCodeAt","type","size","entries","lineJoiner","isArr","symMap","syms","k","j","JavaScriptKernelWorker","_KernelWorkerBase","_classCallCheck","_inherits","_createClass","_init2","_asyncToGenerator","_regeneratorRuntime","_callee","_context","next","isLegacy","console","info","_console","log","apply","arguments","warn","_console2","error","globalThis","addEventListener","stop","_eval2","_callee2","data","code","result","_this","_context2","_len","args","_key","sendStdoutStream","_len2","_key2","sendStderrStream","eval","sent","abrupt","undefined","objectInspect","_x","_x2","_legacyStart","_callee3","_context3","_legacyStop","_callee4","_context4","filename","content","_putModule","_callee5","ext","decoder","_content","_t","_context5","split","pop","TextDecoder","decode","Uint8Array","message","_x3","_x4","_complete","_callee6","_code$match","_words$","vars","words","word","matches","_context6","getOwnPropertyNames","self","filter","v","startsWith","_x5","_more","_callee7","_context7","_x6","KernelWorkerBase"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var e,r,t,n,o={2069:(e,r,t)=>{t.d(r,{fI:()=>n.f,k0:()=>o.k0,p:()=>o.p});t(1428);var n=t(5607),o=t(6743)},4499:(e,r,t)=>{var n=t(2069),o=t(6330),a=t(5152),s=t(414),i=t(5309),u=t(2715),c=t(9296),l=t(5799),p=t.n(l);function f(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return d(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){i=!0,a=e},f:function(){try{s||null==t.return||t.return()}finally{if(i)throw a}}}}function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}var h=function(e){function r(e){var t,n,o,s,c;return(0,a.A)(this,r),o=this,s=r,c=[e],s=(0,u.A)(s),(n=(0,i.A)(o,_()?Reflect.construct(s,c||[],(0,u.A)(o).constructor):s.apply(o,c)))._pyodideURLs=["https://pyodide.basthon.fr/{PYODIDE_VERSION}/full/pyodide/pyodide.js","https://cdn.jsdelivr.net/pyodide/v{PYODIDE_VERSION}/full/pyodide.js"],n.__kernel__=null,n.pythonVersion="",n._pyodideURLs.unshift("".concat(n.basthonRoot(),"/pyodide/pyodide.js")),n._pyodideURLs=null!==(t=null==e?void 0:e.pyodideURLs)&&void 0!==t?t:n._pyodideURLs,n}return(0,c.A)(r,e),(0,s.A)(r,[{key:"language",value:function(){return"python3"}},{key:"basthonModulesRoot",value:function(){return this.basthonRoot()+"/modules"}},{key:"_onload",value:(j=(0,o.A)(p().mark(function e(){var r,t,n,o,a,s;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=self.pyodide,t=r._api.repodata_packages,n=0,o=Object.keys(t);n<o.length;n++)a=o[n],(s=t[a]).file_name=s.file_name.replace("{basthonRoot}",this.basthonRoot());return this.pythonVersion=r.runPython("import platform ; platform.python_version()"),e.next=1,r.loadPackage("basthon");case 1:this.__kernel__=r.pyimport("basthon").__kernel__,this.__kernel__.start();case 2:case"end":return e.stop()}},e,this)})),function(){return j.apply(this,arguments)})},{key:"_init",value:(x=(0,o.A)(p().mark(function e(){var r,t,o,a,s,i,u;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=this._pyodideURLs[0],t=f(this._pyodideURLs),e.prev=1,t.s();case 2:if((o=t.n()).done){e.next=8;break}return a=(a=o.value).replace("{PYODIDE_VERSION}","0.23.2"),e.prev=3,e.next=4,fetch(a,{method:"HEAD"});case 4:if(!e.sent.ok){e.next=5;break}return r=a,e.abrupt("continue",8);case 5:e.next=7;break;case 6:e.prev=6,e.catch(3);case 7:e.next=2;break;case 8:e.next=10;break;case 9:e.prev=9,s=e.catch(1),t.e(s);case 10:return e.prev=10,t.f(),e.finish(10);case 11:return e.prev=11,e.next=12,(0,n.k0)(r);case 12:e.next=14;break;case 13:throw e.prev=13,i=e.catch(11),console.log(i),console.error("Can't load pyodide.js"),i;case 14:if(null!=self.loadPyodide){e.next=15;break}throw console.log("self.loadPyodide is null!"),new Error("Can't load pyodide.js");case 15:return e.prev=15,e.next=16,self.loadPyodide({lockFileURL:this.basthonRoot()+"/repodata.json"});case 16:self.pyodide=e.sent,e.next=18;break;case 17:throw e.prev=17,u=e.catch(15),console.log(u),console.error("Can't load Python from Pyodide"),u;case 18:return e.next=19,this._onload();case 19:case"end":return e.stop()}},e,this,[[1,9,10,11],[3,6],[11,13],[15,17]])})),function(){return x.apply(this,arguments)})},{key:"execution_count",get:function(){return this.__kernel__.execution_count()}},{key:"_eval",value:(g=(0,o.A)(p().mark(function e(r,t){var n,o,a,s,i=this;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=function(e){return i.sendStdoutStream(r,e)},o=function(e){return i.sendStderrStream(r,e)},e.next=1,this.__kernel__.eval(t,n,o,r);case 1:if((a=e.sent)instanceof self.pyodide.ffi.PyProxy){e.next=2;break}throw a;case 2:return s=a.toJs({create_proxies:!1,dict_converter:Object.fromEntries}),a.destroy(),e.abrupt("return",s[0]);case 3:case"end":return e.stop()}},e,this)})),function(e,r){return g.apply(this,arguments)})},{key:"legacyStart",value:(w=(0,o.A)(p().mark(function e(){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.__kernel__.start();case 1:case"end":return e.stop()}},e,this)})),function(){return w.apply(this,arguments)})},{key:"legacyStop",value:(m=(0,o.A)(p().mark(function e(){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.__kernel__.stop();case 1:case"end":return e.stop()}},e,this)})),function(){return m.apply(this,arguments)})},{key:"complete",value:(b=(0,o.A)(p().mark(function e(r){var t,n;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((t=this.__kernel__.complete(r))instanceof self.pyodide.ffi.PyProxy){e.next=1;break}return e.abrupt("return",t);case 1:return n=t.toJs(),t.destroy(),e.abrupt("return",n);case 2:case"end":return e.stop()}},e,this)})),function(e){return b.apply(this,arguments)})},{key:"more",value:(k=(0,o.A)(p().mark(function e(r){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.__kernel__.more(r));case 1:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)})},{key:"readdir",value:function(e){return self.pyodide._module.FS.readdir(e)}},{key:"chdir",value:function(e){self.pyodide._module.FS.chdir(e)}},{key:"mkdir",value:function(e){self.pyodide._module.FS.mkdir(e)}},{key:"putFile",value:(v=(0,o.A)(p().mark(function e(r,t){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.__kernel__.put_file(r,t);case 1:case"end":return e.stop()}},e,this)})),function(e,r){return v.apply(this,arguments)})},{key:"getFile",value:(y=(0,o.A)(p().mark(function e(r){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.__kernel__.get_file(r).toJs());case 1:case"end":return e.stop()}},e,this)})),function(e){return y.apply(this,arguments)})},{key:"putModule",value:(h=(0,o.A)(p().mark(function e(r,t){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,this.__kernel__.put_module(r,t);case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e,this)})),function(e,r){return h.apply(this,arguments)})},{key:"getUserModuleFile",value:(d=(0,o.A)(p().mark(function e(r){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.__kernel__.get_user_module_file(r).toJs());case 1:case"end":return e.stop()}},e,this)})),function(e){return d.apply(this,arguments)})},{key:"userModules",value:(l=(0,o.A)(p().mark(function e(){var r,t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=this.__kernel__.user_modules())instanceof self.pyodide.ffi.PyProxy){e.next=1;break}return e.abrupt("return",r);case 1:return t=r.toJs(),r.destroy(),e.abrupt("return",t);case 2:case"end":return e.stop()}},e,this)})),function(){return l.apply(this,arguments)})},{key:"displayMatplotlibIFrame",value:(t=(0,o.A)(p().mark(function e(r){var t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(t=this.displayKernelIFrame(r)).onmessage=function(e){console.log("Kernel Worker says: 'Message received from iframe: "+e.data+"'"),t.postMessage("hello from kernel worker")};case 1:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})}]);var t,l,d,h,y,v,k,b,m,w,g,x,j}(n.fI);(0,n.p)(h)}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={exports:{}};return o[e].call(t.exports,t,t.exports,s),t.exports}s.m=o,s.x=()=>{var e=s.O(void 0,["vendors-node_modules_promise-delegate_dist_es_PromiseDelegate_js-node_modules_babel_runtime_r-2b2010","kernel-base_lib_worker_kernel-worker_js","kernel-base_lib_worker_kernel-main_js"],()=>s(4499));return e=s.O(e)},e=[],s.O=(r,t,n,o)=>{if(!t){var a=1/0;for(l=0;l<e.length;l++){for(var[t,n,o]=e[l],i=!0,u=0;u<t.length;u++)(!1&o||a>=o)&&Object.keys(s.O).every(e=>s.O[e](t[u]))?t.splice(u--,1):(i=!1,o<a&&(a=o));if(i){e.splice(l--,1);var c=n();void 0!==c&&(r=c)}}return r}o=o||0;for(var l=e.length;l>0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[t,n,o]},s.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return s.d(r,{a:r}),r},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var a={};r=r||[null,t({}),t([]),t(t)];for(var i=2&n&&e;("object"==typeof i||"function"==typeof i)&&!~r.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(r=>a[r]=()=>e[r]);return a.default=()=>e,s.d(o,a),o},s.d=(e,r)=>{for(var t in r)s.o(r,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((r,t)=>(s.f[t](e,r),r),[])),s.u=e=>e+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var r=s.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{s.b=self.location+"";var e={"kernel-python3_lib_comlink-worker_js-_e7af0":1,"kernel-python3_lib_comlink-worker_js-_e7af1":1};s.f.i=(r,t)=>{e[r]||importScripts(s.p+s.u(r))};var r=self.webpackChunk_basthon_browser_bundle=self.webpackChunk_basthon_browser_bundle||[],t=r.push.bind(r);r.push=r=>{var[n,o,a]=r;for(var i in o)s.o(o,i)&&(s.m[i]=o[i]);for(a&&a(s);n.length;)e[n.pop()]=1;t(r)}})(),n=s.x,s.x=()=>Promise.all(["vendors-node_modules_promise-delegate_dist_es_PromiseDelegate_js-node_modules_babel_runtime_r-2b2010","kernel-base_lib_worker_kernel-worker_js","kernel-base_lib_worker_kernel-main_js"].map(s.e,s)).then(n);s.x()})();
|
|
1
|
+
(()=>{"use strict";var e,r,t,n,o={2069:(e,r,t)=>{t.d(r,{fI:()=>n.f,k0:()=>o.k0,p:()=>o.p});t(1428);var n=t(5607),o=t(6743)},4499:(e,r,t)=>{var n=t(2069),o=t(6330),a=t(5152),s=t(414),i=t(5309),u=t(2715),c=t(9296),l=t(5799),p=t.n(l);function f(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return d(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){i=!0,a=e},f:function(){try{s||null==t.return||t.return()}finally{if(i)throw a}}}}function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}var h=function(e){function r(e){var t,n,o,s,c;return(0,a.A)(this,r),o=this,s=r,c=[e],s=(0,u.A)(s),(n=(0,i.A)(o,_()?Reflect.construct(s,c||[],(0,u.A)(o).constructor):s.apply(o,c)))._pyodideURLs=["https://pyodide.basthon.fr/{PYODIDE_VERSION}/full/pyodide/pyodide.js","https://cdn.jsdelivr.net/pyodide/v{PYODIDE_VERSION}/full/pyodide.js"],n.__kernel__=null,n.pythonVersion="",n._pyodideURLs.unshift("".concat(n.basthonRoot(),"/pyodide/pyodide.js")),n._pyodideURLs=null!==(t=null==e?void 0:e.pyodideURLs)&&void 0!==t?t:n._pyodideURLs,n}return(0,c.A)(r,e),(0,s.A)(r,[{key:"language",value:function(){return"python3"}},{key:"basthonModulesRoot",value:function(){return this.basthonRoot()+"/modules"}},{key:"_onload",value:(j=(0,o.A)(p().mark(function e(){var r,t,n,o,a,s;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=self.pyodide,t=r._api.lockfile_packages,n=0,o=Object.keys(t);n<o.length;n++)a=o[n],(s=t[a]).file_name=s.file_name.replace("{basthonRoot}",this.basthonRoot());return this.pythonVersion=r.runPython("import platform ; platform.python_version()"),e.next=1,r.loadPackage("basthon");case 1:this.__kernel__=r.pyimport("basthon").__kernel__,this.__kernel__.start();case 2:case"end":return e.stop()}},e,this)})),function(){return j.apply(this,arguments)})},{key:"_init",value:(x=(0,o.A)(p().mark(function e(){var r,t,o,a,s,i,u;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=this._pyodideURLs[0],t=f(this._pyodideURLs),e.prev=1,t.s();case 2:if((o=t.n()).done){e.next=8;break}return a=(a=o.value).replace("{PYODIDE_VERSION}","0.24.1"),e.prev=3,e.next=4,fetch(a,{method:"HEAD"});case 4:if(!e.sent.ok){e.next=5;break}return r=a,e.abrupt("continue",8);case 5:e.next=7;break;case 6:e.prev=6,e.catch(3);case 7:e.next=2;break;case 8:e.next=10;break;case 9:e.prev=9,s=e.catch(1),t.e(s);case 10:return e.prev=10,t.f(),e.finish(10);case 11:return e.prev=11,e.next=12,(0,n.k0)(r);case 12:e.next=14;break;case 13:throw e.prev=13,i=e.catch(11),console.log(i),console.error("Can't load pyodide.js"),i;case 14:if(null!=self.loadPyodide){e.next=15;break}throw console.log("self.loadPyodide is null!"),new Error("Can't load pyodide.js");case 15:return e.prev=15,e.next=16,self.loadPyodide({lockFileURL:this.basthonRoot()+"/pyodide-lock.json"});case 16:self.pyodide=e.sent,e.next=18;break;case 17:throw e.prev=17,u=e.catch(15),console.log(u),console.error("Can't load Python from Pyodide"),u;case 18:return e.next=19,this._onload();case 19:case"end":return e.stop()}},e,this,[[1,9,10,11],[3,6],[11,13],[15,17]])})),function(){return x.apply(this,arguments)})},{key:"execution_count",get:function(){return this.__kernel__.execution_count()}},{key:"_eval",value:(g=(0,o.A)(p().mark(function e(r,t){var n,o,a,s,i=this;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=function(e){return i.sendStdoutStream(r,e)},o=function(e){return i.sendStderrStream(r,e)},e.next=1,this.__kernel__.eval(t,n,o,r);case 1:if((a=e.sent)instanceof self.pyodide.ffi.PyProxy){e.next=2;break}throw a;case 2:return s=a.toJs({create_proxies:!1,dict_converter:Object.fromEntries}),a.destroy(),e.abrupt("return",s[0]);case 3:case"end":return e.stop()}},e,this)})),function(e,r){return g.apply(this,arguments)})},{key:"legacyStart",value:(w=(0,o.A)(p().mark(function e(){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.__kernel__.start();case 1:case"end":return e.stop()}},e,this)})),function(){return w.apply(this,arguments)})},{key:"legacyStop",value:(m=(0,o.A)(p().mark(function e(){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.__kernel__.stop();case 1:case"end":return e.stop()}},e,this)})),function(){return m.apply(this,arguments)})},{key:"complete",value:(b=(0,o.A)(p().mark(function e(r){var t,n;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((t=this.__kernel__.complete(r))instanceof self.pyodide.ffi.PyProxy){e.next=1;break}return e.abrupt("return",t);case 1:return n=t.toJs(),t.destroy(),e.abrupt("return",n);case 2:case"end":return e.stop()}},e,this)})),function(e){return b.apply(this,arguments)})},{key:"more",value:(k=(0,o.A)(p().mark(function e(r){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.__kernel__.more(r));case 1:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)})},{key:"readdir",value:function(e){return self.pyodide._module.FS.readdir(e)}},{key:"chdir",value:function(e){self.pyodide._module.FS.chdir(e)}},{key:"mkdir",value:function(e){self.pyodide._module.FS.mkdir(e)}},{key:"putFile",value:(v=(0,o.A)(p().mark(function e(r,t){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.__kernel__.put_file(r,t);case 1:case"end":return e.stop()}},e,this)})),function(e,r){return v.apply(this,arguments)})},{key:"getFile",value:(y=(0,o.A)(p().mark(function e(r){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.__kernel__.get_file(r).toJs());case 1:case"end":return e.stop()}},e,this)})),function(e){return y.apply(this,arguments)})},{key:"putModule",value:(h=(0,o.A)(p().mark(function e(r,t){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,this.__kernel__.put_module(r,t);case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e,this)})),function(e,r){return h.apply(this,arguments)})},{key:"getUserModuleFile",value:(d=(0,o.A)(p().mark(function e(r){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.__kernel__.get_user_module_file(r).toJs());case 1:case"end":return e.stop()}},e,this)})),function(e){return d.apply(this,arguments)})},{key:"userModules",value:(l=(0,o.A)(p().mark(function e(){var r,t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=this.__kernel__.user_modules())instanceof self.pyodide.ffi.PyProxy){e.next=1;break}return e.abrupt("return",r);case 1:return t=r.toJs(),r.destroy(),e.abrupt("return",t);case 2:case"end":return e.stop()}},e,this)})),function(){return l.apply(this,arguments)})},{key:"displayMatplotlibIFrame",value:(t=(0,o.A)(p().mark(function e(r){var t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(t=this.displayKernelIFrame(r)).onmessage=function(e){console.log("Kernel Worker says: 'Message received from iframe: "+e.data+"'"),t.postMessage("hello from kernel worker")};case 1:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})}]);var t,l,d,h,y,v,k,b,m,w,g,x,j}(n.fI);(0,n.p)(h)}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={exports:{}};return o[e].call(t.exports,t,t.exports,s),t.exports}s.m=o,s.x=()=>{var e=s.O(void 0,["vendors-node_modules_promise-delegate_dist_es_PromiseDelegate_js-node_modules_babel_runtime_r-2b2010","kernel-base_lib_worker_kernel-worker_js","kernel-base_lib_worker_kernel-main_js"],()=>s(4499));return e=s.O(e)},e=[],s.O=(r,t,n,o)=>{if(!t){var a=1/0;for(l=0;l<e.length;l++){for(var[t,n,o]=e[l],i=!0,u=0;u<t.length;u++)(!1&o||a>=o)&&Object.keys(s.O).every(e=>s.O[e](t[u]))?t.splice(u--,1):(i=!1,o<a&&(a=o));if(i){e.splice(l--,1);var c=n();void 0!==c&&(r=c)}}return r}o=o||0;for(var l=e.length;l>0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[t,n,o]},s.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return s.d(r,{a:r}),r},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var a={};r=r||[null,t({}),t([]),t(t)];for(var i=2&n&&e;("object"==typeof i||"function"==typeof i)&&!~r.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(r=>a[r]=()=>e[r]);return a.default=()=>e,s.d(o,a),o},s.d=(e,r)=>{for(var t in r)s.o(r,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((r,t)=>(s.f[t](e,r),r),[])),s.u=e=>e+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var r=s.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{s.b=self.location+"";var e={"kernel-python3_lib_comlink-worker_js-_e7af0":1,"kernel-python3_lib_comlink-worker_js-_e7af1":1};s.f.i=(r,t)=>{e[r]||importScripts(s.p+s.u(r))};var r=self.webpackChunk_basthon_browser_bundle=self.webpackChunk_basthon_browser_bundle||[],t=r.push.bind(r);r.push=r=>{var[n,o,a]=r;for(var i in o)s.o(o,i)&&(s.m[i]=o[i]);for(a&&a(s);n.length;)e[n.pop()]=1;t(r)}})(),n=s.x,s.x=()=>Promise.all(["vendors-node_modules_promise-delegate_dist_es_PromiseDelegate_js-node_modules_babel_runtime_r-2b2010","kernel-base_lib_worker_kernel-worker_js","kernel-base_lib_worker_kernel-main_js"].map(s.e,s)).then(n);s.x()})();
|
|
2
2
|
//# sourceMappingURL=kernel-python3_lib_comlink-worker_js-_e7af0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kernel-python3_lib_comlink-worker_js-_e7af0.js","mappings":"uBAAIA,ECCAC,EADAC,ECAAC,E,40CCCJ,IACaC,EAAmB,SAAAC,GAC5B,SAAAD,EAAYE,GAAS,IAAAC,EAAAC,E,MAc6C,OAd7CC,EAAAA,EAAAA,GAAA,KAAAL,G,EAEjB,K,EAAAA,E,EAAA,CAAME,G,cAANE,G,8EAIKE,aAAe,CAAC,uEAAD,uEAIpBF,EAAKG,WAAa,KAClBH,EAAKI,cAAgB,GAErBJ,EAAKE,aAAaG,QAAQ,GAADC,OAAIN,EAAKO,cAAa,wBAC/CP,EAAKE,aAAmC,QAAvBH,EAAGD,aAAO,EAAPA,EAASU,mBAAW,IAAAT,E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,SAAU,IAAIA,QAAQ,OAAQ,IAAIA,QAAQ,QAAS,IAAIA,QAAQ,YAAa,KAC1G+H,EAAoB1I,EAAIqM,C,WClBxB3D,EAAoBsE,EAAI5M,KAAKmM,SAAW,GAIxC,IAAIU,EAAkB,CACrB,8CAA+C,EAC/C,8CAA+C,GAgBhDvE,EAAoBnG,EAAEqH,EAAI,CAAC0B,EAASI,KAE/BuB,EAAgB3B,IAElBgB,cAAc5D,EAAoB1I,EAAI0I,EAAoBiD,EAAEL,KAK/D,IAAI4B,EAAqB9M,KAA0C,oCAAIA,KAA0C,qCAAK,GAClH+M,EAA6BD,EAAmBE,KAAKC,KAAKH,GAC9DA,EAAmBE,KAvBC/J,IACnB,IAAKkG,EAAU+D,EAAaC,GAAWlK,EACvC,IAAI,IAAIsF,KAAY2E,EAChB5E,EAAoByC,EAAEmC,EAAa3E,KACrCD,EAAoBQ,EAAEP,GAAY2E,EAAY3E,IAIhD,IADG4E,GAASA,EAAQ7E,GACda,EAAS9I,QACdwM,EAAgB1D,EAASiE,OAAS,EACnCL,EAA2B9J,G,KZpBxBhF,EAAOqK,EAAoBS,EAC/BT,EAAoBS,EAAI,IAChBoC,QAAQC,IAAI,CAAC,uGAAuG,0CAA0C,yCAAyCiC,IAAI/E,EAAoBpG,EAAGoG,IAAsBgC,KAAKrM,GaD3OqK,EAAoBS,G","sources":["webpack://@basthon/browser-bundle/webpack/runtime/chunk loaded","webpack://@basthon/browser-bundle/webpack/runtime/create fake namespace object","webpack://@basthon/browser-bundle/webpack/runtime/startup chunk dependencies","webpack://@basthon/browser-bundle/../kernel-python3/lib/worker.js","webpack://@basthon/browser-bundle/../kernel-python3/lib/comlink-worker.js","webpack://@basthon/browser-bundle/webpack/bootstrap","webpack://@basthon/browser-bundle/webpack/runtime/compat get default export","webpack://@basthon/browser-bundle/webpack/runtime/define property getters","webpack://@basthon/browser-bundle/webpack/runtime/ensure chunk","webpack://@basthon/browser-bundle/webpack/runtime/get javascript chunk filename","webpack://@basthon/browser-bundle/webpack/runtime/global","webpack://@basthon/browser-bundle/webpack/runtime/hasOwnProperty shorthand","webpack://@basthon/browser-bundle/webpack/runtime/make namespace object","webpack://@basthon/browser-bundle/webpack/runtime/publicPath","webpack://@basthon/browser-bundle/webpack/runtime/importScripts chunk loading","webpack://@basthon/browser-bundle/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var next = __webpack_require__.x;\n__webpack_require__.x = () => {\n\treturn Promise.all([\"vendors-node_modules_promise-delegate_dist_es_PromiseDelegate_js-node_modules_babel_runtime_r-2b2010\",\"kernel-base_lib_worker_kernel-worker_js\",\"kernel-base_lib_worker_kernel-main_js\"].map(__webpack_require__.e, __webpack_require__)).then(next);\n};","import { KernelWorkerBase, loadScript } from \"@basthon/kernel-base/worker\";\nconst PYODIDE_VERSION = \"0.23.2\";\nexport class Python3KernelWorker extends KernelWorkerBase {\n constructor(options) {\n // do not forget to call the parent constructor\n super(options);\n /**\n * Where to find pyodide.js (private).\n */\n this._pyodideURLs = [\n `https://pyodide.basthon.fr/{PYODIDE_VERSION}/full/pyodide/pyodide.js`,\n `https://cdn.jsdelivr.net/pyodide/v{PYODIDE_VERSION}/full/pyodide.js`,\n ];\n this.__kernel__ = null;\n this.pythonVersion = \"\";\n // for locally installed Pyodide\n this._pyodideURLs.unshift(`${this.basthonRoot()}/pyodide/pyodide.js`);\n this._pyodideURLs = options?.pyodideURLs ?? this._pyodideURLs;\n }\n language() {\n return \"python3\";\n }\n /**\n * Get the URL of Basthon modules dir.\n */\n basthonModulesRoot() {\n return this.basthonRoot() + \"/modules\";\n }\n /**\n * What to do when loaded (private).\n */\n async _onload() {\n const pyodide = self.pyodide;\n // reformat repodata\n const packages = pyodide._api.repodata_packages;\n for (let p of Object.keys(packages)) {\n const item = packages[p];\n item.file_name = item.file_name.replace(\"{basthonRoot}\", this.basthonRoot());\n }\n // get the version of Python from Python\n this.pythonVersion = pyodide.runPython(\"import platform ; platform.python_version()\");\n // load basthon and get kernel\n await pyodide.loadPackage(\"basthon\");\n this.__kernel__ = pyodide.pyimport(\"basthon\").__kernel__;\n this.__kernel__.start();\n }\n /*\n * Initialize the kernel.\n */\n async _init() {\n let pyodideURL = this._pyodideURLs[0];\n for (let url of this._pyodideURLs) {\n url = url.replace(\"{PYODIDE_VERSION}\", PYODIDE_VERSION);\n try {\n const response = await fetch(url, { method: \"HEAD\" });\n if (response.ok) {\n pyodideURL = url;\n break;\n }\n }\n catch (e) { }\n }\n try {\n await loadScript(pyodideURL);\n }\n catch (error) {\n console.log(error);\n console.error(\"Can't load pyodide.js\");\n throw error;\n }\n if (self.loadPyodide == null) {\n console.log(\"self.loadPyodide is null!\");\n throw new Error(\"Can't load pyodide.js\");\n }\n try {\n // loading with custom repodata.json\n self.pyodide = await self.loadPyodide({\n lockFileURL: this.basthonRoot() + \"/repodata.json\",\n });\n }\n catch (error) {\n console.log(error);\n console.error(\"Can't load Python from Pyodide\");\n throw error;\n }\n await this._onload();\n }\n /**\n * Execution count getter overload.\n */\n get execution_count() {\n return this.__kernel__.execution_count();\n }\n /**\n * Basthon async code evaluation function.\n */\n async _eval(data, code) {\n const outCallback = (msg) => this.sendStdoutStream(data, msg);\n const errCallback = (msg) => this.sendStderrStream(data, msg);\n // dependencies are loaded by eval\n const proxy = await this.__kernel__.eval(code, outCallback, errCallback, data);\n // when an error occures, proxy should be the error message\n if (!(proxy instanceof self.pyodide.ffi.PyProxy))\n throw proxy;\n const res = proxy.toJs({\n create_proxies: false,\n dict_converter: Object.fromEntries,\n });\n proxy.destroy();\n return res[0];\n }\n /**\n * Special case of starting a legacy kernel.\n */\n async legacyStart() {\n this.__kernel__.start();\n }\n /**\n * Special case of stoping a legacy kernel.\n */\n async legacyStop() {\n this.__kernel__.stop();\n }\n /**\n * Complete a code at the end (usefull for tab completion).\n *\n * Returns an array of two elements: the list of completions\n * and the start index.\n */\n async complete(code) {\n const proxy = this.__kernel__.complete(code);\n if (!(proxy instanceof self.pyodide.ffi.PyProxy))\n return proxy;\n const res = proxy.toJs();\n proxy.destroy();\n return res;\n }\n /**\n * Is the source ready to be evaluated or want we more?\n * Usefull to set ps1/ps2 for teminal prompt.\n */\n async more(source) {\n return this.__kernel__.more(source);\n }\n /**\n * List content of directory (Python's virtual FS).\n */\n readdir(path) {\n return self.pyodide._module.FS.readdir(path);\n }\n /**\n * Change current directory (Python's virtual FS).\n */\n chdir(path) {\n self.pyodide._module.FS.chdir(path);\n }\n /**\n * Create directory (Python's virtual FS).\n */\n mkdir(path) {\n self.pyodide._module.FS.mkdir(path);\n }\n /**\n * Put a file on the local (emulated) filesystem.\n */\n async putFile(filename, content) {\n this.__kernel__.put_file(filename, content);\n }\n /**\n * Get a file content from the VFS.\n */\n async getFile(path) {\n return this.__kernel__.get_file(path).toJs();\n }\n /**\n * Put an importable module on the local (emulated) filesystem\n * and load dependencies.\n */\n async putModule(filename, content) {\n return await this.__kernel__.put_module(filename, content);\n }\n /**\n * Get a user module file content.\n */\n async getUserModuleFile(filename) {\n return this.__kernel__.get_user_module_file(filename).toJs();\n }\n /**\n * List modules launched via putModule.\n */\n async userModules() {\n const proxy = this.__kernel__.user_modules();\n if (!(proxy instanceof self.pyodide.ffi.PyProxy))\n return proxy;\n const res = proxy.toJs();\n proxy.destroy();\n return res;\n }\n /**\n * Display a matplotlib kernel iframe from its html code.\n */\n async displayMatplotlibIFrame(iframeHTML) {\n const port = this.displayKernelIFrame(iframeHTML);\n port.onmessage = (event) => {\n console.log(\"Kernel Worker says: 'Message received from iframe: \" +\n event.data +\n \"'\");\n port.postMessage(\"hello from kernel worker\");\n };\n }\n}\n","import { expose } from \"@basthon/kernel-base/worker\";\nimport { Python3KernelWorker } from \"./worker\";\nexpose(Python3KernelWorker);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// the startup function\n__webpack_require__.x = () => {\n\t// Load entry module and return exports\n\t// This entry module depends on other loaded chunks and execution need to be delayed\n\tvar __webpack_exports__ = __webpack_require__.O(undefined, [\"vendors-node_modules_promise-delegate_dist_es_PromiseDelegate_js-node_modules_babel_runtime_r-2b2010\",\"kernel-base_lib_worker_kernel-worker_js\",\"kernel-base_lib_worker_kernel-main_js\"], () => (__webpack_require__(4499)))\n\t__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n\treturn __webpack_exports__;\n};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks and chunks that the entrypoint depends on\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/^blob:/, \"\").replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","__webpack_require__.b = self.location + \"\";\n\n// object to store loaded chunks\n// \"1\" means \"already loaded\"\nvar installedChunks = {\n\t\"kernel-python3_lib_comlink-worker_js-_e7af0\": 1,\n\t\"kernel-python3_lib_comlink-worker_js-_e7af1\": 1\n};\n\n// importScripts chunk loading\nvar installChunk = (data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\tfor(var moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\twhile(chunkIds.length)\n\t\tinstalledChunks[chunkIds.pop()] = 1;\n\tparentChunkLoadingFunction(data);\n};\n__webpack_require__.f.i = (chunkId, promises) => {\n\t// \"1\" is the signal for \"already loaded\"\n\tif(!installedChunks[chunkId]) {\n\t\tif(true) { // all chunks have JS\n\t\t\timportScripts(__webpack_require__.p + __webpack_require__.u(chunkId));\n\t\t}\n\t}\n};\n\nvar chunkLoadingGlobal = self[\"webpackChunk_basthon_browser_bundle\"] = self[\"webpackChunk_basthon_browser_bundle\"] || [];\nvar parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);\nchunkLoadingGlobal.push = installChunk;\n\n// no HMR\n\n// no HMR manifest","// run startup\nvar __webpack_exports__ = __webpack_require__.x();\n"],"names":["deferred","leafPrototypes","getProto","next","Python3KernelWorker","_KernelWorkerBase","options","_options$pyodideURLs","_this","_classCallCheck","_pyodideURLs","__kernel__","pythonVersion","unshift","concat","basthonRoot","pyodideURLs","_inherits","_createClass","key","value","this","_onload2","_asyncToGenerator","_regeneratorRuntime","_callee","pyodide","packages","_i","_Object$keys","p","item","_context","prev","self","_api","repodata_packages","Object","keys","length","file_name","replace","runPython","loadPackage","pyimport","start","stop","apply","arguments","_init2","_callee2","pyodideURL","_iterator","_step","url","_t2","_t3","_t4","_context2","_createForOfIteratorHelper","s","n","done","fetch","method","sent","ok","abrupt","e","f","finish","loadScript","console","log","error","loadPyodide","Error","lockFileURL","_onload","get","execution_count","_eval2","_callee3","data","code","outCallback","errCallback","proxy","res","_this2","_context3","msg","sendStdoutStream","sendStderrStream","eval","ffi","PyProxy","toJs","create_proxies","dict_converter","fromEntries","destroy","_x","_x2","_legacyStart","_callee4","_context4","_legacyStop","_callee5","_context5","_complete","_callee6","_context6","complete","_x3","_more","_callee7","source","_context7","more","_x4","path","_module","FS","readdir","chdir","mkdir","_putFile","_callee8","filename","content","_context8","put_file","_x5","_x6","_getFile","_callee9","_context9","get_file","_x7","_putModule","_callee0","_context0","put_module","_x8","_x9","_getUserModuleFile","_callee1","_context1","get_user_module_file","_x0","_userModules","_callee10","_context10","user_modules","_displayMatplotlibIFrame","_callee11","iframeHTML","port","_context11","displayKernelIFrame","onmessage","event","postMessage","_x1","KernelWorkerBase","expose","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","call","m","x","__webpack_exports__","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","every","splice","r","getter","__esModule","d","a","getPrototypeOf","obj","t","mode","then","ns","create","def","current","indexOf","getOwnPropertyNames","forEach","definition","o","defineProperty","enumerable","chunkId","Promise","all","reduce","promises","u","g","globalThis","Function","window","prop","prototype","hasOwnProperty","Symbol","toStringTag","scriptUrl","importScripts","location","document","currentScript","tagName","toUpperCase","src","scripts","getElementsByTagName","test","b","installedChunks","chunkLoadingGlobal","parentChunkLoadingFunction","push","bind","moreModules","runtime","pop","map"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"kernel-python3_lib_comlink-worker_js-_e7af0.js","mappings":"uBAAIA,ECCAC,EADAC,ECAAC,E,40CCCJ,IACaC,EAAmB,SAAAC,GAC5B,SAAAD,EAAYE,GAAS,IAAAC,EAAAC,E,MAc6C,OAd7CC,EAAAA,EAAAA,GAAA,KAAAL,G,EAEjB,K,EAAAA,E,EAAA,CAAME,G,cAANE,G,8EAIKE,aAAe,CAAC,uEAAD,uEAIpBF,EAAKG,WAAa,KAClBH,EAAKI,cAAgB,GAErBJ,EAAKE,aAAaG,QAAQ,GAADC,OAAIN,EAAKO,cAAa,wBAC/CP,EAAKE,aAAmC,QAAvBH,EAAGD,aAAO,EAAPA,EAASU,mBAAW,IAAAT,EAAAA,EAAIC,EAAKE,aAAaF,CAClE,CAAC,OAAAS,EAAAA,EAAAA,GAAAb,E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KAC1G+H,EAAoB1I,EAAIqM,C,WClBxB3D,EAAoBsE,EAAI5M,KAAKmM,SAAW,GAIxC,IAAIU,EAAkB,CACrB,8CAA+C,EAC/C,8CAA+C,GAgBhDvE,EAAoBnG,EAAEqH,EAAI,CAAC0B,EAASI,KAE/BuB,EAAgB3B,IAElBgB,cAAc5D,EAAoB1I,EAAI0I,EAAoBiD,EAAEL,KAK/D,IAAI4B,EAAqB9M,KAA0C,oCAAIA,KAA0C,qCAAK,GAClH+M,EAA6BD,EAAmBE,KAAKC,KAAKH,GAC9DA,EAAmBE,KAvBC/J,IACnB,IAAKkG,EAAU+D,EAAaC,GAAWlK,EACvC,IAAI,IAAIsF,KAAY2E,EAChB5E,EAAoByC,EAAEmC,EAAa3E,KACrCD,EAAoBQ,EAAEP,GAAY2E,EAAY3E,IAIhD,IADG4E,GAASA,EAAQ7E,GACda,EAAS9I,QACdwM,EAAgB1D,EAASiE,OAAS,EACnCL,EAA2B9J,G,KZpBxBhF,EAAOqK,EAAoBS,EAC/BT,EAAoBS,EAAI,IAChBoC,QAAQC,IAAI,CAAC,uGAAuG,0CAA0C,yCAAyCiC,IAAI/E,EAAoBpG,EAAGoG,IAAsBgC,KAAKrM,GaD3OqK,EAAoBS,G","sources":["webpack://@basthon/browser-bundle/webpack/runtime/chunk loaded","webpack://@basthon/browser-bundle/webpack/runtime/create fake namespace object","webpack://@basthon/browser-bundle/webpack/runtime/startup chunk dependencies","webpack://@basthon/browser-bundle/../kernel-python3/lib/worker.js","webpack://@basthon/browser-bundle/../kernel-python3/lib/comlink-worker.js","webpack://@basthon/browser-bundle/webpack/bootstrap","webpack://@basthon/browser-bundle/webpack/runtime/compat get default export","webpack://@basthon/browser-bundle/webpack/runtime/define property getters","webpack://@basthon/browser-bundle/webpack/runtime/ensure chunk","webpack://@basthon/browser-bundle/webpack/runtime/get javascript chunk filename","webpack://@basthon/browser-bundle/webpack/runtime/global","webpack://@basthon/browser-bundle/webpack/runtime/hasOwnProperty shorthand","webpack://@basthon/browser-bundle/webpack/runtime/make namespace object","webpack://@basthon/browser-bundle/webpack/runtime/publicPath","webpack://@basthon/browser-bundle/webpack/runtime/importScripts chunk loading","webpack://@basthon/browser-bundle/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var next = __webpack_require__.x;\n__webpack_require__.x = () => {\n\treturn Promise.all([\"vendors-node_modules_promise-delegate_dist_es_PromiseDelegate_js-node_modules_babel_runtime_r-2b2010\",\"kernel-base_lib_worker_kernel-worker_js\",\"kernel-base_lib_worker_kernel-main_js\"].map(__webpack_require__.e, __webpack_require__)).then(next);\n};","import { KernelWorkerBase, loadScript } from \"@basthon/kernel-base/worker\";\nconst PYODIDE_VERSION = \"0.24.1\";\nexport class Python3KernelWorker extends KernelWorkerBase {\n constructor(options) {\n // do not forget to call the parent constructor\n super(options);\n /**\n * Where to find pyodide.js (private).\n */\n this._pyodideURLs = [\n `https://pyodide.basthon.fr/{PYODIDE_VERSION}/full/pyodide/pyodide.js`,\n `https://cdn.jsdelivr.net/pyodide/v{PYODIDE_VERSION}/full/pyodide.js`,\n ];\n this.__kernel__ = null;\n this.pythonVersion = \"\";\n // for locally installed Pyodide\n this._pyodideURLs.unshift(`${this.basthonRoot()}/pyodide/pyodide.js`);\n this._pyodideURLs = options?.pyodideURLs ?? this._pyodideURLs;\n }\n language() {\n return \"python3\";\n }\n /**\n * Get the URL of Basthon modules dir.\n */\n basthonModulesRoot() {\n return this.basthonRoot() + \"/modules\";\n }\n /**\n * What to do when loaded (private).\n */\n async _onload() {\n const pyodide = self.pyodide;\n // reformat lockfile\n const packages = pyodide._api.lockfile_packages;\n for (let p of Object.keys(packages)) {\n const item = packages[p];\n item.file_name = item.file_name.replace(\"{basthonRoot}\", this.basthonRoot());\n }\n // get the version of Python from Python\n this.pythonVersion = pyodide.runPython(\"import platform ; platform.python_version()\");\n // load basthon and get kernel\n await pyodide.loadPackage(\"basthon\");\n this.__kernel__ = pyodide.pyimport(\"basthon\").__kernel__;\n this.__kernel__.start();\n }\n /*\n * Initialize the kernel.\n */\n async _init() {\n let pyodideURL = this._pyodideURLs[0];\n for (let url of this._pyodideURLs) {\n url = url.replace(\"{PYODIDE_VERSION}\", PYODIDE_VERSION);\n try {\n const response = await fetch(url, { method: \"HEAD\" });\n if (response.ok) {\n pyodideURL = url;\n break;\n }\n }\n catch (e) { }\n }\n try {\n await loadScript(pyodideURL);\n }\n catch (error) {\n console.log(error);\n console.error(\"Can't load pyodide.js\");\n throw error;\n }\n if (self.loadPyodide == null) {\n console.log(\"self.loadPyodide is null!\");\n throw new Error(\"Can't load pyodide.js\");\n }\n try {\n // loading with custom pyodide-lock.json\n self.pyodide = await self.loadPyodide({\n lockFileURL: this.basthonRoot() + \"/pyodide-lock.json\",\n });\n }\n catch (error) {\n console.log(error);\n console.error(\"Can't load Python from Pyodide\");\n throw error;\n }\n await this._onload();\n }\n /**\n * Execution count getter overload.\n */\n get execution_count() {\n return this.__kernel__.execution_count();\n }\n /**\n * Basthon async code evaluation function.\n */\n async _eval(data, code) {\n const outCallback = (msg) => this.sendStdoutStream(data, msg);\n const errCallback = (msg) => this.sendStderrStream(data, msg);\n // dependencies are loaded by eval\n const proxy = await this.__kernel__.eval(code, outCallback, errCallback, data);\n // when an error occures, proxy should be the error message\n if (!(proxy instanceof self.pyodide.ffi.PyProxy))\n throw proxy;\n const res = proxy.toJs({\n create_proxies: false,\n dict_converter: Object.fromEntries,\n });\n proxy.destroy();\n return res[0];\n }\n /**\n * Special case of starting a legacy kernel.\n */\n async legacyStart() {\n this.__kernel__.start();\n }\n /**\n * Special case of stoping a legacy kernel.\n */\n async legacyStop() {\n this.__kernel__.stop();\n }\n /**\n * Complete a code at the end (usefull for tab completion).\n *\n * Returns an array of two elements: the list of completions\n * and the start index.\n */\n async complete(code) {\n const proxy = this.__kernel__.complete(code);\n if (!(proxy instanceof self.pyodide.ffi.PyProxy))\n return proxy;\n const res = proxy.toJs();\n proxy.destroy();\n return res;\n }\n /**\n * Is the source ready to be evaluated or want we more?\n * Usefull to set ps1/ps2 for teminal prompt.\n */\n async more(source) {\n return this.__kernel__.more(source);\n }\n /**\n * List content of directory (Python's virtual FS).\n */\n readdir(path) {\n return self.pyodide._module.FS.readdir(path);\n }\n /**\n * Change current directory (Python's virtual FS).\n */\n chdir(path) {\n self.pyodide._module.FS.chdir(path);\n }\n /**\n * Create directory (Python's virtual FS).\n */\n mkdir(path) {\n self.pyodide._module.FS.mkdir(path);\n }\n /**\n * Put a file on the local (emulated) filesystem.\n */\n async putFile(filename, content) {\n this.__kernel__.put_file(filename, content);\n }\n /**\n * Get a file content from the VFS.\n */\n async getFile(path) {\n return this.__kernel__.get_file(path).toJs();\n }\n /**\n * Put an importable module on the local (emulated) filesystem\n * and load dependencies.\n */\n async putModule(filename, content) {\n return await this.__kernel__.put_module(filename, content);\n }\n /**\n * Get a user module file content.\n */\n async getUserModuleFile(filename) {\n return this.__kernel__.get_user_module_file(filename).toJs();\n }\n /**\n * List modules launched via putModule.\n */\n async userModules() {\n const proxy = this.__kernel__.user_modules();\n if (!(proxy instanceof self.pyodide.ffi.PyProxy))\n return proxy;\n const res = proxy.toJs();\n proxy.destroy();\n return res;\n }\n /**\n * Display a matplotlib kernel iframe from its html code.\n */\n async displayMatplotlibIFrame(iframeHTML) {\n const port = this.displayKernelIFrame(iframeHTML);\n port.onmessage = (event) => {\n console.log(\"Kernel Worker says: 'Message received from iframe: \" +\n event.data +\n \"'\");\n port.postMessage(\"hello from kernel worker\");\n };\n }\n}\n","import { expose } from \"@basthon/kernel-base/worker\";\nimport { Python3KernelWorker } from \"./worker\";\nexpose(Python3KernelWorker);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// the startup function\n__webpack_require__.x = () => {\n\t// Load entry module and return exports\n\t// This entry module depends on other loaded chunks and execution need to be delayed\n\tvar __webpack_exports__ = __webpack_require__.O(undefined, [\"vendors-node_modules_promise-delegate_dist_es_PromiseDelegate_js-node_modules_babel_runtime_r-2b2010\",\"kernel-base_lib_worker_kernel-worker_js\",\"kernel-base_lib_worker_kernel-main_js\"], () => (__webpack_require__(4499)))\n\t__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n\treturn __webpack_exports__;\n};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks and chunks that the entrypoint depends on\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/^blob:/, \"\").replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","__webpack_require__.b = self.location + \"\";\n\n// object to store loaded chunks\n// \"1\" means \"already loaded\"\nvar installedChunks = {\n\t\"kernel-python3_lib_comlink-worker_js-_e7af0\": 1,\n\t\"kernel-python3_lib_comlink-worker_js-_e7af1\": 1\n};\n\n// importScripts chunk loading\nvar installChunk = (data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\tfor(var moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\twhile(chunkIds.length)\n\t\tinstalledChunks[chunkIds.pop()] = 1;\n\tparentChunkLoadingFunction(data);\n};\n__webpack_require__.f.i = (chunkId, promises) => {\n\t// \"1\" is the signal for \"already loaded\"\n\tif(!installedChunks[chunkId]) {\n\t\tif(true) { // all chunks have JS\n\t\t\timportScripts(__webpack_require__.p + __webpack_require__.u(chunkId));\n\t\t}\n\t}\n};\n\nvar chunkLoadingGlobal = self[\"webpackChunk_basthon_browser_bundle\"] = self[\"webpackChunk_basthon_browser_bundle\"] || [];\nvar parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);\nchunkLoadingGlobal.push = installChunk;\n\n// no HMR\n\n// no HMR manifest","// run startup\nvar __webpack_exports__ = __webpack_require__.x();\n"],"names":["deferred","leafPrototypes","getProto","next","Python3KernelWorker","_KernelWorkerBase","options","_options$pyodideURLs","_this","_classCallCheck","_pyodideURLs","__kernel__","pythonVersion","unshift","concat","basthonRoot","pyodideURLs","_inherits","_createClass","key","value","this","_onload2","_asyncToGenerator","_regeneratorRuntime","_callee","pyodide","packages","_i","_Object$keys","p","item","_context","prev","self","_api","lockfile_packages","Object","keys","length","file_name","replace","runPython","loadPackage","pyimport","start","stop","apply","arguments","_init2","_callee2","pyodideURL","_iterator","_step","url","_t2","_t3","_t4","_context2","_createForOfIteratorHelper","s","n","done","fetch","method","sent","ok","abrupt","e","f","finish","loadScript","console","log","error","loadPyodide","Error","lockFileURL","_onload","get","execution_count","_eval2","_callee3","data","code","outCallback","errCallback","proxy","res","_this2","_context3","msg","sendStdoutStream","sendStderrStream","eval","ffi","PyProxy","toJs","create_proxies","dict_converter","fromEntries","destroy","_x","_x2","_legacyStart","_callee4","_context4","_legacyStop","_callee5","_context5","_complete","_callee6","_context6","complete","_x3","_more","_callee7","source","_context7","more","_x4","path","_module","FS","readdir","chdir","mkdir","_putFile","_callee8","filename","content","_context8","put_file","_x5","_x6","_getFile","_callee9","_context9","get_file","_x7","_putModule","_callee0","_context0","put_module","_x8","_x9","_getUserModuleFile","_callee1","_context1","get_user_module_file","_x0","_userModules","_callee10","_context10","user_modules","_displayMatplotlibIFrame","_callee11","iframeHTML","port","_context11","displayKernelIFrame","onmessage","event","postMessage","_x1","KernelWorkerBase","expose","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","call","m","x","__webpack_exports__","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","every","splice","r","getter","__esModule","d","a","getPrototypeOf","obj","t","mode","then","ns","create","def","current","indexOf","getOwnPropertyNames","forEach","definition","o","defineProperty","enumerable","chunkId","Promise","all","reduce","promises","u","g","globalThis","Function","window","prop","prototype","hasOwnProperty","Symbol","toStringTag","scriptUrl","importScripts","location","document","currentScript","tagName","toUpperCase","src","scripts","getElementsByTagName","test","b","installedChunks","chunkLoadingGlobal","parentChunkLoadingFunction","push","bind","moreModules","runtime","pop","map"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_basthon_browser_bundle=self.webpackChunk_basthon_browser_bundle||[]).push([["kernel-python3_lib_comlink-worker_js-_e7af1"],{4499:(e,t,r)=>{var n=r(2069),o=r(6330),a=r(5152),s=r(414),i=r(5309),u=r(2715),c=r(9296),l=r(5799),p=r.n(l);function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return d(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,i=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){i=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(i)throw a}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var
|
|
1
|
+
"use strict";(self.webpackChunk_basthon_browser_bundle=self.webpackChunk_basthon_browser_bundle||[]).push([["kernel-python3_lib_comlink-worker_js-_e7af1"],{4499:(e,t,r)=>{var n=r(2069),o=r(6330),a=r(5152),s=r(414),i=r(5309),u=r(2715),c=r(9296),l=r(5799),p=r.n(l);function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return d(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,i=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){i=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(i)throw a}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var y=function(e){function t(e){var r,n,o,s,c;return(0,a.A)(this,t),o=this,s=t,c=[e],s=(0,u.A)(s),(n=(0,i.A)(o,h()?Reflect.construct(s,c||[],(0,u.A)(o).constructor):s.apply(o,c)))._pyodideURLs=["https://pyodide.basthon.fr/{PYODIDE_VERSION}/full/pyodide/pyodide.js","https://cdn.jsdelivr.net/pyodide/v{PYODIDE_VERSION}/full/pyodide.js"],n.__kernel__=null,n.pythonVersion="",n._pyodideURLs.unshift("".concat(n.basthonRoot(),"/pyodide/pyodide.js")),n._pyodideURLs=null!==(r=null==e?void 0:e.pyodideURLs)&&void 0!==r?r:n._pyodideURLs,n}return(0,c.A)(t,e),(0,s.A)(t,[{key:"language",value:function(){return"python3"}},{key:"basthonModulesRoot",value:function(){return this.basthonRoot()+"/modules"}},{key:"_onload",value:(A=(0,o.A)(p().mark(function e(){var t,r,n,o,a,s;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=self.pyodide,r=t._api.lockfile_packages,n=0,o=Object.keys(r);n<o.length;n++)a=o[n],(s=r[a]).file_name=s.file_name.replace("{basthonRoot}",this.basthonRoot());return this.pythonVersion=t.runPython("import platform ; platform.python_version()"),e.next=1,t.loadPackage("basthon");case 1:this.__kernel__=t.pyimport("basthon").__kernel__,this.__kernel__.start();case 2:case"end":return e.stop()}},e,this)})),function(){return A.apply(this,arguments)})},{key:"_init",value:(g=(0,o.A)(p().mark(function e(){var t,r,o,a,s,i,u;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this._pyodideURLs[0],r=f(this._pyodideURLs),e.prev=1,r.s();case 2:if((o=r.n()).done){e.next=8;break}return a=(a=o.value).replace("{PYODIDE_VERSION}","0.24.1"),e.prev=3,e.next=4,fetch(a,{method:"HEAD"});case 4:if(!e.sent.ok){e.next=5;break}return t=a,e.abrupt("continue",8);case 5:e.next=7;break;case 6:e.prev=6,e.catch(3);case 7:e.next=2;break;case 8:e.next=10;break;case 9:e.prev=9,s=e.catch(1),r.e(s);case 10:return e.prev=10,r.f(),e.finish(10);case 11:return e.prev=11,e.next=12,(0,n.k0)(t);case 12:e.next=14;break;case 13:throw e.prev=13,i=e.catch(11),console.log(i),console.error("Can't load pyodide.js"),i;case 14:if(null!=self.loadPyodide){e.next=15;break}throw console.log("self.loadPyodide is null!"),new Error("Can't load pyodide.js");case 15:return e.prev=15,e.next=16,self.loadPyodide({lockFileURL:this.basthonRoot()+"/pyodide-lock.json"});case 16:self.pyodide=e.sent,e.next=18;break;case 17:throw e.prev=17,u=e.catch(15),console.log(u),console.error("Can't load Python from Pyodide"),u;case 18:return e.next=19,this._onload();case 19:case"end":return e.stop()}},e,this,[[1,9,10,11],[3,6],[11,13],[15,17]])})),function(){return g.apply(this,arguments)})},{key:"execution_count",get:function(){return this.__kernel__.execution_count()}},{key:"_eval",value:(x=(0,o.A)(p().mark(function e(t,r){var n,o,a,s,i=this;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=function(e){return i.sendStdoutStream(t,e)},o=function(e){return i.sendStderrStream(t,e)},e.next=1,this.__kernel__.eval(r,n,o,t);case 1:if((a=e.sent)instanceof self.pyodide.ffi.PyProxy){e.next=2;break}throw a;case 2:return s=a.toJs({create_proxies:!1,dict_converter:Object.fromEntries}),a.destroy(),e.abrupt("return",s[0]);case 3:case"end":return e.stop()}},e,this)})),function(e,t){return x.apply(this,arguments)})},{key:"legacyStart",value:(w=(0,o.A)(p().mark(function e(){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.__kernel__.start();case 1:case"end":return e.stop()}},e,this)})),function(){return w.apply(this,arguments)})},{key:"legacyStop",value:(b=(0,o.A)(p().mark(function e(){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.__kernel__.stop();case 1:case"end":return e.stop()}},e,this)})),function(){return b.apply(this,arguments)})},{key:"complete",value:(m=(0,o.A)(p().mark(function e(t){var r,n;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=this.__kernel__.complete(t))instanceof self.pyodide.ffi.PyProxy){e.next=1;break}return e.abrupt("return",r);case 1:return n=r.toJs(),r.destroy(),e.abrupt("return",n);case 2:case"end":return e.stop()}},e,this)})),function(e){return m.apply(this,arguments)})},{key:"more",value:(v=(0,o.A)(p().mark(function e(t){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.__kernel__.more(t));case 1:case"end":return e.stop()}},e,this)})),function(e){return v.apply(this,arguments)})},{key:"readdir",value:function(e){return self.pyodide._module.FS.readdir(e)}},{key:"chdir",value:function(e){self.pyodide._module.FS.chdir(e)}},{key:"mkdir",value:function(e){self.pyodide._module.FS.mkdir(e)}},{key:"putFile",value:(k=(0,o.A)(p().mark(function e(t,r){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.__kernel__.put_file(t,r);case 1:case"end":return e.stop()}},e,this)})),function(e,t){return k.apply(this,arguments)})},{key:"getFile",value:(_=(0,o.A)(p().mark(function e(t){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.__kernel__.get_file(t).toJs());case 1:case"end":return e.stop()}},e,this)})),function(e){return _.apply(this,arguments)})},{key:"putModule",value:(y=(0,o.A)(p().mark(function e(t,r){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,this.__kernel__.put_module(t,r);case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e,this)})),function(e,t){return y.apply(this,arguments)})},{key:"getUserModuleFile",value:(d=(0,o.A)(p().mark(function e(t){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.__kernel__.get_user_module_file(t).toJs());case 1:case"end":return e.stop()}},e,this)})),function(e){return d.apply(this,arguments)})},{key:"userModules",value:(l=(0,o.A)(p().mark(function e(){var t,r;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((t=this.__kernel__.user_modules())instanceof self.pyodide.ffi.PyProxy){e.next=1;break}return e.abrupt("return",t);case 1:return r=t.toJs(),t.destroy(),e.abrupt("return",r);case 2:case"end":return e.stop()}},e,this)})),function(){return l.apply(this,arguments)})},{key:"displayMatplotlibIFrame",value:(r=(0,o.A)(p().mark(function e(t){var r;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(r=this.displayKernelIFrame(t)).onmessage=function(e){console.log("Kernel Worker says: 'Message received from iframe: "+e.data+"'"),r.postMessage("hello from kernel worker")};case 1:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})}]);var r,l,d,y,_,k,v,m,b,w,x,g,A}(n.fI);(0,n.p)(y)}}]);
|
|
2
2
|
//# sourceMappingURL=kernel-python3_lib_comlink-worker_js-_e7af1.js.map
|