{"code":"(window.webpackJsonpGUI=window.webpackJsonpGUI||[]).push([[5],{1257:function(e,n,t){const r=t(107),a=t(1262),i=\"'none'\",o={accelerometer:i,\"ambient-light-sensor\":i,battery:i,camera:i,\"display-capture\":i,\"document-domain\":i,\"encrypted-media\":i,fullscreen:i,geolocation:i,gyroscope:i,magnetometer:i,microphone:i,midi:i,payment:i,\"picture-in-picture\":i,\"publickey-credentials-get\":i,\"speaker-selection\":i,usb:i,vibrate:i,vr:i,\"screen-wake-lock\":i,\"web-share\":i,\"interest-cohort\":i};e.exports=class{constructor(){this.id=r(),this.isRemote=!0,this.ready=!1,this.queuedMessages=[],this.iframe=document.createElement(\"iframe\"),this.iframe.className=\"tw-custom-extension-frame\",this.iframe.dataset.id=this.id,this.iframe.style.display=\"none\",this.iframe.setAttribute(\"aria-hidden\",\"true\"),this.iframe.sandbox=\"allow-scripts\",this.iframe.allow=Object.entries(o).map((e=>{let[n,t]=e;return\"\".concat(n,\" \").concat(t)})).join(\"; \"),document.body.appendChild(this.iframe),window.addEventListener(\"message\",this._onWindowMessage.bind(this));const e=new Blob([\"\")], {\n type: 'text/html; charset=utf-8'\n });\n this.iframe.src = URL.createObjectURL(blob);\n }\n _onWindowMessage(e) {\n if (!e.data || e.data.vmIframeId !== this.id) {\n return;\n }\n if (e.data.ready) {\n this.ready = true;\n for (const {\n data,\n transfer\n } of this.queuedMessages) {\n this.postMessage(data, transfer);\n }\n this.queuedMessages.length = 0;\n }\n if (e.data.message) {\n this.onmessage({\n data: e.data.message\n });\n }\n }\n onmessage() {\n // Should be overridden\n }\n postMessage(data, transfer) {\n if (this.ready) {\n if (transfer) {\n this.iframe.contentWindow.postMessage(data, '*', transfer);\n } else {\n this.iframe.contentWindow.postMessage(data, '*');\n }\n } else {\n this.queuedMessages.push({\n data,\n transfer\n });\n }\n }\n}\nmodule.exports = IframeExtensionWorker;\n\n/***/ }),\n\n/***/ 1262:\n/***/ (function(module, exports) {\n\nmodule.exports = \"!function(e){var n={};function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){\\\"undefined\\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\\\"Module\\\"}),Object.defineProperty(e,\\\"__esModule\\\",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&\\\"object\\\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,\\\"default\\\",{enumerable:!0,value:e}),2&n&&\\\"string\\\"!=typeof e)for(var a in e)t.d(r,a,function(n){return e[n]}.bind(null,a));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,\\\"a\\\",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p=\\\"\\\",t(t.s=8)}([function(e,n,t){const r=t(10);r.enable(),e.exports=r(\\\"vm\\\")},function(e,n){var t;t=function(){return this}();try{t=t||new Function(\\\"return this\\\")()}catch(e){\\\"object\\\"==typeof window&&(t=window)}e.exports=t},function(e,n){e.exports={isWorker:!0,centralDispatchService:self}},function(e,n){e.exports={ANGLE:\\\"angle\\\",BOOLEAN:\\\"Boolean\\\",COLOR:\\\"color\\\",NUMBER:\\\"number\\\",STRING:\\\"string\\\",MATRIX:\\\"matrix\\\",NOTE:\\\"note\\\",IMAGE:\\\"image\\\",COSTUME:\\\"costume\\\",SOUND:\\\"sound\\\"}},function(e,n){e.exports={BOOLEAN:\\\"Boolean\\\",BUTTON:\\\"button\\\",LABEL:\\\"label\\\",COMMAND:\\\"command\\\",CONDITIONAL:\\\"conditional\\\",EVENT:\\\"event\\\",HAT:\\\"hat\\\",LOOP:\\\"loop\\\",REPORTER:\\\"reporter\\\",XML:\\\"xml\\\"}},function(e,n){var t=\\\"long\\\",r=\\\"short\\\",a=\\\"narrow\\\",i=\\\"numeric\\\",o=\\\"2-digit\\\";e.exports={number:{decimal:{style:\\\"decimal\\\"},integer:{style:\\\"decimal\\\",maximumFractionDigits:0},currency:{style:\\\"currency\\\",currency:\\\"USD\\\"},percent:{style:\\\"percent\\\"},default:{style:\\\"decimal\\\"}},date:{short:{month:i,day:i,year:o},medium:{month:r,day:i,year:i},long:{month:t,day:i,year:i},full:{month:t,day:i,year:i,weekday:t},default:{month:r,day:i,year:i}},time:{short:{hour:i,minute:i},medium:{hour:i,minute:i,second:i},long:{hour:i,minute:i,second:i,timeZoneName:r},full:{hour:i,minute:i,second:i,timeZoneName:r},default:{hour:i,minute:i,second:i}},duration:{default:{hours:{minimumIntegerDigits:1,maximumFractionDigits:0},minutes:{minimumIntegerDigits:2,maximumFractionDigits:0},seconds:{minimumIntegerDigits:2,maximumFractionDigits:3}}},parseNumberPattern:function(e){if(e){var n={},t=e.match(/\\\\b[A-Z]{3}\\\\b/i),r=e.replace(/[^¤]/g,\\\"\\\").length;if(!r&&t&&(r=1),r?(n.style=\\\"currency\\\",n.currencyDisplay=1===r?\\\"symbol\\\":2===r?\\\"code\\\":\\\"name\\\",n.currency=t?t[0].toUpperCase():\\\"USD\\\"):e.indexOf(\\\"%\\\")>=0&&(n.style=\\\"percent\\\"),!/[@#0]/.test(e))return n.style?n:void 0;if(n.useGrouping=e.indexOf(\\\",\\\")>=0,/E\\\\+?[@#0]+/i.test(e)||e.indexOf(\\\"@\\\")>=0){var a=e.replace(/E\\\\+?[@#0]+|[^@#0]/gi,\\\"\\\");n.minimumSignificantDigits=Math.min(Math.max(a.replace(/[^@0]/g,\\\"\\\").length,1),21),n.maximumSignificantDigits=Math.min(Math.max(a.length,1),21)}else{for(var i=e.replace(/[^#0.]/g,\\\"\\\").split(\\\".\\\"),o=i[0],s=o.length-1;\\\"0\\\"===o[s];)--s;n.minimumIntegerDigits=Math.min(Math.max(o.length-1-s,1),21);var c=i[1]||\\\"\\\";for(s=0;\\\"0\\\"===c[s];)++s;for(n.minimumFractionDigits=Math.min(Math.max(s,0),20);\\\"#\\\"===c[s];)++s;n.maximumFractionDigits=Math.min(Math.max(s,0),20)}return n}},parseDatePattern:function(e){if(e){for(var n={},s=0;s{throw new Error(\\\"Not implemented\\\")};a.getScript=(e,n)=>{const t=document.createElement(\\\"script\\\");t.src=e,n&&(t.onload=()=>n()),document.body.appendChild(t)};let i=0;a.ajax=async(e,t)=>{let o={};e&&t?(o=t,o.url=e):e&&(o=e);const s=(e=>{const n=new URLSearchParams;if(e)for(const t of Object.keys(e))n.set(t,e[t]);return n})(o.data),c=()=>{const e=s.toString();let n=o.url;return e&&(n+=\\\"?\\\".concat(e)),n.startsWith(\\\"http://\\\")&&(n=n.replace(\\\"http://\\\",\\\"https://\\\")),n},l=e=>{o.success&&o.success(e)};try{if(\\\"jsonp\\\"===o.dataType){const e=\\\"_jsonp_callback\\\".concat(i++);n[e]=t=>{delete n[e],l(t)};const t=o.jsonp||\\\"callback\\\";return s.set(t,e),void a.getScript(c())}if(\\\"script\\\"===o.dataType)return void a.getScript(c(),l);const e=await fetch(c(),{headers:o.headers});l(await e.json())}catch(e){u=e,r.error(u),o.error&&o.error(u)}var u},e.exports=a}).call(this,t(1))},function(e,n){const t=\\\"undefined\\\"==typeof document,r=t?\\\"\\u001b[0m\\\":\\\"\\\",a=t?\\\"\\u001b[90m\\\":\\\"\\\",i=`${t?\\\"\\u001b[34m\\\":\\\"\\\"}debug${r}`,o=`${t?\\\"\\u001b[36m\\\":\\\"\\\"}info${r}`,s=`${t?\\\"\\u001b[33m\\\":\\\"\\\"}warn${r}`,c=`${t?\\\"\\u001b[31m\\\":\\\"\\\"}error${r}`,l=(e=\\\"\\\")=>{const n=n=>l(e?`${e} ${n}`:n),t=e?[`${a}${e}${r}`]:[];return n.debug=n.log=console.debug.bind(console,...t,i),n.info=console.log.bind(console,...t,o),n.warn=n.warning=console.warn.bind(console,...t,s),n.error=console.error.bind(console,...t,c),n};l.enable=l.disable=()=>{},e.exports=l},function(e,n,t){(function(e){const n=t(12),r=t(19),a=t(21),i=t(0),{isWorker:o}=t(2),s=t(23)(null);e.Scratch=e.Scratch||{},Object.assign(e.Scratch,n,{canFetch:()=>Promise.resolve(!0),fetch:function(e){function n(n,t){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}(((e,n)=>fetch(e,n))),canOpenWindow:()=>Promise.resolve(!1),openWindow:()=>Promise.reject(new Error(\\\"Scratch.openWindow not supported in sandboxed extensions\\\")),canRedirect:()=>Promise.resolve(!1),redirect:()=>Promise.reject(new Error(\\\"Scratch.redirect not supported in sandboxed extensions\\\")),canRecordAudio:()=>Promise.resolve(!1),canRecordVideo:()=>Promise.resolve(!1),canReadClipboard:()=>Promise.resolve(!1),canNotify:()=>Promise.resolve(!1),canGeolocate:()=>Promise.resolve(!1),canEmbed:()=>Promise.resolve(!1),canDownload:()=>Promise.resolve(!1),download:()=>Promise.reject(new Error(\\\"Scratch.download not supported in sandboxed extensions\\\")),translate:s});const c=new class{constructor(){this.nextExtensionId=0,this.initialRegistrations=[],this.firstRegistrationPromise=new Promise((e=>{this.firstRegistrationCallback=e})),a.waitForConnection.then((()=>{a.call(\\\"extensions\\\",\\\"allocateWorker\\\").then((async e=>{const[n,t]=e;this.workerId=n;try{await(e=>{if(!o)return new Promise(((n,t)=>{const r=document.createElement(\\\"script\\\");r.onload=()=>n(),r.onerror=()=>{t(new Error(\\\"Error in sandboxed script: \\\".concat(e,\\\". Check the console for more information.\\\")))},r.src=e,document.body.appendChild(r)}));importScripts(e)})(t),await this.firstRegistrationPromise;const e=this.initialRegistrations;this.initialRegistrations=null,Promise.all(e).then((()=>a.call(\\\"extensions\\\",\\\"onWorkerInit\\\",n)))}catch(e){i.error(e),a.call(\\\"extensions\\\",\\\"onWorkerInit\\\",n,\\\"\\\".concat(e))}}))})),this.extensions=[]}register(e){const n=this.nextExtensionId++;this.extensions.push(e);const t=\\\"extension.\\\".concat(this.workerId,\\\".\\\").concat(n),r=a.setService(t,e).then((()=>a.call(\\\"extensions\\\",\\\"registerExtensionService\\\",t)));return this.initialRegistrations&&(this.firstRegistrationCallback(),this.initialRegistrations.push(r)),r}};e.Scratch.extensions={register:c.register.bind(c)},e.ScratchExtensions=r(e.Scratch)}).call(this,t(1))},function(e,n,t){const r={ArgumentType:t(3),BlockType:t(4),BlockShape:t(13),TargetType:t(15),Cast:t(16),external:t(18)};e.exports=r},function(e,n,t){const r=t(14),a={HEXAGONAL:r.OUTPUT_SHAPE_HEXAGONAL,ROUND:r.OUTPUT_SHAPE_ROUND,SQUARE:r.OUTPUT_SHAPE_SQUARE};e.exports=a},function(e,n){e.exports={OUTPUT_SHAPE_HEXAGONAL:1,OUTPUT_SHAPE_ROUND:2,OUTPUT_SHAPE_SQUARE:3}},function(e,n){e.exports={SPRITE:\\\"sprite\\\",STAGE:\\\"stage\\\"}},function(e,n,t){const r=t(17),a=e=>{if(\\\"string\\\"!=typeof e)return!1;for(let n=0;nr?1:0}return t===1/0&&r===1/0||t===-1/0&&r===-1/0?0:t-r}static isInt(e){return\\\"number\\\"==typeof e?!!isNaN(e)||e===Math.floor(e):\\\"boolean\\\"==typeof e||\\\"string\\\"==typeof e&&e.indexOf(\\\".\\\")<0}static get LIST_INVALID(){return\\\"INVALID\\\"}static get LIST_ALL(){return\\\"ALL\\\"}static toListIndex(e,n,t){if(\\\"number\\\"!=typeof e){if(\\\"all\\\"===e)return t?i.LIST_ALL:i.LIST_INVALID;if(\\\"last\\\"===e)return n>0?n:i.LIST_INVALID;if(\\\"random\\\"===e||\\\"any\\\"===e)return n>0?1+Math.floor(Math.random()*n):i.LIST_INVALID}return(e=Math.floor(i.toNumber(e)))<1||e>n?i.LIST_INVALID:e}}e.exports=i},function(e,n){class t{static get RGB_BLACK(){return{r:0,g:0,b:0}}static get RGB_WHITE(){return{r:255,g:255,b:255}}static decimalToHex(e){e<0&&(e+=16777216);let n=Number(e).toString(16);return n=\\\"#\\\".concat(\\\"000000\\\".substr(0,6-n.length)).concat(n),n}static decimalToRgb(e){const n=e>>24&255;return{r:e>>16&255,g:e>>8&255,b:255&e,a:n>0?n:255}}static hexToRgb(e){e.startsWith(\\\"#\\\")&&(e=e.substring(1));const n=parseInt(e,16);if(isNaN(n))return null;if(6===e.length)return{r:n>>16&255,g:n>>8&255,b:255&n};if(3===e.length){const e=n>>8&15,t=n>>4&15,r=15&n;return{r:e<<4|e,g:t<<4|t,b:r<<4|r}}return null}static rgbToHex(e){return t.decimalToHex(t.rgbToDecimal(e))}static rgbToDecimal(e){return(e.r<<16)+(e.g<<8)+e.b}static hexToDecimal(e){return t.rgbToDecimal(t.hexToRgb(e))}static hsvToRgb(e){let n=e.h%360;n<0&&(n+=360);const t=Math.max(0,Math.min(e.s,1)),r=Math.max(0,Math.min(e.v,1)),a=Math.floor(n/60),i=n/60-a,o=r*(1-t),s=r*(1-t*i),c=r*(1-t*(1-i));let l,u,d;switch(a){default:case 0:l=r,u=c,d=o;break;case 1:l=s,u=r,d=o;break;case 2:l=o,u=r,d=c;break;case 3:l=o,u=s,d=r;break;case 4:l=c,u=o,d=r;break;case 5:l=r,u=o,d=s}return{r:Math.floor(255*l),g:Math.floor(255*u),b:Math.floor(255*d)}}static rgbToHsv(e){const n=e.r/255,t=e.g/255,r=e.b/255,a=Math.min(Math.min(n,t),r),i=Math.max(Math.max(n,t),r);let o=0,s=0;if(a!==i){o=60*((n===a?3:t===a?5:1)-(n===a?t-r:t===a?r-n:n-t)/(i-a))%360,s=(i-a)/i}return{h:o,s:s,v:i}}static mixRgb(e,n,t){if(t<=0)return e;if(t>=1)return n;const r=1-t;return{r:r*e.r+t*n.r,g:r*e.g+t*n.g,b:r*e.b+t*n.b}}}e.exports=t},function(e,n){const t=e=>{if(!(e.startsWith(\\\"http:\\\")||e.startsWith(\\\"https:\\\")||e.startsWith(\\\"data:\\\")||e.startsWith(\\\"blob:\\\")))throw new Error(\\\"Unsupported URL: \\\".concat(e))},r={importModule:e=>(t(e),import(e)),fetch:async e=>{t(e);const n=await fetch(e);if(!n.ok)throw new Error(\\\"HTTP \\\".concat(n.status,\\\" fetching \\\").concat(e));return n},dataURL:async e=>{const n=await r.fetch(e),t=await n.blob();return new Promise(((e,n)=>{const r=new FileReader;r.onload=()=>e(r.result),r.onerror=()=>n(r.error),r.readAsDataURL(t)}))},blob:async e=>(await r.fetch(e)).blob(),evalAndReturn:async(e,n)=>{const t=await r.fetch(e),a=await t.text(),i=\\\"\\\".concat(a,\\\"\\\\nreturn \\\").concat(n,\\\";\\\");return new Function(i)()}};e.exports=r},function(e,n,t){const r=t(3),a=t(4),{argumentIndexToId:i,generateExtensionId:o}=t(20),s=e=>{if(\\\"\\\"===e||\\\" \\\"===e||\\\"w\\\"===e)return{type:a.COMMAND,async:\\\"w\\\"===e};if(\\\"r\\\"===e||\\\"R\\\"===e)return{type:a.REPORTER,async:\\\"R\\\"===e};if(\\\"b\\\"===e)return{type:a.BOOLEAN,async:!1};if(\\\"h\\\"===e)return{type:a.HAT,async:!1};throw new Error(\\\"Unknown ScratchX block type: \\\".concat(e))},c=(e,n)=>{const t={},a=\\\"string\\\"==typeof(i=n)||\\\"number\\\"==typeof i||\\\"boolean\\\"==typeof i;var i;if(a&&\\\"b\\\"!==e&&(t.defaultValue=n),\\\"s\\\"===e)t.type=r.STRING,a||(t.defaultValue=\\\"\\\");else if(\\\"n\\\"===e)t.type=r.NUMBER,a||(t.defaultValue=0);else if(\\\"m\\\"===e[0]){t.type=r.STRING;const n=e.split(/\\\\.|:/)[1];t.menu=n}else{if(\\\"b\\\"!==e)throw new Error(\\\"Unknown ScratchX argument type: \\\".concat(e));t.type=r.BOOLEAN}return t},l=(e,n,t)=>r=>{const a=[];for(let e=0;e{e(...a,n)})):e(...a)},u=new Map;e.exports=e=>({register:(n,t,r)=>{const a=((e,n,t)=>{const r={id:o(e),name:n.displayName||e,blocks:[],color1:\\\"#4a4a5e\\\",color2:\\\"#31323f\\\",color3:\\\"#191a21\\\"},a={getInfo:()=>r,_getStatus:t._getStatus};n.url&&(r.docsURI=n.url);for(const e of n.blocks){if(1===e.length){r.blocks.push(\\\"---\\\");continue}const n=e[0],o=e[1],u=e[2],d=e.slice(3);let f=\\\"\\\";const h=[],p=o.split(/%([\\\\w.:]+)/g);for(let e=0;e{const n=u.get(e);return n?n._getStatus():{status:0,msg:\\\"does not exist\\\"}}})},function(e,n){e.exports={generateExtensionId:e=>{const n=e.replace(/[^a-z0-9]/gi,\\\"\\\").toLowerCase();return\\\"sbx\\\".concat(n)},argumentIndexToId:e=>e.toString()}},function(e,n,t){const r=t(22),a=t(0),{centralDispatchService:i}=t(2);e.exports=new class extends r{constructor(){super(),this._connectionPromise=new Promise((e=>{this._onConnect=e})),this.services={},this._onMessage=this._onMessage.bind(this,i),\\\"undefined\\\"!=typeof self&&(self.onmessage=this._onMessage)}get waitForConnection(){return this._connectionPromise}setService(e,n){return Object.prototype.hasOwnProperty.call(this.services,e)&&a.warn(\\\"Worker dispatch replacing existing service provider for \\\".concat(e)),this.services[e]=n,this.waitForConnection.then((()=>this._remoteCall(i,\\\"dispatch\\\",\\\"setService\\\",e)))}_getServiceProvider(e){const n=this.services[e];return{provider:n||i,isRemote:!n}}_onDispatchMessage(e,n){let t;switch(n.method){case\\\"handshake\\\":t=this._onConnect();break;case\\\"terminate\\\":setTimeout((()=>self.close()),0),t=Promise.resolve();break;default:a.error(\\\"Worker dispatch received message for unknown method: \\\".concat(n.method))}return t}}},function(e,n,t){const r=t(0);e.exports=class{constructor(){this.callbacks=[],this.nextResponseId=0}call(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),a=2;a3?r-3:0),i=3;i3?r-3:0),i=3;i4?a-4:0),o=4;o{const s=this._storeCallbacks(a,o);i.length>0&&\\\"function\\\"==typeof i[i.length-1].func&&(i.pop(),i.pop()),r?e.postMessage({service:n,method:t,responseId:s,args:i},r):e.postMessage({service:n,method:t,responseId:s,args:i})}))}_storeCallbacks(e,n){const t=this.nextResponseId++;return this.callbacks[t]=[e,n],t}_deliverResponse(e,n){try{const[t,r]=this.callbacks[e];delete this.callbacks[e],n.error?r(n.error):t(n.result)}catch(e){r.error(\\\"Dispatch callback failed: \\\".concat(e))}}_onMessage(e,n){const t=n.data;let a;t.args=t.args||[],t.service?a=\\\"dispatch\\\"===t.service?this._onDispatchMessage(e,t):this.call(t.service,t.method,...t.args):void 0===t.responseId?r.error(\\\"Dispatch caught malformed message from a worker: \\\".concat(JSON.stringify(n))):this._deliverResponse(t.responseId,t),a&&(void 0===t.responseId?r.error(\\\"Dispatch message missing required response ID: \\\".concat(JSON.stringify(n))):a.then((n=>e.postMessage({responseId:t.responseId,result:n})),(n=>e.postMessage({responseId:t.responseId,error:\\\"\\\".concat(n)}))))}_getServiceProvider(e){throw new Error(\\\"Could not get provider for \\\".concat(e,\\\": _getServiceProvider not implemented\\\"))}_onDispatchMessage(e,n){throw new Error(\\\"Unimplemented dispatch message handler cannot handle \\\".concat(n.method,\\\" method\\\"))}}},function(e,n,t){const r=t(24);e.exports=e=>{const n=r.namespace(),t=(e,t)=>{if(e&&\\\"object\\\"==typeof e);else{if(\\\"string\\\"!=typeof e)throw new Error(\\\"unsupported data type in translate()\\\");e={default:e}}return n(e,t)},a=e=>\\\"_\\\".concat(e),i=()=>e?e.getLocale():\\\"undefined\\\"!=typeof navigator?navigator.language:\\\"en\\\";let o={};return t.setup=e=>{e&&(o=e),n.setup({locale:i(),missingTranslation:\\\"ignore\\\",generateId:a,translations:o})},Object.defineProperty(t,\\\"language\\\",{configurable:!0,enumerable:!0,get:()=>i()}),t.setup({}),e&&e.on(\\\"LOCALE_CHANGED\\\",(()=>{t.setup(null)})),t}},function(e,n,t){\\\"use strict\\\";var r=t(25),a=t(26),i=t(7),o=t(6),s=t(5);function c(e,n){return Object.keys(n).forEach((function(t){e[t]=n[t]})),e}e.exports=function e(){var n=c({},s),t=\\\"en\\\",l={},u=function(e){return e},d=null,f=\\\"warning\\\",h={};function p(e,n,i){var o=\\\"string\\\"==typeof e?e:e.default,s=b(o,\\\"object\\\"==typeof e&&e.id||u(o),i||t);return(s.format||(s.format=a(r(s.message),i||t,h)))(n)}p.rich=function(e,n,i){var o=\\\"string\\\"==typeof e?e:e.default,s=b(o,\\\"object\\\"==typeof e&&e.id||u(o),i||t);return(s.toParts||(s.toParts=a.toParts(r(s.message,{tagsType:m}),i||t,h)))(n)};var m=\\\"<>\\\";function g(e,n){var t=e[2];return function(e,n){var r=\\\"object\\\"==typeof t?function(e,n){return Object.keys(e).reduce((function(t,r){return t[r]=e[r](n),t}),{})}(t,n):t;return\\\"function\\\"==typeof e?e(r):e}}function b(e,n,t){var r=o(t,l)||\\\"en\\\",a=l[r]||(l[r]={}),i=a[n];if(\\\"string\\\"==typeof i&&(i=a[n]={message:i}),!i){var s='Translation for \\\"'+n+'\\\" in \\\"'+r+'\\\" is missing';if(\\\"warning\\\"===f)\\\"undefined\\\"!=typeof console&&console.warn(s);else if(\\\"ignore\\\"!==f)throw new Error(s);var c=\\\"function\\\"==typeof d?d(e,n,r)||e:d||e;i=a[n]={message:c}}return i}function v(e,n,r,a,s){\\\"object\\\"==typeof r&&\\\"object\\\"!=typeof a&&(s=a,a=r,r=0);var c=o(s||t,i),l=c&&i[c][e]||x;return a[\\\"=\\\"+ +n]||a[l(n-r)]||a.other}function x(){return\\\"other\\\"}return h[m]=g,p.setup=function(e){return(e=e||{}).locale&&(t=e.locale),\\\"translations\\\"in e&&(l=e.translations||{}),e.generateId&&(u=e.generateId),\\\"missingReplacement\\\"in e&&(d=e.missingReplacement),e.missingTranslation&&(f=e.missingTranslation),e.formats&&(e.formats.number&&c(n.number,e.formats.number),e.formats.date&&c(n.date,e.formats.date),e.formats.time&&c(n.time,e.formats.time)),e.types&&((h=e.types)[m]=g),{locale:t,translations:l,generateId:u,missingReplacement:d,missingTranslation:f,formats:n,types:h}},p.number=function(e,r,a){var i=r&&n.number[r]||n.parseNumberPattern(r)||n.number.default;return new Intl.NumberFormat(a||t,i).format(e)},p.date=function(e,r,a){var i=r&&n.date[r]||n.parseDatePattern(r)||n.date.default;return new Intl.DateTimeFormat(a||t,i).format(e)},p.time=function(e,r,a){var i=r&&n.time[r]||n.parseDatePattern(r)||n.time.default;return new Intl.DateTimeFormat(a||t,i).format(e)},p.select=function(e,n){return n[e]||n.other},p.custom=function(e,n,t,r){return e[1]in h?h[e[1]](e,n)(t,r):t},p.plural=v.bind(null,\\\"cardinal\\\"),p.selectordinal=v.bind(null,\\\"ordinal\\\"),p.namespace=e,p}()},function(e,n,t){\\\"use strict\\\";var r=\\\"{\\\",a=\\\"}\\\",i=\\\",\\\",o=\\\"#\\\",s=\\\"<\\\",c=\\\">\\\",l=\\\"\\\",d=\\\"'\\\",f=\\\"offset:\\\",h=[\\\"number\\\",\\\"date\\\",\\\"time\\\",\\\"ordinal\\\",\\\"duration\\\",\\\"spellout\\\"],p=[\\\"plural\\\",\\\"select\\\",\\\"selectordinal\\\"];function m(e,n){var t=e.pattern,r=t.length,i=[],o=e.index,s=g(e,n);for(s&&i.push(s),s&&e.tokens&&e.tokens.push([\\\"text\\\",t.slice(o,e.index)]);e.index=9&&e<=13||32===e||133===e||160===e||6158===e||e>=8192&&e<=8205||8232===e||8233===e||8239===e||8287===e||8288===e||12288===e||65279===e}function v(e){for(var n=e.pattern,t=n.length,r=e.index;e.index=0)g=[d,b,k(e)];else{var S=e.index,T=k(e);v(e),n[e.index]===r&&(e.index=S,T=M(e,b)),g=[d,b,T]}if(v(e),n[e.index]!==a)throw I(e,a);return e.tokens&&e.tokens.push([\\\"syntax\\\",a]),++e.index,g}function y(e,n){for(var t=e.pattern,l=t.length,u=\\\"\\\";e.index=48&&e<=57}function M(e,n){for(var t=e.pattern,r=t.length,i={};e.index=0)throw I(e,null,null,'\\\"other\\\" sub-message must be specified in '+n);return i}function S(e,n){if(e.pattern[e.index]!==r)throw I(e,\\\"{ to start sub-message\\\");e.tokens&&e.tokens.push([\\\"syntax\\\",r]),++e.index;var t=m(e,n);if(e.pattern[e.index]!==a)throw I(e,\\\"} to end sub-message\\\");return e.tokens&&e.tokens.push([\\\"syntax\\\",a]),++e.index,t}function I(e,n,t,r){var a=e.pattern,i=a.slice(0,e.index).split(/\\\\r?\\\\n/),o=e.index,s=i.length,c=i.slice(-1)[0].length;return t=t||(e.index>=a.length?\\\"end of message pattern\\\":y(e)||a[e.index]),r||(r=function(e,n){return e?\\\"Expected \\\"+e+\\\" but found \\\"+n:\\\"Unexpected \\\"+n+\\\" found\\\"}(n,t)),new T(r+=\\\" in \\\"+a.replace(/\\\\r?\\\\n/g,\\\"\\\\n\\\"),n,t,o,s,c)}function T(e,n,t,r,a,i){Error.call(this,e),this.name=\\\"SyntaxError\\\",this.message=e,this.expected=n,this.found=t,this.offset=r,this.line=a,this.column=i}n=e.exports=function(e,n){return m({pattern:String(e),index:0,tagsType:n&&n.tagsType||null,tokens:n&&n.tokens||null},\\\"\\\")},T.prototype=Object.create(Error.prototype),n.SyntaxError=T},function(e,n,t){\\\"use strict\\\";var r=t(5),a=t(6),i=t(7);function o(e,n,t,r,a){var i=e.map((function(e){return function(e,n,t,r,a){if(\\\"string\\\"==typeof e){var i=e;return function(){return i}}var c,l=e[0],u=e[1];if(n&&\\\"#\\\"===e[0]){l=n[0];var d=n[2],h=(r.number||f.number)([l,\\\"number\\\"],t);return function(e){return h(s(l,e)-d,e)}}\\\"plural\\\"===u||\\\"selectordinal\\\"===u?(c={},Object.keys(e[3]).forEach((function(n){c[n]=o(e[3][n],e,t,r,a)})),e=[e[0],e[1],e[2],c]):e[2]&&\\\"object\\\"==typeof e[2]&&(c={},Object.keys(e[2]).forEach((function(n){c[n]=o(e[2][n],e,t,r,a)})),e=[e[0],e[1],c]);var p=u&&(r[u]||f[u]);if(p){var m=p(e,t);return function(e){return m(s(l,e),e)}}return a?function(e){return String(s(l,e))}:function(e){return s(l,e)}}(e,n,t,r,a)}));return a?1===i.length?i[0]:function(e){for(var n=\\\"\\\",t=0;t0)t=new Intl.PluralRules(n,{type:r});else{var c=a(n,i),l=c&&i[c][r]||d;t={select:l}}return function(e,n){return(s[\\\"=\\\"+ +e]||s[t.select(e-o)]||s.other)(n)}}function d(){return\\\"other\\\"}(n=e.exports=function(e,n,t){return o(e,null,n||\\\"en\\\",t||{},!0)}).toParts=function(e,n,t){return o(e,null,n||\\\"en\\\",t||{},!1)};var f={number:c,ordinal:c,spellout:c,duration:function(e,n){var t=e[2],a=r.duration[t]||r.duration.default,i=new Intl.NumberFormat(n,a.seconds).format,o=new Intl.NumberFormat(n,a.minutes).format,s=new Intl.NumberFormat(n,a.hours).format,c=/^fi$|^fi-|^da/.test(String(n))?\\\".\\\":\\\":\\\";return function(e,n){if(e=+e,!isFinite(e))return i(e);var t=~~(e/60/60),r=~~(e/60%60),a=(t?s(Math.abs(t))+c:\\\"\\\")+o(Math.abs(r))+c+i(Math.abs(e%60));return e<0?s(-1).replace(s(1),a):a}},date:l,time:l,plural:u,selectordinal:u,select:function(e,n){var t=e[2];return function(e,n){return(t[e]||t.other)(n)}}};n.types=f}]);\";\n\n/***/ })\n\n}]);","inputSourceMap":null}