{"version":3,"sources":["node_modules/@arcgis/core/core/Version.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport t from \"./Error.js\";\nlet r = class r {\n constructor(t, r, o = \"\") {\n this.major = t, this.minor = r, this._context = o;\n }\n lessThan(t, r) {\n return this.major < t || t === this.major && this.minor < r;\n }\n greaterEqual(t, r) {\n return !this.lessThan(t, r);\n }\n validate(r) {\n if (this.major !== r.major) {\n const o = this._context && this._context + \":\",\n e = this._context && this._context + \" \";\n throw new t(o + \"unsupported-version\", `Required major ${e}version is '${this.major}', but got '\\${version.major}.\\${version.minor}'`, {\n version: r\n });\n }\n }\n clone() {\n return new r(this.major, this.minor, this._context);\n }\n static parse(o, e = \"\") {\n const [s, i] = o.split(\".\"),\n n = /^\\s*\\d+\\s*$/;\n if (!s?.match || !n.test(s)) {\n throw new t((e && e + \":\") + \"invalid-version\", \"Expected major version to be a number, but got '${version}'\", {\n version: o\n });\n }\n if (!i?.match || !n.test(i)) {\n throw new t((e && e + \":\") + \"invalid-version\", \"Expected minor version to be a number, but got '${version}'\", {\n version: o\n });\n }\n const a = parseInt(s, 10),\n h = parseInt(i, 10);\n return new r(a, h, e);\n }\n};\nexport { r as Version };"],"mappings":"wCAKA,IAAIA,EAAI,MAAMA,CAAE,CACd,YAAY,EAAG,EAAGC,EAAI,GAAI,CACxB,KAAK,MAAQ,EAAG,KAAK,MAAQ,EAAG,KAAK,SAAWA,CAClD,CACA,SAAS,EAAG,EAAG,CACb,OAAO,KAAK,MAAQ,GAAK,IAAM,KAAK,OAAS,KAAK,MAAQ,CAC5D,CACA,aAAa,EAAG,EAAG,CACjB,MAAO,CAAC,KAAK,SAAS,EAAG,CAAC,CAC5B,CACA,SAASD,EAAG,CACV,GAAI,KAAK,QAAUA,EAAE,MAAO,CAC1B,IAAMC,EAAI,KAAK,UAAY,KAAK,SAAW,IACzCC,EAAI,KAAK,UAAY,KAAK,SAAW,IACvC,MAAM,IAAIC,EAAEF,EAAI,sBAAuB,kBAAkBC,CAAC,eAAe,KAAK,KAAK,mDAAoD,CACrI,QAASF,CACX,CAAC,CACH,CACF,CACA,OAAQ,CACN,OAAO,IAAIA,EAAE,KAAK,MAAO,KAAK,MAAO,KAAK,QAAQ,CACpD,CACA,OAAO,MAAMC,EAAGC,EAAI,GAAI,CACtB,GAAM,CAAC,EAAGE,CAAC,EAAIH,EAAE,MAAM,GAAG,EACxB,EAAI,cACN,GAAI,CAAC,GAAG,OAAS,CAAC,EAAE,KAAK,CAAC,EACxB,MAAM,IAAIE,GAAGD,GAAKA,EAAI,KAAO,kBAAmB,8DAA+D,CAC7G,QAASD,CACX,CAAC,EAEH,GAAI,CAACG,GAAG,OAAS,CAAC,EAAE,KAAKA,CAAC,EACxB,MAAM,IAAID,GAAGD,GAAKA,EAAI,KAAO,kBAAmB,8DAA+D,CAC7G,QAASD,CACX,CAAC,EAEH,IAAM,EAAI,SAAS,EAAG,EAAE,EACtB,EAAI,SAASG,EAAG,EAAE,EACpB,OAAO,IAAIJ,EAAE,EAAG,EAAGE,CAAC,CACtB,CACF","names":["r","o","e","s","i"],"x_google_ignoreList":[0]}