-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslang.min.js
2 lines (2 loc) · 172 KB
/
eslang.min.js
1
2
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=11)}([function(t,e,n){"use strict";var r=n(3),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function u(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function a(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===i.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!u(t)&&null!==t.constructor&&!u(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:a,isUndefined:u,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:l,isStream:function(t){return s(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function t(){var e={};function n(n,r){a(e[r])&&a(n)?e[r]=t(e[r],n):a(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var a,l=[],c=!1,f=-1;function p(){c&&a&&(c=!1,a.length?l=a.concat(l):f=-1,l.length&&h())}function h(){if(!c){var t=s(p);c=!0;for(var e=l.length;e;){for(a=l,l=[];++f<e;)a&&a[f].run();f=-1,e=l.length}a=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new d(t,e)),1!==l.length||c||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";var r=Object.create(null),i={black:[30,39],white:[37,39],gray:[90,39],grey:[90,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],bold:[1,22],italic:[3,23],overline:null,underline:[4,24],"line-through":[9,29]};function o(t,e){return"["+t[0]+"m"+e+"["+t[1]+"m"}var u=r.styles=Object.create(null);Object.keys(i).forEach((function(t){i[t]&&(u[t]=o.bind(u,i[t]))}));var s=r.classes=Object.assign(Object.create(null),{black:"color",white:"color",grey:"color",gray:"color",red:"color",green:"color",yellow:"color",blue:"color",bold:"font-weight",italic:"font-style",overline:"text-decoration",underline:"text-decoration","line-through":"text-decoration"}),a=r.allowMultiple=new Set(["text-decoration"]);function l(t){for(var e=Object.create(null),n=!1,r=0;r<t.length;r++){var i=t[r];if("string"==typeof i&&s[i]){n=!0;var o=s[i];a.has(o)?e[o]?e[o].add(i):e[o]=new Set([i]):e[o]=i}}return n&&e}r.parse=function(t){return Array.isArray(t)?l(t):"string"==typeof t?l(t.split(/\s/)):!(!t||"object"!=typeof t)&&function(t){var e=Object.create(null),n=!1;for(var r in t){var i=t[r];"string"==typeof i&&(i=a.has(r)?i.split(/\s/):[i]).forEach((function(t){s[t]===r&&(n=!0,a.has(r)?e[r]?e[r].add(t):e[r]=new Set([t]):e[r]=t)}))}return n&&e}(t)},r.apply=function(t,e){if(e)for(var n in e){var r=e[n];"string"==typeof r?t=u[r](t):Array.from(r).forEach((function(e){t=u[e]&&u[e](t)}))}return t},t.exports=r},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(0);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var u=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),u.push(i(e)+"="+i(t))})))})),o=u.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var r=n(0),i=n(84),o={"Content-Type":"application/x-www-form-urlencoded"};function u(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,a={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(s=n(7)),s),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(u(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(u(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){a.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){a.headers[t]=r.merge(o)})),t.exports=a}).call(this,n(1))},function(t,e,n){"use strict";var r=n(0),i=n(85),o=n(87),u=n(4),s=n(88),a=n(91),l=n(92),c=n(8);t.exports=function(t){return new Promise((function(e,n){var f=t.data,p=t.headers;r.isFormData(f)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.Authorization="Basic "+btoa(d+":"+y)}var v=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),u(v,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h};i(e,n,o),h=null}},h.onabort=function(){h&&(n(c("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=(t.withCredentials||l(v))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;g&&(p[t.xsrfHeaderName]=g)}if("setRequestHeader"in h&&r.forEach(p,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete p[e]:h.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),n(t),h=null)})),f||(f=null),h.send(f)}))}},function(t,e,n){"use strict";var r=n(86);t.exports=function(t,e,n,i,o){var u=new Error(t);return r(u,e,n,i,o)}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],u=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function a(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function l(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=a(void 0,t[i])):n[i]=a(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=a(void 0,e[t]))})),r.forEach(o,l),r.forEach(u,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=a(void 0,t[i])):n[i]=a(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=a(t[r],e[r]):r in t&&(n[r]=a(void 0,t[r]))}));var c=i.concat(o).concat(u).concat(s),f=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return r.forEach(f,l),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";var r=n(12)(),i=n(13)(r).web.shell();i instanceof Promise?(console.info("initializing shell ..."),i.then((function(){console.info("shell is ready now.")}),(function(t){console.error("shell failed to initialize for",t)}))):console.info("shell is ready.")},function(t,e,n){"use strict";var r,i,o,u=n(2),s=[],a=!1;function l(t){s.length>4800&&(s=s.slice(2400)),s.push(t)}function c(){if(r.childElementCount>2400)for(;r.childElementCount>1200;)r.removeChild(r.firstElementChild);window.scrollTo(0,document.body.scrollHeight),i.focus()}var f=null;function p(t){return function t(e,n,r){if(!r&&(a||s.length>0))return l([t,e,n]);for(var i=e.split("\n"),o=[],u=0,p=i.length-1;u<=p;u++){var y=i[u];(u>0||!y)&&(f=null),y?o.push(d(f||(f=h()),y)):u<p&&h(document.createElement("br"))}if(n&&o.length>0)for(var v=0,g=o.length;v<g;v++)n(o[v]);c()}}function h(t){var e=document.createElement("li");return e.className="print",t&&e.appendChild(t),r.appendChild(e),e}function d(t,e){var n=document.createElement("span");return n.className="text",n.appendChild(document.createTextNode(m(e))),t.appendChild(n),n}function y(t){var e=function(t){var e="";for(var n in t){var r=t[n];r instanceof Set&&(r=Array.from(r)),Array.isArray(r)&&(r=r.join(" ")),"string"==typeof r&&(e+=n+": "+r+";")}return e}(t);return e&&function(t){t.style.cssText=e}}function v(t,e,n){return function r(i,o,u){if(!u&&(a||s.length>0))return l([r,i,o]);n&&o.length>n&&(o=o.substring(0,n-10)+"... ... ..."+o.substring(o.length-10)+" # use (print ...) to display all text.");for(var f=o.split("\n"),p=0,h=f.length;p<h;p++){var d=document.createElement("li");d.className=e,f[p]?g(d,f[p],p>0?"":i):d.appendChild(document.createElement("br")),t.appendChild(d)}c()}}function g(t,e,n){var r=document.createElement("span");r.className="prompt",n&&r.appendChild(document.createTextNode(n)),t.appendChild(r),(r=document.createElement("span")).className="text",r.appendChild(document.createTextNode(m(e))),t.appendChild(r)}function m(t){for(var e="",n=0;n<t.length;n++){if(!/\s/.test(t.charAt(n)))return e+t.slice(n);e+=" "}return t}function b(t){var e=function(){if(!window.localStorage)return[];var t=window.localStorage.getItem("~/.es_history");if(!t)return[];try{var e=JSON.parse(t);return Array.isArray(e)?e:[]}catch(t){return console.warn("failed to load input history:",t),[]}}(),n=e.length,r="";function u(e){t.reader&&setTimeout((function(){a=!0,t.reader(e),a=!1,function t(){s.length<1||setTimeout((function(){for(var e=s.splice(0,300),n=0,r=e.length;n<r;n++){var i=e[n];i[0](i[1],i[2],!0)}t()}),20)}()}),20)}o.onclick=function(){if(i.value){var o=i.value;i.value="",r="",n=function(t,e){if(t.length>0&&t[t.length-1]===e)return t.length;if(t.push(e),t.length>1e3&&(t=t.slice(-1e3)),window.localStorage)try{window.localStorage.setItem("~/.es_history",JSON.stringify(t))}catch(t){console.warn("failed to save input history:",t)}return t.length}(e,o),t.input(o),u(o)}},i.addEventListener("keypress",(function(t){13===t.keyCode&&(t.preventDefault(),o.onclick())})),i.addEventListener("keydown",(function(t){switch(t.keyCode){case 38:n===e.length&&(r=i.value),--n>=0&&n<e.length?i.value=e[n]:(n=e.length,i.value=r);break;case 40:n===e.length&&(r=i.value),++n<e.length?i.value=e[n]:n>e.length?(n=0)<e.length&&(i.value=n<e.length?e[n]:""):i.value=r;break;default:return}t.preventDefault()})),i.focus()}t.exports=function(){var t=Object.create(null);r=document.getElementById("stdout-panel"),i=document.getElementById("stdin-input"),o=document.getElementById("stdin-enter");var e=p.bind(null,r)("print");t.print=function(t){e("\n"===t.charAt(t.length-1)?t:t+"\n")},t.printf=function(t,n){var r=y(u.parse(n));e(t,r)};var n=v.bind(null,r);t.verbose=n("verbose").bind(null,"#V"),t.info=n("info").bind(null,"#I"),t.warn=n("warn").bind(null,"#W"),t.error=n("error").bind(null,"#E"),t.debug=n("debug").bind(null,"#D"),t.echo=n("echo",150).bind(null,"=");var s=">",a=document.getElementById("stdin-prompt");t.prompt=function(t){t&&(a.innerText=s=t)};var l=n("input");return t.input=function(t){l(s,t)},b(t),t.connect=function(e){return t.reader="function"==typeof e?e:null},t.disconnect=function(){t.reader=null},t}},function(t,e,n){"use strict";function r(){return window.location.origin||window.location.protocol+"//"+window.location.host}t.exports=function(t,e,i){t||(t=n(14)()),e||(e=n(15)(t));var o=n(17)(e);o.env("runtime-home",window.ES_HOME||r());var u=function(){var t=r(),e=window.location.href,n=e.substring(0,e.lastIndexOf("/"));return!n||n.length<t.length?t:n}();o.env("home",u),o.env("user-home",u),o.env("os",window.navigator.userAgent),o.loader=(i||n(77))(o),o.module=n(97)(o),o.module.native=n(99)(o);var s=o.createBootstrapSpace(u+"/@");function a(t){return"function"==typeof t?t:"string"==typeof t?l.bind(null,t):Array.isArray(t)?function(){return s.$fetch(t)}:function(){return s.$fetch("@")}}function l(t){return new Promise((function(e,n){s.$fetch(t).then((function(){e(s.$load(t))}),n)}))}function c(t,e){var n=a(t)(s,o);return n instanceof Promise?new Promise((function(t,r){n.then((function(){t(e())}),r)})):e()}return o.web=Object.create(null),o.web.initialize=c,o.web.run=function(t,e,n,r){return c(t,(function(){return o.$run(e,n,r)}))},o.web.shell=function(e,r,i){return c(e,(function(){n(104)(o)(r||n(108)(o,t),i||n(109)(o))}))},o}},function(t,e,n){"use strict";function r(){}t.exports=function t(){var e=Object.create(null),n="";e.print=function(e){n&&(e=n+e,n=""),t.log(e)},e.printf=function(e){var r=e.split("\n"),i=r.pop();r.length>0?(r[0]=n+r[0],n=i,t.log(r.join("\n"))):n+=i},e.verbose=r,e.info=r,e.warn=r,e.error=r,e.debug=r;var i=[];e.echo=function(t){i.push(t)};var o=">";return e.prompt=function(t){t&&(o=t)},e.connect=function(e){return window._$=function(n){if("string"==typeof n){if(e(n),i.length>0){var r=i.join("\n ");return i=[],r}o.startsWith(">")||t.info(o)}else t.error("input is not a string:",n)},e},e.disconnect=function(){window._$=null},e}},function(t,e,n){"use strict";var r=n(16);t.exports=function(t){return function(e){var n=Object.create(null),i=r(e);function o(e){return function(){var n=i[e],r=n.apply(null,arguments);return t[e](r),r}}for(var u in i)n[u]="printf"!==u?o(u):function(e,n){return e=i.printf(e),t.printf(e,n),e};return n}}},function(t,e,n){"use strict";(function(e){var r=n(2),i=r.styles;function o(t,e){return console[t].bind(console,e)}t.exports=function(t){var n=t.$.string.of,u=t.isNativeHost;function s(){for(var t=[],e=0;e<arguments.length;e++)t.push(n(arguments[e]));return t.join(" ")}function a(t,e,n){var r=o(t,u?i.gray("#"+e):"#");return u?function(){var t=s.apply(null,arguments);return r(n?n(t):t),t}:function(){return r.apply(null,arguments),s.apply(null,arguments)}}var l=Object.create(null);return l.debug=a("debug","D",i&&i.blue),l.verbose=a("info","V",i&&i.gray),l.info=a("info","I",i&&i.gray),l.warn=a("warn","W",i&&i.yellow),l.error=a("error","E",i&&i.red),l.print=function(){var t=s.apply(null,arguments);return u&&console.log(t),t},l.printf=function(t,n){var i=s(t);return u&&function(t){e.stdout.write(t)}(r.apply(i,r.parse(n))),i},l}}).call(this,n(1))},function(t,e,n){"use strict";t.exports=function(t){var e=n(74)();return function(t){n(18)(t),n(19)(t),n(20)(t),n(21)(t),n(22)(t),n(23)(t),n(24)(t),n(25)(t),n(26)(t),n(27)(t),n(28)(t),n(29)(t),n(30)(t),n(31)(t),n(32)(t),n(33)(t),n(34)(t),n(35)(t),n(36)(t),n(37)(t),n(38)(t),n(39)(t)}(e),function(t,e){n(40)(t,e),n(41)(t),n(42)(t),n(43)(t),n(44)(t),n(45)(t),n(46)(t),n(47)(t)}(e,t(e)),n(75)(e),n(76)(e),function(t){n(48)(t),n(50)(t),n(51)(t),n(52)(t),n(53)(t),n(54)(t),n(55)(t),n(56)(t),n(57)(t),n(58)(t)}(e),function(t){n(59)(t),n(60)(t),n(61)(t),n(62)(t),n(63)(t),n(64)(t),n(65)(t),n(66)(t),n(67)(t),n(68)(t),n(69)(t),n(70)(t),n(71)(t),n(72)(t),n(73)(t)}(e),function(t){var e=t.$.symbol,n=t.sharedSymbolOf;t.punctuations=new Set([e.begin,e.end,e.comma,e.semicolon,e.pairing,n("["),n("]"),n("{"),n("}")]),t.operatorSymbols=new Set(Object.keys(t.staticOperators).map(t=>n(t)))}(e),e}},function(t,e,n){"use strict";function r(){return function(){return null}}t.exports=function(t){var e=t.$,n=e.map,i=e.set,o=e.tuple,u=e.bool,s=e.date,a=e.number,l=e.string,c=e.object,f=e.array,p=e.lambda,h=e.function,d=e.operator,y=e.promise,v=t.null,g=t.Type$,m=t.Tuple,b=t.Object,w=t.Symbol,x=t.Promise,O=t.operator,j=t.ClassType,$=t.defineConst,k=t.isApplicable,A=t.reservedSymbols=Object.create(null);Object.keys(e).forEach(t=>{A[t]=!0}),t.$app=Object.create(null),t.isNativeHost="undefined"==typeof window,t.createEmptyOperation=r;var S=Function.prototype.call.bind(Object.prototype.isPrototypeOf);t.isPrototypeOf=S;var N=Function.prototype.call.bind(Object.prototype.hasOwnProperty);t.ownsProperty=N;var T=Function.prototype.call.bind(Function.prototype.bind);t.safelyBind=T;var E=function(t){return new t(...Array.prototype.slice(arguments,1))};t.newInstance=E;t.safelyAssign=function(t,e,n){for(var r in e)if(!n||N(e,r)){var i=e[r];t[r]="function"!=typeof i?i:T(i,e)}return"function"==typeof e&&(!t.new&&(t.new=E.bind(null,e)),!t.bind&&(t.bind=T(Function.prototype.bind,e)),!t.call&&(t.call=T(Function.prototype.call,e))),t},t.completeFile=function(t,e){return t&&"string"==typeof t?t.endsWith("/")?t+(e?"test.es":"index.es"):t.endsWith(".es")?t:t+".es":e?"test.es":"index.es"};var C=t.sharedSymbols=Object.create(null);function I(t){return C[t]||(C[t]=new w(t))}t.sharedSymbolOf=I,t.staticOperator=function(n,r,i){return _(e,n,void 0!==i?i:I(n)),t.staticOperators[n]=O(r,o.operator),r},t.regexNumber=/(^)([-+]?\d*\.\d+|[-+]?\d+\.\d*|[+-]\d+|\d+)/,t.regexDecimal=/(^)([-+]?\d*\.\d+|[-+]?\d+\.\d*|[+-]\d+|\d\b|[1-9]\d*)/,t.regexPunctuation=/[\\(,)\s]/,t.regexSpecialSymbol=/[(`@:$"#)',;\\\s[\]{}]/,t.regexConstants=/^(null|true|false)$/,t.constantValues=Object.assign(Object.create(null),{null:null,true:!0,false:!1,0:0,1:1,2:2,3:3});var P=t.regexNumber,D=t.regexConstants,F=t.regexPunctuation,R=t.regexSpecialSymbol,z=t.isSafeName=function(t){return!(!t||R.test(t)||D.test(t)||P.test(t))};function L(t){if(null==t)return null;switch(typeof t){case"boolean":return u;case"number":return a;case"string":return l;case"function":return t.type===p?p:t.type===d?d:h;case"object":return t instanceof g?Object.getPrototypeOf(t).type||c:Array.isArray(t)?f:t instanceof Date?s:t instanceof x?y:t instanceof Set?i:t instanceof Map?n:c;default:return null}}t.isSafeSymbol=function(t){return!(!t||F.test(t)||R.test(t)&&!(t.length<2)||D.test(t)||P.test(t))},t.escapeSymbol=function(t){for(var e=[],n=0;n<t.length;n++)R.test(t[n])&&e.push("\\"),e.push(t[n]);return e.join("")},t.encodeFieldName=function(t){return z(t)?C[t]||new w(t):t},t.isObject=function(t){return t instanceof b||L(t)===c},t.typeOf=L,t.isTruthy=function(t){return void 0===t||!1!==t&&null!==t&&0!==t},t.isFalsy=function(t){return void 0!==t&&(!1===t||null===t||0===t)};var q=t.indexerOf=function(t){var e=L(t);return e&&e.indexer||v[":"]},M=t.protoValueOf=function(t,e,n){var r=e[n];return"function"!=typeof r||r.type!==p&&r.type!==h?r:V(t,r)};t.thisCall=function(t,e){var n=q(t).call(t,e);return"function"!=typeof n?n:arguments.length<3?n.call(t):n.apply(t,Array.prototype.slice.call(arguments,2))};var U=t.tryToUpdateName=function(t,e){return"function"==typeof t?t.name&&"string"==typeof t.name||Object.defineProperty(t,"name",{value:e}):t instanceof j&&(t.name&&"string"==typeof t.name||(t.name=e)),t};function _(t,e,n){return A[e]=!0,I(e),k(n)&&(n=V(null,n)),U(n,e),n&&"object"==typeof n&&(n.seal?n.seal():Object.freeze(n)),$(t,e,n)}function V(t,e){if(void 0!==e.this)return e;var n=T(e,t);return n.this=t,n.bound=e,void 0!==e.code&&(n.code=e.code),"string"==typeof e.name&&Object.defineProperty(n,"name",{value:e.name}),n.type!==e.type&&(n.type=e.type),e.type===p&&!0===e.static&&(n.const=!0),n}function B(t,e,n,r){if("function"==typeof n&&(N(n,"type")||(n.type=p),n.name||Object.defineProperty(n,"name",{value:"string"==typeof e?e:e[0]}),r&&k(n)&&(n=V(t,n))),"string"==typeof e)I(e),t[e]=n;else for(var i=0;i<e.length;i++)I(e[i]),t[e[i]]=n;return n}t.export=_,t.bindThis=V,t.link=B,t.copyType=function(t,e,n){for(var r=Object.getOwnPropertyNames(n),i=0;i<r.length;i++){var o=r[i],u=e[o];"function"==typeof u&&((u=T(u,e)).type=p,Object.defineProperty(u,"name",{value:n[o]})),t[n[o]]=u}return t},t.prepareOperation=function(t,e,n){Object.defineProperty(e,"name",{value:"noop"});var r=B(t,"empty",(function(){return e}),!0);B(t,"of",r,!0);var i=t.proto;B(i,"name",(function(){return"string"==typeof this.name?this.name:""})),B(i,"parameters",(function(){return(this.code||n).$[1]})),B(i,"body",(function(){return(this.code||n).$[2]})),B(i,"is-generic",(function(){return!(this.code instanceof m)})),B(i,"not-generic",(function(){return this.code instanceof m})),B(i,"is-empty",(function(){return this.code instanceof m&&(this.code.$.length<3||this.code.$[2].$.length<1)})),B(i,"not-empty",(function(){return!(this.code instanceof m)||this.code.$.length>2&&this.code.$[2].$.length>0})),B(i,"to-code",(function(t){return this.code||n})),B(i,"to-string",(function(){return(this.code||n)["to-string"]()}));var o=B(i,":",(function(t){return"string"==typeof t?M(this,i,t):t instanceof w?M(this,i,t.key):null}));o.get=function(t){return i[t]},B(t,"indexer",o)},t.prepareApplicable=function(t,e){var n=t.proto;B(n,"is-bound",(function(){return"function"==typeof this.bound})),B(n,"not-bound",(function(){return"function"!=typeof this.bound})),B(n,"this",(function(){return"function"==typeof this.bound?this.this:null})),B(n,"apply",(function(t,e){return void 0===t?this.apply(null):Array.isArray(e)?this.apply(t,e):void 0===e?this.call(t):this.call(t,e)})),B(n,["is","==="],(function(t){return"function"==typeof t&&(this===t||void 0!==this.this&&(this.this===t.this||Object.is(this.this,t.this))&&void 0!==this.bound&&this.bound===t.bound)})),B(n,["is-not","!=="],(function(t){return"function"!=typeof t||this!==t&&(void 0===this.this||this.this!==t.this&&!Object.is(this.this,t.this)||void 0===this.bound||this.bound!==t.bound)})),B(n,["equals","=="],(function(t){return"function"==typeof t&&(this===t||this===t.bound||void 0!==this.bound&&(this.bound===t||this.bound===t.bound))})),B(n,["not-equals","!="],(function(t){return"function"!=typeof t||this!==t&&this!==t.bound&&(void 0===this.bound||this.bound!==t&&this.bound!==t.bound)}))}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.tuple,r=e.array,i=e.object,o=e.symbol,u=t.Tuple,s=t.Symbol,a=t.isObject,l=t.thisCall,c=t.sharedSymbolOf,f=c("_"),p=c("object"),h=c("class"),d=c("append"),y=c("assign"),v=c("attach"),g=function(t){return(t=t["to-code"]())===o.empty?p:t},m=function(t,e,n){var a=n.$;if(a.length>2&&a[0]===o.literal&&a[1]===o.pairing&&a[2]instanceof s){var l=a[2].key;"array"!==l&&"object"!==l&&"class"!==l&&(a.length>3?a.splice(1,2):a.splice(2,1))}return e===r?new u([t,d,n]):e===i||(e=g(e))===p?new u([p,y,t,n]):new u([h,v,t,n])};t.EncodingContext=function(t,e){var n;this.objects={get:(n=new Map).get.bind(n),set:function(t,e){return n.set(t,e),e},add:function(t,e){return n.set(t,e),e}},this.objects.add(this.root=t,null),this.clist=[],this.shared=[],this.printing=e},t.EncodingContext.prototype={_createRef:function(t){var e=new u([f,this.shared.length]);return this.shared.push(t),e},begin:function(t){var e,n=this.objects.get(t);if(void 0===n)return this.objects.add(t,null);if(null===n)return n=this.clist.length,e=this._createRef(n),this.objects.set(t,n),this.clist.push([e,null,null]),e;var r=this.clist[n];if(!(e=r[0])){e=r[0]=this._createRef(n);var i=r[2],o=new u(i.$);i.$=e.$,r[2]=o}return e},encode:function(t){return null==t?null:"number"==typeof t||"string"==typeof t?t:Array.isArray(t)||a(t)?l(t,"to-code",this):l(t,"to-code")},end:function(t,e,n){e!==r&&e!==i&&e.name&&(n.$[1]!==o.pairing?n.$.splice(1,0,o.pairing,c(e.name)):n.$.length<3&&n.$.splice(2,0,c(e.name)));var u=this.objects.get(t);if(null===u)return u=this.clist.length,this.objects.set(t,u),this.clist.push([null,e,n]),t===this.root?this._finalize(u):n;var s=this.clist[u];return s[1]=e,s[2]=n,t===this.root?this._finalize(u):s[0]},_finalize:function(t){if(this.shared.length<1)return this.clist[t][2];for(var e,s,a=[o.literal],l=[new u([o.local,f,new u(a)])],c=0;c<this.shared.length;c++){var h=this.shared[c],d=this.clist[h];a.push((s=d[1])===r?n.array:s===i||(s=g(s))===p?n.object:new u([o.literal,o.pairing,s])),h===t?e=m.apply(null,d):l.push(m.apply(null,d))}return l.push(e||this.clist[t][2]),new u([o.function,o.pairing,n.empty,new u(l,!0)])}}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.null,n=t.link,r=t.Symbol;n(e,["is","===","equals","=="],(function(t){return Object.is(void 0===this?null:this,void 0===t?null:t)})),n(e,["is-not","!==","not-equals","!="],(function(t){return!Object.is(void 0===this?null:this,void 0===t?null:t)})),n(e,"compares-to",(function(t){return Object.is(this,void 0===t?null:t)?0:null})),n(e,"is-empty",(function(){return!0})),n(e,"not-empty",(function(){return!1})),n(e,["is-a","is-an"],(function(t){return null==t})),n(e,["is-not-a","is-not-an"],(function(t){return null!=t})),n(e,"to-code",(function(){return this})),n(e,"to-string",(function(){return"null"})),n(e,":",(function(t){return"string"==typeof t?e[t]:t instanceof r?e[t.key]:null}))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.type,r=e.symbol,i=e.object,o=t.null,u=t.Symbol,s=t.link,a=t.typeOf,l=t.bindThis,c=t.isApplicable,f=t.protoValueOf,p=t.sharedSymbolOf,h=n.proto;s(h,["is-a","is-an"],(function(t){return a(this)===t})),s(h,["is-not-a","is-not-an"],(function(t){return a(this)!==t}));var d=s(h,":",(function(t){var e="string"==typeof t?t:t instanceof u?t.key:"";return"proto"===e?this.reflect():"indexer"!==e?f(this,this,e):l(c(this.empty)?this.empty():this.empty,this.indexer)}));d.get=function(t){return"proto"===t?this.reflect():"indexer"===t?null:this[t]},s(n,"empty",n),s(n,"of",a,!0),s(n,"indexer",d),s(n,"reflect",(function(t){var e,r=i.empty();if(this===n&&null===t){for(e in o)r[e]=l(null,o[e]);return r.type=null,r}var u,s,f=this.proto;for(e in a(t)===this&&(s=t),f)"type"!==e&&void 0===h[e]&&(u=f[e],r[e]=c(u)?l(void 0!==s?s:s=c(this.empty)?this.empty():this.empty,u):u);var p=r.type=i.empty();for(e in this)"proto"!==e&&"type"!==e&&void 0===h[e]&&(u=this[e],p[e]=c(u)?l("indexer"!==e?this:void 0!==s?s:s=c(this.empty)?this.empty():this.empty,u):u);return r})),s(n,"seal",(function(){return this})),s(n,"is-sealed",(function(){return!0})),s(n,["is-a","is-an"],(function(t){return n===t}),!0),s(n,["is-not-a","is-not-an"],(function(t){return n!==t}),!0),s(n,"is-empty",(function(){return this===n})),s(n,"not-empty",(function(){return this!==n})),s(n,"to-code",(function(){return"string"==typeof this.name?p(this.name):r.empty})),s(n,"to-string",(function(){return"string"==typeof this.name?this.name:""}))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$.bool,n=t.link,r=t.Symbol,i=t.protoValueOf;n(e,"empty",!1),t.boolValueOf=n(e,"of",(function(t){return null!=t&&0!==t&&!1!==t}),!0);var o=e.proto;n(o,"is-empty",(function(){return!1===this})),n(o,"not-empty",(function(){return!1!==this})),n(o,"to-string",(function(){return!0===this?"true":"false"}));var u=n(o,":",(function(t){return"string"==typeof t?i(this,o,t):t instanceof r?i(this,o,t.key):null}));u.get=function(t){return o[t]},n(e,"indexer",u)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$.string,n=t.link,r=t.Symbol,i=t.thisCall,o=t.protoValueOf;n(e,"empty",""),n(e,"of",(function(t){if(void 0===t)return"";for(var e=[],n=0;n<arguments.length;n++){var r=arguments[n];"string"!=typeof r&&"string"!=typeof(r=i(r,"to-string"))&&(r=""),r&&e.push(r)}return e.join("")}),!0),n(e,"of-chars",(function(){return String.fromCharCode.apply(String,arguments)}),!0),n(e,"of-code",(function(t){return void 0===t?"":i(i(t,"to-code"),"to-string")}),!0);var u=e.proto;n(u,"length",(function(){return this.length})),n(u,"first",(function(t){return void 0===t?this.length>0?this.charAt(0):null:this.substr(0,t>>0)})),n(u,"first-of",(function(t,e){return e>>=0,this.indexOf(t,e<0?e+this.length:e)})),n(u,"last",(function(t){return void 0===t?this.length>0?this.charAt(this.length-1):null:this.substr(Math.max(0,this.length-(t>>=0)),t)})),n(u,"last-of",(function(t,e){return void 0===t?-1:"string"==typeof t&&t?this.lastIndexOf(t,(e=void 0===e?this.length:e>>0)<0?e+this.length:e):this.length})),n(u,"contains",(function(t){return"string"==typeof t&&this.indexOf(t)>=0})),n(u,"starts-with",(function(t){if("string"==typeof t&&this.startsWith(t))return!0;for(var e=1,n=arguments.length;e<n;e++)if("string"==typeof(t=arguments[e])&&this.startsWith(t))return!0;return!1})),n(u,"ends-with",(function(t){if("string"==typeof t&&this.endsWith(t))return!0;for(var e=0,n=arguments.length;e<n;e++)if("string"==typeof(t=arguments[e])&&this.endsWith(t))return!0;return!1}));var s=n(u,"copy",(function(t,e){return t>>=0,(e=void 0===e?1/0:e>>0)<0&&(t+=e,e=-e),t<0&&(t+=this.length)<0&&(e+=t,t=0),this.substr(t,e)})),a=n(u,"slice",(function(t,e){return(t>>=0)<0&&(t+=this.length)<0&&(t=0),(e=void 0===e?this.length:e>>0)<0&&(e+=this.length)<0&&(e=0),this.substr(t,e-t)}));n(u,"trim",String.prototype.trim),n(u,"trim-left",String.prototype.trimLeft),n(u,"trim-right",String.prototype.trimRight),n(u,"replace",(function(t,e){return"string"==typeof t&&t?this.replace(new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),"string"==typeof e?e:""):this})),n(u,"to-upper",(function(t){return!0===t?this.toLocaleUpperCase():this.toUpperCase()})),n(u,"to-lower",(function(t){return!0===t?this.toLocaleLowerCase():this.toLowerCase()})),n(u,["concat","+"],(function(){for(var e=this?[this]:[],n=0;n<arguments.length;n++){var r=arguments[n];"string"!=typeof r&&"string"!=typeof(r=t.thisCall(r,"to-string"))&&(r=""),r&&e.push(r)}return e.join("")})),n(u,"-",(function(){if(this.length<1||arguments.length<1)return this;for(var t=this,e=arguments.length-1;e>=0;e--){var n=arguments[e];"string"==typeof n?t.endsWith(n)&&(t=t.substring(0,t.length-n.length)):"number"==typeof n?t=t.substring(0,t.length-n):("string"!=typeof(n=i(n,"to-string"))&&(n=""),n&&t.endsWith(n)&&(t=t.substring(0,t.length-n.length)))}return t})),n(u,"split",(function(t){return void 0===t?this.split(" "):"string"!=typeof t?[this]:t?this.split(t):l.call(this)}));var l=n(u,"as-chars","function"==typeof Array.from?function(){return Array.from(this)}:function(){return this.length<1?[]:this.split(/(?=(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/)});n(u,"char-at",(function(t){t>>=0;var e=this.charCodeAt(t<0?t+this.length:t);return isNaN(e)?null:e})),n(u,"compares-to",(function(t){return"string"!=typeof t?null:this===t?0:this>t?1:-1})),n(u,">",(function(t){return"string"==typeof t?this>t:null})),n(u,">=",(function(t){return"string"==typeof t?this>=t:null})),n(u,"<",(function(t){return"string"==typeof t?this<t:null})),n(u,"<=",(function(t){return"string"==typeof t?this<=t:null})),n(u,"is-empty",(function(){return""===this})),n(u,"not-empty",(function(){return""!==this})),n(u,"to-string",(function(){return JSON.stringify(this)}));var c=n(u,":",(function(t){return"string"==typeof t?o(this,u,t):t instanceof r?o(this,u,t.key):"number"!=typeof t?null:arguments.length>1?a.apply(this,arguments):s.apply(this,[t,1])}));c.get=function(t){return u[t]},n(e,"indexer",c)}},function(t,e,n){"use strict";function r(t){var e=Number.isSafeInteger(t)?t:isNaN(t)?0:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:Math.trunc(t);return 0===e?0:e}function i(t){return t>=0?Math.trunc(t):4294967296+(t>>0)}t.exports=function(t){var e=t.$,n=e.number,o=e.range,u=t.link,s=t.Symbol,a=t.bindThis,l=t.copyType,c=t.protoValueOf;l(n,Number,{MAX_VALUE:"max",MIN_VALUE:"smallest",MAX_SAFE_INTEGER:"max-int",MIN_SAFE_INTEGER:"min-int",POSITIVE_INFINITY:"infinite",NEGATIVE_INFINITY:"-infinite"}),u(n,"min",-Number.MAX_VALUE),u(n,"bits",32);var f=u(n,"max-bits",2147483647),p=u(n,"min-bits",-2147483648);u(n,"empty",0),u(n,"invalid",NaN);var h=/\s*\(number\s+(invalid|[-]?infinite)\s*\)\s*/,d=u(n,"parse",(function(t){if("string"!=typeof t)return"number"==typeof t?t:NaN;var e=t.match(h);switch(e&&e.length>1?e[1]:""){case"invalid":return NaN;case"infinite":return Number.POSITIVE_INFINITY;case"-infinite":return Number.NEGATIVE_INFINITY;default:return parseFloat(t)}}),!0),y=u(n,"parse-int",(function(t){var e,n;if("string"!=typeof t)return"number"!=typeof t?NaN:0===t?0:isNaN(t)?NaN:0===(e=Math.trunc(t))?0:Number.isSafeInteger(e)?e:NaN;if(t.startsWith("0x"))n=16,t=t.substring(2);else if(t.startsWith("0b"))n=2,t=t.substring(2);else if(t.length>1&&t.startsWith("0"))n=8,t=t.substring(1);else{n=10;var r=t.indexOf(".");r>=0&&(t=t.substr(0,r))}return 0===(e=parseInt(t,n))?0:t.endsWith("i")?e>>0:Number.isSafeInteger(e)?e:NaN}),!0),v=t.numberValueOf=function(t,e,n){return function(t,r){var i;return i="string"==typeof t?t.startsWith("0x")||t.startsWith("0b")?n(t):e(t):"boolean"==typeof t?t?1:0:t instanceof Date?t.getTime():null==t?0:"number"==typeof t?t:NaN,isNaN(i)&&"number"==typeof r?r:i}}(0,d,y);u(n,"of",a(n,v),!0);var g=t.intValueOf=function(t,e){return function(t,n){var i;if("string"==typeof t)i=e(t);else if("number"==typeof t)i=0===t?0:Math.trunc(t);else if("boolean"==typeof t)return t?1:0;return Number.isSafeInteger(i)?i:Number.isSafeInteger(n)?n:r(i)}}(0,y);u(n,"of-int",a(n,g),!0),u(n,"of-bits",(function(t){return g(t)>>0}),!0);var m=n.proto;u(m,"is-valid",(function(){return!isNaN(this)})),u(m,"is-invalid",(function(){return isNaN(this)})),u(m,"is-finite",(function(){return isFinite(this)})),u(m,"is-infinite",(function(){return!isFinite(this)})),u(m,"is-int",(function(){return Number.isSafeInteger(this)&&(0!==this||1/this==1/0)})),u(m,"is-not-int",(function(){return!Number.isSafeInteger(this)||0===this&&1/this!=1/0})),u(m,"is-bits",(function(){return Number.isSafeInteger(this)&&this>=p&&this<=f&&(0!==this||1/this==1/0)})),u(m,"is-not-bits",(function(){return!Number.isSafeInteger(this)||this<p||this>f||0===this&&1/this!=1/0})),u(m,"as-int",(function(){return r(this)})),u(m,"as-bits",(function(){return this>>0})),u(m,["th","st","nd","rd"],(function(){var t=r(this);return t>=0?t-1:t})),u(m,["+","plus"],function(t){return function(){for(var e=this,n=0;n<arguments.length;n++){var r=arguments[n];e+="number"==typeof r?r:t(r)}return e}}(v)),u(m,["-","minus"],function(t){return function(){for(var e=this,n=0;n<arguments.length;n++){var r=arguments[n];e-="number"==typeof r?r:t(r)}return e}}(v)),u(m,["*","times"],function(t){return function(){for(var e=this,n=0;n<arguments.length;n++){var r=arguments[n];e*="number"==typeof r?r:t(r)}return e}}(v)),u(m,["/","divided-by"],function(t){return function(){for(var e=this,n=0;n<arguments.length;n++){var r=arguments[n];e/="number"==typeof r?r:t(r)}return e}}(v)),u(m,"%",(function(t){return void 0===t?this:"number"!=typeof t||isNaN(t)?NaN:isFinite(t)?this%v(t):this})),u(m,"&",(function(t){return this&("number"==typeof t?t:v(t))})),u(m,"|",(function(t){return this|("number"==typeof t?t:v(t))})),u(m,"^",(function(t){return this^("number"==typeof t?t:v(t))})),u(m,"<<",(function(t){return this<<("number"==typeof t?t:g(t))})),u(m,">>",(function(t){return this>>("number"==typeof t?t:g(t))})),u(m,">>>",(function(t){return this>>>("number"==typeof t?t:g(t))}));var b=u(m,"compares-to",(function(t){return"number"!=typeof t?null:this===t?0:isNaN(this)||isNaN(t)?isNaN(this)&&isNaN(t)?0:null:this>t?1:-1}));u(m,">",(function(t){var e=b.call(this,t);return null!==e?e>0:null})),u(m,">=",(function(t){var e=b.call(this,t);return null!==e?e>=0:null})),u(m,"<",(function(t){var e=b.call(this,t);return null!==e?e<0:null})),u(m,"<=",(function(t){var e=b.call(this,t);return null!==e?e<=0:null})),u(m,["equals","=="],(function(t){return"number"==typeof t&&(this===t||isNaN(this)&&isNaN(t))})),u(m,["not-equals","!="],(function(t){return"number"!=typeof t||this!==t&&!(isNaN(this)&&isNaN(t))})),u(m,"ceil",(function(){return Math.ceil(this)})),u(m,"floor",(function(){return Math.floor(this)})),u(m,"round",(function(){return Math.round(this)})),u(m,"trunc",(function(){return Math.trunc(this)})),u(m,"is-empty",(function(){return 0===this||isNaN(this)})),u(m,"not-empty",(function(){return 0!==this&&!isNaN(this)})),u(m,"to-string",(function(t){if(isNaN(this))return"(number invalid)";if(this===Number.POSITIVE_INFINITY)return"(number infinite)";if(this===Number.NEGATIVE_INFINITY)return"(number -infinite)";if(!t)return Object.is(this,-0)?"-0":this.toString();switch(t){case"H":case"HEX":return i(this).toString(16);case"h":case"hex":return"0x"+i(this).toString(16);case"O":case"OCT":return i(this).toString(8);case"o":case"oct":return"0"+i(this).toString(8);case"B":case"BIN":return i(this).toString(2);case"b":case"bin":return"0b"+i(this).toString(2);default:return this.toString()}}));var w=u(m,":",(function(t,e){return"string"==typeof t?c(this,m,t):"number"==typeof t?o.of(this,t,e):t instanceof s?c(this,m,t.key):null}));w.get=function(t){return m[t]},u(n,"indexer",w)}},function(t,e,n){"use strict";(function(e){function n(){var t,n,r;return(t=Intl&&Intl.DateTimeFormat&&Intl.DateTimeFormat())&&(n=t&&t.resolveOptions&&t.resolveOptions())&&n.timeZone||e&&e.env.TZ||((r=(new Date).getTimezoneOffset()/60)>=0?"UTC+"+r.toString():"UTC"+r.toString())}t.exports=function(t){var e=t.$,r=e.date,i=e.object,o=t.link,u=t.Symbol,s=t.protoValueOf,a=e.number.proto["compares-to"],l=e.number.proto["to-string"],c=o(r,"empty",new Date(0)),f=o(r,"invalid",new Date(NaN));o(r,"parse",(function(t){return"string"!=typeof t?f:new Date(t)}),!0),o(r,"of",(function(t,e,n,r,i,o,u){switch(arguments.length){case 0:return c;case 1:return t instanceof Date?t:new Date(t);case 2:return new Date(t,e-1);case 3:return new Date(t,e-1,n);case 4:return new Date(t,e-1,n,r);case 5:return new Date(t,e-1,n,r,i);case 6:return new Date(t,e-1,n,r,i,o);default:return new Date(t,e-1,n,r,i,o,u)}}),!0),o(r,"of-utc",(function(t,e,n,r,i,o,u){switch(arguments.length){case 0:return c;case 1:return new Date(Date.UTC(t,0));case 2:return new Date(Date.UTC(t,e-1));case 3:return new Date(Date.UTC(t,e-1,n));case 4:return new Date(Date.UTC(t,e-1,n,r));case 5:return new Date(Date.UTC(t,e-1,n,r,i));case 6:return new Date(Date.UTC(t,e-1,n,r,i,o));default:return new Date(Date.UTC(t,e-1,n,r,i,o,u))}}),!0),o(r,"now",(function(){return new Date}),!0),o(r,"timestamp",(function(){return Date.now()}),!0),o(r,"timezone",(function(){return i.of({name:n(),offset:(new Date).getTimezoneOffset()})}),!0);var p=r.proto;o(p,"is-valid",(function(){return!isNaN(this.getTime())})),o(p,"is-invalid",(function(){return isNaN(this.getTime())})),o(p,"date-fields",(function(t){return isNaN(this.getTime())?null:t?[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate()]:[this.getFullYear(),this.getMonth()+1,this.getDate()]})),o(p,"time-fields",(function(t){return isNaN(this.getTime())?null:t?[this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds(),this.getUTCMilliseconds()]:[this.getHours(),this.getMinutes(),this.getSeconds(),this.getMilliseconds()]})),o(p,"all-fields",(function(t){return isNaN(this.getTime())?null:t?[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds(),this.getUTCMilliseconds()]:[this.getFullYear(),this.getMonth()+1,this.getDate(),this.getHours(),this.getMinutes(),this.getSeconds(),this.getMilliseconds()]})),o(p,"week-day",(function(t){return isNaN(this.getTime())?null:t?this.getUTCDay():this.getDay()})),o(p,"timestamp",(function(t){return this.getTime()})),o(p,"+",(function(t){return"number"==typeof t?new Date(this.getTime()+t):this})),o(p,"-",(function(t){return"number"==typeof t?new Date(this.getTime()-t):t instanceof Date?this.getTime()-t.getTime():this}));var h=o(p,"compares-to",(function(t){return t instanceof Date?a.call(this.getTime(),t.getTime()):null}));o(p,["is","===","equals","=="],(function(t){return this===t||0===h.call(this,t)})),o(p,["is-not","!==","not-equals","!="],(function(t){return this!==t&&0!==h.call(this,t)})),o(p,">",(function(t){var e=h.call(this,t);return null!==e?e>0:null})),o(p,">=",(function(t){var e=h.call(this,t);return null!==e?e>=0:null})),o(p,"<",(function(t){var e=h.call(this,t);return null!==e?e<0:null})),o(p,"<=",(function(t){var e=h.call(this,t);return null!==e?e<=0:null})),o(p,"is-empty",(function(){var t=this.getTime();return 0===t||isNaN(t)})),o(p,"not-empty",(function(){var t=this.getTime();return 0!==t&&!isNaN(t)})),o(p,"to-string",(function(t){if(void 0===t){var e=this.getTime();return isNaN(e)?"(date invalid)":0===e?"(date empty)":"(date of "+l.call(this.getTime())+")"}switch(t.toLocaleLowerCase()){case"gmt":case"utc":return this.toUTCString();case"date":return this.toLocaleDateString();case"time":return this.toLocaleTimeString();default:return this.toLocaleString()}}));var d=o(p,":",(function(t){return"string"==typeof t?s(this,p,t):t instanceof u?s(this,p,t.key):null}));d.get=function(t){return p[t]},o(r,"indexer",d)}}).call(this,n(1))},function(t,e,n){"use strict";t.exports=function(t){var e=t.$.range,n=t.Range,r=t.Symbol,i=t.link,o=t.protoValueOf;i(e,"empty",new n(0,0,1)),i(e,"of",(function(t,e,r){return t instanceof n?t:("number"==typeof t&&!isNaN(t)&&isFinite(t)||(t=0),void 0===e?(e=t,t=0):"number"==typeof e&&!isNaN(e)&&isFinite(e)||(e=0),"number"==typeof r&&!isNaN(r)&&isFinite(r)||(r=0),new n(t,e,r||(t<=e?1:-1)))}),!0);var u=e.proto;i(u,"begin",(function(){return this.begin})),i(u,"end",(function(){return this.end})),i(u,"step",(function(){return this.step})),i(u,"count",(function(){var t=this.end-this.begin,e=Math.trunc(t/this.step),n=t%this.step;return e<0?0:n?e+1:e})),i(u,"iterate",(function(){var t=this,e=null,n=this.begin;return function(r){return null!==e&&!0===r?e:(t.step>0?n>=t.end:n<=t.end)?null:(e=n,n+=t.step,e)}})),i(u,["is","===","equals","=="],(function(t){return this===t||t instanceof n&&this.begin===t.begin&&this.end===t.end&&this.step===t.step})),i(u,["is-not","!==","not-equals","!="],(function(t){return!(this===t||t instanceof n&&this.begin===t.begin&&this.end===t.end&&this.step===t.step)})),i(u,"compares-to",(function(t){return this===t?0:t instanceof n&&this.step===t.step?this.step>0?this.begin<t.begin?this.end>=t.end?1:null:this.begin===t.begin?this.end<t.end?-1:this.end===t.end?0:1:this.end<=t.end?-1:null:this.begin>t.begin?this.end<=t.end?1:null:this.begin===t.begin?this.end>t.end?-1:this.end===t.end?0:1:this.end>=t.end?-1:null:null})),i(u,"is-empty",(function(){return this.step>0?this.begin>=this.end:this.begin<=this.end})),i(u,"not-empty",(function(){return this.step>0?this.begin<this.end:this.begin>this.end})),i(u,"to-string",(function(){return"("+[this.begin,this.end,this.step].join(" ")+")"}));var s=i(u,":",(function(t,e){return"string"==typeof t?o(this,u,t):t instanceof r?o(this,u,t.key):null}));s.get=function(t){return u[t]},i(e,"indexer",s)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.symbol,r=e.tuple,i=e.string,o=t.Symbol,u=t.link,s=t.isSafeName,a=t.isSafeSymbol,l=t.escapeSymbol,c=t.protoValueOf,f=i.proto["compares-to"],p=i.proto["to-string"],h=t.sharedSymbols,d=t.sharedSymbolOf,y=u(n,"empty",d(""));u(n,"etc",d("...")),u(n,"all",d("*")),u(n,"any",d("?")),u(n,"quote",d("`")),u(n,"lambda",d("=")),u(n,"stambda",d("->")),u(n,"function",d("=>")),u(n,"operator",d("=?")),u(n,"let",d("let")),u(n,"var",d("var")),u(n,"const",d("const")),u(n,"local",d("local")),u(n,"locon",d("locon")),u(n,"escape",d("\\")),u(n,"begin",d("(")),u(n,"end",d(")")),u(n,"comma",d(",")),u(n,"period",d(".")),u(n,"semicolon",d(";")),u(n,"literal",d("@")),u(n,"pairing",d(":")),u(n,"subject",d("$")),u(n,"comment",d("#")),u(n,"of",(function(t){return"string"==typeof t?h[t]||new o(t):t instanceof o?t:y}),!0),u(n,"of-shared",(function(t){return"string"==typeof t?d(t):t instanceof o?d(t.key):y}),!0),u(n,"is-safe",(function(t,e){return"string"==typeof t?e===n?a(t):s(t):t instanceof o&&(e===n?a(t.key):s(this.key))}),!0);var v=n.proto;u(v,"key",(function(){return this.key})),u(v,"is-safe",(function(t){return t===n?a(this.key):s(this.key)})),u(v,"is-unsafe",(function(t){return t===n?!a(this.key):!s(this.key)})),u(v,["is","===","equals","=="],(function(t){return this===t||t instanceof o&&this.key===t.key})),u(v,["is-not","!==","not-equals","!="],(function(t){return!(this===t||t instanceof o&&this.key===t.key)})),u(v,"compares-to",(function(t){return this===t?0:t instanceof o?f.call(this.key,t.key):null})),u(v,"is-empty",(function(){return""===this.key||"\t"===this.key})),u(v,"not-empty",(function(){return""!==this.key&&"\t"!==this.key})),u(v,"to-string",(function(t){switch(t){case i:return a(this.key)?this.key:p.call(this.key);case r:return this.key?a(this.key)?"(`"+this.key+")":"(symbol of "+p.call(this.key)+")":"(`)";case n:return a(this.key)?this.key:l(this.key);default:return this.key}}));var g=u(v,":",(function(t){return"string"==typeof t?c(this,v,t):t instanceof o?c(this,v,t.key):null}));g.get=function(t){return v[t]},u(n,"indexer",g)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.tuple,r=e.array,i=e.symbol,o=t.Tuple,u=t.Range,s=t.Symbol,a=t.link,l=t.thisCall,c=t.protoValueOf,f=t.sharedSymbolOf,p=a(n,"empty",new o([])),h=a(n,"blank",new o([],!0)),d=a(n,"unknown",new o([i.etc]));a(n,"lambda",new o([i.lambda,p,h])),a(n,"stambda",new o([i.stambda,p,h])),a(n,"function",new o([i.function,p,h])),a(n,"operator",new o([i.operator,p,h])),a(n,"array",new o([i.literal])),a(n,"object",new o([i.literal,i.pairing])),a(n,"class",new o([i.literal,i.pairing,f("class")])),a(n,"accepts",(function(t){return t instanceof s||t instanceof o||"string"==typeof t||"number"==typeof t||"boolean"==typeof t||t instanceof u||t instanceof Date||null==t}),!0);var y=a(n,"atom-of",(function(t){return t instanceof s||t instanceof o||"string"==typeof t||"number"==typeof t||"boolean"==typeof t||t instanceof u||t instanceof Date||null===t?t:void 0===t?null:d}),!0),v=function(){var t=this.length;for(this.push.apply(this,arguments);t<this.length;t++)this[t]=y(this[t]);return this};a(n,"of",(function(){return arguments.length?new o(v.apply([],arguments)):p}),!0),a(n,"of-plain",(function(){return arguments.length?new o(v.apply([],arguments),!0):h}),!0),a(n,"from",(function(){return b.apply(p,arguments)}),!0),a(n,"from-plain",(function(){return b.apply(h,arguments)}),!0);var g=n.proto;a(g,"length",(function(){return this.$.length})),a(g,"is-plain",(function(){return!0===this.plain})),a(g,"not-plain",(function(){return!0!==this.plain})),a(g,"as-plain",(function(){return!0===this.plain?this:this.$.length<1?h:new o(this.$,!0)})),a(g,"source-map",(function(){return this.source}));var m=r.proto;a(g,"iterate",(function(){return m.iterate.apply(this.$,arguments)})),a(g,"copy",(function(t,e){var n=m.copy.apply(this.$,arguments);return n&&n.length>0?n.length===this.$.length?this:new o(n,this.plain):this.plain?h:p})),a(g,"slice",(function(t,e){var n=m.slice.apply(this.$,arguments);return n&&n.length>0?n.length===this.$.length?this:new o(n,this.plain):this.plain?h:p})),a(g,"first",(function(t){if(void 0===t)return m.first.call(this.$);var e=m.first.call(this.$,t>>0);return e&&e.length>0?e.length>=this.$.length?this:new o(e,this.plain):this.plain?h:p})),a(g,"first-of",(function(t){return m["first-of"].call(this.$,t)})),a(g,"last",(function(t){if(void 0===t)return m.last.call(this.$);var e=m.last.call(this.$,t>>0);return e&&e.length>0?e.length>=this.$.length?this:new o(e,this.plain):this.plain?h:p})),a(g,"last-of",(function(t){return m["last-of"].call(this.$,t)})),a(g,"concat",(function(){var t=v.apply(this.$.slice(0),arguments);return t.length>this.$.length?new o(t,this.plain):this}));var b=a(g,["merge","+"],(function(){for(var t=this.$.slice(0),e=0;e<arguments.length;e++){var n=arguments[e];Array.isArray(n)?v.apply(t,m.select.call(n)):n instanceof o?t.push.apply(t,n.$):t.push(y(n))}return t.length>this.$.length?new o(t,this.plain):this}));a(g,"to-array",(function(){return this.$.slice(0)}));var w=a(g,["equals","=="],(function(t){if(this===t)return!0;if(!(t instanceof o)||this.plain!==t.plain||this.$.length!==t.$.length)return!1;for(var e=this.$,n=t.$,r=e.length-1;r>=0;r--)if(!l(e[r],"equals",n[r]))return!1;return!0}));a(g,["not-equals","!="],(function(t){return!w.call(this,t)})),a(g,"compares-to",(function(t){return w.call(this,t)?0:null})),a(g,"is-empty",(function(){return!(this.$.length>0)})),a(g,"not-empty",(function(){return this.$.length>0}));var x=function(e,n,r){if(Array.isArray(e)||(e=[]),"string"!=typeof n&&(n=" "),"string"!=typeof r&&(r=""),this.plain&&1===this.$.length)return e.length>0&&e.push(" "),this.$[0]instanceof o?x.call(this.$[0],e,n,r):e.push(l(this.$[0],"to-string")),e;var u,s,a="\n"+r;if(this.plain){for(u=0;u<this.$.length;u++)e.push(a),(s=this.$[u])instanceof o?x.call(s,e,n,r):e.push(l(s,"to-string"));return e}e.push("(");var c=!0,f=!1;for(u=0;u<this.$.length;u++)s=this.$[u],0===u&&(f=s===i.literal),1===u&&(f=f&&s===i.pairing),s instanceof o?s.plain?s.$.length>0&&(x.call(s,e,n,r+n),s.$.length>1&&e.push(a)):(c?c=!1:e.push(" "),x.call(s,e,n,r)):t.punctuations.has(s)?e.push(s.key):t.operatorSymbols.has(s)&&u<1?(c=!1,e.push(s.key)):(c?c=!1:f&&2===u?f=!1:e.push(" "),e.push(t.thisCall(s,"to-string")));return e.push(")"),e};a(g,"to-string",(function(t,e){return x.call(this,[],t,e).join("")}));var O=a(g,":",(function(t,e){return"string"==typeof t?c(this,g,t):t instanceof s?c(this,g,t.key):"number"!=typeof t?null:void 0===e?this.$[t]:new o(m.slice.apply(this.$,arguments),this.plain)}));O.get=function(t){return g[t]},a(n,"indexer",O)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.operator,r=e.tuple,i=t.link;(0,t.prepareOperation)(n,i(n,"noop",t.operator((function(){return null}),r.operator),!0),r.operator)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.lambda,r=e.tuple,i=t.link,o=t.bindThis,u=t.constambda,s=t.prepareOperation,a=t.prepareApplicable,l=i(n,"noop",t.lambda((function(){return null}),r.lambda),!0);i(n,"static",t.constambda((function(){return null}),r.stambda),!0);var c=n.proto;i(c,"is-static",(function(){return!0===this.static||!0===this.const})),i(c,"is-const",(function(){return!0===this.const})),i(c,"bind",(function(t){return"function"==typeof this.bound?this:(void 0===t&&(t=null),!0!==this.static||void 0===this.this?o(t,this):u(this.bind(null,t),this.code))})),s(n,l,r.lambda),a(n,r.lambda)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.function,r=e.tuple,i=e.object,o=t.Tuple,u=t.link,s=t.bindThis,a=t.safelyAssign,l=t.prepareOperation,c=t.prepareApplicable;l(n,u(n,"noop",t.function((function(){return null}),r.function),!0),r.function);var f=n.proto;u(f,"bind",(function(t){return s(void 0!==t?t:null,this)})),u(f,["generic","$"],(function(){return this["--generic"]||(this.code instanceof o?null:this["--generic"]=a(i.empty(),"function"==typeof this.bound?this.bound:this))})),c(n,r.function)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.iterator,r=e.array,i=t.Tuple,o=t.Symbol,u=t.Iterator,s=t.link,a=t.thisCall,l=t.boolValueOf,c=t.isApplicable,f=t.protoValueOf,p=t.numberValueOf,h=t.sharedSymbolOf,d=t.iterateOf=function(t){return c(t)||c(t=a(t,"iterate"))?t:null},y=t.iterateOfGeneric=function(t,e){return t&&"function"==typeof t.next?e?function(e){if(void 0!==n&&void 0!==e&&l(e))return n;if(null===n)return null;var r=t.next();return n=!r||r.done?null:r.value}:function(e){if(void 0!==n&&void 0!==e&&l(e))return n;if(null===n)return null;var r=t.next();return n=!r||r.done?null:[r.value]}:null;var n},v=s(n,"empty",new u(null));s(n,"of",(function(t){if(t instanceof u)return t;var e=d(t);return e?new u(e):v}),!0),s(n,"of-generic",(function(t){var e=y(t);return e?new u(e):v}),!0);s(n,"of-unsafe",(function(t){var e=d(t);return e?new u(function(t){var e;return function(n){if(void 0!==e&&l(n))return e;if(null===t)return null;var r=t();return r===e||Object.is(r,e)?t=null:e=r}}(e)):v}),!0);var g=n.proto;s(g,"iterate",(function(){return this.next})),s(g,"skip",(function(t){if(t>>=0,!this.next||t<=0)return this;var e,n=this.next;return this.next=function(r){if(void 0!==e&&void 0!==r&&l(r))return e;for(var i;t>0;)if(i=n(),t--,null==i){n=null;break}return null==(i=n&&n())?null:e=i},this})),s(g,"keep",(function(t){if(!this.next)return this;if((t>>=0)<=0)return this.next=null,this;var e,n=this.next;return this.next=function(r){if(void 0!==e&&void 0!==r&&l(r))return e;if(t<=0)return null;var i=n();return--t<=0&&(n=null),null==i?null:e=i},this})),s(g,"select",(function(t){if(!this.next)return this;if(!c(t))return l(t)||(this.next=null),this;var e,n=this.next;return this.next=function(r){if(void 0!==e&&void 0!==r&&l(r))return e;for(var i=n&&n();null!=i;){if(l(Array.isArray(i)?t.apply(this,i):t.call(this,i)))return e=i;i=n()}return n=null},this})),s(g,"map",(function(t){if(!this.next)return this;var e,n=c(t)?t:function(){return t},r=this.next;return this.next=function(t){if(void 0!==e&&void 0!==t&&l(t))return e;var i=r&&r();return null==i?r=null:(e=Array.isArray(i)?n.apply(this,i):n.call(this,i),Array.isArray(e)?e:e=[e])},this})),s(g,"reduce",(function(t,e){if(!c(e)){if(!c(t))return void 0===t?m.call(this):b.call(this,t);e=t,t=null}for(var n,r=this.next&&this.next();null!=r;)Array.isArray(r)?(n=r.slice()).unshift(t):n=[t,r],t=e.apply(this,n),r=this.next();return this.next=null,t}));var m=s(g,["count","for-each"],(function(t){var e=0,n=this.next&&this.next();if(c(t))for(;void 0!==n&&null!=n;)l(Array.isArray(n)?t.apply(this,n):t.call(this,n))&&e++,n=this.next();else for(;void 0!==n&&null!=n;)e++,n=this.next();return this.next=null,e}));s(g,"sum",(function(t){for(var e="number"==typeof t?t:p(t),n=this.next&&this.next();void 0!==n&&null!=n;)Array.isArray(n)&&(n=n.length>0?n[0]:0),e+="number"==typeof n?n:p(n),n=this.next();return this.next=null,e})),s(g,"average",(function(t){for(var e=0,n=0,r=this.next&&this.next();void 0!==r&&null!=r;)e++,Array.isArray(r)&&(r=r.length>0?r[0]:0),n+="number"==typeof r?r:p(r),r=this.next();return this.next=null,e>0&&!isNaN(n/=e)?n:"number"==typeof t?t:0})),s(g,"max",(function(t){var e=null,n=this.next&&this.next();if(c(t))for(;void 0!==n&&null!=n;)Array.isArray(n)&&n.length>0&&(n=n[0],t.call(this,n)&&(null===e||a(n,"compares-to",e)>0)&&(e=n)),n=this.next();else for(;void 0!==n&&null!=n;)Array.isArray(n)&&n.length>0&&(n=n[0],(null===e||a(n,"compares-to",e)>0)&&(e=n)),n=this.next();return this.next=null,e})),s(g,"min",(function(t){var e=null,n=this.next&&this.next();if(c(t))for(;void 0!==n&&null!=n;)Array.isArray(n)&&n.length>0&&(n=n[0],t.call(this,n)&&(null===e||a(n,"compares-to",e)<0)&&(e=n)),n=this.next();else for(;void 0!==n&&null!=n;)Array.isArray(n)&&n.length>0&&(n=n[0],(null===e||a(n,"compares-to",e)<0)&&(e=n)),n=this.next();return this.next=null,e})),s(g,"is-empty",(function(){return!this.next})),s(g,"not-empty",(function(){return!!this.next})),s(g,"join",(function(t){var e="";"string"!=typeof t&&(t=" ");for(var n=this.next&&this.next();void 0!==n&&null!=n;)Array.isArray(n)&&(n=n.length>0?n[0]:""),e.length>0&&(e+=t),e+="string"==typeof n?n:a(n,"to-string"),n=this.next();return this.next=null,e})),s(g,"collect",(function(t){Array.isArray(t)||(t=[]);for(var e=this.next&&this.next();void 0!==e&&null!=e;)t.push(Array.isArray(e)?e=e.length>0?e[0]:null:e),e=this.next();return this.next=null,t}));var b=s(g,"finish",(function(t){t=[t];for(var e=this.next&&this.next();void 0!==e&&null!=e;)t=e,e=this.next();return this.next=null,Array.isArray(t)?t.length>0?t[0]:null:t})),w=r.proto,x=h("of"),O=h("iterator"),j=new i([O,h("empty")]),$=s(g,"to-code",(function(){if(!this.next)return j;var t=this.collect();return this.next=w.iterate.call(t),new i([O,x,w["to-code"].call(t)])})),k=e.tuple.proto["to-string"];s(g,"to-string",(function(t){return this.next?k.call($.call(this)):"(iterator empty)"}));var A=s(g,":",(function(t){return"string"==typeof t?f(this,g,t):t instanceof o?f(this,g,t.key):null}));A.get=function(t){return g[t]},s(n,"indexer",A)}},function(t,e,n){"use strict";(function(e){t.exports=function(t){var n=t.$,r=n.promise,i=n.tuple,o=n.object,u=n.symbol,s=t.Symbol,a=t.Promise,l=t.link,c=t.export,f=t.isApplicable,p=t.protoValueOf,h=t.sharedSymbolOf;function d(t){return null!=t}function y(t,e){return d(t)?t:!e||!d(e.excuse)||e.excuse}function v(t,e){return!0!==t.excusable&&(t.excusable=!0),f(e)&&(t.$cancel=e),t}function g(t,e){return t(Object.freeze(o.of({result:e})))}function m(t,e){return t(Object.freeze(o.of({excuse:y(e)})))}function b(t,e){return t instanceof a?v(t):f(t)?e?(n=t,v(new a((function(t,e){r=n(t,e)})),r)):function(t){var e;return v(new a((function(n,r){e=t(Object.freeze(o.of({resolve:n,reject:r})))})),e)}(t):(i=t,v(Array.isArray(i)?d(u=i[1])?a.reject(u):void 0===(u=i[0])||null===u?N:a.resolve(u):!0===(u=y(i))?T:a.reject(u)));var n,r,i,u}function w(t,e){return function(n,r){Array.isArray(t)?d(t[1])?r(t[1]):n(void 0===t[0]?null:t[0]):r(y(t,e))}}function x(t){return function(e,n){n(t)}}function O(t){return f(t)?function(e){var n=t.apply(null,arguments);return n instanceof a?n.then.bind(n):f(n)?(n=b(n)).then.bind(n):w(n,e)}:function(e){return e&&d(e.excuse)?x(e.excuse):w(t)}}function j(t,e){return function(n,r){t.then((function(t){g(e,t)(n,r)}),(function(t){m(e,t)(n,r)}))}}function $(t,e){return function(n){return n&&d(n.excuse)?x(n.excuse):j(t,e)}}function k(t,e){return function(n){var r=t.apply(null,arguments);return r instanceof a?j(r,e):f(r)?j(b(r),e):Array.isArray(r)?function(t,n){e.apply(null,r)(t,n)}:x(y(r,n))}}function A(t){Array.isArray(t)||(t=[]);for(var e=0;e<t.length;e++)t[e]=b(t[e]);return t}var S,N=l(r,"empty",a.resolve(null));S=function(e,n){return t.$warn("promise","unhandled rejection found.",[e,n]),!0===n.excusable},t.isNativeHost?e.on("unhandledRejection",S):window.addEventListener("unhandledrejection",(function(t){S(t.reason,t.promise)&&t.preventDefault()}));var T=l(r,"nothing",a.reject(!0));T.catch((function(){}));var E=function(){return this};c(n,"commit",l(r,"of",(function(t,e){var n=arguments.length-1;e=n>0?O(arguments[n]):null;for(var r=n-1;r>0;r--){var i=arguments[r];f(i)||(i=E.bind(i)),e=k(i,e)}return t=null==t?T:b(t),e?b($(t,e)(),!0):t}),!0)),l(r,"of-resolved",(function(t){return null==t?N:v(a.resolve(t))}),!0),l(r,"of-rejected",(function(t){return!0===(t=y(t))?T:v(a.reject(t))}),!0),c(n,"commit*",l(r,"of-all",(function(t){var e=A(Array.prototype.slice.call(arguments));return e.length>0?v(a.all(e)):N}),!0)),l(r,"all",(function(t){if(!Array.isArray(t))return N;var e=A(t);return e.length>0?v(a.all(e)):N}),!0),c(n,"commit?",l(r,"of-any",(function(t){var e=A(Array.prototype.slice.call(arguments));return e.length>1?v(a.race(e)):e.length>0?e[0]:T}),!0)),l(r,"any",(function(t){if(!Array.isArray(t))return T;var e=A(t);return e.length>1?v(a.race(e)):e.length>0?e[0]:T}),!0);var C=r.proto;l(C,"is-cancellable",(function(){return f(this.$cancel)})),l(C,"cancel",(function(){return f(this.$cancel)?this.$cancel.apply(this,arguments):null})),l(C,"then",(function(t){return void 0===t?this:b(j(this,O(t)),!0)})),l(C,"finally",(function(t){return f(t)&&this.then(g.bind(null,t),m.bind(null,t)),this})),l(C,"is-empty",(function(){return this===N||this===T})),l(C,"not-empty",(function(){return this!==N&&this!==T}));var I=h("promise"),P=i.of(I,h("empty")),D=i.of(I,h("nothing")),F=i.of(I,h("of"),u.etc),R=l(C,"to-code",(function(){return this===N?P:this===T?D:F}));l(C,"to-string",(function(){return R.call(this)["to-string"]()}));var z=l(C,":",(function(t,e){return"string"==typeof t?p(this,C,t):t instanceof s?p(this,C,t.key):null}));z.get=function(t){return C[t]},l(r,"indexer",z)}}).call(this,n(1))},function(t,e,n){"use strict";function r(t,e){return(e>>=0)>=0?e:e+t}function i(t,e){return(e=r(t,e))<0?0:e}function o(t,e){return void 0===e?t:i(t,e)}function u(t,e,n){switch(e-n){case 1:return;case 2:return void t.push("*");case 3:return void t.push("*","*");case 4:return void t.push("*","*","*");default:t.push("...")}}t.exports=function(t){var e=t.$,n=e.array,s=e.symbol,a=t.Tuple,l=t.Symbol,c=t.link,f=t.thisCall,p=t.iterateOf,h=t.boolValueOf,d=t.isApplicable,y=t.protoValueOf,v=t.EncodingContext,g=s.comma,m=s.literal,b=s.pairing;c(n,"empty",(function(){return[]}),!0),c(n,"of",(function(t,e,n){switch(arguments.length){case 0:return[];case 1:return[t];case 2:return[t,e];case 3:return[t,e,n];default:return Array.prototype.slice.call(arguments)}}),!0);var w=c(n,"from",(function(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(Array.isArray(n))t=t.concat(n);else{var r=p(n);if(r)for(var i=r();null!=i;)t.push(Array.isArray(i)?i.length>0?i[0]:null:i),i=r();else t.push(n)}}return t}),!0),x=n.proto;c(x,"length",(function(){return this.length})),c(x,["count","for-each"],(function(t){var e=0;return d(t)?this.forEach((function(n,r,i){void 0!==n&&h(t.call(i,n,r))&&e++})):this.forEach((function(t){void 0!==t&&e++})),e})),c(x,"seal",(function(){return Object.freeze(this)})),c(x,"is-sealed",(function(){return Object.isFrozen(this)}));var O=new Error("tracing.stopped"),j=c(x,"trace",(function(t){if(d(t))try{this.forEach((function(e,n,r){if(void 0!==e&&h(t.call(r,e,n)))throw O}))}catch(t){if(t!==O)throw t}return this})),$=c(x,"retrace",(function(t){if(d(t))try{this.reduceRight((function(e,n,r,i){if(void 0!==n&&h(t.call(i,n,r)))throw O}),this)}catch(t){if(t!==O)throw t}return this}));c(x,"iterate",(function(t,e){t=i(this.length,t),e=o(this.length,e);var n,r=this,u=[];return j.call(this,(function(n,r){return r>=e||r>=t&&u.push(r)&&!1})),t=0,e=u.length,function(i){if(void 0!==n&&void 0!==i&&h(i))return n;if(t>=e)return null;var o=u[t++];return n=[r[o],o]}})),c(x,"copy",(function(t,e){return t=i(this.length,t),(e=void 0===e?this.length:e>>0)<0&&(e=0),this.slice(t,t+e)})),c(x,"slice",(function(t,e){return this.slice(i(this.length,t),o(this.length,e))})),c(x,"concat",(function(){return this.concat(Array.prototype.slice.call(arguments))}));var k=c(x,["append","+="],(function(){for(var t,e=0;e<arguments.length;e++){var n=arguments[e];n=Array.isArray(n)?n:w(n),this.push.apply(this,n),t=t||n.isSparse}return this}));c(x,["merge","+"],(function(){return k.apply(this.slice(),arguments)}));var A=c(x,"get",(function(t){return(t=r(this.length,t))>=0?this[t]:null})),S=c(x,"set",(function(t,e){return(t=r(this.length,t))<0?null:this[t]=void 0===e?null:e}));c(x,"reset",(function(t){for(var e=this.length,n=0;n<arguments.length;n++)(t=r(e,arguments[n]))>=0&&delete this[t];return this})),c(x,"clear",(function(t){var e=arguments.length;if(e<1)return this.splice(0),this;var n=Array.prototype.slice.call(arguments);return $.call(this,(function(t,r){for(var i=0;i<e;i++)if(f(t,"equals",n[i]))return void this.splice(r,1)})),this})),c(x,"remove",(function(t){var e=arguments.length;if(e<1)return this.slice();var n=Array.prototype.slice.call(arguments),r=[],i=0;return j.call(this,(function(t,o){for(var u=!0,s=0;s<e;s++)if(f(t,"equals",n[s])){u=!1;break}u?r[o-i]=t:i++})),r})),c(x,"replace",(function(t,e){return void 0===t||(void 0===e?$.call(this,(function(e,n){f(e,"equals",t)&&delete this[n]})):j.call(this,(function(n,r){f(n,"equals",t)&&(this[r]=e)}))),this})),c(x,"has",(function(t){if(!d(t))return void 0!==this[r(this.length,t)];var e=!1;return j.call(this,(function(n,r){return e=h(t.call(this,n,r))})),e})),c(x,"contains",(function(t){if(void 0===t)return!1;var e=!1;return j.call(this,(function(n,r){return e=f(n,"equals",t)})),e})),c(x,"swap",(function(t,e){var n=this.length;if((t=r(n,t))===(e=r(n,e))||t<0||t>=n||e<0||e>=n)return!1;var i=this[t];return void 0===this[e]?delete this[t]:this[t]=this[e],void 0===i?delete this[e]:this[e]=i,!0})),c(x,"first",(function(t,e){if(void 0===t)return this[0];var n;if(d(t))return j.call(this,(function(e,r){return!!h(t.call(this,e,r))&&((n=e)||!0)})),n;if((t>>=0)<=0)return[];var r=[];return d(e)?j.call(this,(function(n,i){if(h(e.call(this,n,i)))return r.push(n),--t<=0})):j.call(this,(function(e){return r.push(e),--t<=0})),r}));var N=c(x,"first-of",(function(t){if(void 0===t)return null;var e=null;return j.call(this,(function(n,r){return!(n!==t&&!f(n,"equals",t))&&((e=r)||!0)})),e}));c(x,"last",(function(t,e){if(void 0===t)return this[this.length-1];var n;if(d(t))return $.call(this,(function(e,r){return!!h(t.call(this,e,r))&&((n=e)||!0)})),n;if((t>>=0)<=0)return[];var r=[];return d(e)?$.call(this,(function(n,i){if(h(e.call(this,n,i)))return r.unshift(n),--t<=0})):$.call(this,(function(e){return r.unshift(e),--t<=0})),r})),c(x,"last-of",(function(t){if(void 0===t)return null;var e=null;return $.call(this,(function(n,r){return!(n!==t&&!f(n,"equals",t))&&((e=r)||!0)})),e})),c(x,"insert",(function(t,e){if(t=i(this.length,t),arguments.length>2){var n=Array.prototype.slice.call(arguments,2);n.unshift(t,0,e),this.splice.apply(this,n)}else this.splice(t,0,e);return this})),c(x,"delete",(function(t,e){return e=void 0===e?1:e>>0,(t=r(this.length,t))>=0&&this.splice(t,e),this})),c(x,"splice",(function(t,e){if((t>>=0)<-this.length){if(arguments.length<3)return[];var n=Array.prototype.slice.call(arguments);return n[0]=0,n[1]=0,this.splice.apply(this,n)}switch(arguments.length){case 0:return this.splice();case 1:return this.splice(t);case 2:return this.splice(t,e);default:return this.splice.apply(this,arguments)}})),c(x,"push",(function(){return Array.prototype.push.apply(this,arguments),this})),c(x,"pop",(function(t){return void 0===t?this.pop():(t>>=0)>=this.length?this.splice(0):t>0?this.splice(this.length-t):this.splice(-1)})),c(x,"enqueue",(function(){return this.unshift.apply(this,arguments),this})),x.dequeue=x.pop,c(x,"reverse",(function(){return this.reverse()}));var T=function(t,e){var n=f(t,"compares-to",e);return n>0?1:n<0?-1:0},E=function(t,e){var n=f(t,"compares-to",e);return n>0?-1:n<0?1:0};c(x,"sort",(function(t,e){var n=!1;"function"==typeof t?e=t:t>>0>0&&(n=!0);var r="function"==typeof e?function(t,e){return t?function(t,n){var r=e(t,n);return r>0?-1:r<0?1:0}:function(t,n){var r=e(t,n);return r>0?1:r<0?-1:0}}(n,e):n?E:T;return this.sort(r)})),c(x,"find",(function(t){var e=[];return d(t)?j.call(this,(function(n,r){h(t.call(this,n,r))&&e.push(r)})):j.call(this,(function(t,n){e.push(n)})),e})),c(x,"select",(function(t){return d(t)?this.filter((function(e,n){return void 0!==e&&h(t.call(this,e,n))}),this):this.filter((function(t){return void 0!==t}),this)})),c(x,"map",(function(t){return d(t)?this.map((function(e,n){if(void 0!==e)return t.call(this,e,n)}),this):this.slice()})),c(x,"reduce",(function(t,e){if(!d(e)){if(!d(t))return t;e=t,t=null}return this.reduce((function(t,n,r,i){return void 0!==n?e.call(i,t,n,r):t}),t)})),c(x,"join",(function(t){var e=-1,n=this.reduce((function(t,n,r,i){return void 0!==n&&(u(t,r,e),t.push("string"==typeof n?n:f(n,"to-string")),e=r),t}),[]);return u(n,this.length,e),n.join("string"==typeof t?t:" ")})),c(x,"is-empty",(function(){return!(this.length>0)})),c(x,"not-empty",(function(){return this.length>0}));var C=c(x,"to-code",(function(t){var e;if(t instanceof v){var r=(e=t).begin(this);if(r)return r}else e=new v(this,t);var i=[m],o=!0,u=-1;return j.call(this,(function(t,n){o?o=!1:e.printing&&i.push(g),t=e.encode(t),n-u>1?i.push(n,b,t):i.push(t),u=n})),e.end(this,n,new a(i))}));c(x,"to-string",(function(){return f(C.call(this,!0),"to-string")}));var I=c(x,":",(function(t,e){return"number"==typeof t?void 0===e?A.call(this,t):S.call(this,t,e):"string"==typeof t?y(this,x,t):t instanceof l?y(this,x,t.key):N.call(this,t)}));I.get=function(t){return x[t]},c(n,"indexer",I)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.object,r=e.symbol,i=t.Tuple,o=t.link,u=t.Symbol,s=t.Object,a=t.isObject,l=t.thisCall,c=t.ClassType,f=t.ownsProperty,p=t.protoValueOf,h=t.encodeFieldName,d=t.EncodingContext,y=r.comma,v=r.literal,g=r.pairing,m=o(n,"empty",Object.create.bind(Object,n.proto));o(n,"of",(function(){var t=arguments.length;if(t<1)return m();for(var e=[m()],n=0;n<t;n++)a(arguments[n])&&e.push(arguments[n]);return Object.assign.apply(Object,e)}),!0),o(n,"of-generic",(function(){if(arguments.length<1)return{};var t=Array.prototype.slice.call(arguments);return t.unshift({}),Object.assign.apply(Object,t)}),!0),o(n,"is-generic",(function(t){return a(t)&&Object.getPrototypeOf(t)===Object.prototype}),!0),o(n,"not-generic",(function(t){return!a(t)||Object.getPrototypeOf(t)!==Object.prototype}),!0),o(n,"of-plain",(function(){if(arguments.length<1)return Object.create(null);var t=Array.prototype.slice.call(arguments);return t.unshift(Object.create(null)),Object.assign.apply(Object,t)}),!0),o(n,"is-plain",(function(t){return a(t)&&null===Object.getPrototypeOf(t)}),!0),o(n,"not-plain",(function(t){return!a(t)||null!==Object.getPrototypeOf(t)}),!0),o(n,"assign",(function(t){if(a(t)){for(var e=1;e<arguments.length;e++){var n=arguments[e];n instanceof s&&Object.assign(t,n)}return t}return null}),!0),o(n,"get",(function(t,e,n){if(e instanceof u)e=e.key;else if("string"!=typeof e)return n;var r;return a(t)?f(t,e)?void 0===t[e]?n:t[e]:void 0===(r=p(t,t,e))?n:r:n}),!0),o(n,"set",(function(t,e,n){if(e instanceof u)e=e.key;else if("string"!=typeof e)return null;return a(t)?t[e]=void 0!==n?n:null:null}),!0),o(n,"reset",(function(t,e,n){if(!a(t))return 0;if(void 0===n)return e instanceof u&&(e=e.key),"string"!=typeof e?0:delete t[e]?1:0;var r=1,i=0;do{"string"==typeof e?delete t[e]&&i++:e instanceof u&&delete t[e.key]&&i++,e=arguments[++r]}while(r<arguments.length);return i}),!0),o(n,"copy",(function(t,e){if(!a(t))return null;for(var n=Object.create(t.type.proto),r=arguments.length>1?Array.prototype.slice.call(arguments,1):Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];o instanceof u&&(o=o.key),"string"==typeof o&&(n[o]=t[o])}var s=t.type.proto.activator;return"function"==typeof s&&s.call(n,n),n}),!0),o(n,"clear",(function(t,e){if(!a(t))return null;for(var n=arguments.length>1?Array.prototype.slice.call(arguments,1):Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r];"string"==typeof i?delete t[i]:i instanceof u&&delete t[i.key]}return t}),!0),o(n,"remove",(function(t,e){if(!a(t))return null;for(var n=Object.assign(Object.create(t.type.proto),t),r=arguments.length<=1?[]:Array.prototype.slice.call(arguments,1),i=0;i<r.length;i++){var o=r[i];if("string"==typeof o)delete n[o];else if(o instanceof u)delete n[o.key];else if(o instanceof s){e=Object.getOwnPropertyNames(o);for(var l=0;l<e.length;l++)delete n[e[l]]}}var c=t.type.proto.activator;return"function"==typeof c&&c.call(n,n),n}),!0),o(n,"has",(function(t,e){if("string"!=typeof e){if(!(e instanceof u))return!1;e=e.key}return a(t)&&void 0!==t[e]}),!0),o(n,"owns",(function(t,e){if("string"!=typeof e){if(!(e instanceof u))return!1;e=e.key}return a(t)&&f(t,e)}),!0),o(n,"fields-of",(function(t){return a(t)?Object.getOwnPropertyNames(t):[]}),!0),o(n,"seal",(function(t){return void 0===t?n:a(t)||Array.isArray(t)?Object.freeze(t):null})),o(n,"is-sealed",(function(t){return void 0===t||!(!a(t)&&!Array.isArray(t))&&Object.isFrozen(t)}));var b=n.proto;o(b,"iterate",(function(){var t,e=Object.getOwnPropertyNames(this),n=this,r=null,i=0;return function(o){return null!==r&&!0===o?r:i>=e.length?null:r=[t=e[i++],n[t]]}})),o(b,["is-a","is-an"],(function(t){return t===n})),o(b,["is-not-a","is-not-an"],(function(t){return t!==n})),o(b,"is-empty",(function(){return!(Object.getOwnPropertyNames(this).length>0)})),o(b,"not-empty",(function(){return Object.getOwnPropertyNames(this).length>0}));var w=e.type.of,x=o(b,"to-code",(function(t){var e;if(t instanceof d){var n=(e=t).begin(this);if(n)return n}else e=new d(this,t);for(var r=Object.getOwnPropertyNames(this),o=[v],u=!0,s=0;s<r.length;s++){u?u=!1:e.printing&&o.push(y);var a=r[s];o.push(h(a),g,e.encode(this[a]))}o.length<2&&o.push(g);var l=this.type instanceof c?this.type:w(this);return e.end(this,l,new i(o))}));o(b,"to-string",(function(){return l(x.call(this,!0),"to-string")}));var O=o(b,":",(function(t,e){if("string"!=typeof t){if(!(t instanceof u))return null;t=t.key}return void 0===e?void 0===b[t]||"type"===t?this[t]:p(this,b,t):this[t]=e}));O.get=function(t){return void 0===b[t]||"type"===t?this[t]:b[t]},o(n,"indexer",O)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.set,r=e.array,i=e.symbol,o=e.iterator,u=t.Tuple,s=t.Symbol,a=t.link,l=t.thisCall,c=t.boolValueOf,f=t.isApplicable,p=t.protoValueOf,h=t.sharedSymbolOf,d=t.EncodingContext,y=t.iterateOfGeneric,v=i.comma,g=i.literal,m=i.pairing,b=h("set"),w=o["of-generic"];a(n,"empty",(function(){return new Set}),!0),a(n,"of",(function(t,e,n){return new Set(arguments)}),!0);var x=a(n,"from",(function(t){return arguments.length<1?new Set:new Set(r.from.apply(r,arguments))}),!0),O=n.proto;a(O,"size",(function(){return this.size})),a(O,"has",(function(t){return this.has(t)})),a(O,"contains",(function(t){for(var e of(t instanceof Set||Array.isArray(t)||(t=r.from(t)),t))if(!this.has(e))return!1;return!0})),a(O,"add",(function(){for(var t=0,e=arguments.length;t<e;t++)this.add(arguments[t]);return this})),a(O,["combines-with","combines","+="],(function(){for(var t=0,e=arguments.length;t<e;t++){var n=arguments[t];for(var i of(n instanceof Set||Array.isArray(n)||(n=r.from(n)),n))this.add(i)}return this})),a(O,["merge","+"],(function(){var t=Array.prototype.slice.call(arguments);return t.unshift(this),x.apply(n,t)})),a(O,"delete",(function(){for(var t=0,e=arguments.length;t<e;t++)this.delete(arguments[t]);return this})),a(O,"remove",(function(){for(var t=0,e=arguments.length;t<e;t++){var n=arguments[t];for(var i of(n instanceof Set||Array.isArray(n)||(n=r.from(n)),n))this.delete(i)}return this})),a(O,"clear",(function(){return this.clear(),this})),a(O,"iterate",(function(){return y(this.values())})),a(O,"values",(function(){return w(this.values())})),a(O,"copy",(function(){return new Set(this)})),a(O,["count","for-each"],(function(t){if(!f(t))return this.size;var e=0;return this.forEach((function(n,r,i){c(t.call(i,n))&&e++})),e})),a(O,["equals","=="],(function(t){if(this===t)return!0;if(!(t instanceof Set)||this.size!==t.size)return!1;for(var e of t)if(!this.has(e))return!1;return!0})),a(O,["not-equals","!="],(function(t){if(this===t)return!1;if(!(t instanceof Set)||this.size!==t.size)return!0;for(var e of t)if(!this.has(e))return!0;return!1})),a(O,"compares-to",(function(t){if(this===t)return 0;if(!(t instanceof Set))return null;var e=t.size>this.size,n=e?t:this,r=e?this:t;for(var i of r)if(!n.has(i))return null;return n.size===r.size?0:e?-1:1})),a(O,"is-empty",(function(){return!(this.size>0)})),a(O,"not-empty",(function(){return this.size>0}));var j=a(O,"to-code",(function(t){var e;if(t instanceof d){var r=(e=t).begin(this);if(r)return r}else e=new d(this,t);var i=[g,m,b],o=!0;for(var s of this)o?o=!1:e.printing&&i.push(v),i.push(e.encode(s));return e.end(this,n,new u(i))}));a(O,"to-string",(function(){return l(j.call(this,!0),"to-string")}));var $=a(O,":",(function(t){return"string"==typeof t?p(this,O,t):t instanceof s?p(this,O,t.key):null}));$.get=function(t){return O[t]},a(n,"indexer",$)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.map,r=e.array,i=e.symbol,o=e.iterator,u=t.Tuple,s=t.Symbol,a=t.link,l=t.thisCall,c=t.boolValueOf,f=t.isApplicable,p=t.protoValueOf,h=t.sharedSymbolOf,d=t.EncodingContext,y=t.iterateOfGeneric,v=i.comma,g=i.literal,m=i.pairing,b=h("map"),w=o["of-generic"];a(n,"empty",(function(){return new Map}),!0),a(n,"of",(function(){for(var t=new Map,e=0,n=arguments.length;e<n;e++)j.call(t,arguments[e]);return t}),!0);var x=a(n,"from",(function(){for(var t=new Map,e=0,n=arguments.length;e<n;e++){var i=arguments[e];i instanceof Map?i.forEach((function(e,n){t.set(n,e)})):(i instanceof Set||Array.isArray(i)||(i=r.from(i)),i.forEach((function(e){j.call(t,e)})))}return t}),!0),O=n.proto;a(O,"size",(function(){return this.size})),a(O,"has",(function(t){return this.has(t)})),a(O,"contains",(function(t){for(var e of(t instanceof Map?t=t.keys():t instanceof Set||Array.isArray(t)||(t=r.from(t)),t))if(!this.has(e))return!1;return!0}));var j=a(O,"add",(function(){for(var t=0,e=arguments.length;t<e;t++){var n=arguments[t];Array.isArray(n)?$.apply(this,n):this.set(n,null)}return this})),$=a(O,"set",(function(t,e){return arguments.length>0&&this.set(t,e),e}));a(O,"get",(function(t){return this.get(void 0===t?null:t)})),a(O,["combines-with","combines","+="],(function(){for(var t=0,e=arguments.length;t<e;t++){var n=arguments[t];n instanceof Map?n.forEach((function(t,e){this.set(e,t)})):(n instanceof Set||Array.isArray(n)||(n=r.from(n)),n.forEach((function(t){j.call(this,t)})))}return this})),a(O,["merge","+"],(function(){var t=Array.prototype.slice.call(arguments);return t.unshift(this),x.apply(n,t)})),a(O,"delete",(function(){for(var t=0,e=arguments.length;t<e;t++)this.delete(arguments[t]);return this})),a(O,"remove",(function(){for(var t=0,e=arguments.length;t<e;t++){var n=arguments[t];for(var i of(n instanceof Map?n=n.keys():n instanceof Set||Array.isArray(n)||(n=r.from(n)),n))this.delete(i)}return this})),a(O,"clear",(function(){return this.clear(),this})),a(O,"iterate",(function(){return y(this.entries(),!0)})),a(O,"keys",(function(){return w(this.keys())})),a(O,"values",(function(){return w(this.values())})),a(O,"pairs",(function(){return w(this.entries())})),a(O,"copy",(function(){return new Map(this)})),a(O,["count","for-each"],(function(t){if(!f(t))return this.size;var e=0;return this.forEach((function(n,r,i){c(t.call(i,r,n))&&e++})),e})),a(O,["equals","=="],(function(t){if(this===t)return!0;if(!(t instanceof Map)||this.size!==t.size)return!1;for(var e of t.keys())if(!this.has(e))return!1;return!0})),a(O,["not-equals","!="],(function(t){if(this===t)return!1;if(!(t instanceof Map)||this.size!==t.size)return!0;for(var e of t.keys())if(!this.has(e))return!0;return!1})),a(O,"compares-to",(function(t){if(this===t)return 0;if(!(t instanceof Map))return null;var e=t.size>this.size,n=e?t:this,r=e?this:t;for(var i of r.keys())if(!n.has(i))return null;return n.size===r.size?0:e?-1:1})),a(O,"is-empty",(function(){return!(this.size>0)})),a(O,"not-empty",(function(){return this.size>0}));var k=a(O,"to-code",(function(t){var e;if(t instanceof d){var r=(e=t).begin(this);if(r)return r}else e=new d(this,t);var i=[g,m,b],o=!0;return this.forEach((function(t,n){o?o=!1:e.printing&&i.push(v),i.push(e.encode(n),m,e.encode(t))})),e.end(this,n,new u(i))}));a(O,"to-string",(function(){return l(k.call(this,!0),"to-string")}));var A=a(O,":",(function(t){return"string"==typeof t?p(this,O,t):t instanceof s?p(this,O,t.key):null}));A.get=function(t){return O[t]},a(n,"indexer",A)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.class,r=e.type,i=e.tuple,o=e.symbol,u=e.object,s=t.Tuple,a=t.Symbol,l=t.ClassType,c=t.ClassInst,f=t.link,p=t.typeOf,h=t.bindThis,d=t.isObject,y=t.thisCall,v=t.boolValueOf,g=t.createClass,m=t.isApplicable,b=t.ownsProperty,w=t.protoValueOf,x=t.sharedSymbolOf,O=t.EncodingContext;f(n,"empty",g,!0),f(n,"of",(function(){return A.apply(g(),arguments)}),!0);var j=u.assign;f(n,"attach",(function(t){if(t instanceof c){for(var e=1;e<arguments.length;e++){var n=arguments[e];d(n)&&(Object.assign(t,n),F.call(t,n))}return t}return j.apply(u,arguments)}),!0);var $=n.proto;f($,"empty",(function(){return Object.create(this.proto)})),f($,"default",(function(){return D.call(Object.create(this.proto))})),f($,"of",(function(){return D.apply(Object.create(this.proto),arguments)})),f($,"from",(function(){for(var t=Object.create(this.proto),e=0;e<arguments.length;e++){var n=arguments[e];d(n)&&(Object.assign(t,n),F.call(t,n))}return t}));var k=i.accepts,A=f($,"as",(function(){if(Object.isFrozen(this))return this;for(var t=Object.create(null),e=Object.create(null),n=Array.prototype.slice.call(arguments),r=0;r<n.length;r++){var i,o,u,s,a=n[r];a instanceof l?(i=a,o=a.proto):d(a)?(o=a,d(a.type)?i=a.type:(a.type instanceof l&&n.splice(r+1,0,a.type),i={})):(i={},o={});var c,f=Object.getOwnPropertyNames(i);for(u=0;u<f.length;u++)"indexer"===(s=f[u])?!b(e,":")&&m(i.indexer)&&(e[":"]=i.indexer):void 0!==this[s]||b(t,s)||"name"===s&&i instanceof l||(t[s]=i[s]);for(f=Object.getOwnPropertyNames(o),u=0;u<f.length;u++)"type"===(s=f[u])||b(this.proto,s)||b(e,s)||(c=o[s],e[s]=k(c)||"function"==typeof c?c:null)}return Object.assign(this,t),Object.assign(this.proto,e),this})),S=f($,"to-object",(function(){var t,e,n,r,i=u.empty(),o=Object.getOwnPropertyNames(this.proto);for(t=0;t<o.length;t++)"type"!==(e=o[t])&&(n=this.proto[e],i[e]=m(n)?y(n,"bind",void 0!==r?r:r=this.empty()):n);var s=u.empty(),a=!1;for(o=Object.getOwnPropertyNames(this),t=0;t<o.length;t++)"proto"!==(e=o[t])&&(n=this[e],s[e]=m(n)?y(n,"bind",this):n,a=!0);return a&&(i.type=s),i}));f($,"seal",(function(){return Object.freeze(this)})),f($,"is-sealed",(function(){return Object.isFrozen(this)})),f($,["is-a","is-an"],(function(t){return t===n||t===r})),f($,["is-not-a","is-not-an"],(function(t){return t!==n&&t!==r})),f($,"is-empty",(function(){return!(Object.getOwnPropertyNames(this.proto).length>1||Object.getOwnPropertyNames(this).length>(b(this,"name")?2:1))})),f($,"not-empty",(function(){return Object.getOwnPropertyNames(this.proto).length>1||Object.getOwnPropertyNames(this).length>(b(this,"name")?2:1)}));var N=f($,"to-code",(function(){return"string"==typeof this.name&&this.name?x(this.name.trim()):o.empty})),T=x("class"),E=x("of"),C=u.proto["to-code"],I=i.proto["to-string"];f($,"to-string",(function(){var t=N.call(this);return t!==o.empty?y(t,"to-string"):((t=C.call(S.call(this))).$[0]===o.literal?t.$[1]===o.pairing?t.$.splice(2,0,T):t.$.splice(1,0,o.pairing,T):t=new s([T,E,t]),I.call(t))}));var P=$.proto,D=f(P,"constructor",(function(){if(this.constructor!==D)this.constructor.apply(this,arguments);else{var t=[this];t.push.apply(t,arguments),u.assign.apply(u,t)}return this})),F=f(P,"activator",(function(t){return this.activator!==F&&this.activator(t),this}));f(P,"as",(function(t,e){if(!(t instanceof l))return null;var n;if(e instanceof a?e=e.key:"string"==typeof e&&e||(e=null),e)return n=t.proto[e],m(n)?h(this,n):n;for(var r=Object.getOwnPropertyNames(t.proto),i=Object.create(u.proto),o=0;o<r.length;o++){var s=r[o];n=t.proto[s],i[s]=m(n)?h(this,n):n}return i}));var R=f(P,["is","==="],(function(t){return this===t||this.is!==R&&m(this.is)&&v(this.is(t))}));f(P,["is-not","!=="],(function(t){return!R.call(this,t)}));var z=f(P,["equals","=="],(function(t){return this===t||R.call(this,t)||this.equals!==z&&m(this.equals)&&v(this.equals(t))}));f(P,["not-equals","!="],(function(t){return!z.call(this,t)}));var L=f(P,"compares-to",(function(t){if(this===t||z.call(this,t))return 0;var e=this["compares-to"];if(e===L||!m(e))return null;var n=this["compares-to"](t);return n>0?1:n<0?-1:0===n?0:null})),q=f(P,"is-empty",(function(){var t=this["is-empty"];return t!==q&&m(t)?v(t.call(this)):Object.getOwnPropertyNames(this).length<1}));f(P,"not-empty",(function(){return!q.call(this)}));var M=f(P,["is-a","is-an"],(function(t){if(t===u||this.type instanceof l&&t===this.type)return!0;var e=this["is-a"];if(e!==M&&m(e))return v(e.call(this,t));if(!(t instanceof l&&t.proto))return!1;for(var n=Object.getOwnPropertyNames(t.proto),r=0;r<n.length;r++)if(void 0===this[n[r]])return!1;return!0}));f(P,["is-not-a","is-not-an"],(function(t){return!M.call(this,t)}));var U=f(P,"to-code",(function(t){var e=this["to-code"];if(e===U||"function"!=typeof e)return C.call(this,t);if(t instanceof O){var n=t.begin(this);if(n)return n}else t=new O(this);var r=e.call(this);return p(r)===u?t.end(this,this.type,C.call(r)):r instanceof s&&!0!==r.plain?t.end(this,u,r):t.end(this,this.type,C.call(this))})),_=f(P,"to-string",(function(){var t=this["to-string"];return t===_||"function"!=typeof t?y(U.call(this),"to-string"):t.apply(this,arguments)})),V=f(P,":",(function(t,e){var n;return"string"==typeof t?n=V:t instanceof a?(t=t.key,n=V):n=this[":"],void 0!==e?"string"==typeof t?this[t]=e:n===V?null:n.apply(this,arguments):"string"!=typeof t?n===V?null:n.call(this,t):"function"==typeof(e=w(this,p(this).proto||P,t))?e:this[t]}));V.get=function(t){var e=P[t];return"function"==typeof e?e:this[t]},f($,"indexer",V)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=t.export,r=t.sharedSymbolOf;n(e,"",null),n(e,"...",null),n(e,"null",null),n(e,"true",!0),n(e,"false",!1),n(e,"\\",r("\\")),n(e,"(",r("(")),n(e,")",r(")")),n(e,",",r(",")),n(e,";",r(";")),n(e,"#",r("#")),n(e,"[",r("[")),n(e,"]",r("]")),n(e,"{",r("{")),n(e,"}",r("}")),n(e,"else",r("else")),n(e,r("descending").key,1),n(e,r("equivalent").key,0),n(e,r("ascending").key,-1)}},function(t,e,n){"use strict";t.exports=function(t,e){var n=t.Symbol,r=t.export,i=t.thisCall,o=t.staticOperator,u=function(e){return(u=t.$env)(e)},s=function(e,n){return(s=t.evaluate)(e,n)},a=function(t){return i(t,"to-string")};t.$print=r(t.$app,"print",(function(t){return e.print.apply(e,arguments)})),t.$printf=r(t.$app,"printf",(function(t,n){return e.printf(void 0===t?"":t,void 0===n?null:n)}));var l=null;function c(){var t=Date.now();return l&&t===l[1][0]?[t,l[1][1]+1]:[t,0]}t.$warn=r(t.$app,"warn",(function(t){if(void 0===t)return l;if("string"!=typeof t&&null!==t)l=["stdout:warn",c(),"category should be a string:",t];else{if(!t)return l=["",c()];l=[t,c()].concat(Array.prototype.slice.call(arguments,1))}return e.warn.apply(e,l),l})),r(t,"$debug",(function(){return!0===u("is-debugging")&&(e.debug.apply(e,arguments),!0)})),o("debug",(function(t,n){var r=n.$;if(r.length<2||!t.app)return null;for(var i=[a(n),"\n "],o=1,c=r.length;o<c;o++)o>1&&i.push("\n "),i.push(a(r[o]),"=",s(r[o],t));return!0===u("is-debugging")?e.debug.apply(e,i):u("logging-level")>=2&&(l=["stdout:debug","(debug ...) is only for temporary usage in coding.","Please consider to remove it or replace it with (log d ...) for",n],e.warn.apply(e,l)),i[i.length-1]})),o("log",(function(t,r){var i=r.$;if(i.length<2||!t.app)return!1;var o=function(t){if(t instanceof n)t=t.key;else if("string"!=typeof t)return!1;switch(t.toLowerCase()){case"d":case"debug":return!0===u("is-debugging")?e.debug:null;case"v":case"verbose":return u("logging-level")>=4?e.verbose:null;case"i":case"info":return u("logging-level")>=3?e.info:null;case"w":case"warn":case"warning":return u("logging-level")>=2?e.warn:null;case"e":case"err":case"error":return u("logging-level")>=1?e.error:null;default:return!1}}(i[1]);if(null===o)return!1;if(!o)return l=["stdout:log","invalid log level (v/i/w/e/d):",i[1],"in clause",r],e.warn.apply(e,l),!1;for(var a=[],c=2,f=i.length;c<f;c++)a.push(s(i[c],t));return o.apply(e,a),!0}))}},function(t,e,n){"use strict";function r(t,e){var n;try{n=parseInt(t)}catch(t){return t}return n<0?(n+=e)<0&&(n=e):n>=e&&(n=e),n}function i(t,e,n,r,i){if(e>=t.length)return"...";var o,u=t[e];return u?"string"!=typeof r||"string"==typeof n?null!==u[0]?u[0]:u[0]="string"==typeof n?n:i(n,"to-string"):(o=u[1]||(u[1]=Object.create(null)))[r]||(o[r]=i(n,"to-string",r)):(u=t[e]=[null,null],"string"!=typeof r||"string"==typeof n?u[0]="string"==typeof n?n:i(n,"to-string"):(o=u[1]=Object.create(null))[r]=i(n,"to-string",r))}t.exports=function(t){var e=t.$,n=t.$warn,o=t.link,u=t.thisCall;o(e.string,"unescape",(function(t){if("string"!=typeof t)return n("string:unescape","a string source should be a string:",typeof t,"\n",t),null;if(!t.startsWith('"'))return n("string:unescape","a string source should start with a '\"'.","\n",t),t;if(!t.endsWith('"'))return n("string:unescape","a string source should end with a '\"'.","\n",t),t;var e,r;try{e=JSON.parse(t)}catch(t){r=t}return"string"==typeof e?e:(n("string:unescape","[JSON] invalid string input: ",r&&(r.code||r.message)||"unknown error.","\n",[t,r]),t.substring(1,t.length-1))}),!0),o(e.string,"format",(function(t){if("string"!=typeof t)return n("string:format","the pattern must be a string:",typeof t,"\n",t),null;var e=[];arguments.length>1&&(e[arguments.length-2]=void 0);for(var o,s,a,l,c,f=[],p=0,h=0;p<t.length;)if("{"===(o=t[p++]))if("{"!==t[p]){if((s=t.indexOf("}",p))<p&&(s=t.length,n("string:format",'missing an ending "}".',"\n",[t,p])),a=t.substring(p,s),p=s+1,(s=a.indexOf(":"))<0&&(s=a.length),l=a.substring(0,s))l=r(l,e.length);else{if(h>=e.length){h++;continue}l=h}"number"!=typeof l?(n("string:format","invalid offset value gets ignored.","\n",[t,p,a.substring(0,s)]),l=h):l>=e.length&&n("string:format","offset value is out of range:",l,"\n",[t,l,e.length-1]),c=s<a.length?a.substring(s+1):null,f.push(i(e,l,arguments[l+1],c,u)),h++}else f.push("{"),p++;else f.push(o);return f.join("")}),!0),t.formatPattern=function(t){if(t.indexOf("$")<0)return[t];for(var e="",r=[],i="",o=0,u=[],s=function(t){r.push("{"+u.length+"}"),u.push(t?e+t:e),e="",i="",o=0},a=function(t){switch(i){case"$":e.length>0?s():(r.push("$"),i="");break;case" ":s();break;case"(":s(t),")"!==t&&n("format:pattern","missing ending parenthesis.",e)}},l=0;l<t.length;l++){var c=t[l];switch(i){case"$":switch(c){case"$":r.push("$"),i="";break;case"(":e.length>0?(a(),r.push("(")):(e+="(",i="(",o=1);break;default:/\)|\s/.test(c)?(a(),r.push(c)):(e+=c,i=" ")}break;case" ":"$"===c?(a(),i="$"):/\(|\)|\s/.test(c)?(a(),r.push(c)):e+=c;break;case"(":")"===c?--o>0?e+=c:a(")"):("("===c&&(o+=1),e+=c);break;default:"$"===c?i="$":r.push(c)}}return a(),[r.join("")].concat(u)}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=t.export,r=t.thisCall,i=(0,t.copyType)(e.object.empty(),Math,{E:"e",PI:"pi",LN2:"ln-2",LN10:"ln-10",LOG10E:"log-e",LOG2E:"log2-e",SQRT2:"sqrt-2",SQRT1_2:"sqrt-1/2",sin:"sin",cos:"cos",tan:"tan",asin:"asin",acos:"acos",atan:"atan",atan2:"atan2",exp:"exp",pow:"pow",log:"ln",log10:"log",log2:"log2",sqrt:"sqrt",abs:"abs",max:"max",min:"min",random:"random"});n(e,"math",i),n(e,"max",(function(t,e){switch(arguments.length){case 0:return null;case 1:return t;case 2:return null==t||-1===r(t,"compares-to",e)?e:t}for(var n=1;n<arguments.length;n++)null!=(e=arguments[n])&&(null!=t&&1!==r(e,"compares-to",t)||(t=e));return t})),n(e,"min",(function(t,e){switch(arguments.length){case 0:return null;case 1:return t;case 2:return null==t||1===r(t,"compares-to",e)?e:t}for(var n=1;n<arguments.length;n++)null!=(e=arguments[n])&&(null!=t&&-1!==r(e,"compares-to",t)||(t=e));return t}))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.object,r=t.link,i=t.export,o=n.empty();r(o,"encode",(function(t){return"string"!=typeof t?null:encodeURI(t)})),r(o,"decode",(function(t,e){if("string"!=typeof t)return void 0===e?null:e;if(void 0===e)return decodeURI(t);try{return decodeURI(t)}catch(t){return e}})),r(o,"escape",(function(t){return"string"!=typeof t?null:encodeURIComponent(t)})),r(o,"unescape",(function(t,e){if("string"!=typeof t)return void 0===e?null:e;if(void 0===e)return decodeURIComponent(t);try{return decodeURIComponent(t)}catch(t){return e}})),i(e,"uri",o)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.object,r=t.link,i=t.export,o=n.empty();r(o,"of",(function(t,e){try{return void 0===t?"null":JSON.stringify(t,null," ")}catch(t){return void 0===e?null:e}})),r(o,"parse",(function(t,e){void 0===e&&(e=null);try{return"string"==typeof t?JSON.parse(t):e}catch(t){return e}})),i(e,"json",o)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.object,r=t.link,i=t.export,o=t.isObject,u=t.thisCall,s=t.createClass,a=t.isApplicable,l=s(),c=l.proto;r(c,"listeners",null),r(c,"constructor",(function(){for(var t=this.listeners=n.empty(),e=0;e<arguments.length;e++){var r=arguments[e];"string"==typeof r&&(t[r]=[])}})),r(c,"activator",(function(){if(o(this.listeners))for(var t=Object.getOwnPropertyNames(this.listeners),e=0;e<t.length;e++){var r=this.listeners[t[e]];if(Array.isArray(r))for(var i=r.length-1;i>=0;i--)u(r[i],"is-empty")&&r.splice(i,1)}else this.listeners=n.empty()})),r(c,"on",(function(t,e){if(!o(this.listeners))return null;if("string"!=typeof t)return Object.getOwnPropertyNames(this.listeners);if(!a(e))return this.listeners[t]||null;var n=this.listeners[t];return Array.isArray(n)?(n.push(e),n):null})),r(c,"off",(function(t,e){if(!o(this.listeners))return null;var n,r;if("string"!=typeof t){var i=Object.getOwnPropertyNames(this.listeners);for(n=0;n<i.length;n++)r=this.listeners[i[n]],Array.isArray(r)&&r.splice(0);return i}if(r=this.listeners[t],!Array.isArray(r))return null;if(!a(e))return r.splice(0),r;for(n=0;n<r.length;n++)if(r[n]===e){r.splice(n,1);break}return r})),r(c,"emit",(function(t,e){if(!o(this.listeners)||"string"!=typeof t)return null;var n=this.listeners[t];if(!Array.isArray(n))return null;void 0===e&&(e=t);for(var r=!1,i=0;i<n.length;i++){var u=n[i];if(a(u)){if(!0===u(e,this,t))return!0;r=!0}}return r})),i(e,"emitter",l)}},function(t,e,n){"use strict";function r(t,e){return"number"!=typeof t||(t>>=0)<=0?e||0:t}t.exports=function(t){var e=t.$,n=e.emitter,i=e.promise.of,o=t.link,u=t.export,s=t.createClass,a=t.isApplicable,l=t.ownsProperty,c=s().as(n);o(c,"timeout",(function(t,e){if(a(t))e=t,t=0;else if(t=r(t),!a(e))return t;return setTimeout(e.bind(null,t),t),t})),o(c,"countdown",(function(t){return t=r(t),i((function(e){var n=setTimeout((function(){null!==n&&(n=null,e.resolve(t))}),t);return function(){return null!==n&&(clearTimeout(n),n=null,e.reject(t)),t}}))}));var f=c.proto;o(f,"constructor",(function(t,e){n.proto.constructor.call(this,"started","elapsed","stopped"),this.interval=r(t,1e3),a(e)&&this.on("elapsed",e)})),o(f,"activator",(function(){n.proto.activator.apply(this,arguments),this.interval=r(this.interval,1e3);var t=this.listeners,e=function(e){Array.isArray(t[e])||(t[e]=[])};e("started"),e("elapsed"),e("stopped"),l.call(this,"stop")&&delete this.stop})),o(f,"start",(function(t){if(this.stop!==p)return this;void 0===t&&(t=this.interval);var e=setInterval(function(){this.emit("elapsed",t)}.bind(this),this.interval);return this.stop=function(){null!==e&&(clearInterval(e),e=null,this.emit("stopped",t))}.bind(this),this.emit("started",t),this})),o(f,"is-elapsing",(function(){return this.stop!==p}));var p=o(f,"stop",(function(){return this.stop!==p&&a(this.stop)&&(this.stop(),delete this.stop),this}));u(t.$app,"timer",c)}},function(t,e,n){"use strict";function r(t){for(var e=t.split(/[_-\s]+/g),n=!1,r=0,o=e.length;r<o;r++){var u=i(e[r]);u!==e[r]&&(e[r]=u,n=!0)}return e.length>1||n?e.join("-"):t}function i(t){for(var e=[],n="",r=!1,i=0,o=t.length;i<o;i++){var u=t.charAt(i);if(u===u.toLocaleLowerCase())n+=u,r=!1;else{n&&!r&&(e.push(n.toLocaleLowerCase()),n="");var s=++i<o?t[i]:"";s?s!==s.toLocaleLowerCase()?(n+=u,i--,r=!0):(n&&e.push(n.toLocaleLowerCase()),n=u+s,r=!1):(r?e.push((n+u).toLocaleLowerCase()):e.push(u.toLocaleLowerCase()),n="")}}return n&&e.push(n.toLocaleLowerCase()),e.join("-")}function o(t,e){return t&&"string"==typeof t?void 0!==e?this[t]=e:(delete this[t],null):null}t.exports=function(t){var e=t.$,n=e.class,i=e.object,u=e.function,s=t.typeOf,a=t.export,l=t.ownsProperty,c=t.safelyAssign,f=u.proto.generic;a(t.$app,"espress",(function(t){if("string"==typeof t)return r(t);var e,a,p=s(t);if(p===u&&(p=(e=f.call(t))?i:null,t.bound&&(t=t.bound)),p===i)a=i.proto;else{if(s(p)!==n)return null;a=n.proto.proto}e||(e=c(i.empty(),t,!0));var h=i.empty();for(var d in h["set-"]=o.bind(t),e)if(void 0===a[d]||l(t,d)){var y=r(d);h[y]=e[d],l(t,d)&&(h["set-"+y]=o.bind(t,d))}return h||t}))}},function(t,e,n){"use strict";var r=n(49);t.exports=function(t){var e=t.$,n=t.export,i=e.object.empty,o=Object.assign(Object.create(null),{"runtime-core":"js","runtime-host":t.isNativeHost?"native":"browser","runtime-version":r.version,"is-debugging":!0,"logging-level":3});t.$env=n(t.$app,"env",(function(t,e){return null==t?Object.assign(i(),o):"string"!=typeof t?null:void 0!==o[t]?o[t]:void 0!==e?e:null})),t.env=function(t,e){return void 0===e?o[t]:o[t]=e}}},function(t){t.exports=JSON.parse('{"name":"eslang","version":"1.0.22","author":{"email":"[email protected]","name":"Leevi Li"},"license":"MIT","repository":"nirlstudio/eslang","description":"A simple & expressive script language, like Espresso.","keywords":["es","eslang","espresso","espressolang","espresso-lang","s-expression","script language","programming lang","programming language"],"main":"index.js","scripts":{"test":"node . selftest","check":"node test/test.js","build":"webpack","rebuild":"rm -rf dist/www; rm dist/*; rm dist/.cache*; webpack","build-dev":"webpack","build-prod":"webpack --mode=production","clean":"rm -rf dist/www; rm dist/*; rm dist/.cache*","start":"webpack serve --mode development","prod":"webpack serve --mode production"},"bin":{"es":"bin/es","eslang":"bin/eslang"},"dependencies":{"axios":"^0.21.1"},"devDependencies":{"hooks-webpack-plugin":"^1.0.3","html-webpack-plugin":"^4.5.1","shelljs":"^0.8.4","webpack":"^4.46.0","webpack-cli":"^4.3.1","webpack-dev-server":"^3.11.2"}}')},function(t,e,n){"use strict";t.exports=function(t){t.Signal=function(t,e,n){this.id=t,this.count=e,this.value=n}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.object,r=t.ClassInst,i=t.$warn,o=t.isObject,u=t.indexerOf,s=t.defineConst,a=t.ownsProperty,l=t.reservedSymbols,c=function(){return(c=t.module.create.bind(t.module)).apply(null,arguments)},f=function(){return(f=t.$path.http?function(e){return t.$path.http.isAbsolute(e)?t.$path.http.dirname(e):t.$path.dirname(e)}:t.$path.dirname.bind(t.$path)).apply(null,arguments)},p=function(){return(p=t.$path.http?function(e){return t.$path.http.isAbsolute(e)||t.$path.isAbsolute(e)}:t.$path.isAbsolute.bind(t.$path)).apply(null,arguments)},h=Object.freeze([]),d=e.tuple["atom-of"];function y(t,e,n,r){this.local=t,this.context=n||Object.create(t),e&&(this.locals=e),r&&(this.exporting=r)}function v(t,e){this.$=e,this.context=Object.create(t.context),this.local=t.local,t.locals&&(this.locals=t.locals),t.app&&(this.app=t.app)}t.atomicArrayOf=function(t){for(var e=[],n=0;n<t.length;n++)e.push(d(t[n]));return e},t.Space=y,y.prototype=Object.assign(Object.create(null),{resolve:function(t){var e=this.context[t];if(void 0!==e)return e;var n=this.context.this;return null==n?null:u(n).call(n,t)},$resolve:function(t){return void 0===e[t]?null:e[t]},var:function(t,e){return l[t]?(i("var","reserved symbol:",t),this.context[t]):this.local[t]=e},const:function(t,e){return l[t]?(i("const","reserved symbol:",t),this.context[t]):s(this.local,t,e)},lvar:function(t,e){return l[t]?(i("local","reserved symbol:",t),this.context[t]):this.context[t]=e},lconst:function(t,e){return l[t]?(i("locon","reserved symbol:",t),this.context[t]):s(this.context,t,e)},let:function(t,e){if(l[t])return i("let","reserved symbol:",t),this.context[t];if(a(this.local,t))return this.local[t]=e;if(this.locals)for(var n=this.locals.length-1;n>=0;n--)if(a(this.locals[n],t))return this.locals[n][t]=e;var s=this.context.this;return o(s)&&(a(s,t)||s instanceof r&&"type"!==t&&a(s.type.proto,t))?u(s).call(s,t,e):this.local[t]=e},export:function(t,e){if(this.exporting){if(void 0!==this.exporting[t])return i("export","re-exporting",t),this.exporting[t];this.exporting[t]=e}return this.var(t,e)},populate:function(t){if(Array.isArray(t))this.context.arguments=t.length<1?h:Object.isFrozen(t)?t:Object.freeze(t);else if(null!==t&&"object"==typeof t)for(var e=Object.getOwnPropertyNames(t),n=0;n<e.length;n++){var r=e[n];if(l[r])i("var/p","reserved symbol:",r);else switch(r){case"this":this.context.this=t.this;break;case"arguments":Array.isArray(t.arguments)&&(this.context.arguments=t.arguments.length<1?h:Object.isFrozen(t.arguments)?t.arguments:Object.freeze(t.arguments.slice()));break;default:this.local[r]=t[r]}}},prepare:function(t,e,n){this.context.do=t,this.context.this=void 0===e?null:e,this.context.arguments=n.length<1?h:Object.freeze(n)},prepareOp:function(t,e,n){this.context.operation=t,this.context.operand=e,this.context.that=void 0!==n?n:null},reserve:function(){return this._reserved||(this._reserved={local:this.local,locals:this.locals,app:this.app})},bindOperators:function(){t.bindOperatorFetch(this),t.bindOperatorImport(this),t.bindOperatorLoad(this)}}),t.createAppSpace=function(n,r){var o=Object.create(e);Object.assign(o,t.$app),o["-app"]=n,o["-app-dir"]=f(n),o["-app-home"]=r||o["-app-dir"];var u=Object.create(o);u["-module"]=o["-app"],u["-module-dir"]=o["-app-dir"];var s=Object.create(null),a=new y(u,null,null,s);return o.modules=c(a),a.app=o,a.export=function(t,e){return l[t]?(i("export/a","reserved symbol:",t),this.context[t]):void 0!==s[t]?(i("export/a","re-exporting",t),this.exporting[t]):(o[t]=e,s[t]=e,u[t]=e)},a},t.createBootstrapSpace=function(e){var n=t.bootstrap=t.createAppSpace(e);return n.bindOperators(),n},t.createModuleSpace=function(t,r){var i=r&&r.app,o=Object.create(i||e);o["-module"]=t||"",o["-module-dir"]=t&&(p(t)?f(t):"");var u=new y(o,null,null,Object.create(n.proto));return i&&(u.app=i),u},t.createLambdaSpace=function(t,n,r){var i;return t?(i=new y(Object.create(t))).app=t:i=new y(Object.create(e)),r&&(i.local["-module"]=r||"",i.local["-module-dir"]=r?f(r):""),i},t.createFunctionSpace=function(t){var e=new y(Object.create(t.local),t.locals?t.locals.concat(t.local):[t.local]);return t.app&&(e.app=t.app),e},t.OperatorSpace=v,v.prototype=Object.assign(Object.create(y.prototype),{inop:!0,$resolve:function(t){return void 0!==e[t]?e[t]:void 0===this.$[t]?null:this.$[t]}}),t.createOperatorSpace=function(t,e){return new v(t,e)}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.operator,r=t.Tuple,i=t.Signal,o=t.Symbol,u=t.$warn,s=t.indexerOf,a=e.symbol.pairing,l=e.symbol.subject,c=t.staticOperators;function f(t,e,n,r){try{var o=t(n,e,r);return void 0===o?null:o}catch(t){if(t instanceof i)throw t;return u("evaluate","unknown signal:[",t.code||t.message,"] when evaluating operator:",e,"\n",t),null}}t.evaluate=function t(e,p){if(!(e instanceof r))return e instanceof o?p.resolve(e.key):e;var h=e.$,d=h.length;if(d<1)return null;if(e.plain){for(var y=null,v=0;v<d;v++)y=t(h[v],p);return y}var g,m=h[0],b=1,w=!0;if(m instanceof o)if(m===l){switch(d){case 1:return null;case 2:return t(h[1],p);default:m=t(h[1],p)}b=2,w=!1}else if(m===a){if(d<2)return null;if("function"!=typeof(m=t(h[1],p)))return null;b=2}else{if(c[m.key])return f(c[m.key],e,p);m=p.resolve(m.key)}else m instanceof r&&(m=t(m,p));if("function"==typeof m&&w){if(m.type===n)return f(m,e,p);g=m,m=null}else g=null;if(b>=d&&null===g)return t(m,p);var x=[];if(null===g)if((g=h[b++])instanceof r&&(g=t(g,p)),g instanceof o)if(":"===g.key)g=s(m);else{var O=s(m);if("function"!=typeof(g=O.get?O.get.call(m,g.key):O.call(m,g.key)))return void 0===g?null:g}else"function"!=typeof g&&(x.push(g),g=s(m));if(g.type===n)return f(g,e,p,m);for(;b<d;b++)x.push(t(h[b],p));try{var j=g.apply(m,x);return void 0===j?null:j}catch(t){if(t instanceof i)throw t;return u("evaluate","unknown signal:[",t.code||t.message,"] when evaluating function/lambda:",e,"\n",t),null}}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.Signal,n=t.evaluate;t.signalOf=function(t){return function(r,i){var o=i.$,u=o.length;if(u<2)throw new e(t,0,null);if(2===u)throw new e(t,1,n(o[1],r));var s,a=[];for(s=1;s<u;s++)a.push(n(o[s],r));throw new e(t,s-1,a)}}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.tuple,r=e.symbol,i=t.Tuple,o=t.Signal,u=t.Symbol,s=t.$warn,a=t.lambda,l=t.stambda,c=t.constambda,f=t.evaluate,p=t.function,h=t.ownsProperty,d=t.createLambdaSpace,y=t.createFunctionSpace,v=t.createEmptyOperation,g=r.etc.key;function m(t,e){return e>0?Object.defineProperties(t,{length:{value:e},name:{value:void 0}}):Object.defineProperty(t,"name",{value:void 0})}function b(t,e){var n=f(t,e);return h(e.context,"retval")?e.context.retval:n}function w(t,e,n,r,i,o){var u=0===o?[]:1===o?[i]:i;t.prepare(e,n,u);for(var s=0;s<r.length;s++)t.var(r[s],s<u.length?u[s]:null);return t}function x(t,e,r){if(t instanceof u)return[[t.key],new i([t])];if(!(t instanceof i)||t.$.length<1)return[[],n.empty];t=t.$,r=r>0?r>t.length?t.length:r:t.length;for(var o=[],s=[],a=0;a<r;a++){var l=t[a];l instanceof u&&(o.push(l.key),s.push(l))}return o.length>0?[o,new i(s)]:[[],n.empty]}t.lambdaOf=function(t,u,l){var c=[r.lambda],f=x(u.$[l++],t);c.push(f[1]),f=f[0];var p=u.$.slice(l)||[];if(p.length>0){var h=new i(p,!0);return c.push(h),a(function(t,e,n,r){var i=d.bind(null,n,n&&n.modules.cache,r),u=function(){for(var n=i(),r=0,a=0,l=0;r<t.length;r++){var c=t[r];if(c===g)a||(a=arguments.length-t.length,l=r);else{var f=r+a;n.var(c,f>=l&&f<arguments.length?arguments[f]:null)}}for(n.prepare(u,this,Array.prototype.slice.call(arguments));;)try{return b(e,n)}catch(e){if(e instanceof o){if("redo"===e.id){n=w(i(),u,this,t,e.value,e.count);continue}if("exit"!==e.id)return e.value;throw e}return s("lambda:eval","unexpected error:",e.code||e.message,"\n",e),null}};return m(u,t.length)}(f,h,t.app,t.local["-module"]),new i(c))}return c.push(n.blank),f.length<1?e.lambda.noop:a(v(),new i(c))},t.staticLambdaOf=function(t,u,a){var f=[r.stambda],p=x(u.$[a++],t,1);f.push(p[1]),p=p[0];var h=u.$.slice(a)||[];if(h.length>0){var y=new i(h,!0);return f.push(y),(p.length>0?l:c)(function(t,e){var n;t.length>0&&(n=t[0]);var r=function(){var t=d();n&&("this"===n?t.context.this=this:t.var(n,void 0===arguments[0]?null:arguments[0]));try{return b(e,t)}catch(t){if(t instanceof o){if("exit"!==t.id)return t.value;throw t}return s("stambda:eval","unexpected error:",t.code||t.message,"\n",t),null}};if("this"===n)return r;return(r=r.bind(null)).this=null,m(r,t.length)}(p,y),new i(f))}return f.push(n.blank),p.length<1?e.lambda.static:c(v(),new i(f))},t.functionOf=function(t,u,a){var l=[r.function],c=x(u.$[a++],t);l.push(c[1]),c=c[0];var f=u.$.slice(a)||[];if(f.length>0){var h=new i(f,!0);return l.push(h),p(function(t,e,n){var r=function(){for(var i=y(n),u=0,a=0,l=0;u<t.length;u++){var c=t[u];if(c===g)a||(a=arguments.length-t.length,l=u);else{var f=u+a;i.var(c,f>=l&&f<arguments.length?arguments[f]:null)}}for(i.prepare(r,this,Array.prototype.slice.call(arguments));;)try{return b(e,i)}catch(e){if(e instanceof o){if("redo"===e.id){i=w(y(n),r,this,t,e.value,e.count);continue}if("exit"!==e.id)return e.value;throw e}return s("function:eval","unexpected error:",e.code||e.message,"\n",e),null}};return m(r,t.length)}(c,h,t.reserve()),new i(l))}return l.push(n.blank),c.length<1?e.function.noop:p(v(),new i(l))}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.tuple,r=e.symbol,i=t.Tuple,o=t.Space,u=t.Symbol,s=t.evaluate,a=t.operator,l=r.pairing,c=r.subject,f=t.createOperatorSpace,p=t.createEmptyOperation;t.operatorOf=function(t,h){var d=[r.operator],y=function(t){if(t instanceof u)return[[t.key],new i([t])];if(!(t instanceof i)||t.$.length<1)return[[],n.empty];var e=[],r=[];t=t.$;for(var o=0;o<t.length;o++){var s=t[o];s instanceof u&&(e.push(s.key),r.push(s))}return e.length>0?[e,new i(r)]:[[],n.empty]}(h.$[1]);d.push(y[1]),y=y[0];var v=h.$.slice(2)||[];if(v.length>0){!function t(e){for(var n=0;n<e.length;n++){var r=e[n];r instanceof i&&r.$.length>0&&(r.inop=!0,t(r.$))}}(v);var g=new i(v,!0);return d.push(g),a(function(t,e,n){return function(r,i,u){if(!(r instanceof o))return null;for(var a=i.$,p=void 0!==u?a[0]===c?3:2:a[0]===l?2:1,h=f(r,n),d=0;d<t.length;d++){var y=d+p;h.context[t[d]]=y<a.length?a[y]:null}return h.prepareOp(i,p,u),s(e,h)}}(y,g,t.local),new i(d))}return d.push(n.blank),y.length<1?e.operator.noop:a(p(),new i(d))}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.Signal,n=t.$warn,r=t.evaluate,i=t.createAppSpace,o=t.createModuleSpace;t.execute=function(u,s,a,l,c){var f=c?function(e,n){var r=t.bootstrap;r&&r["-app"]===e?r.app.modules.cache[e]&&(r=i(e,n)):r=i(e,n);return r.app.modules.cache[e]=Object.assign(Object.create(null),{status:201,exports:r.exporting,timestamp:Date.now()}),r}(a,c):o(a,u);f.populate(l);try{return[r(s,f),f]}catch(t){if(t instanceof e){if("exit"===t.id||"return"===t.id)return[t.value,f];throw t}return n("execute","unknown error:",t.code||t.message,"with",l,"for",s,"from",a,"\n",t),[null,null]}}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.compile,r=t.Tuple,i=t.Symbol,o=t.$warn,u=t.export,s=t.execute;u(e,"eval",(function(t){var e;if("string"==typeof t){if(!((e=n(t))instanceof r))return o("eval","invalid code:",e),null}else if(t instanceof r)e=t;else{if(!(t instanceof i))return t;e=new r([t],!0)}try{return s(null,e)[0]}catch(n){return e===t?o("eval","invalid call to",n.id,"for",e):o("eval","invalid call to",n.id,"for",e,"of",t),null}}))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$.compile,n=t.Tuple,r=t.$warn,i=t.export,o=t.execute,u=t.completeFile,s=t.atomicArrayOf,a=function(){return(a=t.$path.http?function(e){return t.$path.http.isAbsolute(e)||t.$path.isAbsolute(e)}:t.$path.isAbsolute.bind(t.$path)).apply(null,arguments)},l=function(){var e=t.$path;return(l=e.http?function(t){return e.http.isAbsolute(t)?e.http.resolve.apply(e.http,arguments):e.resolve.apply(e,arguments)}:e.resolve.bind(e)).apply(null,arguments)};t.$run=i(t.$app,"run",(function(i,c,f){if("string"!=typeof i)return r("run","invalid app uri type:",typeof i,"of",i),null;c=Array.isArray(c)?s(c):[],("string"!=typeof f||f.length<1)&&(f=t.$env("home")),i=u(i);var p=a(i)?i:l(f,i);if("string"!=typeof p)return r("run","failed to resolve app at",p),null;var h=t.loader.load(p),d=h[0];if(!d)return r("run","failed to read source",i,"for",h[1]),null;var y=e(d,p,h[1]);if(!(y instanceof n))return r("run","compiler warnings:",y),null;try{return o(null,y,p,c,f)[0]}catch(t){return r("run","invalid call to",t.id,"in",d,"from",p,"with",c),null}}))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=t.Tuple,r=t.Symbol,i=t.evaluate,o=t.staticOperator;o("$",(function(){return null})),o(":",(function(){return null})),o("..",(function(t,o){var u=o.$;if(u.length>1){var s=u[1];if(s instanceof n&&(s=i(s,t)),s instanceof r)return e[s.key]}return null}))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.tuple,r=e.symbol,i=t.Tuple,o=t.staticOperator;o("`",(function(t,e){return e.$.length>1?e.$[1]:r.empty})),o("quote",(function(t,e){return e._quoted||(e._quoted=e.$.length<2?n.empty:new i(e.$.slice(1),!1,e.source))})),o("unquote",(function(t,e){return e._quoted||(e._quoted=e.$.length<2?n.blank:new i(e.$.slice(1),!0,e.source))}))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$.symbol.all,n=t.Tuple,r=t.Symbol,i=t.isObject,o=t.evaluate,u=t.staticOperator,s=t.tryToUpdateName;function a(t){return function(u,a){var l=a.$,c=l.length;if(c<2)return null;var f,p,h,d,y=l[1],v=c<3?null:o(l[2],u);if(u.inop&&a.inop){var g="string"==typeof(y=o(y,u))?y:y instanceof r?y.key:null;return g?u[t](g,s(v,g)):null}if(y instanceof r){if(y!==e)return u[t](y.key,s(v,y.key));if(i(v)){for(p=Object.getOwnPropertyNames(v),f=0;f<p.length;f++)d=v[h=p[f]],u[t](h,void 0===d?null:d);return v}return null}if(!(y instanceof n)||y.$.length<1)return null;var m=y.$;if(Array.isArray(v))for(f=0;f<m.length;f++)m[f]instanceof r&&u[t](m[f].key,f<v.length?v[f]:null);else if(i(v))for(f=0;f<m.length;f++)m[f]instanceof r&&(d=v[h=m[f].key],u[t](h,void 0===d?null:d));else for(f=0;f<m.length;f++)m[f]instanceof r&&u[t](m[f].key,v);return v}}u("export",a("export")),u("var",a("var")),u("const",a("const")),u("let",a("let")),u("local",a("lvar")),u("locon",a("lconst"))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=t.Tuple,r=t.Signal,i=t.Symbol,o=t.evaluate,u=t.signalOf,s=t.iterateOf,a=e.iterator.of,l=t.sharedSymbolOf,c=t.staticOperator,f=l("else"),p=l("in"),h=l("_");function d(t,e,u,a,l){var c,f=e.$,p=f.length;if(u instanceof i)c=[u.key];else if(u instanceof n){c=[];for(var h=u.$,d=0;d<h.length;d++){var y=h[d];y instanceof i&&c.push(y.key)}}else c=[];if(!(a=s(a)))return null;for(var v=null,g=a();null!=g;){Array.isArray(g)||(g=[g]);for(var m=0;m<c.length;m++)t.var(c[m],m<g.length?g[m]:null);try{for(var b=l;b<p;b++)v=o(f[b],t)}catch(t){if(t instanceof r){if("continue"===t.id){v=t.value,g=a();continue}if("break"===t.id){v=t.value;break}}throw t}g=a()}return v}c("if",(function(t,e){var n,r,i,u=e.$,s=u.length;if(s<3)return null;var a=o(u[1],t);if(null!=a&&0!==a&&!1!==a){if((i=u[2])===f)return null;for(n=o(i,t),r=3;r<s;r++){if((i=u[r])===f)return n;n=o(i,t)}return n}for(r=2;r<s&&u[r]!==f;r++);if(r>=s)return null;for(n=null,r+=1;r<s;r++)n=o(u[r],t);return n})),c("break",u("break")),c("continue",u("continue")),c("while",(function(t,e){var u=e.$,s=u.length;if(s<2)return null;for(var a=function(t,e){return e instanceof i?t.resolve.bind(t,e.key):e instanceof n?o.bind(null,e,t):!1===e||null===e||0===e}(t,u[1]),l="function"!=typeof a,c=null;;)try{if(l){if(a)return null}else{var f=a();if(!1===f||null==f||0===f)break}for(var p=2;p<s;p++)c=o(u[p],t)}catch(t){if(t instanceof r){if("continue"===t.id){c=t.value;continue}if("break"===t.id){c=t.value;break}}throw t}return c})),c("in",(function(t,e){var n=e.$;return a(n.length>1?o(n[1],t):null)})),c("for",(function(t,e){var n=e.$,r=n.length;return r<3?null:n[2]===p?r<5?null:d(t,e,n[1],o(n[3],t),4):d(t,e,h,o(n[1],t),2)}))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.string,r=t.link,i=t.Space,o=t.Symbol,u=t.operator,s=t.thisCall,a=t.evaluate,l=t.numberValueOf,c=t.staticOperator,f=e.symbol.subject;c("+",(function(t,e){var n=e.$;if(n.length>1){var r=a(n[1],t);return"number"==typeof r?function(t,e,n){for(var r=n.length,i=2;i<r;i++){var o=a(n[i],t);e+="number"==typeof o?o:l(o)}return e}(t,r,n):function(t,e,n){var r=n.length;"string"!=typeof e&&(e=s(e,"to-string"));for(var i=2;i<r;i++){var o=a(n[i],t);e+="string"==typeof o?o:s(o,"to-string")}return e}(t,r,n)}return 0}),(function(t,e){var n=1,r=arguments.length;if(r<1)return 0;if("number"==typeof t)for(;n<r;n++)t+="number"==typeof(e=arguments[n])?e:l(e);else for("string"!=typeof t&&(t=s(t,"to-string"));n<r;n++)t+="string"==typeof(e=arguments[n])?e:s(e,"to-string");return t})),r(n.proto,"+=",u((function(t,e,n){if(!(t instanceof i)||"string"!=typeof n)return"";for(var r=e.$,u=r[0]===f?3:2,l=u,c=r.length;l<c;l++){var p=a(r[l],t);n+="string"==typeof p?p:s(p,"to-string")}var h=r[u-2];return h instanceof o&&t.let(h.key,n),n}))),r(n.proto,"-=",u((function(t,e,n){if(!(t instanceof i)||"string"!=typeof n)return"";for(var r=e.$,u=r[0]===f?3:2,l=u,c=r.length;l<c;l++){var p=a(r[l],t);"string"==typeof p?n.endsWith(p)&&(n=n.substring(0,n.length-p.length)):"number"==typeof p?n=n.substring(0,n.length-p):(p=s(p,"to-string"),n.endsWith(p)&&(n=n.substring(0,n.length-p.length)))}var h=r[u-2];return h instanceof o&&t.let(h.key,n),n})))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.type,r=e.bool,i=t.null,o=t.link,u=t.Space,s=t.Symbol,a=t.isFalsy,l=t.operator,c=t.evaluate,f=t.thisCall,p=t.staticOperator,h=e.symbol.subject;p("not",p("!",(function(t,e){if(e.$.length<2)return!1;var n=c(e.$[1],t);return!1===n||null===n||0===n}),a),a);var d=o(i,["&&","and"],l((function(t,e,n){if(!(t instanceof u)||void 0===n)return!0;if(!1===n||null===n||0===n)return n;for(var r=e.$,i=r[0]===h?3:2,o=r.length;i<o;i++)if(!1===(n=c(r[i],t))||null===n||0===n)return n;return n})));o(i,"&&=",l((function(t,e,n){if(!(t instanceof u)||void 0===n)return!0;var r=d(t,e,n);if(!Object.is(n,r)){var i=e.$,o=i[i[0]===h?1:0];o instanceof s&&t.let(o.key,r)}return r})));var y=o(i,["||","or"],l((function(t,e,n){if(!(t instanceof u)||void 0===n)return!1;if(!1!==n&&null!==n&&0!==n)return n;for(var r=e.$,i=r[0]===h?3:2,o=r.length;i<o;i++)if(!1!==(n=c(r[i],t))&&null!==n&&0!==n)return n;return n})));o(i,"||=",l((function(t,e,n){if(!(t instanceof u)||void 0===n)return!1;var r=y(t,e,n);if(!Object.is(n,r)){var i=e.$,o=i[i[0]===h?1:0];o instanceof s&&t.let(o.key,r)}return r}))),o(i,"?",l((function(t,e,n){if(!(t instanceof u)||void 0===n)return!0;var r=e.$,i=r[0]===h?3:2;if(r.length<i)return!0;if(!1!==n&&null!==n&&0!==n)switch(r.length-i){case 0:return!0;case 1:return n;default:return c(r[i],t)}switch(r.length-i){case 0:return!1;case 1:return c(r[i],t);default:return c(r[i+1],t)}}))),o(i,"?*",l((function(t,e,n){if(!(t instanceof u)||void 0===n)return!0;var r=e.$,i=r[0]===h?3:2;if(r.length<i)return!0;if(f(n,"not-empty"))switch(r.length-i){case 0:return!0;case 1:return n;default:return c(r[i],t)}switch(r.length-i){case 0:return!1;case 1:return c(r[i],t);default:return c(r[i+1],t)}}))),o(i,"??",l((function(t,e,n){if(!(t instanceof u))return!0;var r=e.$,i=r[0]===h?3:2;if(r.length<i)return!0;switch(r.length-i){case 0:return!1;case 1:return c(r[i],t);default:return c(r[i+1],t)}}))),o(n.proto,"??",l((function(t,e,n){if(!(t instanceof u))return!0;var r=e.$,i=r[0]===h?3:2;if(r.length<i)return!0;switch(r.length-i){case 0:return!0;case 1:return n;default:return c(r[i],t)}}))),o(r.proto,"fails",l((function(t,e,n){return"boolean"!=typeof n||!n}))),o(r.proto,"succeeds",l((function(t,e,n){return"boolean"==typeof n&&n})))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.number,r=t.link,i=t.Space,o=t.Symbol,u=t.evaluate,s=t.operator,a=t.intValueOf,l=t.numberValueOf,c=t.staticOperator,f=e.symbol.subject;c("~",(function(t,e){if(e.$.length>1){var n=u(e.$[1],t);return"number"==typeof n?~n:-1}return-1}),(function(t){return"number"==typeof t?~t:-1})),r(n.proto,"&=",s((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return 0;var r=e.$,s=r[0]===f?3:2,a=r.length>s?u(r[s],t):0;n&="number"==typeof a?a:l(a);var c=r[s-2];return c instanceof o&&t.let(c.key,n),n}))),r(n.proto,"|=",s((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return 0;var r=e.$,s=r[0]===f?3:2,a=r.length>s?u(r[s],t):0;n|="number"==typeof a?a:l(a);var c=r[s-2];return c instanceof o&&t.let(c.key,n),n}))),r(n.proto,"^=",s((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return 0;var r=e.$,s=r[0]===f?3:2,a=r.length>s?u(r[s],t):0;n^="number"==typeof a?a:l(a);var c=r[s-2];return c instanceof o&&t.let(c.key,n),n}))),r(n.proto,"<<=",s((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return 0;var r=e.$,s=r[0]===f?3:2,l=r.length>s?u(r[s],t):0;n<<="number"==typeof l?l:a(l);var c=r[s-2];return c instanceof o&&t.let(c.key,n),n}))),r(n.proto,">>=",s((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return 0;var r=e.$,s=r[0]===f?3:2,l=r.length>s?u(r[s],t):0;n>>="number"==typeof l?l:a(l);var c=r[s-2];return c instanceof o&&t.let(c.key,n),n}))),r(n.proto,">>>=",s((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return 0;var r=e.$,s=r[0]===f?3:2,l=r.length>s?u(r[s],t):0;n>>>="number"==typeof l?l:a(l);var c=r[s-2];return c instanceof o&&t.let(c.key,n),n})))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.number,r=t.link,i=t.Space,o=t.Symbol,u=t.operator,s=t.evaluate,a=t.staticOperator,l=n.proto["%"],c=e.symbol.subject;a("-",(function(t,e){var n=s(e.$[1],t);return"number"==typeof n?-n:-0}),(function(t){return"number"==typeof t?-t:-0})),a("++",(function(t,e){var n=e.$;if(n.length<2)return 1;var r=n[1];if(r instanceof o){var i=t.resolve(r.key);return t.let(r.key,i="number"==typeof i?i+1:1),i}return"number"==typeof(r=s(r,t))?r+1:1}),(function(t){return"number"==typeof t?t+1:1})),a("--",(function(t,e){var n=e.$;if(n.length<2)return-1;var r=n[1];if(r instanceof o){var i=t.resolve(r.key);return t.let(r.key,i="number"==typeof i?i-1:-1),i}return"number"==typeof(r=s(r,t))?r-1:-1}),(function(t){return"number"==typeof t?t-1:-1})),r(n.proto,"++",u((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return 1;var r=e.$,u=r[r[0]===c?1:0];return u instanceof o&&t.let(u.key,n+1),n}))),r(n.proto,"--",u((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return-1;var r=e.$,u=r[r[0]===c?1:0];return u instanceof o&&t.let(u.key,n-1),n}))),r(n.proto,"+=",u((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return 0;for(var r=e.$,u=r[0]===c?3:2,a=u,l=r.length;a<l;a++){var f=s(r[a],t);"number"==typeof f&&(n+=f)}var p=r[u-2];return p instanceof o&&t.let(p.key,n),n}))),r(n.proto,"-=",u((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return 0;for(var r=e.$,u=r[0]===c?3:2,a=u,l=r.length;a<l;a++){var f=s(r[a],t);"number"==typeof f&&(n-=f)}var p=r[u-2];return p instanceof o&&t.let(p.key,n),n}))),r(n.proto,"*=",u((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return 0;for(var r=e.$,u=r[0]===c?3:2,a=u,l=r.length;a<l;a++){var f=s(r[a],t);"number"==typeof f&&(n*=f)}var p=r[u-2];return p instanceof o&&t.let(p.key,n),n}))),r(n.proto,"/=",u((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return 0;for(var r=e.$,u=r[0]===c?3:2,a=u,l=r.length;a<l;a++){var f=s(r[a],t);"number"==typeof f&&(n/=f)}var p=r[u-2];return p instanceof o&&t.let(p.key,n),n}))),r(n.proto,"%=",u((function(t,e,n){if(!(t instanceof i)||"number"!=typeof n)return 0;var r=e.$,u=r[0]===c?3:2;if(r.length>u){n=l.call(n,s(r[u],t));var a=r[u-2];a instanceof o&&t.let(a.key,n)}return n})))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.class,r=e.object,i=e.symbol,o=i.of,u=t.Tuple,s=t.Symbol,a=t.ClassType,l=t.thisCall,c=t.evaluate,f=e.array.proto.set,p=t.sharedSymbolOf,h=t.staticOperator,d=i.all,y=i.literal,v=i.pairing,g=p("map"),m=p("set"),b=p("array"),w=p("class"),x=p("object"),O=function(){return(O=t.$warn).apply(t,arguments)};function j(t,e,n){for(var r,i,o=[];n<e.length;)i=c(e[n++],t),n<e.length&&e[n]===v?(n+=1,r="number"==typeof i?i>>0:o.length,f.call(o,r,n>=e.length?null:c(e[n++],t))):o.push(i);return o}function $(t,e,n,r){for(var i=n.empty(),a=e.length;r<a;){var f=e[r++];f instanceof s?f=f.key:"string"!=typeof f&&(f instanceof u&&(f=c(f,t)),f instanceof s?f=f.key:"string"!=typeof f&&(f=l(f,"to-string"))),e[r]===v?i[f]=++r<a?c(e[r++],t):null:i[f]=c(o(f),t)}var p=n.proto.activator;return"function"==typeof p&&p.call(i,i),i}h("@",(function(t,e){var i=e.$,o=i.length;if(o<2)return[];var s=i[1];if(s!==v)return o<=2||i[2]!==v||"number"==typeof s||s instanceof u?j(t,i,1):$(t,i,r,1);if(o<3)return Object.create(r.proto);var l=i[2];return l===w?n.of($(t,i,r,3)):l===y||l===x?$(t,i,r,3):l===d||l===b?j(t,i,3):l===m?function(t,e,n){for(var r=new Set;n<e.length;)r.add(c(e[n++],t));return r}(t,i,3):l===g?function(t,e,n){for(var r=new Map,i=e.length;n<i;){var o=c(e[n++],t);e[n]===v&&++n<=i?r.set(o,c(e[n++],t)):r.set(o,null)}return r}(t,i,3):function(t,e,n,i){return n instanceof a||(O("@-literal","invalid literal type:",typeof n,n),n=r),$(t,e,n,i)}(t,i,c(l,t),3)}))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.tuple,r=e.symbol,i=e.lambda,o=e.function,u=t.Tuple,s=t.evaluate,a=t.signalOf,l=t.lambdaOf,c=t.functionOf,f=t.staticLambdaOf,p=t.staticOperator;function h(t,e){return function(i,o){var a,l,c=o.$,f=c.length;if(f<2)return e;if(c[1]===r.pairing)a=f>2?c[2]:n.empty,l=2;else{if(!(f>2&&c[2]===r.pairing))return t(i,o,1);a=c[1],l=3}if(f<=l+1)return null;var p=t(i,o,l);if(a instanceof u){var h=a.$;if(h.length<1)return p();for(var d=[],y=0;y<h.length;y++)d.push(s(h[y],i));return p.apply(null,d)}return p(s(a,i))}}p("=",h(l,i.noop)),p("->",h(f,i.noop)),p("=>",h(c,o.noop)),p("redo",a("redo")),p("return",a("return")),p("exit",a("exit"))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=t.Tuple,r=t.Symbol,i=e.operator,o=t.evaluate,u=t.operatorOf,s=t.staticOperator;s("=?",(function(t,e){return e.$.length<2?i.noop:u(t,e)})),s(".",(function(t,e){var i=e.$;if(i.length>1){var u=i[1];if(u instanceof n&&(u=o(u,t)),u instanceof r)return t.$resolve(u.key)}return null}))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.symbol,r=e.object,i=e.compile,o=t.$warn,u=t.Tuple,s=t.Symbol,a=t.execute,l=t.evaluate,c=t.isObject,f=t.ownsProperty,p=t.safelyAssign,h=t.sharedSymbolOf,d=t.staticOperator,y=n.all,v=h("from"),g=h("import"),m=function(){return(m=t.module.native.resolve.bind(t.module.native)).apply(null,arguments)},b=function(){return(b=t.module.native.load.bind(t.module.native)).apply(null,arguments)},w=function(){return(w=t.$path.dirname.bind(t.$path)).apply(null,arguments)},x=d("import",(function(t,e){if(!t.app)return o("import","invalid without an app context."),null;var n,r=e.$;if(r.length<2)return null;if(r.length<3||r[2]!==v)return(n=j(t,l(r[1],t)))&&O(n);var i,a=l(r[3],t);if(c(a))n=null,i=a;else{if("string"!=typeof a)return null==a?o("import","missing target object or path."):o("import","invalid target object or path:",a),null;if(!(i=(n=j(t,a))&&n.exporting))return null}var f,p=r[1];if(p instanceof s)return p!==y?i[p.key]:n?O(n):i;if(!(p instanceof u))return o("import","invalid field descriptor:",p),null;var h=p.$;for(p=[],f=0;f<h.length;f++)h[f]instanceof s&&p.push(h[f].key);var d=[];for(f=0;f<p.length;f++){var g=i[p[f]];d.push(void 0===g?null:g)}return d}));function O(t){var e=t.exporting;if(t.isNative)return e;var n=Object.create(e);for(var r in e)!r.startsWith("-")&&f(e,r)&&(n[r]=e[r]);return n}function j(e,n){if("string"!=typeof n||!n)return o("import","invalid module identifer:",n),null;var i=e.local["-module"],u=e.local["-module-dir"],s=n.startsWith("$"),a=e.app.modules,l=s?m(n,u,e.local["-app-home"],e.local["-app-dir"],t.$env("user-home")):a.resolve(n,u);if(!l)return null;var c=a.lookupInCache(l,i);return c.status||(c.status=100,c.exporting=(s?k:$)(e,l,c,n,i),c.exporting||(c.exporting=Object.create(r.proto)),c.isNative||Object.assign(c.exporting,c.props)),c}function $(e,n,r,s,l){try{r.props["-module"]=n,r.props["-module-dir"]=w(n);var c=t.loader.load(n),f=c[0];if("string"!=typeof f)return r.status=415,o("import","failed to read",s,"for",c[1]),null;var p=i(f,n,c[1]);if(!(p instanceof u))return r.status=400,o("import","failed to compile",s,"for",p),null;var h=a(e,p,n)[1];if(h)return r.status=200,h.exporting;r.status=500,o("import","failed when executing",p)}catch(t){r.status=503,o("import","invalid call to",t.id,"in",p,"at",n,"from",l)}return null}function k(t,e,n,r,i){try{n.isNative=!0,n.props["-module"]=e;var u=b(e);return n.status=200,"function"!=typeof u?u:p(Object.create(null),u)}catch(t){n.status=503,o("import","failed to import native module of",r,"for",t,"at",e,"from",i)}return null}t.bindOperatorImport=function(t){return t.$import=function(e){return e&&"string"==typeof e?x(t,new u([g,e])):(o("$import","invalid module uri:",e),null)}}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$.compile,n=t.Tuple,r=t.$warn,i=t.execute,o=t.evaluate,u=t.sharedSymbolOf,s=t.staticOperator,a=u("load"),l=s("load",(function(u,s){if(!u.app)return r("load","invalid without an app context."),null;var a=s.$;return a.length<2?null:function(o,u,s,a){if(!s||"string"!=typeof s)return r("load","invalid module identifer:",s),null;var l=o.app.modules.resolve(s,u);if(!l)return null;var c=t.loader.load(l),f=c[0];if(!f)return r("load","failed to load:",s,"for:",c[1][0],c[1][1],"\n",c[1]),null;var p=e(f,l,c[1]);if(!(p instanceof n))return r("load","compiler warnings:",p),null;try{var h=i(o,p,l,Array.isArray(a)?a.slice():a),d=h[1];return d&&Object.getOwnPropertyNames(d.exporting).length>0?d.exporting:h[0]}catch(t){return r("load","invalid call to",t.id,"in",p,"from",l,"in",u),null}}(u,u.local["-module-dir"],o(a[1],u),a.length>2?o(a[2],u):null)}));t.bindOperatorLoad=function(t){return t.$load=function(e){return e&&"string"==typeof e?l(t,new n([a,e])):(r("$load","invalid module uri:",e),null)}}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$.promise,n=t.$run,r=t.$warn,i=t.Tuple,o=t.Promise,u=t.evaluate,s=t.completeFile,a=t.sharedSymbolOf,l=t.staticOperator,c=e.all,f=a("fetch"),p=e["of-resolved"],h=e["of-rejected"],d=l("fetch",(function(e,n){if(!e.app)return r("load","invalid without an app context."),null;var i=n.$;if(i.length<2)return null;if(!e.app)return r("fetch","invalid without an app context."),null;for(var o=y.bind(null,t.loader,e.local["-module-dir"]),s=[],a=1,l=i.length;a<l;a++)s.push(o(u(i[a],e)));return c(s)}));function y(t,e,i){return i&&"string"==typeof i?(i=s(i),t.isRemote(i)||(i=[e,i].join("/")),t.isRemote(i)?i.endsWith("/@.es")?new o((function(e,r){t.fetch(i).then((function(){var t=n(i);t instanceof o?t.then(e,r):e(t)}),r)})):t.fetch(i):(r("fetch","only supports remote modules.",i),p(i))):(r("fetch","invalid module url:",i),h(i))}t.bindOperatorFetch=function(t){return t.$fetch=function(e){var n=Array.isArray(e)?e.slice():Array.prototype.slice.call(arguments);n.unshift(f);for(var o=1,u=n.length;o<u;o++){var s=n[o];s&&"string"==typeof s||(r("$fetch","invalid target uri:",s),n[o]=null)}return d(t,new i(n))}}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=t.Symbol,r=t.export,i=t.isFalsy,o=t.isTruthy,u=t.thisCall,s=t.evaluate,a=t.bindThis,l=t.indexerOf,c=t.isApplicable,f=t.numberValueOf,p=t.staticOperator,h=t.tryToUpdateName,d=e.symbol.pairing;function y(t,e,n){return e||(e=function(e,n){var r=n.$;switch(r.length){case 1:return function(e){return u(e,t)};case 2:var i=s(r[1],e);return function(e){return u(e,t,i)}}for(var o=[],a=1,l=r.length;a<l;a++)o.push(s(r[a],e));return function(e){return u.apply(null,[e,t].concat(o))}}),n||(n=function(e){return arguments.length<2?u(e,t):u.apply(null,[e,t].concat(Array.prototype.slice.call(arguments,1)))}),p(t,e,n)}function v(t){var e=h((function(e){return u(e,t)}),"*"+t);return p(t+"=",(function(n,r){var i=r.$,o=i.length;if(o<2)return e;for(var a=[],l=1;l<o;l++)a.push(s(i[l],n));return function(e){return u.apply(null,[e,t].concat(a))}}),(function(e,n){return void 0===e?null:void 0===n?u(e,t):u(e,t,n)}))}function g(t){var n=e.number.proto[t],r=h((function(t){return n.call("number"==typeof t?t:f(t))}),"*"+t);return p(t+"=",(function(t,e){var i=e.$;if(i.length<2)return r;var o=s(i[1],t);return function(t){return n.call("number"==typeof t?t:f(t),o)}}),function(t){return function(e,n){return t.call("number"==typeof e?e:f(e),n)}}(n))}p("===",y("is"),e.is),p("!==",y("is-not"),e["is-not"]),p("==",y("equals"),e.equals),p("!=",y("not-equals"),e["not-equals"]),y("compares-to"),y("is-empty"),y("not-empty"),p("is-an",y("is-a"),e["is-a"]),p("is-not-an",y("is-not-a"),e["is-not-a"]),y("to-code"),y("to-string"),y(">"),y(">="),y("<"),y("<="),v("+"),v("-"),v("*"),v("/"),v("%"),g("&"),g("|"),g("^"),g("<<"),g(">>"),g(">>>");var m=h((function(t){return t}),"*&&"),b=a(null,(function(t,e){return void 0===t||(i(t)||void 0===e?t:e)})),w=a(null,(function(){for(var t,e=0,n=arguments.length;e<n;e++)if((t=arguments[e])!==w&&i(t))return t;return void 0===t||t})),x=p("&&",(function(t,e){var n,r=e.$;if(r.length<2)return m;for(var o=1,u=r.length;o<u&&(n=s(r[o],t),!i(n));o++);return function(t){return b(t,n)}}),w);p("and",x,w),p("&&=",x,b);var O=h((function(t){return t}),"*||"),j=a(null,(function(t,e){return void 0!==t&&(o(t)||void 0===e?t:e)})),$=a(null,(function(){for(var t,e=0,n=arguments.length;e<n;e++)if((t=arguments[e])!==$&&o(t))return t;return void 0!==t&&t})),k=p("||",(function(t,e){var n,r=e.$;if(r.length<2)return O;for(var i=1,u=r.length;i<u&&(n=s(r[i],t),!o(n));i++);return function(t){return j(t,n)}}),$);p("or",k,$),p("||=",k,j);var A=h(a(null,o),"*?");p("?",(function(t,e){var n=e.$;switch(n.length){case 0:case 1:return A;case 2:var r=s(n[1],t);return function(t){return o(t)?t:r};default:var i=s(n[1],t),u=s(n[2],t);return function(t){return o(t)?i:u}}}),A);var S=h((function(t){return void 0===t||u(t,"not-empty")}),"*?*");p("?*",(function(t,e){var n=e.$;switch(n.length){case 0:case 1:return S;case 2:var r=s(n[1],t);return function(t){return u(t,"not-empty")?t:r};default:var i=s(n[1],t),o=s(n[2],t);return function(t){return u(t,"not-empty")?i:o}}}),S);var N=h((function(t){return void 0===t||null!==t}),"*??");function T(t,e){return function(n){for(var r,i=0,o=t.length;i<o;i++)if(r=t[i],r=c(r)?r(n):u(n,"equals",r),e(r))return r;return r}}p("??",(function(t,e){var n=e.$;switch(n.length){case 0:case 1:return N;case 2:var r=s(n[1],t);return function(t){return null!=t?t:r};default:var i=s(n[1],t),o=s(n[2],t);return function(t){return null!=t?i:o}}}),N);var E=function(){return!0},C=r(e,"all",(function(){for(var t=[],e=0,n=arguments.length;e<n;e++)arguments[e]!==w&&t.push(arguments[e]);return t.length<1?E:T(t,i)}));r(e,"both",C);var I=function(){return!1},P=r(e,"any",(function(){for(var t=[],e=0,n=arguments.length;e<n;e++)arguments[e]!==$&&t.push(arguments[e]);return t.length<1?I:T(t,o)}));function D(t){return function(e){for(var n,r=0,i=t.length;r<i;r++)if(n=t[r],n=c(n)?o(n(e)):u(e,"equals",n))return!1;return!0}}r(e,"either",P);var F=r(e,"not-any",(function(){for(var t=[],e=0,n=arguments.length;e<n;e++)arguments[e]!==$&&t.push(arguments[e]);return t.length<1?E:D(t)}));r(e,"neither",F),r(e,"nor",$),p("*",(function(t,e){var r=e.$,i=r.length;if(i<2)return null;var o,a=r[1];a instanceof n?(o=2,a=a.key):(o=1,a=d);for(var c=[];o<i;o++)c.push(s(r[o],t));return a===d?c.length<1?function(t){return l(t)()}:function(t){return l(t).apply(t,c)}:c.length<1?function(t){return u(t,a)}:function(t){return u.apply(null,[t,a].concat(c))}}),null)}},function(t,e,n){"use strict";t.exports=function(){var t={},e=t.null=Object.create(null),n=t.$=Object.create(null),r=Object.create(e),i=t.Type$=function(){this.proto=r,h(r,this)};function o(t,e){return d(n,e,t),t.name=e,t}i.prototype=r;var u=new i;function s(t){var e=Object.create(u);return e.proto=Object.create(u.proto),h(e.proto,e),o(e,t),e}o(u,"type"),d(n,"null",null),t.Type=function(){},t.Type.prototype=u,s("bool"),s("string"),s("number"),s("date"),t.Date=Date,s("range"),(t.Range=function(t,e,n){this.begin=t,this.end=e,this.step=n}).prototype=n.range.proto,s("symbol"),(t.Symbol=function(t){this.key=t}).prototype=n.symbol.proto,s("tuple"),(t.Tuple=function(t,e,n){this.$=t,this.plain=!0===e,n&&(this.source=n)}).prototype=n.tuple.proto;var a=s("operator");t.operator=function(t,e){return t.type=n.operator,t.code=e,t},t.staticOperators=Object.create(null),s("lambda"),t.lambda=function(t,e){return t.type=n.lambda,t.code=e,t},t.stambda=function(t,e){return t.type=n.lambda,t.code=e,t.static=!0,t},t.constambda=function(t,e){return t.type=n.lambda,t.code=e,t.const=!0,void 0===t.this&&(t.this=null),"function"!=typeof t.bound&&(t.bound=t),t},s("function"),t.function=function(t,e){return t.type=n.function,t.code=e,t},t.isApplicable=function(t){return"function"==typeof t&&t.type!==a},s("iterator"),(t.Iterator=function(t){this.next=t}).prototype=n.iterator.proto,s("promise"),t.Promise=Promise,s("array"),s("object"),(t.Object=function(t){t&&Object.assign(this,t)}).prototype=n.object.proto,s("set"),s("map");var l=o(Object.create(u),"class"),c=l.proto=Object.create(u);c.name=void 0,c.type=l,(t.ClassType=function(){}).prototype=c;var f=c.proto=Object.create(n.object.proto);function p(t,e,n){return Object.defineProperty(t,e,{enumerable:!1,configurable:!1,writable:!0,value:n}),n}function h(t,e){return p(t,"type",e)}function d(t,e,n){return Object.defineProperty(t,e,{enumerable:!0,configurable:!1,writable:!1,value:n}),n}return(t.ClassInst=function(){}).prototype=f,t.createClass=function(){var t=Object.create(c);return t.proto=Object.create(f),h(t.proto,t),t},t.defineProperty=p,t.defineConst=d,t}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=e.symbol.of,r=e.number["parse-int"],i=e.string.unescape,o=t.$warn,u=t.export,s=t.isApplicable,a=t.constantValues,l=t.regexDecimal,c=t.regexSpecialSymbol,f=u(e,"tokenizer",(function(t,u){if(!s(t))return e.tokenize;var f,p,h,d,y,v,g,m,b,w,x,O,j,$="";function k(){f=0,p=0,h=null,d=!1,y=0,v=0,g=null,m="",b=0,w=0,x=-1,O=!1,j=-1}u&&"string"==typeof u||(u=""),k();var A=C("'","format"),S=C('"');return function(t){if("string"!=typeof t)return $="",g&&g(),k(),!1;$=t;for(var e=0;e<t.length;e++){var n=t[e];g&&g(n)||N(n),T(n)}return!0};function N(e){switch(e){case"(":t("punctuation",e,[v,f,p]),v=-1;break;case")":t("punctuation",e,[y,f,p]);break;case"\\":O=!0,F("");break;case"`":case"@":case":":case"$":case",":case";":case"[":case"]":case"{":case"}":t("symbol",n(e),[y,f,p]);break;case"'":E('"',A);break;case'"':E('"',S);break;case"#":E("",P);break;case" ":case"\t":!function(t){if(y<0)return I(t);"\t"===t&&o("tokenizer","TAB-space is not suggested in indention.","\n",[u||$,f,p,y]);v=++y}(e);break;default:F(e)}}function T(t){h=t,d=!g&&/[\s]/.test(t)," "!==t&&"\t"!==t&&(y=-1),"\n"===t?(f+=1,p=y=v=0):p+=1}function E(t,e){g=e,m=t,b=f,w=p,x=y}function C(e,n){function r(){return t(n||"value",i(m+'"'),[x,b,w,f,p]),g=null,!0}return function(t){if(void 0===t)return o("tokenizer","a string value is not properly closed.","\n",[u||$,f,p,b,w]),r();if("\r"===t)return!0;if("\n"===t)return O?(m+="n",j=1,O=!1):j<0&&(j=0),!0;if(/[\s]/.test(t)){if(j>=0)return 0===j&&(m.length>1&&(m+=" "),j=1),!0}else j=-1;return O?(m+=t,O=!1,!0):t===e?r():(m+="'"===e&&'"'===t?"\\"+t:t,"\\"===t&&(O=!0),!0)}}function I(e){d&&"\n"!==e||t("space",e,[y,f,p])}function P(e){return void 0===e||"\n"===e?(t("comment",m,[x,b,w,f,p]),g=null):m.length<1&&"("===e?(m="(",g=D):m+=e,"\n"!==e}function D(e){if(e){if(")"!==h||"#"!==e)return m+=e,!0}else m+=")",o("tokenizer","a block comment is not properly closed.","\n",[u||$,f,p,b,w]);return t("comment",m,[x,b,w,f,p]),g=null,!0}function F(t){/[\s]/.test(t)?I(t):E(t,R)}function R(e){return e&&O?(m+=e,O=!1,!0):"\\"===e?(O=!0,!0):e&&!c.test(e)?(m+=e,!0):(function(){var e,i;void 0!==a[m]?i=a[m]:l.test(m)?i=/(\.|e|E|^-0$)/.test(m)?parseFloat(m):r(m):m.startsWith("0")?i=r(m):(e="symbol",i=n(m));t(e||"value",i,[x,b,w,f,p-1])}(),O=!1,g=null,!1)}}));u(e,"tokenize",(function(t){var e=[],n=f((function(){e.push(Array.prototype.slice.call(arguments))}));return n(t),n(),e}))}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=t.Tuple,r=t.$warn,i=t.export,o=e.tokenizer,u=t.isApplicable,s=t.formatPattern,a=t.sharedSymbolOf,l=e.symbol.pairing,c=e.symbol.subject,f=a("string"),p=a("format"),h=a("to-string"),d=i(e,"compiler",(function(t,i){if(!u(t))return e.compile;var a,d,y,v,g,m,b="";function w(){a=[[]],d=[[[[0,0,0]]]],y=null,v=["space","",[0,0,0]],g=-1,m=0}i&&"string"==typeof i||(i=""),w();var x=o((function(t,n,o){var u=o[o.length-2];u!==g&&(g=u,m=a[a.length-1].length);y&&y(t,n,o)||function(t,n,o){switch(t){case"value":j(n,o);break;case"symbol":!function(t,e){switch(t.key){case",":"symbol"===v[0]&&","===v[1].key&&j(null,e);break;case";":T(t,e),n=d.length-1,r=m+1,(i=d[n]).length>r&&g>i[r][1]||function(t,e){var n=a.length-1;a.push(a[n].splice(m));var r=d[n].splice(m+1);r.length>0?r.unshift(r[0]):r.push(e),d.push(r),k(e),m=a[n].length}(0,e);break;default:j(t,e)}var n,r,i}(n,o);break;case"punctuation":!function(t,e){switch(t){case"(":a.push([]),d.push([[e]]);break;case")":y=$}}(n,o);break;case"format":!function(t,n){var o=s(t);if(!(o.length>1))return t.indexOf('"')<0&&r("compiler","unnecessary format string:",t,"\n",["format",t,n,i||b]),j(o[0],n);var u=n.slice(0,3).concat(n.slice(1,2)),l=n.slice(0,1).concat(n.slice(-2));a.push([f,p]),d.push([[u],u,u]),j(o[0],n);for(var c=1;c<o.length;c++){var h=e.compile(o[c]);j(h.$.length>0?h.$[0]:null,l)}k(l)}(n,o);break;case"space":"\n"===n&&O()}}(t,n,o);v=[t,n,o]}),i);return function(t){return b=t&&"string"==typeof t?t:"",x(t)?a.length:(y&&y(),a.length>1&&(r("compiler","open statements are not properly closed.","\n",[v,i||b]),function(t,e){for(;a.length>1;)k(e)}(0,v[2])),O(),w(),0)};function O(){for(;a[0].length>0;)t([a[0].shift(),d[0].splice(0,1)])}function j(t,e){a[a.length-1].push(t),d[d.length-1].push(e)}function $(t,e,n){if(y=null,"symbol"!==t)return N(),!1;switch(e.key){case".":return a.length>1?function(t,e){if(a.length<2)return void r("compiler",'extra ")," is found and ignored.',"\n",[v,["symbol",t,e],i||b]);v[2][0]>=0?function(t,e){var n=v[2][0],r=a.length-1;for(;r>0;){var i=d[r][0][0][0];if(i>=0&&i<=n){i===n&&k(e);break}k(e),r=a.length-1}}(0,e):T(t,e)}(e,n):r("compiler",'extra enclosing ")." is found and ignored.',"\n",[v,["symbol",e,n],i||b]),!0;default:return N(),!1}}function k(t){var e=a.pop(),r=d.pop();for(r[0].push(t||v[2]);e.length>2&&A(e,r););r[0].unshift(i||b),a[a.length-1].push(new n(e,!1,r)),d[d.length-1].push(r[0].slice(1))}function A(t,e){for(var n=t.length-1,r=1;r<n;r++)if(t[r]===l&&t[r+1]===l)return t.splice(r,2),e.splice(r+1,2),S(t,e,r),!0;return!1}function S(t,e,r){var o=t.splice(0,r),u=e.splice(1,r+1),s=u[0].slice(0,3),a=u[u.length-1];u.unshift(s.concat(a.slice(-2))),t.length<1&&(t.push(h),e.push(a.slice(0,1).concat(a.slice(-2)))),u[0].unshift(i||b),t.unshift(c,new n(o,!1,u)),e.splice(1,0,s.concat(s.slice(1)),u[0].slice(1))}function N(){a.length<2?r("compiler","extra enclosing parentheses is found and ignored.","\n",[v,i||b]):k()}function T(t,e){for(var n=a.length-1;n>0;){if(d[n][0][0][1]<e[1])break;k(e),n=a.length-1}}})),y={code:Object.create(null),versions:Object.create(null),get:function(t,e){return t&&"string"==typeof t?e&&"string"==typeof e?this.versions[t]===e?this.code[t]:null:this.code[t]:null},set:function(t,e,n){return e&&"string"==typeof e&&(this.code[e]=t,n&&"string"==typeof n&&(this.versions[e]=n)),t}};i(e,"compile",(function(t,e,r){var i=y.get(e,r);if(i)return i;var o=function(t,e){return t&&"string"==typeof t?e&&"string"==typeof e?t+"@"+e:t:""}(e||t,r),u=[],s=[[[o,0,0,0]]],a=d((function(t){u.push(t[0]),s.push(t[1])}),o);return a(t)>1&&a("\n"),a(),i=new n(u,!0,s),y.set(i,e,r)}))}},function(t,e,n){"use strict";var r=n(78);function i(t){return t>=200&&t<300||304===t}function o(t,e){return[404,"Not Cached",e?[t,e]:[t]]}t.exports=function(t){var e=t.$.promise,u=e["of-resolved"],s=Object.create(null),a=s.cache=n(96)(t),l=r.create({timeout:3e4,transformResponse:void 0,responseType:"text",keepAlive:"timeout=10, max=1000"});return s.isRemote=function(t){return/^(http[s]?:\/\/)/i.test(t)},s.load=function(t){var e=a.get(t);return e?[e,a.ver(t)]:[null,o(t)]},s.fetch=function(t){var n=a.ver(t);return a.isExpired(n)?e.of((function(e){l.get(t,function(t){return!t||a.isTimestamp(t)?null:{validateStatus:i,headers:{"If-None-Match":t}}}(n)).then((function(n){304!==n.status&&a.set(t,n.data,n.headers.etag),e.resolve(t)})).catch((function(n){e.reject(n.response?function(t,e){return[e.status,e.statusText,[t]]}(t,n.response):function(t,e){return[503,"Response Unavailable",[t,e]]}(t,n))}))})):u(t)},s}},function(t,e,n){t.exports=n(79)},function(t,e,n){"use strict";var r=n(0),i=n(3),o=n(80),u=n(9);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var a=s(n(6));a.Axios=o,a.create=function(t){return s(u(a.defaults,t))},a.Cancel=n(10),a.CancelToken=n(93),a.isCancel=n(5),a.all=function(t){return Promise.all(t)},a.spread=n(94),a.isAxiosError=n(95),t.exports=a,t.exports.default=a},function(t,e,n){"use strict";var r=n(0),i=n(4),o=n(81),u=n(82),s=n(9);function a(t){this.defaults=t,this.interceptors={request:new o,response:new o}}a.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[u,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},a.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){a.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){a.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=a},function(t,e,n){"use strict";var r=n(0);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var r=n(0),i=n(83),o=n(5),u=n(6);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||u.adapter)(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,u){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===u&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(89),i=n(90);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(0),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,u={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(u[e]&&i.indexOf(e)>=0)return;u[e]="set-cookie"===e?(u[e]?u[e]:[]).concat([n]):u[e]?u[e]+", "+n:n}})),u):u}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(10);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e,n){"use strict";var r="/es/loaded:version:";function i(t){return"string"==typeof t&&t?"/es/loaded:"+t:null}function o(t){return"string"==typeof t&&t?r+t:null}function u(t){return"local:"+Math.trunc(Date.now()/600/1e3)}t.exports=function(t){var e=t.isNativeHost?function(){var t=Object.create(null);return{keys:function(){return Object.getOwnPropertyNames(t)},getItem:function(e){return t[e]||null},setItem:function(e,n){t[e]=n},removeItem:function(e){delete t[e]},clear:function(){t=Object.create(null)}}}():function(t){function e(){for(var e=[],n=0,r=t.length;n<r;n++){t.key(n).startsWith("/es/loaded:")&&e.push(t.key(n))}return e}return{keys:e,getItem:t.getItem.bind(t),setItem:t.setItem.bind(t),removeItem:t.removeItem.bind(t),clear:function(){for(var n=e(),r=0,i=n.length;r<i;r++)t.removeItem(n[r]);return n}}}(window.localStorage),n=Object.create(null);return n.store=function(t){var e=Object.create(null);return e.list=function(e){for(var n=[],i=t.keys(),o=0;o<i.length;o++)i[o].startsWith(r)&&("string"!=typeof e||i[o].indexOf(e)>0)&&n.push([i[o].substring(r.length),t.getItem(i[o])]);return n},e.read=function(e){for(var n=t.keys(),o=0;o<n.length;o++)if(n[o].startsWith(r)&&("string"!=typeof e||n[o].indexOf(e)>0))return t.getItem(i(n[o].substring(r.length)))},e.reset=function(e){for(var n=0,o=t.keys(),u=0;u<o.length;u++)o[u].startsWith(r)&&("string"!=typeof e||o[u].indexOf(e)>0)&&(n++,t.removeItem(o[u]),t.removeItem(i(o[u].substring(r.length))));return n},e.clear=function(){return t.clear(),!0},e}(e),n.get=function(t){var n=i(t);return n?e.getItem(n):null},n.ver=function(t){var n=o(t);return n?e.getItem(n):null},n.isTimestamp=function(t){return t.startsWith("local:")},n.isExpired=function(t){return t!==u()},n.set=function(t,n,r){if("string"!=typeof n)return null;var s=i(t),a=o(t);return s&&a?("string"==typeof r&&s||(r=u()),e.setItem(s,n),e.setItem(a,r),r):null},n}},function(t,e,n){"use strict";var r=/^[.{1,2}$|.{0,2}/]/;t.exports=function(t){var e=t.$warn,i=t.completeFile,o=t.$env("runtime-home"),u=n(98)(t);function s(t){var e=new URL(t);return e.protocol+"//"+e.host}var a=Object.create(null);return a.create=function(n){var a=t.$path,l=t.loader,c=n.local["-app-home"],f=u.create(n),p=Object.create(null),h=p.cache=Object.create(null);return p.resolve=function(t,e){var n,u,p=i(t);return l.isRemote(t)?p:(l.isRemote(e)?u=function(t,e,n){var r;return e.startsWith("//")?r=f.findSourcePackage(n)||(l.isRemote(c)?c:s(n)):e.startsWith("/")&&(r=l.isRemote(c)?c:s(n)),r&&t.join(r,e)}(n=a.http||a,p,e):(n=a,u=function(t,e){if(a.isAbsolute(t)&&!t.startsWith("//"))return a.normalize(t);if(t.startsWith("//")){var n=f.findSourcePackage(e)||c;return a.join(n,t)}return null}(p,e)),u||(r.test(t)?n.resolve(e,p):function(t,e,n){var r,u,s=e.indexOf("/");s>0?(r=e.substring(0,s),u=e.substring(s)||"/"):(r=e,u="/");var l="es"===r?a.resolve(o,"modules"):f.resolveReference(n,r);return t.join(l,i(u))}(n,t,e)))},p.lookupInCache=function(t,n){var r=h[t]||(h[t]={status:0,props:{"-module":t}});return 100===r.status?(e("import","loop dependency on",r.props,"from",n),r):(200!==r.status&&(r.status=0,r.props["-imported-by"]=n,r.props["-imported-at"]=Date.now()),r)},p},a}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$,n=t.loader,r=Object.create(null);return r.create=function(r){var i,o,u=t.$path,s=r.local["-app-home"],a=Object.create(null),l=function(){var t=u.join(s,"@dependency.es"),r=n.load(t),i=r?e.eval(r):Object.create(null);"object"==typeof i.references&&null!==i.references||(i.references=Object.create(null));"object"==typeof i.packages&&null!==i.packages||(i.packages=Object.create(null));return i}(),c=(i=u.join(s,"@installation.es"),(o=n.load(i))?e.eval(o):Object.create(null));function f(t){for(var e in Object.keys(c)){var n=c[e];if(t.startsWith(n))return e}return null}return a.findSourcePackage=f,a.resolveReference=function(t,e){var n=function(t){return t&&c[t]}(function(t,e){var n=t?l.packages[t]:null;return n&&n[t]||l.references[e]}(f(t),e))||u.join("packages",e);return u.resolve(s,n)},a},r}},function(t,e,n){"use strict";t.exports=function(t,e){var r=t.$warn,i=Object.create(null),o=n(100)(t);return i.resolve=function(t,n,i,u,s){if(o.has(t))return t;if(!e)return r("module:native","no module packer provided.","\n",[t,n,i,u,s]),null;try{var a=t.substring(1),l=e.resolve(a,n);if(l)return"$"+l;r("module:native","failed to resolve module.",a,"\n",[t,n,i,u,s])}catch(e){r("module:native","error:",e.code||e.message,"in resolving native module.",a,"\n",[t,n,i,u,s])}return null},i.load=function(t){var n=t.substring(1),r=o.load(n);if(r)return r;if(e)return e.load(n);var i=new Error("[No Packer] Cannot find module "+n);throw i.code="MODULE_NOT_FOUND",i},i}},function(t,e,n){"use strict";var r=new Set(["$eslang/global","$eslang/io","$eslang/path","$eslang/symbols"]);t.exports=function(t){t.$io=n(101)(t),t.$path=n(102)(t),t.$symbols=n(103)(t);var e=Object.create(null),i=Object.create(null);return e.has=function(t){return"$eslang"===t||t.startsWith("$eslang/")||r.has(t)},e.load=function(e){if("$eslang"===e||e.startsWith("$eslang/"))return i;switch(e){case"eslang/global":return window;case"eslang/io":return t.$io;case"eslang/path":return t.$path;case"eslang/symbols":return t.$symbols;default:return null}},e}},function(t,e,n){"use strict";var r=Object.create(null),i=Object.create(null);function o(t){return{getItem:function(e){return t[e]},setItem:function(e,n){t[e]=n}}}t.exports=function(t){var e=t.$warn,n=t.thisCall,u=t.$.string.of,s=Object.create(null),a=window.localStorage||o(r),l=window.sessionStorage||o(i);function c(t){return t.startsWith("~/")?l:a}function f(t,r){if(r&&"string"==typeof r)return r;if(!Array.isArray(r))return e("io:"+t,"argument path is not a string or strings.",r),null;for(var i=0,o=(r=r.slice()).length;i<o;i++)"string"!=typeof r[i]&&(r[i]=n(r[i],"to-string"));return r.join("/")}return s.read=function(t){return(t=f("read",t))?c(t).getItem(t):null},s.write=function(t,e){return(t=f("write",t))?(e=void 0===e?u():u(e),c(t).setItem(t,e),e):null},s["to-read"]=function(t){return(t=f("to-read",t))?Promise.resolve(c(t).getItem(t)):Promise.reject(e())},s["to-write"]=function(t,n){return(t=f("to-write",t))?(n=void 0===n?u():u(n),c(t).setItem(t,n),Promise.resolve(n)):Promise.reject(e())},s}},function(t,e,n){"use strict";var r=/^(\w+:\/\/)/i;function i(t,e,n){var r=new TypeError('The "'+t+'" argument must be of type '+(n||"string")+". Received "+typeof e);return r.code="ERR_INVALID_ARG_TYPE",r}function o(t){try{return new URL(t)}catch(t){return null}}t.exports=function(t){var e=t.$env("home"),n=Object.create(null);n.delimiter=":",n.sep="/",n.basename=function(t,e){if("string"!=typeof t)throw i("path",t);if("string"!=typeof e&&void 0!==e)throw i("ext",e);if(r.test(t)){if(!o(t))return"";t=new URL(t).pathname}var n=t.lastIndexOf("/");return n>=0&&(t=t.substring(n+1)),e&&t.endsWith(e)&&t.length>e.length?t.substring(0,t.length-e.length):t},n.dirname=function(t){if("string"!=typeof t)throw i("path",t);var e;if(r.test(t)){var n=o(t);if(!n)return t;e=n.protocol+"//"+n.host,t=n.pathname}for(var u=t.length;u>0&&"/"===t[u-1];)u--;switch(u<t.length&&(t=t.substring(0,u)),u=t.lastIndexOf("/")){case-1:return e||".";case 0:return e||"/";default:return e?e+t.substring(0,u):t.substring(0,u)}},n.extname=function(t){if("string"!=typeof t)throw i("path",t);if(r.test(t)){if(!o(t))return"";t=new URL(t).pathname}var e=t.lastIndexOf(".");return e<=0||t.lastIndexOf("/")+1>=e?"":(e+=1)>=t.length?".":t.substring(e)};var u=["dir","root","base","name","ext"];return n.format=function(t){if("object"!=typeof t)throw i("pathObject",t,"object");u.forEach((function(e){var n=t[e];if("string"!=typeof n&&null!=n)throw i("pathObject."+e,n)}));var e=[];return t.dir&&r.test(t.dir)?e.push(t.dir):(t.root&&e.push(t.root),t.dir&&e.push(t.dir)),t.base?e.push(t.base):(t.name&&e.push(t.name),t.ext&&e.push(t.ext)),n.join.apply(n,e)},n.isAbsolute=function(t){if("string"!=typeof t)throw i("path",t);return r.test(t)},n.join=function(t){return(t=Array.prototype.slice.call(arguments)).forEach((function(t){if("string"!=typeof t)throw i("path",t)})),n.normalize(t.join("/"))||"."},n.normalize=function(t){if("string"!=typeof t)throw i("path",t);var e;if(r.test(t)){var n=o(t);if(!n)return t;e=n.protocol+"//"+n.host,t=n.pathname}else t.startsWith("/")&&(e="/");var u=function(t,e){for(var n=0;n<e.length;)e[n]?"."===e[n]&&(n>0||t)?e.splice(n,1):".."===e[n]?0!==n?".."!==e[n-1]?"."===e[n-1]?e.splice(n-1,1):(e.splice(n-1,2),n-=1):n+=1:t?e.splice(n,1):n+=1:n+=1:e.splice(n,1);return e}(e,t.split("/")).join("/");return e?"/"!==e&&u?e+"/"+u:e+u:u},n.parse=function(t){if("string"!=typeof t)throw i("path",t);var e={base:"",name:"",ext:""};if(e.dir=n.dirname(t),r.test(t)){var o=t.indexOf("://")+3;if((o=t.indexOf("/",o))<0)return e.root=t,e;e.root=t.substring(0,o)}else e.root="";return e.base=n.basename(t),e.ext=n.extname(t),e.name=e.ext?n.basename(t,e.ext):e.base,e},n.relative=function(t,e){if("string"!=typeof t)throw i("from",t);if("string"!=typeof e)throw i("to",t);var r=n.normalize(t).split("/"),o=n.normalize(e).split("/");if(r[0]!==o[0])return t;for(var u=1;u<r.length&&u<o.length&&r[u]===o[u];u++);for(var s=[],a=u;a<r.length;a++)s.push("..");for(var l=u;l<o.length;l++)s.push(o[l]);return s.join("/")},n.resolve=function(t){var o=Array.prototype.slice.call(arguments),u=-1;return o.forEach((function(t,e){if("string"!=typeof t)throw i("path",t);r.test(t)&&(u=e)})),u<0?o.unshift(e):u>0&&(o=o.slice(u)),n.join.apply(n,o)},n}},function(t,e,n){"use strict";(function(e){t.exports=function(t){var n=Object.create(null),r=t.isNativeHost?e.platform:"browser";return"win32"===r?(n.passed="√ ",n.failed="× ",n.pending="~ "):"darwin"===r||"browser"===r?(n.passed="✓ ",n.failed="✘ ",n.pending="⋯ "):(n.passed="= ",n.failed="x ",n.pending="~ "),n}}).call(this,n(1))},function(t,e,n){"use strict";t.exports=function(t){var e=t.$.type.of,r=t.$warn,i=t.$print,o=t.$printf,u=t.isTruthy,s=t.thisCall,a=t.safelyAssign,l=Object.create(null),c=n(105)(t);return l["test-bootstrap"]=n(106)(t),l[".loader"]=a(Object.create(null),t.loader.cache.store),function(n,a){var f="function"==typeof n.echo?n.echo.bind(n):i.bind(null,"=");function p(t,n){return function(t,n){var r="#("+t+s(e(n),"to-string"),i=n&&"string"==typeof n.name?n.name:"";return i?r+": "+i+")# ":r+")# "}(n||"",t)+s(t,"to-string")}function h(t){if(!(t instanceof Promise))return f(p(t));f("#(promise: waiting ...)#"),t.then((function(t){f(p(t,"... result: "))}),(function(t){f(p(t,"... excuse: "))}))}function d(t){return null==t?t=0:(v&&f(p(t)),t="number"==typeof t?t>>0:1),t?o("Good luck.\n","red"):o("See you again.\n","green"),n.close(),a(t)}function y(t,e){"exiting"===e?f(d(t)):r.apply(null,Array.prototype.slice.call(arguments,2))}var v=!1;l[".echo"]=function(){return(v=!v)||(o(" "),o("#(bool)# false\n","gray"))},l[".debug"]=function(e){var n=t.$env("is-debugging");return void 0===e?n:t.env("is-debugging",u(e))},l[".logging"]=function(e){var n=t.$env("logging-level");return"number"!=typeof e?n:t.env("logging-level",(e>>=0)<0?0:e>127?127:e)};var g=c(l,(function(t,e){e?y.apply(null,arguments):v&&h(t)}));g('(var path (import ("$eslang/path").\n'),g('(var * (load (path resolve (env "runtime-home"), "profile").\n'),v=!0,n.prompt(),n.on("line",(function(t){g(t);var e=g("\n");n.prompt(e>1?"..":"> ")}))}}},function(t,e,n){"use strict";t.exports=function(t){var e=t.$.compiler,n=t.Signal,r=t.evaluate,i=t.isApplicable,o=t.createAppSpace,u=function(){return(u=t.$path.join.bind(t.$path)).apply(null,arguments)};return function(s,a){if(!i(a))return null;var l=u(t.$env("runtime-home"),"@"),c=o(l,t.$env("home"));c.populate(s);var f=e((function(t,e){if(e)a.apply(null,[null,"compiler:"+e].concat(Array.prototype.slice.call(arguments,2)));else{var i=t[0],o=t[1];try{a(r(i,c))}catch(t){t instanceof n?"return"===t.id?a(t.value):"exit"===t.id?a(t.value,"exiting"):a(null,"warning","invalid call to "+t.id,[i,o]):a(null,"warning","unexpected error in evaluation",[t,i,o])}}}));return function(t){return"string"==typeof t?f(t):f()}}}},function(t,e,n){"use strict";(function(e){t.exports=function(t){var n=t.$,r=t.$print,i=t.$printf,o=t.$symbols;(r.bound||r).nativeField=!0;var u=function(t){return function(e){i(e+"\n",t)}},s=u("red"),a=u("gray"),l=u("green"),c=0,f=[];return function(){if(r("\n Checking JavaScript environment"),function(){p("JS is using the space of "+(e?"global.":"window.")),(void 0===Array.isArray?h:p)("Array.isArray"),(void 0===Array.prototype.filter?h:p)("Array.prototype.filter"),(void 0===Array.prototype.forEach?h:p)("Array.prototype.forEach"),(void 0===Array.prototype.map?h:p)("Array.prototype.map"),(void 0===Array.prototype.reduce?h:p)("Array.prototype.reduce"),(void 0===Array.prototype.reduceRight?h:p)("Array.prototype.reduceRight"),(void 0===Date.now?h:p)("Date.now"),(void 0===Number.isInteger?h:p)("Number.isInteger"),(void 0===Number.isSafeInteger?h:p)("Number.isSafeInteger"),(void 0===Number.MAX_SAFE_INTEGER?h:p)("Number.MAX_SAFE_INTEGER"),(void 0===Number.MIN_SAFE_INTEGER?h:p)("Number.MIN_SAFE_INTEGER"),("function"!=typeof Object.assign?h:p)("Object.assign"),("function"!=typeof Object.create?h:p)("Object.create"),("function"!=typeof Object.defineProperties?h:p)("Object.defineProperties"),("function"!=typeof Object.defineProperty?h:p)("Object.defineProperty"),("function"!=typeof Object.freeze?h:p)("Object.freeze"),("function"!=typeof Object.getOwnPropertyNames?h:p)("Object.getOwnPropertyNames"),("function"!=typeof Object.is?h:p)("Object.is"),("function"!=typeof Object.isFrozen?h:p)("Object.isFrozen"),(void 0===String.prototype.endsWith?h:p)("String.prototype.endsWith"),(void 0===String.prototype.startsWith?h:p)("String.prototype.startsWith"),(void 0===String.prototype.trim?h:p)("String.prototype.trim"),(void 0===String.prototype.trimLeft?h:p)("String.prototype.trimLeft"),(void 0===String.prototype.trimRight?h:p)("String.prototype.trimRight"),("undefined"==typeof Promise?h:p)("Promise"),("undefined"==typeof Map?h:p)("Map"),("undefined"==typeof Set?h:p)("Set"),(void 0===Math.trunc?h:p)("Math.trunc"),(void 0===Math.log2?h:p)("Math.log2"),(void 0===Math.log10?h:p)("Math.log10"),("object"!=typeof console?h:p)("console"),"object"==typeof console&&((void 0===console.debug?h:p)("console.debug"),(void 0===console.error?h:p)("console.error"),(void 0===console.info?h:p)("console.info"),(void 0===console.log?h:p)("console.log"),(void 0===console.warn?h:p)("console.warn"));(3!==(t=1,n=2,t+n)?h:p)("spread operator: ...");var t,n}(),r("\n Checking Espresso Runtime ..."),d(t,"[Void / Null] ",["null"]),y(t,"[Void / constructors] ",["Type","Date","Range","Symbol","Tuple","Iterator","Promise","Object","ClassType","Signal","Space","OperatorSpace"]),y(t,"[Void / functions] ",["operator","lambda","function","createAppSpace","createModuleSpace","createLambdaSpace","createFunctionSpace","createOperatorSpace","signalOf","lambdaOf","functionOf","operatorOf","evaluate","execute"]),v("[void / operators] ",["`","quote","unquote","export","var","let","const","local","locon","?","if","while","in","for","break","continue","+","++","--","!","not","~","@","=?","=","->","=>","redo","return","exit","import","load","fetch","debug","log"]),d(n,"[Espresso / types] ",["type","bool","string","number","date","range","symbol","tuple","operator","lambda","function","iterator","promise","array","object","set","map","class"]),y(n,"[Espresso / functions] ",["commit","commit*","commit?","eval","tokenizer","tokenize","compiler","compile"]),y(t,"[Espresso / functions] ",["$env","env","$run","$warn","$print","$printf"]),v("[Espresso / generators] ",["is","===","is-not","!==","equals","==","not-equals","!=","compares-to","is-empty","not-empty","is-a","is-an","is-not-a","is-not-an","to-code","to-string",">",">=","<","<=","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>>=","and","&&","&&=","or","||","||=","?","?*","??","*"]),y(n,"[Espresso / generator functions] ",["is","===","is-not","!==","equals","==","not-equals","!=","compares-to","is-empty","not-empty","is-a","is-an","is-not-a","is-not-an","to-code","to-string",">",">=","<","<=","-","++","--","+=","-=","*=","/=","%=","~","&=","|=","^=","<<=",">>=",">>>=","?","+","not","!","and","&&","&&=","or","||","||=","?","?*","??","all","both","any","either","not-any","neither","nor"]),y(n,"[Espresso / lib / functions] ",["max","min"]),y(t.$app,"[Espresso / lib / app-only functions] ",["env","run","warn","print","printf","espress"]),d(n,"[Espresso / lib / objects] ",["uri","math","json"]),d(n,"[Espresso / lib / classes] ",["emitter"]),d(t.$app,"[Espresso / lib / app classes] ",["timer"]),function(){r("\n - Static type-of");var t=n.type.of;g("[undefined]",null===t()),g("null",null===t(null)),g("bool",t(!0)===n.bool),g("string",t("")===n.string),g("number",t(1)===n.number),g("date",t(n.date.empty)===n.date),g("range",t(n.range.empty)===n.range),g("symbol",t(n.symbol.empty)===n.symbol),g("tuple",t(n.tuple.empty)===n.tuple),g("operator",t(n.operator.empty())===n.operator),g("lambda",t(n.lambda.noop)===n.lambda),g("stambda",t(n.lambda.static)===n.lambda),g("function",t(n.function.empty())===n.function),g("function (generic)",t((function(){}))===n.function),g("iterator",t(n.iterator.empty)===n.iterator),g("promise",t(n.promise.empty)===n.promise),g("array",t(n.array.empty())===n.array),g("array (generic)",t([])===n.array),g("object",t(n.object.empty())===n.object),g("object (generic)",t({})===n.object),g("class",t(n.class.empty())===n.class)}(),function(){r("\n - Static indexer-of");var e=t.indexerOf;g("undefined",e()===t.null[":"]),g("null",e(null)===t.null[":"]),g("type",e(n.type)===n.type[":"]),g("bool",e(n.bool)===n.bool[":"]),g("bool: true",e(!0)===n.bool.proto[":"]),g("bool: false",e(!1)===n.bool.proto[":"]),g("string",e(n.string)===n.string[":"]),g("string: empty",e("")===n.string.proto[":"]),g("number",e(n.number)===n.number[":"]),g("number: 0",e(0)===n.number.proto[":"]),g("date",e(n.date)===n.date[":"]),g("date: empty",e(n.date.empty)===n.date.proto[":"]),g("range",e(n.range)===n.range[":"]),g("range: empty",e(n.range.empty)===n.range.proto[":"]),g("symbol",e(n.symbol)===n.symbol[":"]),g("symbol: empty",e(n.symbol.empty)===n.symbol.proto[":"]),g("tuple",e(n.tuple)===n.tuple[":"]),g("tuple: empty",e(n.tuple.empty)===n.tuple.proto[":"]),g("operator",e(n.operator)===n.operator[":"]),g("operator.empty",e(n.operator.empty())===n.operator.proto[":"]),g("lambda",e(n.lambda)===n.lambda[":"]),g("lambda: empty",e(n.lambda.empty())===n.lambda.proto[":"]),g("function",e(n.function)===n.function[":"]),g("function: empty",e(n.function.empty())===n.function.proto[":"]),g("function: generic",e((function(){}))===n.function.proto[":"]),g("iterator",e(n.iterator)===n.iterator[":"]),g("iterator: empty",e(n.iterator.empty)===n.iterator.proto[":"]),g("promise",e(n.promise)===n.promise[":"]),g("promise: empty",e(n.promise.empty)===n.promise.proto[":"]),g("array",e(n.array)===n.array[":"]),g("array: empty",e(n.array.empty())===n.array.proto[":"]),g("array: generic",e([])===n.array.proto[":"]),g("object",e(n.object)===n.object[":"]),g("object: empty",e(n.object.empty())===n.object.proto[":"]),g("object: generic",e({})===n.object.proto[":"]),g("class",e(n.class)===n.class[":"]),g("class: empty",e(n.class.empty())===n.class.proto[":"]),g("instance: empty",e(n.class.empty().empty())===n.class.proto.proto[":"])}(),r("\n - Primary Types"),m(null,"","<empty>"),m(null,"()"),m(null,"null"),m(n.type,"type"),m(n.bool,"bool"),m(!0,"true"),m(!1,"false"),m(n.string,"string"),m(n.string.empty,'""'),m("ABC",'"ABC"'),m("ABC",'("ABC")'),m(3,'("ABC" length)'),m("ABCDEF",'("ABC" + "DEF")'),m(n.number,"number"),m(3,"(1 + 2)"),m(-1,"(1 - 2)"),m(2,"(1 * 2)"),m(.5,"(1 / 2)"),m(n.date,"date"),m((function(t){return t instanceof Date}),"(date now)"),m(n.range,"range"),m((function(t){return 0===t.begin&&3===t.end&&1===t.step}),"(0 3)"),m((function(t){return 10===t.begin&&20===t.end&&2===t.step}),"(10 20 2)"),m(n.symbol,"symbol"),m((function(t){return"x"===t.key}),"(` x)"),m(n.tuple,"tuple"),m((function(e){var n=e.$;return e instanceof t.Tuple&&"x"===n[0].key&&1===n[1]&&"y"===n[2]&&!0===n[3]}),'(` (x 1 "y" true))'),m(n.operator,"operator"),m((function(t){return t.type===n.operator}),"(=? () )"),m((function(t){return t.type===n.operator}),"(=? (X Y) (+ (X) (Y)."),m(n.lambda,"lambda"),m((function(t){return t.type===n.lambda}),"(= () )"),m((function(t){return t.type===n.lambda}),"(= (x y) (+ x y)."),m(n.function,"function"),m((function(t){return t.type===n.function}),"(=> () )"),m((function(t){return t.type===n.function}),"(=> (x y) (+ x y)."),m(n.array,"array"),m((function(t){return 2===t.length&&1===t[0]&&2===t[1]}),"(array of 1 2)"),m(2,"((@ 10 20) length)"),m(20,"((@ 10 20) 1)"),m(n.object,"object"),m((function(t){return 1===t.x&&2===t.y}),"(@ x: 1 y: 2)"),m(10,"((@ x: 10 y: 20) x)"),m(20,"((@ x: 10 y: 20) y)"),m(200,'((@ x: 10 y: 20) "y" 200)'),m(n.class,"class"),m((function(t){return t.type===n.class}),"(@:class x: 1 y: 0)"),m((function(t){return t.type===n.class}),"(class of (@ x: 1 y: 0)."),r("\n - Assignment"),m(1,"(let x 1)"),m(2,"(let x 1) (let y 2)"),m(2,"(let (x y) (@ 1 2). y"),m(2,"(let (x y) (@ x: 1 y: 2). y"),m(2,"(let * (@ x: 1 y: 2). y"),m(1,"(var x 1)"),m(2,"(var x 1) (var y 2)"),m(2,"(var (x y) (@ 1 2). y"),m(2,"(var (x y) (@ x: 1 y: 2). y"),m(2,"(var * (@ x: 1 y: 2). y"),m(1,"(export x 1)"),m(2,"(export x 1) (export y 2)"),m(2,"(export (x y) (@ x: 1 y: 2). y"),m(2,"(export * (@ a: 1 b: 2). b"),r("\n - Operators"),m(1,"(if true 1 else 0)"),m(0,"(if false 1 else 0)"),m(110,"(+ 10 100)"),m(-110,"(+ -10 -100)"),m("10100",'(+ "10" "100")'),m("-10-100",'(+ "-10" "-100")'),m(1,"(++)"),m(-1,"(--)"),m(1,"(++ null)"),m(-1,"(-- null)"),m(1,"(++ 0)"),m(-1,"(-- 0)"),m(1,"(let x 0)(++ x)x"),m(-1,"(let x 0)(-- x)x"),m(!0,"(1 ?)"),m(!1,"(0 ?)"),m(!1,"(null ?)"),m(!0,"(true ? 1)"),m(1,"(false ? 1)"),m(1,"(true ? 1 0)"),m(0,"(false ? 1 0)"),m(0,"(null ?? 0)"),m(!1,"(false ?? 0)"),m(0,"(0 ?? 1)"),m("",'("" ?? 1)'),r("\n - Control"),m(0,"(if true 1 0)"),m(null,"(if false 1 0)"),m(1,"(if true 1 else 0)"),m(0,"(if false 1 else 0)"),m(10,"(for x in (100 110) (++ i)."),m(10,"(var i 0)(for (@ 1 2 3 4) (i += _)."),m(99,"(while ((++ i) < 100) i)"),m(100,"(let i 0)(while ((i ++) < 100) i)"),m(100,"(while ((++ i) < 100). i"),m(101,"(let i 0)(while ((i ++) < 100). i"),m("done",'(while ((++ i) < 100) (if (i == 10) (break "done").'),r("\n - Operations"),m(21,"(let x 1) (let y 20) (let add (=? (a b) ((a) + (b). (add x y)"),m(21,"(let z 100) (let add (= (x y) (x + y z). (add 1 20)"),m(21,"(let z 100) (= (1 20): (x y) (x + y z)."),m(121,"(let z 100) (let add (=> (x y) (x + y z). (add 1 20)"),m(121,"(let z 100) (=> (1 20): (x y) (x + y z)."),m(11,"(let summer (@:class add: (= () ((this x) + (this y). (let s (summer of (@ x: 1 y: 10). (s add)"),m(11,"(let summer (@:class type: (@ add: (= (x y ) (+ x y). (summer add 1 10)"),function(){function e(e,n){g('"'+e+'" is "'+n+'"',Object.is(t.staticOperators[e],t.staticOperators[n]))}r("\n - Generator Aliases"),e("is","==="),e("is-not","!=="),e("equals","=="),e("not-equals","!="),e("is-a","is-an"),e("is-not-a","is-not-an"),e("not","!"),e("and","&&"),e("or","||")}(),l("\n passing: "+c),f.length<1)return l("\n Espresso is ready to run.\n"),!0;s(" failing: "+f.length),r("\n There might be some issues to prevent running Espresso");for(var i=0;i<f.length;i++)s(" - "+f[i]);return r(),!1};function p(t){c+=1,i(" "+o.passed+"[PASSED] ","green"),a(t)}function h(t){f.push(t),i(" "+o.failed+"[FAILED] ","red"),s(t)}function d(t,e,n){r("\n -",e);for(var i=0;i<n.length;i++){var o=n[i];"object"==typeof t[o]?p(o):h(e+o)}}function y(t,e,n){r("\n -",e);for(var i=0;i<n.length;i++){var o=n[i];"function"==typeof t[o]?p(o):h(e+o)}}function v(e,n){r("\n -",e);for(var i=0;i<n.length;i++){var o=n[i];"function"==typeof t.staticOperators[o]?p(o):h(e+o)}}function g(t,e,n){e?p(t):h(n?t+" - "+n:t)}function m(t,e,r){var i=n.eval(e),o="function"==typeof t?t(i):Object.is(i,t);g(e||r,o,o||"evaluated to a value of "+typeof i+": "+(i?i.toString():i))}}}).call(this,n(107))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";t.exports=function(t,e){var n=Object.create(null);n.echo=e.echo,n.prompt=e.prompt;var r=!1,i=null,o=function(t){return i&&i(t)};return n.open=function(){r||(r=!0,e.connect(o))},n.on=function(t,e){switch(r||n.open(),t){case"line":return i=e,t;default:return null}},n.close=function(){r&&(e.disconnect(),i=null,r=!1)},n}},function(t,e,n){"use strict";t.exports=function(t){return function(e){return function(t){var e=3;return setInterval((function(){e>0?t(e--):window.location.reload()}),500),"reloading ..."}((function(e){switch(e){case 1:return t.$printf("."+e,"red");case 2:return t.$printf(".."+e,"yellow");default:return t.$printf("..."+e,"blue")}}))}}}]);
//# sourceMappingURL=eslang.min.js.map