"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.version=exports.language=exports.compareVersion=exports.other=exports.harmony=exports.pc=exports.android=exports.ios=void 0;var env_1=require("./env"),ENV=env_1.getENV();exports.ios=ENV.platform===env_1.ENV_ENUM.ios,exports.android=ENV.platform===env_1.ENV_ENUM.android,exports.pc=ENV.platform===env_1.ENV_ENUM.pc,exports.harmony=ENV.platform===env_1.ENV_ENUM.harmony,exports.other=ENV.platform===env_1.ENV_ENUM.notInDingTalk,exports.compareVersion=function(e,r,o){function t(e){return parseInt(e,10)||0}if("string"!=typeof e||"string"!=typeof r)return!1;for(var n,p,s=e.split("-")[0].split(".").map(t),i=r.split("-")[0].split(".").map(t);n===p&&i.length>0;)n=s.shift(),p=i.shift();return o?(p||0)>=(n||0):(p||0)>(n||0)},exports.language=ENV.language,exports.version=ENV.version;