@robotical/martyblocks 1.4.56 → 1.4.59

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/dist/lib.min.js CHANGED
@@ -20,7 +20,7 @@
20
20
  Licensed under the MIT License (MIT), see
21
21
  http://jedwatson.github.io/classnames
22
22
  */
23
- !function(){"use strict";var i={}.hasOwnProperty;function o(){for(var A=[],e=0;e<arguments.length;e++){var t=arguments[e];if(t){var n=typeof t;if("string"===n||"number"===n)A.push(t);else if(Array.isArray(t))A.push(o.apply(null,t));else if("object"===n)for(var a in t)i.call(t,a)&&t[a]&&A.push(a)}}return A.join(" ")}A.exports?A.exports=o:void 0===(t=function(){return o}.apply(e,[]))||(A.exports=t)}()},function(A,e,i){"use strict";(function(e){A.exports=function(A){for(var i="undefined"!=typeof window&&"function"==typeof window.atob?window.atob(A):e.from(A,"base64").toString("binary"),t=new Uint8Array(i.length),o=0;o<i.length;++o)t[o]=i.charCodeAt(o);return t.buffer}}).call(this,i(56).Buffer)},function(A,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return s}),i.d(e,"c",function(){return a}),i.d(e,"d",function(){return n});var t=i(40),o=i.n(t),n=o()({large:null,small:null}),a=o()({large:null,largeConstrained:null,small:null}),r=.675,s={};s[a.large]=1,s[a.largeConstrained]=.85,s[a.small]=.5,e.e={standardStageWidth:480,standardStageHeight:360,fullSizeMinWidth:1096,fullSizePaintMinWidth:1250}},function(A,e,i){var t=i(1382);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){"use strict";e.__esModule=!0;var t=function(A){return A&&A.__esModule?A:{default:A}}(i(289));e.default=t.default||function(A){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(A[t]=i[t])}return A}},function(A,e,i){"use strict";i.d(e,"f",function(){return s}),i.d(e,"g",function(){return r}),i.d(e,"e",function(){return g}),i.d(e,"a",function(){return t}),i.d(e,"b",function(){return o}),i.d(e,"d",function(){return n}),i.d(e,"c",function(){return a});var t=0,o=1,n=2,a=3,r={activeTabIndex:t},s=function(A,e){switch(void 0===A&&(A=r),e.type){case"scratch-gui/navigation/ACTIVATE_TAB":return Object.assign({},A,{activeTabIndex:e.activeTabIndex});default:return A}},g=function(A){return{type:"scratch-gui/navigation/ACTIVATE_TAB",activeTabIndex:A}}},function(A,e,i){"use strict";e.__esModule=!0,e.default=function(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}},function(A,e,i){"use strict";e.a={SOUND:"SOUND",COSTUME:"COSTUME",SPRITE:"SPRITE",CODE:"CODE",BACKPACK_SOUND:"BACKPACK_SOUND",BACKPACK_COSTUME:"BACKPACK_COSTUME",BACKPACK_SPRITE:"BACKPACK_SPRITE",BACKPACK_CODE:"BACKPACK_CODE"}},function(A,e,i){"use strict";e.__esModule=!0;var t=function(A){return A&&A.__esModule?A:{default:A}}(i(561));e.default=function(){function A(A,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,t.default)(A,o.key,o)}}return function(e,i,t){return i&&A(e.prototype,i),t&&A(e,t),e}}()},function(A,e,i){var t=i(1520);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){"use strict";var t;function o(A,e,i){return e in A?Object.defineProperty(A,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):A[e]=i,A}i.d(e,"k",function(){return a}),i.d(e,"l",function(){return n}),i.d(e,"m",function(){return g}),i.d(e,"o",function(){return l}),i.d(e,"p",function(){return c}),i.d(e,"q",function(){return u}),i.d(e,"r",function(){return B}),i.d(e,"t",function(){return d}),i.d(e,"s",function(){return E}),i.d(e,"u",function(){return C}),i.d(e,"n",function(){return h}),i.d(e,"a",function(){return w}),i.d(e,"c",function(){return m}),i.d(e,"d",function(){return p}),i.d(e,"e",function(){return I}),i.d(e,"h",function(){return Q}),i.d(e,"f",function(){return D}),i.d(e,"g",function(){return M}),i.d(e,"i",function(){return f}),i.d(e,"j",function(){return b}),i.d(e,"b",function(){return y});var n=(o(t={},"backdropLibrary",!1),o(t,"costumeLibrary",!1),o(t,"extensionLibrary",!1),o(t,"loadingProject",!1),o(t,"telemetryModal",!1),o(t,"soundLibrary",!1),o(t,"spriteLibrary",!1),o(t,"soundRecorder",!1),o(t,"connectionModal",!1),o(t,"tipsLibrary",!1),t),a=function(A,e){switch(void 0===A&&(A=n),e.type){case"scratch-gui/modals/OPEN_MODAL":return Object.assign({},A,o({},e.modal,!0));case"scratch-gui/modals/CLOSE_MODAL":return Object.assign({},A,o({},e.modal,!1));default:return A}},r=function(A){return{type:"scratch-gui/modals/OPEN_MODAL",modal:A}},s=function(A){return{type:"scratch-gui/modals/CLOSE_MODAL",modal:A}},g=function(){return r("backdropLibrary")},l=function(){return r("costumeLibrary")},c=function(){return r("extensionLibrary")},u=function(){return r("loadingProject")},B=function(){return r("soundLibrary")},d=function(){return r("spriteLibrary")},E=function(){return r("soundRecorder")},h=function(){return r("connectionModal")},C=function(){return r("tipsLibrary")},w=function(){return s("backdropLibrary")},m=function(){return s("costumeLibrary")},p=function(){return s("extensionLibrary")},I=function(){return s("loadingProject")},f=function(){return s("telemetryModal")},Q=function(){return s("spriteLibrary")},D=function(){return s("soundLibrary")},M=function(){return s("soundRecorder")},b=function(){return s("tipsLibrary")},y=function(){return s("connectionModal")}},function(A,e,i){var t=i(1559);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){"use strict";var t=i(92),o=i.n(t);o.a.enable(),e.a=o()("gui")},function(A,e,i){var t=i(1391);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){"use strict";e.__esModule=!0;var t=function(A){return A&&A.__esModule?A:{default:A}}(i(562));e.default=function(A,e){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,t.default)(e))&&"function"!=typeof e?A:e}},function(A,e,i){var t=i(1570);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){var t=i(1530);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){var t=i(1389);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){var t=i(1528);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){A.exports={default:i(1571),__esModule:!0}},function(A,e,i){"use strict";e.__esModule=!0;var t=a(i(1594)),o=a(i(1598)),n=a(i(562));function a(A){return A&&A.__esModule?A:{default:A}}e.default=function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,n.default)(e)));A.prototype=(0,o.default)(e&&e.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.default?(0,t.default)(A,e):A.__proto__=e)}},function(A,e,i){"use strict";i.d(e,"d",function(){return r}),i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s}),i.d(e,"c",function(){return g}),i.d(e,"e",function(){return a}),i.d(e,"f",function(){return u}),i.d(e,"g",function(){return c}),i.d(e,"h",function(){return l});var t=i(73),o=i(134),n={visible:!0,alertsList:[]},a=function(A){return A.filter(function(A){return A.alertType===t.b.STANDARD||A.alertType===t.b.EXTENSION})},r=function(A,e){switch(void 0===A&&(A=n),e.type){case"scratch-gui/alerts/SHOW_ALERT":var i=e.alertId;if(i){var a={alertId:i,level:t.a.WARN},r=t.c.find(function(A){return A.alertId===i});if(r){var s=A.alertsList.filter(function(A){return!r.clearList||-1===r.clearList.indexOf(A.alertId)});return e.data&&e.data.message&&(a.message=e.data.message),a.alertType=r.alertType||t.b.STANDARD,a.closeButton=r.closeButton,a.content=r.content,a.iconURL=r.iconURL,a.iconSpinner=r.iconSpinner,a.level=r.level,a.showDownload=r.showDownload,a.showSaveNow=r.showSaveNow,s.push(a),Object.assign({},A,{alertsList:s})}}return A;case"scratch-gui/alerts/SHOW_EXTENSION_ALERT":var g=e.data.extensionId;if(g){var l=o.a.find(function(A){return A.extensionId===g});if(l){var c=A.alertsList.slice(),u={alertType:t.b.EXTENSION,closeButton:!0,extensionId:g,extensionName:l.name,iconURL:l.connectionSmallIconURL,level:t.a.WARN,showReconnect:!0};return c.push(u),Object.assign({},A,{alertsList:c})}}return A;case"scratch-gui/alerts/CLOSE_ALERT_WITH_ID":case"scratch-gui/alerts/CLOSE_ALERT":if(e.alertId&&(e.index=A.alertsList.findIndex(function(A){return A.alertId===e.alertId}),-1===e.index))return A;var B=A.alertsList.slice();return B.splice(e.index,1),Object.assign({},A,{alertsList:B});case"scratch-gui/alerts/CLOSE_ALERTS_WITH_ID":return Object.assign({},A,{alertsList:A.alertsList.filter(function(A){return A.alertId!==e.alertId})});default:return A}},s=function(A){return{type:"scratch-gui/alerts/CLOSE_ALERT",index:A}},g=function(A){return{type:"scratch-gui/alerts/CLOSE_ALERT_WITH_ID",alertId:A}},l=function(A){return{type:"scratch-gui/alerts/SHOW_ALERT",alertId:A}},c=function(A){return{type:"scratch-gui/alerts/SHOW_EXTENSION_ALERT",data:A}},u=function(A,e){var i=t.c.find(function(A){return A.alertId===e});i&&(A(l(e)),i.maxDisplaySecs&&setTimeout(function(){A(function(A){return{type:"scratch-gui/alerts/CLOSE_ALERTS_WITH_ID",alertId:A}}(e))},1e3*i.maxDisplaySecs))}},function(A,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(A){"object"==typeof window&&(i=window)}A.exports=i},function(A,e,i){var t=i(1486);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){var t=i(1526);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){var t=i(454);t.enable(),A.exports=t("vm")},function(A,e,i){"use strict";A.exports=function(A){var e,i={};if(!(A instanceof Object)||Array.isArray(A))throw new Error("keyMirror(...): Argument must be an object.");for(e in A)A.hasOwnProperty(e)&&(i[e]=e);return i}},function(A,e,i){"use strict";i.d(e,"e",function(){return a}),i.d(e,"c",function(){return g}),i.d(e,"b",function(){return c}),i.d(e,"a",function(){return d}),i.d(e,"d",function(){return u});var t=i(177),o=i(365),n={INIT:"@@redux/INIT"};function a(A,e,i){var r;if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error("Expected the enhancer to be a function.");return i(a)(A,e)}if("function"!=typeof A)throw new Error("Expected the reducer to be a function.");var s=A,g=e,l=[],c=l,u=!1;function B(){c===l&&(c=l.slice())}function d(){return g}function E(A){if("function"!=typeof A)throw new Error("Expected listener to be a function.");var e=!0;return B(),c.push(A),function(){if(e){e=!1,B();var i=c.indexOf(A);c.splice(i,1)}}}function h(A){if(!Object(t.a)(A))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===A.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,g=s(g,A)}finally{u=!1}for(var e=l=c,i=0;i<e.length;i++){(0,e[i])()}return A}return h({type:n.INIT}),(r={dispatch:h,subscribe:E,getState:d,replaceReducer:function(A){if("function"!=typeof A)throw new Error("Expected the nextReducer to be a function.");s=A,h({type:n.INIT})}})[o.a]=function(){var A,e=E;return(A={subscribe:function(A){if("object"!=typeof A)throw new TypeError("Expected the observer to be an object.");function i(){A.next&&A.next(d())}return i(),{unsubscribe:e(i)}}})[o.a]=function(){return this},A},r}function r(A){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(A);try{throw new Error(A)}catch(A){}}function s(A,e){var i=e&&e.type;return"Given action "+(i&&'"'+i.toString()+'"'||"an action")+', reducer "'+A+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function g(A){for(var e=Object.keys(A),i={},o=0;o<e.length;o++){var a=e[o];void 0===A[a]&&r('No reducer provided for key "'+a+'"'),"function"==typeof A[a]&&(i[a]=A[a])}var g=Object.keys(i),l=void 0;l={};var c=void 0;try{!function(A){Object.keys(A).forEach(function(e){var i=A[e];if(void 0===i(void 0,{type:n.INIT}))throw new Error('Reducer "'+e+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===i(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+n.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(i)}catch(A){c=A}return function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(c)throw c;var o=function(A,e,i,o){var a=Object.keys(e),r=i&&i.type===n.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===a.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Object(t.a)(A))return"The "+r+' has unexpected type of "'+{}.toString.call(A).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following keys: "'+a.join('", "')+'"';var s=Object.keys(A).filter(function(A){return!e.hasOwnProperty(A)&&!o[A]});return s.forEach(function(A){o[A]=!0}),s.length>0?"Unexpected "+(s.length>1?"keys":"key")+' "'+s.join('", "')+'" found in '+r+'. Expected to find one of the known reducer keys instead: "'+a.join('", "')+'". Unexpected keys will be ignored.':void 0}(A,i,e,l);o&&r(o);for(var a=!1,u={},B=0;B<g.length;B++){var d=g[B],E=i[d],h=A[d],C=E(h,e);if(void 0===C){var w=s(d,e);throw new Error(w)}u[d]=C,a=a||C!==h}return a?u:A}}function l(A,e){return function(){return e(A.apply(void 0,arguments))}}function c(A,e){if("function"==typeof A)return l(A,e);if("object"!=typeof A||null===A)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===A?"null":typeof A)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var i=Object.keys(A),t={},o=0;o<i.length;o++){var n=i[o],a=A[n];"function"==typeof a&&(t[n]=l(a,e))}return t}function u(){for(var A=arguments.length,e=Array(A),i=0;i<A;i++)e[i]=arguments[i];return 0===e.length?function(A){return A}:1===e.length?e[0]:e.reduce(function(A,e){return function(){return A(e.apply(void 0,arguments))}})}var B=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(A[t]=i[t])}return A};function d(){for(var A=arguments.length,e=Array(A),i=0;i<A;i++)e[i]=arguments[i];return function(A){return function(i,t,o){var n,a=A(i,t,o),r=a.dispatch,s={getState:a.getState,dispatch:function(A){return r(A)}};return n=e.map(function(A){return A(s)}),r=u.apply(void 0,n)(a.dispatch),B({},a,{dispatch:r})}}}function E(){}"string"==typeof E.name&&"isCrushed"!==E.name&&r("You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) to ensure you have the correct code for your production build.")},function(A,e,i){"use strict";var t=i(704),o=i.n(t),n=i(2),a=i(87);function r(A,e){var i=Object.keys(A);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(A);e&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable})),i.push.apply(i,t)}return i}function s(A){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach(function(e){g(A,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(i,e))})}return A}function g(A,e,i){return e in A?Object.defineProperty(A,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):A[e]=i,A}var l=Object(n.d)({meow:{id:"gui.defaultProject.meow",defaultMessage:"Meow"},variable:{id:"gui.defaultProject.variable",defaultMessage:"my variable"}});l=s(s({},l),a.a);var c=function(A){return A.defaultMessage},u=function(A){var e=A||c;return{targets:[{isStage:!0,name:"Stage",variables:{"`jEk@4|i[#Fk?(8x)AV.-my variable":[e(l.variable),0]},lists:{},broadcasts:{},blocks:{},currentCostume:0,costumes:[{assetId:"cd21514d0531fdffb22204e0ec5ed84a",name:e(l.backdrop,{index:1}),md5ext:"cd21514d0531fdffb22204e0ec5ed84a.svg",dataFormat:"svg",rotationCenterX:240,rotationCenterY:180}],sounds:[],volume:70},{isStage:!1,name:"Marty",variables:{},lists:{},broadcasts:{},blocks:{},currentCostume:0,costumes:[{assetId:"8e41346f9e386948096815a9b5d6b3e0",name:e(l.costume,{index:1}),bitmapResolution:1,md5ext:"8e41346f9e386948096815a9b5d6b3e0.svg",dataFormat:"svg",rotationCenterX:48,rotationCenterY:50}],sounds:[{name:"Celebrate",assetId:"celebrate",md5ext:"celebrate.wav",dataFormat:"wav"},{name:"Confusion",assetId:"confused",md5ext:"confused.wav",dataFormat:"wav"},{name:"Disbelief",assetId:"disbelief",dataFormat:"wav",md5ext:"disbelief.wav"},{name:"Excited",assetId:"excited",dataFormat:"wav",md5ext:"excited.wav"},{name:"No Way!",assetId:"no_way",dataFormat:"wav",md5ext:"no_way.wav"},{name:"No!",assetId:"no",dataFormat:"wav",md5ext:"no.wav"},{name:"Whistle",assetId:"whistle",dataFormat:"wav",md5ext:"whistle.wav"}],volume:70,visible:!0,x:-100,y:0,size:100,direction:90,draggable:!1,rotationStyle:"all around"}],meta:{semver:"3.0.0",vm:"0.1.0",agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36"}}},B=i(705),d=i.n(B),E=i(706),h=i.n(E),C=function(A){var e=new("undefined"==typeof TextEncoder?i(1350).TextEncoder:TextEncoder),t=u(A);return[{id:0,assetType:"Project",dataFormat:"JSON",data:JSON.stringify(t)},{id:"cd21514d0531fdffb22204e0ec5ed84a",assetType:"ImageVector",dataFormat:"SVG",data:e.encode(d.a)},{id:"8e41346f9e386948096815a9b5d6b3e0",assetType:"ImageVector",dataFormat:"SVG",data:e.encode(h.a)}]};function w(A){"@babel/helpers - typeof";return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}function m(A,e){for(var i=0;i<e.length;i++){var t=e[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(A,t.key,t)}}function p(A,e){return(p=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A})(A,e)}function I(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(A){return!1}}();return function(){var i,t=f(A);if(e){var o=f(this).constructor;i=Reflect.construct(t,arguments,o)}else i=t.apply(this,arguments);return function(A,e){if(e&&("object"===w(e)||"function"==typeof e))return e;return function(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}(A)}(this,i)}}function f(A){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)})(A)}var Q=new(function(A){!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&p(A,e)}(i,o.a);var e=I(i);function i(){var A;return function(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(A=e.call(this)).cacheDefaultProject(),A}return function(A,e,i){e&&m(A.prototype,e),i&&m(A,i)}(i,[{key:"addOfficialScratchWebStores",value:function(){this.addWebStore([this.AssetType.Project],this.getProjectGetConfig.bind(this),this.getProjectCreateConfig.bind(this),this.getProjectUpdateConfig.bind(this)),this.addWebStore([this.AssetType.ImageVector,this.AssetType.ImageBitmap,this.AssetType.Sound],this.getAssetGetConfig.bind(this),this.getAssetCreateConfig.bind(this),this.getAssetCreateConfig.bind(this)),this.addWebStore([this.AssetType.Sound],function(A){return"static/extension-assets/scratch3_music/".concat(A.assetId,".").concat(A.dataFormat)})}},{key:"setProjectHost",value:function(A){this.projectHost=A}},{key:"setProjectToken",value:function(A){this.projectToken=A}},{key:"getProjectGetConfig",value:function(A){return"".concat(this.projectHost,"/").concat(A.assetId)+(this.projectToken?"?token=".concat(this.projectToken):"")}},{key:"getProjectCreateConfig",value:function(){return{url:"".concat(this.projectHost,"/"),withCredentials:!0}}},{key:"getProjectUpdateConfig",value:function(A){return{url:"".concat(this.projectHost,"/").concat(A.assetId),withCredentials:!0}}},{key:"setAssetHost",value:function(A){this.assetHost=A}},{key:"getAssetGetConfig",value:function(A){return"".concat(this.assetHost,"/internalapi/asset/").concat(A.assetId,".").concat(A.dataFormat,"/get/")}},{key:"getAssetCreateConfig",value:function(A){return{method:"post",url:"".concat(this.assetHost,"/").concat(A.assetId,".").concat(A.dataFormat),withCredentials:!0}}},{key:"setTranslatorFunction",value:function(A){this.translator=A,this.cacheDefaultProject()}},{key:"cacheDefaultProject",value:function(){var A=this;C(this.translator).forEach(function(e){return A.builtinHelper._store(A.AssetType[e.assetType],A.DataFormat[e.dataFormat],e.data,e.id)})}}]),i}());e.a=Q},function(A,e,i){"use strict";var t;function o(A,e,i){return e in A?Object.defineProperty(A,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):A[e]=i,A}i.d(e,"g",function(){return a}),i.d(e,"l",function(){return n}),i.d(e,"m",function(){return g}),i.d(e,"b",function(){return l}),i.d(e,"a",function(){return c}),i.d(e,"o",function(){return u}),i.d(e,"d",function(){return B}),i.d(e,"i",function(){return d}),i.d(e,"n",function(){return E}),i.d(e,"c",function(){return h}),i.d(e,"h",function(){return C}),i.d(e,"p",function(){return w}),i.d(e,"e",function(){return m}),i.d(e,"j",function(){return p}),i.d(e,"q",function(){return I}),i.d(e,"f",function(){return f}),i.d(e,"k",function(){return Q});var n=(o(t={},"aboutMenu",!1),o(t,"accountMenu",!1),o(t,"fileMenu",!1),o(t,"editMenu",!1),o(t,"languageMenu",!1),o(t,"loginMenu",!1),t),a=function(A,e){switch(void 0===A&&(A=n),e.type){case"scratch-gui/menus/OPEN_MENU":return Object.assign({},A,o({},e.menu,!0));case"scratch-gui/menus/CLOSE_MENU":return Object.assign({},A,o({},e.menu,!1));default:return A}},r=function(A){return{type:"scratch-gui/menus/OPEN_MENU",menu:A}},s=function(A){return{type:"scratch-gui/menus/CLOSE_MENU",menu:A}},g=function(){return r("accountMenu")},l=function(){return s("accountMenu")},c=function(A){return A.scratchGui.menus.accountMenu},u=function(){return r("fileMenu")},B=function(){return s("fileMenu")},d=function(A){return A.scratchGui.menus.fileMenu},E=function(){return r("editMenu")},h=function(){return s("editMenu")},C=function(A){return A.scratchGui.menus.editMenu},w=function(){return r("languageMenu")},m=function(){return s("languageMenu")},p=function(A){return A.scratchGui.menus.languageMenu},I=function(){return r("loginMenu")},f=function(){return s("loginMenu")},Q=function(A){return A.scratchGui.menus.loginMenu}},function(A,e,i){var t=i(1567);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){"use strict";var t=i(128),o=i(490),n=i(244),a=i(1252),r=i(193);function s(A){return A}function g(A,e){for(var i=0;i<A.length;++i)e[i]=255&A.charCodeAt(i);return e}e.newBlob=function(A,i){e.checkSupport("blob");try{return new Blob([A],{type:i})}catch(e){try{var t=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return t.append(A),t.getBlob(i)}catch(A){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(A,e,i){var t=[],o=0,n=A.length;if(n<=i)return String.fromCharCode.apply(null,A);for(;o<n;)"array"===e||"nodebuffer"===e?t.push(String.fromCharCode.apply(null,A.slice(o,Math.min(o+i,n)))):t.push(String.fromCharCode.apply(null,A.subarray(o,Math.min(o+i,n)))),o+=i;return t.join("")},stringifyByChar:function(A){for(var e="",i=0;i<A.length;i++)e+=String.fromCharCode(A[i]);return e},applyCanBeUsed:{uint8array:function(){try{return t.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(A){return!1}}(),nodebuffer:function(){try{return t.nodebuffer&&1===String.fromCharCode.apply(null,n.allocBuffer(1)).length}catch(A){return!1}}()}};function c(A){var i=65536,t=e.getTypeOf(A),o=!0;if("uint8array"===t?o=l.applyCanBeUsed.uint8array:"nodebuffer"===t&&(o=l.applyCanBeUsed.nodebuffer),o)for(;i>1;)try{return l.stringifyByChunk(A,t,i)}catch(A){i=Math.floor(i/2)}return l.stringifyByChar(A)}function u(A,e){for(var i=0;i<A.length;i++)e[i]=A[i];return e}e.applyFromCharCode=c;var B={};B.string={string:s,array:function(A){return g(A,new Array(A.length))},arraybuffer:function(A){return B.string.uint8array(A).buffer},uint8array:function(A){return g(A,new Uint8Array(A.length))},nodebuffer:function(A){return g(A,n.allocBuffer(A.length))}},B.array={string:c,array:s,arraybuffer:function(A){return new Uint8Array(A).buffer},uint8array:function(A){return new Uint8Array(A)},nodebuffer:function(A){return n.newBufferFrom(A)}},B.arraybuffer={string:function(A){return c(new Uint8Array(A))},array:function(A){return u(new Uint8Array(A),new Array(A.byteLength))},arraybuffer:s,uint8array:function(A){return new Uint8Array(A)},nodebuffer:function(A){return n.newBufferFrom(new Uint8Array(A))}},B.uint8array={string:c,array:function(A){return u(A,new Array(A.length))},arraybuffer:function(A){return A.buffer},uint8array:s,nodebuffer:function(A){return n.newBufferFrom(A)}},B.nodebuffer={string:c,array:function(A){return u(A,new Array(A.length))},arraybuffer:function(A){return B.nodebuffer.uint8array(A).buffer},uint8array:function(A){return u(A,new Uint8Array(A.length))},nodebuffer:s},e.transformTo=function(A,i){if(i||(i=""),!A)return i;e.checkSupport(A);var t=e.getTypeOf(i);return B[t][A](i)},e.getTypeOf=function(A){return"string"==typeof A?"string":"[object Array]"===Object.prototype.toString.call(A)?"array":t.nodebuffer&&n.isBuffer(A)?"nodebuffer":t.uint8array&&A instanceof Uint8Array?"uint8array":t.arraybuffer&&A instanceof ArrayBuffer?"arraybuffer":void 0},e.checkSupport=function(A){if(!t[A.toLowerCase()])throw new Error(A+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(A){var e,i,t="";for(i=0;i<(A||"").length;i++)t+="\\x"+((e=A.charCodeAt(i))<16?"0":"")+e.toString(16).toUpperCase();return t},e.delay=function(A,e,i){a(function(){A.apply(i||null,e||[])})},e.inherits=function(A,e){var i=function(){};i.prototype=e.prototype,A.prototype=new i},e.extend=function(){var A,e,i={};for(A=0;A<arguments.length;A++)for(e in arguments[A])arguments[A].hasOwnProperty(e)&&void 0===i[e]&&(i[e]=arguments[A][e]);return i},e.prepareContent=function(A,i,n,a,s){return r.Promise.resolve(i).then(function(A){return t.blob&&(A instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(A)))&&"undefined"!=typeof FileReader?new r.Promise(function(e,i){var t=new FileReader;t.onload=function(A){e(A.target.result)},t.onerror=function(A){i(A.target.error)},t.readAsArrayBuffer(A)}):A}).then(function(i){var l=e.getTypeOf(i);return l?("arraybuffer"===l?i=e.transformTo("uint8array",i):"string"===l&&(s?i=o.decode(i):n&&!0!==a&&(i=function(A){return g(A,t.uint8array?new Uint8Array(A.length):new Array(A.length))}(i))),i):r.Promise.reject(new Error("Can't read the data of '"+A+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},function(A,e,i){"use strict";A.exports=i(948)},function(A,e,i){"use strict";var t=i(4),o=i.n(t),n=i(0),a=i.n(n),r=i(1),s=i.n(r),g=i(299),l=i.n(g),c=["className","disabled","iconClassName","iconSrc","onClick","children"];function u(){return(u=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(A[t]=i[t])}return A}).apply(this,arguments)}function B(A,e){if(null==A)return{};var i,t,o=function(A,e){if(null==A)return{};var i,t,o={},n=Object.keys(A);for(t=0;t<n.length;t++)i=n[t],e.indexOf(i)>=0||(o[i]=A[i]);return o}(A,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);for(t=0;t<n.length;t++)i=n[t],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(A,i)&&(o[i]=A[i])}return o}var d=function(A){var e=A.className,i=A.disabled,t=A.iconClassName,n=A.iconSrc,a=A.onClick,r=A.children,g=B(A,c);i&&(a=function(){});var d=n&&s.a.createElement("img",{className:o()(t,l.a.icon),draggable:!1,src:n});return s.a.createElement("span",u({className:o()(l.a.outlinedButton,e),role:"button",onClick:a},g),d,s.a.createElement("div",{className:l.a.content},r))};d.propTypes={children:a.a.node,className:a.a.string,disabled:a.a.bool,iconClassName:a.a.string,iconSrc:a.a.string,onClick:a.a.func},e.a=d},function(A,e){A.exports={BOOLEAN:"Boolean",BUTTON:"button",COMMAND:"command",CONDITIONAL:"conditional",EVENT:"event",HAT:"hat",LOOP:"loop",REPORTER:"reporter"}},function(A,e,i){var t=i(1388);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){function t(A,e){for(var i=0;i<e.length;i++){var t=e[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(A,t.key,t)}}var o=i(188),n=function(){function A(){!function(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}(this,A)}return function(A,e,i){e&&t(A.prototype,e),i&&t(A,i)}(A,null,[{key:"toNumber",value:function(A){if("number"==typeof A)return Number.isNaN(A)?0:A;var e=Number(A);return Number.isNaN(e)?0:e}},{key:"toBoolean",value:function(A){return"boolean"==typeof A?A:"string"==typeof A?""!==A&&"0"!==A&&"false"!==A.toLowerCase():Boolean(A)}},{key:"toString",value:function(A){return String(A)}},{key:"toRgbColorList",value:function(e){var i=A.toRgbColorObject(e);return[i.r,i.g,i.b]}},{key:"toRgbColorObject",value:function(e){var i;return"string"==typeof e&&"#"===e.substring(0,1)?(i=o.hexToRgb(e))||(i={r:0,g:0,b:0,a:255}):i=o.decimalToRgb(A.toNumber(e)),i}},{key:"isWhiteSpace",value:function(A){return null===A||"string"==typeof A&&0===A.trim().length}},{key:"compare",value:function(e,i){var t=Number(e),o=Number(i);if(0===t&&A.isWhiteSpace(e)?t=NaN:0===o&&A.isWhiteSpace(i)&&(o=NaN),isNaN(t)||isNaN(o)){var n=String(e).toLowerCase(),a=String(i).toLowerCase();return n<a?-1:n>a?1:0}return t===1/0&&o===1/0||t===-1/0&&o===-1/0?0:t-o}},{key:"isInt",value:function(A){return"number"==typeof A?!!isNaN(A)||A===parseInt(A,10):"boolean"==typeof A||"string"==typeof A&&A.indexOf(".")<0}},{key:"LIST_INVALID",get:function(){return"INVALID"}},{key:"LIST_ALL",get:function(){return"ALL"}},{key:"toListIndex",value:function(e,i,t){if("number"!=typeof e){if("all"===e)return t?A.LIST_ALL:A.LIST_INVALID;if("last"===e)return i>0?i:A.LIST_INVALID;if("random"===e||"any"===e)return i>0?1+Math.floor(Math.random()*i):A.LIST_INVALID}return(e=Math.floor(A.toNumber(e)))<1||e>i?A.LIST_INVALID:e}}]),A}();A.exports=n},function(A,e,i){(function(e){var i=200,t="__lodash_hash_undefined__",o=1/0,n=9007199254740991,a="[object Arguments]",r="[object Function]",s="[object GeneratorFunction]",g="[object Symbol]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u="object"==typeof e&&e&&e.Object===Object&&e,B="object"==typeof self&&self&&self.Object===Object&&self,d=u||B||Function("return this")();function E(A,e){return!!(A?A.length:0)&&function(A,e,i){if(e!=e)return function(A,e,i,t){var o=A.length,n=i+(t?1:-1);for(;t?n--:++n<o;)if(e(A[n],n,A))return n;return-1}(A,m,i);var t=i-1,o=A.length;for(;++t<o;)if(A[t]===e)return t;return-1}(A,e,0)>-1}function h(A,e,i){for(var t=-1,o=A?A.length:0;++t<o;)if(i(e,A[t]))return!0;return!1}function C(A,e){for(var i=-1,t=A?A.length:0,o=Array(t);++i<t;)o[i]=e(A[i],i,A);return o}function w(A,e){for(var i=-1,t=e.length,o=A.length;++i<t;)A[o+i]=e[i];return A}function m(A){return A!=A}function p(A,e){return A.has(e)}function I(A,e){return function(i){return A(e(i))}}var f=Array.prototype,Q=Function.prototype,D=Object.prototype,M=d["__core-js_shared__"],b=function(){var A=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}(),y=Q.toString,T=D.hasOwnProperty,k=D.toString,F=RegExp("^"+y.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=d.Symbol,S=I(Object.getPrototypeOf,Object),N=D.propertyIsEnumerable,R=f.splice,O=v?v.isConcatSpreadable:void 0,Y=Object.getOwnPropertySymbols,U=Math.max,G=X(d,"Map"),H=X(Object,"create");function L(A){var e=-1,i=A?A.length:0;for(this.clear();++e<i;){var t=A[e];this.set(t[0],t[1])}}function P(A){var e=-1,i=A?A.length:0;for(this.clear();++e<i;){var t=A[e];this.set(t[0],t[1])}}function x(A){var e=-1,i=A?A.length:0;for(this.clear();++e<i;){var t=A[e];this.set(t[0],t[1])}}function _(A){var e=-1,i=A?A.length:0;for(this.__data__=new x;++e<i;)this.add(A[e])}function j(A,e){var i=oA(A)||tA(A)?function(A,e){for(var i=-1,t=Array(A);++i<A;)t[i]=e(i);return t}(A.length,String):[],t=i.length,o=!!t;for(var n in A)!e&&!T.call(A,n)||o&&("length"==n||AA(n,t))||i.push(n);return i}function J(A,e){for(var i=A.length;i--;)if(iA(A[i][0],e))return i;return-1}function z(A){return!(!rA(A)||function(A){return!!b&&b in A}(A))&&(aA(A)||function(A){var e=!1;if(null!=A&&"function"!=typeof A.toString)try{e=!!(A+"")}catch(A){}return e}(A)?F:l).test(function(A){if(null!=A){try{return y.call(A)}catch(A){}try{return A+""}catch(A){}}return""}(A))}function K(A){if(!rA(A))return function(A){var e=[];if(null!=A)for(var i in Object(A))e.push(i);return e}(A);var e=function(A){var e=A&&A.constructor,i="function"==typeof e&&e.prototype||D;return A===i}(A),i=[];for(var t in A)("constructor"!=t||!e&&T.call(A,t))&&i.push(t);return i}function W(A){return function(A,e,i){var t=e(A);return oA(A)?t:w(t,i(A))}(A,gA,q)}function V(A,e){var i=A.__data__;return function(A){var e=typeof A;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==A:null===A}(e)?i["string"==typeof e?"string":"hash"]:i.map}function X(A,e){var i=function(A,e){return null==A?void 0:A[e]}(A,e);return z(i)?i:void 0}L.prototype.clear=function(){this.__data__=H?H(null):{}},L.prototype.delete=function(A){return this.has(A)&&delete this.__data__[A]},L.prototype.get=function(A){var e=this.__data__;if(H){var i=e[A];return i===t?void 0:i}return T.call(e,A)?e[A]:void 0},L.prototype.has=function(A){var e=this.__data__;return H?void 0!==e[A]:T.call(e,A)},L.prototype.set=function(A,e){return this.__data__[A]=H&&void 0===e?t:e,this},P.prototype.clear=function(){this.__data__=[]},P.prototype.delete=function(A){var e=this.__data__,i=J(e,A);return!(i<0||(i==e.length-1?e.pop():R.call(e,i,1),0))},P.prototype.get=function(A){var e=this.__data__,i=J(e,A);return i<0?void 0:e[i][1]},P.prototype.has=function(A){return J(this.__data__,A)>-1},P.prototype.set=function(A,e){var i=this.__data__,t=J(i,A);return t<0?i.push([A,e]):i[t][1]=e,this},x.prototype.clear=function(){this.__data__={hash:new L,map:new(G||P),string:new L}},x.prototype.delete=function(A){return V(this,A).delete(A)},x.prototype.get=function(A){return V(this,A).get(A)},x.prototype.has=function(A){return V(this,A).has(A)},x.prototype.set=function(A,e){return V(this,A).set(A,e),this},_.prototype.add=_.prototype.push=function(A){return this.__data__.set(A,t),this},_.prototype.has=function(A){return this.__data__.has(A)};var Z=Y?I(Y,Object):cA,q=Y?function(A){for(var e=[];A;)w(e,Z(A)),A=S(A);return e}:cA;function $(A){return oA(A)||tA(A)||!!(O&&A&&A[O])}function AA(A,e){return!!(e=null==e?n:e)&&("number"==typeof A||c.test(A))&&A>-1&&A%1==0&&A<e}function eA(A){if("string"==typeof A||function(A){return"symbol"==typeof A||sA(A)&&k.call(A)==g}(A))return A;var e=A+"";return"0"==e&&1/A==-o?"-0":e}function iA(A,e){return A===e||A!=A&&e!=e}function tA(A){return function(A){return sA(A)&&nA(A)}(A)&&T.call(A,"callee")&&(!N.call(A,"callee")||k.call(A)==a)}var oA=Array.isArray;function nA(A){return null!=A&&function(A){return"number"==typeof A&&A>-1&&A%1==0&&A<=n}(A.length)&&!aA(A)}function aA(A){var e=rA(A)?k.call(A):"";return e==r||e==s}function rA(A){var e=typeof A;return!!A&&("object"==e||"function"==e)}function sA(A){return!!A&&"object"==typeof A}function gA(A){return nA(A)?j(A,!0):K(A)}var lA=function(A,e){return e=U(void 0===e?A.length-1:e,0),function(){for(var i=arguments,t=-1,o=U(i.length-e,0),n=Array(o);++t<o;)n[t]=i[e+t];t=-1;for(var a=Array(e+1);++t<e;)a[t]=i[t];return a[e]=n,function(A,e,i){switch(i.length){case 0:return A.call(e);case 1:return A.call(e,i[0]);case 2:return A.call(e,i[0],i[1]);case 3:return A.call(e,i[0],i[1],i[2])}return A.apply(e,i)}(A,this,a)}}(function(A,e){return null==A?{}:(e=C(function A(e,i,t,o,n){var a=-1,r=e.length;for(t||(t=$),n||(n=[]);++a<r;){var s=e[a];i>0&&t(s)?i>1?A(s,i-1,t,o,n):w(n,s):o||(n[n.length]=s)}return n}(e,1),eA),function(A,e){return function(A,e,i){for(var t=-1,o=e.length,n={};++t<o;){var a=e[t],r=A[a];i(r,a)&&(n[a]=r)}return n}(A=Object(A),e,function(e,i){return i in A})}(A,function(A,e,t,o){var n=-1,a=E,r=!0,s=A.length,g=[],l=e.length;if(!s)return g;t&&(e=C(e,function(A){return function(e){return A(e)}}(t))),o?(a=h,r=!1):e.length>=i&&(a=p,r=!1,e=new _(e));A:for(;++n<s;){var c=A[n],u=t?t(c):c;if(c=o||0!==c?c:0,r&&u==u){for(var B=l;B--;)if(e[B]===u)continue A;g.push(c)}else a(e,u,o)||g.push(c)}return g}(W(A),e)))});function cA(){return[]}A.exports=lA}).call(this,i(36))},function(A,e,i){var t=i(1492);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e){var i=A.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},function(A,e,i){"use strict";
23
+ !function(){"use strict";var i={}.hasOwnProperty;function o(){for(var A=[],e=0;e<arguments.length;e++){var t=arguments[e];if(t){var n=typeof t;if("string"===n||"number"===n)A.push(t);else if(Array.isArray(t))A.push(o.apply(null,t));else if("object"===n)for(var a in t)i.call(t,a)&&t[a]&&A.push(a)}}return A.join(" ")}A.exports?A.exports=o:void 0===(t=function(){return o}.apply(e,[]))||(A.exports=t)}()},function(A,e,i){"use strict";(function(e){A.exports=function(A){for(var i="undefined"!=typeof window&&"function"==typeof window.atob?window.atob(A):e.from(A,"base64").toString("binary"),t=new Uint8Array(i.length),o=0;o<i.length;++o)t[o]=i.charCodeAt(o);return t.buffer}}).call(this,i(56).Buffer)},function(A,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return s}),i.d(e,"c",function(){return a}),i.d(e,"d",function(){return n});var t=i(40),o=i.n(t),n=o()({large:null,small:null}),a=o()({large:null,largeConstrained:null,small:null}),r=.675,s={};s[a.large]=1,s[a.largeConstrained]=.85,s[a.small]=.5,e.e={standardStageWidth:480,standardStageHeight:360,fullSizeMinWidth:1096,fullSizePaintMinWidth:1250}},function(A,e,i){var t=i(1382);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){"use strict";e.__esModule=!0;var t=function(A){return A&&A.__esModule?A:{default:A}}(i(289));e.default=t.default||function(A){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(A[t]=i[t])}return A}},function(A,e,i){"use strict";i.d(e,"f",function(){return s}),i.d(e,"g",function(){return r}),i.d(e,"e",function(){return g}),i.d(e,"a",function(){return t}),i.d(e,"b",function(){return o}),i.d(e,"d",function(){return n}),i.d(e,"c",function(){return a});var t=0,o=1,n=2,a=3,r={activeTabIndex:t},s=function(A,e){switch(void 0===A&&(A=r),e.type){case"scratch-gui/navigation/ACTIVATE_TAB":return Object.assign({},A,{activeTabIndex:e.activeTabIndex});default:return A}},g=function(A){return{type:"scratch-gui/navigation/ACTIVATE_TAB",activeTabIndex:A}}},function(A,e,i){"use strict";e.__esModule=!0,e.default=function(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}},function(A,e,i){"use strict";e.a={SOUND:"SOUND",COSTUME:"COSTUME",SPRITE:"SPRITE",CODE:"CODE",BACKPACK_SOUND:"BACKPACK_SOUND",BACKPACK_COSTUME:"BACKPACK_COSTUME",BACKPACK_SPRITE:"BACKPACK_SPRITE",BACKPACK_CODE:"BACKPACK_CODE"}},function(A,e,i){"use strict";e.__esModule=!0;var t=function(A){return A&&A.__esModule?A:{default:A}}(i(561));e.default=function(){function A(A,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,t.default)(A,o.key,o)}}return function(e,i,t){return i&&A(e.prototype,i),t&&A(e,t),e}}()},function(A,e,i){var t=i(1520);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){"use strict";var t;function o(A,e,i){return e in A?Object.defineProperty(A,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):A[e]=i,A}i.d(e,"k",function(){return a}),i.d(e,"l",function(){return n}),i.d(e,"m",function(){return g}),i.d(e,"o",function(){return l}),i.d(e,"p",function(){return c}),i.d(e,"q",function(){return u}),i.d(e,"r",function(){return B}),i.d(e,"t",function(){return d}),i.d(e,"s",function(){return E}),i.d(e,"u",function(){return C}),i.d(e,"n",function(){return h}),i.d(e,"a",function(){return w}),i.d(e,"c",function(){return m}),i.d(e,"d",function(){return p}),i.d(e,"e",function(){return I}),i.d(e,"h",function(){return Q}),i.d(e,"f",function(){return D}),i.d(e,"g",function(){return M}),i.d(e,"i",function(){return f}),i.d(e,"j",function(){return b}),i.d(e,"b",function(){return y});var n=(o(t={},"backdropLibrary",!1),o(t,"costumeLibrary",!1),o(t,"extensionLibrary",!1),o(t,"loadingProject",!1),o(t,"telemetryModal",!1),o(t,"soundLibrary",!1),o(t,"spriteLibrary",!1),o(t,"soundRecorder",!1),o(t,"connectionModal",!1),o(t,"tipsLibrary",!1),t),a=function(A,e){switch(void 0===A&&(A=n),e.type){case"scratch-gui/modals/OPEN_MODAL":return Object.assign({},A,o({},e.modal,!0));case"scratch-gui/modals/CLOSE_MODAL":return Object.assign({},A,o({},e.modal,!1));default:return A}},r=function(A){return{type:"scratch-gui/modals/OPEN_MODAL",modal:A}},s=function(A){return{type:"scratch-gui/modals/CLOSE_MODAL",modal:A}},g=function(){return r("backdropLibrary")},l=function(){return r("costumeLibrary")},c=function(){return r("extensionLibrary")},u=function(){return r("loadingProject")},B=function(){return r("soundLibrary")},d=function(){return r("spriteLibrary")},E=function(){return r("soundRecorder")},h=function(){return r("connectionModal")},C=function(){return r("tipsLibrary")},w=function(){return s("backdropLibrary")},m=function(){return s("costumeLibrary")},p=function(){return s("extensionLibrary")},I=function(){return s("loadingProject")},f=function(){return s("telemetryModal")},Q=function(){return s("spriteLibrary")},D=function(){return s("soundLibrary")},M=function(){return s("soundRecorder")},b=function(){return s("tipsLibrary")},y=function(){return s("connectionModal")}},function(A,e,i){var t=i(1559);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){"use strict";var t=i(92),o=i.n(t);o.a.enable(),e.a=o()("gui")},function(A,e,i){var t=i(1391);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){"use strict";e.__esModule=!0;var t=function(A){return A&&A.__esModule?A:{default:A}}(i(562));e.default=function(A,e){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,t.default)(e))&&"function"!=typeof e?A:e}},function(A,e,i){var t=i(1570);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){var t=i(1530);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){var t=i(1389);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){var t=i(1528);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){A.exports={default:i(1571),__esModule:!0}},function(A,e,i){"use strict";e.__esModule=!0;var t=a(i(1594)),o=a(i(1598)),n=a(i(562));function a(A){return A&&A.__esModule?A:{default:A}}e.default=function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,n.default)(e)));A.prototype=(0,o.default)(e&&e.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.default?(0,t.default)(A,e):A.__proto__=e)}},function(A,e,i){"use strict";i.d(e,"d",function(){return r}),i.d(e,"a",function(){return n}),i.d(e,"b",function(){return s}),i.d(e,"c",function(){return g}),i.d(e,"e",function(){return a}),i.d(e,"f",function(){return u}),i.d(e,"g",function(){return c}),i.d(e,"h",function(){return l});var t=i(73),o=i(134),n={visible:!0,alertsList:[]},a=function(A){return A.filter(function(A){return A.alertType===t.b.STANDARD||A.alertType===t.b.EXTENSION})},r=function(A,e){switch(void 0===A&&(A=n),e.type){case"scratch-gui/alerts/SHOW_ALERT":var i=e.alertId;if(i){var a={alertId:i,level:t.a.WARN},r=t.c.find(function(A){return A.alertId===i});if(r){var s=A.alertsList.filter(function(A){return!r.clearList||-1===r.clearList.indexOf(A.alertId)});return e.data&&e.data.message&&(a.message=e.data.message),a.alertType=r.alertType||t.b.STANDARD,a.closeButton=r.closeButton,a.content=r.content,a.iconURL=r.iconURL,a.iconSpinner=r.iconSpinner,a.level=r.level,a.showDownload=r.showDownload,a.showSaveNow=r.showSaveNow,s.push(a),Object.assign({},A,{alertsList:s})}}return A;case"scratch-gui/alerts/SHOW_EXTENSION_ALERT":var g=e.data.extensionId;if(g){var l=o.a.find(function(A){return A.extensionId===g});if(l){var c=A.alertsList.slice(),u={alertType:t.b.EXTENSION,closeButton:!0,extensionId:g,extensionName:l.name,iconURL:l.connectionSmallIconURL,level:t.a.WARN,showReconnect:!0};return c.push(u),Object.assign({},A,{alertsList:c})}}return A;case"scratch-gui/alerts/CLOSE_ALERT_WITH_ID":case"scratch-gui/alerts/CLOSE_ALERT":if(e.alertId&&(e.index=A.alertsList.findIndex(function(A){return A.alertId===e.alertId}),-1===e.index))return A;var B=A.alertsList.slice();return B.splice(e.index,1),Object.assign({},A,{alertsList:B});case"scratch-gui/alerts/CLOSE_ALERTS_WITH_ID":return Object.assign({},A,{alertsList:A.alertsList.filter(function(A){return A.alertId!==e.alertId})});default:return A}},s=function(A){return{type:"scratch-gui/alerts/CLOSE_ALERT",index:A}},g=function(A){return{type:"scratch-gui/alerts/CLOSE_ALERT_WITH_ID",alertId:A}},l=function(A){return{type:"scratch-gui/alerts/SHOW_ALERT",alertId:A}},c=function(A){return{type:"scratch-gui/alerts/SHOW_EXTENSION_ALERT",data:A}},u=function(A,e){var i=t.c.find(function(A){return A.alertId===e});i&&(A(l(e)),i.maxDisplaySecs&&setTimeout(function(){A(function(A){return{type:"scratch-gui/alerts/CLOSE_ALERTS_WITH_ID",alertId:A}}(e))},1e3*i.maxDisplaySecs))}},function(A,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(A){"object"==typeof window&&(i=window)}A.exports=i},function(A,e,i){var t=i(1486);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){var t=i(1526);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){var t=i(454);t.enable(),A.exports=t("vm")},function(A,e,i){"use strict";A.exports=function(A){var e,i={};if(!(A instanceof Object)||Array.isArray(A))throw new Error("keyMirror(...): Argument must be an object.");for(e in A)A.hasOwnProperty(e)&&(i[e]=e);return i}},function(A,e,i){"use strict";i.d(e,"e",function(){return a}),i.d(e,"c",function(){return g}),i.d(e,"b",function(){return c}),i.d(e,"a",function(){return d}),i.d(e,"d",function(){return u});var t=i(177),o=i(365),n={INIT:"@@redux/INIT"};function a(A,e,i){var r;if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error("Expected the enhancer to be a function.");return i(a)(A,e)}if("function"!=typeof A)throw new Error("Expected the reducer to be a function.");var s=A,g=e,l=[],c=l,u=!1;function B(){c===l&&(c=l.slice())}function d(){return g}function E(A){if("function"!=typeof A)throw new Error("Expected listener to be a function.");var e=!0;return B(),c.push(A),function(){if(e){e=!1,B();var i=c.indexOf(A);c.splice(i,1)}}}function h(A){if(!Object(t.a)(A))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===A.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,g=s(g,A)}finally{u=!1}for(var e=l=c,i=0;i<e.length;i++){(0,e[i])()}return A}return h({type:n.INIT}),(r={dispatch:h,subscribe:E,getState:d,replaceReducer:function(A){if("function"!=typeof A)throw new Error("Expected the nextReducer to be a function.");s=A,h({type:n.INIT})}})[o.a]=function(){var A,e=E;return(A={subscribe:function(A){if("object"!=typeof A)throw new TypeError("Expected the observer to be an object.");function i(){A.next&&A.next(d())}return i(),{unsubscribe:e(i)}}})[o.a]=function(){return this},A},r}function r(A){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(A);try{throw new Error(A)}catch(A){}}function s(A,e){var i=e&&e.type;return"Given action "+(i&&'"'+i.toString()+'"'||"an action")+', reducer "'+A+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function g(A){for(var e=Object.keys(A),i={},o=0;o<e.length;o++){var a=e[o];void 0===A[a]&&r('No reducer provided for key "'+a+'"'),"function"==typeof A[a]&&(i[a]=A[a])}var g=Object.keys(i),l=void 0;l={};var c=void 0;try{!function(A){Object.keys(A).forEach(function(e){var i=A[e];if(void 0===i(void 0,{type:n.INIT}))throw new Error('Reducer "'+e+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===i(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+n.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(i)}catch(A){c=A}return function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(c)throw c;var o=function(A,e,i,o){var a=Object.keys(e),r=i&&i.type===n.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===a.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Object(t.a)(A))return"The "+r+' has unexpected type of "'+{}.toString.call(A).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following keys: "'+a.join('", "')+'"';var s=Object.keys(A).filter(function(A){return!e.hasOwnProperty(A)&&!o[A]});return s.forEach(function(A){o[A]=!0}),s.length>0?"Unexpected "+(s.length>1?"keys":"key")+' "'+s.join('", "')+'" found in '+r+'. Expected to find one of the known reducer keys instead: "'+a.join('", "')+'". Unexpected keys will be ignored.':void 0}(A,i,e,l);o&&r(o);for(var a=!1,u={},B=0;B<g.length;B++){var d=g[B],E=i[d],h=A[d],C=E(h,e);if(void 0===C){var w=s(d,e);throw new Error(w)}u[d]=C,a=a||C!==h}return a?u:A}}function l(A,e){return function(){return e(A.apply(void 0,arguments))}}function c(A,e){if("function"==typeof A)return l(A,e);if("object"!=typeof A||null===A)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===A?"null":typeof A)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var i=Object.keys(A),t={},o=0;o<i.length;o++){var n=i[o],a=A[n];"function"==typeof a&&(t[n]=l(a,e))}return t}function u(){for(var A=arguments.length,e=Array(A),i=0;i<A;i++)e[i]=arguments[i];return 0===e.length?function(A){return A}:1===e.length?e[0]:e.reduce(function(A,e){return function(){return A(e.apply(void 0,arguments))}})}var B=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(A[t]=i[t])}return A};function d(){for(var A=arguments.length,e=Array(A),i=0;i<A;i++)e[i]=arguments[i];return function(A){return function(i,t,o){var n,a=A(i,t,o),r=a.dispatch,s={getState:a.getState,dispatch:function(A){return r(A)}};return n=e.map(function(A){return A(s)}),r=u.apply(void 0,n)(a.dispatch),B({},a,{dispatch:r})}}}function E(){}"string"==typeof E.name&&"isCrushed"!==E.name&&r("You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) to ensure you have the correct code for your production build.")},function(A,e,i){"use strict";var t=i(704),o=i.n(t),n=i(2),a=i(87);function r(A,e){var i=Object.keys(A);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(A);e&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable})),i.push.apply(i,t)}return i}function s(A){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach(function(e){g(A,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(i,e))})}return A}function g(A,e,i){return e in A?Object.defineProperty(A,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):A[e]=i,A}var l=Object(n.d)({meow:{id:"gui.defaultProject.meow",defaultMessage:"Meow"},variable:{id:"gui.defaultProject.variable",defaultMessage:"my variable"}});l=s(s({},l),a.a);var c=function(A){return A.defaultMessage},u=function(A){var e=A||c;return{targets:[{isStage:!0,name:"Stage",variables:{"`jEk@4|i[#Fk?(8x)AV.-my variable":[e(l.variable),0]},lists:{},broadcasts:{},blocks:{},currentCostume:0,costumes:[{assetId:"cd21514d0531fdffb22204e0ec5ed84a",name:e(l.backdrop,{index:1}),md5ext:"cd21514d0531fdffb22204e0ec5ed84a.svg",dataFormat:"svg",rotationCenterX:240,rotationCenterY:180}],sounds:[],volume:70},{isStage:!1,name:"Marty",variables:{},lists:{},broadcasts:{},blocks:{},currentCostume:0,costumes:[{assetId:"8e41346f9e386948096815a9b5d6b3e0",name:e(l.costume,{index:1}),bitmapResolution:1,md5ext:"8e41346f9e386948096815a9b5d6b3e0.svg",dataFormat:"svg",rotationCenterX:48,rotationCenterY:50}],sounds:[{name:"Celebrate",assetId:"celebrate",md5ext:"celebrate.wav",dataFormat:"wav",format:"",rate:11025,sampleCount:92169}],volume:70,visible:!0,x:-100,y:0,size:100,direction:90,draggable:!1,rotationStyle:"all around"}],meta:{semver:"3.0.0",vm:"0.1.0",agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36"}}},B=i(705),d=i.n(B),E=i(706),h=i.n(E),C=function(A){var e=new("undefined"==typeof TextEncoder?i(1350).TextEncoder:TextEncoder),t=u(A);return[{id:0,assetType:"Project",dataFormat:"JSON",data:JSON.stringify(t)},{id:"cd21514d0531fdffb22204e0ec5ed84a",assetType:"ImageVector",dataFormat:"SVG",data:e.encode(d.a)},{id:"8e41346f9e386948096815a9b5d6b3e0",assetType:"ImageVector",dataFormat:"SVG",data:e.encode(h.a)}]};function w(A){"@babel/helpers - typeof";return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}function m(A,e){for(var i=0;i<e.length;i++){var t=e[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(A,t.key,t)}}function p(A,e){return(p=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A})(A,e)}function I(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(A){return!1}}();return function(){var i,t=f(A);if(e){var o=f(this).constructor;i=Reflect.construct(t,arguments,o)}else i=t.apply(this,arguments);return function(A,e){if(e&&("object"===w(e)||"function"==typeof e))return e;return function(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}(A)}(this,i)}}function f(A){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)})(A)}var Q=new(function(A){!function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&p(A,e)}(i,o.a);var e=I(i);function i(){var A;return function(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(A=e.call(this)).cacheDefaultProject(),A}return function(A,e,i){e&&m(A.prototype,e),i&&m(A,i)}(i,[{key:"addOfficialScratchWebStores",value:function(){this.addWebStore([this.AssetType.Project],this.getProjectGetConfig.bind(this),this.getProjectCreateConfig.bind(this),this.getProjectUpdateConfig.bind(this)),this.addWebStore([this.AssetType.ImageVector,this.AssetType.ImageBitmap,this.AssetType.Sound],this.getAssetGetConfig.bind(this),this.getAssetCreateConfig.bind(this),this.getAssetCreateConfig.bind(this)),this.addWebStore([this.AssetType.Sound],function(A){return"static/extension-assets/scratch3_music/".concat(A.assetId,".").concat(A.dataFormat)})}},{key:"setProjectHost",value:function(A){this.projectHost=A}},{key:"setProjectToken",value:function(A){this.projectToken=A}},{key:"getProjectGetConfig",value:function(A){return"".concat(this.projectHost,"/").concat(A.assetId)+(this.projectToken?"?token=".concat(this.projectToken):"")}},{key:"getProjectCreateConfig",value:function(){return{url:"".concat(this.projectHost,"/"),withCredentials:!0}}},{key:"getProjectUpdateConfig",value:function(A){return{url:"".concat(this.projectHost,"/").concat(A.assetId),withCredentials:!0}}},{key:"setAssetHost",value:function(A){this.assetHost=A}},{key:"getAssetGetConfig",value:function(A){return"".concat(this.assetHost,"/internalapi/asset/").concat(A.assetId,".").concat(A.dataFormat,"/get/")}},{key:"getAssetCreateConfig",value:function(A){return{method:"post",url:"".concat(this.assetHost,"/").concat(A.assetId,".").concat(A.dataFormat),withCredentials:!0}}},{key:"setTranslatorFunction",value:function(A){this.translator=A,this.cacheDefaultProject()}},{key:"cacheDefaultProject",value:function(){var A=this;C(this.translator).forEach(function(e){return A.builtinHelper._store(A.AssetType[e.assetType],A.DataFormat[e.dataFormat],e.data,e.id)})}}]),i}());e.a=Q},function(A,e,i){"use strict";var t;function o(A,e,i){return e in A?Object.defineProperty(A,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):A[e]=i,A}i.d(e,"g",function(){return a}),i.d(e,"l",function(){return n}),i.d(e,"m",function(){return g}),i.d(e,"b",function(){return l}),i.d(e,"a",function(){return c}),i.d(e,"o",function(){return u}),i.d(e,"d",function(){return B}),i.d(e,"i",function(){return d}),i.d(e,"n",function(){return E}),i.d(e,"c",function(){return h}),i.d(e,"h",function(){return C}),i.d(e,"p",function(){return w}),i.d(e,"e",function(){return m}),i.d(e,"j",function(){return p}),i.d(e,"q",function(){return I}),i.d(e,"f",function(){return f}),i.d(e,"k",function(){return Q});var n=(o(t={},"aboutMenu",!1),o(t,"accountMenu",!1),o(t,"fileMenu",!1),o(t,"editMenu",!1),o(t,"languageMenu",!1),o(t,"loginMenu",!1),t),a=function(A,e){switch(void 0===A&&(A=n),e.type){case"scratch-gui/menus/OPEN_MENU":return Object.assign({},A,o({},e.menu,!0));case"scratch-gui/menus/CLOSE_MENU":return Object.assign({},A,o({},e.menu,!1));default:return A}},r=function(A){return{type:"scratch-gui/menus/OPEN_MENU",menu:A}},s=function(A){return{type:"scratch-gui/menus/CLOSE_MENU",menu:A}},g=function(){return r("accountMenu")},l=function(){return s("accountMenu")},c=function(A){return A.scratchGui.menus.accountMenu},u=function(){return r("fileMenu")},B=function(){return s("fileMenu")},d=function(A){return A.scratchGui.menus.fileMenu},E=function(){return r("editMenu")},h=function(){return s("editMenu")},C=function(A){return A.scratchGui.menus.editMenu},w=function(){return r("languageMenu")},m=function(){return s("languageMenu")},p=function(A){return A.scratchGui.menus.languageMenu},I=function(){return r("loginMenu")},f=function(){return s("loginMenu")},Q=function(A){return A.scratchGui.menus.loginMenu}},function(A,e,i){var t=i(1567);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){"use strict";var t=i(128),o=i(490),n=i(244),a=i(1252),r=i(193);function s(A){return A}function g(A,e){for(var i=0;i<A.length;++i)e[i]=255&A.charCodeAt(i);return e}e.newBlob=function(A,i){e.checkSupport("blob");try{return new Blob([A],{type:i})}catch(e){try{var t=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return t.append(A),t.getBlob(i)}catch(A){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(A,e,i){var t=[],o=0,n=A.length;if(n<=i)return String.fromCharCode.apply(null,A);for(;o<n;)"array"===e||"nodebuffer"===e?t.push(String.fromCharCode.apply(null,A.slice(o,Math.min(o+i,n)))):t.push(String.fromCharCode.apply(null,A.subarray(o,Math.min(o+i,n)))),o+=i;return t.join("")},stringifyByChar:function(A){for(var e="",i=0;i<A.length;i++)e+=String.fromCharCode(A[i]);return e},applyCanBeUsed:{uint8array:function(){try{return t.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(A){return!1}}(),nodebuffer:function(){try{return t.nodebuffer&&1===String.fromCharCode.apply(null,n.allocBuffer(1)).length}catch(A){return!1}}()}};function c(A){var i=65536,t=e.getTypeOf(A),o=!0;if("uint8array"===t?o=l.applyCanBeUsed.uint8array:"nodebuffer"===t&&(o=l.applyCanBeUsed.nodebuffer),o)for(;i>1;)try{return l.stringifyByChunk(A,t,i)}catch(A){i=Math.floor(i/2)}return l.stringifyByChar(A)}function u(A,e){for(var i=0;i<A.length;i++)e[i]=A[i];return e}e.applyFromCharCode=c;var B={};B.string={string:s,array:function(A){return g(A,new Array(A.length))},arraybuffer:function(A){return B.string.uint8array(A).buffer},uint8array:function(A){return g(A,new Uint8Array(A.length))},nodebuffer:function(A){return g(A,n.allocBuffer(A.length))}},B.array={string:c,array:s,arraybuffer:function(A){return new Uint8Array(A).buffer},uint8array:function(A){return new Uint8Array(A)},nodebuffer:function(A){return n.newBufferFrom(A)}},B.arraybuffer={string:function(A){return c(new Uint8Array(A))},array:function(A){return u(new Uint8Array(A),new Array(A.byteLength))},arraybuffer:s,uint8array:function(A){return new Uint8Array(A)},nodebuffer:function(A){return n.newBufferFrom(new Uint8Array(A))}},B.uint8array={string:c,array:function(A){return u(A,new Array(A.length))},arraybuffer:function(A){return A.buffer},uint8array:s,nodebuffer:function(A){return n.newBufferFrom(A)}},B.nodebuffer={string:c,array:function(A){return u(A,new Array(A.length))},arraybuffer:function(A){return B.nodebuffer.uint8array(A).buffer},uint8array:function(A){return u(A,new Uint8Array(A.length))},nodebuffer:s},e.transformTo=function(A,i){if(i||(i=""),!A)return i;e.checkSupport(A);var t=e.getTypeOf(i);return B[t][A](i)},e.getTypeOf=function(A){return"string"==typeof A?"string":"[object Array]"===Object.prototype.toString.call(A)?"array":t.nodebuffer&&n.isBuffer(A)?"nodebuffer":t.uint8array&&A instanceof Uint8Array?"uint8array":t.arraybuffer&&A instanceof ArrayBuffer?"arraybuffer":void 0},e.checkSupport=function(A){if(!t[A.toLowerCase()])throw new Error(A+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(A){var e,i,t="";for(i=0;i<(A||"").length;i++)t+="\\x"+((e=A.charCodeAt(i))<16?"0":"")+e.toString(16).toUpperCase();return t},e.delay=function(A,e,i){a(function(){A.apply(i||null,e||[])})},e.inherits=function(A,e){var i=function(){};i.prototype=e.prototype,A.prototype=new i},e.extend=function(){var A,e,i={};for(A=0;A<arguments.length;A++)for(e in arguments[A])arguments[A].hasOwnProperty(e)&&void 0===i[e]&&(i[e]=arguments[A][e]);return i},e.prepareContent=function(A,i,n,a,s){return r.Promise.resolve(i).then(function(A){return t.blob&&(A instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(A)))&&"undefined"!=typeof FileReader?new r.Promise(function(e,i){var t=new FileReader;t.onload=function(A){e(A.target.result)},t.onerror=function(A){i(A.target.error)},t.readAsArrayBuffer(A)}):A}).then(function(i){var l=e.getTypeOf(i);return l?("arraybuffer"===l?i=e.transformTo("uint8array",i):"string"===l&&(s?i=o.decode(i):n&&!0!==a&&(i=function(A){return g(A,t.uint8array?new Uint8Array(A.length):new Array(A.length))}(i))),i):r.Promise.reject(new Error("Can't read the data of '"+A+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},function(A,e,i){"use strict";A.exports=i(948)},function(A,e,i){"use strict";var t=i(4),o=i.n(t),n=i(0),a=i.n(n),r=i(1),s=i.n(r),g=i(299),l=i.n(g),c=["className","disabled","iconClassName","iconSrc","onClick","children"];function u(){return(u=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(A[t]=i[t])}return A}).apply(this,arguments)}function B(A,e){if(null==A)return{};var i,t,o=function(A,e){if(null==A)return{};var i,t,o={},n=Object.keys(A);for(t=0;t<n.length;t++)i=n[t],e.indexOf(i)>=0||(o[i]=A[i]);return o}(A,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);for(t=0;t<n.length;t++)i=n[t],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(A,i)&&(o[i]=A[i])}return o}var d=function(A){var e=A.className,i=A.disabled,t=A.iconClassName,n=A.iconSrc,a=A.onClick,r=A.children,g=B(A,c);i&&(a=function(){});var d=n&&s.a.createElement("img",{className:o()(t,l.a.icon),draggable:!1,src:n});return s.a.createElement("span",u({className:o()(l.a.outlinedButton,e),role:"button",onClick:a},g),d,s.a.createElement("div",{className:l.a.content},r))};d.propTypes={children:a.a.node,className:a.a.string,disabled:a.a.bool,iconClassName:a.a.string,iconSrc:a.a.string,onClick:a.a.func},e.a=d},function(A,e){A.exports={BOOLEAN:"Boolean",BUTTON:"button",COMMAND:"command",CONDITIONAL:"conditional",EVENT:"event",HAT:"hat",LOOP:"loop",REPORTER:"reporter"}},function(A,e,i){var t=i(1388);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e,i){function t(A,e){for(var i=0;i<e.length;i++){var t=e[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(A,t.key,t)}}var o=i(188),n=function(){function A(){!function(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}(this,A)}return function(A,e,i){e&&t(A.prototype,e),i&&t(A,i)}(A,null,[{key:"toNumber",value:function(A){if("number"==typeof A)return Number.isNaN(A)?0:A;var e=Number(A);return Number.isNaN(e)?0:e}},{key:"toBoolean",value:function(A){return"boolean"==typeof A?A:"string"==typeof A?""!==A&&"0"!==A&&"false"!==A.toLowerCase():Boolean(A)}},{key:"toString",value:function(A){return String(A)}},{key:"toRgbColorList",value:function(e){var i=A.toRgbColorObject(e);return[i.r,i.g,i.b]}},{key:"toRgbColorObject",value:function(e){var i;return"string"==typeof e&&"#"===e.substring(0,1)?(i=o.hexToRgb(e))||(i={r:0,g:0,b:0,a:255}):i=o.decimalToRgb(A.toNumber(e)),i}},{key:"isWhiteSpace",value:function(A){return null===A||"string"==typeof A&&0===A.trim().length}},{key:"compare",value:function(e,i){var t=Number(e),o=Number(i);if(0===t&&A.isWhiteSpace(e)?t=NaN:0===o&&A.isWhiteSpace(i)&&(o=NaN),isNaN(t)||isNaN(o)){var n=String(e).toLowerCase(),a=String(i).toLowerCase();return n<a?-1:n>a?1:0}return t===1/0&&o===1/0||t===-1/0&&o===-1/0?0:t-o}},{key:"isInt",value:function(A){return"number"==typeof A?!!isNaN(A)||A===parseInt(A,10):"boolean"==typeof A||"string"==typeof A&&A.indexOf(".")<0}},{key:"LIST_INVALID",get:function(){return"INVALID"}},{key:"LIST_ALL",get:function(){return"ALL"}},{key:"toListIndex",value:function(e,i,t){if("number"!=typeof e){if("all"===e)return t?A.LIST_ALL:A.LIST_INVALID;if("last"===e)return i>0?i:A.LIST_INVALID;if("random"===e||"any"===e)return i>0?1+Math.floor(Math.random()*i):A.LIST_INVALID}return(e=Math.floor(A.toNumber(e)))<1||e>i?A.LIST_INVALID:e}}]),A}();A.exports=n},function(A,e,i){(function(e){var i=200,t="__lodash_hash_undefined__",o=1/0,n=9007199254740991,a="[object Arguments]",r="[object Function]",s="[object GeneratorFunction]",g="[object Symbol]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u="object"==typeof e&&e&&e.Object===Object&&e,B="object"==typeof self&&self&&self.Object===Object&&self,d=u||B||Function("return this")();function E(A,e){return!!(A?A.length:0)&&function(A,e,i){if(e!=e)return function(A,e,i,t){var o=A.length,n=i+(t?1:-1);for(;t?n--:++n<o;)if(e(A[n],n,A))return n;return-1}(A,m,i);var t=i-1,o=A.length;for(;++t<o;)if(A[t]===e)return t;return-1}(A,e,0)>-1}function h(A,e,i){for(var t=-1,o=A?A.length:0;++t<o;)if(i(e,A[t]))return!0;return!1}function C(A,e){for(var i=-1,t=A?A.length:0,o=Array(t);++i<t;)o[i]=e(A[i],i,A);return o}function w(A,e){for(var i=-1,t=e.length,o=A.length;++i<t;)A[o+i]=e[i];return A}function m(A){return A!=A}function p(A,e){return A.has(e)}function I(A,e){return function(i){return A(e(i))}}var f=Array.prototype,Q=Function.prototype,D=Object.prototype,M=d["__core-js_shared__"],b=function(){var A=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}(),y=Q.toString,T=D.hasOwnProperty,k=D.toString,F=RegExp("^"+y.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=d.Symbol,S=I(Object.getPrototypeOf,Object),N=D.propertyIsEnumerable,R=f.splice,O=v?v.isConcatSpreadable:void 0,Y=Object.getOwnPropertySymbols,U=Math.max,G=X(d,"Map"),H=X(Object,"create");function L(A){var e=-1,i=A?A.length:0;for(this.clear();++e<i;){var t=A[e];this.set(t[0],t[1])}}function P(A){var e=-1,i=A?A.length:0;for(this.clear();++e<i;){var t=A[e];this.set(t[0],t[1])}}function x(A){var e=-1,i=A?A.length:0;for(this.clear();++e<i;){var t=A[e];this.set(t[0],t[1])}}function _(A){var e=-1,i=A?A.length:0;for(this.__data__=new x;++e<i;)this.add(A[e])}function j(A,e){var i=oA(A)||tA(A)?function(A,e){for(var i=-1,t=Array(A);++i<A;)t[i]=e(i);return t}(A.length,String):[],t=i.length,o=!!t;for(var n in A)!e&&!T.call(A,n)||o&&("length"==n||AA(n,t))||i.push(n);return i}function J(A,e){for(var i=A.length;i--;)if(iA(A[i][0],e))return i;return-1}function z(A){return!(!rA(A)||function(A){return!!b&&b in A}(A))&&(aA(A)||function(A){var e=!1;if(null!=A&&"function"!=typeof A.toString)try{e=!!(A+"")}catch(A){}return e}(A)?F:l).test(function(A){if(null!=A){try{return y.call(A)}catch(A){}try{return A+""}catch(A){}}return""}(A))}function K(A){if(!rA(A))return function(A){var e=[];if(null!=A)for(var i in Object(A))e.push(i);return e}(A);var e=function(A){var e=A&&A.constructor,i="function"==typeof e&&e.prototype||D;return A===i}(A),i=[];for(var t in A)("constructor"!=t||!e&&T.call(A,t))&&i.push(t);return i}function W(A){return function(A,e,i){var t=e(A);return oA(A)?t:w(t,i(A))}(A,gA,q)}function V(A,e){var i=A.__data__;return function(A){var e=typeof A;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==A:null===A}(e)?i["string"==typeof e?"string":"hash"]:i.map}function X(A,e){var i=function(A,e){return null==A?void 0:A[e]}(A,e);return z(i)?i:void 0}L.prototype.clear=function(){this.__data__=H?H(null):{}},L.prototype.delete=function(A){return this.has(A)&&delete this.__data__[A]},L.prototype.get=function(A){var e=this.__data__;if(H){var i=e[A];return i===t?void 0:i}return T.call(e,A)?e[A]:void 0},L.prototype.has=function(A){var e=this.__data__;return H?void 0!==e[A]:T.call(e,A)},L.prototype.set=function(A,e){return this.__data__[A]=H&&void 0===e?t:e,this},P.prototype.clear=function(){this.__data__=[]},P.prototype.delete=function(A){var e=this.__data__,i=J(e,A);return!(i<0||(i==e.length-1?e.pop():R.call(e,i,1),0))},P.prototype.get=function(A){var e=this.__data__,i=J(e,A);return i<0?void 0:e[i][1]},P.prototype.has=function(A){return J(this.__data__,A)>-1},P.prototype.set=function(A,e){var i=this.__data__,t=J(i,A);return t<0?i.push([A,e]):i[t][1]=e,this},x.prototype.clear=function(){this.__data__={hash:new L,map:new(G||P),string:new L}},x.prototype.delete=function(A){return V(this,A).delete(A)},x.prototype.get=function(A){return V(this,A).get(A)},x.prototype.has=function(A){return V(this,A).has(A)},x.prototype.set=function(A,e){return V(this,A).set(A,e),this},_.prototype.add=_.prototype.push=function(A){return this.__data__.set(A,t),this},_.prototype.has=function(A){return this.__data__.has(A)};var Z=Y?I(Y,Object):cA,q=Y?function(A){for(var e=[];A;)w(e,Z(A)),A=S(A);return e}:cA;function $(A){return oA(A)||tA(A)||!!(O&&A&&A[O])}function AA(A,e){return!!(e=null==e?n:e)&&("number"==typeof A||c.test(A))&&A>-1&&A%1==0&&A<e}function eA(A){if("string"==typeof A||function(A){return"symbol"==typeof A||sA(A)&&k.call(A)==g}(A))return A;var e=A+"";return"0"==e&&1/A==-o?"-0":e}function iA(A,e){return A===e||A!=A&&e!=e}function tA(A){return function(A){return sA(A)&&nA(A)}(A)&&T.call(A,"callee")&&(!N.call(A,"callee")||k.call(A)==a)}var oA=Array.isArray;function nA(A){return null!=A&&function(A){return"number"==typeof A&&A>-1&&A%1==0&&A<=n}(A.length)&&!aA(A)}function aA(A){var e=rA(A)?k.call(A):"";return e==r||e==s}function rA(A){var e=typeof A;return!!A&&("object"==e||"function"==e)}function sA(A){return!!A&&"object"==typeof A}function gA(A){return nA(A)?j(A,!0):K(A)}var lA=function(A,e){return e=U(void 0===e?A.length-1:e,0),function(){for(var i=arguments,t=-1,o=U(i.length-e,0),n=Array(o);++t<o;)n[t]=i[e+t];t=-1;for(var a=Array(e+1);++t<e;)a[t]=i[t];return a[e]=n,function(A,e,i){switch(i.length){case 0:return A.call(e);case 1:return A.call(e,i[0]);case 2:return A.call(e,i[0],i[1]);case 3:return A.call(e,i[0],i[1],i[2])}return A.apply(e,i)}(A,this,a)}}(function(A,e){return null==A?{}:(e=C(function A(e,i,t,o,n){var a=-1,r=e.length;for(t||(t=$),n||(n=[]);++a<r;){var s=e[a];i>0&&t(s)?i>1?A(s,i-1,t,o,n):w(n,s):o||(n[n.length]=s)}return n}(e,1),eA),function(A,e){return function(A,e,i){for(var t=-1,o=e.length,n={};++t<o;){var a=e[t],r=A[a];i(r,a)&&(n[a]=r)}return n}(A=Object(A),e,function(e,i){return i in A})}(A,function(A,e,t,o){var n=-1,a=E,r=!0,s=A.length,g=[],l=e.length;if(!s)return g;t&&(e=C(e,function(A){return function(e){return A(e)}}(t))),o?(a=h,r=!1):e.length>=i&&(a=p,r=!1,e=new _(e));A:for(;++n<s;){var c=A[n],u=t?t(c):c;if(c=o||0!==c?c:0,r&&u==u){for(var B=l;B--;)if(e[B]===u)continue A;g.push(c)}else a(e,u,o)||g.push(c)}return g}(W(A),e)))});function cA(){return[]}A.exports=lA}).call(this,i(36))},function(A,e,i){var t=i(1492);"string"==typeof t&&(t=[[A.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(10)(t,o);t.locals&&(A.exports=t.locals)},function(A,e){var i=A.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},function(A,e,i){"use strict";
24
24
  /*
25
25
  object-assign
26
26
  (c) Sindre Sorhus
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robotical/martyblocks",
3
- "version": "1.4.56",
3
+ "version": "1.4.59",
4
4
  "description": "MartyBlocks based on Scratch for Marty the Robot by Robotical",
5
5
  "main": "README.md",
6
6
  "scripts": {