mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 08:56:20 +00:00
1 line
1.1 KiB
JavaScript
1 line
1.1 KiB
JavaScript
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.smalltalk=e()}}(function(){return function e(n,r,t){function o(i,u){if(!r[i]){if(!n[i]){var l="function"==typeof require&&require;if(!u&&l)return l(i,!0);if(f)return f(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var c=r[i]={exports:{}};n[i][0].call(c.exports,function(e){var r=n[i][1][e];return o(r?r:e)},c,c.exports,e,n,r,t)}return r[i].exports}for(var f="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}({smalltalk:[function(e,n,r){"use strict";r.alert=function(e,n){var r=new Promise(function(e){alert(n),e()});return r},r.prompt=function(e,n,r,t){var o=t,f=new Promise(function(e,t){var f=o&&!o.cancel,i=prompt(n,r);null!==i?e(i):f||t()});return f},r.confirm=function(e,n,r){var t=r,o=t&&!t.cancel,f=new Promise(function(e,r){var t=confirm(n);t||o?e():r()});return f}},{}]},{},["smalltalk"])("smalltalk")});
|